/*
Theme Name: Venous Gallery (گالری ونوس)
Theme URI: https://venousgallery.local
Author: Alabaster Sanctuary Design
Author URI: https://venousgallery.local
Description: پوسته اختصاصی، مینیمال و فاخر گالری ونوس منطبق بر هویت بصری Alabaster Sanctuary، طراحی شده برای ووکامرس و آثار دکوراتیو و مجسمه‌سازی با منابع کاملاً آفلاین و بومی.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: venous-gallery
Tags: e-commerce, woocommerce, rtl-language-support, minimalist, custom-colors, grid-layout
*/

/* ==========================================================================
   CSS Custom Properties / Variables - Luxury Art-Gallery Warm Palette
   ========================================================================== */
:root {
  --bg-main: #F9F6F0;
  --bg-card: #FFFFFF;
  --border-warm: #E6DFD5;
  --primary-accent: #1E3F35;
  --secondary-accent: #A85338;
  --gold-muted: #8C6D46;
  --bg-footer: #1F1B18;
  --text-main: #2A2421;
  --text-muted: #6E655F;
}

/* Base Layer & CSS Reset */
@layer base {
  html, body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-main, #F9F6F0);
    color: var(--text-main, #2A2421);
    font-family: 'Vazirmatn', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  body {
    position: relative;
    width: 100%;
  }

  /* Safe Screen Reader Text for RTL - Never forces horizontal overflow */
  .screen-reader-text {
    border: 0 !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
    word-wrap: normal !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
  }

  /* Safe Select2 Hidden Accessible - Prevent RTL document overflow */
  .select2-hidden-accessible {
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    -webkit-clip-path: inset(50%) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
    white-space: nowrap !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    margin: -1px !important;
  }
  
  main > :first-child {
    margin-top: 0 !important;
  }
  
  main > :last-child {
    margin-bottom: 0 !important;
  }
}

/* Product Card Luxury Styling */
.venous-product-card {
  background-color: var(--bg-card, #FFFFFF);
  border: 1px solid var(--border-warm, #E6DFD5);
  border-radius: 0.75rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}
.venous-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(42, 36, 33, 0.08);
  border-color: #D8CEBE;
}
.venous-product-card .card-thumb-img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.venous-product-card:hover .card-thumb-img {
  transform: scale(1.03);
}

/* ==========================================================================
   Product Studio Stage & Dynamic Backdrop System
   ========================================================================== */
.product-studio-stage {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-image 0.4s ease, background 0.4s ease;
}

/* Diagonal sunlight / window shadow overlay */
.product-studio-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 248, 231, 0.16) 0%, rgba(255, 248, 231, 0.02) 45%, rgba(0, 0, 0, 0.22) 50%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Transparent Product Image Styling & Realistic Contour Shadow */
.product-studio-stage img,
.product-studio-stage .sculpture-img,
img.sculpture-img {
  position: relative;
  z-index: 2;
  object-fit: contain !important;
  width: 88% !important;
  height: 88% !important;
  max-width: 88% !important;
  max-height: 88% !important;
  margin: auto;
  background-color: transparent !important;
  background: transparent !important;
  filter: drop-shadow(-10px 14px 18px rgba(15, 12, 10, 0.45)) drop-shadow(0px 4px 6px rgba(15, 12, 10, 0.25));
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease, opacity 0.3s ease;
  transform-origin: center center;
}

/* 3D Parallax Hover: smoothly scale sculpture, keep background stationary */
.group:hover .product-studio-stage img,
.group:hover .product-studio-stage .sculpture-img,
.venous-product-card:hover .product-studio-stage img,
.venous-product-card:hover .product-studio-stage .sculpture-img {
  transform: scale(1.05);
}

/* Single Product Main Stage Specifics */
#main-sculpture-stage {
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.32);
}

#main-sculpture-stage img {
  width: 88% !important;
  height: 88% !important;
  max-width: 88% !important;
  max-height: 88% !important;
  object-fit: contain !important;
  background: transparent !important;
}

/* Wall Color Swatches */
.wall-swatch-btn {
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}
.wall-swatch-btn:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
.wall-swatch-btn:focus-visible {
  outline: 2px solid #1E3F35;
  outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f5f3ef;
}
::-webkit-scrollbar-thumb {
  background: #ccc6bd;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #7b766f;
}

/* Line Clamp Utilities */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Image Masking */
.mask-image-linear {
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.85) 30%, rgba(0,0,0,0) 85%);
  mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.85) 30%, rgba(0,0,0,0) 85%);
}

/* Explicit Tab Panels & Hidden State Fallback */
.tab-panel.hidden {
  display: none !important;
}

.tab-panel:not(.hidden) {
  display: block !important;
}

