/* =========================================================
   QueenDress Standalone UI — WordPress / WooCommerce / RTL
   Visual-only layer. No checkout/cart/product logic changes.
   ========================================================= */

:root {
  --qd-bg: #fff;
  --qd-surface: #fbf8f4;
  --qd-surface-2: #f6f0ea;
  --qd-line: #e8e1da;
  --qd-line-strong: #d9cec2;
  --qd-text: #24211f;
  --qd-muted: #77716b;
  --qd-accent: #bd8a4f;
  --qd-accent-dark: #9f703d;
  --qd-dark: #262522;
  --qd-success: #238a4b;
  --qd-danger: #c85656;
  --qd-radius-sm: 10px;
  --qd-radius: 16px;
  --qd-radius-lg: 24px;
  --qd-shadow: 0 12px 36px rgba(58, 43, 31, .06);
  --qd-container: 1280px;
}

html { scroll-behavior: smooth; }
body.queendress-ui {
  background: var(--qd-bg);
  color: var(--qd-text);
  font-family: "Vazirmatn", "Vazir", Tahoma, Arial, sans-serif !important;
  font-size: 14px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
body.queendress-ui *,
body.queendress-ui *::before,
body.queendress-ui *::after { box-sizing: border-box; }
body.queendress-ui input,
body.queendress-ui select,
body.queendress-ui textarea,
body.queendress-ui button { font-family: inherit !important; }
body.queendress-ui a { transition: color .2s ease, opacity .2s ease, border-color .2s ease, background .2s ease, transform .2s ease; }
body.queendress-ui a:hover { color: var(--qd-accent-dark); }

/* Typography */
body.queendress-ui h1,
body.queendress-ui h2,
body.queendress-ui h3,
body.queendress-ui h4,
body.queendress-ui h5,
body.queendress-ui h6,
body.queendress-ui .title,
body.queendress-ui .product-title {
  color: var(--qd-text);
  font-family: "Vazirmatn", "Vazir", Tahoma, sans-serif !important;
  letter-spacing: -.025em;
}
body.queendress-ui h1 { font-weight: 700; }
body.queendress-ui h2,
body.queendress-ui h3 { font-weight: 650; }

/* Layout */
body.queendress-ui .container,
body.queendress-ui .container-width,
body.queendress-ui .content-page,
body.queendress-ui .page-heading .container {
  max-width: var(--qd-container);
}
body.queendress-ui .site-content { background: #fff; }

/* Header / top area — legacy header compatibility */
body.queendress-ui .header-wrapper,
body.queendress-ui .header-main,
body.queendress-ui .header-bg-block,
body.queendress-ui .et_b_header-menu,
body.queendress-ui .et_b_header-search,
body.queendress-ui .et_b_header-logo,
body.queendress-ui .et_b_header-account,
body.queendress-ui .et_b_header-cart,
body.queendress-ui .et_b_header-wishlist {
  font-family: inherit;
}
body.queendress-ui .header-wrapper {
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid rgba(232,225,218,.9);
}
body.queendress-ui.qd-scrolled .header-wrapper,
html.qd-scrolled body.queendress-ui .header-wrapper {
  box-shadow: 0 8px 28px rgba(43,34,27,.06);
}
body.queendress-ui .et_b_header-menu .menu > li > a,
body.queendress-ui .menu-wrapper > .menu-main-container > ul > li > a,
body.queendress-ui .menu-wrapper > ul > li > a {
  color: var(--qd-text);
  font-weight: 550;
}
body.queendress-ui .et_b_header-menu .menu > li.current-menu-item > a,
body.queendress-ui .et_b_header-menu .menu > li > a:hover { color: var(--qd-accent); }
body.queendress-ui .header-wrapper .et_b_header-search input,
body.queendress-ui .header-wrapper .search-form input {
  background: #fff;
  border: 1px solid var(--qd-line);
  border-radius: 999px;
  min-height: 44px;
  box-shadow: none;
}

/* Breadcrumb / page heading */
body.queendress-ui .page-heading,
body.queendress-ui .page-heading.bc-type-left2,
body.queendress-ui .page-heading.bc-type-default {
  background: var(--qd-surface);
  border: 0;
  border-radius: var(--qd-radius-lg);
  margin: 24px auto 34px;
  max-width: var(--qd-container);
  overflow: hidden;
}
body.queendress-ui .page-heading .title { font-size: clamp(24px, 3vw, 36px); }
body.queendress-ui .breadcrumbs,
body.queendress-ui .breadcrumbs a { color: var(--qd-muted); }

/* Buttons */
body.queendress-ui .btn,
body.queendress-ui button,
body.queendress-ui input[type="submit"],
body.queendress-ui .button,
body.queendress-ui .woocommerce-button,
body.queendress-ui .checkout-button,
body.queendress-ui .single_add_to_cart_button {
  border-radius: var(--qd-radius-sm) !important;
  font-weight: 600;
  box-shadow: none !important;
  text-transform: none;
}
body.queendress-ui .btn:not(.bordered):not(.gray),
body.queendress-ui .button:not(.gray):not(.wc-forward),
body.queendress-ui .single_add_to_cart_button,
body.queendress-ui .checkout-button,
body.queendress-ui button[type="submit"] {
  background: var(--qd-dark);
  border-color: var(--qd-dark);
  color: #fff;
}
body.queendress-ui .single_add_to_cart_button {
  background: linear-gradient(135deg, #c99a61, #b98144) !important;
  border-color: transparent !important;
  min-height: 52px;
}
body.queendress-ui .btn:hover,
body.queendress-ui .button:hover,
body.queendress-ui .single_add_to_cart_button:hover,
body.queendress-ui button[type="submit"]:hover { filter: brightness(.94); transform: translateY(-1px); }

/* Form controls */
body.queendress-ui input[type="text"],
body.queendress-ui input[type="email"],
body.queendress-ui input[type="tel"],
body.queendress-ui input[type="password"],
body.queendress-ui input[type="number"],
body.queendress-ui input[type="search"],
body.queendress-ui select,
body.queendress-ui textarea,
body.queendress-ui .select2-container--default .select2-selection--single {
  background: #fff;
  border: 1px solid var(--qd-line) !important;
  border-radius: var(--qd-radius-sm) !important;
  color: var(--qd-text);
  min-height: 48px;
  box-shadow: none !important;
}
body.queendress-ui textarea { min-height: 120px; padding: 14px 16px; }
body.queendress-ui input:focus,
body.queendress-ui select:focus,
body.queendress-ui textarea:focus { border-color: var(--qd-accent) !important; outline: 0; }
body.queendress-ui .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 46px; }
body.queendress-ui .select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; }

/* Woo notices */
body.queendress-ui .woocommerce-message,
body.queendress-ui .woocommerce-info,
body.queendress-ui .woocommerce-error {
  border: 1px solid var(--qd-line);
  border-radius: var(--qd-radius);
  background: var(--qd-surface);
  box-shadow: none;
}

/* Shop toolbar */
body.queendress-ui .shop-filters,
body.queendress-ui .filter-wrap,
body.queendress-ui .products-page-cats,
body.queendress-ui .woocommerce-ordering,
body.queendress-ui .view-switcher,
body.queendress-ui .products-per-page {
  font-family: inherit;
}
body.queendress-ui .filter-wrap {
  border-color: var(--qd-line);
  margin-bottom: 24px;
}
body.queendress-ui .woocommerce-ordering select {
  min-width: 190px;
  background-color: #fff;
}

/* Sidebar / widgets */
body.queendress-ui .sidebar-widget,
body.queendress-ui .widget_product_categories,
body.queendress-ui .widget_layered_nav,
body.queendress-ui .widget_price_filter {
  border-color: var(--qd-line);
}
body.queendress-ui .sidebar-widget .widget-title,
body.queendress-ui .widget_product_categories .widget-title {
  font-weight: 650;
  color: var(--qd-text);
}
body.queendress-ui .widget_product_categories a,
body.queendress-ui .widget_layered_nav a { color: var(--qd-muted); }
body.queendress-ui .widget_product_categories a:hover,
body.queendress-ui .widget_layered_nav a:hover { color: var(--qd-accent-dark); }
body.queendress-ui .price_slider_wrapper .ui-slider-range,
body.queendress-ui .price_slider_wrapper .ui-slider-handle { background: var(--qd-accent) !important; }

/* Product grid cards */
body.queendress-ui .products-grid .product,
body.queendress-ui .products-grid .product-slide,
body.queendress-ui .productCarousel .product-slide,
body.queendress-ui .content-product {
  position: relative;
}
body.queendress-ui .products-grid .product,
body.queendress-ui .productCarousel .product-slide {
  padding: 8px;
}
body.queendress-ui .content-product {
  background: #fff;
  border: 1px solid var(--qd-line);
  border-radius: var(--qd-radius);
  overflow: hidden;
  box-shadow: none;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
body.queendress-ui .content-product:hover {
  transform: translateY(-3px);
  border-color: var(--qd-line-strong);
  box-shadow: var(--qd-shadow);
}
body.queendress-ui .content-product .product-image-wrapper,
body.queendress-ui .content-product .product-content-image,
body.queendress-ui .content-product .images-slider-wrapper {
  overflow: hidden;
  border-radius: calc(var(--qd-radius) - 2px) calc(var(--qd-radius) - 2px) 0 0;
  background: var(--qd-surface);
}
body.queendress-ui .content-product img { transition: transform .45s ease; }
body.queendress-ui .content-product:hover img { transform: scale(1.018); }
body.queendress-ui .content-product .product-title,
body.queendress-ui .content-product .product-title a {
  color: var(--qd-text);
  font-weight: 550;
  font-size: 14px;
}
body.queendress-ui .content-product .price {
  color: var(--qd-text);
  font-weight: 600;
}
body.queendress-ui .content-product .price del { color: #aaa29b; opacity: 1; }
body.queendress-ui .content-product .price ins { color: var(--qd-accent-dark); text-decoration: none; }
body.queendress-ui .content-product .footer-product { border-top-color: var(--qd-line); }
body.queendress-ui .content-product .button,
body.queendress-ui .content-product .add_to_cart_button {
  background: var(--qd-accent);
  border-color: var(--qd-accent);
  color: #fff;
}
body.queendress-ui .content-product .show-quickly,
body.queendress-ui .content-product .yith-wcwl-add-to-wishlist a,
body.queendress-ui .content-product .wishlist-fragment a {
  border-radius: 999px;
}
body.queendress-ui .onsale,
body.queendress-ui .sale-wrapper .onsale,
body.queendress-ui .new-label {
  background: #fff !important;
  color: var(--qd-text) !important;
  border: 1px solid var(--qd-line);
  border-radius: 999px !important;
  box-shadow: 0 4px 18px rgba(42,32,23,.08);
}

/* Pagination */
body.queendress-ui .woocommerce-pagination ul,
body.queendress-ui .pagination-cubic ul { gap: 6px; }
body.queendress-ui .woocommerce-pagination li a,
body.queendress-ui .woocommerce-pagination li span,
body.queendress-ui .pagination-cubic li a,
body.queendress-ui .pagination-cubic li span {
  min-width: 38px;
  height: 38px;
  line-height: 36px;
  border: 1px solid var(--qd-line) !important;
  border-radius: 9px !important;
  background: #fff;
}
body.queendress-ui .woocommerce-pagination .current,
body.queendress-ui .pagination-cubic .current {
  background: var(--qd-accent) !important;
  color: #fff !important;
  border-color: var(--qd-accent) !important;
}

/* Single product */
body.queendress-ui.single-product .product-content {
  margin-top: 28px;
}
body.queendress-ui.single-product .product-images,
body.queendress-ui.single-product .product-information,
body.queendress-ui.single-product .product-information-inner {
  border-color: var(--qd-line);
}
body.queendress-ui.single-product .product-images .woocommerce-product-gallery,
body.queendress-ui.single-product .main-images,
body.queendress-ui.single-product .main-image-slider {
  border-radius: var(--qd-radius-lg);
  overflow: hidden;
  background: var(--qd-surface);
}
body.queendress-ui.single-product .product-information h1,
body.queendress-ui.single-product .product_title {
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 14px;
}
body.queendress-ui.single-product .price {
  color: var(--qd-text);
  font-size: 24px;
  font-weight: 700;
}
body.queendress-ui.single-product .stock.in-stock { color: var(--qd-success); font-weight: 600; }
body.queendress-ui.single-product .variations {
  border-top: 1px solid var(--qd-line);
  padding-top: 16px;
}
body.queendress-ui.single-product .quantity,
body.queendress-ui .quantity {
  border: 1px solid var(--qd-line);
  border-radius: var(--qd-radius-sm);
  overflow: hidden;
  background: #fff;
}
body.queendress-ui.single-product .quantity input,
body.queendress-ui .quantity input { border: 0 !important; min-height: 48px; }
body.queendress-ui.single-product .woocommerce-tabs,
body.queendress-ui.single-product .tabs-with-scroll {
  border: 1px solid var(--qd-line);
  border-radius: var(--qd-radius);
  overflow: hidden;
  margin-top: 34px;
}
body.queendress-ui.single-product .woocommerce-tabs .tabs,
body.queendress-ui.single-product .tabs-with-scroll .tabs {
  border-bottom: 1px solid var(--qd-line);
  background: #fff;
}
body.queendress-ui.single-product .woocommerce-tabs .tabs li.active a { color: var(--qd-accent-dark); }

/* Cart */
body.queendress-ui.woocommerce-cart .woocommerce-cart-form,
body.queendress-ui.woocommerce-cart .cart-order-details,
body.queendress-ui.woocommerce-cart .cart-collaterals {
  background: #fff;
  border: 1px solid var(--qd-line);
  border-radius: var(--qd-radius);
  padding: 20px;
}
body.queendress-ui.woocommerce-cart .shop_table { border-color: var(--qd-line); }
body.queendress-ui.woocommerce-cart .shop_table th,
body.queendress-ui.woocommerce-cart .shop_table td { border-color: var(--qd-line); }
body.queendress-ui.woocommerce-cart .product-thumbnail img {
  border-radius: var(--qd-radius-sm);
  background: var(--qd-surface);
}
body.queendress-ui.woocommerce-cart .cart_totals h2 { font-size: 21px; }

/* Checkout */
body.queendress-ui.woocommerce-checkout .woocommerce-checkout,
body.queendress-ui.woocommerce-checkout #customer_details,
body.queendress-ui.woocommerce-checkout #order_review,
body.queendress-ui.woocommerce-checkout .woocommerce-checkout-review-order {
  font-family: inherit;
}
body.queendress-ui.woocommerce-checkout #customer_details,
body.queendress-ui.woocommerce-checkout #order_review,
body.queendress-ui.woocommerce-checkout .woocommerce-checkout-review-order {
  background: #fff;
  border: 1px solid var(--qd-line);
  border-radius: var(--qd-radius);
  padding: 22px;
}
body.queendress-ui.woocommerce-checkout .woocommerce-billing-fields > h3,
body.queendress-ui.woocommerce-checkout #order_review_heading { font-size: 22px; }
body.queendress-ui.woocommerce-checkout .woocommerce-checkout-payment {
  background: var(--qd-surface) !important;
  border-radius: var(--qd-radius-sm);
}
body.queendress-ui.woocommerce-checkout #place_order {
  width: 100%;
  min-height: 54px;
  font-size: 15px;
}

/* My account */
body.queendress-ui.woocommerce-account .woocommerce-MyAccount-navigation,
body.queendress-ui.woocommerce-account .woocommerce-MyAccount-content {
  background: #fff;
  border: 1px solid var(--qd-line);
  border-radius: var(--qd-radius);
}
body.queendress-ui.woocommerce-account .woocommerce-MyAccount-navigation { padding: 10px; }
body.queendress-ui.woocommerce-account .woocommerce-MyAccount-navigation ul { margin: 0; }
body.queendress-ui.woocommerce-account .woocommerce-MyAccount-navigation li { list-style: none; }
body.queendress-ui.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: block;
  padding: 11px 14px;
  margin: 3px 0;
  border-radius: 10px;
  color: var(--qd-text);
}
body.queendress-ui.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
body.queendress-ui.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
  background: var(--qd-surface-2);
  color: var(--qd-accent-dark);
}
body.queendress-ui.woocommerce-account .woocommerce-MyAccount-content { padding: 24px; }
body.queendress-ui.woocommerce-account table.shop_table { border: 1px solid var(--qd-line); border-radius: var(--qd-radius-sm); overflow: hidden; }

