/*
Theme Name: Hamed Perfume

WooCommerce styles override
*/

/**
 * Shop tables
 */
table.shop_table_responsive thead {
  display: none;
}

table.shop_table_responsive tbody th {
  display: none;
}

table.shop_table_responsive tr td {
  display: block;
  text-align: right;
  clear: both;
}

table.shop_table_responsive tr td::before {
  content: attr(data-title) ": ";
  float: left;
}

table.shop_table_responsive tr td.product-remove a {
  text-align: left;
}

table.shop_table_responsive tr td.product-remove::before {
  display: none;
}

table.shop_table_responsive tr td.actions::before,
table.shop_table_responsive tr td.download-actions::before {
  display: none;
}

table.shop_table_responsive tr td.download-actions .button {
  display: block;
  text-align: center;
}

@media screen and (min-width: 48em) {
  table.shop_table_responsive thead {
    display: table-header-group;
  }

  table.shop_table_responsive tbody th {
    display: table-cell;
  }

  table.shop_table_responsive tr th,
  table.shop_table_responsive tr td {
    text-align: right;
  }

  table.shop_table_responsive tr td {
    display: table-cell;
  }

  table.shop_table_responsive tr td::before {
    display: none;
  }
}

/**
 * Products
 */
ul.products {
  margin: 0;
  padding: 0;
}

ul.products li.product {
  list-style: none;
  position: relative;
  margin-bottom: 2em;
}

ul.products li.product img {
  display: block;
}

ul.products li.product .button {
  display: block;
}

@media screen and (min-width: 48em) {
  ul.products li.product {
    width: 30.79667%;
    float: left;
    margin-right: 3.8%;
  }

  ul.products li.product.first {
    clear: both;
  }

  ul.products li.product.last {
    margin-right: 0;
  }

  ul.products.columns-1 li.product {
    float: none;
    width: 100%;
  }

  ul.products.columns-2 li.product {
    width: 48.1%;
  }

  ul.products.columns-3 li.product {
    width: 30.79667%;
  }

  ul.products.columns-4 li.product {
    width: 22.15%;
  }

  ul.products.columns-5 li.product {
    width: 16.96%;
  }

  ul.products.columns-6 li.product {
    width: 13.49333%;
  }
}

/**
 * Single product
 */
.single-product div.product {
  position: relative;
}

.single-product div.product .woocommerce-product-gallery {
  position: relative;
  float: left;
}

.single-product
  div.product
  .woocommerce-product-gallery
  .woocommerce-product-gallery__trigger {
  position: absolute;
  top: 2em;
  right: 1em;
  display: block;
  z-index: 99;
}

.single-product div.product .woocommerce-product-gallery .flex-viewport {
  margin-bottom: 1em;
}

.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
  margin: 0;
  padding: 0;
}

.single-product
  div.product
  .woocommerce-product-gallery
  .flex-control-thumbs
  li {
  list-style: none;
  cursor: pointer;
  float: left;
}

.single-product
  div.product
  .woocommerce-product-gallery
  .flex-control-thumbs
  li
  img {
  opacity: 0.5;
}

.single-product
  div.product
  .woocommerce-product-gallery
  .flex-control-thumbs
  li
  img.flex-active {
  opacity: 1;
}