/* Collapsible Filter Cards Styling */
.filter-card .chevron-indicator {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-card.is-collapsed .chevron-indicator {
  transform: rotate(0deg) !important;
}

.filter-card .filter-content {
  transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
  overflow: hidden;
}

.filter-card.is-collapsed .filter-content {
  display: none !important;
}

/* WooCommerce Compatibility Fallbacks */
.woocommerce-message, 
.woocommerce-info, 
.woocommerce-error {
  border-radius: 12px !important;
  padding: 16px 20px !important;
  margin-bottom: 24px !important;
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 14px !important;
  border: 1px solid #e2ddd5 !important;
}
.woocommerce-message {
  background-color: #f5f3ef !important;
  color: #1b1c1a !important;
  border-right: 4px solid #82533c !important;
}
.woocommerce-info {
  background-color: #f5f3ef !important;
  color: #1b1c1a !important;
  border-right: 4px solid #000000 !important;
}
.woocommerce-error {
  background-color: #ffdad6 !important;
  color: #93000a !important;
  border-right: 4px solid #ba1a1a !important;
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
  float: left !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  margin-top: -2px !important;
  background-color: #000000 !important;
  color: #ffffff !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}
.woocommerce-message .button:hover,
.woocommerce-info .button:hover,
.woocommerce-error .button:hover {
  background-color: #82533c !important;
}

/* ==========================================================================
   WooCommerce Pagination Custom Styling (Horizontal Row)
   ========================================================================== */
.woocommerce-pagination,
nav.woocommerce-pagination {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto !important;
  padding: 1.5rem 0 !important;
}

.woocommerce-pagination ul,
nav.woocommerce-pagination ul.page-numbers {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

.woocommerce-pagination ul li,
nav.woocommerce-pagination ul.page-numbers li {
  display: inline-flex !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  float: none !important;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span,
nav.woocommerce-pagination ul.page-numbers li a,
nav.woocommerce-pagination ul.page-numbers li span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 2.5rem !important;
  height: 2.5rem !important;
  padding: 0 0.75rem !important;
  border-radius: 0.75rem !important;
  background-color: #efeeea !important;
  color: #1b1c1a !important;
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  border: 1px solid rgba(204, 198, 189, 0.4) !important;
  transition: all 0.2s ease !important;
}

.woocommerce-pagination ul li a:hover,
nav.woocommerce-pagination ul.page-numbers li a:hover {
  background-color: #eae8e4 !important;
  color: #000000 !important;
  transform: translateY(-1px) !important;
}

.woocommerce-pagination ul li span.current,
nav.woocommerce-pagination ul.page-numbers li span.current {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
}

.woocommerce-pagination ul li span.dots,
nav.woocommerce-pagination ul.page-numbers li span.dots {
  background-color: transparent !important;
  border: none !important;
  color: #7b766f !important;
  letter-spacing: 2px !important;
}

/* ==========================================================================
   WooCommerce Reviews & Question Comments Form & List
   ========================================================================== */
#reviews #comments ol.commentlist {
  padding: 0 !important;
  margin: 0 0 2rem 0 !important;
  list-style: none !important;
}

#reviews #comments ol.commentlist li.review {
  padding: 1.25rem 0 !important;
  border-bottom: 1px solid rgba(204, 198, 189, 0.5) !important;
}

#reviews #comments ol.commentlist li.review:last-child {
  border-bottom: none !important;
}

#reviews #comments ol.commentlist li .comment-text {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#reviews #comments ol.commentlist li .comment-text .meta {
  font-size: 0.875rem !important;
  color: #7b766f !important;
  margin-bottom: 0.5rem !important;
}

#reviews #comments ol.commentlist li .comment-text .meta strong.woocommerce-review__author {
  color: #000000 !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  margin-left: 0.5rem !important;
}

#reviews #comments ol.commentlist li .comment-text .description {
  font-size: 0.95rem !important;
  line-height: 1.8 !important;
  color: #1b1c1a !important;
}

#review_form #respond {
  background: #fbf9f5 !important;
  padding: 1.5rem !important;
  border-radius: 1rem !important;
  border: 1px solid rgba(204, 198, 189, 0.6) !important;
  margin-top: 1.5rem !important;
}

#review_form #respond h3.comment-reply-title {
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #000000 !important;
  margin-bottom: 1rem !important;
}

#review_form #respond label {
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #1b1c1a !important;
  display: block !important;
  margin-bottom: 0.35rem !important;
}

#review_form #respond input[type="text"],
#review_form #respond input[type="email"],
#review_form #respond textarea {
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  border-radius: 0.75rem !important;
  border: 1px solid #ccc6bd !important;
  background-color: #ffffff !important;
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 0.9rem !important;
  margin-bottom: 1rem !important;
  outline: none !important;
  transition: border-color 0.2s !important;
}

#review_form #respond input[type="text"]:focus,
#review_form #respond input[type="email"]:focus,
#review_form #respond textarea:focus {
  border-color: #82533c !important;
}

#review_form #respond input[type="submit"] {
  background-color: #000000 !important;
  color: #ffffff !important;
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  padding: 0.75rem 2rem !important;
  border-radius: 0.75rem !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}

#review_form #respond input[type="submit"]:hover {
  background-color: #82533c !important;
  transform: translateY(-1px) !important;
}

/* ==========================================================================
   WooCommerce My Account Dashboard, Forms & Tables
   ========================================================================== */
