/* =========================================================
   Iran Decor Hookah — WooCommerce styles
   Shop archive, single product, cart, checkout, my account.
   Uses the same CSS variables defined in style.css :root
   ========================================================= */

/* === SHOP LAYOUT (sidebar + grid) === */
.shop-layout{display:grid;grid-template-columns:260px 1fr;gap:40px;align-items:flex-start;}
.shop-sidebar{position:sticky;top:112px;display:flex;flex-direction:column;gap:24px;}
.shop-sidebar .widget{
  background:var(--bg-panel);border:1px solid var(--line);border-radius:10px;padding:22px;
}
.shop-sidebar .widget-title{
  font-size:15px;font-weight:700;color:var(--smoke);margin-bottom:16px;
  padding-bottom:12px;border-bottom:1px solid var(--line);
}
.widget-cats ul li{margin-bottom:2px;}
.widget-cats ul li a{
  display:flex;align-items:center;justify-content:space-between;
  padding:9px 4px;border-radius:6px;color:var(--smoke-dim);font-size:14px;transition:all .2s;
}
.widget-cats ul li a:hover, .widget-cats ul li.active a{color:var(--ember-bright);background:rgba(201,118,47,0.08);}
.widget-cats ul li a span{
  font-size:11px;color:var(--smoke-dim);background:rgba(185,154,100,0.12);
  border-radius:20px;padding:1px 8px;
}
.widget-promo img{border-radius:8px;margin-bottom:14px;aspect-ratio:4/3;object-fit:cover;}
.widget-promo h6{font-size:15px;color:var(--smoke);margin-bottom:8px;}
.widget-promo p{font-size:13px;color:var(--smoke-dim);line-height:1.8;margin-bottom:16px;}
.btn-block{width:100%;justify-content:center;}

.shop-main{min-width:0;}
.shop-toolbar{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;
  margin-bottom:26px;padding-bottom:20px;border-bottom:1px solid var(--line);
}
.shop-toolbar-count{font-size:13.5px;color:var(--smoke-dim);}
.shop-toolbar-order select{
  appearance:none;-webkit-appearance:none;-moz-appearance:none;
  background:var(--bg-panel)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23B99A64' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    no-repeat left 12px center;
  border:1px solid var(--line);color:var(--smoke);
  padding:9px 36px 9px 14px;border-radius:6px;font-size:13.5px;cursor:pointer;
}
.shop-toolbar-order select::-ms-expand{display:none;}
.shop-main .products-grid{grid-template-columns:repeat(3,1fr);gap:24px;}

/* Pagination */
.woocommerce-pagination,.page-numbers{list-style:none;display:flex;gap:8px;justify-content:center;margin-top:50px;}
.woocommerce-pagination ul{display:flex;gap:8px;justify-content:center;}
.page-numbers li{display:inline-block;}
.page-numbers a, .page-numbers span{
  display:flex;align-items:center;justify-content:center;
  width:38px;height:38px;border-radius:6px;border:1px solid var(--line);
  color:var(--smoke-dim);font-size:13.5px;transition:all .2s;
}
.page-numbers a:hover, .page-numbers span.current{
  background:linear-gradient(135deg,var(--ember),var(--ember-bright));border-color:var(--ember);color:#14100D;
}

/* No products found */
.woocommerce-info{
  background:var(--bg-panel);border:1px solid var(--line);border-radius:10px;
  padding:30px;color:var(--smoke-dim);text-align:center;font-size:14.5px;
}