.single-product
  div.product
  .woocommerce-product-gallery
  .flex-control-thumbs
  li:hover
  img {
  opacity: 1;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-2
  .flex-control-thumbs
  li {
  width: 48.1%;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-2
  .flex-control-thumbs
  li:nth-child(2n) {
  margin-right: 0;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-2
  .flex-control-thumbs
  li:nth-child(2n + 1) {
  clear: both;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-3
  .flex-control-thumbs
  li {
  width: 30.79667%;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-3
  .flex-control-thumbs
  li:nth-child(3n) {
  margin-right: 0;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-3
  .flex-control-thumbs
  li:nth-child(3n + 1) {
  clear: both;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-4
  .flex-control-thumbs
  li {
  width: 22.15%;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-4
  .flex-control-thumbs
  li:nth-child(4n) {
  margin-right: 0;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-4
  .flex-control-thumbs
  li:nth-child(4n + 1) {
  clear: both;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-5
  .flex-control-thumbs
  li {
  width: 16.96%;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-5
  .flex-control-thumbs
  li:nth-child(5n) {
  margin-right: 0;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-5
  .flex-control-thumbs
  li:nth-child(5n + 1) {
  clear: both;
}

.stock:empty::before {
  display: none;
}

.stock.in-stock {
  color: #0f834d;
}

.stock.out-of-stock {
  color: #e2401c;
}

/**
 * Checkout
 */
@media screen and (min-width: 768px) {
  .col2-set .form-row-first {
    float: left;
    margin-right: 3.8%;
  }

  .col2-set .form-row-last {
    float: right;
    margin-right: 0;
  }

  .col2-set .form-row-first,
  .col2-set .form-row-last {
    width: 48.1%;
  }
}

/**
 * General WooCommerce components
 */

/**
 * Header cart
 */
.site-header-cart {
  position: relative;
  margin: 0;
  padding: 0;
}

.site-header-cart .cart-contents {
  text-decoration: none;
}

.site-header-cart .widget_shopping_cart {
  display: none;
}

.site-header-cart .product_list_widget {
  margin: 0;
  padding: 0;
}

/**
 * Star rating
 */
.star-rating {
  overflow: hidden;
  position: relative;
  height: 1.618em;
  line-height: 1.618;
  width: 5.3em;
  font-family: star;
  font-weight: 400;
}

.star-rating::before {
  content: "\53\53\53\53\53";
  opacity: 0.25;
  float: left;
  top: 0;
  left: 0;
  position: absolute;
}

.star-rating span {
  overflow: hidden;
  float: left;
  top: 0;
  left: 0;
  position: absolute;
  padding-top: 1.5em;
}

.star-rating span::before {
  content: "\53\53\53\53\53";
  top: 0;
  position: absolute;
  left: 0;
  color: #4169e1;
}

p.stars a {
  position: relative;
  height: 1em;
  width: 1em;
  text-indent: -999em;
  display: inline-block;
  text-decoration: none;
  margin-right: 1px;
  font-weight: 400;
}

p.stars a::before {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 1em;
  height: 1em;
  line-height: 1;
  font-family: star;
  content: "\53";
  color: #404040;
  text-indent: 0;
  opacity: 0.25;
}

p.stars a:hover ~ a::before {
  content: "\53";
  color: #404040;
  opacity: 0.25;
}

p.stars:hover a::before {
  content: "\53";
  color: #4169e1;
  opacity: 1;
}

p.stars.selected a.active::before {
  content: "\53";
  color: #4169e1;
  opacity: 1;
}

p.stars.selected a.active ~ a::before {
  content: "\53";
  color: #404040;
  opacity: 0.25;
}

p.stars.selected a:not(.active)::before {
  content: "\53";
  color: #4169e1;
  opacity: 1;
}

/**
 * Tabs
 */
.woocommerce-tabs ul.tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.woocommerce-tabs ul.tabs li {
  display: block;
  margin: 0;
  position: relative;
}

.woocommerce-tabs ul.tabs li a {
  padding: 1em 0;
  display: block;
}

.woocommerce-tabs .panel h2:first-of-type {
  margin-bottom: 1em;
}

/**
 * Password strength meter
 */
.woocommerce-password-strength {
  text-align: right;
}

.woocommerce-password-strength.strong {
  color: #0f834d;
}

.woocommerce-password-strength.short {
  color: #e2401c;
}

.woocommerce-password-strength.bad {
  color: #e2401c;
}

.woocommerce-password-strength.good {
  color: #3d9cd2;
}

/**
 * Forms
 */
.form-row.woocommerce-validated input.input-text {
  box-shadow: inset 2px 0 0 #0f834d;
}

.form-row.woocommerce-invalid input.input-text {
  box-shadow: inset 2px 0 0 #e2401c;
}

.required {
  color: #f00;
}

/**
 * ==========================================================================
 * Haper Luxury WooCommerce Notices & Error Banners
 * ==========================================================================
 */

.woocommerce-notices-wrapper {
  width: 100%;
  clear: both;
  display: block;
}

/* Common notice banner styling */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments {
  position: relative;
  width: 100%;
  margin: 0 0 24px 0;
  padding: 16px 20px;
  border-radius: 16px;
  box-sizing: border-box;
  direction: rtl;
  text-align: right;
  font-family:
    "IRANSansXV",
    "Doran FaNum",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 14px;
  line-height: 1.8;
  font-weight: 400;
  box-shadow: 0 4px 18px rgba(25, 39, 59, 0.05);
  clear: both;
  animation: haperNoticeFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes haperNoticeFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Notice icons (custom template markup) */
.haper-notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: 12px;
  box-sizing: border-box;
}

.haper-notice-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
  fill: none;
}

.haper-notice-content {
  flex: 1;
  min-width: 0;
  color: inherit;
}

/* --------------------------------------------------------------------------
   1. Error Notices (.woocommerce-error)
   -------------------------------------------------------------------------- */
.woocommerce-error {
  background: #fff8f8;
  border: 1px solid rgba(226, 64, 28, 0.2);
  border-right: 4px solid #e2401c;
  color: #35445a;
  list-style: none !important;
  margin: 0 0 24px 0 !important;
  padding: 16px 20px !important;
}

.woocommerce-error .haper-notice-icon--error {
  background: rgba(226, 64, 28, 0.1);
  color: #e2401c;
}

.woocommerce-error li {
  list-style: none !important;
  margin: 0 0 10px 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.8;
  color: #35445a;
}

.woocommerce-error li:last-child {
  margin-bottom: 0;
}

/* Pure CSS fallback icon if template is not used */
.woocommerce-error li:not(:has(.haper-notice-icon)) {
  position: relative;
  padding-right: 32px;
}

.woocommerce-error li:not(:has(.haper-notice-icon))::before {
  content: "";
  position: absolute;
  right: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  background-color: #e2401c;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E")
    no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E")
    no-repeat center / contain;
}

.woocommerce-error a {
  color: #00142f;
  font-weight: 600;
  transition: color var(--haper-transition-fast);
  display: flex;
}

/* --------------------------------------------------------------------------
   2. Success / Status Messages (.woocommerce-message)
   -------------------------------------------------------------------------- */
.woocommerce-message {
  background: #f4fbf7;
  border: 1px solid rgba(15, 131, 77, 0.22);
  border-right: 4px solid #0f834d;
  color: #19273b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.woocommerce-message .haper-notice-icon--success {
  background: rgba(15, 131, 77, 0.1);
  color: #0f834d;
}

/* Fallback icon if custom template is not rendered */
.woocommerce-message:not(:has(.haper-notice-icon)) {
  position: relative;
  padding-right: 44px;
}

.woocommerce-message:not(:has(.haper-notice-icon))::before {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-color: #0f834d;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='9 12 11 14 15 10'/%3E%3C/svg%3E")
    no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='9 12 11 14 15 10'/%3E%3C/svg%3E")
    no-repeat center / contain;
}

.woocommerce-message a:not(.button) {
  color: #be9643;
  font-weight: 600;
  text-decoration: underline;
  transition: color var(--haper-transition-fast);
}

.woocommerce-message a:not(.button):hover {
  color: var(--haper-gold-5, #d4b26a);
}

/* Button inside message (e.g. "View cart" / "مشاهده سبد خرید") */
.woocommerce-message .button,
.woocommerce-message .wc-forward {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--haper-gold-5, #d4b26a);
  color: #ffffff !important;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(212, 178, 106, 0.3);
  transition: all var(--haper-transition-fast);
  order: 2;
  float: left;
}

.woocommerce-message .button:hover,
.woocommerce-message .wc-forward:hover {
  background: #be9643;
  box-shadow: 0 5px 14px rgba(212, 178, 106, 0.45);
  transform: translateY(-1px);
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   3. Info Notices (.woocommerce-info)
   -------------------------------------------------------------------------- */
.woocommerce-info,
.woocommerce-noreviews,
p.no-comments {
  background: #f0f6fd;
  border: 1px solid rgba(53, 68, 90, 0.18);
  border-right: 4px solid #35445a;
  color: #35445a;
  display: flex;
  align-items: center;
  gap: 12px;
}

.woocommerce-info .haper-notice-icon--info {
  background: rgba(53, 68, 90, 0.1);
  color: #35445a;
}

/* Fallback icon if custom template is not rendered */
.woocommerce-info:not(:has(.haper-notice-icon)) {
  position: relative;
  padding-right: 44px;
}

.woocommerce-info:not(:has(.haper-notice-icon))::before {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-color: #35445a;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E")
    no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E")
    no-repeat center / contain;
}

.woocommerce-info a {
  color: #be9643;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--haper-transition-fast);
}

.woocommerce-info a:hover {
  color: var(--haper-gold-5, #d4b26a);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   4. Notices in Specific Page Contexts
   -------------------------------------------------------------------------- */

/* Cart page notices */
.haper-cart-page > .woocommerce-notices-wrapper,
.haper-cart-page > .woocommerce-message,
.haper-cart-page > .woocommerce-info,
.haper-cart-page > .woocommerce-error {
  margin-bottom: 28px;
}

/* Single product notices */
.haper-single-product-notices {
  margin-top: 16px;
  margin-bottom: 12px;
}

/* My Account panel notices */
.woocommerce-MyAccount-content .woocommerce-notices-wrapper,
.woocommerce-MyAccount-content .woocommerce-message,
.woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-MyAccount-content .woocommerce-error {
  margin-bottom: 24px;
}

/* Auth / Login page notices */
.haper-woo-auth-card .woocommerce-notices-wrapper,
.haper-woo-auth-card .woocommerce-error,
.haper-woo-auth-card .woocommerce-message,
.haper-woo-auth-card .woocommerce-info {
  margin-top: 16px;
  margin-bottom: 20px;
}

.demo_store {
  position: fixed;
  left: 0;
  bottom: 0;
  right: 0;
  margin: 0;
  padding: 1em;
  background-color: #3d9cd2;
  z-index: 9999;
}

@media screen and (min-width: 48em) {
  /**
	 * Header cart
	 */
  .site-header-cart .widget_shopping_cart {
    position: absolute;
    top: 100%;
    width: 100%;
    z-index: 999999;
    left: -999em;
    display: block;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
  }

  .site-header-cart:hover .widget_shopping_cart,
  .site-header-cart.focus .widget_shopping_cart {
    left: 0;
    display: block;
  }
}

/**
 * WooCommerce widgets
 */

/**
 * WooCommerce Price Filter
 */
.widget_price_filter .price_slider {
  margin-bottom: 1.5em;
}

.widget_price_filter .price_slider_amount {
  text-align: right;
  line-height: 2.4;
}

.widget_price_filter .price_slider_amount .button {
  float: left;
}

.widget_price_filter .ui-slider {
  position: relative;
  text-align: left;
}

.widget_price_filter .ui-slider .ui-slider-handle {
  position: absolute;
  z-index: 2;
  width: 1em;
  height: 1em;
  cursor: ew-resize;
  outline: none;
  background: #4169e1;
  box-sizing: border-box;
  margin-top: -0.25em;
  opacity: 1;
}

.widget_price_filter .ui-slider .ui-slider-handle:last-child {
  margin-left: -1em;
}

.widget_price_filter .ui-slider .ui-slider-handle:hover,
.widget_price_filter .ui-slider .ui-slider-handle.ui-state-active {
  box-shadow: 0 0 0 0.25em rgba(0, 0, 0, 0.1);
}

.widget_price_filter .ui-slider .ui-slider-range {
  position: absolute;
  z-index: 1;
  display: block;
  border: 0;
  background: #4169e1;
}

.widget_price_filter .price_slider_wrapper .ui-widget-content {
  background: rgba(0, 0, 0, 0.1);
}

.widget_price_filter .ui-slider-horizontal {
  height: 0.5em;
}

.widget_price_filter .ui-slider-horizontal .ui-slider-range {
  height: 100%;
}

/* ==========================================================================
   Haper Luxury WooCommerce Single Product Page Styling
   ========================================================================== */

.haper-single-product-page {
  --haper-single-page-bg: #edf5fc;
  --haper-single-panel-bg: rgba(217, 226, 236, 0.6);
  --haper-single-panel-soft: rgba(217, 226, 236, 0.82);
  --haper-single-hero-max: 1340px;
  --haper-single-main-panel: 965px;
  --haper-single-buycard: 306px;
  --haper-single-gallery-width: 340px;
  --haper-single-gallery-height: 410px;
  --haper-single-panel-height: 458px;
  --haper-single-panel-radius: 30px;
  --haper-single-gallery-radius: 20px;
  background: var(--haper-single-page-bg);
}

.haper-single-product-container {
  padding-top: 24px;
  padding-bottom: 60px;
}

.haper-product-hero-container {
  position: relative;
  max-width: var(--haper-single-hero-max);
}

/* 1. Breadcrumbs */
.haper-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--haper-navy-2);
}

.haper-breadcrumbs a {
  color: var(--haper-navy-2);
  text-decoration: none;
  transition: color var(--haper-transition-fast);
}

.haper-breadcrumbs a:hover {
  color: var(--haper-gold-6);
}

.haper-breadcrumbs__sep {
  color: var(--haper-gold-5);
  font-size: 18px;
  line-height: 1;
}

.haper-product-hero-heading {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 22px;
}

.haper-product-hero-heading__ornament {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.haper-product-hero-heading__dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--haper-gold-5);
  border-radius: var(--haper-radius-full);
}

.haper-product-hero-heading__line {
  width: 34px;
  height: 1px;
  background: var(--haper-gold-5);
}

.haper-product-hero-heading__diamond {
  width: 10px;
  height: 10px;
  background: var(--haper-gold-5);
  transform: rotate(45deg);
}

.haper-product-hero-heading__diamond--small {
  width: 7px;
  height: 7px;
  margin-inline-start: -2px;
  opacity: 0.85;
}

.haper-product-title {
  margin: 0;
  color: var(--haper-navy-5);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.7;
}

/* Wishlist toast */
.haper-product-wishlist-toast {
  position: fixed;
  top: 96px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--haper-radius-md);
  background: var(--haper-gold-5);
  color: var(--haper-text-inverse);
  box-shadow: var(--haper-shadow-md);
  font-size: 12px;
  font-weight: 600;
}

.haper-toast__icon {
  font-weight: 700;
}

/* 2. Hero panels */
.haper-product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, var(--haper-single-main-panel)) var(
      --haper-single-buycard
    );
  gap: 24px;
  align-items: stretch;
  direction: rtl;
}

.haper-product-main-panel {
  min-width: 0;
  min-height: var(--haper-single-panel-height);
  display: grid;
  grid-template-columns: var(--haper-single-gallery-width) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 16px;
  border-radius: var(--haper-single-panel-radius);
  background: var(--haper-single-panel-bg);
  direction: rtl;
}

/* Gallery */
.haper-product-gallery {
  width: 100%;
  max-width: var(--haper-single-gallery-width);
  min-width: 0;
}

.haper-product-gallery__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 340 / 410;
  max-height: var(--haper-single-gallery-height);
  display: grid;
  grid-template-rows: minmax(0, 1fr) 72px 8px;
  gap: 10px;
  padding: 26px 16px 14px;
  overflow: hidden;
  background-image: url("assets/img/single-product/gallery-frame.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  box-sizing: border-box;
}

.haper-product-gallery__main-img {
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px 2px;
}

.haper-product-gallery__main-img img {
  width: 100%;
  height: 100%;
  max-width: 230px;
  max-height: 255px;
  object-fit: contain;
  transition: opacity 180ms ease;
}

.haper-product-gallery__thumbs-viewport {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  direction: rtl;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-inline: contain;
}

.haper-product-gallery__thumbs-viewport::-webkit-scrollbar {
  display: none;
}

.haper-product-gallery__thumbs {
  width: max-content;
  min-width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
  padding-inline: 1px;
}

.haper-product-gallery__thumb {
  flex: 0 0 62px;
  width: 62px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition:
    border-color var(--haper-transition-fast),
    background var(--haper-transition-fast);
}

.haper-product-gallery__thumb:hover,
.haper-product-gallery__thumb.is-active {
  border-color: var(--haper-gold-5);
  background: rgba(255, 255, 255, 0.48);
}

.haper-product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.haper-product-gallery__scrollbar {
  position: relative;
  align-self: end;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: var(--haper-radius-full);
  background: rgba(164, 185, 216, 0.62);
}

.haper-product-gallery__scrollbar-thumb {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 28%;
  height: 100%;
  border-radius: inherit;
  background: var(--haper-gold-5);
  transition:
    width 180ms ease,
    inset-inline-start 80ms linear;
  transform-origin: right center;
}

/* Product details */
.haper-product-center {
  min-width: 0;
  min-height: calc(var(--haper-single-panel-height) - 32px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  padding-block: 14px 2px;
}

.haper-product-actions-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 28px;
  color: var(--haper-navy-2);
  font-size: 12px;
}

.haper-product-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--haper-navy-2);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--haper-transition-fast);
}

.haper-product-action:hover,
.haper-product-action.is-active {
  color: var(--haper-gold-6);
}

.haper-product-action--wishlist.is-active .haper-action__icon {
  color: var(--haper-gold-6);
}

.haper-action__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.haper-action__icon--star {
  color: var(--haper-navy-2);
  font-size: 16px;
  line-height: 1;
}

.haper-actions-bar__divider {
  width: 1px;
  height: 16px;
  background: rgba(122, 141, 169, 0.42);
}

.haper-product-features-box {
  padding-top: 4px;
}

.haper-product-features-title {
  margin: 0 0 14px;
  color: var(--haper-navy-5);
  font-size: 15px;
  font-weight: 600;
}

.haper-product-features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.haper-feature-pill {
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 7px;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.28);
  color: var(--haper-navy-4);
  text-align: center;
}

.haper-feature-pill__lbl,
.haper-feature-pill__val {
  font-size: 11px;
  line-height: 1.5;
}

.haper-feature-pill__lbl {
  color: var(--haper-navy-3);
  font-weight: 500;
}

.haper-feature-pill__val {
  color: var(--haper-navy-4);
  font-weight: 600;
}

/* WooCommerce attributes / variations */
.haper-product-variations {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.haper-product-variation-group {
  align-items: center;
  gap: 14px;
}

.haper-volume-box__lbl {
  color: var(--haper-navy-5);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.haper-volume-pills {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 10px;
  padding-top: 12px;
}

.haper-volume-pill {
  min-width: 0;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.28);
  color: var(--haper-navy-4);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background var(--haper-transition-fast),
    color var(--haper-transition-fast),
    box-shadow var(--haper-transition-fast);
}

.haper-volume-pill:hover {
  box-shadow: inset 0 0 0 1px var(--haper-gold-4);
}

.haper-volume-pill.is-active {
  background: var(--haper-gold-5);
  color: var(--haper-text-inverse);
  box-shadow: none;
}

.haper-product-view-all-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.haper-product-view-all-line {
  flex: 1 1 auto;
  height: 1px;
  background: rgba(122, 141, 169, 0.38);
}

.haper-product-view-all-btn {
  flex: 0 0 auto;
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 15px;
  border-radius: 10px;
  background: var(--haper-bg-card);
  color: var(--haper-navy-4);
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  transition:
    color var(--haper-transition-fast),
    box-shadow var(--haper-transition-fast);
}

.haper-product-view-all-btn:hover {
  color: var(--haper-gold-7);
  box-shadow: var(--haper-shadow-sm);
}

/* Buy card */
.haper-product-buycard {
  width: 100%;
  min-width: 0;
  min-height: var(--haper-single-panel-height);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px 24px 22px;
  border: 0;
  border-radius: var(--haper-single-panel-radius);
  background: var(--haper-single-panel-bg);
  box-sizing: border-box;
  direction: rtl;
}

.haper-buycard-meta-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.haper-buycard-meta-item {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  line-height: 1.6;
}

.haper-buycard-meta__lbl {
  flex: 0 0 auto;
  color: var(--haper-navy-5);
  font-weight: 600;
}

.haper-buycard-meta__val {
  min-width: 0;
  color: var(--haper-navy-3);
  font-weight: 400;
  text-align: left;
}

.haper-buycard-meta__val a {
  color: inherit;
  text-decoration: none;
}

.haper-buycard-meta__val a:hover {
  color: var(--haper-gold-7);
}

.haper-buycard-meta__val--status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--haper-gold-5);
}

.haper-buycard-meta__val--status.is-error {
  color: var(--haper-navy-2);
}

.haper-buycard-divider {
  width: 100%;
  margin: auto 0 0;
  border: 0;
  border-top: 1px solid #d9e2ec;
}

.haper-buycard-price-box {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.haper-buycard-price-label {
  color: var(--haper-navy-5);
  font-size: 13px;
  font-weight: 600;
}

.haper-buycard-prices {
  min-width: 0;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 3px;
}

.haper-buycard-regular-row {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 6px;
}

.haper-buycard-discount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 17px;
  padding-inline: 5px;
  border-radius: 4px;
  background: var(--haper-gold-5);
  color: var(--haper-text-inverse);
  font-size: 9px;
  font-weight: 700;
}

.haper-buycard-regular-price {
  color: var(--haper-navy-1);
  font-size: 10px;
  text-decoration: line-through;
}

.haper-buycard-sale-row {
  display: flex;
  flex-direction: row-reverse;
  align-items: baseline;
  gap: 5px;
}

.haper-buycard-sale-price {
  color: var(--haper-gold-6);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.haper-buycard-currency {
  color: var(--haper-navy-3);
  font-size: 11px;
}

.haper-buycard-variation-price .price {
  margin: 0;
  color: var(--haper-gold-6);
  font-size: 18px;
  font-weight: 700;
}

.haper-buycard-variation-price del {
  color: var(--haper-navy-1);
  font-size: 11px;
}

.haper-buycard-variation-price ins {
  color: var(--haper-gold-6);
  text-decoration: none;
}

.haper-product-cart-form {
  width: 100%;
  margin: 0;
}

.haper-product-native-variations,
.haper-native-variation-output {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.haper-single-variation-wrap {
  display: block;
}

.haper-buycard-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.haper-quantity-control {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  direction: ltr;
  border: 0;
  background: transparent;
  overflow: visible;
}

.haper-qty-btn,
.haper-qty-input {
  width: 31px;
  height: 31px;
  border: 1px solid rgba(122, 141, 169, 0.34);
  background: rgba(255, 255, 255, 0.24);
  color: var(--haper-navy-3);
  font-size: 13px;
  line-height: 29px;
  text-align: center;
}

.haper-qty-btn {
  padding: 0;
  cursor: pointer;
  transition:
    background var(--haper-transition-fast),
    color var(--haper-transition-fast);
}

.haper-qty-btn:first-child {
  border-radius: 7px 0 0 7px;
}

.haper-qty-btn:last-child {
  border-radius: 0 7px 7px 0;
}

.haper-qty-btn:hover {
  background: var(--haper-bg-card);
  color: var(--haper-gold-7);
}

.haper-qty-input {
  border-inline: 0;
  border-radius: 0;
  font-weight: 600;
  -moz-appearance: textfield;
}

.haper-qty-input::-webkit-outer-spin-button,
.haper-qty-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.haper-btn--gold-buy {
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--haper-gold-5);
  color: var(--haper-text-inverse);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background var(--haper-transition-fast),
    opacity var(--haper-transition-fast);
}

.haper-btn--gold-buy:hover:not(:disabled) {
  background: var(--haper-gold-6);
}

.haper-btn--gold-buy:disabled,
.haper-btn--gold-buy.disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

/* 3. Description Section (Naghdo Barresi) */
.haper-product-description-container {
  margin-bottom: 24px;
}

.haper-product-description-card {
  width: 100%;
  padding: 24px;
  border: 0;
  border-radius: 30px;
  background: var(--haper-single-panel-bg, rgba(217, 226, 236, 0.6));
  box-shadow: none;
  box-sizing: border-box;
  overflow: hidden;
  margin-top: 2.5em;
}

.haper-description-tab-header {
  width: 100%;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 8px 24px;
  border: 1px solid var(--haper-gold-5, #d4b26a);
  border-radius: 20px;
  box-sizing: border-box;
}

.haper-description-tab-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--haper-gold-6, #ad9156);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
}

.haper-description-body {
  margin: 0;
  padding: 24px 24px 0;
  color: var(--haper-navy-4, #35445a);
  font-size: 15px;
  font-weight: 400;
  line-height: 2.05;
  text-align: justify;
}

.haper-description-body > :first-child {
  margin-top: 0;
}

.haper-description-body > :last-child {
  margin-bottom: 0;
}

.haper-description-body p {
  margin-top: 0;
  margin-bottom: 10px;
}

.haper-description-body a {
  color: var(--haper-gold-7, #867042);
  text-decoration: none;
}

.haper-description-body a:hover {
  color: var(--haper-gold-6, #ad9156);
}

.haper-description-footer {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 20px;
  padding: 0 24px;
  border: 0;
  color: var(--haper-navy-1, #889cb9);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.8;
}

.haper-description-meta-row {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
}

.haper-desc-meta__lbl {
  flex: 0 0 auto;
  color: var(--haper-navy-1, #889cb9);
  font-weight: 400;
}

.haper-desc-meta__val {
  min-width: 0;
  color: var(--haper-navy-1, #889cb9);
  font-weight: 400;
}

.haper-desc-meta__val a {
  color: inherit;
  text-decoration: none;
  transition: color var(--haper-transition-fast);
}

.haper-desc-meta__val a:hover {
  color: var(--haper-gold-6, #ad9156);
}

.haper-desc-meta-divider {
  width: 100%;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid #b6c5d6;
  opacity: 0.75;
}

@media screen and (max-width: 768px) {
  .haper-product-description-container {
    margin-bottom: 24px;
  }

  .haper-product-description-card {
    padding: 16px;
    border-radius: 22px;
  }

  .haper-description-tab-header {
    min-height: 56px;
    padding-inline: 18px;
    border-radius: 16px;
  }

  .haper-description-tab-pill {
    font-size: 15px;
  }

  .haper-description-body {
    padding: 18px 8px 0;
    font-size: 14px;
    line-height: 2;
  }

  .haper-description-footer {
    margin-top: 16px;
    padding-inline: 8px;
    font-size: 11px;
  }

  .haper-description-meta-row {
    min-height: 32px;
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 480px) {
  .haper-product-description-card {
    padding: 12px;
    border-radius: 18px;
  }

  .haper-description-tab-header {
    min-height: 50px;
    padding-inline: 14px;
    border-radius: 14px;
  }

  .haper-description-body {
    padding: 16px 4px 0;
    font-size: 13px;
    line-height: 1.95;
  }

  .haper-description-footer {
    padding-inline: 4px;
  }
}

/* 4. Fragrance Profile Section */
.haper-product-fragrance-container {
  margin-bottom: 48px;
}

.haper-fragrance-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.haper-fragrance-row--1cols {
  grid-template-columns: minmax(0, 1fr);
}

.haper-fragrance-row--2cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.haper-fragrance-card {
  min-width: 0;
  min-height: 256px;
  padding: 28px 32px;
  border: 0;
  border-radius: 32px;
  background: #e2eaf3;
  box-shadow: none;
  color: var(--haper-text-main);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 991px) {
  .haper-fragrance-row {
    grid-template-columns: 1fr !important;
  }
}

.haper-pyramid-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.haper-pyramid-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--haper-gold-0-5);
  padding: 12px 16px;
  border-radius: var(--haper-radius-md);
  border: 1px solid var(--haper-gold-1-5);
}

.haper-pyramid-item__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--haper-gold-7);
}

.haper-pyramid-item__value {
  font-size: 14px;
  font-weight: 500;
  color: var(--haper-navy-5);
  line-height: 1.6;
}

.haper-fragrance-card__title {
  margin: 0;
  color: var(--haper-text-main);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
}

.haper-scent-profile-list,
.haper-pyramid-list,
.haper-advantages-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.haper-scent-profile-item {
  display: grid;
  grid-template-columns: minmax(68px, auto) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.haper-scent-profile-item__label,
.haper-advantage-simple,
.haper-advantage-rating__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--haper-text-main);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  white-space: nowrap;
}

.haper-scent-profile-item__icon,
.haper-advantage-item__icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 16px;
}

.haper-scent-profile-item__visual {
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  direction: rtl;
}

.haper-scent-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  direction: rtl;
}

.haper-scent-dot {
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.haper-scent-profile-item__percentage {
  width: 44px;
  min-width: 44px;
  color: var(--haper-color-accent-hover);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  direction: ltr;
  justify-self: start;
}

.haper-pyramid-list {
  gap: 19px;
}

.haper-pyramid-item {
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.haper-pyramid-item__label {
  color: var(--haper-text-main);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  white-space: nowrap;
}

.haper-pyramid-item__content {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.haper-pyramid-item__icon {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: var(--haper-radius-full);
  flex: 0 0 22px;
}

.haper-pyramid-item__value {
  color: var(--haper-text-main);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  white-space: nowrap;
}

.haper-advantages-list {
  gap: 16px;
}

.haper-advantage-simple {
  min-height: 28px;
}

.haper-advantage-item__diamond {
  width: 12px;
  height: 12px;
  background: var(--haper-color-accent);
  transform: rotate(45deg);
  flex: 0 0 12px;
}

.haper-advantage-item__title {
  min-width: 0;
}

.haper-advantage-rating {
  display: grid;
  grid-template-columns: minmax(96px, auto) minmax(120px, 194px) minmax(38px, auto);
  align-items: center;
  gap: 12px;
}

.haper-rating-meter {
  --haper-rating-percent: 0%;
  position: relative;
  width: 194px;
  max-width: 100%;
  height: 26px;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: var(--haper-radius-full);
  background-color: #ffffff;
  background-image: linear-gradient(
    90deg,
    transparent 0,
    transparent 10.5px,
    rgba(217, 226, 236, 1) 10.5px,
    rgba(217, 226, 236, 1) 12px
  );
  background-size: 12px 12px;
  background-repeat: repeat-x;
  background-position: left center;
  direction: ltr;
}
.haper-rating-meter__fill {
  position: absolute;
  inset: 3px auto 3px 3px;
  width: var(--haper-rating-percent);
  max-width: calc(100% - 6px);
  min-width: 0;
  overflow: hidden;
  border-radius: var(--haper-radius-full);
  background-color: #d4b26a;
  background-image: linear-gradient(
    90deg,
    transparent 0,
    transparent 10.5px,
    #be9643 10.5px,
    #be9643 12px
  );
  background-size: 12px 12px;
  background-repeat: repeat-x;
  background-position: left center;
}
.haper-rating-meter__thumb {
  position: absolute;
  top: 50%;
  left: clamp(6px, var(--haper-rating-percent), calc(100% - 6px));
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--haper-bg-card);
  transform: translate(-50%, -50%);
}

.haper-advantage-rating__value {
  color: var(--haper-color-accent-hover);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  direction: ltr;
  text-align: left;
}

@media (max-width: 1199px) {
  .haper-fragrance-card {
    padding: 24px;
  }

  .haper-scent-dot {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
  }

  .haper-scent-profile-item {
    gap: 12px;
  }

  .haper-scent-profile-item__visual {
    gap: 10px;
  }

  .haper-scent-dots {
    gap: 3px;
  }

  .haper-advantage-rating {
    grid-template-columns: minmax(90px, auto) minmax(100px, 1fr) auto;
    gap: 10px;
  }
}

@media (max-width: 991px) {
  .haper-fragrance-row,
  .haper-fragrance-row--2cols,
  .haper-fragrance-row--3cols {
    grid-template-columns: 1fr;
  }

  .haper-fragrance-card {
    min-height: 0;
  }
}

@media (max-width: 575px) {
  .haper-product-fragrance-container {
    margin-bottom: 32px;
  }

  .haper-fragrance-row {
    gap: 16px;
  }

  .haper-fragrance-card {
    padding: 20px 18px;
    border-radius: 24px;
    gap: 18px;
  }

  .haper-fragrance-card__title {
    font-size: 17px;
  }

  .haper-scent-profile-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .haper-scent-profile-item__visual {
    justify-content: space-between;
  }

  .haper-scent-dot {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .haper-pyramid-item {
    align-items: flex-start;
  }

  .haper-pyramid-item__label,
  .haper-pyramid-item__value,
  .haper-scent-profile-item__label,
  .haper-advantage-simple,
  .haper-advantage-rating__label {
    font-size: 14px;
  }

  .haper-advantage-rating {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
  }

  .haper-advantage-rating__label {
    grid-column: 1 / -1;
  }

  .haper-rating-meter {
    height: 24px;
  }
}

/* 5. Section Headers Common */
.haper-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.haper-section-header__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--haper-navy-5);
  margin: 0;
}

.haper-section-header__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--haper-gold-7);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--haper-transition-fast);
}

.haper-section-header__link:hover {
  color: var(--haper-gold-5);
}

/* 6. Product Reviews & Review Form */
.haper-product-reviews-container,
.haper-product-review-form-container {
  --haper-review-panel: #d9e2ec;
  --haper-review-input: #f0f6fd;
  --haper-review-muted: var(--haper-navy-2);
  --haper-review-accent: var(--haper-gold-5);
  --haper-review-card-gap: 0px;
  margin-bottom: 48px;
}

.haper-product-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 40px;
  margin-bottom: 24px;
}

.haper-product-section-heading__title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  direction: ltr;
}

.haper-product-section-heading__title {
  margin: 0;
  color: var(--haper-navy-5);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
}

.haper-product-section-heading__accent {
  display: inline-flex;
  align-items: center;
  direction: ltr;
  flex: 0 0 auto;
}

.haper-product-section-heading__diamond {
  width: 10px;
  height: 10px;
  background: var(--haper-review-accent);
  transform: rotate(45deg);
  margin-inline-end: 2px;
}

.haper-product-section-heading__line {
  width: 30px;
  height: 1px;
  background: var(--haper-review-accent);
}

.haper-product-section-heading__dot {
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--haper-review-accent);
  border-radius: 50%;
  box-sizing: border-box;
}

.haper-section-view-all {
  min-height: 40px;
  padding: 6px 12px;
  border: 0;
  border-radius: 14px;
  background: var(--haper-review-panel);
  color: var(--haper-navy-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--haper-transition-fast),
    color var(--haper-transition-fast);
}

.haper-section-view-all:hover,
.haper-section-view-all:focus-visible {
  background: var(--haper-gold-3);
  color: var(--haper-navy-5);
}

.haper-section-view-all svg {
  flex: 0 0 auto;
}

/* Reviews carousel */
.haper-reviews-slider {
  width: 100%;
}

.haper-reviews-slider__viewport {
  width: 100%;
  overflow: hidden;
  direction: ltr;
  touch-action: pan-y;
}

.haper-reviews-slider__track {
  display: flex;
  align-items: stretch;
  gap: var(--haper-review-card-gap);
  direction: ltr;
  transform: translate3d(0, 0, 0);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.haper-review-slide {
  flex: 0 0 calc((100% - (var(--haper-review-card-gap) * 2)) / 3);
  min-width: 0;
  height: 167px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  direction: rtl;
  box-sizing: border-box;
  padding: 16px 22px;
}

.haper-review-slide__avatar {
  width: 86px;
  height: 86px;
  border-radius: 14px;
  background: var(--haper-review-panel);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

.haper-review-slide__avatar img {
  display: block;
  width: 74px;
  height: 85px;
  object-fit: contain;
}

.haper-review-slide__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.haper-review-slide__meta {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.haper-review-slide__identity {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.haper-review-slide__author {
  color: var(--haper-navy-5);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.haper-review-slide__date {
  color: var(--haper-review-accent);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.haper-review-slide__rating {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--haper-review-accent);
  font-size: 14px;
  font-weight: 600;
  direction: ltr;
}

.haper-review-slide__rating svg {
  display: block;
}

.haper-review-slide__text {
  margin: 0;
  color: var(--haper-review-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  text-align: justify;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.haper-reviews-slider.is-expanded .haper-reviews-slider__viewport {
  overflow: visible;
}

.haper-reviews-slider.is-expanded .haper-reviews-slider__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  transform: none !important;
}

.haper-reviews-slider.is-expanded .haper-review-slide {
  width: auto;
}

.haper-reviews-empty {
  background: var(--haper-review-panel);
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.haper-reviews-empty__text {
  margin: 0;
  color: var(--haper-navy-3);
  font-size: 14px;
}

.haper-reviews-empty__btn {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 14px;
  background: var(--haper-review-accent);
  color: var(--haper-gold-0);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}


/* Prevent WooCommerce's native rating UI from being rendered alongside the custom picker. */
#haper-review-form-section .comment-form-rating,
#haper-review-form-section p.stars,
#haper-review-form-section .star-rating,
.haper-product-review-form-container .comment-form-rating,
.haper-product-review-form-container p.stars,
.haper-product-review-form-container .star-rating {
  display: none !important;
}

/* Review form + related product */
.haper-review-form-grid {
  display: grid;
  grid-template-columns: 308px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  direction: ltr;
}

.haper-review-form-grid--form-only {
  grid-template-columns: 1fr;
}

.haper-review-product-card {
  width: 308px;
  height: 288px;
  padding: 16px 18px 18px;
  background:
    url("assets/img/single-product/review-product-card-bg.svg")
    center / 100% 100% no-repeat;
  box-sizing: border-box;
  direction: rtl;
  display: flex;
  flex-direction: column;
}

.haper-review-product-card__top {
  min-height: 34px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.haper-review-product-card__gender {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--haper-review-accent);
  font-size: 10px;
  line-height: 1;
}

.haper-review-product-card__gender img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.haper-review-product-card__wishlist {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--haper-navy-0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.haper-review-product-card__wishlist.is-active {
  color: var(--haper-review-accent);
}

.haper-review-product-card__image {
  height: 150px;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.haper-review-product-card__image img {
  display: block;
  width: auto;
  max-width: 150px;
  height: 142px;
  object-fit: contain;
}

.haper-review-product-card__body {
  margin-top: auto;
  min-width: 0;
}

.haper-review-product-card__attributes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.haper-review-product-card__attribute {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--haper-navy-3);
  font-size: 10px;
  white-space: nowrap;
}

.haper-review-product-card__attribute svg {
  color: var(--haper-review-accent);
  flex: 0 0 auto;
}

.haper-review-product-card__title {
  margin: 0;
  color: var(--haper-navy-5);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
  text-align: center;
}

.haper-review-product-card__title a {
  color: inherit;
  text-decoration: none;
}

.haper-comment-form-card {
  width: 100%;
  min-height: 288px;
  padding: 24px;
  border: 0;
  border-radius: 24px;
  background: var(--haper-review-panel);
  box-shadow: none;
  box-sizing: border-box;
  direction: rtl;
  overflow: hidden;
}

.haper-comment-form,
.haper-comment-form-inner {
  width: 100%;
}

.haper-comment-form {
  min-height: 240px;
}

.haper-comment-form-inner {
  min-height: 240px;
  display: grid;
  grid-template-columns: 392px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  direction: rtl;
}

.haper-comment-form__fields {
  min-width: 0;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.haper-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.haper-form-group__label {
  color: var(--haper-navy-4);
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
}

.haper-product-review-form-container .haper-form-control {
  width: 100%;
  height: 48px;
  padding: 10px 14px;
  border: 0 !important;
  border-radius: 14px;
  background: var(--haper-review-input);
  color: var(--haper-navy-5);
  font: inherit;
  font-size: 14px;
  outline: none;
  box-shadow: none !important;
  box-sizing: border-box;
  appearance: none;
  transition: box-shadow var(--haper-transition-fast);
}

.haper-product-review-form-container .haper-form-control:focus {
  border: 0 !important;
  box-shadow: 0 0 0 1.5px var(--haper-review-accent) !important;
}

.haper-comment-form__textarea-wrap {
  min-width: 0;
  min-height: 240px;
}

.haper-product-review-form-container .haper-form-control--textarea {
  width: 100%;
  height: 240px;
  min-height: 240px;
  resize: none;
  padding: 16px;
  line-height: 1.8;
}

.haper-comment-form__footer-row {
  min-height: 40px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.haper-star-rating-picker {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.haper-star-picker__lbl {
  color: var(--haper-navy-4);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.haper-star-picker__stars {
  display: flex;
  align-items: center;
  gap: 2px;
  direction: rtl;
}

.haper-star-picker__star {
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 1px;
  border: 0;
  background: transparent;
  color: var(--haper-review-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.haper-star-picker__star svg {
  display: block;
  width: 22px;
  height: 22px;
}

.haper-star-picker__star.is-active svg path {
  fill: currentColor;
}

.haper-review-submit {
  position: relative;
  display: block;
  width: 158px;
  height: 40px;
  flex: 0 0 158px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: transparent url("assets/img/single-product/review-submit-button.svg") center / 158px 40px no-repeat;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.haper-review-submit:hover,
.haper-review-submit:focus-visible {
  background-image: url("assets/img/single-product/review-submit-button.svg");
  color: #ffffff;
  opacity: 0.96;
}

.haper-review-submit__arrow {
  display: none;
}

.haper-review-submit__label {
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 122px;
  height: 30px;
  padding: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 30px;
  text-align: center;
  white-space: nowrap;
}

.haper-review-form__rating-error {
  margin: -10px 0 0;
  color: var(--haper-gold-8);
  font-size: 11px;
  line-height: 1.4;
}

@media (max-width: 1100px) {
  .haper-review-slide {
    flex-basis: calc((100% - var(--haper-review-card-gap)) / 2);
  }

  .haper-reviews-slider.is-expanded .haper-reviews-slider__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .haper-review-form-grid {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .haper-review-product-card {
    width: 280px;
  }

  .haper-comment-form-inner {
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 16px;
  }

  .haper-star-rating-picker {
    gap: 6px;
  }

  .haper-star-picker__lbl {
    font-size: 13px;
  }

  .haper-star-picker__star {
    width: 21px;
  }

  .haper-star-picker__star svg {
    width: 19px;
    height: 19px;
  }

  .haper-review-submit {
    width: 138px;
  }
}

@media (max-width: 900px) {
  .haper-review-form-grid {
    grid-template-columns: 1fr;
  }

  .haper-comment-form-card {
    order: 1;
  }

  .haper-review-product-card {
    order: 2;
    width: 308px;
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .haper-product-reviews-container,
  .haper-product-review-form-container {
    --haper-review-card-gap: 0px;
    margin-bottom: 32px;
  }

  .haper-product-section-heading {
    gap: 12px;
    margin-bottom: 18px;
  }

  .haper-product-section-heading__title {
    font-size: 18px;
  }

  .haper-product-section-heading__line {
    width: 22px;
  }

  .haper-section-view-all {
    min-height: 34px;
    padding: 5px 9px;
    border-radius: 12px;
    font-size: 11px;
  }

  .haper-review-slide {
    flex-basis: 100%;
    height: auto;
    min-height: 150px;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
  }

  .haper-review-slide__avatar {
    width: 74px;
    height: 74px;
    border-radius: 12px;
  }

  .haper-review-slide__avatar img {
    width: 64px;
    height: 73px;
  }

  .haper-review-slide__author {
    font-size: 14px;
  }

  .haper-review-slide__text {
    font-size: 13px;
  }

  .haper-reviews-slider.is-expanded .haper-reviews-slider__track {
    grid-template-columns: 1fr;
  }

  .haper-comment-form-card {
    height: auto;
    padding: 16px;
    border-radius: 16px;
  }

  .haper-comment-form-inner {
    height: auto;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .haper-comment-form__fields,
  .haper-comment-form__textarea-wrap {
    height: auto;
  }

  .haper-comment-form__textarea-wrap {
    order: 2;
  }

  .haper-comment-form__fields {
    order: 1;
  }

  .haper-product-review-form-container .haper-form-control--textarea {
    height: 180px;
    min-height: 180px;
  }

  .haper-comment-form__footer-row {
    flex-wrap: wrap;
  }

  .haper-review-submit {
    width: 122px;
    height: 34px;
    border-radius: 9px;
  }

  .haper-review-submit__arrow {
    width: 32px;
  }

  .haper-review-submit__label {
    padding-inline: 8px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .haper-review-product-card {
    width: min(308px, 100%);
  }

  .haper-star-rating-picker {
    width: 100%;
    justify-content: flex-start;
  }

  .haper-review-submit {
    margin-inline-start: auto;
  }
}

/* 8. Related Products Section */
.haper-product-related-container {
  margin-bottom: 60px;
}

.haper-related-products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.haper-product-card {
  background: #ffffff;
  border: 1px solid var(--haper-gold-1-5);
  border-radius: var(--haper-radius-xl);
  padding: 16px;
  box-shadow: var(--haper-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    transform var(--haper-transition-fast),
    box-shadow var(--haper-transition-fast);
}

.haper-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--haper-shadow-md);
}

.haper-product-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  direction: ltr;
}

.haper-product-card__gender {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--haper-gold-6, #ad9156);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  direction: ltr;
}

.haper-product-card__gender-icon {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 34px;
}

.haper-product-card__gender-label {
  white-space: nowrap;
}

.haper-product-card__wishlist {
  background: none;
  border: none;
  color: var(--haper-navy-2);
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}

.haper-product-card__image {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.haper-product-card__image img {
  max-height: 100%;
  object-fit: contain;
}

.haper-product-card__pills {
  display: flex;
  gap: 6px;
}

.haper-product-card__pill {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--haper-navy-2);
  background: var(--haper-gold-0-5);
  padding: 2px 6px;
  border-radius: var(--haper-radius-sm);
}

.haper-product-card__title {
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
}

.haper-product-card__title a {
  color: var(--haper-navy-5);
  text-decoration: none;
}

.haper-product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.haper-product-card__prices {
  display: flex;
  flex-direction: column;
}

.haper-product-card__sale {
  font-size: 15px;
  font-weight: 800;
  color: var(--haper-navy-5);
}

.haper-product-card__reg {
  font-size: 11px;
  color: var(--haper-navy-2);
  text-decoration: line-through;
}

.haper-product-card__add-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--haper-navy-5);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background var(--haper-transition-fast);
}

.haper-product-card__add-btn:hover {
  background: var(--haper-gold-5);
}

/* Archive Product Card — Figma Group 345285 */
.haper-product-card--archive {
  --haper-product-card-border: #b6c5d6;
  --haper-product-card-soft: #d9e3ee;
  --haper-product-card-muted: #889cb9;
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 240px;
  min-height: 391px;
  margin-inline: auto;
  padding: 17px 17px 19px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  gap: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.haper-product-card--archive::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: url("assets/img/product-card/product-card-bg.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  pointer-events: none;
}

.haper-product-card--archive:hover {
  transform: translateY(-3px);
  box-shadow: none;
}

.haper-product-card--archive .haper-product-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  direction: ltr;
}

.haper-product-card--archive .haper-product-card__gender {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--haper-gold-6);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  direction: ltr;
}

.haper-product-card--archive .haper-product-card__gender-icon {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: 0 0 34px;
}

.haper-product-card--archive .haper-product-card__gender-label {
  white-space: nowrap;
}

.haper-product-card--archive .haper-product-card__wishlist {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--haper-product-card-border);
  box-shadow: none;
  cursor: pointer;
  margin-left: auto;
  transition:
    transform var(--haper-transition-fast),
    opacity var(--haper-transition-fast);
}

.haper-product-card--archive .haper-product-card__wishlist:hover,
.haper-product-card--archive .haper-product-card__wishlist.is-active {
  background: transparent;
  transform: scale(1.08);
}

.haper-product-card--archive .haper-product-card__wishlist.is-active svg path {
  fill: var(--haper-gold-5);
}

.haper-product-card--archive .haper-product-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 160px;
  margin-top: 4px;
  padding: 0 12px;
  box-sizing: border-box;
}

.haper-product-card--archive .haper-product-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 126px;
  max-height: 154px;
  object-fit: contain;
  transition: transform var(--haper-transition-base);
}

.haper-product-card--archive:hover .haper-product-card__image img {
  transform: translateY(-2px) scale(1.015);
}

.haper-product-card--archive .haper-product-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 157px;
  padding-top: 3px;
}

.haper-product-card--archive .haper-product-card__pills {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-bottom: 8px;
  direction: rtl;
}

.haper-product-card--archive .haper-product-card__pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--haper-navy-4);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.6;
  white-space: nowrap;
}

.haper-product-card--archive .haper-product-card__pill svg {
  color: var(--haper-gold-5);
  flex: 0 0 auto;
}

.haper-product-card--archive .haper-product-card__title {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 8px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.8;
  text-align: right;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.haper-product-card--archive .haper-product-card__title a {
  color: var(--haper-navy-4);
  text-decoration: none;
}

.haper-product-card--archive .haper-product-card__commerce {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  min-height: 58px;
  margin-top: auto;
  direction: ltr;
}

.haper-product-card--archive .haper-product-card__prices {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 2px;
  min-width: 0;
  direction: rtl;
}

.haper-product-card--archive .haper-product-card__regular-row,
.haper-product-card--archive .haper-product-card__sale-row {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.haper-product-card--archive .haper-product-card__discount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 18px;
  padding: 0 5px;
  border-radius: 6px;
  background: var(--haper-gold-5);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.haper-product-card--archive .haper-product-card__reg {
  color: var(--haper-product-card-muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration-thickness: 1px;
}

.haper-product-card--archive .haper-product-card__sale-row {
  gap: 4px;
}

.haper-product-card--archive .haper-product-card__currency {
  color: var(--haper-navy-4);
  font-size: 10px;
  font-weight: 400;
}

.haper-product-card--archive .haper-product-card__sale {
  color: var(--haper-gold-6);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.haper-product-card--archive .haper-product-card__purchase-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  direction: rtl;
}

.haper-product-card--archive .haper-product-card__credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  min-width: 46px;
}

.haper-product-card--archive .haper-product-card__credit-image {
  display: block;
  width: auto;
  max-width: 46px;
  height: 28px;
  object-fit: contain;
}

.haper-product-card--archive .haper-product-card__credit-label {
  color: var(--haper-product-card-muted);
  font-size: 9px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

.haper-product-card--archive .haper-product-card__add-btn,
.woocommerce .haper-product-card--archive a.button.haper-product-card__add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--haper-product-card-soft);
  color: var(--haper-product-card-muted);
  box-shadow: none;
  text-decoration: none;
  line-height: 1;
  transition:
    transform var(--haper-transition-fast),
    background var(--haper-transition-fast),
    color var(--haper-transition-fast);
}

.haper-product-card--archive .haper-product-card__add-btn:hover,
.woocommerce
  .haper-product-card--archive
  a.button.haper-product-card__add-btn:hover {
  background: var(--haper-gold-1-5);
  color: var(--haper-gold-6);
  transform: translateY(-1px);
}

.haper-product-card--archive .haper-product-card__stock-progress {
  position: relative;
  width: calc(100% - 22px);
  height: 5px;
  margin: 12px auto 0;
  border-radius: var(--haper-radius-full);
  background: #ffffff;
  overflow: hidden;
  direction: ltr;
}

.haper-product-card--archive .haper-product-card__stock-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--haper-gold-5);
  transition: width var(--haper-transition-base);
}

@media screen and (max-width: 1200px) {
  .haper-product-card--archive {
    max-width: 240px;
  }
}

@media screen and (max-width: 560px) {
  .haper-product-card--archive {
    width: min(100%, 240px);
  }
}

/* Responsive Media Queries */
@media screen and (max-width: 1320px) {
  .haper-product-hero-grid {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  .haper-product-main-panel {
    grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
    gap: 18px;
  }

  .haper-product-features-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .haper-related-products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (max-width: 1080px) {
  .haper-product-hero-grid {
    grid-template-columns: 1fr;
  }

  .haper-product-buycard {
    min-height: auto;
  }

  .haper-product-main-panel {
    grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
  }

  .haper-buycard-divider {
    margin-top: 8px;
  }
}

@media screen and (max-width: 860px) {
  .haper-product-main-panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .haper-product-gallery {
    margin-inline: auto;
  }

  .haper-product-center {
    min-height: 0;
  }

  .haper-product-view-all-divider {
    margin-top: 6px;
  }

  .haper-reviews-grid,
  .haper-review-form-grid,
  .haper-comment-form-inner {
    grid-template-columns: 1fr;
  }

  .haper-related-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 640px) {
  .haper-single-product-container {
    padding-top: 18px;
  }

  .haper-product-hero-container {
    padding-inline: 12px;
  }

  .haper-product-hero-heading {
    align-items: flex-start;
  }

  .haper-product-title {
    font-size: 16px;
  }

  .haper-product-main-panel,
  .haper-product-buycard {
    border-radius: var(--haper-radius-xl);
  }

  .haper-product-main-panel {
    padding: 12px;
  }

  .haper-product-gallery {
    max-width: 340px;
  }

  .haper-product-actions-bar {
    gap: 8px;
  }

  .haper-actions-bar__divider {
    display: none;
  }

  .haper-product-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .haper-product-variation-group {
    grid-template-columns: 1fr;
  }

  .haper-volume-pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .haper-product-buycard {
    padding: 22px 18px;
  }

  .haper-buycard-actions {
    align-items: stretch;
  }

  .haper-quantity-control {
    flex: 0 0 auto;
  }

  .haper-related-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Haper Product Archive & Category Page Styling
   ========================================================================== */

.haper-product-archive-page {
  padding-top: 24px;
  padding-bottom: 60px;
}

/* Sorting & Header Bar */
.haper-archive-sorting-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.haper-sorting-bar__right {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 12px;
  position: relative;
}

.haper-archive-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--haper-navy-5);
  margin: 0;
}

.haper-archive-title-accent {
  display: inline-block;
  width: 60px;
  height: 15px;
  opacity: 0.7;
}

.haper-sorting-bar__left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.haper-sorting-label {
  font-weight: 700;
  color: var(--haper-navy-5);
}

.haper-sorting-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
}

.haper-sort-tab {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--haper-navy-3);
  text-decoration: none;
  transition: color var(--haper-transition-fast);
  display: flex;
  align-items: center;
  gap: 4px;
}

.haper-sort-tab:hover,
.haper-sort-tab.is-active {
  color: #be9643;
  font-weight: 500;
}

.haper-sort-tab__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--haper-gold-5);
}

/* 2-Column Archive Layout */
.haper-archive-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

/* Sidebar Widgets */
.haper-filter-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.haper-sidebar-filter-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.haper-widget {
  background: #ffffff;
  border: 1px solid var(--haper-gold-1-5);
  border-radius: var(--haper-radius-xl);
  padding: 24px;
  box-shadow: var(--haper-shadow-sm);
}

.haper-widget__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--haper-navy-5);
  margin: 0 0 16px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--haper-gold-1-5);
}

/* Search Widget Input */
.haper-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.haper-search-input {
  width: 100%;
  border: 1px solid var(--haper-gold-1-5);
  border-radius: var(--haper-radius-md);
  padding: 10px 40px 10px 14px;
  font-size: 13px;
  color: var(--haper-navy-5);
  outline: none;
  transition: border-color var(--haper-transition-fast);
}

.haper-search-input:focus {
  border-color: var(--haper-gold-5);
}

.haper-search-submit {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--haper-navy-3);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

/* Price Box */
.haper-price-inputs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--haper-gold-0-5);
  border: 1px solid var(--haper-gold-1-5);
  border-radius: var(--haper-radius-md);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--haper-navy-5);
  margin-bottom: 16px;
}