.woocommerce-account .woocommerce {
  width: 100%;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Address Fields & Generic WooCommerce Form Rows */
.woocommerce-address-fields__field-wrapper,
.woocommerce-form-login,
.woocommerce-form-register,
.woocommerce-EditAccountForm {
  font-family: 'Vazirmatn', sans-serif !important;
}

.woocommerce-address-fields__field-wrapper .form-row {
  display: flex !important;
  flex-direction: column !important;
  margin-bottom: 1rem !important;
  width: 100% !important;
  float: none !important;
}

.woocommerce-address-fields__field-wrapper .form-row.form-row-wide,
.woocommerce-address-fields__field-wrapper p[id*="_address_1_field"],
.woocommerce-address-fields__field-wrapper p[id*="_address_2_field"],
.woocommerce-address-fields__field-wrapper p[id*="_country_field"] {
  grid-column: 1 / -1 !important;
}

.woocommerce-address-fields__field-wrapper .form-row label,
.woocommerce-form .form-row label,
.woocommerce-EditAccountForm label {
  display: block !important;
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #1b1c1a !important;
  margin-bottom: 0.35rem !important;
}

.woocommerce-address-fields__field-wrapper .form-row label .required,
.woocommerce-form .form-row label .required,
.woocommerce-EditAccountForm label .required {
  color: #ba1a1a !important;
  text-decoration: none !important;
}

.woocommerce-address-fields__field-wrapper .form-row .woocommerce-input-wrapper,
.woocommerce-form .form-row .woocommerce-input-wrapper {
  width: 100% !important;
}

.woocommerce-address-fields__field-wrapper .form-row input.input-text,
.woocommerce-address-fields__field-wrapper .form-row select,
.woocommerce-address-fields__field-wrapper .form-row textarea,
.woocommerce-form input.input-text,
.woocommerce-form input[type="text"],
.woocommerce-form input[type="password"],
.woocommerce-form input[type="email"],
.woocommerce-EditAccountForm input.input-text {
  width: 100% !important;
  padding: 0.65rem 1rem !important;
  border-radius: 0.75rem !important;
  border: 1px solid #ccc6bd !important;
  background-color: #ffffff !important;
  color: #1b1c1a !important;
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 0.925rem !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.woocommerce-address-fields__field-wrapper .form-row input.input-text:focus,
.woocommerce-address-fields__field-wrapper .form-row select:focus,
.woocommerce-address-fields__field-wrapper .form-row textarea:focus,
.woocommerce-form input.input-text:focus,
.woocommerce-form input[type="text"]:focus,
.woocommerce-form input[type="password"]:focus,
.woocommerce-form input[type="email"]:focus,
.woocommerce-EditAccountForm input.input-text:focus {
  border-color: #82533c !important;
  box-shadow: 0 0 0 3px rgba(130, 83, 60, 0.15) !important;
}

/* Select2 / Select WooCommerce styling */
.select2-container .select2-selection--single {
  height: 44px !important;
  border-radius: 0.75rem !important;
  border: 1px solid #ccc6bd !important;
  background-color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 0.5rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 0.925rem !important;
  color: #1b1c1a !important;
  line-height: 44px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px !important;
}

/* Order Details Table in view-order */
.woocommerce-table--order-details,
.woocommerce-table--order-downloads,
.shop_table.order_details {
  width: 100% !important;
  border-collapse: collapse !important;
  border-radius: 0.75rem !important;
  overflow: hidden !important;
  border: 1px solid #ccc6bd !important;
  margin-top: 1.5rem !important;
  margin-bottom: 2rem !important;
  background-color: #ffffff !important;
}

.woocommerce-table--order-details th,
.woocommerce-table--order-downloads th,
.shop_table.order_details th {
  background-color: #f5f3ef !important;
  color: #4a4640 !important;
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  padding: 0.85rem 1rem !important;
  border-bottom: 1px solid #ccc6bd !important;
  text-align: right !important;
}

.woocommerce-table--order-details td,
.woocommerce-table--order-downloads td,
.shop_table.order_details td {
  padding: 1rem !important;
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 0.9rem !important;
  color: #1b1c1a !important;
  border-bottom: 1px solid rgba(204, 198, 189, 0.4) !important;
  text-align: right !important;
}

.woocommerce-table--order-details tfoot th,
.shop_table.order_details tfoot th {
  background-color: #faf9f7 !important;
  font-weight: 600 !important;
}

.woocommerce-table--order-details tfoot td,
.shop_table.order_details tfoot td {
  background-color: #faf9f7 !important;
  font-weight: 600 !important;
}

/* Customer Details on view-order */
.woocommerce-customer-details {
  margin-top: 2rem !important;
  padding-top: 1.5rem !important;
  border-top: 1px solid rgba(204, 198, 189, 0.6) !important;
}

.woocommerce-customer-details h2 {
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #1b1c1a !important;
  margin-bottom: 1rem !important;
}

.woocommerce-customer-details address {
  background-color: #f5f3ef !important;
  border: 1px solid #ccc6bd !important;
  border-radius: 0.75rem !important;
  padding: 1.25rem !important;
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 0.9rem !important;
  line-height: 1.8 !important;
  color: #1b1c1a !important;
  font-style: normal !important;
}

.woocommerce-columns--addresses,
.woocommerce-columns--2 {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 1.5rem !important;
  margin-top: 1rem !important;
}

.woocommerce-column--billing-address,
.woocommerce-column--shipping-address {
  width: 100% !important;
  float: none !important;
}

.woocommerce-order-details__title {
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #1b1c1a !important;
  margin-bottom: 1rem !important;
  margin-top: 1.5rem !important;
}

.woocommerce-customer-details--phone,
.woocommerce-customer-details--email {
  margin-top: 0.5rem !important;
  font-family: monospace !important;
  font-size: 0.85rem !important;
  color: #4a4640 !important;
}

/* Universal Action Buttons (Order again, Pay, Cancel, Submit) */
.order-again,
a.button.order-again,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 0.75rem !important;
  background-color: #000000 !important;
  color: #ffffff !important;
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  padding: 0.65rem 1.25rem !important;
  text-decoration: none !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.order-again:hover,
a.button.order-again:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background-color: #82533c !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 10px rgba(130, 83, 60, 0.25) !important;
}

/* ==========================================================================
   WooCommerce Global Notices (Success, Error, Info)
   ========================================================================== */
.woocommerce-notices-wrapper {
  width: 100%;
  margin-bottom: 1.5rem;
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
  padding: 1rem 1.25rem !important;
  border-radius: 0.875rem !important;
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 0.875rem !important;
  line-height: 1.6 !important;
  margin-bottom: 1.25rem !important;
  box-shadow: 0 1px 4px rgba(28, 27, 26, 0.04) !important;
  list-style: none !important;
}

.woocommerce-message {
  background-color: #f0fdf4 !important;
  border: 1px solid #86efac !important;
  color: #14532d !important;
}

.woocommerce-error {
  background-color: #fff1f2 !important;
  border: 1px solid #fca5a5 !important;
  color: #881337 !important;
}

.woocommerce-info {
  background-color: #fbf8f5 !important;
  border: 1px solid #ccc6bd !important;
  color: #4d453e !important;
}

.woocommerce-error li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-message .button,
.woocommerce-info .button {
  margin-right: auto !important;
  margin-left: 0 !important;
  padding: 0.4rem 0.85rem !important;
  font-size: 0.8rem !important;
  border-radius: 0.5rem !important;
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* ==========================================================================
   WooCommerce Cart Page
   ========================================================================== */
.woocommerce-cart .woocommerce {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
}

.woocommerce-cart .woocommerce-notices-wrapper {
  grid-column: 1 / -1;
  width: 100%;
}

@media (min-width: 1024px) {
  .woocommerce-cart .woocommerce {
    grid-template-columns: 1fr 380px;
    align-items: start;
  }
  .woocommerce-cart .woocommerce-cart-form {
    grid-column: 1;
    width: 100%;
  }
  .woocommerce-cart .cart-collaterals {
    grid-column: 2;
    width: 100%;
    position: sticky;
    top: 130px;
  }
}

.woocommerce-cart-form {
  background: #ffffff;
  border: 1px solid rgba(204, 198, 189, 0.6);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 1px 4px rgba(28, 27, 26, 0.03);
  overflow: hidden;
}

table.shop_table.cart {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-family: 'Vazirmatn', sans-serif;
}

table.shop_table.cart th {
  background-color: #f5f2ee;
  color: #4d453e;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #ccc6bd;
}

table.shop_table.cart th:first-child {
  border-top-right-radius: 0.75rem;
}
table.shop_table.cart th:last-child {
  border-top-left-radius: 0.75rem;
}

table.shop_table.cart td {
  padding: 1rem;
  border-bottom: 1px solid rgba(204, 198, 189, 0.4);
  vertical-align: middle;
  font-size: 0.875rem;
}

table.shop_table.cart .product-remove a.remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background-color: #f5f2ee;
  color: #ba1a1a !important;
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none;
  transition: all 0.2s;
}

table.shop_table.cart .product-remove a.remove:hover {
  background-color: #fee2e2;
  transform: scale(1.1);
}

table.shop_table.cart th.product-thumbnail,
table.shop_table.cart td.product-thumbnail {
  width: 90px;
  min-width: 90px;
  text-align: center;
}

table.shop_table.cart .product-thumbnail .product-studio-stage,
table.shop_table.cart .product-thumbnail img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid #e5e0d8;
  margin: 0 auto;
}