/* Footer */
body.queendress-ui footer,
body.queendress-ui .footer,
body.queendress-ui .footer-bottom,
body.queendress-ui .prefooter {
  font-family: inherit;
}
body.queendress-ui .footer,
body.queendress-ui footer.site-footer { border-top: 1px solid var(--qd-line); background: #fff; }
body.queendress-ui .footer-bottom { background: var(--qd-surface); border-top: 1px solid var(--qd-line); }
body.queendress-ui .footer a { color: var(--qd-muted); }
body.queendress-ui .footer a:hover { color: var(--qd-accent-dark); }

/* Elementor helper classes for QueenDress homepage.
   Add these CSS classes to Elementor containers when building sections. */
body.queendress-ui .qd-card {
  background: #fff;
  border: 1px solid var(--qd-line);
  border-radius: var(--qd-radius);
  overflow: hidden;
}
body.queendress-ui .qd-soft { background: var(--qd-surface); }
body.queendress-ui .qd-section { margin-block: 34px; }
body.queendress-ui .qd-hero {
  border-radius: 28px;
  overflow: hidden;
  min-height: 430px;
}
body.queendress-ui .qd-title { font-size: clamp(22px, 2.5vw, 32px); font-weight: 700; }
body.queendress-ui .qd-kicker { color: var(--qd-accent-dark); font-weight: 600; }
body.queendress-ui .qd-feature-strip {
  background: var(--qd-surface);
  border: 1px solid var(--qd-line);
  border-radius: var(--qd-radius);
}

/* RTL fine tuning */
body.rtl.queendress-ui .woocommerce-breadcrumb,
body.rtl.queendress-ui .breadcrumbs,
body.rtl.queendress-ui .product-information,
body.rtl.queendress-ui .woocommerce-MyAccount-content { text-align: right; }

/* Responsive */
@media (max-width: 991px) {
  :root { --qd-radius-lg: 20px; }
  body.queendress-ui .page-heading { margin: 14px 12px 24px; }
  body.queendress-ui .content-product { border-radius: 13px; }
  body.queendress-ui.single-product .product-information { margin-top: 24px; }
  body.queendress-ui.woocommerce-account .woocommerce-MyAccount-navigation,
  body.queendress-ui.woocommerce-account .woocommerce-MyAccount-content { margin-bottom: 16px; }
}
@media (max-width: 767px) {
  body.queendress-ui { font-size: 13px; }
  body.queendress-ui .container,
  body.queendress-ui .container-width,
  body.queendress-ui .content-page { padding-left: 14px; padding-right: 14px; }
  body.queendress-ui .qd-hero { min-height: 340px; border-radius: 20px; }
  body.queendress-ui .products-grid .product,
  body.queendress-ui .productCarousel .product-slide { padding: 5px; }
  body.queendress-ui .content-product .product-title,
  body.queendress-ui .content-product .product-title a { font-size: 12.5px; }
  body.queendress-ui.single-product .product_title { font-size: 25px; }
  body.queendress-ui.single-product .price { font-size: 20px; }
  body.queendress-ui .single_add_to_cart_button { min-height: 50px; }
  body.queendress-ui.woocommerce-cart .woocommerce-cart-form,
  body.queendress-ui.woocommerce-cart .cart-order-details,
  body.queendress-ui.woocommerce-cart .cart-collaterals,
  body.queendress-ui.woocommerce-checkout #customer_details,
  body.queendress-ui.woocommerce-checkout #order_review,
  body.queendress-ui.woocommerce-checkout .woocommerce-checkout-review-order { padding: 14px; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  body.queendress-ui *, body.queendress-ui *::before, body.queendress-ui *::after {
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* =========================================================
   PHASE 2 — Global visual identity + XStore Header skin
   Version 0.7.0
   ========================================================= */

/* Map XStore's own design tokens onto QueenDress tokens. */
body.queendress-ui {
  --et_dark-color: var(--qd-text);
  --et_main-color: var(--qd-muted);
  --et_active-color: var(--qd-accent-dark);
  --et_border-color: var(--qd-line);
  --et_inputs-border-radius: 12px;
}

/* A slightly warmer overall canvas, while keeping content panels white. */
body.queendress-ui {
  background: #fffdfb;
}
body.queendress-ui .site-content,
body.queendress-ui #content,
body.queendress-ui .content-page {
  background-color: #fffdfb;
}

/* ---- Desktop header: clean, warm and premium ---- */
@media (min-width: 993px) {
  body.queendress-ui #header,
  body.queendress-ui .site-header {
    background: #fff;
  }

  body.queendress-ui #header > .header-wrapper,
  body.queendress-ui #header > [class*="header-wrapper"] {
    background: rgba(255,255,255,.985) !important;
    border-bottom: 1px solid var(--qd-line);
  }

  body.queendress-ui #header .header-top {
    min-height: 30px;
    background: #f6f0ea !important;
    color: #746c64 !important;
    border: 0 !important;
    font-size: 12px !important;
    letter-spacing: 0;
  }

  body.queendress-ui #header .header-top a {
    color: #746c64 !important;
  }

  body.queendress-ui #header .header-main {
    min-height: 76px;
    background: rgba(255,255,255,.985) !important;
    border: 0 !important;
    color: var(--qd-text) !important;
  }

  body.queendress-ui #header .header-bottom {
    background: #fff !important;
    color: var(--qd-text) !important;
    border-top: 1px solid rgba(232,225,218,.72) !important;
    border-bottom: 0 !important;
  }

  /* Keep the whole header aligned to the same content width as the page. */
  body.queendress-ui #header .header-top > .container,
  body.queendress-ui #header .header-main > .container,
  body.queendress-ui #header .header-bottom > .container,
  body.queendress-ui #header .header-top .et-container,
  body.queendress-ui #header .header-main .et-container,
  body.queendress-ui #header .header-bottom .et-container {
    max-width: var(--qd-container) !important;
    margin-inline: auto !important;
  }

  /* Logo */
  body.queendress-ui #header .et_b_header-logo.et_element-top-level img,
  body.queendress-ui #header .header-logo img {
    width: auto;
    max-height: 52px;
    object-fit: contain;
  }

  /* Main navigation */
  body.queendress-ui #header .et_b_header-menu.et_element-top-level .menu > li > a {
    color: var(--qd-text) !important;
    -webkit-text-fill-color: var(--qd-text) !important;
    font-family: "Vazirmatn", "Vazir", Tahoma, sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    line-height: 1.25;
    padding-top: 27px !important;
    padding-bottom: 27px !important;
    margin-inline: 9px;
  }

  body.queendress-ui #header .et_b_header-menu.et_element-top-level .menu > li > a::before {
    height: 2px !important;
    border-radius: 999px;
    background-color: var(--qd-accent) !important;
  }

  body.queendress-ui #header .et_b_header-menu.et_element-top-level .menu > li:hover > a,
  body.queendress-ui #header .et_b_header-menu.et_element-top-level .menu > li.current-menu-item > a,
  body.queendress-ui #header .et_b_header-menu.et_element-top-level .menu > li.current-menu-parent > a {
    color: var(--qd-accent-dark) !important;
    -webkit-text-fill-color: var(--qd-accent-dark) !important;
  }

  /* Search pill */
  body.queendress-ui #header .et_b_header-search .input-row {
    height: 44px;
    min-height: 44px;
    background: #fbf8f4 !important;
    border: 1px solid var(--qd-line) !important;
    border-radius: 999px !important;
    overflow: hidden;
    box-shadow: none !important;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  }

  body.queendress-ui #header .et_b_header-search .input-row:focus-within {
    background: #fff !important;
    border-color: #cdb69d !important;
    box-shadow: 0 0 0 3px rgba(189,138,79,.08) !important;
  }

  body.queendress-ui #header .et_b_header-search input[type="text"],
  body.queendress-ui #header .et_b_header-search input[type="search"] {
    height: 42px !important;
    min-height: 42px !important;
    background: transparent !important;
    color: var(--qd-text) !important;
    border: 0 !important;
    font-size: 12.5px !important;
    padding-inline: 14px !important;
  }

  body.queendress-ui #header .et_b_header-search input::placeholder {
    color: #9b948d !important;
    opacity: 1;
  }

  body.queendress-ui #header .et_b_header-search .search-button {
    width: 42px;
    height: 42px;
    color: var(--qd-text) !important;
    background: transparent !important;
  }

  /* Header action icons — simple circles on hover, like the supplied reference. */
  body.queendress-ui #header .et_b_header-account.et_element-top-level > a,
  body.queendress-ui #header .et_b_header-wishlist.et_element-top-level > a,
  body.queendress-ui #header .et_b_header-cart.et_element-top-level > a,
  body.queendress-ui #header .et_b_header-search.et_element-top-level > a {
    position: relative;
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--qd-text) !important;
    -webkit-text-fill-color: var(--qd-text) !important;
    border-radius: 50% !important;
    opacity: 1 !important;
    transition: background .2s ease, color .2s ease, transform .2s ease !important;
  }

  body.queendress-ui #header .et_b_header-account.et_element-top-level > a:hover,
  body.queendress-ui #header .et_b_header-wishlist.et_element-top-level > a:hover,
  body.queendress-ui #header .et_b_header-cart.et_element-top-level > a:hover,
  body.queendress-ui #header .et_b_header-search.et_element-top-level > a:hover {
    background: var(--qd-surface-2) !important;
    color: var(--qd-accent-dark) !important;
    -webkit-text-fill-color: var(--qd-accent-dark) !important;
    transform: translateY(-1px);
  }

  body.queendress-ui #header .et_b-icon,
  body.queendress-ui #header .et_b-icon svg {
    font-size: 20px;
  }

  /* Cart / wishlist counters */
  body.queendress-ui #header .et-quantity,
  body.queendress-ui #header .et_b-icon + .et-quantity,
  body.queendress-ui #header .cart-bag .badge-number,
  body.queendress-ui #header .wishlist-count {
    background: var(--qd-accent) !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    min-width: 18px !important;
    height: 18px !important;
    line-height: 14px !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
  }

  /* Dropdowns / mega-menu */
  body.queendress-ui #header .et_b_header-menu .nav-sublist-dropdown:not(.nav-sublist),
  body.queendress-ui #header .site-header .widget_nav_menu .menu > li > .sub-menu,
  body.queendress-ui #header .et-mini-content {
    background: #fff !important;
    border: 1px solid var(--qd-line) !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 50px rgba(57,43,31,.10) !important;
  }

  body.queendress-ui #header .et_b_header-menu .nav-sublist-dropdown .item-link {
    color: #5e5954 !important;
    -webkit-text-fill-color: #5e5954 !important;
    border-radius: 8px;
    margin: 2px 7px;
    padding: 9px 13px !important;
    font-size: 12.5px !important;
    font-weight: 500;
  }

  body.queendress-ui #header .et_b_header-menu .nav-sublist-dropdown .item-link:hover {
    opacity: 1 !important;
    color: var(--qd-accent-dark) !important;
    -webkit-text-fill-color: var(--qd-accent-dark) !important;
    background: var(--qd-surface) !important;
  }
}

/* Sticky state: subtle, not a heavy floating slab. */
body.queendress-ui.qd-scrolled #header > [class*="header-wrapper"],
html.qd-scrolled body.queendress-ui #header > [class*="header-wrapper"] {
  box-shadow: 0 9px 30px rgba(45,35,27,.07) !important;
}

/* ---- Mobile header ---- */
@media (max-width: 992px) {
  body.queendress-ui #header .mobile-header-wrapper {
    background: #fff !important;
    border-bottom: 1px solid var(--qd-line) !important;
    box-shadow: none;
  }

  body.queendress-ui #header .mobile-header-wrapper .header-main,
  body.queendress-ui #header .mobile-header-wrapper .header-bottom,
  body.queendress-ui #header .mobile-header-wrapper [class*="header-"] {
    background: #fff !important;
    color: var(--qd-text) !important;
  }

  body.queendress-ui #header .mobile-header-wrapper .et_b_header-logo img {
    max-height: 42px;
    width: auto;
  }

  body.queendress-ui #header .mobile-header-wrapper .et_b_header-account > a,
  body.queendress-ui #header .mobile-header-wrapper .et_b_header-cart > a,
  body.queendress-ui #header .mobile-header-wrapper .et_b_header-wishlist > a,
  body.queendress-ui #header .mobile-header-wrapper .et_b_mobile-panel-switcher,
  body.queendress-ui #header .mobile-header-wrapper .et_b_header-mobile-menu > span {
    color: var(--qd-text) !important;
    -webkit-text-fill-color: var(--qd-text) !important;
  }

  body.queendress-ui #header .mobile-header-wrapper .et_b_header-search .input-row {
    border-radius: 999px !important;
    background: var(--qd-surface) !important;
    border: 1px solid var(--qd-line) !important;
  }

  body.queendress-ui .mobile-menu-content,
  body.queendress-ui .et-mobile-panel,
  body.queendress-ui .et-mini-content.et-content-left,
  body.queendress-ui .et-mini-content.et-content-right {
    font-family: "Vazirmatn", "Vazir", Tahoma, sans-serif !important;
  }

  body.queendress-ui .mobile-menu-content .et_b_header-menu .menu li a {
    color: var(--qd-text) !important;
    -webkit-text-fill-color: var(--qd-text) !important;
    font-weight: 550;
  }
}

/* ---- More visible QueenDress global details ---- */
body.queendress-ui .page-wrapper,
body.queendress-ui .template-container {
  background: #fffdfb;
}

body.queendress-ui .page-heading {
  box-shadow: inset 0 0 0 1px rgba(232,225,218,.55);
}

body.queendress-ui .content-product {
  box-shadow: 0 1px 0 rgba(55,43,34,.02);
}

body.queendress-ui .content-product:hover {
  box-shadow: 0 16px 42px rgba(56,42,31,.08);
}

/* Elementor global widgets automatically inherit the QueenDress typography. */
body.queendress-ui .elementor-widget-heading .elementor-heading-title,
body.queendress-ui .elementor-widget-text-editor,
body.queendress-ui .elementor-button,
body.queendress-ui .elementor-field,
body.queendress-ui .elementor-widget-container {
  font-family: "Vazirmatn", "Vazir", Tahoma, Arial, sans-serif;
}

body.queendress-ui .elementor-button {
  border-radius: 10px;
  font-weight: 600;
}

/* =========================================================
   QueenDress v0.4 — structural header replacement
   ========================================================= */