.haper-price-field {
  display: flex;
  gap: 4px;
}

.haper-price-unit {
  color: var(--haper-navy-2);
  font-weight: normal;
}

/* Toggle Switches */
.haper-toggles-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.haper-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 13px;
  color: var(--haper-navy-5);
  font-weight: 600;
}

.haper-toggle-input {
  display: none;
}

.haper-toggle-switch {
  position: relative;
  width: 36px;
  height: 20px;
  background: var(--haper-navy-1);
  border-radius: var(--haper-radius-full);
  transition: background 200ms ease;
}

.haper-toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 200ms ease;
}

.haper-toggle-input:checked + .haper-toggle-switch {
  background: var(--haper-gold-5);
}

.haper-toggle-input:checked + .haper-toggle-switch::after {
  transform: translateX(16px);
}

/* Checkboxes List */
.haper-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.haper-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--haper-navy-5);
}

.haper-checkbox-row input {
  display: none;
}

.haper-custom-checkbox {
  width: 20px;
  height: 20px;
  border: 1px solid var(--haper-gold-1-5);
  border-radius: var(--haper-radius-sm);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 150ms ease;
}

.haper-checkbox-row input:checked + .haper-custom-checkbox {
  background: var(--haper-gold-5);
  border-color: var(--haper-gold-5);
}

.haper-checkbox-row input:checked + .haper-custom-checkbox::after {
  content: "✓";
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
}

/* Product Grid Layout */
.haper-archive-products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* --------------------------------------------------------------------------
   Archive Product Card — Figma Group 345285
   -------------------------------------------------------------------------- */
.haper-product-card--archive {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 240 / 391;
  padding: 17px 14px 13px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-image: url("assets/img/product-card/product-card-bg.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  isolation: isolate;
  box-sizing: border-box;
}

.haper-product-card--archive:hover {
  transform: translateY(-3px);
  box-shadow: none;
}

.haper-product-card--archive .haper-product-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  direction: ltr;
}

.haper-product-card--archive .haper-product-card__gender {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 0;
  background: transparent;
  color: var(--haper-gold-6, #ad9156);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  text-transform: lowercase;
  direction: ltr;
}

.haper-product-card--archive .haper-product-card__gender-icon {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: contain;
}

.haper-product-card--archive .haper-product-card__gender-label {
  display: inline-block;
  padding-top: 1px;
  white-space: nowrap;
}

.haper-product-card--archive .haper-product-card__wishlist {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 3px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #b6c5d6;
  cursor: pointer;
  margin-left: auto;
  transition:
    transform var(--haper-transition-fast),
    color var(--haper-transition-fast);
}

.haper-product-card--archive .haper-product-card__wishlist:hover,
.haper-product-card--archive .haper-product-card__wishlist.is-active {
  transform: scale(1.06);
  color: var(--haper-gold-5, #d4b26a);
}

.haper-product-card--archive .haper-product-card__wishlist.is-active path {
  fill: var(--haper-gold-5, #d4b26a);
}

.haper-product-card--archive .haper-product-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 150px;
  margin: 3px 0 5px;
  padding: 0 18px;
  box-sizing: border-box;
  text-decoration: none;
}

.haper-product-card--archive .haper-product-card__image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 142px;
  object-fit: contain;
}

.haper-product-card--archive .haper-product-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.haper-product-card--archive .haper-product-card__pills {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  direction: rtl;
}

.haper-product-card--archive .haper-product-card__pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--haper-navy-4, #35445a);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
}