table.shop_table.cart th.product-name,
table.shop_table.cart td.product-name {
  text-align: right;
  padding-right: 0.75rem;
}

table.shop_table.cart .product-name a {
  color: #000000;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.95rem;
}

table.shop_table.cart .product-name a:hover {
  color: #82533c;
}

table.shop_table.cart th.product-price,
table.shop_table.cart td.product-price {
  width: 130px;
  text-align: center;
  font-weight: 600;
  color: #4D453E;
  white-space: nowrap;
}

table.shop_table.cart th.product-quantity,
table.shop_table.cart td.product-quantity {
  width: 120px;
  text-align: center;
}

table.shop_table.cart th.product-subtotal,
table.shop_table.cart td.product-subtotal {
  width: 130px;
  text-align: center;
  font-weight: 700;
  color: #1E3F35;
  white-space: nowrap;
  font-size: 0.95rem;
}

table.shop_table.cart th.product-remove,
table.shop_table.cart td.product-remove {
  width: 50px;
  text-align: center;
}

table.shop_table.cart td.actions {
  display: table-cell;
  padding: 1.5rem 0.5rem 0.5rem;
  border-bottom: none;
  width: 100%;
}

table.shop_table.cart td.actions .actions-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

table.shop_table.cart td.actions .coupon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

table.shop_table.cart td.actions .coupon input.input-text {
  min-width: 160px;
  height: 2.75rem;
  padding: 0 1rem;
  border-radius: 0.75rem;
  border: 1px solid #ccc6bd;
  background-color: #ffffff;
  outline: none;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.875rem;
}

table.shop_table.cart td.actions .coupon input.input-text:focus {
  border-color: #82533c;
  box-shadow: 0 0 0 2px rgba(130, 83, 60, 0.15);
}