body.queendress-ui { margin: 0 !important; }
body.queendress-ui .template-container #header,
body.queendress-ui .template-container .header-wrapper,
body.queendress-ui .template-container .mobile-header-wrapper,
body.queendress-ui .template-container .et_header-mobile,
body.queendress-ui .template-container .site-header,
body.queendress-ui .template-container .header-main-wrapper,
body.queendress-ui .template-container .header-top-wrapper,
body.queendress-ui .template-container .header-bottom-wrapper {
  display: none !important;
}
.qd-top-strip,
.qd-site-header { font-family: "Vazirmatn", "Vazir", Tahoma, Arial, sans-serif !important; }
.qd-shell { width: min(1320px, calc(100% - 48px)); margin-inline: auto; }
.qd-top-strip {
  position: relative;
  z-index: 10001;
  min-height: 30px;
  display: flex;
  align-items: center;
  background: #f4eee8;
  border-bottom: 1px solid #eee6de;
  color: #6f6962;
  font-size: 11px;
}
.qd-top-strip .qd-shell { display:flex; justify-content:center; }
.qd-top-message { display:inline-flex; align-items:center; gap:7px; white-space:nowrap; }
.qd-top-message svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.7; }
.qd-site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: rgba(255,255,255,.985);
  border-bottom: 1px solid #ece6df;
  box-shadow: 0 3px 12px rgba(39,31,25,.025);
}
.qd-header-grid {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(180px, 225px) minmax(420px, 1fr) minmax(310px, 370px);
  gap: 28px;
  align-items: center;
  direction: rtl;
}
.qd-brand {
  grid-column: 1;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #171513 !important;
  text-decoration: none !important;
  line-height: 1;
}
.qd-brand-mark {
  display:block;
  width:auto;
  height:44px;
  max-width:none;
  object-fit:contain;
  flex:0 0 auto;
}
.qd-brand-word {
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -1.1px;
  direction:ltr;
}
.qd-crown { display:none !important; }
.qd-desktop-nav { grid-column:2; min-width:0; }
.qd-main-menu,
.qd-main-menu ul { list-style:none; margin:0; padding:0; }
.qd-main-menu { display:flex; align-items:center; justify-content:center; gap:25px; direction:rtl; }
.qd-main-menu > li { position:relative; margin:0; padding:0; }
.qd-main-menu > li > a {
  display:flex;
  align-items:center;
  min-height:78px;
  color:#26221f !important;
  text-decoration:none !important;
  font-size:13px;
  font-weight:600;
  white-space:nowrap;
}
.qd-main-menu > li.current-menu-item > a,
.qd-main-menu > li.current-menu-ancestor > a,
.qd-main-menu > li > a:hover { color:#a9743d !important; }
.qd-main-menu .sub-menu {
  display:none;
  position:absolute;
  top:calc(100% - 1px);
  right:0;
  min-width:210px;
  padding:10px;
  background:#fff;
  border:1px solid #e9e2da;
  border-radius:14px;
  box-shadow:0 18px 48px rgba(42,32,25,.10);
}
.qd-main-menu li:hover > .sub-menu { display:block; }
.qd-main-menu .sub-menu li { position:relative; }
.qd-main-menu .sub-menu a { display:block; padding:9px 12px; border-radius:9px; color:#36312d !important; font-size:12px; }
.qd-main-menu .sub-menu a:hover { background:#f8f3ed; color:#a9743d !important; }
.qd-main-menu .sub-menu .sub-menu { right:100%; top:-10px; }
.qd-header-actions {
  grid-column:3;
  justify-self:start;
  display:flex;
  align-items:center;
  gap:9px;
  direction:ltr;
}
.qd-search {
  width:184px;
  height:40px;
  display:flex;
  align-items:center;
  border:1px solid #e4ddd5;
  border-radius:999px;
  background:#fff;
  overflow:hidden;
  direction:rtl;
  transition:border-color .2s ease, box-shadow .2s ease, width .2s ease;
}
.qd-search:focus-within { width:220px; border-color:#caa276; box-shadow:0 0 0 3px rgba(189,138,79,.08); }
.qd-search input {
  min-width:0 !important;
  flex:1;
  height:38px !important;
  min-height:0 !important;
  padding:0 11px !important;
  border:0 !important;
  outline:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  font-size:11px !important;
  text-align:right;
}
.qd-search button {
  width:39px; height:38px; min-width:39px; padding:0 !important; margin:0 !important;
  display:grid; place-items:center; background:transparent !important; border:0 !important; color:#25221f !important;
  transform:none !important; filter:none !important;
}
.qd-search button svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.8; }
.qd-icon-link {
  position:relative;
  width:37px; height:37px;
  display:grid; place-items:center;
  border-radius:50%;
  color:#211e1c !important;
  text-decoration:none !important;
  background:transparent;
}
.qd-icon-link:hover { background:#f8f3ed; color:#a9743d !important; }
.qd-icon-link svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.qd-cart-count {
  position:absolute;
  top:-1px; right:-2px;
  min-width:17px; height:17px; padding:0 4px;
  display:flex; align-items:center; justify-content:center;
  background:#b9864c;
  color:white;
  border:2px solid white;
  border-radius:999px;
  font-size:9px;
  font-weight:700;
}
.qd-mobile-toggle { display:none !important; }
.qd-mobile-panel { display:none; }

/* Unmistakable v0.4 signature: small gold baseline on the custom header only. */
.qd-site-header::after { content:""; position:absolute; right:0; bottom:-1px; width:100%; height:1px; background:linear-gradient(90deg, transparent 0 8%, rgba(185,134,76,.32) 28%, transparent 52%); pointer-events:none; }

@media (max-width: 1180px) {
  .qd-header-grid { grid-template-columns:minmax(170px,200px) 1fr minmax(250px,310px); gap:18px; }
  .qd-main-menu { gap:16px; }
  .qd-main-menu > li > a { font-size:12px; }
  .qd-search { width:155px; }
  .qd-search:focus-within { width:180px; }
}
@media (max-width: 960px) {
  .qd-shell { width:min(100% - 28px, 1320px); }
  .qd-top-strip { min-height:27px; font-size:10px; }
  .qd-header-grid { min-height:64px; grid-template-columns:48px 1fr 48px; gap:8px; }
  .qd-desktop-nav, .qd-header-actions { display:none !important; }
  .qd-brand { grid-column:2; justify-self:center; }
  .qd-brand-word { font-size:27px; }
  .qd-brand-mark { height:38px; }
  .qd-mobile-toggle {
    grid-column:1;
    justify-self:start;
    width:42px; height:42px; padding:0 !important; margin:0 !important;
    display:grid !important; place-items:center;
    border:0 !important; border-radius:50% !important;
    background:transparent !important; color:#211e1c !important;
    transform:none !important; filter:none !important;
  }
  .qd-mobile-toggle svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; }
  .qd-mobile-panel {
    display:block;
    border-top:1px solid #eee7df;
    background:#fff;
    max-height:calc(100vh - 91px);
    overflow:auto;
  }
  .qd-mobile-panel[hidden] { display:none !important; }
  .qd-mobile-panel .qd-shell { padding-block:15px 22px; }
  .qd-mobile-search { display:flex; align-items:center; border:1px solid #e5ddd5; border-radius:12px; overflow:hidden; margin-bottom:14px; }
  .qd-mobile-search input { flex:1; min-height:44px !important; border:0 !important; box-shadow:none !important; padding:0 13px !important; }
  .qd-mobile-search button { width:48px; min-height:44px; border:0 !important; background:#f8f3ed !important; color:#2a2521 !important; padding:0 !important; transform:none !important; }
  .qd-mobile-search svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; }
  .qd-mobile-menu, .qd-mobile-menu ul { list-style:none; margin:0; padding:0; }
  .qd-mobile-menu > li { border-bottom:1px solid #f0ebe6; }
  .qd-mobile-menu a { display:block; padding:12px 4px; color:#28231f !important; font-weight:550; text-decoration:none !important; }
  .qd-mobile-menu .sub-menu { padding-right:14px; padding-bottom:8px; }
  .qd-mobile-menu .sub-menu a { padding:8px 4px; color:#746d67 !important; font-size:12px; }
  .qd-mobile-shortcuts { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:16px; }
  .qd-mobile-shortcuts a { padding:10px 7px; border:1px solid #e8e1da; border-radius:10px; text-align:center; color:#443d37 !important; font-size:11px; text-decoration:none !important; }
}

/* =========================================================
   QueenDress v0.5 — homepage + stronger main-menu detection
   ========================================================= */
body.queendress-ui.queendress-v05.home .page-heading,
body.queendress-ui.queendress-v05.home .content-page,
body.queendress-ui.queendress-v05.home .page-content { display:none !important; }

.qd-home { background:#fffdfb; padding:24px 0 56px; overflow:hidden; }
.qd-home svg { fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }

.qd-home-hero {
  min-height:510px;
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);
  grid-template-areas:"media copy";
  direction:rtl;
  position:relative;
  overflow:hidden;
  padding:0;
  border-radius:28px;
  background:linear-gradient(120deg,#eee5da,#faf6f1 56%,#f4eee7);
  border:1px solid #eee6de;
}
.qd-hero-media { grid-area:media; position:relative; min-height:510px; background-size:cover; background-position:center 18%; }
.qd-hero-media::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(248,244,239,.78) 0,rgba(248,244,239,.15) 30%,rgba(248,244,239,0) 60%); pointer-events:none; }
.qd-hero-media-empty { background:radial-gradient(circle at 60% 35%,#dfd0bf 0 12%,transparent 13%),linear-gradient(145deg,#dac8b4,#f2eae1); }
.qd-hero-product-link { position:absolute; inset:0; z-index:1; }
.qd-hero-copy { grid-area:copy; position:relative; z-index:3; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; padding:58px 56px; direction:rtl; text-align:right; }
.qd-hero-kicker { color:#69615a; font-size:15px; margin-bottom:9px; }
.qd-hero-copy h1 { margin:0 0 16px; font-size:clamp(42px,4.5vw,70px); line-height:1.2; font-weight:700; letter-spacing:-.045em; }
.qd-hero-copy h1 em { color:#b88449; font-style:normal; }
.qd-hero-copy p { max-width:460px; margin:0 0 26px; color:#756f68; font-size:16px; line-height:2; }
.qd-primary-cta { min-height:52px; padding:0 22px; display:inline-flex; align-items:center; gap:12px; background:#252321; color:#fff !important; border-radius:11px; font-weight:650; text-decoration:none !important; }
.qd-primary-cta:hover { background:#111; color:#fff !important; transform:translateY(-1px); }
.qd-primary-cta svg { width:18px; height:18px; transform:scaleX(-1); }
.qd-hero-dots { position:absolute; z-index:4; bottom:15px; right:50%; transform:translateX(50%); display:flex; gap:7px; }
.qd-hero-dots span { width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.82); box-shadow:0 0 0 1px rgba(92,74,58,.1); }
.qd-hero-dots span.active { width:21px; border-radius:99px; background:#c2925c; }

.qd-home-section { padding-top:34px; }
.qd-section-heading { display:flex; align-items:center; justify-content:space-between; direction:rtl; margin-bottom:14px; }
.qd-section-heading h2 { margin:0; font-size:21px; font-weight:700; }
.qd-section-heading > a { color:#6f6963 !important; font-size:12px; text-decoration:none !important; }
.qd-section-heading > a::before { content:"‹"; margin-left:6px; }

.qd-category-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; direction:rtl; }
.qd-category-card { min-height:102px; display:grid; grid-template-columns:1fr 44%; align-items:stretch; overflow:hidden; border:1px solid #ebe4dc; border-radius:17px; background:#faf6f1; color:#27231f !important; text-decoration:none !important; }
.qd-category-card:hover { border-color:#d8c8b8; box-shadow:0 10px 28px rgba(58,43,31,.06); transform:translateY(-2px); }
.qd-category-copy { display:flex; flex-direction:column; justify-content:center; align-items:flex-start; padding:16px 17px; }
.qd-category-copy strong { font-size:15px; font-weight:650; }
.qd-category-copy small { margin-top:3px; color:#8a827b; font-size:11px; }
.qd-category-image { background-size:cover; background-position:center top; min-height:102px; }
.qd-category-image.is-empty { background:linear-gradient(135deg,#e8dbcf,#f5eee7); }

.qd-product-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; direction:rtl; }
.qd-product-card { min-width:0; overflow:hidden; border:1px solid #e9e2da; border-radius:16px; background:#fff; transition:.25s ease; }
.qd-product-card:hover { transform:translateY(-3px); box-shadow:0 16px 38px rgba(55,42,31,.075); border-color:#d8cdbf; }
.qd-product-media { position:relative; display:block; aspect-ratio:4/5; overflow:hidden; background:#f5f0eb; }
.qd-product-media img { width:100%; height:100%; object-fit:cover; object-position:center top; transition:transform .45s ease; }
.qd-product-card:hover .qd-product-media img { transform:scale(1.025); }
.qd-product-badge { position:absolute; z-index:2; top:10px; right:10px; padding:4px 8px; border-radius:999px; background:rgba(255,255,255,.95); color:#514a44; border:1px solid rgba(219,209,199,.9); font-size:10px; }
.qd-product-heart { position:absolute; z-index:2; top:9px; left:9px; width:29px; height:29px; display:grid; place-items:center; border-radius:50%; background:rgba(255,255,255,.9); color:#403a35; }
.qd-product-heart svg { width:15px; height:15px; }
.qd-product-body { padding:11px 12px 12px; }
.qd-product-title { display:block; min-height:25px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#2b2723 !important; font-size:13px; font-weight:550; text-decoration:none !important; }
.qd-product-bottom { margin-top:7px; display:flex; align-items:center; justify-content:space-between; gap:10px; direction:rtl; }
.qd-product-price { min-width:0; color:#28241f; font-size:12px; font-weight:600; }
.qd-product-price del { color:#a9a099; font-size:10px; opacity:.9; }
.qd-product-price ins { color:#a8743c; text-decoration:none; }
.qd-mini-cart { flex:0 0 30px; width:30px; height:30px; display:grid; place-items:center; border-radius:9px; background:#bf8a50; color:#fff !important; }
.qd-mini-cart svg { width:16px; height:16px; }

.qd-promo { margin-top:36px; min-height:190px; position:relative; overflow:hidden; display:grid; grid-template-columns:1.4fr .6fr; direction:rtl; border-radius:20px; border:1px solid #ebe3db; background:linear-gradient(100deg,#fbf6f0,#eee3d8); }
.qd-promo-copy { position:relative; z-index:2; padding:30px 42px; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; }
.qd-promo-copy > span { color:#a9743d; font-size:13px; font-weight:650; }
.qd-promo-copy h2 { margin:4px 0 4px; font-size:30px; }
.qd-promo-copy p { margin:0 0 14px; color:#756e67; }
.qd-promo-copy a { display:inline-flex; padding:9px 16px; border-radius:9px; background:#252321; color:#fff !important; text-decoration:none !important; font-size:12px; }
.qd-promo-image { min-height:190px; background-size:cover; background-position:center 22%; }
.qd-promo-image::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,transparent 55%,rgba(251,246,240,.85) 78%); }

.qd-benefits { margin-top:28px; padding:17px 22px; display:grid; grid-template-columns:repeat(4,1fr); gap:0; direction:rtl; border:1px solid #ebe3dc; border-radius:16px; background:#fbf7f2; }
.qd-benefit { min-height:54px; display:flex; align-items:center; justify-content:center; gap:12px; padding:6px 18px; border-left:1px solid #e9e0d7; }
.qd-benefit:last-child { border-left:0; }
.qd-benefit > svg { width:29px; height:29px; color:#bf8950; }
.qd-benefit span { display:flex; flex-direction:column; }
.qd-benefit strong { font-size:12px; }
.qd-benefit small { margin-top:2px; color:#8a827b; font-size:10px; }

.qd-review-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; direction:rtl; }
.qd-review-card { padding:20px 22px; border:1px solid #ebe3db; border-radius:16px; background:#fbf8f4; }
.qd-review-stars { color:#be894f; letter-spacing:2px; font-size:12px; }
.qd-review-card p { margin:8px 0; color:#6f6861; font-size:12px; line-height:2; }
.qd-review-card strong { font-size:12px; }

.qd-inspiration-grid { display:grid; grid-template-columns:repeat(5,1fr); gap:9px; direction:rtl; }
.qd-inspiration-grid a { display:block; overflow:hidden; border-radius:13px; aspect-ratio:1/1; background:#f5efe9; }
.qd-inspiration-grid img { width:100%; height:100%; object-fit:cover; object-position:center top; transition:transform .4s ease; }
.qd-inspiration-grid a:hover img { transform:scale(1.035); }

/* Fix the logo crown glyph from v0.4. */
.queendress-v05 .qd-crown { display:none !important; }

@media (max-width:1180px) {
  .qd-product-grid { grid-template-columns:repeat(4,1fr); }
  .qd-product-card:nth-child(5) { display:none; }
  .qd-home-hero { grid-template-columns:1fr .82fr; min-height:470px; }
  .qd-hero-media { min-height:470px; }
  .qd-hero-copy { padding:44px 36px; }
}
@media (max-width:960px) {
  .qd-home { padding-top:14px; }
  .qd-home-hero { min-height:auto; grid-template-columns:1fr; grid-template-areas:"media" "copy"; border-radius:20px; }
  .qd-hero-media { min-height:420px; }
  .qd-hero-media::after { background:linear-gradient(0deg,rgba(248,244,239,.8),rgba(248,244,239,0) 45%); }
  .qd-hero-copy { padding:30px 28px 38px; align-items:center; text-align:center; }
  .qd-hero-copy p { max-width:620px; }
  .qd-category-grid { grid-template-columns:repeat(2,1fr); }
  .qd-product-grid { grid-template-columns:repeat(3,1fr); }
  .qd-product-card:nth-child(4), .qd-product-card:nth-child(5) { display:none; }
  .qd-benefits { grid-template-columns:repeat(2,1fr); }
  .qd-benefit:nth-child(2) { border-left:0; }
  .qd-benefit:nth-child(-n+2) { border-bottom:1px solid #e9e0d7; }
  .qd-promo { grid-template-columns:1fr .55fr; }
  .qd-review-grid { grid-template-columns:1fr; }
}
@media (max-width:640px) {
  .qd-home { padding:10px 0 40px; }
  .qd-home .qd-shell { width:calc(100% - 22px); }
  .qd-hero-media { min-height:330px; }
  .qd-hero-copy { padding:24px 18px 32px; }
  .qd-hero-copy h1 { font-size:38px; }
  .qd-hero-copy p { font-size:13px; margin-bottom:20px; }
  .qd-category-grid { grid-template-columns:1fr; gap:9px; }
  .qd-category-card { min-height:90px; }
  .qd-product-grid { display:flex; overflow-x:auto; gap:10px; scroll-snap-type:x mandatory; padding-bottom:6px; scrollbar-width:none; }
  .qd-product-grid::-webkit-scrollbar { display:none; }
  .qd-product-card, .qd-product-card:nth-child(4), .qd-product-card:nth-child(5) { display:block; flex:0 0 68%; scroll-snap-align:start; }
  .qd-promo { grid-template-columns:1fr; }
  .qd-promo-copy { padding:26px 22px; }
  .qd-promo-copy h2 { font-size:24px; }
  .qd-promo-image { min-height:180px; }
  .qd-benefits { grid-template-columns:1fr 1fr; padding:10px 8px; }
  .qd-benefit { padding:8px 6px; gap:8px; }
  .qd-benefit > svg { width:24px; height:24px; }
  .qd-inspiration-grid { display:flex; overflow-x:auto; gap:8px; scrollbar-width:none; }
  .qd-inspiration-grid a { flex:0 0 42%; }
}

/* =========================================================
   QueenDress v0.6 — tighter reference match + custom footer
   ========================================================= */
body.queendress-ui.queendress-v06 #back-top,
body.queendress-ui.queendress-v06 .back-top,
body.queendress-ui.queendress-v06 .et-back-to-top { display:none !important; }

body.queendress-ui.queendress-v06.home .page-heading,
body.queendress-ui.queendress-v06.home .content-page,
body.queendress-ui.queendress-v06.home .page-content { display:none !important; }

/* Header proportions closer to the reference. */
.queendress-v06 .qd-top-strip { min-height:28px; }
.queendress-v06 .qd-header-grid { min-height:72px; grid-template-columns:minmax(190px,235px) minmax(420px,1fr) minmax(320px,390px); }
.queendress-v06 .qd-main-menu > li > a { min-height:72px; font-size:12.5px; }
.queendress-v06 .qd-brand-word { font-size:30px; }

/* Compact wide hero. Portrait catalogue shots are contained instead of cropped. */
.queendress-v06 .qd-home { padding-top:20px; background:#fff; }
.queendress-v06 .qd-home-hero {
  min-height:360px;
  grid-template-columns:minmax(410px,.94fr) minmax(0,1.25fr);
  grid-template-areas:"copy media";
  direction:ltr;
  border-radius:24px;
  background:linear-gradient(110deg,#f4eee7 0 44%,#fbf7f4 67%,#f1e8df 100%);
}
.queendress-v06 .qd-hero-copy {
  direction:rtl; text-align:right; align-items:flex-start;
  padding:40px 50px; min-width:0;
}
.queendress-v06 .qd-hero-kicker { font-size:13px; }
.queendress-v06 .qd-hero-copy h1 { font-size:clamp(38px,4vw,58px); margin-bottom:10px; }
.queendress-v06 .qd-hero-copy p { font-size:14px; line-height:1.95; margin-bottom:20px; }
.queendress-v06 .qd-primary-cta { min-height:46px; padding:0 20px; font-size:12px; }
.queendress-v06 .qd-hero-media { min-height:360px; display:flex; align-items:flex-end; justify-content:center; overflow:hidden; background:linear-gradient(135deg,#f9f5f1,#efe4da); }
.queendress-v06 .qd-hero-media::after { background:linear-gradient(90deg,rgba(246,239,232,.22),transparent 40%); z-index:1; }
.queendress-v06 .qd-hero-media > img { position:relative; z-index:0; width:100%; height:360px; object-fit:contain; object-position:center bottom; }
.queendress-v06 .qd-hero-product-link { z-index:2; }
.queendress-v06 .qd-hero-dots { bottom:12px; }

/* Section rhythm. */
.queendress-v06 .qd-home-section { padding-top:28px; }
.queendress-v06 .qd-section-heading { margin-bottom:12px; }
.queendress-v06 .qd-section-heading h2 { font-size:19px; }
.queendress-v06 .qd-category-grid { gap:12px; }
.queendress-v06 .qd-category-card { min-height:88px; border-radius:14px; }
.queendress-v06 .qd-category-image { min-height:88px; background-size:contain; background-repeat:no-repeat; background-position:center bottom; }

/* Product card detail: fixed visual height + view/cart actions. */
.queendress-v06 .qd-product-grid { gap:12px; }
.queendress-v06 .qd-product-card { border-radius:14px; }
.queendress-v06 .qd-product-media-wrap { position:relative; }
.queendress-v06 .qd-product-media { aspect-ratio:4/4.75; background:#f6f2ee; }
.queendress-v06 .qd-product-media img { object-fit:contain; object-position:center bottom; background:#f7f3ef; }
.queendress-v06 .qd-product-heart { top:9px; left:9px; text-decoration:none !important; }
.queendress-v06 .qd-product-body { padding:9px 10px 10px; }
.queendress-v06 .qd-product-title { font-size:12px; min-height:23px; }
.queendress-v06 .qd-product-bottom { margin-top:5px; }
.queendress-v06 .qd-product-price { font-size:11px; }
.queendress-v06 .qd-product-actions { display:flex; align-items:center; gap:6px; direction:ltr; }
.queendress-v06 .qd-card-eye,
.queendress-v06 .qd-mini-cart { width:28px; height:28px; flex:0 0 28px; display:grid; place-items:center; border-radius:8px; text-decoration:none !important; }
.queendress-v06 .qd-card-eye { color:#5b554f !important; border:1px solid #e5ddd5; background:#fff; }
.queendress-v06 .qd-card-eye:hover { background:#f8f3ed; }
.queendress-v06 .qd-card-eye svg,
.queendress-v06 .qd-mini-cart svg { width:14px; height:14px; }

/* Promo closer to the thin editorial banner in the reference. */
.queendress-v06 .qd-promo { min-height:145px; margin-top:30px; grid-template-columns:1.45fr .55fr; border-radius:18px; }
.queendress-v06 .qd-promo-copy { padding:22px 34px; }
.queendress-v06 .qd-promo-copy h2 { font-size:26px; margin:2px 0 2px; }
.queendress-v06 .qd-promo-copy p { font-size:12px; margin-bottom:10px; }
.queendress-v06 .qd-promo-image { min-height:145px; position:relative; display:flex; align-items:flex-end; justify-content:center; overflow:hidden; }
.queendress-v06 .qd-promo-image img { width:100%; height:145px; object-fit:contain; object-position:center bottom; }
.queendress-v06 .qd-promo-image::after { background:linear-gradient(90deg,transparent 35%,rgba(251,246,240,.68) 86%); }

.queendress-v06 .qd-benefits { margin-top:22px; padding:13px 16px; }
.queendress-v06 .qd-review-card { min-height:145px; }
.queendress-v06 .qd-review-count-1 { grid-template-columns:minmax(0,1fr); max-width:520px; margin-right:0; }
.queendress-v06 .qd-review-count-2 { grid-template-columns:repeat(2,1fr); }

/* Clean light footer replacing XStore demo newsletter/footer. */
.qd-footer-trust { margin-top:34px; margin-bottom:0; padding:15px 18px; display:grid; grid-template-columns:repeat(4,1fr); border:1px solid #ebe3dc; border-radius:16px 16px 0 0; background:#fbf7f2; direction:rtl; }
.qd-footer-trust > div { display:flex; align-items:center; justify-content:center; gap:10px; min-height:50px; border-left:1px solid #e8dfd6; }
.qd-footer-trust > div:last-child { border-left:0; }
.qd-footer-trust svg { width:27px; height:27px; color:#bd884e; fill:none; stroke:currentColor; stroke-width:1.7; }
.qd-footer-trust span { display:flex; flex-direction:column; }
.qd-footer-trust strong { font-size:12px; color:#2c2824; }
.qd-footer-trust small { color:#8b837b; font-size:10px; margin-top:1px; }

.qd-footer { margin-top:38px; border-top:1px solid #eee7df; background:#fff; color:#6f6861; font-family:"Vazirmatn","Vazir",Tahoma,sans-serif; }
.qd-footer-grid { display:grid; grid-template-columns:1.35fr .85fr .85fr 1fr; gap:42px; padding-top:34px; padding-bottom:30px; direction:rtl; }
.qd-footer section { min-width:0; }
.qd-footer h3 { margin:0 0 13px; font-size:13px; color:#2d2925; font-weight:700; }
.qd-footer ul { list-style:none; margin:0; padding:0; }
.qd-footer li { margin:6px 0; font-size:11px; line-height:1.8; color:#7c746d; }
.qd-footer a { color:#746d66 !important; text-decoration:none !important; }
.qd-footer a:hover { color:#a9753e !important; }
.qd-footer-brand { text-align:right; }
.qd-footer-logo { display:inline-flex; flex-direction:row-reverse; align-items:flex-start; gap:5px; color:#1f1b18 !important; line-height:1; }
.qd-footer-logo b { font-family:Georgia,"Times New Roman",serif; font-size:29px; font-weight:500; letter-spacing:-1px; direction:ltr; }
.qd-footer-logo span { color:#b9864c; transform:translateY(-6px); }
.qd-footer-brand p { max-width:340px; margin:12px 0 10px; font-size:11px; line-height:2; }
.qd-footer-mini-icons { display:flex; gap:8px; direction:ltr; }
.qd-footer-mini-icons span { width:28px; height:28px; display:grid; place-items:center; border:1px solid #e7dfd7; border-radius:50%; color:#423c36; font-size:14px; }
.qd-contact-list li { overflow-wrap:anywhere; }
.qd-footer-bottom { border-top:1px solid #eee7df; background:#fbf8f4; }
.qd-footer-bottom .qd-shell { min-height:42px; display:flex; align-items:center; justify-content:center; color:#90877f; font-size:10px; }

/* Remove old footer leftovers if a cached hook fragment appears. */
.queendress-v06 .et-footers-wrapper,
.queendress-v06 .prefooter { display:none !important; }

@media (max-width:1180px) {
  .queendress-v06 .qd-home-hero { grid-template-columns:minmax(340px,.9fr) 1.1fr; }
  .queendress-v06 .qd-footer-grid { grid-template-columns:1.2fr .8fr .8fr 1fr; gap:26px; }
}
@media (max-width:960px) {
  .queendress-v06 .qd-home-hero { grid-template-columns:1fr; grid-template-areas:"media" "copy"; direction:rtl; }
  .queendress-v06 .qd-hero-media,
  .queendress-v06 .qd-hero-media > img { min-height:340px; height:340px; }
  .queendress-v06 .qd-hero-copy { align-items:center; text-align:center; padding:28px 24px 34px; }
  .qd-footer-grid { grid-template-columns:1fr 1fr; }
  .qd-footer-trust { grid-template-columns:1fr 1fr; }
  .qd-footer-trust > div:nth-child(2) { border-left:0; }
  .qd-footer-trust > div:nth-child(-n+2) { border-bottom:1px solid #e8dfd6; }
}
@media (max-width:640px) {
  .queendress-v06 .qd-hero-media,
  .queendress-v06 .qd-hero-media > img { min-height:285px; height:285px; }
  .queendress-v06 .qd-hero-copy h1 { font-size:34px; }
  .queendress-v06 .qd-category-grid { grid-template-columns:1fr 1fr; }
  .queendress-v06 .qd-category-card { min-height:78px; grid-template-columns:1fr 40%; }
  .queendress-v06 .qd-category-image { min-height:78px; }
  .queendress-v06 .qd-promo { grid-template-columns:1fr; }
  .queendress-v06 .qd-promo-image { display:none; }
  .qd-footer { margin-top:26px; }
  .qd-footer-grid { grid-template-columns:1fr; gap:22px; padding-top:28px; }
  .qd-footer-trust { grid-template-columns:1fr; border-radius:14px; }
  .qd-footer-trust > div { border-left:0; border-bottom:1px solid #e8dfd6; }
  .qd-footer-trust > div:last-child { border-bottom:0; }
}


/* =========================================================
   PHASE 7 — Shop / Archive redesign
   Version 0.7.0
   ========================================================= */
body.post-type-archive-product.queendress-ui .page-heading,
body.tax-product_cat.queendress-ui .page-heading,
body.tax-product_tag.queendress-ui .page-heading,
body.tax-pa_color.queendress-ui .page-heading,
body.tax-pa_size.queendress-ui .page-heading { display: none !important; }

body.queendress-ui .qd-shop-page { padding: 28px 0 44px; }
body.queendress-ui .qd-shop-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr .95fr;
  align-items: stretch;
  min-height: 190px;
  margin-bottom: 28px;
  overflow: hidden;
  border: 1px solid var(--qd-line);
  border-radius: 28px;
  background: linear-gradient(90deg, #ede6de 0%, #f7f2ec 48%, #fbf9f6 100%);
}
body.queendress-ui .qd-shop-hero-art {
  position: relative;
  min-height: 190px;
  background:
    radial-gradient(circle at 16% 22%, rgba(195,164,130,.24) 0, rgba(195,164,130,.24) 18%, transparent 18%),
    radial-gradient(circle at 32% 74%, rgba(208,186,160,.16) 0, rgba(208,186,160,.16) 14%, transparent 14%),
    linear-gradient(135deg, rgba(180,149,117,.15), rgba(255,255,255,0));
}
body.queendress-ui .qd-shop-hero-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.38));
}
body.queendress-ui .qd-shop-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 32px 44px;
  text-align: right;
}
body.queendress-ui .qd-shop-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--qd-muted);
  font-size: 13px;
}
body.queendress-ui .qd-shop-breadcrumbs a { color: var(--qd-muted); }
body.queendress-ui .qd-shop-breadcrumbs a:hover { color: var(--qd-accent-dark); }
body.queendress-ui .qd-shop-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}
body.queendress-ui .qd-shop-hero p {
  max-width: 36ch;
  margin: 0;
  color: var(--qd-muted);
  font-size: 14px;
}

body.queendress-ui .qd-shop-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}
body.queendress-ui .qd-shop-controls-right,
body.queendress-ui .qd-shop-controls-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
body.queendress-ui .qd-filter-toggle,
body.queendress-ui .qd-view-switch,
body.queendress-ui .qd-ordering-wrap select,
body.queendress-ui .qd-result-count {
  background: #fff;
  border: 1px solid var(--qd-line);
  border-radius: 14px;
  min-height: 48px;
}
body.queendress-ui .qd-filter-toggle {
  padding: 0 18px;
  background: #fff;
  color: var(--qd-text);
}
body.queendress-ui .qd-view-switch {
  display: inline-flex;
  overflow: hidden;
}
body.queendress-ui .qd-view-switch button {
  width: 44px;
  min-width: 44px;
  height: 46px;
  background: transparent;
  border: 0;
  color: var(--qd-muted);
  font-size: 17px;
}
body.queendress-ui .qd-view-switch button + button { border-inline-start: 1px solid var(--qd-line); }
body.queendress-ui .qd-view-switch button.is-active {
  background: var(--qd-surface);
  color: var(--qd-accent-dark);
}
body.queendress-ui .qd-ordering-wrap .woocommerce-ordering { margin: 0; }
body.queendress-ui .qd-ordering-wrap select {
  min-width: 230px;
  padding-inline: 16px 40px;
}
body.queendress-ui .qd-result-count {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: var(--qd-muted);
}

body.queendress-ui .qd-shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 292px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
body.queendress-ui .qd-shop-sidebar {
  position: sticky;
  top: 118px;
}
body.queendress-ui .qd-shop-sidebar-box {
  background: #fff;
  border: 1px solid var(--qd-line);
  border-radius: 22px;
  padding: 22px;
}
body.queendress-ui .qd-shop-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
body.queendress-ui .qd-shop-sidebar-head h2 {
  margin: 0;
  font-size: 22px;
}
body.queendress-ui .qd-sidebar-close { display: none; }
body.queendress-ui .qd-shop-sidebar .sidebar-widget,
body.queendress-ui .qd-shop-sidebar .widget,
body.queendress-ui .qd-shop-sidebar .widget_product_categories,
body.queendress-ui .qd-shop-sidebar .widget_layered_nav,
body.queendress-ui .qd-shop-sidebar .widget_price_filter {
  margin: 0 0 18px;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid var(--qd-line);
  box-shadow: none;
}
body.queendress-ui .qd-shop-sidebar .widget:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
body.queendress-ui .qd-shop-sidebar .widget-title,
body.queendress-ui .qd-shop-sidebar .widgettitle {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
}
body.queendress-ui .qd-shop-sidebar ul { margin: 0; padding: 0; list-style: none; }
body.queendress-ui .qd-shop-sidebar li { margin: 0 0 10px; color: var(--qd-muted); }
body.queendress-ui .qd-shop-sidebar a { color: var(--qd-muted); }
body.queendress-ui .qd-shop-sidebar a:hover,
body.queendress-ui .qd-shop-sidebar .current-cat > a,
body.queendress-ui .qd-shop-sidebar .chosen a { color: var(--qd-accent-dark); }
body.queendress-ui .qd-shop-sidebar input[type='search'] { width: 100%; }
body.queendress-ui .qd-shop-sidebar .price_slider_amount { display: flex; flex-direction: column; gap: 10px; }
body.queendress-ui .qd-shop-sidebar .price_label { color: var(--qd-muted); }

body.queendress-ui .qd-shop-main .products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.queendress-ui .qd-shop-main .products::before,
body.queendress-ui .qd-shop-main .products::after { display: none !important; }
body.queendress-ui .qd-shop-main .products .product,
body.queendress-ui .qd-shop-main .products .qd-shop-item {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  padding: 0 !important;
}
body.queendress-ui .qd-archive-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--qd-line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
body.queendress-ui .qd-archive-card:hover {
  transform: translateY(-3px);
  border-color: var(--qd-line-strong);
  box-shadow: var(--qd-shadow);
}
body.queendress-ui .qd-archive-media-wrap {
  position: relative;
  padding: 12px;
}
body.queendress-ui .qd-archive-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 14px;
  background: var(--qd-surface);
}
body.queendress-ui .qd-archive-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
body.queendress-ui .qd-archive-card:hover .qd-archive-media img { transform: scale(1.035); }
body.queendress-ui .qd-archive-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 14px 14px;
}
body.queendress-ui .qd-archive-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 18px;
}
body.queendress-ui .qd-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: #cab7a0;
  color: transparent;
  overflow: hidden;
}
body.queendress-ui .qd-archive-title {
  color: var(--qd-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  min-height: 48px;
}
body.queendress-ui .qd-archive-price {
  color: var(--qd-text);
  font-weight: 700;
  font-size: 15px;
}
body.queendress-ui .qd-archive-price del { color: #a8a099; opacity: 1; }
body.queendress-ui .qd-archive-price ins { text-decoration: none; color: var(--qd-accent-dark); }
body.queendress-ui .qd-archive-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}
body.queendress-ui .qd-archive-actions .qd-mini-cart,
body.queendress-ui .qd-archive-actions .qd-card-eye {
  width: 36px;
  height: 36px;
}
body.queendress-ui .qd-shop-page .qd-product-heart {
  top: 22px;
  inset-inline-end: 22px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.95);
}
body.queendress-ui .qd-shop-page .woocommerce-pagination { margin-top: 26px; }

body.queendress-ui .qd-view-list .qd-shop-main .products {
  grid-template-columns: 1fr;
}
body.queendress-ui .qd-view-list .qd-archive-card {
  flex-direction: row;
  align-items: stretch;
}
body.queendress-ui .qd-view-list .qd-archive-media-wrap {
  width: 240px;
  min-width: 240px;
  padding: 12px;
}
body.queendress-ui .qd-view-list .qd-archive-body {
  flex: 1;
  justify-content: center;
  padding: 16px 12px 16px 18px;
}
body.queendress-ui .qd-view-list .qd-archive-title { min-height: 0; font-size: 16px; }
body.queendress-ui .qd-view-list .qd-archive-actions {
  justify-content: flex-start;
  gap: 10px;
}

@media (max-width: 1199px) {
  body.queendress-ui .qd-shop-main .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  body.queendress-ui .qd-shop-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  body.queendress-ui .qd-shop-hero-art { min-height: 120px; order: 2; }
  body.queendress-ui .qd-shop-hero-copy { padding: 26px 24px 12px; }
  body.queendress-ui .qd-shop-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  body.queendress-ui .qd-shop-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(92vw, 360px);
    z-index: 90;
    transform: translateX(-104%);
    transition: transform .28s ease;
    background: rgba(255,255,255,.95);
    padding: 14px;
    overflow: auto;
  }
  body.rtl.queendress-ui .qd-shop-sidebar {
    inset: 0 auto 0 0;
    transform: translateX(-104%);
  }
  body.queendress-ui .qd-shop-sidebar.is-open { transform: translateX(0); }
  body.queendress-ui .qd-sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--qd-line);
    background: #fff;
    color: var(--qd-text);
    font-size: 22px;
    line-height: 1;
  }
  body.queendress-ui .qd-shop-main .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  body.queendress-ui .qd-shop-page { padding-top: 18px; }
  body.queendress-ui .qd-shop-hero { border-radius: 22px; margin-bottom: 18px; }
  body.queendress-ui .qd-shop-hero h1 { font-size: 28px; }
  body.queendress-ui .qd-shop-hero p { font-size: 13px; }
  body.queendress-ui .qd-shop-controls {
    flex-direction: column;
    align-items: stretch;
  }
  body.queendress-ui .qd-shop-controls-right,
  body.queendress-ui .qd-shop-controls-left { justify-content: space-between; }
  body.queendress-ui .qd-ordering-wrap,
  body.queendress-ui .qd-ordering-wrap .woocommerce-ordering,
  body.queendress-ui .qd-ordering-wrap select { width: 100%; }
  body.queendress-ui .qd-shop-main .products { gap: 14px; }
  body.queendress-ui .qd-archive-media-wrap { padding: 9px; }
  body.queendress-ui .qd-archive-body { padding: 0 10px 12px; }
  body.queendress-ui .qd-archive-title { font-size: 13px; min-height: 42px; }
  body.queendress-ui .qd-archive-price { font-size: 14px; }
  body.queendress-ui .qd-view-list .qd-archive-card { flex-direction: column; }
  body.queendress-ui .qd-view-list .qd-archive-media-wrap { width: auto; min-width: 0; }
}


/* =========================================================
   PHASE 8 — Shop stability/layout corrections
   Version 0.8.0
   ========================================================= */
body.queendress-ui .qd-shop-page {
  width: min(calc(100% - 36px), var(--qd-container)) !important;
  max-width: var(--qd-container) !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
  clear: both;
}
body.queendress-ui .qd-shop-page::before,
body.queendress-ui .qd-shop-page::after { display: none !important; }

body.queendress-ui .qd-shop-hero {
  direction: rtl;
  grid-template-columns: 1.05fr 1.35fr;
}
body.queendress-ui .qd-shop-hero-copy {
  grid-column: 2;
  grid-row: 1;
  text-align: right;
}
body.queendress-ui .qd-shop-hero-art {
  grid-column: 1;
  grid-row: 1;
  overflow: hidden;
}
body.queendress-ui .qd-shop-hero-art span {
  position: absolute;
  border-radius: 999px;
  background: rgba(190,157,121,.16);
}
body.queendress-ui .qd-shop-hero-art span:first-child {
  width: 230px; height: 230px; inset: -58px auto auto 18%;
}
body.queendress-ui .qd-shop-hero-art span:last-child {
  width: 150px; height: 150px; inset: auto 18% -48px auto;
}

body.queendress-ui .qd-shop-layout {
  width: 100% !important;
  max-width: none !important;
  grid-template-columns: 270px minmax(0,1fr) !important;
}
body.queendress-ui .qd-shop-main {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
}
body.queendress-ui .qd-shop-products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  clear: both !important;
}
body.queendress-ui .qd-shop-products > .qd-archive-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
}
body.queendress-ui .qd-archive-media-wrap { width: 100%; min-width: 0; }
body.queendress-ui .qd-archive-media { width: 100%; }
body.queendress-ui .qd-archive-media img {
  display: block;
  max-width: 100% !important;
}
body.queendress-ui .qd-archive-price .amount {
  white-space: nowrap;
}
body.queendress-ui .qd-shop-pagination {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 28px;
}
body.queendress-ui .qd-shop-pagination .woocommerce-pagination { margin: 0; }

body.queendress-ui .qd-shop-filter-form { display: flex; flex-direction: column; gap: 0; }
body.queendress-ui .qd-filter-search {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
body.queendress-ui .qd-filter-search > span,
body.queendress-ui .qd-filter-group h3 {
  color: var(--qd-text);
  font-size: 15px;
  font-weight: 700;
}
body.queendress-ui .qd-filter-search input { width: 100%; min-width: 0; }
body.queendress-ui .qd-filter-group {
  padding: 18px 0;
  border-top: 1px solid var(--qd-line);
}
body.queendress-ui .qd-filter-group h3 { margin: 0 0 12px; }
body.queendress-ui .qd-filter-cats { list-style: none; margin: 0; padding: 0; }
body.queendress-ui .qd-filter-cats li { margin: 0; }
body.queendress-ui .qd-filter-cats a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  color: var(--qd-muted);
}
body.queendress-ui .qd-filter-cats li.is-active a { color: var(--qd-accent-dark); font-weight: 700; }
body.queendress-ui .qd-filter-cats small { color: #a29b94; }
body.queendress-ui .qd-color-filter {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 7px;
}
body.queendress-ui .qd-color-filter a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 9px;
  border: 1px solid var(--qd-line);
  border-radius: 10px;
  color: var(--qd-muted);
}
body.queendress-ui .qd-color-filter a.is-active {
  border-color: var(--qd-accent);
  color: var(--qd-accent-dark);
  background: var(--qd-surface);
}
body.queendress-ui .qd-color-dot {
  display: inline-block;
  width: 13px; height: 13px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: #bbaa99;
}
body.queendress-ui .qd-color-black,
body.queendress-ui .qd-color-meshki { background:#232323; }
body.queendress-ui .qd-color-white,
body.queendress-ui .qd-color-sefid { background:#fff; }
body.queendress-ui .qd-color-beige,
body.queendress-ui .qd-color-kerem { background:#d8c5ad; }
body.queendress-ui .qd-color-brown,
body.queendress-ui .qd-color-ghahvei { background:#7a5a45; }
body.queendress-ui .qd-color-green,
body.queendress-ui .qd-color-sabz { background:#7c8b69; }
body.queendress-ui .qd-color-blue,
body.queendress-ui .qd-color-abi { background:#7d9eb9; }
body.queendress-ui .qd-color-pink,
body.queendress-ui .qd-color-soorati { background:#dfa4b4; }

body.queendress-ui .qd-price-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
body.queendress-ui .qd-price-fields label { display: grid; gap: 5px; color: var(--qd-muted); font-size: 12px; }
body.queendress-ui .qd-price-fields input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
}
body.queendress-ui .qd-stock-check {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--qd-muted);
}
body.queendress-ui .qd-stock-check input { width: 17px; height: 17px; }
body.queendress-ui .qd-apply-filter,
body.queendress-ui .qd-reset-filter {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
}
body.queendress-ui .qd-apply-filter {
  margin-top: 4px;
  background: var(--qd-dark) !important;
  color: #fff !important;
  border: 1px solid var(--qd-dark) !important;
}
body.queendress-ui .qd-reset-filter {
  margin-top: 8px;
  border: 1px solid var(--qd-line);
  color: var(--qd-muted);
  background: #fff;
}
body.queendress-ui .qd-ordering-wrap select {
  direction: rtl;
  text-align: right;
}

/* hard neutralization of legacy XStore shop controls on our custom archive */
body.queendress-ui .qd-shop-page ~ .shop-filters,
body.queendress-ui .qd-shop-page .filter-wrap,
body.queendress-ui .qd-shop-page .products-page-cats,
body.queendress-ui .qd-shop-page .products-per-page,
body.queendress-ui .qd-shop-page .view-switcher,
body.queendress-ui .qd-shop-page .open-filters-btn,
body.queendress-ui .qd-shop-page .etheme-elementor-off-canvas__toggle {
  display: none !important;
}

@media (max-width: 1199px) {
  body.queendress-ui .qd-shop-products { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
}
@media (max-width: 991px) {
  body.queendress-ui .qd-shop-page {
    width: min(calc(100% - 24px), var(--qd-container)) !important;
  }
  body.queendress-ui .qd-shop-hero {
    display: block;
  }
  body.queendress-ui .qd-shop-hero-copy { padding: 24px; }
  body.queendress-ui .qd-shop-hero-art { display: none; }
  body.queendress-ui .qd-shop-layout { display: block !important; }
  body.queendress-ui .qd-shop-products { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  body.queendress-ui .qd-shop-sidebar {
    right: auto !important;
    left: 0 !important;
    width: min(90vw,360px) !important;
    max-width: 360px !important;
  }
}
@media (max-width: 560px) {
  body.queendress-ui .qd-shop-page {
    width: calc(100% - 20px) !important;
  }
  body.queendress-ui .qd-shop-controls-right {
    display: grid;
    grid-template-columns: auto auto 1fr;
    width: 100%;
    gap: 8px;
  }
  body.queendress-ui .qd-filter-toggle { padding-inline: 12px; }
  body.queendress-ui .qd-view-switch { min-width: 88px; }
  body.queendress-ui .qd-ordering-wrap,
  body.queendress-ui .qd-ordering-wrap .woocommerce-ordering,
  body.queendress-ui .qd-ordering-wrap select { min-width: 0 !important; width: 100% !important; }
  body.queendress-ui .qd-shop-controls-left { width: 100%; }
  body.queendress-ui .qd-result-count { width: 100%; justify-content: center; min-height: 40px; }
  body.queendress-ui .qd-shop-products {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 10px !important;
  }
  body.queendress-ui .qd-archive-card { border-radius: 14px; }
  body.queendress-ui .qd-archive-media-wrap { padding: 7px; }
  body.queendress-ui .qd-archive-media { border-radius: 11px; }
  body.queendress-ui .qd-archive-body { gap: 5px; padding: 0 8px 9px; }
  body.queendress-ui .qd-archive-title {
    font-size: 12px;
    min-height: 38px;
  }
  body.queendress-ui .qd-archive-price { font-size: 12px; line-height: 1.6; }
  body.queendress-ui .qd-archive-actions .qd-mini-cart,
  body.queendress-ui .qd-archive-actions .qd-card-eye,
  body.queendress-ui .qd-shop-page .qd-product-heart {
    width: 32px; height: 32px;
  }
  body.queendress-ui .qd-shop-page .qd-product-heart { top: 14px; inset-inline-end: 14px; }
  body.queendress-ui .qd-product-badge { top: 9px; inset-inline-start: 9px; font-size: 10px; }
  body.queendress-ui .qd-view-list .qd-shop-products { grid-template-columns: 1fr !important; }
}


/* =========================================================
   PHASE 9 — Single product redesign
   Version 0.9.0
   ========================================================= */
body.single-product.queendress-ui .page-heading,
body.single-product.queendress-ui .woocommerce-breadcrumb { display:none !important; }

body.single-product.queendress-ui .qd-single-product {
  width:min(calc(100% - 36px), var(--qd-container));
  max-width:var(--qd-container);
  margin-inline:auto;
  padding:24px 0 48px;
}
body.single-product.queendress-ui .qd-product-breadcrumbs {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 18px;
  color:var(--qd-muted);
  font-size:12px;
}
body.single-product.queendress-ui .qd-product-breadcrumbs a { color:var(--qd-muted); }
body.single-product.queendress-ui .qd-product-breadcrumbs a:hover { color:var(--qd-accent-dark); }

body.single-product.queendress-ui .qd-product-stage {
  display:grid;
  grid-template-columns:minmax(360px,.9fr) minmax(0,1.15fr);
  gap:56px;
  align-items:start;
  margin:0;
}
body.single-product.queendress-ui .qd-product-info { grid-column:1; grid-row:1; min-width:0; }
body.single-product.queendress-ui .qd-product-gallery { grid-column:2; grid-row:1; min-width:0; }
body.single-product.queendress-ui .qd-product-summary {
  position:sticky;
  top:116px;
  padding:6px 0 0;
}
body.single-product.queendress-ui .qd-product-summary .product_title,
body.single-product.queendress-ui .qd-product-summary h1 {
  margin:0 0 12px !important;
  font-size:clamp(28px,3.2vw,43px) !important;
  line-height:1.35 !important;
  font-weight:750 !important;
}
body.single-product.queendress-ui .qd-product-summary .woocommerce-product-rating {
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 16px;
}
body.single-product.queendress-ui .qd-product-summary .star-rating { color:var(--qd-accent); }
body.single-product.queendress-ui .qd-product-summary .woocommerce-review-link { color:var(--qd-muted); font-size:12px; }
body.single-product.queendress-ui .qd-product-summary .price {
  display:block;
  margin:0 0 12px !important;
  color:var(--qd-text) !important;
  font-size:clamp(22px,2.2vw,30px) !important;
  line-height:1.5;
  font-weight:800 !important;
}
body.single-product.queendress-ui .qd-product-summary .price del { color:#a79e95; font-size:.75em; }
body.single-product.queendress-ui .qd-product-summary .price ins { color:var(--qd-accent-dark); text-decoration:none; }
body.single-product.queendress-ui .qd-product-summary .woocommerce-product-details__short-description {
  margin:12px 0 18px;
  color:var(--qd-muted);
  font-size:14px;
  line-height:2;
}
body.single-product.queendress-ui .qd-product-summary .stock {
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin:2px 0 16px;
  color:var(--qd-success);
  font-size:13px;
  font-weight:700;
}
body.single-product.queendress-ui .qd-product-summary .stock::before {
  content:''; width:8px; height:8px; border-radius:50%; background:currentColor;
}

body.single-product.queendress-ui .qd-product-summary form.cart {
  margin:18px 0 12px !important;
  padding-top:18px;
  border-top:1px solid var(--qd-line);
}
body.single-product.queendress-ui .qd-product-summary table.variations {
  width:100%;
  margin:0 0 14px !important;
  padding:0 !important;
  border:0 !important;
}
body.single-product.queendress-ui .qd-product-summary table.variations tr {
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  margin-bottom:14px;
}
body.single-product.queendress-ui .qd-product-summary table.variations th,
body.single-product.queendress-ui .qd-product-summary table.variations td {
  display:block;
  width:100% !important;
  padding:0 !important;
  border:0 !important;
  text-align:right !important;
}
body.single-product.queendress-ui .qd-product-summary table.variations label { font-weight:700; color:var(--qd-text); }
body.single-product.queendress-ui .qd-product-summary table.variations select { width:100%; }
body.single-product.queendress-ui .qd-product-summary .reset_variations { display:inline-block; margin-top:7px; color:var(--qd-muted); font-size:12px; }
body.single-product.queendress-ui .qd-product-summary .woocommerce-variation-price { margin:8px 0; }
body.single-product.queendress-ui .qd-product-summary .woocommerce-variation-add-to-cart,
body.single-product.queendress-ui .qd-product-summary form.cart:not(.variations_form) {
  display:flex;
  align-items:stretch;
  gap:10px;
  flex-wrap:wrap;
}
body.single-product.queendress-ui .qd-product-summary .quantity {
  width:116px;
  min-width:116px;
  height:52px;
  margin:0 !important;
  display:flex;
  align-items:center;
  justify-content:center;
}
body.single-product.queendress-ui .qd-product-summary .single_add_to_cart_button {
  flex:1 1 220px;
  min-height:52px !important;
  margin:0 !important;
  background:linear-gradient(135deg,#c99a61,#b98144) !important;
  border:0 !important;
  border-radius:12px !important;
  color:#fff !important;
  font-size:15px !important;
  font-weight:750 !important;
}
body.single-product.queendress-ui .qd-product-summary .yith-wcwl-add-to-wishlist,
body.single-product.queendress-ui .qd-product-summary .wishlist-fragment,
body.single-product.queendress-ui .qd-product-summary .compare,
body.single-product.queendress-ui .qd-product-summary .product-share,
body.single-product.queendress-ui .qd-product-summary .share-post {
  margin-top:10px;
}
body.single-product.queendress-ui .qd-product-summary .product_meta {
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid var(--qd-line);
  color:var(--qd-muted);
  font-size:12px;
}
body.single-product.queendress-ui .qd-product-summary .product_meta > span { display:block; margin:4px 0; }
body.single-product.queendress-ui .qd-product-summary .product_meta a { color:var(--qd-muted); }

body.single-product.queendress-ui .qd-product-gallery > .onsale,
body.single-product.queendress-ui .qd-product-gallery .onsale {
  z-index:5;
}
body.single-product.queendress-ui .qd-product-gallery .woocommerce-product-gallery,
body.single-product.queendress-ui .qd-product-gallery .product-images,
body.single-product.queendress-ui .qd-product-gallery .main-images,
body.single-product.queendress-ui .qd-product-gallery .main-image-slider {
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  border:0 !important;
  box-shadow:none !important;
}
body.single-product.queendress-ui .qd-product-gallery .woocommerce-product-gallery__wrapper,
body.single-product.queendress-ui .qd-product-gallery .main-images {
  overflow:hidden;
  border:1px solid var(--qd-line);
  border-radius:24px;
  background:var(--qd-surface);
}
body.single-product.queendress-ui .qd-product-gallery .woocommerce-product-gallery__image a,
body.single-product.queendress-ui .qd-product-gallery .woocommerce-product-gallery__image img {
  display:block;
  width:100% !important;
}
body.single-product.queendress-ui .qd-product-gallery .woocommerce-product-gallery__image img {
  height:auto !important;
  max-height:720px;
  object-fit:contain;
  background:var(--qd-surface);
}
body.single-product.queendress-ui .qd-product-gallery .flex-control-thumbs,
body.single-product.queendress-ui .qd-product-gallery .thumbnails-list,
body.single-product.queendress-ui .qd-product-gallery .swiper-thumbnails {
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
  margin-top:10px !important;
  padding:0 !important;
  list-style:none;
}
body.single-product.queendress-ui .qd-product-gallery .flex-control-thumbs li,
body.single-product.queendress-ui .qd-product-gallery .thumbnails-list li {
  width:auto !important;
  margin:0 !important;
}
body.single-product.queendress-ui .qd-product-gallery .flex-control-thumbs img,
body.single-product.queendress-ui .qd-product-gallery .thumbnails-list img {
  width:100%; aspect-ratio:1/1; object-fit:cover;
  border:1px solid var(--qd-line);
  border-radius:12px;
  opacity:1;
  background:var(--qd-surface);
}
body.single-product.queendress-ui .qd-product-gallery .flex-control-thumbs img.flex-active,
body.single-product.queendress-ui .qd-product-gallery .thumbnails-list .active img { border-color:var(--qd-accent); }

body.single-product.queendress-ui .qd-product-trust {
  display:grid;
  gap:10px;
  margin-top:16px;
}
body.single-product.queendress-ui .qd-product-trust-card {
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 16px;
  border:1px solid var(--qd-line);
  border-radius:14px;
  background:var(--qd-surface);
}
body.single-product.queendress-ui .qd-product-trust-card svg {
  width:28px; height:28px; fill:none; stroke:var(--qd-accent); stroke-width:1.7;
  flex:0 0 auto;
}
body.single-product.queendress-ui .qd-product-trust-card span { display:grid; gap:1px; }
body.single-product.queendress-ui .qd-product-trust-card strong { color:var(--qd-text); font-size:13px; }
body.single-product.queendress-ui .qd-product-trust-card small { color:var(--qd-muted); font-size:11px; }

body.single-product.queendress-ui .qd-product-tabs-wrap {
  margin-top:44px;
  border:1px solid var(--qd-line);
  border-radius:18px;
  background:#fff;
  overflow:hidden;
}
body.single-product.queendress-ui .qd-product-tabs-wrap .woocommerce-tabs { margin:0 !important; border:0 !important; border-radius:0 !important; }
body.single-product.queendress-ui .qd-product-tabs-wrap .woocommerce-tabs ul.tabs {
  display:flex;
  justify-content:flex-start;
  gap:0;
  margin:0 !important;
  padding:0 18px !important;
  border-bottom:1px solid var(--qd-line) !important;
  background:#fff !important;
  overflow-x:auto;
}
body.single-product.queendress-ui .qd-product-tabs-wrap .woocommerce-tabs ul.tabs::before { display:none !important; }
body.single-product.queendress-ui .qd-product-tabs-wrap .woocommerce-tabs ul.tabs li {
  background:transparent !important;
  border:0 !important;
  border-radius:0 !important;
  margin:0 !important;
  padding:0 !important;
}
body.single-product.queendress-ui .qd-product-tabs-wrap .woocommerce-tabs ul.tabs li::before,
body.single-product.queendress-ui .qd-product-tabs-wrap .woocommerce-tabs ul.tabs li::after { display:none !important; }
body.single-product.queendress-ui .qd-product-tabs-wrap .woocommerce-tabs ul.tabs li a {
  display:block;
  padding:16px 18px !important;
  color:var(--qd-muted) !important;
  white-space:nowrap;
  font-weight:650 !important;
}
body.single-product.queendress-ui .qd-product-tabs-wrap .woocommerce-tabs ul.tabs li.active a {
  color:var(--qd-accent-dark) !important;
  box-shadow:inset 0 -2px 0 var(--qd-accent);
}
body.single-product.queendress-ui .qd-product-tabs-wrap .woocommerce-Tabs-panel,
body.single-product.queendress-ui .qd-product-tabs-wrap .panel {
  margin:0 !important;
  padding:22px 24px !important;
  color:var(--qd-muted);
  line-height:2;
}

body.single-product.queendress-ui .qd-related-products { margin-top:36px; }
body.single-product.queendress-ui .qd-related-products > .related > h2,
body.single-product.queendress-ui .qd-related-products .related-products-title {
  margin:0 0 18px !important;
  font-size:24px !important;
  text-align:right;
}
body.single-product.queendress-ui .qd-related-products .products {
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:16px !important;
  margin:0 !important;
  padding:0 !important;
  list-style:none !important;
}
body.single-product.queendress-ui .qd-related-products .products::before,
body.single-product.queendress-ui .qd-related-products .products::after { display:none !important; }
body.single-product.queendress-ui .qd-related-products .products > li {
  width:auto !important; margin:0 !important; padding:0 !important; float:none !important;
}

@media (max-width:1100px) {
  body.single-product.queendress-ui .qd-product-stage { grid-template-columns:minmax(320px,.9fr) minmax(0,1fr); gap:30px; }
  body.single-product.queendress-ui .qd-related-products .products { grid-template-columns:repeat(4,minmax(0,1fr)) !important; }
}
@media (max-width:820px) {
  body.single-product.queendress-ui .qd-single-product { width:calc(100% - 24px); padding-top:18px; }
  body.single-product.queendress-ui .qd-product-stage { display:flex; flex-direction:column; gap:20px; }
  body.single-product.queendress-ui .qd-product-gallery { order:1; width:100%; }
  body.single-product.queendress-ui .qd-product-info { order:2; width:100%; }
  body.single-product.queendress-ui .qd-product-summary { position:static; }
  body.single-product.queendress-ui .qd-related-products .products { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:10px !important; }
}
@media (max-width:560px) {
  body.single-product.queendress-ui .qd-product-breadcrumbs { font-size:11px; }
  body.single-product.queendress-ui .qd-product-summary .product_title,
  body.single-product.queendress-ui .qd-product-summary h1 { font-size:25px !important; }
  body.single-product.queendress-ui .qd-product-summary .price { font-size:21px !important; }
  body.single-product.queendress-ui .qd-product-gallery .woocommerce-product-gallery__wrapper,
  body.single-product.queendress-ui .qd-product-gallery .main-images { border-radius:18px; }
  body.single-product.queendress-ui .qd-product-gallery .flex-control-thumbs,
  body.single-product.queendress-ui .qd-product-gallery .thumbnails-list,
  body.single-product.queendress-ui .qd-product-gallery .swiper-thumbnails { grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; }
  body.single-product.queendress-ui .qd-product-summary .quantity { width:92px; min-width:92px; }
  body.single-product.queendress-ui .qd-product-tabs-wrap { margin-top:28px; }
  body.single-product.queendress-ui .qd-product-tabs-wrap .woocommerce-Tabs-panel,
  body.single-product.queendress-ui .qd-product-tabs-wrap .panel { padding:16px !important; }
}


/* =========================================================
   PHASE 10 — QueenDress 360° viewer + stable product gallery
   Version 1.0.0
   ========================================================= */

/* Prevent legacy XStore/Woo gallery remnants from leaking into our custom media area. */
body.single-product.queendress-ui .qd-product-gallery > .woocommerce-product-gallery,
body.single-product.queendress-ui .qd-product-gallery > .product-images {
  width:100% !important;
}

/* ---------- 360 ---------- */
body.single-product.queendress-ui .qd-360-shell {
  width:100%;
  min-width:0;
}
body.single-product.queendress-ui .qd-360-stage {
  position:relative;
  width:100%;
  aspect-ratio: 4 / 5;
  overflow:hidden;
  border:1px solid var(--qd-line);
  border-radius:24px;
  background:var(--qd-surface);
  cursor:grab;
  user-select:none;
  -webkit-user-select:none;
  touch-action:pan-y;
}
body.single-product.queendress-ui .qd-360-stage.is-dragging { cursor:grabbing; }
body.single-product.queendress-ui .qd-360-frame {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  pointer-events:none;
  -webkit-user-drag:none;
  background:var(--qd-surface);
}
body.single-product.queendress-ui .qd-360-loading {
  position:absolute;
  inset:auto 18px 18px;
  display:flex;
  align-items:center;
  gap:9px;
  width:max-content;
  max-width:calc(100% - 36px);
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.8);
  border-radius:999px;
  background:rgba(255,255,255,.9);
  color:var(--qd-muted);
  font-size:11px;
  backdrop-filter:blur(8px);
  z-index:4;
  transition:opacity .25s ease, visibility .25s ease;
}
body.single-product.queendress-ui .qd-360-loading span {
  width:8px; height:8px; border-radius:50%;
  background:var(--qd-accent);
  animation:qd360pulse 1s ease-in-out infinite alternate;
}
body.single-product.queendress-ui .qd-360-shell.is-ready .qd-360-loading {
  opacity:0;
  visibility:hidden;
}
@keyframes qd360pulse { to { opacity:.25; transform:scale(.75); } }

body.single-product.queendress-ui .qd-360-hint {
  position:absolute;
  inset:auto auto 18px 50%;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  gap:7px;
  padding:8px 13px;
  border:1px solid rgba(232,225,218,.9);
  border-radius:999px;
  background:rgba(255,255,255,.94);
  color:var(--qd-text);
  font-size:11px;
  font-weight:650;
  box-shadow:0 6px 20px rgba(42,32,23,.05);
  z-index:3;
  pointer-events:none;
  transition:opacity .25s ease;
}
body.single-product.queendress-ui .qd-360-stage.is-interacted .qd-360-hint { opacity:0; }
body.single-product.queendress-ui .qd-360-hint span { color:var(--qd-accent-dark); font-size:17px; line-height:1; }

body.single-product.queendress-ui .qd-360-badge {
  position:absolute;
  top:16px;
  inset-inline-start:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:52px;
  height:34px;
  padding:0 10px;
  border:1px solid var(--qd-line);
  border-radius:999px;
  background:rgba(255,255,255,.94);
  color:var(--qd-accent-dark);
  font-size:12px;
  font-weight:800;
  z-index:3;
}
body.single-product.queendress-ui .qd-360-arrow {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  padding:0;
  border:1px solid var(--qd-line) !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.94) !important;
  color:var(--qd-text) !important;
  font-size:25px;
  font-weight:400;
  line-height:1;
  z-index:3;
  opacity:.85;
}
body.single-product.queendress-ui .qd-360-prev { inset-inline-start:16px; }
body.single-product.queendress-ui .qd-360-next { inset-inline-end:16px; }
body.single-product.queendress-ui .qd-360-arrow:hover { opacity:1; transform:translateY(-50%) !important; }
body.single-product.queendress-ui .qd-360-meta {
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding:9px 5px 0;
  color:var(--qd-muted);
  font-size:10.5px;
}

/* ---------- clean non-360 gallery ---------- */
body.single-product.queendress-ui .qd-gallery-shell { width:100%; min-width:0; }
body.single-product.queendress-ui .qd-gallery-stage {
  position:relative;
  width:100%;
  aspect-ratio:4/5;
  overflow:hidden;
  border:1px solid var(--qd-line);
  border-radius:24px;
  background:var(--qd-surface);
}
body.single-product.queendress-ui .qd-gallery-main-link {
  display:block;
  width:100%;
  height:100%;
}
body.single-product.queendress-ui .qd-gallery-main {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  background:var(--qd-surface);
}
body.single-product.queendress-ui .qd-gallery-sale {
  position:absolute;
  top:16px;
  inset-inline-start:16px;
  z-index:3;
  padding:7px 11px;
  border:1px solid var(--qd-line);
  border-radius:999px;
  background:rgba(255,255,255,.94);
  color:var(--qd-accent-dark);
  font-size:11px;
  font-weight:700;
}
body.single-product.queendress-ui .qd-gallery-thumbs {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:9px;
  margin-top:10px;
}
body.single-product.queendress-ui .qd-gallery-thumb {
  width:100%;
  min-width:0;
  aspect-ratio:1;
  padding:4px !important;
  border:1px solid var(--qd-line) !important;
  border-radius:12px !important;
  background:#fff !important;
  overflow:hidden;
}
body.single-product.queendress-ui .qd-gallery-thumb.is-active {
  border-color:var(--qd-accent) !important;
  box-shadow:0 0 0 1px var(--qd-accent);
}
body.single-product.queendress-ui .qd-gallery-thumb img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:8px;
}
body.single-product.queendress-ui .qd-media-fallback {
  width:100%;
  aspect-ratio:4/5;
  overflow:hidden;
  border:1px solid var(--qd-line);
  border-radius:24px;
  background:var(--qd-surface);
}
body.single-product.queendress-ui .qd-media-fallback img {
  width:100%; height:100%; object-fit:contain;
}

/* Remove old stacked gallery structures that can be injected by the parent theme around our template. */
body.single-product.queendress-ui .qd-product-gallery .swiper-container:not(.qd-gallery-shell),
body.single-product.queendress-ui .qd-product-gallery .images-nav {
  max-width:100%;
}

/* Related products use the same stable QueenDress grid. */
body.single-product.queendress-ui .qd-related-products .products .product {
  min-width:0 !important;
}

/* Out-of-stock text: Persian-friendly and visually compact. */
body.single-product.queendress-ui .qd-product-summary .stock.out-of-stock {
  color:var(--qd-danger);
}

/* Mobile */
@media (max-width:820px) {
  body.single-product.queendress-ui .qd-360-stage,
  body.single-product.queendress-ui .qd-gallery-stage {
    aspect-ratio:4/5;
    border-radius:18px;
  }
  body.single-product.queendress-ui .qd-360-arrow {
    width:38px; height:38px; font-size:22px;
  }
  body.single-product.queendress-ui .qd-360-prev { inset-inline-start:10px; }
  body.single-product.queendress-ui .qd-360-next { inset-inline-end:10px; }
  body.single-product.queendress-ui .qd-360-badge { top:10px; inset-inline-start:10px; }
  body.single-product.queendress-ui .qd-360-hint { bottom:12px; }
}
@media (max-width:560px) {
  body.single-product.queendress-ui .qd-gallery-thumbs {
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:7px;
  }
  body.single-product.queendress-ui .qd-360-meta {
    font-size:9.5px;
  }
}


/* =========================================================
   PHASE 11 — Cart + Checkout
   Version 1.1.0
   ========================================================= */

body.woocommerce-cart.queendress-ui .page-heading,
body.woocommerce-checkout.queendress-ui .page-heading { display:none !important; }

body.queendress-ui .qd-commerce-page {
  width:min(calc(100% - 36px),var(--qd-container));
  margin:0 auto;
  padding:30px 0 50px;
}

/* Purchase steps */
body.queendress-ui .qd-checkout-steps {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  margin:0 0 30px;
  direction:rtl;
}
body.queendress-ui .qd-step {
  position:relative;
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  padding:0 10px;
}
body.queendress-ui .qd-step:not(:last-child)::after {
  content:'';
  position:absolute;
  top:22px;
  inset-inline-start:calc(50% + 70px);
  width:calc(100% - 125px);
  height:1px;
  background:var(--qd-line);
}
body.queendress-ui .qd-step.is-done:not(:last-child)::after { background:var(--qd-accent); }
body.queendress-ui .qd-step-number {
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 44px;
  width:44px;
  height:44px;
  border:1px solid var(--qd-line);
  border-radius:999px;
  background:#fff;
  color:var(--qd-muted);
  font-weight:700;
}
body.queendress-ui .qd-step.is-active .qd-step-number,
body.queendress-ui .qd-step.is-done .qd-step-number {
  border-color:var(--qd-accent);
  background:var(--qd-accent);
  color:#fff;
}
body.queendress-ui .qd-step-copy {
  display:grid;
  gap:1px;
  min-width:0;
}
body.queendress-ui .qd-step-copy strong { color:var(--qd-text); font-size:14px; }
body.queendress-ui .qd-step-copy small { color:var(--qd-muted); font-size:10.5px; }

/* Generic checkout/cart cards */
body.queendress-ui .qd-cart-items-card,
body.queendress-ui .qd-cart-summary > .cart-collaterals,
body.queendress-ui .qd-checkout-card,
body.queendress-ui .qd-checkout-trust {
  border:1px solid var(--qd-line);
  border-radius:20px;
  background:#fff;
}
body.queendress-ui .qd-card-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:20px 22px;
  border-bottom:1px solid var(--qd-line);
}
body.queendress-ui .qd-card-heading h1,
body.queendress-ui .qd-card-heading h2,
body.queendress-ui .qd-card-heading h3 {
  margin:0;
  line-height:1.4;
}
body.queendress-ui .qd-card-heading h1 { font-size:23px; }
body.queendress-ui .qd-card-heading h2 { font-size:19px; }
body.queendress-ui .qd-card-heading p { margin:3px 0 0; color:var(--qd-muted); font-size:11px; }
body.queendress-ui .qd-card-heading > a { color:var(--qd-accent-dark); font-size:12px; }

/* Cart */
body.queendress-ui .qd-cart-layout {
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(300px,.75fr);
  gap:22px;
  align-items:start;
}
body.queendress-ui .qd-cart-items-card { overflow:hidden; }
body.queendress-ui .qd-cart-list { padding:0 22px; }
body.queendress-ui .qd-cart-item {
  display:grid;
  grid-template-columns:116px minmax(0,1fr);
  gap:16px;
  padding:20px 0;
  border-bottom:1px solid var(--qd-line);
}
body.queendress-ui .qd-cart-item:last-child { border-bottom:0; }
body.queendress-ui .qd-cart-thumb {
  overflow:hidden;
  aspect-ratio:1;
  border-radius:14px;
  background:var(--qd-surface);
}
body.queendress-ui .qd-cart-thumb img {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
body.queendress-ui .qd-cart-item-main { display:flex; flex-direction:column; justify-content:space-between; gap:14px; min-width:0; }
body.queendress-ui .qd-cart-item-top,
body.queendress-ui .qd-cart-item-bottom {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
body.queendress-ui .qd-cart-product-title {
  color:var(--qd-text);
  font-size:15px;
  font-weight:700;
}
body.queendress-ui .qd-cart-meta {
  margin-top:5px;
  color:var(--qd-muted);
  font-size:11px;
}
body.queendress-ui .qd-cart-meta dl { margin:0; }
body.queendress-ui .qd-cart-remove {
  padding:4px 9px;
  border:1px solid #efd7d7;
  border-radius:8px;
  color:var(--qd-danger) !important;
  font-size:11px;
  line-height:1.5;
}
body.queendress-ui .qd-cart-item-bottom { align-items:flex-end; }
body.queendress-ui .qd-cart-item-bottom > div { display:grid; gap:4px; }
body.queendress-ui .qd-cart-item-bottom small { color:var(--qd-muted); font-size:10px; }
body.queendress-ui .qd-cart-item-bottom strong { font-size:13px; }
body.queendress-ui .qd-cart-qty .quantity { min-width:104px; }
body.queendress-ui .qd-cart-actions {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:18px 22px 22px;
  border-top:1px solid var(--qd-line);
  background:var(--qd-surface);
}
body.queendress-ui .qd-cart-coupon {
  display:flex;
  align-items:stretch;
  gap:8px;
  width:min(100%,420px);
}
body.queendress-ui .qd-cart-coupon input {
  flex:1;
  min-width:0;
  min-height:44px;
}
body.queendress-ui .qd-cart-coupon button,
body.queendress-ui .qd-update-cart {
  min-height:44px;
  padding:0 16px;
}
body.queendress-ui .qd-cart-coupon button {
  background:var(--qd-dark) !important;
  color:#fff !important;
  border:0 !important;
}
body.queendress-ui .qd-update-cart {
  border:1px solid var(--qd-line) !important;
  background:#fff !important;
  color:var(--qd-text) !important;
}
body.queendress-ui .qd-cart-summary {
  display:grid;
  gap:16px;
  position:sticky;
  top:116px;
}
body.queendress-ui .qd-cart-summary > .cart-collaterals { overflow:hidden; }
body.queendress-ui .qd-cart-totals { width:100% !important; float:none !important; }
body.queendress-ui .qd-summary-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:19px 20px;
  border-bottom:1px solid var(--qd-line);
}
body.queendress-ui .qd-summary-title h2 { margin:0; font-size:20px; }
body.queendress-ui .qd-summary-title a { color:var(--qd-muted); font-size:11px; }
body.queendress-ui .qd-cart-totals .shop_table {
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
}
body.queendress-ui .qd-cart-totals .shop_table tr { border-bottom:1px solid var(--qd-line); }
body.queendress-ui .qd-cart-totals .shop_table th,
body.queendress-ui .qd-cart-totals .shop_table td {
  padding:13px 20px !important;
  border:0 !important;
  font-size:12px;
  vertical-align:top;
}
body.queendress-ui .qd-cart-totals .shop_table th { color:var(--qd-muted); font-weight:500; }
body.queendress-ui .qd-cart-totals .shop_table td { text-align:left; color:var(--qd-text); font-weight:650; }
body.rtl.queendress-ui .qd-cart-totals .shop_table td { text-align:left; }
body.queendress-ui .qd-cart-totals .order-total th,
body.queendress-ui .qd-cart-totals .order-total td { padding-top:18px !important; padding-bottom:18px !important; font-size:15px; color:var(--qd-text); font-weight:800; }
body.queendress-ui .qd-cart-totals .wc-proceed-to-checkout { padding:18px 20px 20px; }
body.queendress-ui .qd-cart-totals .checkout-button {
  display:flex !important;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:52px;
  margin:0 !important;
  border-radius:12px !important;
  background:var(--qd-dark) !important;
  color:#fff !important;
  font-size:14px;
}
body.queendress-ui .qd-cart-cross-sells { margin-top:30px; }

/* Trust card */
body.queendress-ui .qd-checkout-trust {
  display:grid;
  grid-template-columns:86px minmax(0,1fr);
  gap:16px;
  padding:20px;
  background:linear-gradient(135deg,#fff,#fcf8f3);
}
body.queendress-ui .qd-trust-mark {
  display:flex;
  align-items:center;
  justify-content:center;
  width:76px;
  height:76px;
  border:1px dashed #d9c2a7;
  border-radius:999px;
  color:var(--qd-accent);
  background:#fff;
}
body.queendress-ui .qd-trust-mark svg { width:38px; height:38px; fill:none; stroke:currentColor; stroke-width:1.5; }
body.queendress-ui .qd-trust-copy h3 { margin:0 0 9px; font-size:17px; }
body.queendress-ui .qd-trust-copy ul { display:grid; gap:6px; margin:0; padding:0; list-style:none; }
body.queendress-ui .qd-trust-copy li { display:flex; align-items:center; gap:7px; color:var(--qd-muted); font-size:10.5px; }
body.queendress-ui .qd-trust-copy li svg { width:15px; height:15px; fill:none; stroke:var(--qd-accent-dark); stroke-width:1.6; }

/* Checkout */
body.queendress-ui .qd-checkout-form { margin:0; }
body.queendress-ui .qd-checkout-layout {
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(320px,.72fr);
  gap:22px;
  align-items:start;
}
body.queendress-ui .qd-checkout-main { display:grid; gap:18px; min-width:0; }
body.queendress-ui .qd-checkout-summary { position:sticky; top:116px; min-width:0; }
body.queendress-ui .qd-checkout-card { overflow:hidden; }
body.queendress-ui .qd-heading-icon {
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border:1px solid var(--qd-line);
  border-radius:10px;
  color:var(--qd-text);
  background:var(--qd-surface);
}
body.queendress-ui .qd-heading-icon svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.6; }
body.queendress-ui .qd-customer-card #customer_details { padding:20px 22px 22px; }
body.queendress-ui .qd-customer-card #customer_details .col-1,
body.queendress-ui .qd-customer-card #customer_details .col-2 {
  width:100% !important;
  float:none !important;
  padding:0 !important;
}
body.queendress-ui .qd-fields-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px 16px;
}
body.queendress-ui .qd-fields-grid .form-row {
  width:100% !important;
  float:none !important;
  margin:0 !important;
  padding:0 !important;
}
body.queendress-ui .qd-fields-grid .qd-field-full,
body.queendress-ui .qd-fields-grid #billing_address_1_field,
body.queendress-ui .qd-fields-grid #billing_address_2_field,
body.queendress-ui .qd-fields-grid #billing_country_field,
body.queendress-ui .qd-fields-grid #billing_company_field {
  grid-column:1 / -1;
}
body.queendress-ui .qd-fields-grid label,
body.queendress-ui .qd-additional-fields label { display:block; margin-bottom:6px; color:var(--qd-text); font-size:11px; font-weight:600; }
body.queendress-ui .qd-fields-grid input,
body.queendress-ui .qd-fields-grid select,
body.queendress-ui .qd-fields-grid .select2-container,
body.queendress-ui .qd-additional-fields textarea { width:100% !important; }
body.queendress-ui .qd-different-address {
  margin:18px 0 0;
  padding:12px 14px;
  border:1px solid var(--qd-line);
  border-radius:11px;
  background:var(--qd-surface);
}
body.queendress-ui .qd-different-address label { display:flex; align-items:center; gap:8px; margin:0; }
body.queendress-ui .qd-additional-fields { margin-top:16px; }
body.queendress-ui .qd-additional-fields textarea { min-height:105px; }
body.queendress-ui .qd-payment-card .qd-payment-host { padding:18px 22px 22px; }
body.queendress-ui .qd-payment-card #payment,
body.queendress-ui .qd-payment-card .woocommerce-checkout-payment {
  padding:0 !important;
  margin:0 !important;
  background:transparent !important;
  border:0 !important;
}
body.queendress-ui .qd-payment-card .payment_methods {
  margin:0 0 14px !important;
  padding:0 !important;
  list-style:none;
}
body.queendress-ui .qd-payment-card .wc_payment_method {
  margin:0 0 9px !important;
  padding:13px 14px !important;
  border:1px solid var(--qd-line);
  border-radius:12px;
  background:#fff;
}
body.queendress-ui .qd-payment-card .payment_box {
  margin:10px 0 0 !important;
  padding:10px 12px !important;
  border-radius:9px !important;
  background:var(--qd-surface) !important;
}
body.queendress-ui .qd-payment-card .place-order { margin:0 !important; padding:12px 0 0 !important; }
body.queendress-ui .qd-payment-card #place_order {
  width:100%;
  min-height:52px;
  border-radius:11px !important;
  background:var(--qd-dark) !important;
  color:#fff !important;
}

/* Order summary */
body.queendress-ui .qd-order-card #order_review { padding:0 !important; border:0 !important; }
body.queendress-ui .qd-order-review-items { padding:0 18px; }
body.queendress-ui .qd-order-review-item {
  display:grid;
  grid-template-columns:72px minmax(0,1fr) auto;
  gap:11px;
  align-items:center;
  padding:14px 0;
  border-bottom:1px solid var(--qd-line);
}
body.queendress-ui .qd-order-review-thumb {
  overflow:hidden;
  width:72px;
  height:82px;
  border-radius:11px;
  background:var(--qd-surface);
}
body.queendress-ui .qd-order-review-thumb img { width:100%; height:100%; object-fit:cover; }
body.queendress-ui .qd-order-review-info { min-width:0; }
body.queendress-ui .qd-order-review-info > strong { display:block; color:var(--qd-text); font-size:12px; line-height:1.6; }
body.queendress-ui .qd-order-review-info > div { color:var(--qd-muted); font-size:9.5px; }
body.queendress-ui .qd-order-review-info > small { color:var(--qd-muted); font-size:9.5px; }
body.queendress-ui .qd-order-review-price { white-space:nowrap; font-size:11px; font-weight:700; }
body.queendress-ui .qd-order-totals { padding:8px 18px 16px; }
body.queendress-ui .qd-order-totals > div {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:9px 0;
  color:var(--qd-muted);
  font-size:11px;
}
body.queendress-ui .qd-order-totals > div strong { color:var(--qd-text); font-weight:700; }
body.queendress-ui .qd-order-totals .qd-order-grand-total {
  margin-top:5px;
  padding-top:14px;
  border-top:1px solid var(--qd-line);
  color:var(--qd-text);
  font-size:14px;
  font-weight:800;
}
body.queendress-ui .qd-order-shipping { display:block !important; }
body.queendress-ui .qd-order-shipping > span { display:block; margin-bottom:7px; }
body.queendress-ui .qd-shipping-methods {
  width:100%;
  padding:10px;
  border:1px solid var(--qd-line);
  border-radius:10px;
  background:var(--qd-surface);
}
body.queendress-ui .qd-shipping-methods table,
body.queendress-ui .qd-shipping-methods tbody,
body.queendress-ui .qd-shipping-methods tr,
body.queendress-ui .qd-shipping-methods td,
body.queendress-ui .qd-shipping-methods th { display:block; width:100%; border:0 !important; padding:0 !important; }
body.queendress-ui .qd-shipping-methods ul { margin:0; padding:0; list-style:none; }

/* Coupon/login notice on checkout */
body.queendress-ui.woocommerce-checkout .before-checkout-form,
body.queendress-ui.woocommerce-checkout .woocommerce-form-coupon-toggle,
body.queendress-ui.woocommerce-checkout .woocommerce-form-login-toggle {
  width:min(calc(100% - 36px),var(--qd-container));
  margin:14px auto;
}
body.queendress-ui.woocommerce-checkout form.checkout_coupon,
body.queendress-ui.woocommerce-checkout form.woocommerce-form-login {
  width:min(calc(100% - 36px),var(--qd-container));
  margin:0 auto 18px !important;
  padding:16px !important;
  border:1px solid var(--qd-line) !important;
  border-radius:14px !important;
  background:var(--qd-surface) !important;
}

/* Mobile */
@media (max-width:900px) {
  body.queendress-ui .qd-commerce-page { width:min(calc(100% - 24px),var(--qd-container)); }
  body.queendress-ui .qd-cart-layout,
  body.queendress-ui .qd-checkout-layout { grid-template-columns:1fr; }
  body.queendress-ui .qd-cart-summary,
  body.queendress-ui .qd-checkout-summary { position:static; }
  body.queendress-ui .qd-checkout-summary { order:-1; }
}
@media (max-width:600px) {
  body.queendress-ui .qd-commerce-page { width:calc(100% - 20px); padding-top:20px; }
  body.queendress-ui .qd-checkout-steps { margin-bottom:20px; }
  body.queendress-ui .qd-step { padding:0 3px; gap:6px; }
  body.queendress-ui .qd-step:not(:last-child)::after { display:none; }
  body.queendress-ui .qd-step-number { flex-basis:34px; width:34px; height:34px; font-size:11px; }
  body.queendress-ui .qd-step-copy strong { font-size:10.5px; }
  body.queendress-ui .qd-step-copy small { display:none; }

  body.queendress-ui .qd-card-heading { padding:16px; }
  body.queendress-ui .qd-card-heading h1 { font-size:19px; }
  body.queendress-ui .qd-card-heading h2 { font-size:17px; }

  body.queendress-ui .qd-cart-list { padding:0 14px; }
  body.queendress-ui .qd-cart-item {
    grid-template-columns:88px minmax(0,1fr);
    gap:11px;
    padding:15px 0;
  }
  body.queendress-ui .qd-cart-item-bottom { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  body.queendress-ui .qd-cart-subtotal { grid-column:1 / -1; }
  body.queendress-ui .qd-cart-actions { flex-direction:column; align-items:stretch; padding:14px; }
  body.queendress-ui .qd-cart-coupon { width:100%; }
  body.queendress-ui .qd-update-cart { width:100%; }

  body.queendress-ui .qd-customer-card #customer_details { padding:16px; }
  body.queendress-ui .qd-fields-grid { grid-template-columns:1fr; gap:12px; }
  body.queendress-ui .qd-fields-grid .qd-field-half,
  body.queendress-ui .qd-fields-grid .qd-field-full,
  body.queendress-ui .qd-fields-grid .form-row { grid-column:1 !important; }

  body.queendress-ui .qd-payment-card .qd-payment-host { padding:14px 16px 16px; }
  body.queendress-ui .qd-order-review-items { padding:0 14px; }
  body.queendress-ui .qd-order-review-item { grid-template-columns:58px minmax(0,1fr); }
  body.queendress-ui .qd-order-review-thumb { width:58px; height:68px; }
  body.queendress-ui .qd-order-review-price { grid-column:2; }
  body.queendress-ui .qd-order-totals { padding:8px 14px 14px; }

  body.queendress-ui .qd-checkout-trust { grid-template-columns:58px minmax(0,1fr); padding:15px; }
  body.queendress-ui .qd-trust-mark { width:54px; height:54px; }
  body.queendress-ui .qd-trust-mark svg { width:28px; height:28px; }
}


/* =========================================================
   PHASE 12 — Persian storefront labels
   Version 1.2.0
   ========================================================= */
body.queendress-ui .reset_variations {
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 9px;
  border:1px solid var(--qd-line);
  border-radius:8px;
  color:var(--qd-muted) !important;
  text-decoration:none !important;
  font-size:11px;
}
body.queendress-ui .reset_variations:hover {
  color:var(--qd-accent-dark) !important;
  border-color:var(--qd-accent);
}
body.queendress-ui .single_add_to_cart_button,
body.queendress-ui .checkout-button,
body.queendress-ui .wc-forward,
body.queendress-ui .button {
  font-family:"Vazirmatn","Vazir",Tahoma,sans-serif !important;
}


/* =========================================================
   PHASE 15 — One catalog card per product color
   Version 1.5.0
   ========================================================= */

body.queendress-ui .qd-archive-swatches {
  flex-wrap: wrap;
}

body.queendress-ui .qd-swatch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 2px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none !important;
}

body.queendress-ui .qd-swatch-link.is-active {
  border-color: var(--qd-accent);
}

body.queendress-ui .qd-swatch-link .qd-swatch,
body.queendress-ui .qd-swatch[style*="--qd-swatch-color"] {
  display: block;
  width: 12px;
  height: 12px;
  background: var(--qd-swatch-color, #cab7a0);
}

body.queendress-ui .qd-swatch-burgundy { background:#7c1f37 !important; }
body.queendress-ui .qd-swatch-cream { background:#E7A7B5 !important; }
body.queendress-ui .qd-swatch-black { background:#222 !important; }
body.queendress-ui .qd-swatch-white { background:#fff !important; }
body.queendress-ui .qd-swatch-blue { background:#3d8ed0 !important; }
body.queendress-ui .qd-swatch-brown { background:#74513d !important; }

body.queendress-ui .qd-stock-badge {
  position:absolute;
  z-index:2;
  bottom:10px;
  inset-inline-start:10px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(230,218,208,.95);
  background:rgba(255,255,255,.95);
  color:#8a7770;
  font-size:10px;
}

body.queendress-ui .qd-archive-card.is-out-of-stock .qd-archive-media img {
  opacity:.72;
}

body.queendress-ui .qd-archive-card[data-qd-catalog-color] .qd-archive-title {
  min-height: 50px;
}


/* =========================================================
   PHASE 16 — Persian Account + Simplified Iran Checkout
   Version 1.6.0
   ========================================================= */

/* Remove XStore/blog sidebar from WooCommerce account area. */
body.queendress-ui.woocommerce-account .sidebar,
body.queendress-ui.woocommerce-account #sidebar,
body.queendress-ui.woocommerce-account .sidebar-widget,
body.queendress-ui.woocommerce-account .widget-area {
  display: none !important;
}

body.queendress-ui.woocommerce-account .content-page,
body.queendress-ui.woocommerce-account .content,
body.queendress-ui.woocommerce-account .main-content {
  width: 100% !important;
  max-width: 100% !important;
}

/* Account shell */
body.queendress-ui.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: minmax(0,1fr) 250px;
  gap: 28px;
  align-items: start;
  direction: rtl;
}

body.queendress-ui.woocommerce-account .woocommerce-MyAccount-navigation {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 110px;
  padding: 12px;
}

body.queendress-ui.woocommerce-account .woocommerce-MyAccount-content {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  padding: 26px;
}

body.queendress-ui.woocommerce-account .woocommerce-MyAccount-navigation li a {
  font-size: 13px;
  font-weight: 600;
}

/* Custom dashboard */
body.queendress-ui .qd-account-welcome {
  padding: 22px;
  border-radius: 16px;
  background: var(--qd-surface);
  border: 1px solid var(--qd-line);
  margin-bottom: 18px;
}
body.queendress-ui .qd-account-welcome > span {
  color: var(--qd-accent-dark);
  font-size: 11px;
  font-weight: 700;
}
body.queendress-ui .qd-account-welcome h1 {
  margin: 7px 0 6px;
  font-size: 25px;
}
body.queendress-ui .qd-account-welcome p {
  margin: 0;
  color: var(--qd-muted);
}
body.queendress-ui .qd-account-quick-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}
body.queendress-ui .qd-account-quick-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--qd-line);
  border-radius: 14px;
  color: var(--qd-text);
  background: #fff;
  text-decoration: none !important;
}
body.queendress-ui .qd-account-quick-card:hover {
  border-color: #d7b895;
  box-shadow: 0 8px 24px rgba(55,39,24,.05);
}
body.queendress-ui .qd-account-quick-card strong { font-size: 14px; }
body.queendress-ui .qd-account-quick-card span { font-size: 11px; color: var(--qd-muted); }

/* Account details + merged address */
body.queendress-ui .qd-account-section-head {
  margin-bottom: 20px;
}
body.queendress-ui .qd-account-section-head span {
  color: var(--qd-accent-dark);
  font-size: 11px;
  font-weight: 700;
}
body.queendress-ui .qd-account-section-head h1 {
  margin: 5px 0 5px;
  font-size: 25px;
}
body.queendress-ui .qd-account-section-head p {
  margin: 0;
  color: var(--qd-muted);
}

body.queendress-ui .qd-account-form {
  display: grid;
  gap: 16px;
}

body.queendress-ui .qd-account-subsection {
  padding: 20px;
  border: 1px solid var(--qd-line);
  border-radius: 15px;
  background: #fff;
}

body.queendress-ui .qd-account-subtitle {
  margin-bottom: 15px;
}
body.queendress-ui .qd-account-subtitle h2 {
  margin: 0 0 3px;
  font-size: 17px;
}
body.queendress-ui .qd-account-subtitle p {
  margin: 0;
  color: var(--qd-muted);
  font-size: 11px;
}

body.queendress-ui .qd-account-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px 16px;
}
body.queendress-ui .qd-account-grid .form-row {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.queendress-ui .qd-account-grid .qd-account-field-full {
  grid-column: 1 / -1;
}
body.queendress-ui .qd-account-grid label {
  display: block;
  margin-bottom: 6px;
  color: var(--qd-text);
  font-size: 11px;
  font-weight: 700;
}
body.queendress-ui .qd-account-grid input,
body.queendress-ui .qd-account-grid select,
body.queendress-ui .qd-account-grid textarea {
  width: 100% !important;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--qd-line) !important;
  border-radius: 11px !important;
  background: #fff;
  box-shadow: none !important;
}
body.queendress-ui .qd-account-grid textarea {
  min-height: 100px;
  resize: vertical;
}
body.queendress-ui .qd-readonly-phone {
  background: var(--qd-surface) !important;
  color: #6f6964 !important;
}
body.queendress-ui .qd-field-note {
  display: block;
  margin-top: 5px;
  color: var(--qd-muted);
  font-size: 9.5px;
}
body.queendress-ui .qd-optional {
  color: var(--qd-muted);
  font-weight: 400;
  font-size: 10px;
}
body.queendress-ui .qd-account-otp-note {
  padding: 14px 16px;
  border: 1px solid #d9c9b8;
  border-radius: 12px;
  background: #fbf6ef;
}
body.queendress-ui .qd-account-otp-note strong {
  display: block;
  margin-bottom: 3px;
}
body.queendress-ui .qd-account-otp-note p {
  margin: 0;
  color: var(--qd-muted);
  font-size: 11px;
}
body.queendress-ui .qd-account-save {
  margin: 0;
}
body.queendress-ui .qd-account-save .button {
  min-width: 190px;
  min-height: 48px;
  border-radius: 11px !important;
  background: var(--qd-text) !important;
  color: #fff !important;
  border: 0 !important;
}

/* Checkout: requested order and compact fields. */
body.queendress-ui .qd-fields-grid #billing_first_name_field { order: 10; }
body.queendress-ui .qd-fields-grid #billing_last_name_field  { order: 20; }
body.queendress-ui .qd-fields-grid #billing_phone_field      { order: 30; }
body.queendress-ui .qd-fields-grid #billing_email_field      { order: 40; }
body.queendress-ui .qd-fields-grid #billing_state_field      { order: 50; }
body.queendress-ui .qd-fields-grid #billing_city_field       { order: 60; }
body.queendress-ui .qd-fields-grid #billing_address_1_field  { order: 70; grid-column: 1/-1; }
body.queendress-ui .qd-fields-grid #billing_postcode_field   { order: 80; }

body.queendress-ui .qd-fields-grid #billing_country_field,
body.queendress-ui .qd-fields-grid #shipping_country_field,
body.queendress-ui .qd-hidden-country {
  display: none !important;
}

body.queendress-ui .qd-fields-grid #billing_company_field,
body.queendress-ui .qd-fields-grid #billing_address_2_field,
body.queendress-ui .qd-fields-grid #shipping_company_field,
body.queendress-ui .qd-fields-grid #shipping_address_2_field {
  display: none !important;
}

body.queendress-ui .qd-fields-grid input,
body.queendress-ui .qd-fields-grid select,
body.queendress-ui .qd-fields-grid .select2-selection {
  min-height: 48px !important;
  border-radius: 11px !important;
}

@media(max-width: 900px){
  body.queendress-ui.woocommerce-account .woocommerce {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  body.queendress-ui.woocommerce-account .woocommerce-MyAccount-navigation,
  body.queendress-ui.woocommerce-account .woocommerce-MyAccount-content {
    grid-column: 1;
    position: static;
  }
  body.queendress-ui.woocommerce-account .woocommerce-MyAccount-navigation { grid-row: 1; }
  body.queendress-ui.woocommerce-account .woocommerce-MyAccount-content { grid-row: 2; }
}

@media(max-width: 640px){
  body.queendress-ui .qd-account-grid,
  body.queendress-ui .qd-account-quick-grid,
  body.queendress-ui .qd-fields-grid {
    grid-template-columns: 1fr;
  }
  body.queendress-ui .qd-account-grid .qd-account-field-full,
  body.queendress-ui .qd-fields-grid #billing_address_1_field {
    grid-column: 1;
  }
}


/* =========================================================
   PHASE 17 — Account nav repair + remaining Persian cleanup
   Version 1.7.0
   ========================================================= */

/* Full-width transactional pages: no XStore/blog sidebar. */
body.queendress-ui.woocommerce-account .sidebar,
body.queendress-ui.woocommerce-account #sidebar,
body.queendress-ui.woocommerce-account .widget-area,
body.queendress-ui.woocommerce-cart .sidebar,
body.queendress-ui.woocommerce-cart #sidebar,
body.queendress-ui.woocommerce-cart .widget-area,
body.queendress-ui.woocommerce-checkout .sidebar,
body.queendress-ui.woocommerce-checkout #sidebar,
body.queendress-ui.woocommerce-checkout .widget-area {
  display: none !important;
}

body.queendress-ui.woocommerce-account .content-page,
body.queendress-ui.woocommerce-account .main-content,
body.queendress-ui.woocommerce-cart .content-page,
body.queendress-ui.woocommerce-cart .main-content,
body.queendress-ui.woocommerce-checkout .content-page,
body.queendress-ui.woocommerce-checkout .main-content {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

/* Account: force a clean 2-column layout with navigation on the right. */
body.queendress-ui.woocommerce-account .woocommerce {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) 260px !important;
  grid-template-areas: "content nav" !important;
  gap: 28px !important;
  align-items: start !important;
  direction: ltr !important;
}

body.queendress-ui.woocommerce-account .qd-account-nav-wrap,
body.queendress-ui.woocommerce-account .woocommerce-MyAccount-navigation-wrapper {
  grid-area: nav !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  direction: rtl !important;
  position: sticky;
  top: 110px;
}

body.queendress-ui.woocommerce-account .woocommerce-MyAccount-content {
  grid-area: content !important;
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  min-width: 0 !important;
  direction: rtl !important;
}

body.queendress-ui .qd-account-nav-wrap {
  display: grid;
  gap: 12px;
}

body.queendress-ui .qd-account-user {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 20px 14px;
  border: 1px solid var(--qd-line);
  border-radius: 16px;
  background: #fff;
  text-align: center;
}

body.queendress-ui .qd-account-avatar img {
  display: block;
  width: 76px;
  height: 76px;
  border-radius: 50%;
}

body.queendress-ui .qd-account-user-meta {
  display: grid;
  gap: 3px;
  justify-items: center;
}

body.queendress-ui .qd-account-user-meta strong {
  font-size: 13px;
}

body.queendress-ui .qd-account-user-meta span {
  color: var(--qd-muted);
  font-size: 12px;
}

body.queendress-ui.woocommerce-account .qd-account-nav-wrap .woocommerce-MyAccount-navigation {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  float: none !important;
  position: static !important;
  padding: 10px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  border: 1px solid var(--qd-line) !important;
  border-radius: 16px !important;
  background: #fff !important;
}

body.queendress-ui.woocommerce-account .qd-account-nav-wrap .woocommerce-MyAccount-navigation ul {
  display: grid !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.queendress-ui.woocommerce-account .qd-account-nav-wrap .woocommerce-MyAccount-navigation li {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

body.queendress-ui.woocommerce-account .qd-account-nav-wrap .woocommerce-MyAccount-navigation li a {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-height: 45px !important;
  margin: 2px 0 !important;
  padding: 10px 13px !important;
  border-radius: 10px !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  line-height: 1.7 !important;
  color: var(--qd-text) !important;
  text-decoration: none !important;
}

body.queendress-ui.woocommerce-account .qd-account-nav-wrap .woocommerce-MyAccount-navigation li.is-active a,
body.queendress-ui.woocommerce-account .qd-account-nav-wrap .woocommerce-MyAccount-navigation li a:hover {
  background: var(--qd-surface-2) !important;
  color: var(--qd-accent-dark) !important;
}

/* Fully Persian empty-cart presentation. */
body.queendress-ui .qd-empty-cart {
  max-width: 640px;
  margin: 90px auto 110px;
  padding: 34px 24px;
  text-align: center;
  direction: rtl;
}

body.queendress-ui .qd-empty-cart-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--qd-text);
}

body.queendress-ui .qd-empty-cart h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

body.queendress-ui .qd-empty-cart p {
  max-width: 520px;
  margin: 0 auto 22px;
  color: var(--qd-muted);
  line-height: 1.9;
}

body.queendress-ui .qd-empty-cart-button {
  min-width: 180px;
  min-height: 46px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 10px !important;
  background: var(--qd-text) !important;
  color: #fff !important;
}

body.queendress-ui .woocommerce form .form-row .optional {
  font-size: 10px;
  color: var(--qd-muted);
  font-weight: 400;
}

body.queendress-ui.woocommerce-checkout .woocommerce-privacy-policy-text,
body.queendress-ui.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox-text {
  direction: rtl;
  text-align: right;
  line-height: 1.9;
  color: var(--qd-muted);
}

@media(max-width: 900px){
  body.queendress-ui.woocommerce-account .woocommerce {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "nav"
      "content" !important;
    gap: 14px !important;
  }

  body.queendress-ui.woocommerce-account .qd-account-nav-wrap,
  body.queendress-ui.woocommerce-account .woocommerce-MyAccount-navigation-wrapper {
    position: static !important;
  }

  body.queendress-ui .qd-account-user {
    grid-template-columns: auto 1fr;
    justify-items: start;
    align-items: center;
    text-align: right;
  }

  body.queendress-ui .qd-account-user-meta {
    justify-items: start;
  }
}


/* =========================================================
   PHASE 18 — Video 360 Player (MP4 / WebM)
   Version 1.8.0
   ========================================================= */

body.single-product.queendress-ui .qd-360-video-shell { width:100%; min-width:0; }
body.single-product.queendress-ui .qd-360-video-stage {
  position:relative;
  width:100%;
  aspect-ratio:4/5;
  overflow:hidden;
  border:1px solid var(--qd-line);
  border-radius:24px;
  background:var(--qd-surface);
}
body.single-product.queendress-ui .qd-360-video {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  background:var(--qd-surface);
}
body.single-product.queendress-ui .qd-360-video-controls{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  margin-top:12px;
}
body.single-product.queendress-ui .qd-360-time{
  min-width:38px;
  font-size:10.5px;
  color:var(--qd-muted);
  text-align:center;
}
body.single-product.queendress-ui .qd-360-timeline{
  -webkit-appearance:none;
  appearance:none;
  width:100%;
  height:6px;
  border-radius:999px;
  outline:none;
  cursor:pointer;
  background:linear-gradient(to right, var(--qd-accent-dark) 0%, var(--qd-accent-dark) var(--qd-progress, 0%), #e6dacd var(--qd-progress, 0%), #e6dacd 100%);
}
body.single-product.queendress-ui .qd-360-timeline::-webkit-slider-runnable-track{
  height:6px;
  border-radius:999px;
  background:transparent;
}
body.single-product.queendress-ui .qd-360-timeline::-moz-range-track{
  height:6px;
  border-radius:999px;
  background:transparent;
  border:none;
}
body.single-product.queendress-ui .qd-360-timeline::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:16px;
  height:16px;
  margin-top:-5px;
  border:none;
  border-radius:50%;
  background:var(--qd-text);
  box-shadow:0 0 0 3px rgba(255,255,255,.92);
}
body.single-product.queendress-ui .qd-360-timeline::-moz-range-thumb{
  width:16px;
  height:16px;
  border:none;
  border-radius:50%;
  background:var(--qd-text);
  box-shadow:0 0 0 3px rgba(255,255,255,.92);
}
body.single-product.queendress-ui .qd-360-video-shell .qd-360-meta{
  padding-top:10px;
}

@media (max-width:820px) {
  body.single-product.queendress-ui .qd-360-video-stage {
    aspect-ratio:4/5;
    border-radius:18px;
  }
  body.single-product.queendress-ui .qd-360-video-controls{
    gap:8px;
  }
  body.single-product.queendress-ui .qd-360-time{
    min-width:32px;
    font-size:9.5px;
  }
}

/* =========================================================
   PHASE 19 — Product media gallery
   Main image + 3-angle + 360 video
   Version 1.9.0
   ========================================================= */

body.single-product.queendress-ui .qd-product-media-shell{width:100%;min-width:0}
body.single-product.queendress-ui .qd-product-media-stage{
  position:relative;
  width:100%;
  aspect-ratio:4/5;
  overflow:hidden;
  border:1px solid var(--qd-line);
  border-radius:24px;
  background:var(--qd-surface);
}
body.single-product.queendress-ui .qd-product-media-image,
body.single-product.queendress-ui .qd-product-media-video-wrap{width:100%;height:100%}
body.single-product.queendress-ui .qd-product-media-image{
  display:block;
  object-fit:contain;
  object-position:center;
  background:var(--qd-surface);
}
body.single-product.queendress-ui .qd-product-media-video-wrap{position:relative}
body.single-product.queendress-ui .qd-product-media-video{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  background:var(--qd-surface);
  cursor:pointer;
}
body.single-product.queendress-ui .qd-video-play-toggle{
  position:absolute;
  inset:50% auto auto 50%;
  transform:translate(-50%,-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  width:58px;
  height:58px;
  padding:0!important;
  border:1px solid rgba(255,255,255,.8)!important;
  border-radius:999px!important;
  background:rgba(34,31,28,.72)!important;
  color:#fff!important;
  font-size:20px;
  line-height:1;
  z-index:4;
}
body.single-product.queendress-ui .qd-video-play-toggle.is-playing{opacity:.18}
body.single-product.queendress-ui .qd-product-media-video-wrap:hover .qd-video-play-toggle.is-playing{opacity:.88}
body.single-product.queendress-ui .qd-product-video-timeline{padding:13px 4px 2px}
body.single-product.queendress-ui .qd-product-media-thumbs{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin-top:11px;
}
body.single-product.queendress-ui .qd-product-media-thumb{
  display:grid;
  gap:6px;
  width:100%;
  min-width:0;
  padding:6px!important;
  border:1px solid var(--qd-line)!important;
  border-radius:13px!important;
  background:#fff!important;
  color:var(--qd-text)!important;
  font-size:10px;
  font-weight:700;
}
body.single-product.queendress-ui .qd-product-media-thumb.is-active{
  border-color:var(--qd-accent)!important;
  box-shadow:0 0 0 1px var(--qd-accent);
}
body.single-product.queendress-ui .qd-product-media-thumb img{
  display:block;
  width:100%;
  aspect-ratio:1;
  object-fit:cover;
  border-radius:9px;
  background:var(--qd-surface);
}
body.single-product.queendress-ui .qd-video-thumb-poster{position:relative;display:block}
body.single-product.queendress-ui .qd-video-thumb-poster i{
  position:absolute;
  inset:50% auto auto 50%;
  transform:translate(-50%,-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  height:26px;
  padding:0 7px;
  border-radius:999px;
  background:rgba(34,31,28,.76);
  color:#fff;
  font-size:10px;
  font-style:normal;
}
body.single-product.queendress-ui .qd-product-media-shell [hidden]{display:none!important}

@media(max-width:820px){
  body.single-product.queendress-ui .qd-product-media-stage{border-radius:18px}
  body.single-product.queendress-ui .qd-product-media-thumbs{gap:7px}
  body.single-product.queendress-ui .qd-video-play-toggle{width:52px;height:52px}
}


/* =========================================================
   PHASE 21 — QueenDress fixed header menu
   Version 1.11.0
   ========================================================= */
@media (min-width: 821px) {
  .qd-main-menu > .menu-item-has-children > a {
    display:flex;
    align-items:center;
    gap:6px;
  }
  .qd-main-menu > .menu-item-has-children > a::after {
    content:'⌄';
    font-size:11px;
    line-height:1;
    opacity:.65;
    transform:translateY(-1px);
  }
  .qd-main-menu .sub-menu {
    min-width:180px;
    max-height:420px;
    overflow:auto;
  }
}
.qd-mobile-menu > .menu-item-has-children > a { font-weight:700; }

/* =========================================================
   QueenDress v1.12 — Homepage hero cleanup
   ========================================================= */

/* Show the complete product image in the single-image hero; never crop it. */
body.home.queendress-ui.queendress-v112 .qd-hero-media {
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  min-width:0;
}
body.home.queendress-ui.queendress-v112 .qd-hero-media > img {
  display:block;
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  object-position:center center !important;
}

/* Single banner: no slider dots. */
body.home.queendress-ui.queendress-v112 .qd-hero-dots {
  display:none !important;
}

/* Hide stray/floating wishlist UI on the homepage content area only.
   The custom wishlist icon inside the QueenDress header is preserved. */
body.home.queendress-ui.queendress-v112 .qd-home .yith-wcwl-add-to-wishlist,
body.home.queendress-ui.queendress-v112 .qd-home .wishlist-fragment,
body.home.queendress-ui.queendress-v112 .qd-home .et-wishlist-widget,
body.home.queendress-ui.queendress-v112 .qd-home .xstore-wishlist,
body.home.queendress-ui.queendress-v112 .qd-home .etheme-wishlist,
body.home.queendress-ui.queendress-v112 .qd-home .et_b_wishlist-dropdown {
  display:none !important;
}

@media (max-width:820px) {
  body.home.queendress-ui.queendress-v112 .qd-hero-media > img {
    object-fit:contain !important;
    object-position:center center !important;
  }
}


/* =========================================================
   v1.13 — remove stray homepage wishlist heart
   Keep the intended header wishlist and product-card hearts.
   ========================================================= */
body.home.queendress-ui.queendress-v113 > .yith-wcwl-add-to-wishlist,
body.home.queendress-ui.queendress-v113 > .wishlist-fragment,
body.home.queendress-ui.queendress-v113 > .et-wishlist-widget,
body.home.queendress-ui.queendress-v113 > .xstore-wishlist,
body.home.queendress-ui.queendress-v113 > .etheme-wishlist,
body.home.queendress-ui.queendress-v113 > .et_b_header-wishlist,
body.home.queendress-ui.queendress-v113 #page > .yith-wcwl-add-to-wishlist,
body.home.queendress-ui.queendress-v113 #page > .wishlist-fragment,
body.home.queendress-ui.queendress-v113 #page > .et-wishlist-widget,
body.home.queendress-ui.queendress-v113 #page > .xstore-wishlist,
body.home.queendress-ui.queendress-v113 #page > .etheme-wishlist,
body.home.queendress-ui.queendress-v113 #page > .et_b_header-wishlist {
  display:none !important;
}


/* =========================================================
   v1.14 — permanent homepage hero + stray-heart fix
   Version-independent selectors so future theme version bumps
   do not disable these corrections.
   ========================================================= */

/* Hero media must always fill its half of the banner. */
body.home.queendress-ui .qd-home-hero .qd-hero-media {
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  align-self:stretch !important;
  min-width:0 !important;
  min-height:100% !important;
  height:100% !important;
  overflow:hidden !important;
}

/* Keep the whole hero product visible; never crop it. */
body.home.queendress-ui .qd-home-hero .qd-hero-media > img {
  display:block !important;
  width:100% !important;
  height:100% !important;
  min-height:100% !important;
  max-width:100% !important;
  max-height:none !important;
  object-fit:contain !important;
  object-position:center center !important;
}

/* Single-image banner: no fake slider indicators. */
body.home.queendress-ui .qd-hero-dots,
body.home.queendress-ui .qd-home-hero .swiper-pagination,
body.home.queendress-ui .qd-home-hero .slick-dots {
  display:none !important;
}

/* Known floating wishlist widgets injected by XStore / YITH outside
   QueenDress's intended header and product-card controls. */
body.home.queendress-ui > .yith-wcwl-add-to-wishlist,
body.home.queendress-ui > .wishlist-fragment,
body.home.queendress-ui > .et-wishlist-widget,
body.home.queendress-ui > .xstore-wishlist,
body.home.queendress-ui > .etheme-wishlist,
body.home.queendress-ui > .et_b_header-wishlist,
body.home.queendress-ui #page > .yith-wcwl-add-to-wishlist,
body.home.queendress-ui #page > .wishlist-fragment,
body.home.queendress-ui #page > .et-wishlist-widget,
body.home.queendress-ui #page > .xstore-wishlist,
body.home.queendress-ui #page > .etheme-wishlist,
body.home.queendress-ui #page > .et_b_header-wishlist,
body.home.queendress-ui .site-wrapper > .yith-wcwl-add-to-wishlist,
body.home.queendress-ui .site-wrapper > .wishlist-fragment,
body.home.queendress-ui .site-wrapper > .et-wishlist-widget,
body.home.queendress-ui .site-wrapper > .xstore-wishlist,
body.home.queendress-ui .site-wrapper > .etheme-wishlist,
body.home.queendress-ui .site-wrapper > .et_b_header-wishlist {
  display:none !important;
}

@media (max-width:820px) {
  body.home.queendress-ui .qd-home-hero .qd-hero-media > img {
    object-fit:contain !important;
    object-position:center center !important;
  }
}


/* =========================================================
   v1.15 — Mobile header menu + home product grid refinements
   ========================================================= */
@media (max-width:960px) {
  /* Give the QueenDress wordmark and mark a little breathing room below the top strip. */
  .qd-header-grid {
    min-height:76px !important;
    padding-top:9px !important;
    padding-bottom:5px !important;
  }
  .qd-brand {
    transform:translateY(4px);
  }

  /* Mobile Shop submenu is an accordion, not permanently expanded. */
  .qd-mobile-menu > .menu-item-has-children > .qd-mobile-submenu-toggle {
    width:100%;
    min-height:48px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:12px 4px !important;
    margin:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    color:#28231f !important;
    font:inherit;
    font-weight:700;
    text-align:right;
    transform:none !important;
    box-shadow:none !important;
  }
  .qd-mobile-submenu-chevron {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:28px;
    height:28px;
    font-size:17px;
    color:#8a7e73;
    transition:transform .2s ease;
  }
  .qd-mobile-menu > .menu-item-has-children.is-open .qd-mobile-submenu-chevron {
    transform:rotate(180deg);
  }
  .qd-mobile-menu .sub-menu[hidden] {
    display:none !important;
  }
  .qd-mobile-menu .sub-menu {
    margin:0 0 8px !important;
    padding:4px 14px 8px 0 !important;
    border-top:1px solid #f4eee8;
    background:#fcfaf8;
  }
  .qd-mobile-menu .sub-menu li {
    border-bottom:0 !important;
  }
  .qd-mobile-menu .sub-menu a {
    padding:9px 8px !important;
  }
  .qd-mobile-menu .qd-mobile-shop-all a {
    color:#a9743d !important;
    font-weight:700 !important;
  }
}

@media (max-width:640px) {
  /* Home: exactly two compact cards per row, like the Shop grid. */
  body.home.queendress-ui .qd-product-grid {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
    overflow:visible !important;
    scroll-snap-type:none !important;
    padding-bottom:0 !important;
  }
  body.home.queendress-ui .qd-product-grid .qd-product-card,
  body.home.queendress-ui .qd-product-grid .qd-product-card:nth-child(4),
  body.home.queendress-ui .qd-product-grid .qd-product-card:nth-child(5) {
    display:block !important;
    flex:none !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    border-radius:14px !important;
    scroll-snap-align:none !important;
  }
  body.home.queendress-ui .qd-product-grid .qd-product-media {
    aspect-ratio:3/4 !important;
  }
  body.home.queendress-ui .qd-product-grid .qd-product-body {
    padding:8px 9px 10px !important;
  }
  body.home.queendress-ui .qd-product-grid .qd-product-title {
    min-height:36px !important;
    white-space:normal !important;
    display:-webkit-box !important;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    font-size:12px !important;
    line-height:1.7 !important;
  }
  body.home.queendress-ui .qd-product-grid .qd-product-bottom {
    gap:6px !important;
    margin-top:5px !important;
  }
  body.home.queendress-ui .qd-product-grid .qd-product-price {
    font-size:11.5px !important;
    line-height:1.55 !important;
  }
  body.home.queendress-ui .qd-product-grid .qd-product-price del {
    font-size:9px !important;
  }
  body.home.queendress-ui .qd-product-grid .qd-card-eye,
  body.home.queendress-ui .qd-product-grid .qd-mini-cart {
    width:30px !important;
    height:30px !important;
    flex-basis:30px !important;
  }
  body.home.queendress-ui .qd-product-grid .qd-product-heart {
    width:30px !important;
    height:30px !important;
    top:8px !important;
    left:8px !important;
  }
  body.home.queendress-ui .qd-product-grid .qd-product-badge {
    top:8px !important;
    right:8px !important;
    font-size:9.5px !important;
  }
}

/* =========================================================
   PHASE 21 — Footer contact + socials
   Version 1.16.0
   ========================================================= */
.qd-footer-logo img{
  display:block;
  width:auto;
  height:30px;
  object-fit:contain;
  margin-top:-5px;
}
.qd-footer-socials{
  display:flex;
  align-items:center;
  gap:8px;
  direction:ltr;
  margin-top:12px;
}
.qd-footer-socials a,
.qd-footer-socials > span{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:1px solid #e7dfd7;
  border-radius:50%;
  background:#fff;
  color:#403a35 !important;
  transition:border-color .2s ease,color .2s ease,transform .2s ease;
}
.qd-footer-socials a:hover{
  border-color:#bd884e;
  color:#a9753e !important;
  transform:translateY(-1px);
}
.qd-footer-socials .is-disabled{
  opacity:.42;
  cursor:default;
}
.qd-footer-socials svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.qd-footer-socials svg .qd-social-dot{fill:currentColor;stroke:none}
.qd-footer-socials a[aria-label="تلگرام"] svg,
.qd-footer-socials span[aria-label^="تلگرام"] svg{
  fill:none;
}
.qd-bale-mark{
  font-family:"Vazirmatn",Tahoma,sans-serif;
  font-size:18px;
  font-weight:800;
  line-height:1;
}
.qd-contact-ltr{
  display:inline-block;
  direction:ltr;
  unicode-bidi:isolate;
}
.qd-footer-copyright{
  min-height:42px;
  display:flex !important;
  align-items:center;
  justify-content:center !important;
  gap:8px 18px;
  flex-wrap:wrap;
}
.qd-footer-copyright a{
  color:#a9753e !important;
  font-weight:700;
}
@media(max-width:560px){
  .qd-footer-socials{justify-content:flex-start}
  .qd-footer-copyright{padding-top:9px;padding-bottom:9px;text-align:center;line-height:1.9}
}


/* =========================================================
   QueenDress v1.19 — product UX fixes
   ========================================================= */

body.single-product.queendress-ui .qd-product-media-stage{
  aspect-ratio:3 / 4 !important;
}
body.single-product.queendress-ui .qd-product-media-image{
  object-fit:contain !important;
  object-position:center center !important;
  cursor:zoom-in;
}

/* 3-angle thumbnail: landscape preview under the main 3:4 display. */
body.single-product.queendress-ui .qd-product-media-thumb[data-qd-media-type="three"] img{
  aspect-ratio:16 / 9 !important;
  object-fit:contain !important;
  object-position:center !important;
  background:#f7f3ef;
}
body.single-product.queendress-ui .qd-product-media-thumb[data-qd-media-type="three"]{
  align-content:center;
}

/* Full image lightbox */
html.qd-lightbox-open,
html.qd-lightbox-open body{
  overflow:hidden !important;
}
body.single-product.queendress-ui .qd-media-lightbox[hidden]{
  display:none !important;
}
body.single-product.queendress-ui .qd-media-lightbox{
  position:fixed;
  inset:0;
  z-index:999999;
  display:grid;
  place-items:center;
  padding:24px;
}
body.single-product.queendress-ui .qd-media-lightbox-backdrop{
  position:absolute;
  inset:0;
  background:rgba(20,18,16,.84);
  backdrop-filter:blur(3px);
}
body.single-product.queendress-ui .qd-media-lightbox-dialog{
  position:relative;
  z-index:2;
  width:min(900px,92vw);
  height:min(90vh,1100px);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:18px;
  background:#f8f5f1;
}
body.single-product.queendress-ui .qd-media-lightbox-dialog img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
}
body.single-product.queendress-ui .qd-media-lightbox-close{
  position:absolute;
  z-index:3;
  top:18px;
  right:18px;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  padding:0 !important;
  border:1px solid rgba(255,255,255,.65) !important;
  border-radius:999px !important;
  background:rgba(255,255,255,.95) !important;
  color:#221f1c !important;
  font-size:28px;
  font-weight:300;
  line-height:1;
  transform:none !important;
}

/* Product card eye: line icon on a white button. */
body.queendress-ui .qd-card-eye{
  background:#fff !important;
  color:#211e1c !important;
  border:1px solid #ddd4cb !important;
  border-radius:999px !important;
}
body.queendress-ui .qd-card-eye svg{
  width:19px !important;
  height:19px !important;
  fill:none !important;
  stroke:#211e1c !important;
  stroke-width:1.65 !important;
}
body.queendress-ui .qd-card-eye svg path{
  fill:none !important;
  stroke:#211e1c !important;
}
body.queendress-ui .qd-card-eye svg circle{
  fill:#211e1c !important;
  stroke:#211e1c !important;
}

/* Small cart confirmation toast. */
.qd-cart-toast{
  position:fixed;
  z-index:999998;
  right:22px;
  bottom:24px;
  max-width:min(390px,calc(100vw - 32px));
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border:1px solid #e8dfd6;
  border-radius:14px;
  background:#fff;
  color:#28231f;
  box-shadow:0 16px 46px rgba(37,29,23,.16);
  font-size:12px;
  line-height:1.7;
  opacity:0;
  transform:translateY(12px);
  pointer-events:none;
  transition:opacity .22s ease,transform .22s ease;
}
.qd-cart-toast.is-visible{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}
.qd-cart-toast a{
  color:#a9743d !important;
  font-weight:800;
  white-space:nowrap;
  text-decoration:none !important;
}

/* Mobile cart beside QueenDress logo. */
.qd-mobile-header-cart{
  display:none;
}
@media(max-width:960px){
  .qd-mobile-header-cart{
    grid-column:3;
    justify-self:end;
    align-self:center;
    position:relative;
    width:42px;
    height:42px;
    display:grid;
    place-items:center;
    color:#211e1c !important;
    text-decoration:none !important;
    border-radius:999px;
    background:transparent;
  }
  .qd-mobile-header-cart svg{
    width:23px;
    height:23px;
    fill:none !important;
    stroke:currentColor;
    stroke-width:1.7;
    stroke-linecap:round;
    stroke-linejoin:round;
  }
  .qd-mobile-header-cart .qd-cart-count{
    top:0;
    right:-1px;
  }

  .qd-cart-toast{
    right:16px;
    left:16px;
    bottom:18px;
    max-width:none;
    justify-content:space-between;
  }

  body.single-product.queendress-ui .qd-media-lightbox{
    padding:14px;
  }
  body.single-product.queendress-ui .qd-media-lightbox-dialog{
    width:100%;
    height:min(88vh,920px);
    border-radius:16px;
  }
  body.single-product.queendress-ui .qd-media-lightbox-close{
    top:12px;
    right:12px;
  }
}


/* =========================================================
   QueenDress v1.20 — checkout, homepage color, swatches
   ========================================================= */

/* Home card actions must always sit side-by-side, independent of version body classes. */
body.home.queendress-ui .qd-product-grid .qd-product-actions{
  display:flex !important;
  flex-direction:row !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:6px !important;
  direction:ltr !important;
  flex-wrap:nowrap !important;
}
body.home.queendress-ui .qd-product-grid .qd-card-eye,
body.home.queendress-ui .qd-product-grid .qd-mini-cart{
  display:grid !important;
  place-items:center !important;
  flex:0 0 30px !important;
}

/* Shop/archive swatches: every QueenDress color must be visibly different. */
body.queendress-ui .qd-swatch{
  background:var(--qd-swatch-color,#cab7a0) !important;
  border:1px solid rgba(35,30,26,.22) !important;
  box-shadow:0 0 0 1px rgba(255,255,255,.85);
}
body.queendress-ui .qd-swatch-black{background:#222222 !important}
body.queendress-ui .qd-swatch-cream{background:#E7A7B5 !important}
body.queendress-ui .qd-swatch-burgundy{background:#7C1F37 !important}
body.queendress-ui .qd-swatch-white{background:#FFFFFF !important}
body.queendress-ui .qd-swatch-blue{background:#3D8ED0 !important}
body.queendress-ui .qd-swatch-brown{background:#74513D !important}

/* XStore/Woo variation circles on single product.
   The internal slug "cream" intentionally represents QueenDress pink. */
body.single-product.queendress-ui form.variations_form [data-value="black"],
body.single-product.queendress-ui form.variations_form [data-value="black"] .st-swatch-preview,
body.single-product.queendress-ui form.variations_form [data-value="black"] .variable-item-span{background:#222222 !important}

body.single-product.queendress-ui form.variations_form [data-value="cream"],
body.single-product.queendress-ui form.variations_form [data-value="cream"] .st-swatch-preview,
body.single-product.queendress-ui form.variations_form [data-value="cream"] .variable-item-span{background:#E7A7B5 !important}

body.single-product.queendress-ui form.variations_form [data-value="burgundy"],
body.single-product.queendress-ui form.variations_form [data-value="burgundy"] .st-swatch-preview,
body.single-product.queendress-ui form.variations_form [data-value="burgundy"] .variable-item-span{background:#7C1F37 !important}

body.single-product.queendress-ui form.variations_form [data-value="white"],
body.single-product.queendress-ui form.variations_form [data-value="white"] .st-swatch-preview,
body.single-product.queendress-ui form.variations_form [data-value="white"] .variable-item-span{background:#FFFFFF !important}

body.single-product.queendress-ui form.variations_form [data-value="blue"],
body.single-product.queendress-ui form.variations_form [data-value="blue"] .st-swatch-preview,
body.single-product.queendress-ui form.variations_form [data-value="blue"] .variable-item-span{background:#3D8ED0 !important}

body.single-product.queendress-ui form.variations_form [data-value="brown"],
body.single-product.queendress-ui form.variations_form [data-value="brown"] .st-swatch-preview,
body.single-product.queendress-ui form.variations_form [data-value="brown"] .variable-item-span{background:#74513D !important}

/* Keep the circles separated from the white page, including white/pink shades. */
body.single-product.queendress-ui form.variations_form [data-value]{
  border-color:rgba(34,30,27,.22) !important;
}

/* Lightbox above sticky mobile header. Close button is fixed to top-left of the image panel. */
body.single-product.queendress-ui .qd-media-lightbox{
  z-index:2147483000 !important;
}
body.single-product.queendress-ui .qd-media-lightbox-dialog{
  position:relative !important;
}
body.single-product.queendress-ui .qd-media-lightbox-close{
  position:absolute !important;
  top:12px !important;
  left:12px !important;
  right:auto !important;
  z-index:10 !important;
  opacity:1 !important;
  visibility:visible !important;
  display:grid !important;
  width:46px !important;
  height:46px !important;
  border:1px solid #d8d0c7 !important;
  background:#fff !important;
  color:#1f1c19 !important;
  box-shadow:0 5px 18px rgba(0,0,0,.14) !important;
}

@media(max-width:960px){
  body.single-product.queendress-ui .qd-media-lightbox-close{
    top:10px !important;
    left:10px !important;
    right:auto !important;
  }
}


/* =========================================================
   QueenDress v1.21 — lightbox close + review warning fix
   ========================================================= */

/* Lightbox is moved to body at runtime, so selectors must not depend on single-product ancestry. */
.qd-media-lightbox[hidden]{
  display:none !important;
}
.qd-media-lightbox{
  position:fixed !important;
  inset:0 !important;
  z-index:2147483646 !important;
  display:grid !important;
  place-items:center !important;
  padding:14px !important;
}
.qd-media-lightbox-backdrop{
  position:fixed !important;
  inset:0 !important;
  z-index:0 !important;
  background:rgba(20,18,16,.88) !important;
}
.qd-media-lightbox-dialog{
  position:relative !important;
  z-index:1 !important;
  width:min(900px,94vw) !important;
  height:min(90vh,1100px) !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  border-radius:18px !important;
  background:#f8f5f1 !important;
}
.qd-media-lightbox-dialog img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center !important;
}

/* Always-visible close button at top-left of the enlarged image. */
.qd-media-lightbox-close{
  position:absolute !important;
  top:12px !important;
  left:12px !important;
  right:auto !important;
  z-index:2147483647 !important;
  display:grid !important;
  place-items:center !important;
  width:48px !important;
  height:48px !important;
  padding:0 !important;
  margin:0 !important;
  border:1px solid rgba(30,26,23,.18) !important;
  border-radius:999px !important;
  background:#fff !important;
  color:#1e1a17 !important;
  box-shadow:0 5px 20px rgba(0,0,0,.2) !important;
  font-size:30px !important;
  font-family:Arial,sans-serif !important;
  font-weight:400 !important;
  line-height:1 !important;
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
  transform:none !important;
}

@media(max-width:960px){
  .qd-media-lightbox{
    padding:10px !important;
  }
  .qd-media-lightbox-dialog{
    width:100% !important;
    height:min(88vh,920px) !important;
    border-radius:16px !important;
  }
  .qd-media-lightbox-close{
    top:10px !important;
    left:10px !important;
  }
}


/* =========================================================
   QueenDress v1.23 — shop sidebar color dots
   ========================================================= */

/* Filter dots always use the actual QueenDress color passed by archive-product.php. */
body.queendress-ui .qd-color-filter .qd-color-dot{
  width:14px !important;
  height:14px !important;
  flex:0 0 14px !important;
  border-radius:999px !important;
  background:var(--qd-filter-color,#bbaa99) !important;
  border:1px solid rgba(32,28,25,.24) !important;
  box-shadow:0 0 0 1px rgba(255,255,255,.9);
}

/* White needs a slightly stronger outline so it stays visible on the white panel. */
body.queendress-ui .qd-color-filter .qd-color-white,
body.queendress-ui .qd-color-filter .qd-color-sefid{
  border-color:rgba(32,28,25,.35) !important;
}


/* =========================================================
   QueenDress v1.24 — top shipping strip removed
   ========================================================= */
.qd-top-strip,
.qd-top-message{
  display:none !important;
}


/* =========================================================
   QueenDress Standalone v2.0 — core WordPress layout
   ========================================================= */
html, body{margin:0;padding:0}
body.queendress-ui{min-width:320px}
.qd-template-container,
.qd-template-content,
.qd-page-wrapper{width:100%}
.qd-page-wrapper{min-height:52vh}

.qd-generic-page{
  padding-top:34px;
  padding-bottom:56px;
}
.qd-generic-heading{
  margin:0 0 28px;
  padding:26px 28px;
  border:1px solid var(--qd-line);
  border-radius:22px;
  background:var(--qd-surface);
}
.qd-generic-heading span{
  display:block;
  color:var(--qd-accent-dark);
  font-size:12px;
  margin-bottom:4px;
}
.qd-generic-heading h1{
  margin:0;
  font-size:clamp(26px,4vw,42px);
}
.qd-entry-content{
  font-size:15px;
  line-height:2;
}
.qd-entry-content img{
  max-width:100%;
  height:auto;
}
.qd-post-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}
.qd-post-card{
  overflow:hidden;
  border:1px solid var(--qd-line);
  border-radius:18px;
  background:#fff;
}
.qd-post-card-image{
  display:block;
  aspect-ratio:4/3;
  overflow:hidden;
  background:var(--qd-surface);
}
.qd-post-card-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.qd-post-card-body{padding:18px}
.qd-post-card-body h2{
  margin:0 0 8px;
  font-size:18px;
  line-height:1.7;
}
.qd-post-card-body h2 a{
  color:var(--qd-text);
  text-decoration:none;
}
.qd-post-card-body p{margin:10px 0 0;color:var(--qd-muted)}
.qd-post-meta{font-size:12px;color:var(--qd-muted)}
.qd-text-link{
  display:inline-block;
  margin-top:14px;
  color:var(--qd-accent-dark);
  text-decoration:none;
  font-weight:700;
}
.qd-pagination{margin-top:28px}
.qd-pagination .nav-links{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.qd-pagination .page-numbers{
  min-width:38px;height:38px;padding:0 10px;
  display:grid;place-items:center;
  border:1px solid var(--qd-line);
  border-radius:10px;
  color:var(--qd-text);
  text-decoration:none;
}
.qd-pagination .current{background:var(--qd-dark);color:#fff;border-color:var(--qd-dark)}
.qd-single-post{max-width:880px;margin:0 auto}
.qd-article-header{text-align:center;margin-bottom:24px}
.qd-article-header h1{font-size:clamp(28px,4vw,46px);line-height:1.5;margin:8px 0}
.qd-article-image{
  overflow:hidden;
  border-radius:22px;
  margin:0 0 30px;
}
.qd-article-image img{display:block;width:100%;height:auto}
.qd-comments{max-width:880px;margin:36px auto 0}
.qd-empty-state{
  min-height:46vh;
  display:grid;
  place-items:center;
  align-content:center;
  text-align:center;
}
.qd-empty-state>strong{font-size:72px;color:var(--qd-accent)}
.qd-empty-state h1{margin:0}
.qd-transactional-page{padding-top:28px}

@media(max-width:900px){
  .qd-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .qd-generic-page{padding-top:20px;padding-bottom:38px}
  .qd-generic-heading{padding:20px;border-radius:16px}
  .qd-post-grid{grid-template-columns:1fr}
}


/* =========================================================
   QueenDress Standalone v2.1 — stabilization patch
   ========================================================= */

/* XStore previously supplied these foundational resets.
   Without them WooCommerce inputs/cards can exceed the page width. */
html{
  overflow-x:hidden;
}
html *,
html *::before,
html *::after{
  box-sizing:border-box;
}
body.queendress-ui{
  overflow-x:hidden;
}
body.queendress-ui img,
body.queendress-ui svg,
body.queendress-ui video{
  max-width:100%;
}
body.queendress-ui input,
body.queendress-ui select,
body.queendress-ui textarea,
body.queendress-ui button{
  max-width:100%;
}

/* Header mark has an explicit rendered size so its intrinsic 307x320 dimensions
   can never expand the standalone header. */
.qd-brand-mark{
  width:42px !important;
  height:44px !important;
  object-fit:contain !important;
}
@media(max-width:960px){
  .qd-brand-mark{
    width:36px !important;
    height:38px !important;
  }
}

/* Homepage: the lower repeated hero/promo banner was removed in PHP.
   Keep the remaining hero responsive and avoid full-resolution image downloads. */
.qd-hero-media > img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center center;
}

/* Desktop shop filter gets its own scroll area instead of requiring the whole page
   to move just to reach the lower filters. */
@media(min-width:992px){
  body.queendress-ui .qd-shop-sidebar{
    position:sticky;
    top:96px;
    max-height:calc(100vh - 116px);
    overflow:hidden;
  }
  body.queendress-ui .qd-shop-sidebar-box{
    max-height:calc(100vh - 116px);
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    scrollbar-color:#c9b08f #f6f1eb;
  }
  body.queendress-ui .qd-shop-sidebar-box::-webkit-scrollbar{
    width:7px;
  }
  body.queendress-ui .qd-shop-sidebar-box::-webkit-scrollbar-track{
    background:#f6f1eb;
    border-radius:999px;
  }
  body.queendress-ui .qd-shop-sidebar-box::-webkit-scrollbar-thumb{
    background:#c9b08f;
    border-radius:999px;
  }
}

/* Restore the product-media proportions that were previously stored as
   Additional CSS on the child theme. */
body.single-product.queendress-ui .qd-product-media-stage,
body.single-product.queendress-ui .qd-product-media-thumbs,
body.single-product.queendress-ui .qd-product-video-timeline{
  width:70% !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
body.single-product.queendress-ui .qd-product-media-stage{
  aspect-ratio:3 / 4 !important;
}
body.single-product.queendress-ui .qd-product-media-image,
body.single-product.queendress-ui .qd-product-media-video{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  object-position:center center !important;
}

/* Standalone variation color circles. */
body.single-product.queendress-ui .qd-native-color-select{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}
body.single-product.queendress-ui .qd-native-color-swatches{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:11px;
  min-height:54px;
}
body.single-product.queendress-ui .qd-native-color-swatch{
  position:relative;
  width:43px !important;
  height:43px !important;
  min-width:43px !important;
  padding:0 !important;
  border:1px solid rgba(35,30,26,.18) !important;
  border-radius:999px !important;
  background:var(--qd-native-color,#c9b8a6) !important;
  box-shadow:0 0 0 3px #fff, 0 0 0 4px #e7dfd7 !important;
  transform:none !important;
}
body.single-product.queendress-ui .qd-native-color-swatch.is-active{
  box-shadow:0 0 0 3px #fff, 0 0 0 5px #a9763f !important;
}
body.single-product.queendress-ui .qd-native-color-white{
  border-color:rgba(25,22,20,.35) !important;
}

/* Related products are now rendered with QueenDress cards, not WooCommerce's
   unstyled percentage-width list. */
body.single-product.queendress-ui .qd-related-products{
  margin-top:38px;
}
body.single-product.queendress-ui .qd-related-products .qd-section-heading{
  margin-bottom:14px;
}
body.single-product.queendress-ui .qd-related-products .qd-product-grid{
  width:100%;
}
body.single-product.queendress-ui .qd-related-products .qd-product-media img{
  aspect-ratio:3 / 4;
  object-fit:cover;
  object-position:center top;
}

/* Cart / checkout must stay inside the standalone viewport. */
body.woocommerce-cart.queendress-ui .qd-commerce-page,
body.woocommerce-checkout.queendress-ui .qd-commerce-page{
  width:min(calc(100% - 36px), var(--qd-container)) !important;
  max-width:var(--qd-container) !important;
  margin-left:auto !important;
  margin-right:auto !important;
  overflow:visible !important;
}
body.woocommerce-cart.queendress-ui .qd-cart-layout,
body.woocommerce-checkout.queendress-ui .qd-checkout-layout{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
}
body.woocommerce-cart.queendress-ui .qd-cart-layout > *,
body.woocommerce-checkout.queendress-ui .qd-checkout-layout > *,
body.woocommerce-checkout.queendress-ui #customer_details,
body.woocommerce-checkout.queendress-ui #order_review,
body.woocommerce-checkout.queendress-ui .woocommerce-checkout-review-order{
  min-width:0 !important;
  max-width:100% !important;
}
body.woocommerce-cart.queendress-ui table,
body.woocommerce-checkout.queendress-ui table{
  max-width:100% !important;
}
body.woocommerce-checkout.queendress-ui .select2-container{
  max-width:100% !important;
}
body.woocommerce-checkout.queendress-ui .select2-selection{
  max-width:100% !important;
}

/* Nested generic page wrapper should not add a second width constraint around
   WooCommerce transactional templates. */
body.woocommerce-cart.queendress-ui .qd-generic-page.qd-shell,
body.woocommerce-checkout.queendress-ui .qd-generic-page.qd-shell,
body.woocommerce-account.queendress-ui .qd-generic-page.qd-shell{
  width:100% !important;
  max-width:none !important;
  padding-left:0 !important;
  padding-right:0 !important;
}

/* Mobile product media returns to full usable width while preserving the 3:4 frame. */
@media(max-width:820px){
  body.single-product.queendress-ui .qd-product-media-stage,
  body.single-product.queendress-ui .qd-product-media-thumbs,
  body.single-product.queendress-ui .qd-product-video-timeline{
    width:100% !important;
  }
  body.single-product.queendress-ui .qd-native-color-swatch{
    width:40px !important;
    height:40px !important;
    min-width:40px !important;
  }
}