.haper-product-card--archive .haper-product-card__pill svg {
  flex: 0 0 auto;
  color: var(--haper-gold-5, #d4b26a);
}

.haper-product-card--archive .haper-product-card__title {
  min-height: 52px;
  margin: 0 0 7px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.85;
  text-align: right;
  direction: rtl;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.haper-product-card--archive .haper-product-card__title a {
  color: var(--haper-navy-4, #35445a);
  text-decoration: none;
}

.haper-product-card--archive .haper-product-card__commerce {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  direction: rtl;
}

.haper-product-card--archive .haper-product-card__prices {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  direction: ltr;
}

.haper-product-card--archive .haper-product-card__regular-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 18px;
  direction: rtl;
}

.haper-product-card--archive .haper-product-card__discount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 20px;
  padding: 0 5px;
  border-radius: 7px;
  background: var(--haper-gold-5, #d4b26a);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.haper-product-card--archive .haper-product-card__reg {
  color: var(--haper-navy-1, #889cb9);
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  text-decoration: line-through;
}

.haper-product-card--archive .haper-product-card__sale-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  direction: rtl;
}

.haper-product-card--archive .haper-product-card__currency {
  color: var(--haper-navy-4, #35445a);
  font-size: 11px;
  font-weight: 400;
  white-space: nowrap;
}

.haper-product-card--archive .haper-product-card__sale {
  color: var(--haper-gold-6, #ad9156);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.haper-product-card--archive .haper-product-card__purchase-actions {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  direction: ltr;
}

.haper-product-card--archive .haper-product-card__credit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-width: 48px;
}

.haper-product-card--archive .haper-product-card__credit-image {
  display: block;
  width: auto;
  max-width: 48px;
  height: 28px;
  object-fit: contain;
}

.haper-product-card--archive .haper-product-card__credit-label {
  color: var(--haper-navy-1, #889cb9);
  font-size: 9px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  direction: rtl;
}

.haper-product-card--archive .haper-product-card__add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  padding: 0;
  border: 0;
  border-radius: 15px;
  background: #d9e3ee;
  color: var(--haper-navy-1, #889cb9);
  box-shadow: none;
  text-decoration: none;
  transition:
    transform var(--haper-transition-fast),
    background var(--haper-transition-fast),
    color var(--haper-transition-fast);
}

.haper-product-card--archive .haper-product-card__add-btn:hover,
.haper-product-card--archive .haper-product-card__add-btn:focus-visible {
  transform: translateY(-1px);
  background: #cbd8e6;
  color: var(--haper-navy-4, #35445a);
}

.haper-product-card--archive .haper-product-card__stock-progress {
  position: relative;
  width: calc(100% - 24px);
  height: 6px;
  margin: 11px auto 0;
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
  direction: ltr;
}

.haper-product-card--archive .haper-product-card__stock-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--haper-gold-5, #d4b26a);
  transition: width 250ms ease-in-out;
}

/* Pagination */
.haper-pagination-container {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.haper-pagination-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.haper-pagination-item a,
.haper-pagination-item span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--haper-radius-md);
  border: 1px solid var(--haper-gold-1-5);
  background: #ffffff;
  color: var(--haper-navy-5);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--haper-transition-fast);
}

.haper-pagination-item a:hover,
.haper-pagination-item.is-active span,
.haper-pagination-item span.current {
  background: var(--haper-navy-5);
  border-color: var(--haper-navy-5);
  color: #ffffff;
}

.haper-pag-arrow {
  font-size: 16px;
}

/* Responsive Archive Breakpoints */
@media screen and (max-width: 1200px) {
  .haper-archive-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 992px) {
  .haper-archive-layout {
    grid-template-columns: 1fr;
  }
  .haper-archive-sidebar {
    order: 2;
  }
  .haper-archive-main {
    order: 1;
  }
}

@media screen and (max-width: 768px) {
  .haper-archive-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .haper-sorting-tabs {
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media screen and (max-width: 480px) {
  .haper-archive-products-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   WooCommerce My Account Panel Styles
   ========================================================================== */

.haper-woo-account-page {
  max-width: var(--haper-container-fluid, 1440px);
  margin: 0 auto;
  padding: 24px 20px 80px;
}

/* Breadcrumb */
.haper-account-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 15px;
  font-family: inherit;
}

.haper-account-breadcrumb-home {
  color: #748397;
  text-decoration: none;
  transition: color var(--haper-transition-fast);
}

.haper-account-breadcrumb-home:hover {
  color: var(--haper-gold-5);
}

.haper-account-breadcrumb-sep {
  display: inline-flex;
  align-items: center;
  color: #be9643;
}

.haper-account-breadcrumb-current {
  color: #be9643;
  font-weight: 500;
}

/* Grand Navy Panel Card */
.haper-woo-panel {
  background-color: #19273b;
  background-image: url("assets/img/woo-panel-bg.svg");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% 100%;
  border-radius: 40px;
  padding: 36px 36px 48px;
  box-shadow: 0 16px 40px rgba(25, 39, 59, 0.12);
  position: relative;
  min-height: 710px;
}

/* Header with Brand Emblem */
.haper-woo-panel-header {
  display: flex;
  justify-content: flex-end; /* In RTL: top-right */
  align-items: center;
  margin-bottom: 24px;
  padding: 0 8px;
}

.haper-woo-panel-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.haper-woo-panel-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.haper-woo-panel-brand-title {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.haper-woo-panel-flourish {
  display: flex;
  align-items: center;
  height: 10px;
}

.haper-woo-panel-brand-logo {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.haper-woo-panel-brand-logo img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Panel Body Grid */
.haper-woo-panel-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

/* Sidebar Navigation */
.woocommerce-MyAccount-navigation {
  width: 100%;
  float: none; /* Override default WooCommerce float */
}

.haper-account-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.haper-account-nav-item {
  background: rgba(116, 131, 151, 0.4);
  border-radius: 12px;
  transition: all var(--haper-transition-fast);
  overflow: hidden;
}

.haper-account-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--haper-transition-fast);
}

.haper-account-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: inherit;
}

.haper-account-nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.haper-account-nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Active Nav Item */
.haper-account-nav-item.is-active {
  background: var(--haper-gold-5, #d4b26a);
  box-shadow: 0 4px 14px rgba(212, 178, 106, 0.35);
}

.haper-account-nav-item.is-active .haper-account-nav-link {
  color: #ffffff;
  font-weight: 600;
}

/* Hover Nav Item */
.haper-account-nav-item:hover:not(.is-active) {
  background: rgba(212, 178, 106, 0.4);
}

.haper-account-nav-item:hover:not(.is-active) .haper-account-nav-link {
  color: #ffffff;
}

/* Main Account Content Card */
.woocommerce-MyAccount-content {
  background: #f0f6fd;
  border-radius: 32px;
  padding: 32px;
  min-height: 580px;
  float: none; /* Override default WooCommerce float */
  width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   Dashboard Components
   ========================================================================== */

/* 1. Profile Header Card */
.haper-woo-profile-card {
  background: #f0f6fd;
  border: 1px solid #b6c5d6;
  border-radius: 24px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 20px;
}

.haper-woo-profile-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.haper-woo-avatar-box {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  border: 1px solid #b6c5d6;
  background: #f0f6fd;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.haper-woo-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.haper-woo-profile-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.haper-woo-profile-name {
  font-size: 18px;
  font-weight: 600;
  color: #4e5364;
  margin: 0;
  line-height: 1.4;
}

.haper-woo-profile-welcome {
  font-size: 15px;
  color: #748397;
  margin: 0;
  line-height: 1.4;
}

.haper-woo-profile-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.haper-woo-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #748397;
  position: relative;
  transition: all var(--haper-transition-fast);
}

.haper-woo-action-btn:hover {
  color: var(--haper-gold-5);
}

.haper-woo-action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.haper-woo-action-badge {
  font-family: inherit;
  font-size: 20px;
  font-weight: 800;
  color: #ff9800;
  line-height: 1;
}

/* 2. Order Status Cards Row */
.haper-woo-order-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.haper-woo-status-card {
  background: rgba(217, 226, 236, 0.5);
  border-radius: 20px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: #35445a;
  transition: all var(--haper-transition-fast);
}

.haper-woo-status-card:hover {
  background: rgba(217, 226, 236, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(25, 39, 59, 0.06);
}

.haper-woo-status-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: #d9e3ee;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.haper-woo-status-info {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.haper-woo-status-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(212, 178, 106, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.haper-woo-status-dot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--haper-gold-5, #d4b26a);
}

.haper-woo-status-title {
  font-size: 14px;
  font-weight: 500;
  color: #35445a;
}

.haper-woo-status-count {
  font-size: 13px;
  color: #748397;
  font-weight: 600;
}

/* 3. Personal Information Card */
.haper-woo-personal-info-card {
  background: rgba(217, 226, 236, 0.5);
  border-radius: 24px;
  padding: 24px 28px;
}

.haper-woo-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.haper-woo-info-heading {
  font-size: 18px;
  font-weight: 600;
  color: #00142f;
  margin: 0;
}

.haper-woo-info-edit-btn {
  background: var(--haper-gold-5, #d4b26a);
  color: #ffffff;
  border-radius: 10px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--haper-transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.haper-woo-info-edit-btn:hover {
  background: var(--haper-gold-6, #ad9156);
  color: #ffffff;
}

.haper-woo-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 24px;
}

.haper-woo-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.haper-woo-field-label {
  font-size: 14px;
  font-weight: 500;
  color: #35445a;
  margin: 0;
}

.haper-woo-field-box {
  background: #f0f6fd;
  border-radius: 14px;
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #35445a;
  font-size: 15px;
  border: 1px solid rgba(182, 197, 214, 0.35);
}

/* ==========================================================================
   Inner Account Pages: Orders Table, Addresses, Edit Account Forms
   ========================================================================== */

.haper-woo-content-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--haper-navy-5, #19273b);
  margin-top: 0;
  margin-bottom: 24px;
}

/* Orders Table */
.woocommerce-orders-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(182, 197, 214, 0.5);
  margin-bottom: 24px;
}

.woocommerce-orders-table th {
  background: rgba(217, 226, 236, 0.5);
  color: #19273b;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  border: none;
}

.woocommerce-orders-table td {
  padding: 16px 18px;
  color: #35445a;
  font-size: 14px;
  border-top: 1px solid rgba(182, 197, 214, 0.3);
  text-align: right;
  vertical-align: middle;
}

.haper-woo-order-link {
  color: var(--haper-navy-5);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--haper-transition-fast);
}

.haper-woo-order-link:hover {
  color: var(--haper-gold-5);
}

/* Order Status Badges */
.haper-order-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.haper-order-status-badge.status-completed {
  background: rgba(46, 125, 50, 0.12);
  color: #2e7d32;
}

.haper-order-status-badge.status-processing {
  background: rgba(25, 118, 210, 0.12);
  color: #1976d2;
}

.haper-order-status-badge.status-on-hold {
  background: rgba(239, 108, 0, 0.12);
  color: #ef6c00;
}

.haper-order-status-badge.status-cancelled,
.haper-order-status-badge.status-refunded,
.haper-order-status-badge.status-failed {
  background: rgba(198, 40, 40, 0.12);
  color: #c62828;
}

/* Action Button */
.woocommerce-orders-table .woocommerce-button,
.woocommerce-MyAccount-content a.button,
.woocommerce-MyAccount-content button.button {
  background: var(--haper-gold-5, #d4b26a);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--haper-transition-fast);
}

.woocommerce-orders-table .woocommerce-button:hover,
.woocommerce-MyAccount-content a.button:hover,
.woocommerce-MyAccount-content button.button:hover {
  background: var(--haper-gold-6, #ad9156);
  color: #ffffff;
}

/* Empty state */
.haper-woo-empty-state {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 24px;
  text-align: center;
  border: 1px solid rgba(182, 197, 214, 0.4);
}

.haper-woo-empty-state p {
  font-size: 16px;
  color: #51617a;
  margin-bottom: 20px;
}

/* Forms in Account */
.woocommerce-MyAccount-content form {
  background: #ffffff;
  border-radius: 24px;
  padding: 28px 32px;
  border: 1px solid rgba(182, 197, 214, 0.4);
}

.woocommerce-MyAccount-content .form-row {
  margin-bottom: 18px;
}

.woocommerce-MyAccount-content .form-row label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #35445a;
  margin-bottom: 6px;
}

.woocommerce-MyAccount-content .form-row input.input-text,
.woocommerce-MyAccount-content .form-row select,
.woocommerce-MyAccount-content .form-row textarea {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid #b6c5d6;
  background: #f0f6fd;
  padding: 0 16px;
  font-size: 14px;
  color: #35445a;
  outline: none;
  transition: border-color var(--haper-transition-fast);
  box-sizing: border-box;
}

.woocommerce-MyAccount-content .form-row textarea {
  height: 100px;
  padding: 12px 16px;
}

.woocommerce-MyAccount-content .form-row input.input-text:focus,
.woocommerce-MyAccount-content .form-row select:focus,
.woocommerce-MyAccount-content .form-row textarea:focus {
  border-color: var(--haper-gold-5);
  background: #ffffff;
}

/* Addresses Grid */
.woocommerce-Addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 16px;
}

.woocommerce-Address {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(182, 197, 214, 0.4);
}

.woocommerce-Address .title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.woocommerce-Address .title h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--haper-navy-5);
  margin: 0;
}

.woocommerce-Address .edit {
  color: var(--haper-gold-5);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.woocommerce-Address address {
  font-style: normal;
  line-height: 1.8;
  color: #51617a;
  font-size: 14px;
}

/* ==========================================================================
   Login / Registration Card Styles (Unauthenticated)
   ========================================================================== */

.haper-woo-auth-page {
  max-width: 1000px;
  margin: 0 auto;
}

.haper-woo-auth-card {
  background: #19273b;
  border-radius: 36px;
  padding: 40px;
  box-shadow: 0 16px 40px rgba(25, 39, 59, 0.12);
}

.haper-woo-auth-header {
  text-align: center;
  margin-bottom: 36px;
}

.haper-woo-auth-logo {
  margin-bottom: 12px;
}

.haper-woo-auth-brand-title {
  font-size: 24px;
  color: #ffffff;
  margin: 0 0 8px;
}

.haper-woo-auth-tagline {
  font-size: 14px;
  color: #889cb9;
  margin: 0;
}

.haper-woo-auth-forms-wrap {
  display: grid;
  gap: 28px;
}

.haper-woo-auth-forms-wrap.has-registration {
  grid-template-columns: 1fr 1fr;
}

.haper-woo-auth-forms-wrap.login-only {
  grid-template-columns: 1fr;
  max-width: 480px;
  margin: 0 auto;
}

.haper-woo-auth-col {
  background: #f0f6fd;
  border-radius: 24px;
  padding: 28px;
}

.haper-woo-auth-form-title {
  font-size: 17px;
  font-weight: 600;
  color: #00142f;
  margin: 0 0 20px;
  text-align: center;
}

.haper-woo-auth-col .woocommerce-form {
  background: transparent;
  border: none;
  padding: 0;
}

.haper-woo-auth-col .woocommerce-form-row {
  margin-bottom: 16px;
}

.haper-woo-auth-col label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #35445a;
  margin-bottom: 6px;
}

.haper-woo-auth-col input.input-text {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid #b6c5d6;
  background: #ffffff;
  padding: 0 14px;
  font-size: 14px;
  box-sizing: border-box;
}

.haper-woo-form-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 13px;
}

.haper-woo-form-footer-row a {
  color: var(--haper-gold-7, #867042);
  text-decoration: none;
}

.form-row-submit button {
  width: 100%;
  height: 46px;
  background: var(--haper-gold-5, #d4b26a);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--haper-transition-fast);
}

.form-row-submit button:hover {
  background: var(--haper-gold-6, #ad9156);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media screen and (max-width: 1200px) {
  .haper-woo-panel {
    background-size: cover;
    padding: 28px 24px 36px;
  }
  .haper-woo-order-status-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .haper-woo-status-card {
    padding: 12px 14px;
  }
  .haper-woo-status-icon-box {
    width: 50px;
    height: 50px;
  }
}

@media screen and (max-width: 992px) {
  .haper-woo-panel-body {
    grid-template-columns: 1fr;
  }

  .haper-account-nav-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
  }

  .haper-woo-auth-forms-wrap.has-registration {
    grid-template-columns: 1fr;
  }

  .woocommerce-Addresses {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  .haper-woo-account-page {
    padding: 16px 12px 60px;
  }

  .haper-woo-panel {
    border-radius: 24px;
    padding: 20px 16px 28px;
    background: #19273b; /* Fallback without SVG distortion on small screens */
  }

  .haper-woo-panel-header {
    justify-content: center;
  }

  .haper-woo-panel-brand {
    flex-direction: row-reverse;
  }

  .woocommerce-MyAccount-content {
    border-radius: 20px;
    padding: 20px 16px;
  }

  .haper-woo-profile-card {
    flex-direction: column;
    text-align: center;
    padding: 18px 16px;
  }

  .haper-woo-profile-info {
    flex-direction: column;
  }

  .haper-woo-profile-actions {
    justify-content: center;
  }

  .haper-woo-order-status-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .haper-woo-info-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media screen and (max-width: 480px) {
  .haper-account-nav-list {
    grid-template-columns: 1fr;
  }

  .haper-account-breadcrumb {
    font-size: 13px;
  }

  .haper-woo-panel-brand-title {
    font-size: 19px;
  }
}

/* ==========================================================================
   Haper Luxury Cart Page Override (Figma Node 321:3307)
   ========================================================================== */

.haper-cart-page {
  max-width: 1296px;
  margin: 0 auto;
  padding: 40px 16px 80px;
  box-sizing: border-box;
  direction: rtl;
}

/* --- Header / Breadcrumbs & Title --- */
.haper-cart-header {
  margin-bottom: 32px;
}

.haper-cart-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  font-size: 16px;
  margin-bottom: 20px;
}

.haper-cart-breadcrumb-home {
  color: #748397;
  text-decoration: none;
  transition: color var(--haper-transition-fast);
}

.haper-cart-breadcrumb-home:hover {
  color: #be9643;
}

.haper-cart-breadcrumb-sep {
  display: inline-flex;
  align-items: center;
  transform: rotate(180deg);
}

.haper-cart-breadcrumb-current {
  color: #be9643;
  font-weight: 500;
}

.haper-cart-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.haper-cart-title {
  font-family: "Doran FaNum", sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #00142f;
  margin: 0;
  line-height: 1.2;
}

.haper-cart-flourish {
  display: inline-flex;
  align-items: center;
}

.haper-cart-flourish svg {
  display: block;
}

/* --- Main Layout Grid --- */
.haper-cart-layout {
  display: grid;
  grid-template-columns: 1fr 392px;
  gap: 24px;
  align-items: start;
}

/* --- Right Column: Items Box --- */
.haper-cart-items-col {
  background: rgba(217, 226, 236, 0.5);
  border-radius: 30px;
  padding: 24px;
  box-sizing: border-box;
}

.haper-cart-items-col .woocommerce-cart-form {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.haper-cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Product Card */
.haper-cart-item-card {
  background: #ffffff;
  border: 1px solid #b6c5d6;
  border-radius: 16px;
  min-height: 96px;
  padding: 14px 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition:
    border-color var(--haper-transition-fast),
    box-shadow var(--haper-transition-fast);
}

.haper-cart-item-card:hover {
  border-color: #be9643;
  box-shadow: 0 4px 16px rgba(25, 39, 59, 0.05);
}

/* 1. Product Thumbnail & Title */
.haper-cart-item-product {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1.2;
  min-width: 0;
}

.haper-cart-item-thumbnail {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbf7f0;
}

.haper-cart-item-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.haper-cart-item-name-wrap {
  flex: 1;
  min-width: 0;
}

.haper-cart-product-title {
  font-size: 14px;
  font-weight: 500;
  color: #35445a;
  line-height: 1.8;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--haper-transition-fast);
}

.haper-cart-product-title:hover {
  color: #be9643;
}

/* Vertical Column Divider */
.haper-cart-col-divider {
  width: 1px;
  height: 64px;
  background: #d9e2ec;
  flex-shrink: 0;
}

/* 2. Unit Price */
.haper-cart-item-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 90px;
  text-align: right;
}

.haper-cart-item-heading {
  color: var(--COLOR-PRIMARY, #35445a);
  text-align: right;

  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 180%; /* 28.8px */
}

.haper-cart-item-price-val {
  font-size: 14px;
  color: #748397;
  line-height: 1.8;
  width: 100%;
  text-align: left;
}

.haper-cart-item-price-val .woocommerce-Price-amount {
  font-weight: 500;
}

.haper-cart-item-price-val .woocommerce-Price-currencySymbol {
  margin-right: 3px;
  font-size: 13px;
}

/* 3. Quantity Control */
.haper-cart-item-quantity {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
}

.haper-qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.haper-qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #b6c5d6;
  border-radius: 8px;
  background: transparent;
  color: #748397;
  font-size: 20px;
  font-family: "Vazirmatn", sans-serif;
  font-weight: normal;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all var(--haper-transition-fast);
}

.haper-qty-btn:hover {
  border-color: #be9643;
  color: #be9643;
  background: #ffffff;
}

.haper-qty-input {
  width: 34px;
  height: 32px;
  border: none !important;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  color: #748397;
  text-align: center;
  padding: 0;
  margin: 0;
  outline: none;
  -moz-appearance: textfield;
}

.haper-qty-input::-webkit-outer-spin-button,
.haper-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* 4. Subtotal (قیمت کل) */
.haper-cart-item-subtotal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 90px;
  text-align: right;
}

/* 5. Remove Button Pill */
.haper-cart-item-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.haper-cart-remove-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 5px 6px 5px 12px;
  border-radius: 14px;
  background: #d9e3ee;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--haper-transition-fast);
  box-sizing: border-box;
}

.haper-cart-remove-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.haper-cart-remove-icon svg {
  display: block;
}

.haper-cart-remove-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 63px;
  height: 30px;
  border-radius: 8px;
  background: #b6c5d6;
  transition: background var(--haper-transition-fast);
}

.haper-cart-remove-label {
  font-family: "Doran FaNum", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #35445a;
  line-height: 1;
  transition: color var(--haper-transition-fast);
}

.haper-cart-remove-pill:hover {
  background: #c8d5e4;
}

.haper-cart-remove-pill:hover .haper-cart-remove-inner {
  background: #df6464;
}

.haper-cart-remove-pill:hover .haper-cart-remove-label {
  color: #ffffff;
}

/* Cart Actions Row (Update Cart Button) */
.haper-cart-actions-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 16px;
}

.haper-cart-update-btn {
  height: 40px;
  padding: 0 24px;
  border: none;
  border-radius: 14px;
  background: #d9e3ee;
  font-family: "Doran FaNum", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #35445a;
  cursor: pointer;
  transition: all var(--haper-transition-fast);
}

.haper-cart-update-btn:hover {
  background: #b6c5d6;
  color: #19273b;
}

/* --- Left Column: Collaterals (Coupon & Totals) --- */
.haper-cart-collaterals-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 392px;
}

/* Coupon Box */
.haper-cart-coupon-box {
  background: rgba(217, 226, 236, 0.5);
  border-radius: 16px;
  padding: 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.haper-cart-coupon-input-wrap {
  width: 100%;
}

.haper-cart-coupon-input {
  width: 100%;
  height: 40px;
  border-radius: 14px !important;
  background: #f0f6fd;
  border: 1px solid transparent;
  padding: 16px 13px !important;
  font-size: 16px;
  color: #35445a;
  box-sizing: border-box;
  outline: none;
  transition:
    border-color var(--haper-transition-fast),
    box-shadow var(--haper-transition-fast);
}

.haper-cart-coupon-input:focus {
  border-color: #be9643;
  box-shadow: 0 0 0 2px rgba(190, 150, 67, 0.15);
}

.haper-cart-coupon-input::placeholder {
  color: #b6c5d6;
}

.haper-cart-coupon-btn {
  align-self: flex-end;
  height: 40px;
  padding: 0 20px;
  border: none;
  border-radius: 14px;
  background: #d9e3ee;
  font-family: "Doran FaNum", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #35445a;
  cursor: pointer;
  transition: all var(--haper-transition-fast);
}

.haper-cart-coupon-btn:hover {
  background: #b6c5d6;
  color: #19273b;
}

/* Totals Box */
.cart_totals {
  margin: 0;
  padding: 0;
}

.cart_totals > h2 {
  display: none;
}

.haper-cart-totals-card {
  background: rgba(217, 226, 236, 0.5);
  border-radius: 16px;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.haper-cart-totals-table {
  width: 100%;
  border-collapse: collapse;
  border: none;
  margin: 0;
}

.haper-cart-totals-table tr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border: none;
  background: transparent;
}

.haper-cart-totals-table th {
  font-size: 16px;
  font-weight: 400;
  color: #748397;
  padding: 0;
  border: none;
  text-align: right;
}

.haper-cart-totals-table td {
  font-size: 18px;
  font-weight: 500;
  color: #4e5364;
  padding: 0;
  border: none;
  text-align: left;
}

.haper-cart-totals-table tr.shipping {
  flex-direction: column;
  align-items: stretch;
}

.haper-cart-totals-table tr.shipping > th {
  margin-bottom: 6px;
}

.haper-cart-totals-table tr.shipping > td {
  font-size: 14px;
  color: #748397;
  text-align: right;
}

.haper-cart-totals-table .woocommerce-shipping-destination {
  font-size: 14px;
  color: #748397;
  margin: 4px 0 0;
  text-align: right;
}

.haper-cart-totals-table .shipping-calculator-button {
  color: #be9643;
  text-decoration: none;
  font-size: 14px;
  margin-right: 6px;
  font-weight: 500;
}

.haper-cart-totals-table .shipping-calculator-button:hover {
  text-decoration: underline;
}

.haper-cart-totals-table .shipping-calculator-form {
  margin-top: 10px;
  width: 100%;
}

.haper-cart-totals-divider-row {
  padding: 4px 0 !important;
}

.haper-cart-totals-divider-row td {
  width: 100%;
}

.haper-cart-totals-divider {
  height: 1px;
  background: #b6c5d6;
  width: 100%;
}

.haper-cart-order-total-row {
  padding: 8px 0 !important;
}

.haper-cart-order-total-row td {
  width: 100%;
}

.haper-cart-total-pill {
  background: #f0f6fd;
  border-radius: 14px;
  height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  width: 100%;
  box-sizing: border-box;
}

.haper-cart-total-label {
  font-size: 16px;
  color: #748397;
}

.haper-cart-total-value {
  font-size: 18px;
  font-weight: 600;
  color: #be9643;
}

.haper-proceed-to-checkout {
  margin-top: 4px;
  display: flex;
  justify-content: center;
  flex-direction: column-reverse;
  align-items: center;
}

.button.pre-invoice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  width: 193px !important;
  padding: 5px 6px 5px 12px;
  border-radius: 14px;
  background: #b6c5d6;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--haper-transition-fast);
  box-sizing: border-box;
  color: #fff;
  font-family: "DoranFaNum";
}