table.shop_table.cart td.actions button.button {
  height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 0.75rem;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

table.shop_table.cart td.actions button[name="apply_coupon"] {
  background-color: #1E3F35;
  color: #ffffff;
  border: 1px solid #1E3F35;
}

table.shop_table.cart td.actions button[name="apply_coupon"]:hover {
  background-color: #142a23;
}

table.shop_table.cart td.actions button[name="update_cart"] {
  background-color: #f5f2ee;
  color: #1c1b1a;
  border: 1px solid #ccc6bd;
}

table.shop_table.cart td.actions button[name="update_cart"]:hover:not(:disabled) {
  background-color: #e8e3dc;
}

table.shop_table.cart td.actions button[name="update_cart"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive Mobile Cart (< 768px) */
@media (max-width: 768px) {
  .woocommerce-cart-form {
    padding: 1rem 0.75rem !important;
    overflow-x: visible !important;
  }
  table.shop_table.cart thead {
    display: none !important;
  }
  table.shop_table.cart,
  table.shop_table.cart tbody {
    display: block !important;
    width: 100% !important;
  }
  table.shop_table.cart tr.cart_item {
    display: grid !important;
    grid-template-columns: 80px 1fr !important;
    grid-template-rows: auto auto auto !important;
    column-gap: 1rem !important;
    row-gap: 0.35rem !important;
    padding: 1.25rem 0 !important;
    border-bottom: 1px solid rgba(204, 198, 189, 0.4) !important;
    position: relative !important;
  }
  table.shop_table.cart tr.cart_item td {
    display: block !important;
    padding: 0 !important;
    border: none !important;
    text-align: right !important;
  }
  table.shop_table.cart tr.cart_item td.product-remove {
    position: absolute !important;
    top: 1.25rem !important;
    left: 0 !important;
    width: auto !important;
    z-index: 10 !important;
  }
  table.shop_table.cart tr.cart_item td.product-thumbnail {
    grid-column: 1 !important;
    grid-row: 1 / span 3 !important;
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
  }
  table.shop_table.cart tr.cart_item td.product-thumbnail .product-studio-stage,
  table.shop_table.cart tr.cart_item td.product-thumbnail img {
    width: 80px !important;
    height: 80px !important;
  }
  table.shop_table.cart tr.cart_item td.product-name {
    grid-column: 2 !important;
    padding-left: 2rem !important;
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
  }
  table.shop_table.cart tr.cart_item td.product-price {
    grid-column: 2 !important;
    font-size: 0.8125rem !important;
    color: #6B7280 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
  }
  table.shop_table.cart tr.cart_item td.product-price::before {
    content: "قیمت واحد: ";
    font-weight: 400;
  }
  table.shop_table.cart tr.cart_item td.product-quantity {
    grid-column: 2 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-top: 0.25rem !important;
  }
  table.shop_table.cart tr.cart_item td.product-quantity .quantity {
    display: inline-flex !important;
  }
  table.shop_table.cart tr.cart_item td.product-subtotal {
    grid-column: 1 / span 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #fbf8f5 !important;
    padding: 0.65rem 0.85rem !important;
    border-radius: 0.5rem !important;
    margin-top: 0.5rem !important;
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    color: #1E3F35 !important;
  }
  table.shop_table.cart tr.cart_item td.product-subtotal::before {
    content: "مجموع جزء:";
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    color: #4D453E !important;
  }
  table.shop_table.cart td.actions {
    display: block !important;
    padding: 1.25rem 0 0 !important;
    width: 100% !important;
  }
  table.shop_table.cart td.actions .actions-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }
  table.shop_table.cart td.actions .coupon {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 0.625rem !important;
    margin-bottom: 0.5rem !important;
  }
  table.shop_table.cart td.actions .coupon input.input-text {
    width: 100% !important;
    height: 2.75rem !important;
  }
  table.shop_table.cart td.actions .coupon button.button {
    width: 100% !important;
    height: 2.75rem !important;
    border-radius: 0.75rem !important;
  }
  table.shop_table.cart td.actions > button.button[name="update_cart"] {
    width: 100% !important;
    height: 2.75rem !important;
    border-radius: 0.75rem !important;
  }
}

/* Shipping Calculator in Cart */
.shipping-calculator-form {
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.shipping-calculator-form p.form-row {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}
.shipping-calculator-form select,
.shipping-calculator-form input.input-text {
  width: 100% !important;
  height: 2.75rem !important;
  border-radius: 0.75rem !important;
  border: 1px solid #ccc6bd !important;
  background-color: #fafaf8 !important;
  padding: 0 0.85rem !important;
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 0.875rem !important;
}
.shipping-calculator-form button.button[name="calc_shipping"] {
  width: 100% !important;
  height: 2.75rem !important;
  border-radius: 0.75rem !important;
  background-color: #1E3F35 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-family: 'Vazirmatn', sans-serif !important;
  transition: all 0.2s !important;
}
.shipping-calculator-form button.button[name="calc_shipping"]:hover {
  background-color: #142a23 !important;
}


/* Cart Collaterals & Totals */
.cart-collaterals .cart_totals {
  background: #ffffff;
  border: 1px solid rgba(204, 198, 189, 0.6);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(28, 27, 26, 0.03);
}

.cart-collaterals .cart_totals h2 {
  font-family: 'Vazirmatn', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #ccc6bd;
}

.cart-collaterals .cart_totals table.shop_table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
  text-align: right;
}

.cart-collaterals .cart_totals table.shop_table th,
.cart-collaterals .cart_totals table.shop_table td {
  padding: 0.75rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(204, 198, 189, 0.4);
}

.cart-collaterals .cart_totals table.shop_table th {
  color: #4d453e;
  font-weight: 500;
  width: 40%;
}

.cart-collaterals .cart_totals table.shop_table td {
  font-weight: 700;
  color: #000000;
}

.cart-collaterals .cart_totals .wc-proceed-to-checkout a.checkout-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 3rem !important;
  border-radius: 0.75rem !important;
  background-color: #82533c !important;
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(130, 83, 60, 0.3) !important;
  transition: all 0.2s !important;
}