@media (max-width:900px){
  .shop-layout{grid-template-columns:1fr;}
  .shop-sidebar{position:static;}
  .shop-main .products-grid{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:560px){
  .shop-main .products-grid{grid-template-columns:1fr;}
}

/* Disabled add-to-cart (out of stock) */
.add-cart-btn--disabled{
  opacity:.5;cursor:not-allowed;pointer-events:none;
}
.product-tag--out{background:#3a2f22;}

/* =========================================================
   SINGLE PRODUCT
   ========================================================= */
.product-single-grid{display:grid;grid-template-columns:1fr 1fr;gap:60px;margin-bottom:70px;}

.product-gallery{position:sticky;top:112px;}
.product-gallery-main{
  position:relative;border-radius:14px;overflow:hidden;
  background:linear-gradient(160deg,#1F1712,#171210);
  border:1px solid var(--line);
  aspect-ratio:1/1;
}
.product-gallery-main .product-tag{top:16px;}
.main-gallery-img{width:100%;height:100%;object-fit:cover;}
.product-gallery-thumbs{display:flex;gap:12px;margin-top:14px;flex-wrap:wrap;}
.gallery-thumb{
  width:76px;height:76px;border-radius:8px;overflow:hidden;
  border:1.5px solid var(--line);cursor:pointer;padding:0;background:none;flex-shrink:0;
  transition:border-color .2s;
}
.gallery-thumb img{width:100%;height:100%;object-fit:cover;}
.gallery-thumb.active, .gallery-thumb:hover{border-color:var(--ember);}

.product-summary{padding-top:6px;}
.product-summary .product-cat{
  font-size:12.5px;color:var(--brass);letter-spacing:.6px;display:flex;align-items:center;gap:6px;margin-bottom:14px;
}
.product-summary .product-cat::before{content:'';width:5px;height:5px;border-radius:50%;background:var(--ember);}
.product-title{
  font-family:var(--font-display);font-size:clamp(24px,3vw,34px);font-weight:800;color:var(--smoke);
  margin-bottom:16px;line-height:1.4;
}
.product-summary-meta{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:20px;font-size:13.5px;color:var(--smoke-dim);}
.product-summary-meta .product-rating{color:var(--ember-bright);font-size:13px;}
.product-stock{padding:4px 12px;border-radius:20px;font-size:12px;font-weight:600;}
.product-stock.in-stock{background:rgba(90,150,90,0.15);color:#8fce8f;}
.product-stock.out-stock{background:rgba(180,80,70,0.15);color:#e08a80;}

.product-price-block{
  font-size:30px;font-weight:800;color:var(--ember-bright);
  padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid var(--line);
}
.product-price-block del{font-size:17px;color:var(--smoke-dim);font-weight:500;margin-left:10px;}
.product-price-block ins{text-decoration:none;}

.product-short-desc{color:var(--smoke-dim);line-height:2;font-size:14.5px;margin-bottom:28px;}

.variation-row{margin-bottom:16px;}
.variation-row label{display:block;font-size:13.5px;color:var(--smoke);margin-bottom:8px;font-weight:600;}
.idh-variation-select{
  width:100%;background:var(--bg-panel);border:1px solid var(--line);color:var(--smoke);
  padding:12px 14px;border-radius:6px;font-size:14px;
}

.product-add-to-cart-row{display:flex;align-items:center;gap:16px;margin:26px 0;flex-wrap:wrap;}
.qty-stepper{
  display:flex;align-items:center;border:1px solid var(--line);border-radius:6px;overflow:hidden;height:52px;
}
.qty-stepper button{
  width:44px;height:100%;background:var(--bg-panel);color:var(--smoke);border:none;font-size:18px;cursor:pointer;
  transition:background .2s;
}
.qty-stepper button:hover{background:var(--bg-panel-2);color:var(--ember-bright);}
.qty-stepper .qty-input,
.qty-stepper input.qty{
  width:56px;text-align:center;background:transparent;border:none;color:var(--smoke);font-size:15px;height:100%;
  -moz-appearance:textfield;
}
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
.qty-stepper--sm{height:42px;}
.qty-stepper--sm button{width:36px;font-size:16px;}

.btn-add-to-cart{flex:1;min-width:200px;justify-content:center;height:52px;}
.out-of-stock-msg{color:var(--smoke-dim);margin-bottom:16px;line-height:1.9;font-size:14px;}

.product-trust-list{margin:30px 0;display:flex;flex-direction:column;gap:12px;}
.product-trust-list li{display:flex;align-items:center;gap:10px;font-size:13.5px;color:var(--smoke-dim);}
.product-trust-list svg{width:18px;height:18px;color:var(--brass);flex-shrink:0;}

.product-share{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--smoke-dim);}
.product-share a{
  width:34px;height:34px;border-radius:50%;border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;color:var(--smoke-dim);transition:all .2s;
}
.product-share a:hover{color:var(--ember-bright);border-color:var(--ember);}
.product-share svg{width:16px;height:16px;}

/* Tabs */
.product-tabs{margin-bottom:80px;}
.product-tabs-nav{display:flex;gap:8px;border-bottom:1px solid var(--line);margin-bottom:34px;}
.tab-btn{
  background:none;border:none;color:var(--smoke-dim);font-size:14.5px;font-weight:600;
  padding:14px 22px;cursor:pointer;position:relative;transition:color .2s;
}
.tab-btn::after{content:'';position:absolute;bottom:-1px;right:0;left:0;height:2px;background:transparent;transition:background .2s;}
.tab-btn.active{color:var(--ember-bright);}
.tab-btn.active::after{background:var(--ember);}
.product-tab-panel{display:none;color:var(--smoke-dim);line-height:2;font-size:14.5px;}
.product-tab-panel.active{display:block;}

.related-products{margin-top:20px;}
.related-products .section-header{text-align:center;max-width:640px;margin:0 auto 40px;}

@media (max-width:900px){
  .product-single-grid{grid-template-columns:1fr;gap:36px;}
  .product-gallery{position:static;}
}

/* =========================================================
   CART PAGE
   ========================================================= */
.cart-layout{display:grid;grid-template-columns:1fr 340px;gap:40px;align-items:flex-start;}

.cart-table{width:100%;border-collapse:collapse;}
.cart-table thead th{
  text-align:right;font-size:12.5px;color:var(--smoke-dim);font-weight:600;letter-spacing:.4px;
  padding:0 4px 16px;border-bottom:1px solid var(--line);
}
.cart-table .cart-th-qty, .cart-table .cart-th-total, .cart-table .cart-th-price{text-align:center;}
.cart-row td{padding:22px 4px;border-bottom:1px solid var(--line);vertical-align:middle;}
.cart-product-inner{display:flex;align-items:center;gap:16px;}
.cart-product-thumb{width:74px;height:74px;border-radius:8px;overflow:hidden;flex-shrink:0;background:var(--bg-panel);}
.cart-product-thumb img{width:100%;height:100%;object-fit:cover;}
.cart-product-info a{color:var(--smoke);font-size:14.5px;font-weight:600;line-height:1.6;}
.cart-product-info a:hover{color:var(--ember-bright);}
.cart-product-info dl{font-size:12px;color:var(--smoke-dim);margin-top:6px;}
.cart-td-price, .cart-td-total{text-align:center;font-size:14px;color:var(--smoke);white-space:nowrap;}
.cart-td-total{color:var(--ember-bright);font-weight:700;}
.cart-td-qty{text-align:center;}
.cart-td-remove{width:44px;text-align:center;}
.remove-item{
  width:34px;height:34px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;
  color:var(--smoke-dim);transition:all .2s;
}
.remove-item:hover{color:#e08a80;background:rgba(180,80,70,0.1);}
.remove-item svg{width:15px;height:15px;}

.cart-actions-row{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;margin-top:28px;}
.cart-coupon{display:flex;gap:10px;}
.coupon-input{
  background:var(--bg-panel);border:1px solid var(--line);color:var(--smoke);
  padding:0 16px;border-radius:6px;height:48px;font-size:13.5px;min-width:180px;
}

.cart-summary-box{
  background:var(--bg-panel);border:1px solid var(--line);border-radius:12px;padding:28px;
  position:sticky;top:112px;
}
.cart-summary-box h3{font-family:var(--font-display);font-size:19px;color:var(--smoke);margin-bottom:22px;}
.cart-summary-rows{display:flex;flex-direction:column;gap:14px;padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid var(--line);}
.cart-summary-row{display:flex;justify-content:space-between;font-size:13.5px;color:var(--smoke-dim);}
.cart-summary-row--shipping{display:block;}
.cart-summary-row--shipping ul{list-style:none;margin-top:6px;}
.cart-summary-row--shipping li{margin-bottom:4px;}
.cart-summary-row--shipping label{color:var(--smoke-dim);cursor:pointer;}
.cart-summary-total{font-size:16px;color:var(--smoke);font-weight:800;margin-bottom:24px;}
.cart-summary-total span:last-child{color:var(--ember-bright);font-size:19px;}
.continue-shopping-link{display:block;text-align:center;margin-top:14px;font-size:13px;color:var(--smoke-dim);}
.continue-shopping-link:hover{color:var(--ember-bright);}

.cart-empty{
  text-align:center;padding:100px 20px;max-width:420px;margin:0 auto;
}
.cart-empty svg{width:64px;height:64px;color:var(--brass-dim);margin:0 auto 24px;}
.cart-empty h2{font-family:var(--font-display);font-size:24px;color:var(--smoke);margin-bottom:12px;}
.cart-empty p{color:var(--smoke-dim);margin-bottom:28px;font-size:14.5px;}

@media (max-width:900px){
  .cart-layout{grid-template-columns:1fr;}
  .cart-table thead{display:none;}
  .cart-row{display:block;}
  .cart-row td{display:flex;justify-content:space-between;align-items:center;border:none;padding:8px 4px;}
  .cart-row td[data-label]::before{content:attr(data-label);font-size:12px;color:var(--smoke-dim);}
  .cart-row{border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:14px;}
  .cart-td-product{display:block !important;}
  .cart-summary-box{position:static;}
}

/* =========================================================
   CHECKOUT PAGE
   ========================================================= */
.checkout-wrap{max-width:1100px;margin:0 auto;}
.checkout-login-notice{
  background:var(--bg-panel);border:1px solid var(--line);border-radius:10px;padding:22px;margin-bottom:30px;
}
.checkout-login-notice a{color:var(--ember-bright);text-decoration:underline;}

.woocommerce-checkout .col2-set, .woocommerce-checkout .col-2-set{
  display:grid;grid-template-columns:1.2fr .8fr;gap:50px;align-items:flex-start;
}
.woocommerce-billing-fields h3, .woocommerce-additional-fields h3, #order_review_heading{
  font-family:var(--font-display);font-size:19px;color:var(--smoke);margin-bottom:22px;
}
.woocommerce-billing-fields__field-wrapper .form-row,
.woocommerce-additional-fields .form-row{margin-bottom:16px;}
.form-row label{display:block;font-size:13.5px;color:var(--smoke);margin-bottom:8px;font-weight:500;}
.form-row label .required{color:#e08a80;text-decoration:none;}
.form-row input[type=text], .form-row input[type=email], .form-row input[type=tel],
.form-row textarea, .form-row select,
.select2-container .select2-selection--single{
  width:100%;background:var(--bg-panel);border:1px solid var(--line);color:var(--smoke);
  padding:13px 14px;border-radius:6px;font-size:14px;height:auto;
}
.form-row textarea{min-height:90px;}
.form-row-first, .form-row-last{display:inline-block;width:48%;}
.form-row-first{margin-left:4%;}

/* Coupon toggle notice + reveal form ("Have a coupon? Click here to enter your code") */
.woocommerce-form-coupon-toggle .woocommerce-info{
  background:var(--bg-panel);border:1px solid var(--line);border-radius:10px;
  padding:16px 20px;color:var(--smoke-dim);font-size:14px;display:flex;align-items:center;justify-content:space-between;
  list-style:none;margin-bottom:24px;
}
.woocommerce-form-coupon-toggle .woocommerce-info a{color:var(--ember-bright);font-weight:600;}
.checkout_coupon.woocommerce-form-coupon{
  background:var(--bg-panel);border:1px solid var(--line);border-radius:10px;padding:22px;margin-bottom:24px;
  display:flex;gap:12px;flex-wrap:wrap;
}
.checkout_coupon.woocommerce-form-coupon .form-row{flex:1;min-width:200px;margin-bottom:0 !important;}
.checkout_coupon.woocommerce-form-coupon .form-row-last{width:auto;flex:0 0 auto;}

/* Ship to a different address toggle */
#ship-to-different-address{
  margin:24px 0 4px;
  padding:14px 16px;
  background:var(--bg-void);
  border:1px solid var(--line);
  border-radius:8px;
}
#ship-to-different-address label{
  display:flex;align-items:center;gap:10px;color:var(--smoke);font-size:14px;cursor:pointer;font-weight:500;
}
#ship-to-different-address input[type="checkbox"]{accent-color:var(--ember);width:17px;height:17px;}

/* The revealed shipping fields — given their own distinct card so they
   read as a separate section, not a duplicate of the billing form above */
.shipping_address{
  margin-top:16px;
  padding:22px 22px 6px;
  background:var(--bg-void);
  border:1px dashed var(--brass-dim);
  border-radius:10px;
}
.shipping_address::before{
  content:'آدرس ارسال جداگانه';
  display:block;
  font-family:var(--font-display);
  font-size:14.5px;font-weight:700;
  color:var(--brass);
  margin-bottom:18px;
  padding-bottom:14px;
  border-bottom:1px solid var(--line);
}
.woocommerce-shipping-fields__field-wrapper{margin-top:0;}

/* Order notes textarea */
#order_comments{min-height:100px;}

/* Select2 dropdown (used for the country/state selector) — restyle to match
   our theme instead of the browser/plugin default look. */
.select2-container{width:100% !important;}
.select2-container .select2-selection--single{display:flex;align-items:center;}
.select2-container .select2-selection__rendered{
  color:var(--smoke) !important;padding:0 !important;line-height:normal !important;
}
.select2-container .select2-selection__arrow{height:100% !important;}
.select2-container--default .select2-selection__arrow b{border-color:var(--smoke-dim) transparent transparent transparent !important;}
.select2-dropdown{
  background:var(--bg-panel) !important;border:1px solid var(--line) !important;border-radius:6px !important;overflow:hidden;
}
.select2-search--dropdown .select2-search__field{
  background:var(--bg-void) !important;border:1px solid var(--line) !important;color:var(--smoke) !important;
  border-radius:6px !important;padding:8px 10px !important;
}
.select2-results__option{color:var(--smoke-dim) !important;padding:10px 14px !important;}
.select2-results__option--highlighted{background:var(--ember) !important;color:#171210 !important;}
.select2-container--default .select2-results__option[aria-selected="true"]{background:var(--bg-panel-2) !important;}

#order_review{
  background:var(--bg-panel);border:1px solid var(--line);border-radius:12px;padding:28px;
  position:sticky;top:112px;
}
table.shop_table{width:100%;border-collapse:collapse;font-size:13.5px;}
table.shop_table th, table.shop_table td{padding:12px 4px;border-bottom:1px solid var(--line);color:var(--smoke-dim);text-align:right;}
table.shop_table .product-name{color:var(--smoke);}
table.shop_table .order-total td{font-weight:800;color:var(--smoke);font-size:16px;}
table.shop_table .order-total .woocommerce-Price-amount{color:var(--ember-bright);}

.wc_payment_methods{list-style:none;margin-top:20px;}
.wc_payment_method{
  border:1px solid var(--line);border-radius:8px;padding:14px 16px;margin-bottom:10px;
}
.wc_payment_method label{color:var(--smoke);font-size:14px;font-weight:600;cursor:pointer;}
.wc_payment_method input[type="radio"]{accent-color:var(--ember);width:16px;height:16px;margin-left:8px;vertical-align:middle;}
.payment_box{
  background:rgba(185,154,100,0.06);border-radius:6px;padding:14px;margin-top:12px;font-size:13px;color:var(--smoke-dim);
}

/* Safety net: ANY other generic WooCommerce button we didn't explicitly
   restyle (e.g. "Proceed to checkout", "[Apply coupon]", core notice
   buttons) should never fall back to WooCommerce's own default purple —
   it should always match our theme. */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .wc-proceed-to-checkout a.checkout-button{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:14px 28px;font-size:14px;font-weight:600;font-family:var(--font-body);
  border-radius:6px;border:1px solid transparent;cursor:pointer;
  background:linear-gradient(135deg, var(--ember), var(--ember-bright));
  color:#171210 !important;transition:all .3s;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover{
  transform:translateY(-2px);box-shadow:0 12px 30px -8px rgba(201,118,47,0.5);
}
#place_order{
  width:100%;margin-top:20px;
  display:flex;align-items:center;justify-content:center;gap:10px;
  padding:16px 32px;font-size:15px;font-weight:700;font-family:var(--font-body);
  border-radius:6px;border:1px solid transparent;cursor:pointer;
  background:linear-gradient(135deg, var(--ember), var(--ember-bright));
  color:#171210;transition:all .3s;
}
#place_order:hover{transform:translateY(-2px);box-shadow:0 12px 30px -8px rgba(201,118,47,0.5);}

@media (max-width:900px){
  .woocommerce-checkout .col2-set, .woocommerce-checkout .col-2-set{grid-template-columns:1fr;}
  #order_review{position:static;}
  .form-row-first, .form-row-last{width:100%;margin-left:0;}
}

/* =========================================================
   MY ACCOUNT
   ========================================================= */
.woocommerce-account .shop-container,
.woocommerce-account .woocommerce{
  display:grid;grid-template-columns:240px 1fr;gap:40px;align-items:flex-start;
}
/* Logged-out login/register screen has no nav sidebar — its single child
   (the content panel) should span full width instead of being squeezed
   into the 240px nav column. */
.woocommerce-account .shop-container > *:only-child,
.woocommerce-account .woocommerce > *:only-child{
  grid-column:1 / -1;
}
/* Explicit wrapper we control ourselves (page.php), independent of
   whatever internal DOM structure WooCommerce's account shortcode
   happens to output — the reliable source of truth for this layout. */
.idh-account-layout{
  display:grid;grid-template-columns:240px 1fr;gap:40px;align-items:flex-start;
}
.idh-account-layout > *:only-child{grid-column:1 / -1;}
@media (max-width:900px){
  .idh-account-layout{grid-template-columns:1fr;}
}
.woocommerce-MyAccount-navigation ul{
  background:var(--bg-panel);border:1px solid var(--line);border-radius:10px;overflow:hidden;
}
.woocommerce-MyAccount-navigation li{border-bottom:1px solid var(--line);}
.woocommerce-MyAccount-navigation li:last-child{border-bottom:none;}
.woocommerce-MyAccount-navigation li a{
  display:block;padding:14px 18px;font-size:14px;color:var(--smoke-dim);transition:all .2s;
}
.woocommerce-MyAccount-navigation li.is-active a, .woocommerce-MyAccount-navigation li a:hover{
  color:var(--ember-bright);background:rgba(201,118,47,0.08);
}
.woocommerce-MyAccount-content{
  background:var(--bg-panel);border:1px solid var(--line);border-radius:12px;padding:32px;
  color:var(--smoke-dim);line-height:1.9;font-size:14.5px;
}
.woocommerce-MyAccount-content a{color:var(--ember-bright);}
.woocommerce-MyAccount-content table{width:100%;border-collapse:collapse;margin-top:16px;}
.woocommerce-MyAccount-content table th, .woocommerce-MyAccount-content table td{
  padding:12px 6px;border-bottom:1px solid var(--line);text-align:right;font-size:13.5px;
}
.woocommerce-MyAccount-content .button, .woocommerce-Button{
  display:inline-flex;align-items:center;gap:8px;padding:10px 20px;font-size:13px;font-weight:600;
  border-radius:6px;border:1px solid var(--brass-dim);color:var(--smoke);background:transparent;cursor:pointer;transition:all .2s;
}
.woocommerce-Button:hover, .woocommerce-MyAccount-content .button:hover{
  background:linear-gradient(135deg,var(--ember),var(--ember-bright));border-color:var(--ember);color:#14100D;
}
.woocommerce-form-login, .woocommerce-form-register{max-width:440px;}
.woocommerce-form-row, .form-row{margin-bottom:16px;}
.woocommerce-form-login .form-row input, .woocommerce-form-register .form-row input{
  width:100%;background:var(--bg-void);border:1px solid var(--line);color:var(--smoke);
  padding:13px 14px;border-radius:6px;font-size:14px;
}
.woocommerce-form-login__rememberme{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--smoke-dim);}
.lost_password{margin-top:12px;}
.lost_password a{color:var(--brass);font-size:13px;}
.u-columns{display:grid;grid-template-columns:1fr 1fr;gap:50px;}

@media (max-width:900px){
  .woocommerce-account .shop-container,
  .woocommerce-account .woocommerce{grid-template-columns:1fr;}
  .u-columns{grid-template-columns:1fr;gap:30px;}
}

/* =========================================================
   GENERIC WOOCOMMERCE NOTICES (errors, success messages)
   ========================================================= */
.woocommerce-message, .woocommerce-error, .woocommerce-info{
  list-style:none;border-radius:8px;padding:16px 20px;margin-bottom:24px;font-size:14px;
  border:1px solid var(--line);background:var(--bg-panel);color:var(--smoke);
}
.woocommerce-error{border-color:rgba(180,80,70,0.4);color:#e08a80;}
.woocommerce-message{border-color:rgba(90,150,90,0.4);color:#8fce8f;}
.woocommerce-error li, .woocommerce-message li{list-style:none;}

/* Star rating (reviews / product loop) */
/* Star rating (reviews / product loop) — self-contained, doesn't rely on
   WooCommerce's own bundled "star" icon font (disabled via
   woocommerce_enqueue_styles) so ratings still render correctly. */
.star-rating{
  position:relative;display:inline-block;
  font-size:14px;line-height:1;letter-spacing:2px;
  width:5.4em;height:1em;overflow:hidden;
}
.star-rating::before{
  content:"★★★★★";
  position:absolute;top:0;right:0;
  color:rgba(185,154,100,.35);
}
.star-rating span{
  position:absolute;top:0;right:0;height:100%;overflow:hidden;
}
.star-rating span::before{
  content:"★★★★★";
  position:absolute;top:0;right:0;
  color:var(--ember-bright);
}

/* Quantity select2 chevrons, WC default select fix in RTL */
select{background-position:left 12px center !important;}

/* =========================================================
   PRICE FILTER WIDGET
   ========================================================= */
.idh-price-filter .price-inputs{display:flex;gap:10px;flex-direction:column;}
.idh-price-filter .price-field{display:flex;flex-direction:column;gap:4px;}
.idh-price-filter .price-field label{font-size:12px;color:var(--smoke-dim);}
.idh-price-filter .price-field input{
  background:var(--bg-void);border:1px solid var(--line);color:var(--smoke);
  padding:10px 12px;border-radius:6px;font-size:13px;width:100%;
  -moz-appearance:textfield;
}
.idh-price-filter .price-field input::-webkit-outer-spin-button,
.idh-price-filter .price-field input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
.idh-price-filter .price-field input:focus{outline:none;border-color:var(--ember);}

/* =========================================================
   STOCK FILTER WIDGET
   ========================================================= */
.widget-stock-filter ul li{margin-bottom:2px;}
.widget-stock-filter ul li a{
  display:block;padding:9px 4px;border-radius:6px;
  color:var(--smoke-dim);font-size:14px;transition:all .2s;
}
.widget-stock-filter ul li a:hover, .widget-stock-filter ul li.active a{
  color:var(--ember-bright);background:rgba(201,118,47,0.08);
}

/* =========================================================
   PRODUCT TAG (LABELS) FILTER
   ========================================================= */
.widget-tags .tag-list{display:flex;flex-wrap:wrap;gap:8px;}
.widget-tags .tag-list a{
  border:1px solid var(--line);padding:5px 12px;border-radius:20px;
  font-size:12px;color:var(--smoke-dim);transition:all .2s;
}
.widget-tags .tag-list a:hover, .widget-tags .tag-list a.active{
  border-color:var(--ember);color:var(--ember-bright);background:rgba(201,118,47,0.08);
}

/* =========================================================
   WOOCOMMERCE QUANTITY INPUT OVERRIDE
   (make WC's default quantity input fit our qty-stepper)
   ========================================================= */
.qty-stepper .quantity{display:inline-flex;align-items:center;}
.qty-stepper .quantity .qty{
  width:56px;text-align:center;background:transparent;border:none;
  color:var(--smoke);font-size:15px;height:100%;
  -moz-appearance:textfield;
}
.qty-stepper .quantity .qty::-webkit-outer-spin-button,
.qty-stepper .quantity .qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}

/* =========================================================
   DEFENSIVE FALLBACKS
   These were silently provided by WooCommerce's own default
   stylesheets (now disabled via woocommerce_enqueue_styles).
   Recreated here so nothing regresses.
   ========================================================= */

/* AJAX loading overlay (add-to-cart, cart/coupon updates, checkout refresh) */
.blockUI.blockOverlay{
  position:relative;
  pointer-events:none;
}
.blockUI.blockOverlay::before{
  content:'';
  position:absolute;inset:0;
  background:rgba(20,16,13,0.55);
  border-radius:inherit;
  z-index:1;
}
.blockUI.blockOverlay::after{
  content:'';
  position:absolute;top:50%;left:50%;
  width:28px;height:28px;margin:-14px 0 0 -14px;
  border:2px solid rgba(233,225,211,0.25);
  border-top-color:var(--ember-bright);
  border-radius:50%;
  animation:idhSpin .7s linear infinite;
  z-index:2;
}
@keyframes idhSpin{to{transform:rotate(360deg);}}

/* <mark> used inside "Showing X–Y of Z results" and price ranges */
mark{background:none;color:inherit;font-weight:600;}

/* Screen-reader-only text (accessibility labels WooCommerce relies on) */
.screen-reader-text{
  position:absolute !important;
  width:1px;height:1px;
  overflow:hidden;clip:rect(1px,1px,1px,1px);
  white-space:nowrap;border:0;padding:0;margin:-1px;
}

/* Base quantity input, for any .quantity not already wrapped in our
   .qty-stepper component */
.quantity .qty{
  width:60px;padding:8px 10px;
  background:var(--bg-panel);border:1px solid var(--line);color:var(--smoke);
  border-radius:6px;font-size:14px;text-align:center;
}

/* =========================================================
   MY ACCOUNT DASHBOARD — welcome banner + quick-action cards
   ========================================================= */
.idh-dash-welcome{
  display:flex;align-items:center;gap:20px;flex-wrap:wrap;
  background:var(--bg-panel);border:1px solid var(--line);border-radius:14px;
  padding:26px 28px;margin-bottom:26px;
}
.idh-dash-avatar{flex-shrink:0;}
.idh-dash-avatar img{
  width:68px;height:68px;border-radius:50%;
  border:2px solid var(--brass-dim);display:block;
}
.idh-dash-welcome-text{flex:1;min-width:200px;}
.idh-dash-welcome-text h2{
  font-family:var(--font-display);font-size:19px;color:var(--smoke);margin-bottom:6px;
}
.idh-dash-welcome-text p{color:var(--smoke-dim);font-size:13.5px;margin:0;}
.idh-dash-stat{
  text-align:center;padding:10px 22px;border-right:1px solid var(--line);flex-shrink:0;
}
.idh-dash-stat b{
  display:block;font-family:var(--font-display);font-size:26px;font-weight:800;
  color:var(--ember-bright);
}
.idh-dash-stat span{font-size:11.5px;color:var(--smoke-dim);}

.idh-dash-cards{
  display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:34px;
}
.idh-dash-card{
  display:flex;flex-direction:column;align-items:flex-start;gap:4px;
  background:var(--bg-panel);border:1px solid var(--line);border-radius:14px;
  padding:22px;transition:all .25s;
}
.idh-dash-card:hover{
  border-color:var(--ember);transform:translateY(-4px);
  box-shadow:0 20px 40px -20px rgba(28,22,17,.2);
}
.idh-dash-card-icon{
  width:42px;height:42px;border-radius:50%;
  background:rgba(201,118,47,.1);color:var(--ember-bright);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:10px;transition:background .25s;
}
.idh-dash-card-icon svg{width:19px;height:19px;}
.idh-dash-card:hover .idh-dash-card-icon{background:linear-gradient(135deg,var(--ember),var(--ember-bright));color:#171210;}
.idh-dash-card h4{font-size:14.5px;color:var(--smoke);font-weight:700;}
.idh-dash-card p{font-size:12px;color:var(--smoke-dim);}
.idh-dash-card--logout:hover{border-color:#b45046;}
.idh-dash-card--logout:hover .idh-dash-card-icon{background:linear-gradient(135deg,#b45046,#d1685c);color:#fff;}

.idh-dash-recent-title{
  font-family:var(--font-display);font-size:15px;color:var(--smoke);
  margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid var(--line);
}

@media (max-width:900px){
  .idh-dash-cards{grid-template-columns:repeat(2,1fr);}
  .idh-dash-stat{border-right:none;border-top:1px solid var(--line);width:100%;padding-top:16px;}
}
@media (max-width:560px){
  .idh-dash-cards{grid-template-columns:1fr;}
}

/* =========================================================
   EDIT ACCOUNT / CHANGE PASSWORD / EDIT ADDRESS FORMS
   These had zero styling (bare HTML defaults + the browser's
   native <fieldset> border around "Password change").
   ========================================================= */
.woocommerce-EditAccountForm,
.woocommerce-address-fields{
  max-width:600px;
}
.woocommerce-EditAccountForm .form-row,
.woocommerce-EditAccountForm p.form-row,
.woocommerce-address-fields .form-row,
.woocommerce-address-fields p.form-row{
  margin-bottom:18px;
}
.woocommerce-EditAccountForm label,
.woocommerce-address-fields label{
  display:block;font-size:13.5px;color:var(--smoke);margin-bottom:8px;font-weight:500;
}
.woocommerce-EditAccountForm label .required,
.woocommerce-address-fields label .required{color:#e08a80;text-decoration:none;}
.woocommerce-EditAccountForm input.input-text,
.woocommerce-EditAccountForm input[type="text"],
.woocommerce-EditAccountForm input[type="email"],
.woocommerce-EditAccountForm input[type="tel"],
.woocommerce-EditAccountForm input[type="password"],
.woocommerce-EditAccountForm select,
.woocommerce-address-fields input.input-text,
.woocommerce-address-fields input[type="text"],
.woocommerce-address-fields input[type="email"],
.woocommerce-address-fields input[type="tel"],
.woocommerce-address-fields select{
  width:100%;background:var(--bg-void);border:1px solid var(--line);color:var(--smoke);
  padding:13px 14px;border-radius:8px;font-size:14px;font-family:var(--font-body);
}
.woocommerce-EditAccountForm input:focus,
.woocommerce-address-fields input:focus{outline:none;border-color:var(--ember);}

/* The password-change <fieldset> — reset the browser's default border/
   padding and give it our own card treatment with a proper legend. */
.woocommerce-EditAccountForm fieldset{
  border:1px dashed var(--brass-dim);
  border-radius:10px;
  padding:22px 22px 6px;
  margin:28px 0 22px;
}
.woocommerce-EditAccountForm fieldset legend{
  padding:0 10px;
  font-family:var(--font-display);
  font-size:14.5px;font-weight:700;
  color:var(--brass);
}
.woocommerce-EditAccountForm > p:last-of-type,
.woocommerce-address-fields > p:last-of-type{margin-top:10px;}