ul#shipping_method {
  gap: 10px;
  display: flex;
  flex-direction: column;
  list-style: none !important;
  padding: unset !important;
  margin: unset !important;
}

/* --- Proceed to Checkout Button (Primary Gold Pill) --- */
.woocommerce a.button.haper-cart-checkout-btn,
a.button.haper-cart-checkout-btn,
.haper-cart-checkout-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 193px !important;
  height: 40px !important;
  padding: 5px 6px !important;
  margin: 0 auto !important;
  border-radius: 14px !important;
  background-color: var(--haper-gold-5, #d4b26a) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  cursor: pointer !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(212, 178, 106, 0.35) !important;
  transition:
    background-color var(--haper-transition-fast),
    transform var(--haper-transition-fast),
    box-shadow var(--haper-transition-fast) !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
}

.woocommerce a.button.haper-cart-checkout-btn:hover,
a.button.haper-cart-checkout-btn:hover,
.haper-cart-checkout-btn:hover,
.haper-cart-checkout-btn:focus-visible {
  background-color: var(--haper-gold-6, #ad9156) !important;
  box-shadow: 0 4px 16px rgba(212, 178, 106, 0.45) !important;
  transform: translateY(-1px) !important;
  color: #ffffff !important;
}

.haper-cart-checkout-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 155px !important;
  height: 30px !important;
  border-radius: 8px !important;
  background-color: rgba(190, 150, 67, 0.6) !important;
  flex-shrink: 0 !important;
  transition: background-color var(--haper-transition-fast) !important;
}

.haper-cart-checkout-label {
  font-family: "Doran FaNum", sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  text-align: center !important;
}

.haper-cart-checkout-btn:hover .haper-cart-checkout-inner {
  background-color: rgba(160, 120, 45, 0.75) !important;
}

.haper-cart-checkout-btn:hover .haper-cart-checkout-label {
  color: #ffffff !important;
}

.haper-cart-checkout-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0 !important;
  color: #ffffff !important;
}

.haper-cart-checkout-icon svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
}

.haper-cart-checkout-icon svg path {
  fill: currentColor !important;
  stroke: none !important;
  transition: all var(--haper-transition-fast) !important;
}

.haper-cart-checkout-btn:hover .haper-cart-checkout-icon svg path {
  fill: currentColor !important;
  stroke: none !important;
}

/* --- Empty Cart State --- */
.haper-cart-empty-page {
  text-align: center;
}

.haper-cart-empty-card {
  background: rgba(217, 226, 236, 0.5);
  border-radius: 30px;
  padding: 60px 24px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-sizing: border-box;
}

.haper-cart-empty-icon {
  display: flex;
  justify-content: center;
}

.haper-cart-empty-card .cart-empty {
  font-size: 18px;
  color: #35445a;
  font-weight: 500;
  margin: 0;
}

.haper-cart-empty-card .return-to-shop {
  margin: 8px 0 0;
  display: flex;
  justify-content: center;
}

/* --- Empty Cart Return Button (Primary Gold Pill) --- */
.woocommerce a.button.haper-cart-return-btn,
a.button.haper-cart-return-btn,
.haper-cart-return-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 193px !important;
  height: 40px !important;
  padding: 5px 6px !important;
  margin: 0 auto !important;
  border-radius: 14px !important;
  background-color: var(--haper-gold-5, #d4b26a) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  cursor: pointer !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(212, 178, 106, 0.35) !important;
  transition:
    background-color var(--haper-transition-fast),
    transform var(--haper-transition-fast),
    box-shadow var(--haper-transition-fast) !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
}

.woocommerce a.button.haper-cart-return-btn:hover,
a.button.haper-cart-return-btn:hover,
.haper-cart-return-btn:hover,
.haper-cart-return-btn:focus-visible {
  background-color: var(--haper-gold-6, #ad9156) !important;
  box-shadow: 0 4px 16px rgba(212, 178, 106, 0.45) !important;
  transform: translateY(-1px) !important;
  color: #ffffff !important;
}

.haper-cart-return-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 155px !important;
  height: 30px !important;
  border-radius: 8px !important;
  background-color: rgba(190, 150, 67, 0.6) !important;
  flex-shrink: 0 !important;
  transition: background-color var(--haper-transition-fast) !important;
}

.haper-cart-return-label {
  font-family: "Doran FaNum", sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  text-align: center !important;
}

.haper-cart-return-btn:hover .haper-cart-return-inner {
  background-color: rgba(160, 120, 45, 0.75) !important;
}

.haper-cart-return-btn:hover .haper-cart-return-label {
  color: #ffffff !important;
}

.haper-cart-return-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0 !important;
  color: #ffffff !important;
}

.haper-cart-return-icon svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
}

.haper-cart-return-icon svg path {
  fill: currentColor !important;
  stroke: none !important;
  transition: all var(--haper-transition-fast) !important;
}

.haper-cart-return-btn:hover .haper-cart-return-icon svg path {
  fill: currentColor !important;
  stroke: none !important;
}

/* ==========================================================================
   Cart Responsive Breakpoints
   ========================================================================== */

@media screen and (max-width: 1200px) {
  .haper-cart-layout {
    grid-template-columns: 1fr 340px;
    gap: 20px;
  }

  .haper-cart-collaterals-col {
    width: 100%;
  }

  .haper-cart-item-card {
    padding: 12px 14px;
  }
}

@media screen and (max-width: 992px) {
  .haper-cart-layout {
    grid-template-columns: 1fr;
  }

  .haper-cart-collaterals-col {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media screen and (max-width: 768px) {
  .haper-cart-items-col {
    border-radius: 20px;
    padding: 16px;
  }

  .haper-cart-item-card {
    flex-wrap: wrap;
    height: auto;
    min-height: unset;
    padding: 16px;
    gap: 14px;
  }

  .haper-cart-col-divider {
    display: none;
  }

  .haper-cart-item-product {
    width: 100%;
    flex: unset;
  }

  .haper-cart-item-price,
  .haper-cart-item-quantity,
  .haper-cart-item-subtotal,
  .haper-cart-item-remove {
    flex: 1 1 40%;
    min-width: 120px;
  }

  .haper-cart-actions-row {
    justify-content: center;
  }

  .haper-cart-update-btn {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .haper-cart-page {
    padding: 24px 12px 60px;
  }

  .haper-cart-title {
    font-size: 18px;
  }

  .haper-cart-item-card {
    flex-direction: column;
    align-items: stretch;
  }

  .haper-cart-item-price,
  .haper-cart-item-quantity,
  .haper-cart-item-subtotal {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }

  .haper-cart-item-remove {
    width: 100%;
  }

  .haper-cart-remove-pill {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Haper Luxury Checkout Page Override (Figma Node 321:3181)
   ========================================================================== */

.haper-checkout-page {
  max-width: 1296px;
  margin: 0 auto;
  padding: 40px 16px 80px;
  box-sizing: border-box;
  direction: rtl;
}

/* --- Header / Breadcrumbs & Title --- */
.haper-checkout-header {
  margin-bottom: 32px;
}

.haper-checkout-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  font-size: 16px;
  margin-bottom: 20px;
}

.haper-checkout-breadcrumb-home {
  color: #748397;
  text-decoration: none;
  transition: color var(--haper-transition-fast);
}

.haper-checkout-breadcrumb-home:hover {
  color: #be9643;
}

.haper-checkout-breadcrumb-sep {
  display: inline-flex;
  align-items: center;
  transform: rotate(180deg);
}

.haper-checkout-breadcrumb-current {
  color: #be9643;
  font-weight: 500;
}

.haper-checkout-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.haper-checkout-title {
  font-family: "Doran FaNum", sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #00142f;
  margin: 0;
  line-height: 1.2;
}

.haper-checkout-flourish {
  display: inline-flex;
  align-items: center;
}

.haper-checkout-flourish svg {
  display: block;
}

/* --- Checkout Layout (2-Column Grid) --- */
.haper-checkout-grid-wrap {
  width: 100%;
}

.haper-checkout-form {
  display: grid;
  grid-template-columns: 1fr 392px;
  gap: 24px;
  align-items: start;
  width: 100%;
}

/* Notices in Checkout Form (Static & AJAX) */
.haper-checkout-form > .woocommerce-notices-wrapper,
.haper-checkout-form > .woocommerce-NoticeGroup-checkout,
.haper-checkout-grid-wrap > .woocommerce-notices-wrapper,
.woocommerce-NoticeGroup-checkout {
  grid-column: 1 / -1;
  width: 100%;
  margin-bottom: 8px;
}

.haper-checkout-customer-area {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  width: 100%;
}

.haper-checkout-sidebar-area {
  grid-column: 2;
  position: sticky;
  top: 24px;
  z-index: 10;
  width: 100%;
  scroll-margin-top: 130px;
  top: 130px;
}

.haper-checkout-bottom-review-area {
  width: 100%;
}

.haper-checkout-shipping-methods-area,
.haper-checkout-payment-area,
.haper-checkout-coupon-area {
  width: 100%;
}

/* --- General Card Styles (Figma Node 321:3229, 321:3264, 321:3274) --- */
.haper-checkout-card {
  background: rgba(217, 226, 236, 0.5);
  border-radius: 30px;
  padding: 24px;
  box-sizing: border-box;
  margin-bottom: 24px;
}

.haper-checkout-card-header {
  margin-bottom: 20px;
}

.haper-checkout-card-title {
  font-family: "Doran FaNum", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #00142f;
  margin: 0;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.haper-checkout-optional-badge {
  font-size: 16px;
  font-weight: 400;
  color: #748397;
}

/* --- Coupon Bar / Toggle (Figma Node 321:3230) --- */
.haper-checkout-coupon-card {
  background: rgba(217, 226, 236, 0.5);
  border-radius: 20px;
  padding: 16px 20px;
  box-sizing: border-box;
  margin-bottom: 24px;
}

.haper-checkout-coupon-toggle {
  margin: 0;
}

.haper-checkout-coupon-toggle-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  height: 56px;
  background: #ffffff;
  border-radius: 14px;
  padding: 0 24px;
  text-decoration: none;
  box-sizing: border-box;
  transition:
    background var(--haper-transition-fast),
    box-shadow var(--haper-transition-fast);
}

.haper-checkout-coupon-toggle-link:hover {
  background: #ffffff;
  box-shadow: var(--haper-shadow-sm);
}

.haper-checkout-coupon-badge {
  font-family: "Doran FaNum", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #d4b26a;
}

.haper-checkout-coupon-prompt {
  font-family: "IRANSansXV", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #748397;
}

.haper-checkout-coupon-form {
  margin-top: 14px;
  padding: 16px 20px;
  background: #ffffff;
  border-radius: 14px;
}

.haper-checkout-coupon-fields {
  display: flex;
  align-items: center;
  gap: 12px;
}

.haper-checkout-coupon-input-wrap {
  flex: 1;
}

.haper-checkout-coupon-input {
  width: 100%;
  height: 48px;
  background: #f0f6fd;
  border: 1px solid rgba(116, 131, 151, 0.2);
  border-radius: 12px;
  padding: 0 16px;

  font-size: 15px;
  color: #35445a;
  box-sizing: border-box;
  outline: none;
  transition: border-color var(--haper-transition-fast);
}

.haper-checkout-coupon-input:focus {
  border-color: #d4b26a;
}

.haper-checkout-coupon-btn {
  height: 48px;
  padding: 0 24px;
  background: #d4b26a;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-family: "Doran FaNum", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--haper-transition-fast);
}

.haper-checkout-coupon-btn:hover {
  background: #ad9156;
}

/* --- Form Fields & Inputs Grid (Figma Node 321:3238) --- */
.haper-checkout-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.haper-checkout-form-grid .form-row {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100% !important;
  float: none !important;
}

.haper-checkout-form-grid .form-row-first {
  grid-column: 1;
}

.haper-checkout-form-grid .form-row-last {
  grid-column: 2;
}

.haper-checkout-form-grid .form-row-wide,
.haper-checkout-form-grid #billing_address_1_field,
.haper-checkout-form-grid #billing_address_2_field,
.haper-checkout-form-grid #shipping_address_1_field,
.haper-checkout-form-grid #shipping_address_2_field {
  grid-column: 1 / -1;
}

/* Labels */
.haper-checkout-form .woocommerce-billing-fields label,
.haper-checkout-form .woocommerce-shipping-fields label,
.haper-checkout-form .woocommerce-additional-fields label,
.haper-checkout-form .form-row label {
  font-size: 16px;
  font-weight: 400;
  color: #35445a;
  margin-bottom: 4px;
  line-height: 1.8;
}

.haper-checkout-form .required {
  color: #be9643;
  text-decoration: none;
  margin-right: 4px;
}

/* Inputs & Selects (Figma Node 321:3242, 321:3245, etc.) */
.haper-checkout-form input[type="text"],
.haper-checkout-form input[type="tel"],
.haper-checkout-form input[type="email"],
.haper-checkout-form input[type="password"],
.haper-checkout-form input[type="number"],
.haper-checkout-form select,
.haper-checkout-form .select2-container--default .select2-selection--single {
  background: #f0f6fd !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  height: 48px !important;
  line-height: 48px !important;
  padding: 0 16px !important;
  font-family: "IRANSansXV", sans-serif !important;
  font-size: 15px !important;
  color: #35445a !important;
  box-sizing: border-box !important;
  width: stretch;
  outline: none !important;
  transition:
    background var(--haper-transition-fast),
    border-color var(--haper-transition-fast),
    box-shadow var(--haper-transition-fast);
}

.haper-checkout-form input[type="text"]:focus,
.haper-checkout-form input[type="tel"]:focus,
.haper-checkout-form input[type="email"]:focus,
.haper-checkout-form input[type="password"]:focus,
.haper-checkout-form select:focus,
.haper-checkout-form
  .select2-container--default.select2-container--open
  .select2-selection--single {
  background: #ffffff !important;
  border-color: #d4b26a !important;
  box-shadow: 0 0 0 3px rgba(212, 178, 106, 0.15) !important;
}

/* Select2 Customization */
.haper-checkout-form
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 48px !important;
  padding-right: 0 !important;
  padding-left: 20px !important;
  color: #35445a !important;
  font-family: "IRANSansXV";
}

.haper-checkout-form
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 48px !important;
  left: 12px !important;
  right: auto !important;
}

/* Textarea / Order Comments (Figma Node 321:3271) */
.haper-checkout-notes-card label[for="order_comments"],
.haper-checkout-notes-card .woocommerce-additional-fields__field-wrapper label {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.haper-checkout-form textarea,
.haper-checkout-notes-card textarea {
  background: #f0f6fd !important;
  border: 1px solid transparent !important;
  border-radius: 14px !important;
  height: 120px !important;
  min-height: 120px;
  padding: 14px 16px !important;
  font-family: "IRANSansXV", sans-serif !important;
  font-size: 14px !important;
  color: #35445a !important;
  box-sizing: border-box !important;
  width: 100% !important;
  outline: none !important;
  resize: vertical;
  transition:
    background var(--haper-transition-fast),
    border-color var(--haper-transition-fast),
    box-shadow var(--haper-transition-fast);
}

.haper-checkout-form textarea:focus,
.haper-checkout-notes-card textarea:focus {
  background: #ffffff !important;
  border-color: #d4b26a !important;
  box-shadow: 0 0 0 3px rgba(212, 178, 106, 0.15) !important;
}

.haper-checkout-form textarea::placeholder,
.haper-checkout-notes-card textarea::placeholder {
  color: #748397;
  font-size: 14px;
}

/* Checkbox fields (Ship to different address & Create account) */
.haper-checkout-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid #748397;
  accent-color: #be9643;
  cursor: pointer;
}

.haper-checkout-shipping-toggle-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.haper-checkout-shipping-toggle-card .shipping_address {
  margin-top: 20px;
}

/* --- Shipping Methods Card (Figma Node 321:3273 style) --- */
.haper-checkout-shipping-methods-card {
  background: rgba(217, 226, 236, 0.5);
  border-radius: 30px;
  padding: 24px;
  box-sizing: border-box;
  margin-bottom: 24px;
}

.haper-shipping-methods-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.haper-shipping-method-item {
  list-style: none;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid rgba(116, 131, 151, 0.2);
}

.haper-shipping-method-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.haper-shipping-method-item:first-child {
  padding-top: 0;
}

.haper-shipping-method-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.haper-shipping-method-cost {
  display: block;
  margin-top: 4px;
  font-family: "IRANSansXV", sans-serif;
  font-size: 14px;
  color: #748397;
}

.haper-shipping-method-item.is-chosen .haper-shipping-method-check,
.haper-shipping-method-item:has(input:checked) .haper-shipping-method-check,
.haper-shipping-radio:checked ~ .haper-shipping-method-check {
  opacity: 1;
  transform: scale(1);
}

/* --- Payment Gateways (Figma Node 321:3273) --- */
.haper-checkout-payment-card {
  background: rgba(217, 226, 236, 0.5);
  border-radius: 30px;
  padding: 24px;
  box-sizing: border-box;
  margin-bottom: 24px;
}

.haper-checkout-payment-card ul.wc_payment_methods {
  list-style: none;
  margin: 0;
  padding: 0;
}

.haper-checkout-payment-card li.wc_payment_method {
  list-style: none;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid rgba(116, 131, 151, 0.2);
}

.haper-checkout-payment-card li.wc_payment_method:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.haper-checkout-payment-card li.wc_payment_method:first-child {
  padding-top: 0;
}

.haper-payment-method-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

/* 72x72px Icon Box (Shipping & Payment Methods)
   Unselected: Gray background (#d9e3ee) & Gray icon (#748397)
   Selected: Gold background (rgba(212, 178, 106, 0.2)) & Gold icon (#be9643) */
.haper-payment-method-icon-box,
.haper-shipping-method-icon-box {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 12px;
  background: #d9e3ee;
  color: #748397;
  display: flex;
  align-items: center;
  justify-content: center;
  order: 1;
  transition:
    background var(--haper-transition-fast),
    color var(--haper-transition-fast),
    box-shadow var(--haper-transition-fast),
    transform var(--haper-transition-fast);
}

.haper-payment-method-icon-box svg,
.haper-shipping-method-icon-box svg {
  width: 42px;
  height: 42px;
  display: block;
  color: inherit;
}

.haper-shipping-method-icon-box svg {
  width: 36px;
  height: 36px;
}

.haper-payment-method-icon-box svg path,
.haper-payment-method-icon-box svg rect,
.haper-payment-method-icon-box svg polygon,
.haper-payment-method-icon-box svg circle,
.haper-shipping-method-icon-box svg path,
.haper-shipping-method-icon-box svg rect,
.haper-shipping-method-icon-box svg polygon,
.haper-shipping-method-icon-box svg circle {
  stroke: currentColor;
  transition: stroke var(--haper-transition-fast);
}

.wc_payment_method:not(.is-chosen):not(:has(input:checked)):hover
  .haper-payment-method-icon-box,
.haper-shipping-method-item:not(.is-chosen):not(:has(input:checked)):hover
  .haper-shipping-method-icon-box {
  background: #c9d7e6;
  color: #51617a;
}

/* Selected States: Gold background and gold icon */
.wc_payment_method.is-chosen .haper-payment-method-icon-box,
.wc_payment_method:has(input:checked) .haper-payment-method-icon-box,
.haper-shipping-method-item.is-chosen .haper-shipping-method-icon-box,
.haper-shipping-method-item.is-chosen .haper-payment-method-icon-box,
.haper-shipping-method-item:has(input:checked) .haper-shipping-method-icon-box,
.haper-shipping-method-item:has(input:checked) .haper-payment-method-icon-box {
  background: rgba(212, 178, 106, 0.2) !important;
  color: #be9643 !important;
  box-shadow: 0 4px 12px rgba(212, 178, 106, 0.2);
}

.wc_payment_method.is-chosen .haper-payment-method-icon-box svg path,
.wc_payment_method.is-chosen .haper-payment-method-icon-box svg rect,
.wc_payment_method.is-chosen .haper-payment-method-icon-box svg polygon,
.wc_payment_method.is-chosen .haper-payment-method-icon-box svg circle,
.wc_payment_method:has(input:checked) .haper-payment-method-icon-box svg path,
.haper-shipping-method-item.is-chosen .haper-shipping-method-icon-box svg path,
.haper-shipping-method-item.is-chosen .haper-shipping-method-icon-box svg rect,
.haper-shipping-method-item.is-chosen
  .haper-shipping-method-icon-box
  svg
  polygon,
.haper-shipping-method-item.is-chosen
  .haper-shipping-method-icon-box
  svg
  circle,
.haper-shipping-method-item:has(input:checked)
  .haper-shipping-method-icon-box
  svg
  path,
.haper-shipping-method-item:has(input:checked)
  .haper-shipping-method-icon-box
  svg
  rect,
.haper-shipping-method-item:has(input:checked)
  .haper-shipping-method-icon-box
  svg
  polygon,
.haper-shipping-method-item:has(input:checked)
  .haper-shipping-method-icon-box
  svg
  circle {
  stroke: #be9643 !important;
}

/* Method Details */
.haper-payment-method-details {
  flex: 1;
  order: 2;
  text-align: right;
}

.haper-payment-method-label {
  cursor: pointer;
  margin: 0;
  display: block;
}

.haper-payment-method-title {
  font-size: 18px;
  font-weight: 500;
  color: #35445a;
  display: block;
  line-height: 1.4;
}

.haper-checkout-payment-card .payment_box {
  margin-top: 8px;

  font-size: 14px;
  font-weight: 400;
  color: #748397;
  line-height: 1.8;
}

.haper-checkout-payment-card .payment_box p {
  margin: 0;
  line-height: 1.8;
}

/* Selection / Checkmark (Figma Node 321:3305) */
.haper-payment-method-select {
  order: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 28px;
  height: 28px;
}

.haper-payment-method-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 17px;
  opacity: 0;
  transition:
    opacity var(--haper-transition-fast),
    transform var(--haper-transition-fast);
  transform: scale(0.8);
  pointer-events: none;
}