.cart-collaterals .cart_totals .wc-proceed-to-checkout a.checkout-button:hover {
  background-color: #000000 !important;
  transform: translateY(-1px) !important;
}

/* Empty Cart State */
.cart-empty.woocommerce-info {
  background-color: #fbf8f5 !important;
  border: 1px dashed #ccc6bd !important;
  border-radius: 1rem !important;
  padding: 3rem 1.5rem !important;
  text-align: center !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  color: #1c1b1a !important;
}

.return-to-shop {
  text-align: center;
  margin-top: 1.5rem;
}

.return-to-shop a.button {
  padding: 0.75rem 2rem !important;
  font-size: 1rem !important;
  background-color: #000000 !important;
  color: #ffffff !important;
  border-radius: 0.75rem !important;
}

/* ==========================================================================
   WooCommerce Checkout Page
   ========================================================================== */
form.woocommerce-checkout {
  width: 100%;
  text-align: right;
  direction: rtl;
  font-family: 'Vazirmatn', system-ui, sans-serif;
}

/* Field Wrappers Grid */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

@media (max-width: 640px) {
  .woocommerce-billing-fields__field-wrapper,
  .woocommerce-shipping-fields__field-wrapper,
  .woocommerce-additional-fields__field-wrapper {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

.woocommerce-billing-fields__field-wrapper .form-row,
.woocommerce-shipping-fields__field-wrapper .form-row,
.woocommerce-additional-fields__field-wrapper .form-row {
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  float: none !important;
}

.woocommerce-billing-fields__field-wrapper .form-row.form-row-wide,
.woocommerce-billing-fields__field-wrapper p[id*="_address_1_field"],
.woocommerce-billing-fields__field-wrapper p[id*="_address_2_field"],
.woocommerce-billing-fields__field-wrapper p[id*="_country_field"],
.woocommerce-shipping-fields__field-wrapper .form-row.form-row-wide,
.woocommerce-shipping-fields__field-wrapper p[id*="_address_1_field"],
.woocommerce-shipping-fields__field-wrapper p[id*="_country_field"],
.woocommerce-additional-fields__field-wrapper .form-row,
.woocommerce-additional-fields__field-wrapper .notes {
  grid-column: 1 / -1 !important;
}

@media (min-width: 641px) {
  .woocommerce-billing-fields__field-wrapper .form-row.form-row-first,
  .woocommerce-shipping-fields__field-wrapper .form-row.form-row-first {
    grid-column: 1 / 2 !important;
  }
  
  .woocommerce-billing-fields__field-wrapper .form-row.form-row-last,
  .woocommerce-shipping-fields__field-wrapper .form-row.form-row-last {
    grid-column: 2 / 3 !important;
  }
}

/* Checkout & General Form Labels */
.woocommerce-billing-fields__field-wrapper .form-row label,
.woocommerce-shipping-fields__field-wrapper .form-row label,
.woocommerce-additional-fields__field-wrapper .form-row label,
.woocommerce-checkout label {
  display: block !important;
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #2A2421 !important;
  margin-bottom: 0.35rem !important;
}

.woocommerce-billing-fields__field-wrapper .form-row label .required,
.woocommerce-shipping-fields__field-wrapper .form-row label .required,
.woocommerce-checkout label .required {
  color: #A85338 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

/* Inputs, Selects & Textareas */
.woocommerce-billing-fields__field-wrapper .form-row input.input-text,
.woocommerce-billing-fields__field-wrapper .form-row select,
.woocommerce-billing-fields__field-wrapper .form-row textarea,
.woocommerce-shipping-fields__field-wrapper .form-row input.input-text,
.woocommerce-shipping-fields__field-wrapper .form-row select,
.woocommerce-shipping-fields__field-wrapper .form-row textarea,
.woocommerce-additional-fields__field-wrapper .form-row textarea,
.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  border-radius: 0.75rem !important;
  border: 1px solid #D8CEBE !important;
  background-color: #FFFFFF !important;
  color: #2A2421 !important;
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 0.925rem !important;
  outline: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  box-sizing: border-box !important;
}

/* iOS font-size fix to prevent involuntary zooming on tap */
@media (max-width: 768px) {
  .woocommerce-billing-fields__field-wrapper .form-row input.input-text,
  .woocommerce-billing-fields__field-wrapper .form-row select,
  .woocommerce-billing-fields__field-wrapper .form-row textarea,
  .woocommerce-checkout input.input-text,
  .woocommerce-checkout select,
  .woocommerce-checkout textarea,
  textarea#order_comments {
    font-size: 16px !important;
  }
}

/* Order Comments / Additional Notes Textarea */
textarea#order_comments {
  width: 100% !important;
  min-height: 120px !important;
  padding: 0.875rem 1rem !important;
  border-radius: 0.875rem !important;
  border: 1px solid #D8CEBE !important;
  background-color: #FAFAF8 !important;
  color: #2A2421 !important;
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 0.925rem !important;
  line-height: 1.6 !important;
  resize: vertical !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  display: block !important;
  box-sizing: border-box !important;
}

textarea#order_comments:focus {
  background-color: #FFFFFF !important;
  border-color: #A85338 !important;
  box-shadow: 0 0 0 3px rgba(168, 83, 56, 0.12) !important;
}

.woocommerce-additional-fields p.form-row {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.woocommerce-additional-fields label {
  display: block !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  color: #2A2421 !important;
  margin-bottom: 0.5rem !important;
}

.woocommerce-billing-fields__field-wrapper .form-row input.input-text:focus,
.woocommerce-billing-fields__field-wrapper .form-row select:focus,
.woocommerce-billing-fields__field-wrapper .form-row textarea:focus,
.woocommerce-shipping-fields__field-wrapper .form-row input.input-text:focus,
.woocommerce-shipping-fields__field-wrapper .form-row textarea:focus,
.woocommerce-additional-fields__field-wrapper .form-row textarea:focus,
.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout textarea:focus {
  border-color: #A85338 !important;
  box-shadow: 0 0 0 3px rgba(168, 83, 56, 0.15) !important;
}

/* Select2 Dropdown Luxury Restyling */
.select2-container--default .select2-selection--single {
  height: 2.85rem !important;
  border: 1px solid #D8CEBE !important;
  border-radius: 0.75rem !important;
  background-color: #FFFFFF !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 0.5rem !important;
  direction: rtl !important;
  text-align: right !important;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: #A85338 !important;
  box-shadow: 0 0 0 3px rgba(168, 83, 56, 0.15) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 2.85rem !important;
  color: #2A2421 !important;
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 0.925rem !important;
  padding-right: 0.5rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 2.85rem !important;
  left: 0.75rem !important;
  right: auto !important;
}

.select2-dropdown {
  border: 1px solid #D8CEBE !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 10px 25px rgba(42, 36, 33, 0.1) !important;
  font-family: 'Vazirmatn', sans-serif !important;
  direction: rtl !important;
  text-align: right !important;
  overflow: hidden !important;
  z-index: 9999 !important;
}

.select2-results__option {
  padding: 0.65rem 1rem !important;
  font-size: 0.875rem !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #1E3F35 !important;
  color: #FFFFFF !important;
}

/* Order Review Table */
table.woocommerce-checkout-review-order-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
  text-align: right;
  font-family: 'Vazirmatn', sans-serif;
}

table.woocommerce-checkout-review-order-table th,
table.woocommerce-checkout-review-order-table td {
  padding: 0.75rem 0.25rem;
  border-bottom: 1px solid rgba(230, 223, 213, 0.7);
  font-size: 0.875rem;
}

table.woocommerce-checkout-review-order-table th {
  color: #6E655F;
  font-weight: 600;
}

table.woocommerce-checkout-review-order-table td.product-name {
  color: #2A2421;
}

table.woocommerce-checkout-review-order-table td.product-name img,
.woocommerce-checkout-review-order-table img {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  max-width: 52px !important;
  max-height: 52px !important;
  object-fit: cover !important;
  border-radius: 0.5rem !important;
  display: block !important;
}

table.woocommerce-checkout-review-order-table td.product-total,
table.woocommerce-checkout-review-order-table tfoot td {
  font-weight: 700;
  color: #1E3F35;
}

/* Payment Methods on Checkout */
#payment {
  background: transparent;
  padding: 0;
  margin: 0;
}

#payment ul.payment_methods {
  list-style: none !important;
  margin: 0 0 1.25rem 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#payment ul.payment_methods li.wc_payment_method {
  padding: 0.85rem 1rem;
  background: #FFFFFF;
  border: 1px solid #E6DFD5;
  border-radius: 0.875rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(42, 36, 33, 0.02);
}

#payment ul.payment_methods li.wc_payment_method:hover {
  border-color: #C8A26A;
}

#payment ul.payment_methods li.wc_payment_method label {
  font-weight: 600;
  font-size: 0.925rem;
  color: #2A2421;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

#payment ul.payment_methods li.wc_payment_method input[type="radio"] {
  accent-color: #A85338;
  width: 1.15rem;
  height: 1.15rem;
  cursor: pointer;
}

#payment ul.payment_methods li.wc_payment_method .payment_box {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background-color: #F9F6F0;
  border-radius: 0.5rem;
  border-right: 3px solid #A85338;
  font-size: 0.825rem;
  line-height: 1.6;
  color: #6E655F;
}

#payment .place-order {
  padding-top: 0.5rem;
  margin: 0;
}

#payment #place_order {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 3.5rem !important;
  background: linear-gradient(135deg, #B85D3B 0%, #964528 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 0.875rem !important;
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 16px rgba(184, 93, 59, 0.35) !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#payment #place_order:hover {
  filter: brightness(1.08) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(184, 93, 59, 0.45) !important;
}