.haper-payment-radio {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  margin: 0;
}

.wc_payment_method.is-chosen .haper-payment-method-check,
.wc_payment_method:has(input:checked) .haper-payment-method-check,
.haper-payment-radio:checked ~ .haper-payment-method-check {
  opacity: 1;
  transform: scale(1);
}

/* --- Review & Totals Card (Figma Node 321:3193) --- */
.haper-checkout-sidebar-card,
.haper-checkout-review-card {
  background: rgba(217, 226, 236, 0.5);
  border-radius: 30px;
  padding: 24px;
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 24px;
}

.haper-checkout-review-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.haper-checkout-review-table th,
.haper-checkout-review-table td {
  padding: 10px 0;
  border: none;
  background: transparent;
  vertical-align: middle;
}

.haper-checkout-review-table th {
  font-size: 16px;
  font-weight: 400;
  color: #748397;
  text-align: right;
}

.haper-checkout-review-table td {
  font-size: 16px;
  font-weight: 400;
  color: #4e5364;
  text-align: left;
}

/* Subtotal Row */
.haper-checkout-review-table .cart-subtotal td,
.haper-checkout-review-table .cart-subtotal .woocommerce-Price-amount {
  font-size: 18px;
  font-weight: 500;
  color: #4e5364;
}

/* Shipping Row */
.haper-checkout-review-table .shipping th {
  color: #748397;
  font-size: 16px;
}

.haper-checkout-review-table .shipping td {
  color: #35445a;
  font-size: 16px;
}

.haper-checkout-review-table .woocommerce-shipping-calculator-button {
  color: #be9643;
  text-decoration: none;
  font-size: 16px;
  margin-right: 8px;
  transition: color var(--haper-transition-fast);
}

.haper-checkout-review-table .woocommerce-shipping-calculator-button:hover {
  color: #ad9156;
}

/* Totals Divider (Figma Node 321:3213) */
.haper-checkout-totals-divider-row td {
  padding: 6px 0;
}

.haper-checkout-totals-divider {
  height: 1px;
  background: rgba(116, 131, 151, 0.2);
  width: 100%;
}

/* Total Pill (Figma Node 321:3217) */
.haper-checkout-order-total-row td {
  padding: 10px 0 0;
}

.haper-checkout-total-pill {
  background: #f0f6fd;
  border-radius: 14px;
  min-height: 40px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.haper-checkout-total-label {
  font-size: 16px;
  font-weight: 400;
  color: #748397;
}

.haper-checkout-total-value,
.haper-checkout-total-value .woocommerce-Price-amount {
  font-size: 18px;
  font-weight: 500;
  color: #be9643;
}

/* Place Order Wrap & Button (Figma Node 321:3195) */
.haper-checkout-place-order-wrap {
  margin-top: 24px;
  text-align: center;
}

.haper-checkout-place-order-wrap .woocommerce-terms-and-conditions-wrapper {
  margin-bottom: 16px;

  font-size: 13px;
  color: #748397;
  line-height: 1.6;
  text-align: right;
}

.haper-checkout-place-order-wrap .woocommerce-terms-and-conditions-wrapper a {
  color: #be9643;
  text-decoration: none;
}

.haper-checkout-place-order-wrap
  .woocommerce-terms-and-conditions-wrapper
  a:hover {
  text-decoration: underline;
}

.woocommerce button.button.haper-checkout-submit-btn,
button.button.haper-checkout-submit-btn,
.haper-checkout-submit-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 193px !important;
  height: 40px !important;
  padding: 5px 6px !important;
  margin: 0 auto !important;
  border-radius: 14px !important;
  background-color: var(--haper-gold-5, #d4b26a) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  cursor: pointer !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(212, 178, 106, 0.35) !important;
  transition:
    background-color var(--haper-transition-fast),
    transform var(--haper-transition-fast),
    box-shadow var(--haper-transition-fast) !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
}

.woocommerce button.button.haper-checkout-submit-btn:hover,
button.button.haper-checkout-submit-btn:hover,
.haper-checkout-submit-btn:hover,
.haper-checkout-submit-btn:focus-visible {
  background-color: var(--haper-gold-6, #ad9156) !important;
  box-shadow: 0 4px 16px rgba(212, 178, 106, 0.45) !important;
  transform: translateY(-1px) !important;
  color: #ffffff !important;
}

.haper-checkout-submit-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 155px !important;
  height: 30px !important;
  border-radius: 8px !important;
  background-color: rgba(190, 150, 67, 0.6) !important;
  flex-shrink: 0 !important;
  transition: background-color var(--haper-transition-fast) !important;
}

.haper-checkout-submit-label {
  font-family: "Doran FaNum", sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  text-align: center !important;
}

.haper-checkout-submit-btn:hover .haper-checkout-submit-inner {
  background-color: rgba(160, 120, 45, 0.75) !important;
}

.haper-checkout-submit-btn:hover .haper-checkout-submit-label {
  color: #ffffff !important;
}

.haper-checkout-submit-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  flex-shrink: 0 !important;
  color: #ffffff !important;
}

.haper-checkout-submit-icon svg {
  display: block !important;
  width: 20px !important;
  height: 20px !important;
}

.haper-checkout-submit-icon svg path {
  fill: currentColor !important;
  stroke: none !important;
  transition: all var(--haper-transition-fast) !important;
}

.haper-checkout-submit-btn:hover .haper-checkout-submit-icon svg path {
  fill: currentColor !important;
  stroke: none !important;
}

/* --- Responsive Breakpoints --- */
@media screen and (max-width: 1200px) {
  .haper-checkout-page {
    padding: 32px 16px 60px;
  }

  .haper-checkout-form {
    grid-template-columns: 1fr 340px;
    gap: 20px;
  }
}

@media screen and (max-width: 992px) {
  .haper-checkout-grid-wrap {
    width: 100%;
  }

  .haper-checkout-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .haper-checkout-form > .woocommerce-notices-wrapper,
  .haper-checkout-form > .woocommerce-NoticeGroup-checkout,
  .woocommerce-NoticeGroup-checkout {
    order: 0;
    width: 100%;
  }

  .haper-checkout-customer-area {
    order: 1;
    width: 100%;
  }

  .haper-checkout-sidebar-area {
    order: 2;
    width: 100%;
    position: static;
  }

  .haper-checkout-shipping-methods-area,
  .haper-checkout-payment-area,
  .haper-checkout-bottom-review-area,
  .haper-checkout-coupon-area {
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .haper-checkout-form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .haper-checkout-form-grid .form-row-first,
  .haper-checkout-form-grid .form-row-last {
    grid-column: 1;
  }

  .haper-checkout-coupon-toggle-link {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: auto;
    padding: 14px 16px;
    gap: 4px;
  }

  .haper-checkout-coupon-fields {
    flex-direction: column;
  }

  .haper-checkout-coupon-btn {
    width: 100%;
  }

  .haper-payment-method-row {
    gap: 12px;
  }

  .haper-payment-method-icon-box,
  .haper-shipping-method-icon-box {
    width: 56px;
    height: 56px;
    min-width: 56px;
  }

  .haper-payment-method-icon-box svg,
  .haper-shipping-method-icon-box svg {
    width: 32px;
    height: 32px;
  }

  .haper-payment-method-title {
    font-size: 16px;
  }
}

@media screen and (max-width: 480px) {
  .haper-checkout-page {
    padding: 24px 12px 50px;
  }

  .haper-checkout-card,
  .haper-checkout-coupon-card,
  .haper-checkout-sidebar-card {
    padding: 18px 14px;
    border-radius: 20px;
  }

  .haper-checkout-submit-btn {
    width: 100%;
  }

  .haper-checkout-submit-inner {
    flex: 1;
  }
}

/* ==========================================================================
   Haper Luxury Order Received / Buy Page Override (Figma Node 321:2956)
   ========================================================================== */

.haper-thankyou-page {
  max-width: 1296px;
  margin: 0 auto;
  padding: 40px 16px 80px;
  box-sizing: border-box;
  direction: rtl;
}

/* --- Header / Breadcrumbs & Title --- */
.haper-thankyou-header {
  margin-bottom: 32px;
}

.haper-thankyou-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  font-size: 16px;
  margin-bottom: 20px;
}

.haper-thankyou-breadcrumb-home {
  color: #748397;
  text-decoration: none;
  transition: color var(--haper-transition-fast);
}

.haper-thankyou-breadcrumb-home:hover {
  color: #be9643;
}

.haper-thankyou-breadcrumb-sep {
  display: inline-flex;
  align-items: center;
  transform: rotate(180deg);
}

.haper-thankyou-breadcrumb-current {
  color: #be9643;
  font-weight: 500;
}

.haper-thankyou-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.haper-thankyou-title {
  font-family: "Doran FaNum", sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #00142f;
  margin: 0;
  line-height: 1.2;
}

.haper-thankyou-flourish {
  display: inline-flex;
  align-items: center;
}

.haper-thankyou-flourish svg {
  display: block;
}

/* --- Hero Banner (Figma Node 321:3068) --- */
.haper-thankyou-hero {
  position: relative;
  width: 100%;
  height: 246px;
  margin: 0 auto 32px;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.12) 0%,
      transparent 70%
    ),
    linear-gradient(90deg, #19273b 0%, #627ea4 50%, #19273b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--haper-shadow-md);
  box-sizing: border-box;
}

.haper-thankyou-hero-perfume {
  position: absolute;
  top: 0;
  width: 254px;
  height: 246px;
  pointer-events: none;
  overflow: hidden;
}

.haper-thankyou-hero-perfume img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.haper-thankyou-hero-perfume--left {
  right: -15px;
  mix-blend-mode: luminosity;
  opacity: 0.6;
}

.haper-thankyou-hero-perfume--right {
  left: -15px;
  mix-blend-mode: luminosity;
  opacity: 0.2;
  transform: scaleX(-1);
}

.haper-thankyou-hero-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.haper-thankyou-hero-icon-wrap {
  position: relative;
  width: 124px;
  height: 124px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.haper-thankyou-hero-circle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.haper-thankyou-hero-like {
  position: relative;
  width: 70px;
  height: 70px;
  z-index: 1;
}

.haper-thankyou-hero-pill {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.haper-thankyou-hero-party-icon {
  display: inline-flex;
  align-items: center;
  position: relative;
  width: 34px;
  height: 33px;
}

.haper-thankyou-party-cone {
  width: 34px;
  height: 33px;
}

.haper-thankyou-party-confetti {
  position: absolute;
  top: -6px;
  right: -4px;
  width: 32px;
  height: 38px;
}

.haper-thankyou-hero-text {
  font-family: "Doran FaNum", sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

/* --- Main Confirmation Card (Figma Node 321:2975) --- */
.haper-thankyou-card {
  background: rgba(217, 226, 236, 0.5);
  border-radius: 30px;
  padding: 32px 24px;
  box-sizing: border-box;
}

.haper-thankyou-card--failed {
  background: #fff5f5;
  border: 1px solid #fed7d7;
}

.haper-thankyou-received-title {
  font-family: "Doran FaNum", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #00142f;
  margin: 0 0 24px;
  line-height: 1.4;
  text-align: right;
}

/* --- Order Meta Overview Box (Figma Node 321:2989) --- */
.haper-thankyou-meta-box {
  border: 1px solid #b6c5d6;
  border-radius: 16px;
  padding: 18px 24px;
  margin-bottom: 32px;
  box-sizing: border-box;
}

.haper-thankyou-overview-list {
  display: flex;
  align-items: center;
  justify-content: space-around;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 16px;
}

.haper-thankyou-overview-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.haper-thankyou-overview-label {
  font-size: 16px;
  font-weight: 400;
  color: #35445a;
  line-height: 1.4;
}

.haper-thankyou-overview-value {
  font-size: 14px;
  font-weight: 400;
  color: #748397;
  line-height: 1.4;
}

.haper-thankyou-price-value {
  color: #be9643;
  font-weight: 500;
}

.haper-thankyou-overview-divider {
  width: 1px;
  height: 50px;
  background: rgba(116, 131, 151, 0.2);
  list-style: none;
  flex-shrink: 0;
}

/* --- Order Details Table & Pills (Figma Node 321:3014) --- */
.haper-thankyou-section-title {
  font-family: "Doran FaNum", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #00142f;
  margin: 0 0 20px;
  line-height: 1.4;
  text-align: right;
}

.haper-thankyou-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Doran FaNum", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #35445a;
  padding: 0 20px 12px;
  margin-bottom: 8px;
}

.haper-thankyou-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.haper-thankyou-item-pill {
  background: #f0f6fd;
  border-radius: 14px;
  min-height: 48px;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  transition: background var(--haper-transition-fast);
}

.haper-thankyou-item-pill:hover {
  background: #ffffff;
}

.haper-thankyou-item-name-wrap {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 14px;
  color: #748397;
}

.haper-thankyou-item-link {
  color: #35445a;
  text-decoration: none;
  transition: color var(--haper-transition-fast);
}

.haper-thankyou-item-link:hover {
  color: #be9643;
}

.haper-thankyou-item-qty {
  color: #748397;
  font-size: 14px;
}

.haper-thankyou-item-subtotal {
  font-size: 14px;
  color: #748397;
  font-weight: 500;
}

.haper-thankyou-purchase-note {
  padding: 4px 20px 10px;

  font-size: 13px;
  color: #748397;
}

/* --- Totals Summary Rows (Figma Node 321:3051) --- */
.haper-thankyou-totals-wrap {
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}

.haper-thankyou-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;

  font-size: 18px;
  color: #4e5364;
}

.haper-thankyou-total-label {
  font-size: 18px;
  font-weight: 400;
  color: #4e5364;
}

.haper-thankyou-total-value {
  font-size: 18px;
  font-weight: 400;
  color: #4e5364;
}

.haper-thankyou-total-row--final .haper-thankyou-total-value,
.haper-thankyou-total-row--final
  .haper-thankyou-total-value
  .woocommerce-Price-amount {
  font-weight: 500;
  color: #be9643;
}

.haper-thankyou-customer-note-row {
  padding-top: 8px;
  border-top: 1px dashed rgba(116, 131, 151, 0.2);
}

/* --- Customer Address Card (Figma Node 321:2978, 321:2980) --- */
.haper-thankyou-customer-section {
  margin-top: 24px;
}

.haper-thankyou-address-wrap {
  margin-bottom: 24px;
}

.haper-thankyou-address-card {
  border: 1px solid #b6c5d6;
  border-radius: 16px;
  min-height: 90px;
  padding: 16px 24px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.haper-thankyou-address-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.haper-thankyou-address-icon-box {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 12px;
  background: rgba(212, 178, 106, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.haper-thankyou-address-icon-box.is-shipping {
  background: #d9e3ee;
}

.haper-thankyou-address-icon-box svg {
  width: 34px;
  height: 34px;
  display: block;
}

.haper-thankyou-address-text {
  font-size: 16px;
  font-weight: 500;
  color: #35445a;
  font-style: normal;
  line-height: 1.8;
}

.haper-thankyou-address-text br {
  display: none;
}

.haper-thankyou-address-inline {
  display: inline;
  white-space: normal;
  word-break: break-word;
}

.haper-thankyou-address-meta {
  display: inline-block;
  font-size: 14px;
  font-weight: 400;
  color: #748397;
  margin-right: 8px;
}

/* --- Bottom Button (Figma Node 321:3064) --- */
.haper-thankyou-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.haper-thankyou-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 193px;
  height: 40px;
  background: #d4b26a;
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background var(--haper-transition-fast);
}

.haper-thankyou-btn:hover {
  background: #ad9156;
}

.haper-thankyou-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.haper-thankyou-btn-icon svg {
  display: block;
}

.haper-thankyou-btn-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 155px;
  height: 30px;
  background: rgba(190, 150, 67, 0.6);
  border-radius: 8px;
  transition: background var(--haper-transition-fast);
}

.haper-thankyou-btn-label {
  font-family: "Doran FaNum", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
}

/* --- Responsive Breakpoints --- */
@media screen and (max-width: 992px) {
  .haper-thankyou-hero {
    height: 200px;
  }

  .haper-thankyou-hero-perfume {
    width: 180px;
    height: 200px;
  }

  .haper-thankyou-hero-icon-wrap {
    width: 100px;
    height: 100px;
  }

  .haper-thankyou-hero-like {
    width: 56px;
    height: 56px;
  }

  .haper-thankyou-hero-text {
    font-size: 18px;
  }

  .haper-thankyou-overview-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .haper-thankyou-overview-divider {
    display: none;
  }

  .haper-thankyou-overview-item {
    flex: 1 1 30%;
    min-width: 140px;
  }
}

@media screen and (max-width: 768px) {
  .haper-thankyou-hero {
    height: auto;
    padding: 24px 16px;
  }

  .haper-thankyou-hero-perfume {
    display: none;
  }

  .haper-thankyou-hero-pill {
    flex-direction: column;
    text-align: center;
    padding: 8px 12px;
  }

  .haper-thankyou-hero-text {
    font-size: 16px;
  }

  .haper-thankyou-item-pill {
    padding: 10px 14px;
  }

  .haper-thankyou-total-row {
    font-size: 16px;
  }

  .haper-thankyou-address-card {
    padding: 14px 16px;
  }

  .haper-thankyou-address-text {
    font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  .haper-thankyou-page {
    padding: 24px 12px 50px;
  }

  .haper-thankyou-card {
    padding: 20px 14px;
    border-radius: 20px;
  }

  .haper-thankyou-overview-item {
    flex: 1 1 100%;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    border-bottom: 1px dashed rgba(116, 131, 151, 0.2);
    padding-bottom: 8px;
  }

  .haper-thankyou-overview-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .haper-thankyou-btn {
    width: 100%;
  }

  .haper-thankyou-btn-inner {
    flex: 1;
  }
}

/* ========================================================================== 
   Product Archive — Figma Layout Refinement
   ========================================================================== */
.haper-product-archive-page {
  --haper-archive-panel-bg: #e4edf6;
  --haper-archive-input-bg: #f0f6fd;
  --haper-archive-control-bg: #d7e3ef;
  --haper-archive-border: #b6c5d6;
  --haper-archive-content-width: 1296px;
  background: var(--haper-archive-input-bg);
  padding-top: 28px;
  padding-bottom: 80px;
}

.haper-product-archive-page .haper-archive-container {
  max-width: calc(var(--haper-archive-content-width) + 40px);
}

.haper-product-archive-page .haper-breadcrumbs {
  margin-bottom: 28px;
}

/* Align the archive title with the sidebar and sorting with the product grid. */
.haper-product-archive-page .haper-archive-sorting-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  grid-template-areas: "sorting title";
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  direction: ltr;
}

.haper-product-archive-page .haper-sorting-bar__right {
  grid-area: title;
  justify-content: flex-end;
  direction: rtl;
  gap: 10px;
  min-width: 0;
}

.haper-product-archive-page .haper-sorting-bar__left {
  grid-area: sorting;
  justify-content: flex-end;
  direction: rtl;
  min-width: 0;
}

.haper-product-archive-page .haper-archive-title {
  font-size: 20px;
  line-height: 1.7;
  font-weight: 500;
}

.haper-product-archive-page .haper-archive-title-accent::before {
  left: 10px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--haper-gold-5);
  border-radius: 50%;
  background: transparent;
}

.haper-product-archive-page .haper-archive-title-accent::after {
  right: 7px;
  width: 9px;
  height: 9px;
  background: var(--haper-gold-5);
  box-shadow: 8px 0 0 var(--haper-gold-5);
  transform: translateY(-50%) rotate(45deg);
}

.haper-product-archive-page .haper-sorting-label {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.haper-product-archive-page .haper-sorting-tabs {
  gap: 26px;
  flex-wrap: wrap;
}

.haper-product-archive-page .haper-sort-tab {
  font-size: 14px;
  line-height: 1.6;
  white-space: nowrap;
}

.haper-product-archive-page .haper-sort-tab__dot {
  position: absolute;
  right: 50%;
  bottom: -9px;
  width: 5px;
  height: 5px;
  transform: translateX(50%);
}

/* Sidebar is physically on the right, independent of document direction. */
.haper-product-archive-page .haper-archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  grid-template-areas: "main sidebar";
  gap: 24px;
  align-items: start;
  direction: ltr;
}

.haper-product-archive-page .haper-archive-main {
  grid-area: main;
  min-width: 0;
  direction: rtl;
}

.haper-product-archive-page .haper-archive-sidebar {
  grid-area: sidebar;
  width: 280px;
  min-width: 0;
  direction: rtl;
}

.haper-product-archive-page .haper-filter-sidebar,
.haper-product-archive-page .haper-sidebar-filter-form {
  gap: 24px;
}

.haper-product-archive-page .haper-widget {
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: 16px;
  background: var(--haper-archive-panel-bg);
  box-shadow: none;
  box-sizing: border-box;
}

.haper-product-archive-page .haper-widget__title {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  color: var(--haper-navy-5);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  text-align: right;
}

/* Product search. */
.haper-product-archive-page .haper-search-input-wrap {
  width: 100%;
  min-height: 48px;
}

.haper-product-archive-page .haper-search-input {
  width: 100%;
  height: 48px;
  padding: 0 48px 0 14px;
  border: 0;
  border-radius: 14px;
  background: var(--haper-archive-input-bg);
  color: var(--haper-navy-5);
  font-size: 13px;
  line-height: 48px;
  direction: rtl;
  box-shadow: none;
}

.haper-product-archive-page .haper-search-input::placeholder {
  color: var(--haper-navy-2);
  opacity: 0.7;
}

.haper-product-archive-page .haper-search-input:focus {
  border: 0;
  box-shadow: 0 0 0 1px var(--haper-archive-border);
}

.haper-product-archive-page .haper-search-submit {
  right: 13px;
  width: 24px;
  height: 24px;
  color: var(--haper-navy-4);
}

.haper-product-archive-page .haper-search-submit svg {
  display: block;
  width: 24px;
  height: 24px;
}

/* Dual-handle price filter. */
.haper-product-archive-page .haper-widget--price .haper-widget__title {
  margin-bottom: 18px;
}

.haper-product-archive-page .haper-price-range {
  --haper-range-start: 0%;
  --haper-range-end: 100%;
  position: relative;
  width: 100%;
  height: 22px;
  margin: 0 0 14px;
}

.haper-product-archive-page .haper-price-range__track {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  transform: translateY(-50%);
  background: var(--haper-archive-border);
}

.haper-product-archive-page .haper-price-range__fill {
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: var(--haper-range-start);
  right: calc(100% - var(--haper-range-end));
  min-width: 0;
  background: var(--haper-gold-5);
}

/*
 * RTL price slider mapping:
 * - minimum value/thumb is on the visual right.
 * - maximum value/thumb is on the visual left.
 * Keep each side of the active track attached to its own thumb.
 */
html[dir="rtl"] .haper-product-archive-page .haper-price-range__fill,
body.rtl .haper-product-archive-page .haper-price-range__fill {
  left: calc(100% - var(--haper-range-end));
  right: var(--haper-range-start);
}

.haper-product-archive-page .haper-price-range__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
}