#payment #place_order:active {
  transform: translateY(0) !important;
}

/* Coupon toggle on checkout */
.woocommerce-form-coupon-toggle {
  margin-bottom: 1.25rem;
}

.woocommerce-form-coupon-toggle .woocommerce-info {
  background-color: #FFFFFF !important;
  border: 1px dashed #D8CEBE !important;
  border-radius: 0.875rem !important;
  padding: 1rem 1.25rem !important;
  color: #2A2421 !important;
  font-size: 0.875rem !important;
}

.woocommerce-form-coupon-toggle .woocommerce-info a.showcoupon {
  color: #A85338 !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
}

form.checkout_coupon {
  background: #FFFFFF;
  border: 1px solid #D8CEBE;
  border-radius: 0.875rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

form.checkout_coupon input.input-text {
  flex: 1 1 200px;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #D8CEBE;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.925rem;
}

form.checkout_coupon button.button {
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  background-color: #1E3F35;
  color: #FFFFFF;
  font-weight: 700;
  font-family: 'Vazirmatn', sans-serif;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

form.checkout_coupon button.button:hover {
  background-color: #A85338;
}

/* ==========================================================================
   Order Received / Thank You Page
   ========================================================================== */
.woocommerce-order {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: right;
  font-family: 'Vazirmatn', sans-serif;
}

.woocommerce-thankyou-order-received {
  background-color: #f0fdf4 !important;
  border: 1px solid #86efac !important;
  color: #14532d !important;
  border-radius: 1rem !important;
  padding: 1.5rem !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  text-align: center !important;
  box-shadow: 0 2px 6px rgba(20, 83, 45, 0.06) !important;
}

ul.woocommerce-order-overview {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

ul.woocommerce-order-overview li {
  background: #ffffff;
  border: 1px solid rgba(204, 198, 189, 0.6);
  border-radius: 0.875rem;
  padding: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: #4d453e;
}

ul.woocommerce-order-overview li strong {
  display: block;
  margin-top: 0.25rem;
  color: #000000;
  font-weight: 700;
  font-size: 1rem;
}

/* ==========================================================================
   WooCommerce Catalog Ordering Select
   ========================================================================== */
.woocommerce-ordering {
  margin: 0;
}

.woocommerce-ordering select.orderby {
  background-color: #f5f2ee !important;
  color: #1c1b1a !important;
  border: 1px solid #ccc6bd !important;
  border-radius: 0.75rem !important;
  padding: 0.5rem 1rem !important;
  font-family: 'Vazirmatn', sans-serif !important;
  font-size: 0.875rem !important;
  cursor: pointer !important;
  outline: none !important;
  transition: border-color 0.2s !important;
  max-width: 100% !important;
}

@media (max-width: 640px) {
  .woocommerce-ordering select.orderby {
    padding: 0.375rem 0.5rem !important;
    font-size: 0.75rem !important;
    border-radius: 0.5rem !important;
  }
}

.woocommerce-ordering select.orderby:focus {
  border-color: #82533c !important;
}

/* ==========================================================================
   Variable Product Add-to-Cart Variations
   ========================================================================== */
.venous-variable-cart-wrapper table.variations {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
}

.venous-variable-cart-wrapper table.variations th.label {
  padding: 0.75rem 0;
  color: #1c1b1a;
  font-weight: 600;
  font-size: 0.875rem;
  width: 25%;
  text-align: right;
  vertical-align: middle;
}

.venous-variable-cart-wrapper table.variations td.value {
  padding: 0.75rem 0;
  text-align: right;
  vertical-align: middle;
}

.venous-variable-cart-wrapper table.variations select {
  width: 100%;
  max-width: 280px;
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #ccc6bd;
  background-color: #ffffff;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 0.875rem;
  color: #1c1b1a;
  outline: none;
  transition: border-color 0.2s;
}

.venous-variable-cart-wrapper table.variations select:focus {
  border-color: #82533c;
  box-shadow: 0 0 0 2px rgba(130, 83, 60, 0.15);
}

.venous-variable-cart-wrapper a.reset_variations {
  display: inline-block;
  margin-right: 0.75rem;
  color: #ba1a1a;
  font-size: 0.75rem;
  text-decoration: underline;
}

.venous-variable-cart-wrapper .single_variation_wrap {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(204, 198, 189, 0.4);
}

.venous-variable-cart-wrapper .woocommerce-variation-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 1rem;
}

.venous-variable-cart-wrapper .woocommerce-variation-add-to-cart {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.venous-variable-cart-wrapper .woocommerce-variation-add-to-cart .quantity input.qty {
  width: 4rem;
  height: 3rem;
  border-radius: 0.75rem;
  border: 1px solid #ccc6bd;
  text-align: center;
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.venous-variable-cart-wrapper .single_add_to_cart_button {
  flex: 1 1 200px;
  height: 3rem !important;
  background-color: #000000 !important;
  color: #ffffff !important;
  border-radius: 0.75rem !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.2s !important;
}

.venous-variable-cart-wrapper .single_add_to_cart_button:hover {
  background-color: #82533c !important;
  transform: translateY(-1px) !important;
}

/* WooCommerce Thank You & Order Received Page Polish */
.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-customer-details {
  display: none !important;
}

/* Order Pay Page Polish */
.woocommerce-page.woocommerce-order-pay main {
  background-color: #F9F6F0;
}