.haper-product-archive-page
  .haper-price-range__input::-webkit-slider-runnable-track {
  height: 1px;
  background: transparent;
}

.haper-product-archive-page .haper-price-range__input::-moz-range-track {
  height: 1px;
  background: transparent;
}

.haper-product-archive-page .haper-price-range__input::-webkit-slider-thumb {
  width: 8px;
  height: 8px;
  margin-top: -3.5px;
  border: 1px solid var(--haper-gold-5);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: none;
  cursor: pointer;
  pointer-events: auto;
  appearance: none;
  -webkit-appearance: none;
}

.haper-product-archive-page .haper-price-range__input::-moz-range-thumb {
  width: 8px;
  height: 8px;
  border: 1px solid var(--haper-gold-5);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: none;
  cursor: pointer;
  pointer-events: auto;
}

.haper-product-archive-page .haper-price-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 40px;
  margin-bottom: 18px;
  padding: 7px 10px;
  border-radius: 12px;
  background: var(--haper-archive-input-bg);
  color: var(--haper-navy-2);
  font-size: 11px;
  line-height: 1.6;
  white-space: nowrap;
  direction: rtl;
  box-sizing: border-box;
}

.haper-product-archive-page .haper-price-summary__item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.haper-product-archive-page .haper-price-summary__separator {
  color: var(--haper-navy-2);
}

/* Price status controls are square, matching Figma. */
.haper-product-archive-page .haper-toggles-list {
  gap: 12px;
}

.haper-product-archive-page .haper-toggle-row {
  min-height: 24px;
  font-size: 13px;
  font-weight: 500;
  direction: rtl;
}

.haper-product-archive-page .haper-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.haper-product-archive-page .haper-toggle-switch {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #ffffff;
  box-sizing: border-box;
}

.haper-product-archive-page .haper-toggle-switch::after {
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: transparent;
  transform: translate(-50%, -50%);
}

.haper-product-archive-page .haper-toggle-input:checked + .haper-toggle-switch {
  border-color: var(--haper-gold-5);
  background: var(--haper-gold-5);
}

.haper-product-archive-page
  .haper-toggle-input:checked
  + .haper-toggle-switch::after {
  background: #ffffff;
  transform: translate(-50%, -50%);
}

/* Remaining sidebar filter groups. */
.haper-product-archive-page .haper-checkbox-list {
  gap: 11px;
}

.haper-product-archive-page .haper-checkbox-row {
  justify-content: space-between;
  gap: 10px;
  min-height: 22px;
  color: var(--haper-navy-3);
  font-size: 13px;
  direction: rtl;
}

.haper-product-archive-page .haper-checkbox-text {
  margin-inline-end: auto;
}

.haper-product-archive-page .haper-custom-checkbox {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 1px solid rgba(212, 178, 106, 0.45);
  border-radius: 5px;
  background: #ffffff;
}

.haper-product-archive-page
  .haper-checkbox-row
  input:checked
  + .haper-custom-checkbox {
  border-color: var(--haper-gold-5);
  background: var(--haper-gold-5);
}

.haper-product-archive-page
  .haper-checkbox-row
  input:checked
  + .haper-custom-checkbox::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: #ffffff;
}

.haper-product-archive-page .haper-filter-submit {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Active filters widget. */
.haper-product-archive-page .haper-widget--active-filters {
  background: var(--haper-archive-panel-bg);
  border: 1px dashed var(--haper-gold-3);
}

.haper-product-archive-page .haper-widget__header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.haper-product-archive-page .haper-widget--active-filters .haper-widget__title {
  margin-bottom: 0;
}

.haper-product-archive-page .haper-clear-all-filters {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #e2401c;
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 6px;
  transition: all 150ms ease;
}

.haper-product-archive-page .haper-clear-all-filters:hover {
  background: rgba(226, 64, 28, 0.08);
  color: #b72605;
}

.haper-product-archive-page .haper-clear-all-filters svg {
  display: block;
}

.haper-product-archive-page .haper-active-filters-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.haper-product-archive-page .haper-active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 6px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid var(--haper-archive-border, #d9e2ec);
  font-size: 12px;
  font-weight: 500;
  color: var(--haper-navy-5);
  box-shadow: 0 1px 4px rgba(25, 39, 59, 0.04);
  direction: rtl;
}

.haper-product-archive-page .haper-active-filter-label {
  line-height: 1.4;
  white-space: nowrap;
}

.haper-product-archive-page .haper-active-filter-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--haper-archive-input-bg, #f0f6fd);
  color: var(--haper-navy-3);
  text-decoration: none;
  transition: all 150ms ease;
  flex-shrink: 0;
}

.haper-product-archive-page .haper-active-filter-remove:hover {
  background: #e2401c;
  color: #ffffff;
  transform: scale(1.1);
}

.haper-product-archive-page .haper-active-filter-remove svg {
  display: block;
}

/* Brand filter search and scrollable lists. */
.haper-product-archive-page .haper-filter-search-wrap {
  margin-bottom: 12px;
}

.haper-product-archive-page .haper-brand-filter-search {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--haper-archive-border, #d9e2ec);
  border-radius: 10px;
  background: var(--haper-archive-input-bg, #f0f6fd);
  color: var(--haper-navy-5);
  font-size: 12px;
  direction: rtl;
  box-sizing: border-box;
  transition: border-color 150ms ease;
}

.haper-product-archive-page .haper-brand-filter-search:focus {
  outline: none;
  border-color: var(--haper-gold-5);
  background: #ffffff;
}

.haper-product-archive-page .haper-checkbox-list--scrollable {
  max-height: 220px;
  overflow-y: auto;
  padding-inline-end: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--haper-archive-border, #d9e2ec) transparent;
}

.haper-product-archive-page
  .haper-checkbox-list--scrollable::-webkit-scrollbar {
  width: 4px;
}

.haper-product-archive-page
  .haper-checkbox-list--scrollable::-webkit-scrollbar-thumb {
  background: var(--haper-archive-border, #d9e2ec);
  border-radius: 4px;
}

.haper-product-archive-page .haper-term-count {
  font-size: 11px;
  color: var(--haper-navy-2, #6c7f99);
  margin-inline-start: 4px;
}

/* Four 240px cards beside a 240px sidebar in the 1296px Figma content frame. */
.haper-product-archive-page .haper-archive-products-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

/* Pagination. */
.haper-product-archive-page .haper-pagination-container {
  margin-top: 0;
  margin-bottom: 16px;
}

.haper-product-archive-page .haper-pagination-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  direction: rtl;
}

.haper-product-archive-page .haper-pagination-item {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.haper-product-archive-page .haper-pagination-item a,
.haper-product-archive-page .haper-pagination-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #d9e3ee;
  color: #748397;
  font-family: "Doran FaNum", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
  box-sizing: border-box;
  transition:
    background-color var(--haper-transition-fast),
    color var(--haper-transition-fast);
}

.haper-product-archive-page .haper-pagination-item a:hover,
.haper-product-archive-page .haper-pagination-item.is-active span,
.haper-product-archive-page .haper-pagination-item span.current {
  border: 0;
  background: #b6c5d6;
  color: #35445a;
}

/* Figma prev/next: 103x40 outer pill + 30px inner label + 20px arrow. */
.haper-product-archive-page .haper-pagination-item--prev a,
.haper-product-archive-page .haper-pagination-item--next a {
  width: 103px;
  min-width: 103px;
  height: 40px;
  padding: 5px 6px;
  gap: 6px;
  border-radius: 14px;
  background: #d9e3ee;
  color: #35445a;
  direction: ltr;
  justify-content: space-between;
}

/* Figma uses a 24px visual gap between each nav pill and the page-number group. */
.haper-product-archive-page .haper-pagination-item--prev {
  margin-left: 16px;
}

.haper-product-archive-page .haper-pagination-item--next {
  margin-right: 16px;
}

.haper-product-archive-page .haper-pagination-item--prev a:hover,
.haper-product-archive-page .haper-pagination-item--next a:hover {
  background: #d9e3ee;
}

.haper-product-archive-page
  .haper-pagination-item--prev
  .haper-pagination-label,
.haper-product-archive-page
  .haper-pagination-item--next
  .haper-pagination-label {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: #b6c5d6;
  color: #35445a;
  font-family: "Doran FaNum", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 180%;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background-color var(--haper-transition-fast);
}

.haper-product-archive-page
  .haper-pagination-item--prev
  a:hover
  .haper-pagination-label,
.haper-product-archive-page
  .haper-pagination-item--next
  a:hover
  .haper-pagination-label {
  background: #aebdce;
}

.haper-product-archive-page .haper-pagination-item--dots span {
  width: 40px;
  min-width: 40px;
  letter-spacing: 0;
}

.haper-product-archive-page .haper-pagination-item svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: #35445a;
}

@media screen and (max-width: 1240px) {
  .haper-product-archive-page .haper-archive-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 992px) {
  .haper-product-archive-page .haper-archive-sorting-bar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "sorting";
    gap: 18px;
  }

  .haper-product-archive-page .haper-archive-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "sidebar"
      "main";
    gap: 28px;
  }

  .haper-product-archive-page .haper-archive-sidebar {
    width: 100%;
  }

  .haper-product-archive-page .haper-filter-sidebar,
  .haper-product-archive-page .haper-sidebar-filter-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .haper-product-archive-page .haper-widget--search {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 768px) {
  .haper-product-archive-page {
    padding-top: 20px;
    padding-bottom: 56px;
  }

  .haper-product-archive-page .haper-archive-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .haper-product-archive-page .haper-filter-sidebar,
  .haper-product-archive-page .haper-sidebar-filter-form {
    grid-template-columns: 1fr;
  }

  .haper-product-archive-page .haper-sorting-bar__left {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .haper-product-archive-page .haper-sorting-tabs {
    gap: 18px;
  }

  .haper-product-archive-page .haper-pagination-list {
    gap: 6px;
  }

  .haper-product-archive-page .haper-pagination-item a,
  .haper-product-archive-page .haper-pagination-item span {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
  }

  .haper-product-archive-page .haper-pagination-item--prev a,
  .haper-product-archive-page .haper-pagination-item--next a {
    width: 92px;
    min-width: 92px;
  }
}

@media screen and (max-width: 520px) {
  .haper-product-archive-page .haper-archive-products-grid {
    grid-template-columns: 1fr;
  }

  .haper-product-archive-page .haper-product-card--archive {
    width: min(100%, 240px);
    margin-inline: auto;
  }

  .haper-product-archive-page .haper-pagination-label {
    display: none;
  }

  .haper-product-archive-page .haper-pagination-item--prev a,
  .haper-product-archive-page .haper-pagination-item--next a {
    width: 36px;
    min-width: 36px;
    padding: 0 8px;
  }

  .haper-product-archive-page .haper-pagination-item--prev,
  .haper-product-archive-page .haper-pagination-item--next {
    margin-inline: 8px;
  }
}

/* ========================================================================== 
   Product Archive — Mobile Filter Drawer & Mobile Layout Refinement
   ========================================================================== */
.haper-mobile-filter-toggle,
.haper-mobile-filter-drawer-head,
.haper-mobile-filter-backdrop {
  display: none;
}

.haper-mobile-filter-drawer-body {
  display: contents;
}

@media screen and (max-width: 768px) {
  body.haper-filter-drawer-open {
    overflow: hidden;
    touch-action: none;
  }

  .haper-product-archive-page {
    padding-top: 16px;
    padding-bottom: 48px;
  }

  .haper-product-archive-page .haper-archive-container {
    width: 100%;
    max-width: none;
    padding-inline: 12px;
    box-sizing: border-box;
  }

  .haper-product-archive-page .haper-breadcrumbs {
    margin-bottom: 20px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .haper-product-archive-page .haper-breadcrumbs::-webkit-scrollbar {
    display: none;
  }

  .haper-product-archive-page .haper-archive-sorting-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 20px;
    direction: rtl;
  }

  .haper-product-archive-page .haper-sorting-bar__right {
    width: 100%;
    justify-content: flex-end;
  }

  .haper-product-archive-page .haper-archive-title {
    font-size: 18px;
  }

  .haper-product-archive-page .haper-sorting-bar__left {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "filter label"
      "tabs tabs";
    align-items: center;
    gap: 10px 12px;
    width: 100%;
    min-width: 0;
    direction: rtl;
  }

  .haper-product-archive-page .haper-mobile-filter-toggle {
    grid-area: filter;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 96px;
    height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: #d9e3ee;
    color: var(--haper-navy-4, #35445a);
    font-family: "Doran FaNum", sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    box-sizing: border-box;
  }

  .haper-product-archive-page .haper-mobile-filter-toggle__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }

  .haper-product-archive-page .haper-sorting-label {
    grid-area: label;
    justify-self: end;
    font-size: 13px;
  }

  .haper-product-archive-page .haper-sorting-tabs {
    grid-area: tabs;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 18px;
    width: 100%;
    min-width: 0;
    padding: 2px 0 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .haper-product-archive-page .haper-sorting-tabs::-webkit-scrollbar {
    display: none;
  }

  .haper-product-archive-page .haper-sort-tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
    font-size: 13px;
  }

  .haper-product-archive-page .haper-archive-layout {
    display: block;
    width: 100%;
  }

  .haper-product-archive-page .haper-archive-main {
    width: 100%;
    min-width: 0;
  }

  .haper-product-archive-page .haper-archive-sidebar {
    position: static;
    width: 0;
    height: 0;
    min-width: 0;
    overflow: visible;
  }

  .haper-mobile-filter-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(25, 39, 59, 0.42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 220ms ease,
      visibility 220ms ease;
  }

  body.haper-filter-drawer-open .haper-mobile-filter-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .haper-product-archive-page .haper-filter-sidebar {
    display: flex !important;
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100001;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: none;
    max-height: min(88dvh, 760px);
    margin: 0;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    background: #ffffff;
    box-shadow: 0 -18px 50px rgba(25, 39, 59, 0.18);
    transform: translateY(105%);
    transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    direction: rtl;
  }

  body.haper-filter-drawer-open
    .haper-product-archive-page
    .haper-filter-sidebar {
    transform: translateY(0);
  }

  .haper-product-archive-page .haper-mobile-filter-drawer-head {
    display: block;
    position: relative;
    flex: 0 0 auto;
    padding: 10px 18px 14px;
    border-bottom: 1px solid rgba(182, 197, 214, 0.45);
    background: #ffffff;
  }

  .haper-product-archive-page .haper-mobile-filter-drawer-handle {
    display: block;
    width: 44px;
    height: 4px;
    margin: 0 auto 10px;
    border-radius: 999px;
    background: #d9e3ee;
  }

  .haper-product-archive-page .haper-mobile-filter-drawer-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .haper-product-archive-page .haper-mobile-filter-drawer-title {
    margin: 0;
    color: var(--haper-navy-5, #19273b);
    font-family: "Doran FaNum", sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
  }

  .haper-product-archive-page .haper-mobile-filter-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #f0f6fd;
    color: var(--haper-navy-4, #35445a);
    cursor: pointer;
  }

  .haper-product-archive-page .haper-mobile-filter-drawer-body {
    display: block;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #ffffff;
    scrollbar-width: thin;
  }

  .haper-product-archive-page .haper-widget,
  .haper-product-archive-page .haper-widget--search {
    width: 100%;
    margin: 0;
    padding: 18px 20px;
    border: 0;
    border-bottom: 1px solid rgba(182, 197, 214, 0.35);
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
  }

  .haper-product-archive-page .haper-widget__title {
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    font-size: 15px;
    font-weight: 600;
  }

  .haper-product-archive-page .haper-search-input-wrap {
    min-height: 48px;
    border-radius: 14px;
    background: #f0f6fd;
  }

  .haper-product-archive-page .haper-search-input {
    height: 48px;
    border-radius: 14px;
    background: #f0f6fd;
  }

  .haper-product-archive-page .haper-sidebar-filter-form {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .haper-product-archive-page .haper-price-summary {
    margin-bottom: 14px;
  }

  .haper-product-archive-page .haper-checkbox-list,
  .haper-product-archive-page .haper-toggles-list {
    gap: 14px;
  }

  .haper-product-archive-page .haper-checkbox-row,
  .haper-product-archive-page .haper-toggle-row {
    min-height: 32px;
    font-size: 14px;
  }

  .haper-product-archive-page .haper-filter-submit {
    position: sticky;
    right: auto;
    bottom: 0;
    left: auto;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 32px);
    height: 48px;
    margin: 14px 16px 16px;
    padding: 0 20px;
    overflow: visible;
    clip: auto;
    clip-path: none;
    border: 0;
    border-radius: 14px;
    background: var(--haper-gold-5, #d4b26a);
    color: #ffffff;
    font-family: "Doran FaNum", sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(212, 178, 106, 0.24);
  }

  .haper-product-archive-page .haper-archive-products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    margin-bottom: 36px;
  }

  .haper-product-archive-page .haper-product-card--archive {
    width: 100%;
    max-width: 360px;
    min-height: 430px;
    aspect-ratio: auto;
    margin-inline: auto;
    padding: 18px 18px 14px;
  }

  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__image {
    height: 165px;
    margin-top: 4px;
  }

  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__image
    img {
    max-height: 158px;
  }

  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__title {
    min-height: 48px;
    font-size: 14px;
  }

  .haper-product-archive-page .haper-pagination-container {
    width: 100%;
    margin-top: 4px;
    margin-bottom: 0;
    overflow: hidden;
  }

  .haper-product-archive-page .haper-pagination-list {
    display: flex;
    justify-content: center;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    padding: 0 2px 4px;
    overflow-x: auto;
    scrollbar-width: none;
    direction: rtl;
  }

  .haper-product-archive-page .haper-pagination-list::-webkit-scrollbar {
    display: none;
  }

  .haper-product-archive-page .haper-pagination-item a,
  .haper-product-archive-page .haper-pagination-item span {
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 12px;
    font-size: 13px;
  }

  .haper-product-archive-page .haper-pagination-label {
    display: none !important;
  }

  .haper-product-archive-page .haper-pagination-item--prev a,
  .haper-product-archive-page .haper-pagination-item--next a {
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 12px;
  }

  .haper-product-archive-page .haper-pagination-item--prev,
  .haper-product-archive-page .haper-pagination-item--next {
    margin: 0;
  }

  .haper-product-archive-page .haper-pagination-item svg {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }
}

@media screen and (max-width: 420px) {
  .haper-product-archive-page .haper-archive-container {
    padding-inline: 10px;
  }

  .haper-product-archive-page .haper-product-card--archive {
    max-width: none;
    min-height: 420px;
  }

  .haper-product-archive-page .haper-sorting-tabs {
    gap: 16px;
  }

  .haper-product-archive-page .haper-pagination-list {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   Product Archive Card — Stable Mobile Layout
   Single source of truth for archive cards on small screens.
   ========================================================================== */

@media screen and (max-width: 560px) {
  .haper-product-archive-page .haper-archive-products-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    align-items: start !important;
    justify-items: center !important;
    width: 100% !important;
  }

  .haper-product-archive-page .haper-product-card--archive {
    position: relative !important;
    display: grid !important;
    grid-template-rows: 34px 176px 18px 48px 50px 5px !important;
    row-gap: 6px !important;
    align-content: start !important;

    width: min(calc(100% - 20px), 320px) !important;
    max-width: 320px !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;

    margin: 0 auto !important;
    padding: 18px 16px 14px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    isolation: isolate !important;

    background-color: transparent !important;
    background-image: url("assets/img/product-card/product-card-bg.svg") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 100% 100% !important;
  }

  /* Avoid the duplicated SVG layer from the desktop card rules. */
  .haper-product-archive-page .haper-product-card--archive::before {
    display: none !important;
    content: none !important;
  }

  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__top {
    grid-row: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 34px !important;
    margin: 0 !important;
  }

  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__gender {
    min-width: 0 !important;
    max-width: calc(100% - 40px) !important;
  }

  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__gender-icon {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;
  }

  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__wishlist {
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;
  }

  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__image {
    grid-row: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 176px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
  }

  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__image
    img {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: 150px !important;
    max-height: 150px !important;
    object-fit: contain !important;
  }

  /* Make the three body sections direct grid items of the card. */
  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__body {
    display: contents !important;
  }

  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__pills {
    grid-row: 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 18px !important;
    margin: 0 !important;
    gap: 8px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__pill {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: 48% !important;
    gap: 4px !important;
    padding: 0 !important;
    font-size: 10px !important;
    line-height: 18px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__pill
    svg {
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px !important;
  }

  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__title {
    grid-row: 4 !important;
    display: -webkit-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    box-sizing: border-box !important;
    font-size: 13px !important;
    line-height: 1.75 !important;
    text-align: right !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__title
    a {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    color: inherit !important;
    text-decoration: none !important;
  }

  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__commerce {
    grid-row: 5 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: end !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 50px !important;
    min-height: 50px !important;
    margin: 0 !important;
    gap: 6px !important;
    overflow: hidden !important;
    direction: ltr !important;
    box-sizing: border-box !important;
  }

  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__prices {
    grid-column: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 50px !important;
    margin: 0 !important;
    gap: 2px !important;
    overflow: hidden !important;
    direction: rtl !important;
  }

  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__regular-row,
  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__sale-row {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    gap: 4px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
  }

  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__regular-row {
    min-height: 18px !important;
  }

  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__discount-badge {
    flex: 0 0 auto !important;
    min-width: 28px !important;
    height: 18px !important;
    padding: 0 4px !important;
    font-size: 9px !important;
  }

  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__reg {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 9px !important;
  }

  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__sale {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 34px) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
  }

  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__currency {
    flex: 0 0 auto !important;
    font-size: 9px !important;
    white-space: nowrap !important;
  }

  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__purchase-actions {
    grid-column: 2 !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-end !important;
    width: auto !important;
    min-width: 0 !important;
    height: 50px !important;
    margin: 0 !important;
    gap: 6px !important;
    direction: ltr !important;
  }

  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__add-btn,
  .woocommerce
    .haper-product-archive-page
    .haper-product-card--archive
    a.button.haper-product-card__add-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 13px !important;
    flex: 0 0 42px !important;
  }

  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__credit {
    display: flex !important;
    flex: 0 0 44px !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 50px !important;
    gap: 2px !important;
    overflow: hidden !important;
  }

  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__credit-image {
    display: block !important;
    width: 42px !important;
    max-width: 42px !important;
    height: 25px !important;
    object-fit: contain !important;
  }

  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__credit-label {
    display: block !important;
    width: 44px !important;
    max-width: 44px !important;
    overflow: hidden !important;
    font-size: 8px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__stock-progress {
    grid-row: 6 !important;
    align-self: center !important;
    width: calc(100% - 8px) !important;
    max-width: calc(100% - 8px) !important;
    height: 5px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }
}

@media screen and (max-width: 380px) {
  .haper-product-archive-page .haper-product-card--archive {
    width: min(calc(100% - 12px), 300px) !important;
    max-width: 300px !important;
    grid-template-rows: 34px 164px 18px 48px 48px 5px !important;
    padding-inline: 14px !important;
  }

  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__image {
    height: 164px !important;
    padding-inline: 20px !important;
  }

  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__image
    img {
    max-width: 140px !important;
    max-height: 140px !important;
  }

  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__title {
    font-size: 12.5px !important;
  }

  .haper-product-archive-page
    .haper-product-card--archive
    .haper-product-card__add-btn,
  .woocommerce
    .haper-product-archive-page
    .haper-product-card--archive
    a.button.haper-product-card__add-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    flex-basis: 40px !important;
  }
}

/* ==========================================================================
   Product Archive — AJAX Add to Cart Feedback
   ========================================================================== */

/* WooCommerce injects this link after a successful AJAX add-to-cart.
   It must not participate in the product-card layout. */
.haper-product-archive-page
  .haper-product-card--archive
  .added_to_cart.wc-forward {
  display: none !important;
}

.haper-cart-toast {
  position: fixed;
  top: 112px;
  right: 24px;
  z-index: 100000;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(360px, calc(100vw - 48px));
  min-height: 68px;
  padding: 14px 18px;
  border: 1px solid rgba(182, 197, 214, 0.5);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(25, 39, 59, 0.16);
  color: var(--haper-navy-5, #19273b);
  direction: rtl;
  box-sizing: border-box;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(24px);
  transition:
    opacity 220ms ease,
    visibility 220ms ease,
    transform 220ms ease;
}

.haper-cart-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.haper-cart-toast__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
}

.haper-cart-toast__icon svg {
  display: block;
  width: 28px;
  height: 28px;
}

.haper-cart-toast__message {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  text-align: right;
}

@media screen and (max-width: 768px) {
  .haper-cart-toast {
    top: 88px;
    right: 50%;
    width: min(340px, calc(100vw - 24px));
    min-height: 62px;
    padding: 12px 14px;
    transform: translate(50%, -18px);
  }

  .haper-cart-toast.is-visible {
    transform: translate(50%, 0);
  }

  .haper-cart-toast__message {
    font-size: 13px;
  }
}
/* ==========================================================================
   Haper Single Product Global Alignment Fix
   ========================================================================== */

.haper-single-product-page {
  width: 100%;
}

.haper-single-product-container,
.haper-product-hero-container,
.haper-product-description-container,
.haper-product-fragrance-container,
.haper-product-reviews-container,
.haper-product-review-form-container,
.haper-product-related-container {
  max-width: 1296px;
  width: calc(100% - 48px);
  margin-inline: auto;
  box-sizing: border-box;
}

/* Keep all sections same horizontal alignment */
.haper-product-description-card,
.haper-fragrance-row,
.haper-reviews-grid,
.haper-review-form-grid,
.haper-related-products-grid {
  width: 100%;
}

/* Description section spacing */
.haper-product-description-container {
  margin-top: 24px;
  margin-bottom: 24px;
}

/* Remove inner offset causing misalignment */
.haper-product-description-card {
  margin-left: 0;
  margin-right: 0;
}

/* Hero alignment */
.haper-product-hero-container {
  padding-inline: 0;
}

/* Mobile */
@media (max-width: 768px) {
  .haper-single-product-container,
  .haper-product-hero-container,
  .haper-product-description-container,
  .haper-product-fragrance-container,
  .haper-product-reviews-container,
  .haper-product-review-form-container,
  .haper-product-related-container {
    width: calc(100% - 24px);
  }
}

/* ==========================================================================
   Wishlist & Compare Interactive System Styles
   ========================================================================== */

/* 1. Product Card Top Action Buttons (Wishlist & Compare) */
.haper-product-card__header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
}

.haper-product-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--haper-product-card-border, #b6c5d6);
  box-shadow: none;
  cursor: pointer;
  border-radius: 50%;
  transition: transform var(--haper-transition-fast), color var(--haper-transition-fast), background var(--haper-transition-fast);
}

.haper-product-card__action:hover {
  transform: scale(1.12);
  color: var(--haper-gold-5, #d4b26a);
  background: rgba(212, 178, 106, 0.1);
}

.haper-product-card__action.is-active {
  color: var(--haper-gold-5, #d4b26a);
}

.haper-product-card__action.is-active svg path {
  fill: var(--haper-gold-5, #d4b26a);
}

.haper-product-card__compare.is-active svg path {
  fill: none;
  stroke: var(--haper-gold-5, #d4b26a);
  stroke-width: 2;
}

/* 2. Single Product Hero Active States */
.haper-product-action.is-active {
  color: var(--haper-gold-6, #ad9156);
}

.haper-product-action--wishlist.is-active .haper-action__icon svg path {
  fill: var(--haper-gold-5, #d4b26a);
  stroke: var(--haper-gold-5, #d4b26a);
}

.haper-product-action--compare.is-active .haper-action__icon svg path {
  stroke: var(--haper-gold-5, #d4b26a);
  stroke-width: 2;
}

/* 3. Luxury Floating Toast Notification */
.haper-luxury-toast {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(-24px);
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: var(--haper-navy-5, #19273b);
  color: #ffffff;
  border: 1px solid var(--haper-gold-5, #d4b26a);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(25, 39, 59, 0.35);
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  direction: rtl;
  max-width: 90vw;
}

.haper-luxury-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.haper-luxury-toast--success .haper-toast__icon {
  color: var(--haper-gold-5, #d4b26a);
  display: flex;
}

.haper-luxury-toast--warning .haper-toast__icon {
  color: #e59866;
  display: flex;
}

.haper-toast__message {
  line-height: 1.4;
}

.haper-toast__link {
  color: var(--haper-gold-5, #d4b26a);
  text-decoration: underline;
  font-weight: 600;
  margin-inline-start: 4px;
  white-space: nowrap;
  transition: color var(--haper-transition-fast);
}

.haper-toast__link:hover {
  color: #ffffff;
}

.haper-toast__close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  margin-inline-start: 4px;
}

.haper-toast__close:hover {
  color: #ffffff;
}

/* 4. WooCommerce My Account Wishlist Tab */
.haper-woo-wishlist-wrapper {
  width: 100%;
}

.haper-woo-wishlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.haper-woo-wishlist-header .haper-woo-content-title {
  margin-bottom: 0;
}

.haper-woo-wishlist-count-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 20px;
  background: rgba(212, 178, 106, 0.15);
  border: 1px solid var(--haper-gold-5, #d4b26a);
  color: var(--haper-gold-7, #867042);
  font-size: 12px;
  font-weight: 600;
}

.haper-woo-wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.haper-woo-wishlist-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  background: #ffffff;
  border-radius: 24px;
  border: 1px dashed rgba(182, 197, 214, 0.8);
}

.haper-woo-wishlist-empty__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(212, 178, 106, 0.1);
  color: var(--haper-gold-5, #d4b26a);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.haper-woo-wishlist-empty__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--haper-navy-5, #19273b);
  margin-bottom: 8px;
}

.haper-woo-wishlist-empty__text {
  font-size: 14px;
  color: var(--haper-navy-3, #51617a);
  max-width: 440px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.haper-woo-wishlist-empty__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 12px;
  background: var(--haper-gold-5, #d4b26a);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--haper-transition-fast), transform var(--haper-transition-fast);
}

.haper-woo-wishlist-empty__btn:hover {
  background: var(--haper-gold-6, #ad9156);
  transform: translateY(-2px);
  color: #ffffff;
}

.haper-wishlist-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(220, 53, 69, 0.3);
  background: rgba(220, 53, 69, 0.05);
  color: #dc3545;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--haper-transition-fast);
}

.haper-wishlist-remove-btn:hover {
  background: #dc3545;
  color: #ffffff;
  border-color: #dc3545;
}

/* 5. Compare Page Styles */
.haper-compare-page {
  padding-top: 24px;
  padding-bottom: 60px;
  background: var(--haper-bg-compare, #f0f6fd);
  min-height: 80vh;
}

.haper-compare-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.haper-compare-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.haper-compare-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--haper-transition-fast);
}

.haper-compare-action-btn--share {
  background: #ffffff;
  border: 1px solid var(--haper-gold-5, #d4b26a);
  color: var(--haper-gold-7, #867042);
}

.haper-compare-action-btn--share:hover {
  background: var(--haper-gold-5, #d4b26a);
  color: #ffffff;
}

.haper-compare-action-btn--clear {
  background: #ffffff;
  border: 1px solid rgba(182, 197, 214, 0.8);
  color: var(--haper-navy-3, #51617a);
}

.haper-compare-action-btn--clear:hover {
  background: rgba(220, 53, 69, 0.08);
  border-color: #dc3545;
  color: #dc3545;
}

.haper-compare-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid rgba(182, 197, 214, 0.5);
  box-shadow: var(--haper-shadow-sm);
  text-align: center;
  margin-bottom: 40px;
}

.haper-compare-empty__icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(212, 178, 106, 0.12);
  color: var(--haper-gold-5, #d4b26a);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.haper-compare-empty__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--haper-navy-5, #19273b);
  margin-bottom: 10px;
}

.haper-compare-empty__desc {
  font-size: 15px;
  color: var(--haper-navy-3, #51617a);
  max-width: 480px;
  margin-bottom: 28px;
  line-height: 1.6;
}

.haper-compare-empty__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 14px;
  background: var(--haper-gold-5, #d4b26a);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--haper-transition-fast);
}

.haper-compare-empty__btn:hover {
  background: var(--haper-gold-6, #ad9156);
  transform: translateY(-2px);
  color: #ffffff;
}

/* Compare Matrix Table */
.haper-compare-matrix-wrapper {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(182, 197, 214, 0.6);
  box-shadow: 0 8px 24px rgba(25, 39, 59, 0.06);
  overflow: hidden;
  margin-bottom: 40px;
}

.haper-compare-scroll-hint {
  display: none;
  padding: 8px 16px;
  background: rgba(212, 178, 106, 0.1);
  color: var(--haper-gold-7, #867042);
  font-size: 12px;
  text-align: center;
  border-bottom: 1px solid rgba(212, 178, 106, 0.2);
}

.haper-compare-matrix {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.haper-compare-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 900px;
  direction: rtl;
}

.haper-compare-th-label {
  width: 180px;
  min-width: 180px;
  padding: 24px 20px;
  vertical-align: middle;
  background: #f8fafd;
  border-bottom: 1px solid rgba(182, 197, 214, 0.5);
  border-inline-end: 1px solid rgba(182, 197, 214, 0.5);
}

.haper-compare-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.haper-compare-legend__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--haper-navy-5, #19273b);
}

.haper-compare-legend__count {
  font-size: 13px;
  color: var(--haper-gold-6, #ad9156);
  font-weight: 600;
}

.haper-compare-col {
  width: 25%;
  min-width: 220px;
  padding: 20px 16px;
  vertical-align: top;
  border-bottom: 1px solid rgba(182, 197, 214, 0.5);
  border-inline-end: 1px solid rgba(182, 197, 214, 0.35);
  background: #ffffff;
}

.haper-compare-col:last-child {
  border-inline-end: none;
}

/* Compare Card in Header */
.haper-compare-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.haper-compare-remove-btn {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.2);
  color: #dc3545;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all var(--haper-transition-fast);
}

.haper-compare-remove-btn:hover {
  background: #dc3545;
  color: #ffffff;
  transform: scale(1.1);
}

.haper-compare-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 140px;
  margin-bottom: 12px;
}

.haper-compare-card__image img {
  max-height: 130px;
  width: auto;
  object-fit: contain;
  transition: transform var(--haper-transition-fast);
}

.haper-compare-card__image:hover img {
  transform: scale(1.05);
}

.haper-compare-card__badge-wrap {
  margin-bottom: 8px;
}

.haper-compare-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--haper-navy-5, #19273b);
  margin-top: 0;
  margin-bottom: 8px;
  line-height: 1.4;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.haper-compare-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--haper-transition-fast);
}

.haper-compare-card__title a:hover {
  color: var(--haper-gold-6, #ad9156);
}

.haper-compare-card__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
  font-size: 12px;
}

.haper-compare-card__rating-stars {
  color: #f5a623;
  font-size: 14px;
}

.haper-compare-card__rating-cnt {
  color: var(--haper-navy-2, #6c7f99);
}

.haper-compare-card__price {
  font-size: 15px;
  font-weight: 700;
  color: var(--haper-navy-5, #19273b);
  margin-bottom: 8px;
  min-height: 24px;
}

.haper-compare-card__price del {
  color: var(--haper-navy-2, #6c7f99);
  font-size: 12px;
  font-weight: 400;
  margin-inline-end: 6px;
}

.haper-compare-card__price ins {
  text-decoration: none;
  color: var(--haper-gold-6, #ad9156);
}

.haper-compare-card__stock {
  margin-bottom: 12px;
}

.haper-stock-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
}

.haper-stock-status--in-stock {
  background: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.haper-stock-status--out-stock {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.haper-stock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.haper-compare-card__cta {
  width: 100%;
}

.haper-compare-btn-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--haper-navy-5, #19273b);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  transition: all var(--haper-transition-fast);
}

.haper-compare-btn-cart:hover {
  background: var(--haper-gold-5, #d4b26a);
  color: #ffffff;
}

/* Empty Placeholder Slot */
.haper-compare-slot--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  height: 100%;
  border: 2px dashed rgba(182, 197, 214, 0.7);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  background: #fbfcfe;
  position: relative;
}

.haper-compare-plus-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(212, 178, 106, 0.12);
  color: var(--haper-gold-5, #d4b26a);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.haper-compare-empty-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--haper-navy-4, #35445a);
  margin-bottom: 12px;
}

.haper-compare-add-slot-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 10px;
  background: var(--haper-gold-5, #d4b26a);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--haper-transition-fast);
}

.haper-compare-add-slot-btn:hover {
  background: var(--haper-gold-6, #ad9156);
}

/* Live Search Box inside Slot */
.haper-compare-search-box {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 100;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(25, 39, 59, 0.2);
  border: 1px solid var(--haper-gold-5, #d4b26a);
  padding: 8px;
}

.haper-compare-search-input {
  width: 100%;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(182, 197, 214, 0.6);
  padding: 0 10px;
  font-size: 12px;
  direction: rtl;
  box-sizing: border-box;
}

.haper-compare-search-input:focus {
  border-color: var(--haper-gold-5, #d4b26a);
  outline: none;
}

.haper-compare-search-results {
  max-height: 220px;
  overflow-y: auto;
  margin-top: 6px;
}

.haper-compare-search-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  text-align: right;
  transition: background var(--haper-transition-fast);
}

.haper-compare-search-item:hover {
  background: #f0f6fd;
}

.haper-compare-search-item img {
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.haper-compare-search-meta {
  flex: 1;
  min-width: 0;
}

.haper-compare-search-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--haper-navy-5, #19273b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.haper-compare-search-price {
  font-size: 11px;
  color: var(--haper-gold-6, #ad9156);
}

.haper-search-loading,
.haper-search-empty {
  padding: 10px;
  font-size: 12px;
  color: var(--haper-navy-2, #6c7f99);
  text-align: center;
}

/* Specification Comparison Rows */
.haper-compare-row:nth-child(even) {
  background: #f8fafd;
}

.haper-compare-row:hover {
  background: rgba(212, 178, 106, 0.04);
}

.haper-compare-td-label {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(182, 197, 214, 0.35);
  border-inline-end: 1px solid rgba(182, 197, 214, 0.5);
  background: #f8fafd;
}

.haper-compare-attr-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--haper-navy-4, #35445a);
}

.haper-compare-td-val {
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid rgba(182, 197, 214, 0.35);
  border-inline-end: 1px solid rgba(182, 197, 214, 0.25);
  font-size: 13px;
  color: var(--haper-navy-5, #19273b);
}

.haper-compare-td-val:last-child {
  border-inline-end: none;
}

.haper-compare-val-text {
  font-weight: 500;
  line-height: 1.5;
}

.haper-compare-empty-dash {
  color: var(--haper-navy-1, #889cb9);
}

.haper-compare-row--desc .haper-compare-td-val {
  text-align: right;
  line-height: 1.7;
  font-size: 12px;
  color: var(--haper-navy-3, #51617a);
}

@media (max-width: 991px) {
  .haper-compare-scroll-hint {
    display: block;
  }
}


/* ==========================================================================
   Single Product — Related Products (Figma Frame 40767)
   ========================================================================== */
.haper-product-related-container {
  --haper-review-panel: #d9e2ec;
  --haper-review-accent: var(--haper-gold-5);
  margin-top: 8px;
  margin-bottom: 64px;
}

.haper-product-related-container .haper-related-products-heading {
  margin-bottom: 30px;
}

.haper-product-related-container .haper-related-products-view-all {
  flex-direction: row;
  direction: rtl;
  min-height: 40px;
  padding-inline: 12px 14px;
}

.haper-related-products-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 240px));
  gap: 24px;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
}

.haper-product-related-container .haper-product-card--related {
  width: 100%;
  max-width: 240px;
  margin: 0;
}

@media screen and (max-width: 1180px) {
  .haper-related-products-grid {
    grid-template-columns: repeat(4, minmax(0, 240px));
    justify-content: space-around;
  }
}

@media screen and (max-width: 920px) {
  .haper-related-products-grid {
    grid-template-columns: repeat(3, minmax(0, 240px));
  }
}

@media screen and (max-width: 700px) {
  .haper-product-related-container {
    margin-bottom: 48px;
  }

  .haper-product-related-container .haper-related-products-heading {
    margin-bottom: 20px;
  }

  .haper-related-products-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(240px, 82vw);
    grid-template-columns: none;
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .haper-related-products-grid::-webkit-scrollbar {
    display: none;
  }

  .haper-product-related-container .haper-product-card--related {
    scroll-snap-align: start;
  }
}

@media screen and (max-width: 480px) {
  .haper-product-related-container .haper-product-section-heading {
    gap: 12px;
  }

  .haper-product-related-container .haper-product-section-heading__title {
    font-size: 18px;
  }

  .haper-product-related-container .haper-product-section-heading__line {
    width: 20px;
  }

  .haper-product-related-container .haper-related-products-view-all {
    min-height: 36px;
    border-radius: 12px;
    padding-inline: 10px 12px;
    font-size: 12px;
  }
}


/* ==========================================================================
   Shared "View All" button override
   ========================================================================== */
.haper-section-view-all,
.woocommerce .haper-section-view-all {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 127px;
  min-width: 127px;
  max-width: 127px;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0 5px 0 31px;
  border: 0;
  border-radius: 14px;
  background-color: transparent;
  background-image: url("assets/img/common/view-all-button.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 127px 40px;
  box-shadow: none;
  color: #35445a;
  direction: rtl;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  gap: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: opacity 180ms ease;
}

.haper-section-view-all:hover,
.haper-section-view-all:focus-visible,
.woocommerce .haper-section-view-all:hover,
.woocommerce .haper-section-view-all:focus-visible {
  background-color: transparent;
  background-image: url("assets/img/common/view-all-button.svg");
  color: #35445a;
  opacity: 0.94;
}

.haper-section-view-all > svg,
.woocommerce .haper-section-view-all > svg {
  display: none;
}

.haper-section-view-all > span,
.woocommerce .haper-section-view-all > span {
  display: block;
  width: 100%;
  margin: 0;
  text-align: center;
  white-space: nowrap;
}

/* ========================================================================== 
   Product Review Form — exact Figma assets
   ========================================================================== */
#haper-review-form-section .haper-review-product-card {
  background: transparent url("assets/img/single-product/review-product-card-bg.svg") center / 100% 100% no-repeat;
}

#haper-review-form-section .haper-review-submit {
  position: relative;
  display: block;
  width: 158px;
  min-width: 158px;
  max-width: 158px;
  height: 40px;
  min-height: 40px;
  flex: 0 0 158px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: transparent url("assets/img/single-product/review-submit-button.svg") center / 158px 40px no-repeat;
  color: #ffffff;
  box-shadow: none;
}

#haper-review-form-section .haper-review-submit:hover,
#haper-review-form-section .haper-review-submit:focus-visible {
  background-image: url("assets/img/single-product/review-submit-button.svg");
  color: #ffffff;
  opacity: 0.96;
}

#haper-review-form-section .haper-review-submit__arrow {
  display: none;
}

#haper-review-form-section .haper-review-submit__label {
  position: absolute;
  top: 5px;
  right: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 122px;
  height: 30px;
  padding: 0;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 30px;
  text-align: center;
  white-space: nowrap;
}
