:root {
  --gc-bg: #F4EFE8;
  --gc-surface: #FFFCF7;
  --gc-ink: #2A1E1A;
  --gc-accent: #A77A3B;
  /* was #77665D - too light against the cream background for body copy.
     Darkened to match the homepage, which lifts every muted paragraph at once. */
  --gc-muted: #5C4C42;
  --gc-dark: #1D1715;
  /* Promo yellow - shared by the sale badge and the "عرض خاص" chip */
  --gc-sale: #F2C230;
  --gc-line: rgba(42, 30, 26, .16);
  --gc-space-sm: 8px;
  --gc-space-md: 18px;
  --gc-space-lg: 48px;
  --gc-radius-sm: 2px;
  --gc-radius-md: 10px;
}

body.gc-storefront {
  background: var(--gc-bg);
  color: var(--gc-ink);
  direction: rtl;
  font-family: Tajawal, Arial, sans-serif;
  text-align: right;
}

body.gc-storefront :where(h1, h2, h3, h4, p, figure, ul, ol, fieldset) {
  border: 0;
  margin-top: 0;
}

body.gc-storefront :where(button, input, select, textarea) {
  font: inherit;
}

body.gc-storefront .main-title-section-wrapper {
  display: none !important;
}

body.gc-storefront #main,
body.gc-storefront .main-content,
body.gc-storefront .content-wrapper {
  padding-top: 0 !important;
}

body.gc-storefront .container,
body.gc-storefront .main-content > .container,
body.gc-storefront .content-wrapper > .container {
  max-width: 1280px;
}

body.single-product div.product {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  margin: 0 auto;
  max-width: 1240px;
  padding: clamp(30px, 4vw, 60px) 20px 0;
}

body.single-product div.product::before,
body.single-product div.product::after {
  display: none;
}

body.single-product div.product .woocommerce-product-gallery {
  background: var(--gc-surface);
  border: 1px solid var(--gc-line);
  border-radius: var(--gc-radius-md);
  float: none !important;
  grid-column: 1;
  margin: 0 !important;
  padding: 10px;
  width: auto !important;
}

/* Custom gallery: flexslider is disabled (see functions.php), so gallery images
   arrive as a plain stack and storefront.js shows one at a time. */
body.single-product .woocommerce-product-gallery {
  /* WooCommerce ships opacity:0 inline, cleared by the slider JS that no longer runs */
  opacity: 1 !important;
}

body.single-product .woocommerce-product-gallery__wrapper {
  display: block;
  margin: 0;
  padding: 0;
  /* anchor for the centred prev/next controls */
  position: relative;
}

/* !important is required here: with the slider disabled WooCommerce applies its
   own fallback rule
     .woocommerce div.product div.images .woocommerce-product-gallery__image:nth-child(n+2)
     { width:25%; display:inline-block; }
   which out-specifies a plain class selector and leaves every image after the
   first rendered inline at quarter width. */
body.single-product .gc-gallery-ready .woocommerce-product-gallery__image {
  display: none !important;
}

body.single-product .gc-gallery-ready .woocommerce-product-gallery__image.is-active {
  display: block !important;
  float: none !important;
  width: 100% !important;
}

body.single-product .woocommerce-product-gallery__image img {
  /* Source images are 1000x1502 (2:3). The previous 4/5 crop cut ~17% off. */
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  display: block;
  object-fit: cover;
  width: 100%;
}

body.single-product .gc-gallery-thumbs {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 10px;
}

body.single-product .gc-gallery-thumb {
  background: none;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}

body.single-product .gc-gallery-thumb img {
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  width: 100%;
}

body.single-product .gc-gallery-thumb.is-active {
  border-color: var(--gc-accent);
}

body.single-product .gc-gallery-thumb:focus-visible {
  outline: 2px solid var(--gc-accent);
  outline-offset: 2px;
}

body.single-product .flex-control-thumbs {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 10px !important;
}

body.single-product .flex-control-thumbs li {
  float: none !important;
  width: auto !important;
}

body.single-product .flex-control-thumbs img {
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 3px;
  object-fit: cover;
}

body.single-product .flex-control-thumbs img.flex-active {
  border-color: var(--gc-accent);
}

body.single-product div.product .summary {
  align-self: start;
  float: none !important;
  grid-column: 2;
  margin: 0 !important;
  padding-top: clamp(8px, 2vw, 24px);
  width: auto !important;
}

body.single-product div.product .summary .product_title {
  color: var(--gc-ink);
  font-family: Tajawal, Arial, sans-serif;
  /* Was clamp(2rem,3vw,3.15rem) = up to 50px, which dwarfed the 16.5px body copy.
     line-height was 1.1 - far too tight for Arabic ascenders/descenders. */
  font-size: clamp(1.75rem, 2.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 16px;
  max-width: 26ch;
}

.gc-product-title-rating {
  align-items: center;
  color: var(--gc-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: .9rem;
  gap: 7px;
  margin: -6px 0 14px;
}

.gc-product-title-stars {
  color: var(--gc-accent);
  font-size: 1rem;
  letter-spacing: 2px;
  line-height: 1;
}

.gc-product-title-rating strong {
  color: var(--gc-ink);
  font-size: .95rem;
}

.gc-product-title-rating a,
.gc-product-title-rating-label {
  color: var(--gc-muted);
}

.gc-product-title-rating a {
  text-decoration: underline;
  text-decoration-color: rgba(92, 76, 66, .45);
  text-underline-offset: 3px;
}

.gc-product-title-rating a:hover,
.gc-product-title-rating a:focus-visible {
  color: var(--gc-accent);
}

body.single-product div.product .summary .price {
  color: var(--gc-ink);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 700;
  margin-bottom: 18px;
}

body.single-product .woocommerce-product-details__short-description {
  border-block: 1px solid var(--gc-line);
  color: var(--gc-muted);
  font-size: 1rem;
  line-height: 1.85;
  margin: 0;
  max-width: 68ch;
  padding-block: 16px;
}

body.single-product .woocommerce-product-details__short-description > :last-child {
  margin-bottom: 0;
}

/* Delivery + payment reassurance: two icon cards. These are the strongest trust
   signals on the page, so they get real presence rather than fine print. */
.gc-assurance {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 20px 0 22px;
}

.gc-assurance-item {
  align-items: center;
  background: var(--gc-surface);
  border: 1px solid var(--gc-line);
  border-radius: var(--gc-radius-md);
  display: flex;
  gap: 13px;
  padding: 15px 16px;
}

.gc-assurance-icon {
  align-items: center;
  background: var(--gc-bg);
  border-radius: 50%;
  color: var(--gc-accent);
  display: inline-flex;
  flex: 0 0 auto;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.gc-assurance-icon svg {
  fill: none;
  height: 21px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 21px;
}

.gc-assurance-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.gc-assurance strong {
  color: var(--gc-ink);
  font-size: 1.06rem;
  font-weight: 800;
  line-height: 1.35;
}

.gc-assurance small {
  color: var(--gc-muted);
  font-size: .93rem;
  line-height: 1.5;
}

@media (max-width: 420px) {
  .gc-assurance-item {
    gap: 11px;
    padding: 13px;
  }

  .gc-assurance-icon {
    height: 36px;
    width: 36px;
  }

  .gc-assurance strong {
    font-size: 1rem;
  }
}

body.single-product form.cart,
body.single-product form.variations_form {
  margin-top: 0 !important;
}

body.single-product table.variations {
  display: block;
  margin: 0 0 18px !important;
}

body.single-product table.variations tbody,
body.single-product table.variations tr,
body.single-product table.variations th,
body.single-product table.variations td {
  display: block;
  padding: 0 !important;
  text-align: right !important;
  width: 100% !important;
}

body.single-product table.variations th.label {
  color: var(--gc-ink);
  font-weight: 700;
  margin-bottom: 10px;
}

body.single-product table.variations select {
  border: 1px solid var(--gc-line);
  border-radius: var(--gc-radius-sm);
  min-height: 48px;
  width: 100%;
}

body.single-product .variable-items-wrapper {
  display: flex !important;
  flex-wrap: wrap;
  gap: 9px;
}

body.single-product .variable-item.button-variable-item {
  align-items: center;
  background: var(--gc-surface) !important;
  border: 1px solid var(--gc-line) !important;
  border-radius: var(--gc-radius-sm) !important;
  box-shadow: none !important;
  color: var(--gc-ink) !important;
  display: inline-flex;
  justify-content: center;
  margin: 0 !important;
  min-height: 46px;
  min-width: 58px;
  padding: 8px 14px !important;
}

body.single-product .variable-item.button-variable-item:hover,
body.single-product .variable-item.button-variable-item:focus-visible,
body.single-product .variable-item.button-variable-item.selected {
  background: var(--gc-ink) !important;
  border-color: var(--gc-ink) !important;
  color: var(--gc-surface) !important;
}

body.single-product .variable-item.button-variable-item.disabled {
  cursor: not-allowed;
  opacity: .35;
  text-decoration: line-through;
}

body.single-product .reset_variations {
  color: var(--gc-muted) !important;
  display: inline-block !important;
  font-size: .88rem;
  margin-top: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Grid layout for these containers is defined once, further down under
   "Purchase controls" - that block sits later in the file and would otherwise
   override anything set here. Only the ordering lives at this point. */
body.single-product .woocommerce-variation-add-to-cart .quantity,
body.single-product form.cart:not(.variations_form) .quantity {
  grid-column: 1 / -1;
  order: 1;
}

body.single-product .gc-buy-now {
  order: 2;
}

body.single-product .single_add_to_cart_button {
  order: 3;
}

body.single-product .gc-whatsapp-order {
  grid-column: 1 / -1;
  order: 4;
}

body.single-product .gc-purchase-feedback {
  grid-column: 1 / -1;
  order: 5;
}

body.single-product .quantity.quantity-with-plusminus,
body.single-product form.cart .quantity {
  display: flex !important;
  margin: 0 !important;
  width: 112px !important;
}

body.single-product .quantity .qty,
body.single-product .quantity input {
  border-color: var(--gc-line) !important;
  min-height: 52px;
}

body.single-product .single_add_to_cart_button,
body.single-product .gc-whatsapp-order,
body.single-product .gc-buy-now {
  align-items: center;
  border-radius: 4px !important;
  box-shadow: none !important;
  display: inline-flex !important;
  font-family: Tajawal, Arial, sans-serif;
  font-weight: 700 !important;
  justify-content: center;
  line-height: 1.25 !important;
  margin: 0 !important;
  min-height: 52px;
  padding: 11px 16px !important;
  white-space: normal;
  width: 100%;
}

/* Primary CTA */
body.single-product .gc-buy-now {
  background: var(--gc-accent) !important;
  border: 1px solid var(--gc-accent) !important;
  color: #FFFCF7 !important;
}

body.single-product .gc-buy-now:hover,
body.single-product .gc-buy-now:focus-visible {
  background: var(--gc-dark) !important;
  border-color: var(--gc-dark) !important;
  color: var(--gc-surface) !important;
}

/* Secondary CTA */
body.single-product .gc-whatsapp-order {
  background: transparent !important;
  border: 1px solid var(--gc-ink) !important;
  color: var(--gc-ink) !important;
}

body.single-product .gc-whatsapp-order:hover,
body.single-product .gc-whatsapp-order:focus-visible {
  background: var(--gc-ink) !important;
  border-color: var(--gc-ink) !important;
  color: var(--gc-surface) !important;
}

/* Secondary - icon only. The label is emptied in functions.php, leaving the
   parent theme's bag glyph from .single_add_to_cart_button:before. */
body.single-product .single_add_to_cart_button {
  background: transparent !important;
  border: 1px solid var(--gc-line) !important;
  color: var(--gc-ink) !important;
  min-width: 56px;
  padding: 11px !important;
  width: 56px !important;
}

/* The glyph carries a right margin meant to separate it from label text */
body.single-product .single_add_to_cart_button::before {
  font-size: 19px;
  margin: 0 !important;
  vertical-align: middle !important;
}

body.single-product .single_add_to_cart_button:hover,
body.single-product .single_add_to_cart_button:focus-visible {
  background: var(--gc-ink) !important;
  border-color: var(--gc-ink) !important;
  color: var(--gc-surface) !important;
}

body.single-product .gc-whatsapp-order.is-disabled {
  cursor: not-allowed;
  opacity: .52;
}

.gc-purchase-feedback {
  color: var(--gc-dark);
  font-size: .9rem;
  grid-column: 1 / -1;
}

body.single-product .product_meta {
  border-top: 1px solid var(--gc-line);
  color: var(--gc-muted);
  font-size: .9rem;
  margin-top: 22px;
  padding-top: 16px;
}

body.single-product .product_meta .sku_wrapper,
body.post-type-archive-product .product-loop-sorting > .product-loop-sorting-item,
body.post-type-archive-product > .site-main > .woocommerce-result-count,
body.post-type-archive-product > .site-main > .woocommerce-ordering,
body.post-type-archive-product .woocommerce-products-header + .woocommerce-result-count,
body.post-type-archive-product .woocommerce-products-header + .woocommerce-ordering {
  display: none;
}

body.single-product .woocommerce-tabs,
body.single-product .gc-size-reference,
body.single-product .related.products {
  grid-column: 1 / -1;
}

body.single-product .woocommerce-tabs {
  border-top: 1px solid var(--gc-line);
  margin-top: clamp(46px, 7vw, 84px);
  padding-top: 22px;
}

body.single-product .woocommerce-tabs ul.tabs {
  border: 0 !important;
  display: flex;
  gap: 24px;
  justify-content: flex-start;
  margin: 0 0 28px !important;
  padding: 0 !important;
}

body.single-product .woocommerce-tabs ul.tabs::before,
body.single-product .woocommerce-tabs ul.tabs li::before,
body.single-product .woocommerce-tabs ul.tabs li::after {
  display: none !important;
}

body.single-product .woocommerce-tabs ul.tabs li {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 0 8px !important;
}

body.single-product .woocommerce-tabs ul.tabs li.active {
  border-bottom-color: var(--gc-accent) !important;
}

body.single-product .woocommerce-tabs .panel {
  color: var(--gc-muted);
  font-size: 1rem;
  line-height: 1.9;
  margin: 0 auto !important;
  max-width: 930px;
  padding: 0 !important;
}

body.single-product .woocommerce-tabs .panel h2,
body.single-product .woocommerce-tabs .panel h3 {
  color: var(--gc-ink);
  font-family: Tajawal, Arial, sans-serif;
  line-height: 1.15;
}

body.single-product .woocommerce-tabs .panel ul {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  padding: 0;
}

body.single-product .woocommerce-tabs .panel li {
  border-top: 1px solid var(--gc-line);
  color: var(--gc-ink);
  padding: 14px 0;
}

body.single-product .woocommerce-tabs .panel li:nth-child(odd) {
  padding-left: 22px;
}

body.single-product .woocommerce-tabs .gc-delivery-tab li {
  display: grid;
  gap: 4px;
}

body.single-product .woocommerce-tabs .gc-delivery-tab li strong {
  color: var(--gc-ink);
}

body.single-product .woocommerce-tabs .gc-delivery-tab li span {
  color: var(--gc-muted);
}

.gc-size-reference {
  align-items: center;
  background: var(--gc-surface);
  border: 1px solid var(--gc-line);
  border-radius: var(--gc-radius-md);
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 44px;
  padding: clamp(22px, 4vw, 38px);
}

.gc-size-reference h2 {
  color: var(--gc-ink);
  font-family: Tajawal, Arial, sans-serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.15;
  margin-bottom: 8px;
}

.gc-size-reference p {
  color: var(--gc-muted);
  margin-bottom: 0;
}

.gc-size-reference ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gc-size-reference li {
  align-items: center;
  border: 1px solid var(--gc-line);
  border-radius: var(--gc-radius-sm);
  display: inline-flex;
  justify-content: center;
  min-height: 42px;
  min-width: 48px;
  padding: 6px 12px;
}

body.single-product .related.products {
  border-top: 1px solid var(--gc-line);
  margin-top: clamp(52px, 8vw, 92px) !important;
  padding-top: 30px;
}

body.single-product .related.products > h2 {
  color: var(--gc-ink);
  font-family: Tajawal, Arial, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.15;
  margin-bottom: 28px;
  text-align: right;
}

body.gc-storefront ul.products {
  display: grid !important;
  gap: clamp(18px, 2.5vw, 34px) !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 !important;
}

body.gc-storefront ul.products::before,
body.gc-storefront ul.products::after {
  display: none !important;
}

body.gc-storefront ul.products li.product {
  background: transparent;
  display: flex;
  flex-direction: column;
  float: none !important;
  margin: 0 !important;
  min-width: 0;
  padding: 0 !important;
  text-align: right !important;
  width: auto !important;
}

body.gc-storefront ul.products li.product .woocommerce-loop-product__link,
body.gc-storefront ul.products li.product .product-thumb,
body.gc-storefront ul.products li.product .product-thumb-content {
  display: block;
  overflow: hidden;
  position: relative;
}

body.gc-storefront ul.products li.product img {
  aspect-ratio: 4 / 5;
  display: block;
  margin: 0 0 14px !important;
  object-fit: cover;
  transition: opacity .22s ease, transform .32s ease;
  width: 100% !important;
}

body.gc-storefront ul.products li.product .gc-product-image-secondary {
  inset: 0 0 auto;
  opacity: 0;
  position: absolute;
  z-index: 2;
}

@media (hover: hover) {
  body.gc-storefront ul.products li.product:hover .gc-product-image-secondary,
  body.gc-storefront ul.products li.product:focus-within .gc-product-image-secondary {
    opacity: 1;
    transform: scale(1.015);
  }
}

body.gc-storefront ul.products li.product :where(.product-thumb-overlay, .product-overlay, .wdt-product-overlay) {
  display: none !important;
}

body.gc-storefront ul.products li.product .woocommerce-loop-product__title,
body.gc-storefront ul.products li.product h2,
body.gc-storefront ul.products li.product h3 {
  color: var(--gc-ink);
  font-family: Tajawal, Arial, sans-serif;
  font-size: 1.05rem !important;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 7px !important;
}

body.gc-storefront ul.products li.product .price {
  color: var(--gc-ink) !important;
  font-size: 1rem !important;
  font-weight: 700;
  margin-top: auto;
}

body.gc-storefront ul.products li.product .button {
  border-radius: var(--gc-radius-sm);
  margin-top: 10px;
}

.gc-catalog-tools {
  margin: 0 auto clamp(30px, 5vw, 56px);
  max-width: 1240px;
  padding: clamp(28px, 4vw, 52px) 20px 0;
}

.gc-catalog-heading {
  align-items: end;
  border-bottom: 1px solid var(--gc-line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding-bottom: 20px;
}

.gc-catalog-heading h1 {
  color: var(--gc-ink);
  font-family: Tajawal, Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
  margin-bottom: 8px;
}

.gc-catalog-heading p {
  color: var(--gc-muted);
  margin-bottom: 0;
}

.gc-filter-toggle {
  background: var(--gc-ink);
  border: 1px solid var(--gc-ink);
  border-radius: var(--gc-radius-sm);
  color: var(--gc-surface);
  display: none;
  min-height: 46px;
  padding: 9px 18px;
}

.gc-filter-panel {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
  padding-top: 20px;
}

.gc-filter-panel label,
.gc-price-filter {
  display: grid;
  gap: 6px;
  margin: 0;
  min-width: 0;
}

.gc-filter-panel label > span,
.gc-price-filter legend {
  color: var(--gc-muted);
  font-size: .83rem;
  font-weight: 700;
}

.gc-filter-panel select,
.gc-filter-panel input {
  background: var(--gc-surface);
  border: 1px solid var(--gc-line);
  border-radius: var(--gc-radius-sm);
  color: var(--gc-ink);
  min-height: 46px;
  padding: 8px 11px;
  width: 100%;
}

.gc-price-filter {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gc-price-filter legend {
  grid-column: 1 / -1;
}

.gc-filter-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.gc-filter-actions .button {
  background: var(--gc-accent) !important;
  border: 1px solid var(--gc-accent) !important;
  border-radius: var(--gc-radius-sm) !important;
  color: var(--gc-ink) !important;
  min-height: 46px;
  white-space: nowrap;
}

.gc-filter-actions a {
  color: var(--gc-muted);
  font-size: .86rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.gc-active-filters {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
}

.gc-active-filters strong {
  font-size: .86rem;
}

.gc-active-filters span {
  background: var(--gc-surface);
  border: 1px solid var(--gc-line);
  border-radius: var(--gc-radius-sm);
  color: var(--gc-muted);
  font-size: .82rem;
  padding: 5px 9px;
}

body.post-type-archive-product .products,
body.tax-product_cat .products,
body.tax-product_tag .products {
  margin-inline: auto !important;
  max-width: 1240px;
  padding-inline: 20px;
}

.gc-empty-products {
  border-block: 1px solid var(--gc-line);
  margin: 42px auto;
  max-width: 760px;
  padding: 44px 20px;
  text-align: center;
}

.gc-empty-products h2 {
  color: var(--gc-ink);
  font-family: Tajawal, Arial, sans-serif;
}

.gc-empty-products p {
  color: var(--gc-muted);
}

body.gc-storefront :focus-visible {
  outline: 3px solid rgba(167, 122, 59, .48) !important;
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  body.single-product div.product {
    gap: 34px;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  }

  body.gc-storefront ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gc-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body.single-product div.product {
    display: block;
    padding: 22px 16px 0;
  }

  body.single-product div.product .summary {
    padding-top: 28px;
  }

  body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
    display: grid !important;
    gap: 8px !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  body.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
    float: none !important;
    margin: 0 !important;
    width: auto !important;
  }

  body.single-product div.product .summary .product_title {
    /* was clamp(1.8rem,8vw,2.5rem) = up to 40px, i.e. larger than the desktop size */
    font-size: clamp(1.5rem, 5.5vw, 1.95rem);
    line-height: 1.4;
    max-width: none;
  }

  body.single-product .woocommerce-variation-add-to-cart,
  body.single-product form.cart:not(.variations_form) {
    grid-template-columns: minmax(0, 1fr) 56px;
  }

  body.single-product .quantity.quantity-with-plusminus,
  body.single-product form.cart .quantity {
    grid-column: 1 / -1;
    width: 100% !important;
  }

  body.single-product .quantity .qty {
    flex: 1;
  }

  body.single-product .woocommerce-tabs .panel ul {
    grid-template-columns: 1fr;
  }

  body.single-product .woocommerce-tabs .panel li:nth-child(odd) {
    padding-left: 0;
  }

  body.single-product .woocommerce-tabs .panel,
  body.single-product .woocommerce-tabs .panel :where(h2, h3, p, ul, li) {
    direction: rtl;
    text-align: right;
  }

  .gc-size-reference {
    grid-template-columns: 1fr;
  }

  .gc-filter-toggle {
    display: inline-flex;
  }

  .gc-filter-panel {
    background: var(--gc-surface);
    border: 1px solid var(--gc-line);
    display: none;
    grid-template-columns: 1fr;
    margin-top: 16px;
    padding: 18px;
  }

  .gc-filter-panel.is-open {
    display: grid;
  }

  .gc-price-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gc-filter-actions {
    justify-content: space-between;
  }
}

@media (max-width: 520px) {
  .gc-assurance {
    grid-template-columns: 1fr;
  }

  /* Keep the CTA and the cart icon on one row even here - a lone 56px square on
     its own line reads as a stray element. Quantity takes the row above. */
  body.single-product .woocommerce-variation-add-to-cart,
  body.single-product form.cart:not(.variations_form) {
    grid-template-columns: minmax(0, 1fr) 56px;
  }

  body.single-product .quantity.quantity-with-plusminus,
  body.single-product form.cart .quantity {
    grid-column: 1 / -1;
  }

  body.gc-storefront ul.products {
    gap: 24px 12px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.gc-storefront ul.products li.product .woocommerce-loop-product__title,
  body.gc-storefront ul.products li.product h2,
  body.gc-storefront ul.products li.product h3 {
    font-size: .92rem !important;
  }

  .gc-catalog-tools {
    padding-inline: 16px;
  }

  .gc-catalog-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.gc-storefront *,
  body.gc-storefront *::before,
  body.gc-storefront *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* Purchase controls.
   Row 1: quantity (full width - it carries its own "الكمية" label)
   Row 2: [ اطلبي الآن ][ cart icon ]
   Row 3: اطلبي عبر واتساب (full width)
   Placement is driven by `order` + grid-column near the top of this file. */
body.single-product .woocommerce-variation-add-to-cart,
body.single-product form.cart:not(.variations_form) {
  align-items: stretch;
  display: grid !important;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 56px;
  margin-top: 16px;
}

body.single-product .quantity.quantity-with-plusminus,
body.single-product form.cart .quantity {
  align-items: stretch;
  background: var(--gc-surface);
  border: 1px solid var(--gc-line);
  display: flex !important;
  min-height: 52px;
  width: 100% !important;
}

body.single-product .quantity.quantity-with-plusminus::before,
body.single-product form.cart .quantity::before {
  align-items: center;
  color: var(--gc-ink);
  content: "الكمية";
  display: inline-flex;
  flex: 1 1 auto;
  font-weight: 700;
  padding-inline: 16px;
}

body.single-product .quantity :is(.qty, input[type="number"]) {
  background: var(--gc-surface) !important;
  border-block: 0 !important;
  border-inline: 1px solid var(--gc-line) !important;
  color: var(--gc-ink) !important;
  min-height: 50px;
  text-align: center;
  width: 56px !important;
}

body.single-product .quantity :is(button, input.plus, input.minus, .plus, .minus) {
  background: var(--gc-surface) !important;
  border: 0 !important;
  color: var(--gc-ink) !important;
  min-height: 50px;
  min-width: 52px;
}

body.single-product .single_add_to_cart_button,
body.single-product .gc-whatsapp-order {
  min-height: 56px;
  white-space: nowrap;
}

body.single-product .single_add_to_cart_button {
  font-size: 1.05rem;
}

body.single-product .gc-whatsapp-order {
  background: var(--gc-surface) !important;
}

@media (max-width: 520px) {
  body.single-product .quantity.quantity-with-plusminus,
  body.single-product form.cart .quantity {
    grid-column: auto;
  }
}

/* Product gallery navigation follows the storefront's quiet, editorial controls. */
body.single-product div.product .woocommerce-product-gallery {
  position: relative;
}

/* Vertically centred on the main image, one arrow per edge. Anchored to the
   __wrapper (not the gallery) so the thumbnail strip below doesn't drag the
   midpoint down. */
body.single-product .gc-gallery-controls {
  align-items: center;
  bottom: auto;
  display: flex;
  inset-inline: 14px;
  justify-content: space-between;
  /* let clicks through to the image everywhere except the buttons themselves */
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}

body.single-product .gc-gallery-control {
  pointer-events: auto;
}

/* The theme prints both a "Sale" and a "New" badge on the single product; one is
   enough, and Sale is the commercially useful one. */
body.single-product .product-labels .new,
body.single-product .product-labels .featured-tag {
  display: none !important;
}

/* Sale badge: yellow pill, black text, actually legible.
 *
 * Everything here needs !important because the parent theme hardcodes
 *   .woocommerce span.onsale { background-color: var(--wdtPrimaryColor) !important }
 * and sizes the label at font-size:10px with letter-spacing:1px. That letter
 * spacing is particularly bad in Arabic: it pulls apart letters that are meant
 * to join, so "تخفيض" renders as disconnected glyphs. The theme also squeezes
 * the label into a small circle, which is why it read as cramped and unclear.
 */
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale,
.woocommerce ul.products li.product .product-labels > span.onsale,
body.single-product .product-labels .onsale,
body.woocommerce.single-product div.product .onsale {
  align-items: center !important;
  background-color: var(--gc-sale) !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 10px rgba(42, 30, 26, .18);
  color: var(--gc-dark) !important;
  display: inline-flex !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  height: auto !important;
  justify-content: center !important;
  letter-spacing: normal !important;
  line-height: 1.2 !important;
  min-height: 0 !important;
  min-width: 0 !important;
  padding: 9px 18px !important;
  text-transform: none !important;
  width: auto !important;
}

/* Inner <span> carries the text; the theme forces it to width:100% which
   squashes it inside the circle. */
.woocommerce span.onsale span,
.woocommerce ul.products li.product .product-labels span.onsale span,
body.single-product .product-labels .onsale span,
body.woocommerce.single-product div.product .onsale span {
  color: var(--gc-dark) !important;
  display: inline !important;
  font-size: inherit !important;
  letter-spacing: normal !important;
  line-height: inherit !important;
  width: auto !important;
}

/* Hover state also has a hardcoded green in the parent theme */
.woocommerce ul.products li.product:hover .onsale {
  background-color: var(--gc-sale) !important;
}

/* Keep the badge off the very corner of the image */
body.single-product .product-labels {
  margin: 12px !important;
}

body.single-product .gc-gallery-control {
  align-items: center;
  background: rgba(255, 252, 247, .94);
  border: 1px solid var(--gc-line);
  border-radius: var(--gc-radius-sm);
  color: var(--gc-ink);
  display: inline-flex;
  font-family: Tajawal, Arial, sans-serif;
  font-size: 1.8rem;
  height: 42px;
  justify-content: center;
  line-height: 1;
  padding: 0 4px 4px;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
  width: 42px;
}

body.single-product .gc-gallery-control:hover,
body.single-product .gc-gallery-control:focus-visible {
  background: var(--gc-ink);
  border-color: var(--gc-ink);
  color: var(--gc-surface);
}

@media (max-width: 520px) {
  body.single-product .gc-gallery-controls {
    bottom: 16px;
    inset-inline-start: 16px;
  }
}

/* Reused homepage trust and customer-review content on product pages. */
.gc-product-confidence,
.gc-product-reviews {
  border-top: 1px solid var(--gc-line);
  grid-column: 1 / -1;
  margin-top: clamp(52px, 8vw, 92px);
  padding-top: clamp(28px, 4vw, 46px);
}

.gc-product-confidence {
  align-items: start;
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
}

.gc-product-section-intro h2,
.gc-product-reviews-heading h2 {
  color: var(--gc-ink);
  font-family: Tajawal, Arial, sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.12;
  margin: 0 0 12px;
}

.gc-product-section-intro p {
  color: var(--gc-muted);
  line-height: 1.85;
  margin: 0;
  max-width: 40ch;
}

.gc-confidence-list {
  border-top: 1px solid var(--gc-line);
}

.gc-confidence-list article {
  align-items: start;
  border-bottom: 1px solid var(--gc-line);
  display: grid;
  gap: 16px;
  grid-template-columns: 42px minmax(0, 1fr);
  padding: 18px 0;
}

.gc-confidence-index {
  color: var(--gc-accent);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.5;
}

.gc-confidence-list h3 {
  color: var(--gc-ink);
  font-size: 1.08rem;
  margin: 0 0 4px;
}

.gc-confidence-list p {
  color: var(--gc-muted);
  line-height: 1.7;
  margin: 0;
}

.gc-product-reviews {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
}

.gc-product-reviews-heading > p {
  color: var(--gc-muted);
  font-size: .88rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.gc-product-rating {
  align-items: center;
  color: var(--gc-accent);
  display: flex;
  gap: 8px;
}

.gc-product-rating strong {
  color: var(--gc-ink);
  font-size: 1.35rem;
}

.gc-product-rating span {
  letter-spacing: 2px;
}

.gc-product-review-list {
  display: grid;
  gap: 0;
}

.gc-product-review-list blockquote {
  border-top: 1px solid var(--gc-line);
  margin: 0;
  padding: 20px 0;
}

.gc-product-review-list blockquote:last-child {
  border-bottom: 1px solid var(--gc-line);
}

.gc-product-review-list blockquote p {
  color: var(--gc-ink);
  font-size: 1.04rem;
  line-height: 1.85;
  margin: 0 0 12px;
}

.gc-product-review-list footer {
  align-items: center;
  color: var(--gc-muted);
  display: flex;
  font-size: .88rem;
  gap: 8px;
}

.gc-product-review-list footer strong {
  color: var(--gc-ink);
}

.gc-product-review-list footer span::before {
  content: "·";
  margin-inline-end: 8px;
}

@media (max-width: 820px) {
  .gc-product-confidence,
  .gc-product-reviews {
    grid-template-columns: 1fr;
  }

  .gc-product-section-intro p {
    max-width: none;
  }
}

/* Homepage component styling, reused faithfully on product pages. */
.gc-product-confidence {
  padding: 92px 0;
}

.gc-product-confidence-grid {
  align-items: center;
  display: grid;
  gap: 72px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
}

.gc-product-confidence h2 {
  color: var(--gc-ink);
  font-family: Tajawal, Arial, sans-serif;
  font-size: clamp(2rem, 3.4vw, 3.125rem);
  line-height: 1.15;
  margin: 0 0 18px;
}

.gc-product-confidence > .gc-product-confidence-grid > div:first-child > p {
  color: var(--gc-muted);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 2;
  margin: 0;
}

.gc-product-points {
  border-top: 1px solid var(--gc-line);
}

.gc-product-point {
  display: grid;
  gap: 16px;
  grid-template-columns: 44px minmax(0, 1fr);
  padding: 22px 0;
}

.gc-product-point + .gc-product-point {
  border-top: 1px solid var(--gc-line);
}

.gc-product-point > b {
  color: var(--gc-accent);
  font-size: 1.4375rem;
  font-weight: 500;
}

.gc-product-point h3 {
  color: var(--gc-ink);
  font-size: 1.125rem;
  margin: 0 0 5px;
}

.gc-product-point p {
  color: var(--gc-muted);
  font-size: .9375rem;
  line-height: 1.6;
  margin: 0;
}

.gc-product-customer-reviews {
  background: var(--gc-surface);
  grid-column: 1 / -1;
  margin-top: clamp(52px, 8vw, 92px);
  padding: 94px clamp(22px, 5vw, 60px);
}

.gc-product-reviews-heading {
  align-items: end;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  margin-bottom: 34px;
}

.gc-product-reviews-heading > div:first-child > p {
  color: var(--gc-muted);
  font-size: .9rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.gc-product-reviews-heading h2 {
  color: var(--gc-ink);
  font-family: Tajawal, Arial, sans-serif;
  font-size: clamp(1.875rem, 3.6vw, 3.25rem);
  line-height: 1.25;
  margin: 0;
  max-width: 16ch;
}

.gc-product-review-summary {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 250px;
  text-align: left;
}

.gc-product-review-summary strong {
  color: var(--gc-accent);
  font-size: 3.25rem;
  line-height: 1;
}

.gc-product-review-summary small {
  color: var(--gc-muted);
  font-size: .75rem;
  width: 100%;
}

.gc-product-stars {
  color: var(--gc-accent);
  font-size: 1.6rem;
  letter-spacing: 4px;
  line-height: 1;
}

/* Slightly smaller inside the cards, where they sit above the quote rather than
   next to the 4.8 headline figure. */
.gc-product-review-card .gc-product-stars {
  font-size: 1.32rem;
  margin-bottom: 12px;
}

@media (max-width: 520px) {
  .gc-product-stars {
    font-size: 1.4rem;
    letter-spacing: 3px;
  }

  .gc-product-review-card .gc-product-stars {
    font-size: 1.2rem;
  }
}

/* Review carousel - native scroll-snap, matching the homepage. */
.gc-product-review-carousel {
  position: relative;
}

.gc-product-review-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gc-product-review-track::-webkit-scrollbar {
  display: none;
}

.gc-product-review-nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

/* The theme styles bare <button> as a dark filled rectangle, which out-weighs a
   plain class selector - hence !important and the extra parent qualifier. */
.gc-product-review-nav button.gc-product-review-btn,
body.single-product .gc-product-review-nav .gc-product-review-btn {
  align-items: center !important;
  background: transparent !important;
  border: 1px solid var(--gc-accent) !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  color: var(--gc-accent) !important;
  cursor: pointer;
  display: inline-flex !important;
  flex: 0 0 auto;
  height: 44px !important;
  justify-content: center !important;
  line-height: 1 !important;
  min-height: 0 !important;
  min-width: 0 !important;
  padding: 0 !important;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  width: 44px !important;
}

.gc-product-review-nav button.gc-product-review-btn:hover,
body.single-product .gc-product-review-nav .gc-product-review-btn:hover {
  background: var(--gc-accent) !important;
  border-color: var(--gc-accent) !important;
  color: var(--gc-surface) !important;
}

.gc-product-review-nav button.gc-product-review-btn:focus-visible {
  outline: 2px solid var(--gc-accent);
  outline-offset: 3px;
}

.gc-product-review-nav .gc-product-review-btn svg {
  fill: none !important;
  height: 16px;
  stroke: currentColor !important;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 16px;
}

.gc-product-review-card {
  background: var(--gc-bg);
  border: 1px solid var(--gc-line);
  border-radius: var(--gc-radius-md);
  display: flex;
  flex: 0 0 calc((100% - 36px) / 3);
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
  padding: 27px;
  scroll-snap-align: start;
}

/* Product-page FAQ accordion */
.gc-product-faq {
  margin-top: 46px;
}

.gc-product-faq-head {
  margin-bottom: 22px;
}

.gc-product-faq-head h2 {
  color: var(--gc-ink);
  font-family: Tajawal, Arial, sans-serif;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 10px;
}

.gc-product-faq-lede {
  color: var(--gc-muted);
  font-size: .98rem;
  line-height: 1.8;
  margin: 0;
}

.gc-product-faq-lede a {
  color: var(--gc-accent);
  text-decoration: underline;
}

.gc-product-faq-list {
  border-top: 1px solid var(--gc-line);
}

.gc-product-faq-item {
  border-bottom: 1px solid var(--gc-line);
}

.gc-product-faq-item summary {
  align-items: center;
  color: var(--gc-ink);
  cursor: pointer;
  display: flex;
  font-family: Tajawal, Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  gap: 16px;
  justify-content: space-between;
  line-height: 1.6;
  list-style: none;
  padding: 20px 0;
  transition: color .2s ease;
}

.gc-product-faq-item summary::-webkit-details-marker {
  display: none;
}

.gc-product-faq-item summary:hover,
.gc-product-faq-item[open] summary {
  color: var(--gc-accent);
}

.gc-product-faq-item summary:focus-visible {
  outline: 2px solid var(--gc-accent);
  outline-offset: 4px;
}

.gc-product-faq-item summary::after {
  border-block-end: 2px solid var(--gc-accent);
  border-inline-end: 2px solid var(--gc-accent);
  content: '';
  flex: 0 0 auto;
  height: 9px;
  margin-top: -5px;
  transform: rotate(45deg);
  transition: transform .25s ease, margin-top .25s ease;
  width: 9px;
}

.gc-product-faq-item[open] summary::after {
  margin-top: 4px;
  transform: rotate(-135deg);
}

.gc-product-faq-item > p {
  color: var(--gc-muted);
  font-size: .99rem;
  line-height: 1.95;
  margin: 0;
  padding: 0 0 22px;
}

@media (prefers-reduced-motion: reduce) {
  .gc-product-faq-item summary::after {
    transition: none;
  }
}

.gc-product-review-card.featured {
  background: var(--gc-dark);
  border-color: var(--gc-dark);
}

.gc-product-review-card p {
  color: var(--gc-ink);
  font-size: 1.0625rem;
  line-height: 1.9;
  margin: 20px 0;
}

.gc-product-review-card footer {
  border-top: 1px solid var(--gc-line);
  display: block;
  padding-top: 15px;
}

.gc-product-review-card footer b,
.gc-product-review-card footer span {
  display: block;
}

.gc-product-review-card footer b {
  color: var(--gc-ink);
  font-size: .9375rem;
}

.gc-product-review-card footer span {
  color: var(--gc-muted);
  font-size: .8125rem;
  margin-top: 4px;
}

.gc-product-review-card.featured p,
.gc-product-review-card.featured footer b {
  color: var(--gc-surface);
}

.gc-product-review-card.featured footer {
  border-color: rgba(255, 252, 247, .25);
}

.gc-product-review-card.featured footer span {
  color: rgba(255, 252, 247, .78);
}

@media (max-width: 820px) {
  .gc-product-confidence {
    padding: 60px 0;
  }

  .gc-product-confidence-grid,
  /* One review at a time, next card peeking to signal it's swipeable */
  .gc-product-review-card {
    flex: 0 0 86%;
    min-height: 0;
    padding: 22px;
  }

  .gc-product-faq-item summary {
    font-size: .97rem;
    padding: 17px 0;
  }

  .gc-product-confidence-grid {
    gap: 14px;
  }

  .gc-product-customer-reviews {
    padding: 60px 22px;
  }

  .gc-product-reviews-heading {
    display: block;
  }

  .gc-product-review-summary {
    margin-top: 20px;
    text-align: right;
  }

  .gc-product-review-card {
    min-height: auto;
  }
}

/* A globally consistent product-card path to the full product page. */
body.gc-storefront ul.products li.product .product-thumb > a.image {
  cursor: pointer;
  display: block;
}

body.gc-storefront ul.products li.product .product-thumb > a.image:focus-visible {
  outline: 3px solid rgba(167, 122, 59, .48);
  outline-offset: -6px;
}

body.gc-storefront ul.products li.product .gc-product-details-button {
  align-items: center;
  background: var(--gc-accent) !important;
  border: 1px solid var(--gc-accent) !important;
  border-radius: var(--gc-radius-sm) !important;
  color: var(--gc-ink) !important;
  display: inline-flex;
  font-family: Tajawal, Arial, sans-serif;
  font-size: .95rem;
  font-weight: 700;
  justify-content: center;
  margin-top: 14px;
  min-height: 46px;
  padding: 9px 16px;
  text-decoration: none;
  width: 100%;
}

body.gc-storefront ul.products li.product .gc-product-details-button:hover,
body.gc-storefront ul.products li.product .gc-product-details-button:focus-visible {
  background: var(--gc-ink) !important;
  border-color: var(--gc-ink) !important;
  color: var(--gc-surface) !important;
}

/* Archive/category rendering can bypass the standard WooCommerce loop hook. */
.woocommerce ul.products li.product .gc-product-image-link,
.woocommerce ul.products li.product .product-thumb > a.image {
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 4;
}

.woocommerce ul.products li.product .gc-product-image-link:focus-visible,
.woocommerce ul.products li.product .product-thumb > a.image:focus-visible {
  outline: 3px solid rgba(167, 122, 59, .48);
  outline-offset: -6px;
}

.woocommerce ul.products li.product .gc-product-details-button {
  align-items: center;
  background: var(--gc-accent) !important;
  border: 1px solid var(--gc-accent) !important;
  border-radius: var(--gc-radius-sm) !important;
  color: var(--gc-ink) !important;
  display: inline-flex !important;
  font-family: Tajawal, Arial, sans-serif;
  font-size: .95rem;
  font-weight: 700;
  justify-content: center;
  margin-top: 14px;
  min-height: 46px;
  padding: 9px 16px;
  text-decoration: none;
  width: 100%;
}

.woocommerce ul.products li.product .gc-product-details-button:hover,
.woocommerce ul.products li.product .gc-product-details-button:focus-visible {
  background: var(--gc-ink) !important;
  border-color: var(--gc-ink) !important;
  color: var(--gc-surface) !important;
}

/* Product-detail hierarchy: price, verified offers, and readable summary copy. */
body.single-product div.product .summary .price {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  line-height: 1.2;
}

body.single-product div.product .summary .price del {
  color: var(--gc-muted);
  font-size: 1.05rem;
  font-weight: 400;
  opacity: .9;
}

body.single-product div.product .summary .price ins {
  color: var(--gc-accent);
  font-size: clamp(1.65rem, 2.6vw, 2.15rem);
  font-weight: 700;
  text-decoration: none;
}

.gc-product-offer {
  align-items: center;
  background: var(--gc-surface);
  border: 1px solid var(--gc-line);
  border-inline-start: 4px solid var(--gc-accent);
  display: flex;
  justify-content: space-between;
  margin: 16px 0 20px;
  padding: 13px 16px;
}

.gc-product-offer > div {
  align-items: center;
  display: flex;
  gap: 10px;
}

.gc-product-offer strong {
  color: var(--gc-ink);
  font-size: 1rem;
}

.gc-product-offer span {
  background: var(--gc-sale);
  border-radius: 999px;
  color: var(--gc-dark);
  font-size: .95rem;
  font-weight: 800;
  padding: 6px 14px;
}

.gc-product-offer small {
  color: var(--gc-muted);
  font-size: .82rem;
  font-weight: 700;
}

.gc-product-summary-description {
  border-block: 1px solid var(--gc-line);
  margin: 20px 0 0;
  padding-block: 18px;
  text-align: right;
}

.gc-product-summary-description h2 {
  color: var(--gc-ink);
  font-family: Tajawal, Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0 0 8px;
}

.gc-product-summary-description p {
  /* Reads as the piece's main blurb, so it takes the ink colour rather than the
     muted grey used for secondary notes. */
  color: var(--gc-ink);
  font-size: 1.14rem;
  line-height: 1.95;
  margin: 0;
  /* was max-width:58ch, which left the description short of the column edge */
  max-width: none;
}

.gc-product-selection-note {
  color: var(--gc-muted);
  font-size: .88rem;
  margin: 10px 0 0;
}

@media (max-width: 520px) {
  .gc-product-offer {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
}


/* --- Full-width sections below the gallery/summary pair ---------------------
   div.product is a two-column grid (gallery | summary). Every later section is
   also a direct child, so without an explicit span it auto-places into one of
   those two tracks and renders at roughly half width.

   An earlier rule tried this via `.woocommerce-tabs`, but this theme wraps the
   tabs in `.wdt-product-tabs` and only nests `.woocommerce-tabs` inside - so the
   grid item was never targeted. Matching on "everything except the two columns"
   keeps new sections correct by default. */
body.single-product div.product > *:not(.woocommerce-product-gallery):not(.summary):not(.product-labels):not(script):not(style) {
  grid-column: 1 / -1;
}

/* Keep the tab copy at a readable measure now that it can use the full width */
body.single-product .wdt-product-tabs .panel {
  margin-inline: auto !important;
  max-width: 980px;
}

/* The 520px block above resets quantity to a single cell; it needs the full row */
@media (max-width: 520px) {
  body.single-product .quantity.quantity-with-plusminus,
  body.single-product form.cart .quantity {
    grid-column: 1 / -1;
  }
}

/* --- Trust section ("تسوّقي بثقة وراحة") -----------------------------------
   .gc-product-confidence is declared earlier as a two-column grid, written for
   older markup that had two direct children. The current markup wraps
   everything in .gc-product-confidence-grid, so that single child was landing
   in the narrow .8fr track - which is why the whole block rendered squeezed
   against one edge with the heading breaking onto three lines. The section is a
   plain block; the inner wrapper does the column work. */
body.single-product .gc-product-confidence {
  display: block !important;
  padding: clamp(44px, 6vw, 78px) 0;
}

body.single-product .gc-product-confidence-grid {
  align-items: start;
  display: grid;
  gap: clamp(26px, 4.5vw, 64px);
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  margin-inline: auto;
  max-width: 1120px;
}

/* line-height 1.15 is far too tight for Arabic ascenders/descenders */
body.single-product .gc-product-confidence h2 {
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
  line-height: 1.4;
  margin: 0 0 14px;
}

body.single-product .gc-product-confidence-grid > div:first-child p {
  color: var(--gc-muted);
  font-size: 1.04rem;
  line-height: 1.9;
  max-width: 40ch;
}

/* Points: give the copy room so it stops wrapping every few words */
body.single-product .gc-product-point {
  gap: 18px;
  grid-template-columns: 52px minmax(0, 1fr);
  padding: 24px 0;
}

body.single-product .gc-product-point > b {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
}

body.single-product .gc-product-point h3 {
  color: var(--gc-ink);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.45;
  margin: 0 0 6px;
}

body.single-product .gc-product-point p {
  color: var(--gc-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
  max-width: 46ch;
}

@media (max-width: 860px) {
  body.single-product .gc-product-confidence-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
}

/* --- Sale pricing on loop cards (shop, category, related, up-sells) ---------
   On sale WooCommerce emits <del>580</del><ins>450</ins>, each wrapping an
   a11y-only <span class="screen-reader-text">. Without styling both prices
   render identically, so the discount reads as a formatting glitch rather than
   an offer. */
body.gc-storefront ul.products li.product .price {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
}

body.gc-storefront ul.products li.product .price del,
body.single-product .related.products li.product .price del {
  color: var(--gc-muted) !important;
  font-size: .88em !important;
  font-weight: 500 !important;
  opacity: .85;
  text-decoration: line-through;
}

body.gc-storefront ul.products li.product .price ins,
body.single-product .related.products li.product .price ins {
  background: none !important;
  color: var(--gc-accent) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

/* Keep the assistive text available to screen readers, out of the layout */
body.gc-storefront .price .screen-reader-text,
body.single-product .price .screen-reader-text {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  white-space: nowrap;
  width: 1px;
}

/* --- Related products ------------------------------------------------------ */
/* line-height 1.15 is too tight for Arabic; matches the heading fix elsewhere */
body.single-product .related.products > h2,
body.single-product .up-sells > h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1.4;
  margin-bottom: 26px;
}

body.single-product .related.products,
body.single-product .up-sells {
  padding-bottom: clamp(20px, 3vw, 34px);
}

/* --- Category / shop archive header ---------------------------------------- */
body.tax-product_cat .woocommerce-products-header,
body.post-type-archive-product .woocommerce-products-header {
  margin: 0 auto clamp(18px, 3vw, 30px);
  max-width: 1240px;
  padding-inline: 20px;
}

body.tax-product_cat .woocommerce-products-header__title,
body.post-type-archive-product .woocommerce-products-header__title {
  color: var(--gc-ink);
  font-family: Tajawal, Arial, sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px;
}

body.tax-product_cat .term-description,
body.post-type-archive-product .term-description {
  color: var(--gc-muted);
  font-size: 1.02rem;
  line-height: 1.9;
  margin: 0;
  max-width: 70ch;
}

/* Card titles: 1.15 leading clipped Arabic descenders */
body.gc-storefront ul.products li.product .woocommerce-loop-product__title,
body.gc-storefront ul.products li.product h2,
body.gc-storefront ul.products li.product h3 {
  line-height: 1.55 !important;
}

/* Loop cards print the same duplicate "New"/"Featured" labels as the single
   product did - keep only the Sale badge here too. */
body.gc-storefront ul.products li.product .product-labels .new,
body.gc-storefront ul.products li.product .featured-tag {
  display: none !important;
}

/* --- Loop card discount badge + polish ------------------------------------- */
body.gc-storefront ul.products li.product {
  position: relative;
}

body.gc-storefront .gc-loop-sale-badge {
  background: var(--gc-sale);
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(42, 30, 26, .18);
  color: var(--gc-dark);
  /* keeps "-22%" from being reordered by the RTL bidi algorithm */
  direction: ltr;
  font-size: 13px;
  font-weight: 800;
  inset-inline-start: 12px;
  line-height: 1;
  padding: 7px 12px;
  pointer-events: none;
  position: absolute;
  top: 12px;
  z-index: 3;
}

/* Even card heights so titles and prices line up across the row */
body.gc-storefront ul.products li.product .woocommerce-loop-product__title,
body.gc-storefront ul.products li.product h2,
body.gc-storefront ul.products li.product h3 {
  min-height: 3.1em;
}

body.gc-storefront ul.products li.product img {
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}

body.gc-storefront ul.products li.product:hover img {
  transform: scale(1.035);
}

@media (prefers-reduced-motion: reduce) {
  body.gc-storefront ul.products li.product img,
  body.gc-storefront ul.products li.product:hover img {
    transform: none;
    transition: none;
  }
}

/* --- Related product cards -------------------------------------------------
   Keep the fashion imagery prominent while giving every card a clear boundary,
   consistent content height, and a sale badge that cannot be clipped by the
   parent theme's image wrappers. */
body.single-product .related.products ul.products,
body.single-product .up-sells ul.products {
  align-items: stretch;
  display: grid !important;
  gap: clamp(14px, 2vw, 26px) !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* The parent theme inserts this empty element for its Isotope layout. The
   related-products section now uses CSS Grid, so the sizing placeholder must
   not occupy a visible card/grid cell. */
body.single-product .related.products li.product.isotope-grid-sizer,
body.single-product .up-sells li.product.isotope-grid-sizer {
  display: none !important;
}

body.single-product .related.products ul.products li.product,
body.single-product .up-sells ul.products li.product {
  background: var(--gc-surface);
  border: 1px solid var(--gc-line);
  border-radius: var(--gc-radius-md);
  box-shadow: 0 8px 24px rgba(42, 30, 26, .04);
  display: flex !important;
  flex-direction: column;
  overflow: visible;
  padding: 10px 10px 12px !important;
  position: relative;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

body.single-product .related.products ul.products li.product:hover,
body.single-product .up-sells ul.products li.product:hover {
  border-color: rgba(167, 122, 59, .42);
  box-shadow: 0 12px 30px rgba(42, 30, 26, .09);
  transform: translateY(-3px);
}

body.single-product .related.products li.product .product-thumb,
body.single-product .related.products li.product .gc-product-image-link,
body.single-product .up-sells li.product .product-thumb,
body.single-product .up-sells li.product .gc-product-image-link {
  border-radius: 6px;
}

body.single-product .related.products li.product img,
body.single-product .up-sells li.product img {
  aspect-ratio: 4 / 5;
  margin-bottom: 12px !important;
  object-fit: cover;
}

body.single-product .related.products .gc-loop-sale-badge,
body.single-product .up-sells .gc-loop-sale-badge {
  align-items: center;
  background: var(--gc-sale) !important;
  border-radius: 999px;
  color: var(--gc-dark) !important;
  direction: ltr;
  display: inline-flex !important;
  font-size: 13px;
  font-weight: 800;
  inset: 20px 20px auto auto;
  justify-content: center;
  line-height: 1;
  opacity: 1 !important;
  padding: 8px 12px;
  position: absolute !important;
  visibility: visible !important;
  z-index: 8;
}

body.single-product .related.products li.product :where(.woocommerce-loop-product__title, h2, h3),
body.single-product .up-sells li.product :where(.woocommerce-loop-product__title, h2, h3) {
  display: -webkit-box;
  min-height: 3.1em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.single-product .related.products li.product .price,
body.single-product .up-sells li.product .price {
  min-height: 1.7em;
}

body.single-product .related.products li.product .gc-product-details-button,
body.single-product .up-sells li.product .gc-product-details-button {
  align-items: center;
  display: flex;
  justify-content: center;
  margin-top: 12px;
  min-height: 48px;
  width: 100%;
}

@media (max-width: 1024px) {
  body.single-product .related.products ul.products,
  body.single-product .up-sells ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  body.single-product .related.products,
  body.single-product .up-sells {
    margin-top: 48px !important;
    padding-top: 22px;
  }

  body.single-product .related.products ul.products,
  body.single-product .up-sells ul.products {
    gap: 12px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.single-product .related.products ul.products li.product,
  body.single-product .up-sells ul.products li.product {
    border-radius: 7px;
    padding: 7px 7px 9px !important;
  }

  body.single-product .related.products .gc-loop-sale-badge,
  body.single-product .up-sells .gc-loop-sale-badge {
    font-size: 11px;
    inset: 14px 14px auto auto;
    padding: 7px 9px;
  }

  body.single-product .related.products li.product :where(.woocommerce-loop-product__title, h2, h3),
  body.single-product .up-sells li.product :where(.woocommerce-loop-product__title, h2, h3) {
    font-size: .88rem !important;
    line-height: 1.5 !important;
    min-height: 3em;
  }

  body.single-product .related.products li.product .price,
  body.single-product .up-sells li.product .price {
    font-size: .85rem !important;
    gap: 3px 6px;
  }

  body.single-product .related.products li.product .gc-product-details-button,
  body.single-product .up-sells li.product .gc-product-details-button {
    font-size: .88rem;
    min-height: 44px;
    padding-inline: 8px;
  }
}

@media (max-width: 340px) {
  body.single-product .related.products ul.products,
  body.single-product .up-sells ul.products {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.single-product .related.products ul.products li.product,
  body.single-product .up-sells ul.products li.product {
    transform: none;
    transition: none;
  }
}

/* --- Mobile product lightbox close control ---------------------------------
   The child theme's inherited PhotoSwipe icon points to a missing sprite, so
   the close button exists but has no visible icon. Draw the X with CSS and keep
   it above the image even when PhotoSwipe fades its toolbar. */
@media (max-width: 820px) {
  .pswp .pswp__top-bar,
  .pswp .pswp__ui--idle .pswp__top-bar {
    opacity: 1 !important;
    pointer-events: none;
  }

  .pswp .pswp__button.pswp__button--close {
    align-items: center;
    background: rgba(255, 252, 247, .96) !important;
    border: 1px solid rgba(42, 30, 26, .2) !important;
    border-radius: 50% !important;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .25);
    color: var(--gc-ink) !important;
    display: flex !important;
    float: none !important;
    height: 46px !important;
    justify-content: center;
    margin: 0 !important;
    opacity: 1 !important;
    padding: 0 !important;
    pointer-events: auto;
    position: fixed !important;
    right: 14px !important;
    top: max(14px, env(safe-area-inset-top)) !important;
    width: 46px !important;
    z-index: 100003;
  }

  .pswp .pswp__button.pswp__button--close::before {
    align-items: center;
    background: none !important;
    color: currentColor !important;
    content: "\00D7" !important;
    display: flex !important;
    font-family: Arial, sans-serif;
    font-size: 32px;
    font-weight: 400;
    height: 44px !important;
    justify-content: center;
    line-height: 1;
    position: static !important;
    width: 44px !important;
  }
}

/* Final cascade override: card styling also uses display:flex !important, so
   the parent theme's Isotope sizing placeholder must be hidden last. */
body.single-product .related.products ul.products > li.product.isotope-grid-sizer,
body.single-product .up-sells ul.products > li.product.isotope-grid-sizer {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  visibility: hidden !important;
  width: 0 !important;
}

/* --- Clearer size selector ------------------------------------------------ */
body.single-product table.variations th.label,
body.single-product table.variations th.label label {
  color: var(--gc-ink) !important;
  font-family: Tajawal, Arial, sans-serif !important;
  font-size: .95rem !important;
  font-weight: 700 !important;
}

body.single-product ul.variable-items-wrapper.button-variable-items-wrapper {
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: repeat(3, minmax(72px, 1fr));
  margin: 0 !important;
  max-width: 380px;
  width: 100%;
}

body.single-product ul.variable-items-wrapper > li.variable-item.button-variable-item {
  align-items: center !important;
  background: var(--gc-surface) !important;
  border: 1px solid rgba(42, 30, 26, .22) !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 7px rgba(42, 30, 26, .04) !important;
  color: var(--gc-ink) !important;
  display: flex !important;
  font-family: Tajawal, Arial, sans-serif !important;
  font-size: 1.08rem !important;
  font-variant-numeric: tabular-nums;
  font-weight: 800 !important;
  height: 52px !important;
  justify-content: center !important;
  line-height: 1 !important;
  min-height: 52px !important;
  min-width: 0 !important;
  padding: 0 12px !important;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
  width: 100% !important;
}

body.single-product ul.variable-items-wrapper > li.variable-item.button-variable-item .variable-item-contents,
body.single-product ul.variable-items-wrapper > li.variable-item.button-variable-item .variable-item-span-button {
  align-items: center !important;
  color: inherit !important;
  display: flex !important;
  font: inherit !important;
  height: 100% !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding: 0 !important;
  width: 100% !important;
}

body.single-product ul.variable-items-wrapper > li.variable-item.button-variable-item:hover,
body.single-product ul.variable-items-wrapper > li.variable-item.button-variable-item:focus-visible {
  background: #F4E7D2 !important;
  border-color: var(--gc-accent) !important;
  color: var(--gc-ink) !important;
  transform: translateY(-1px);
}

body.single-product ul.variable-items-wrapper > li.variable-item.button-variable-item.selected,
body.single-product ul.variable-items-wrapper > li.variable-item.button-variable-item[aria-checked="true"] {
  background: var(--gc-ink) !important;
  border-color: var(--gc-ink) !important;
  box-shadow: 0 0 0 3px rgba(167, 122, 59, .3) !important;
  color: var(--gc-surface) !important;
}

body.single-product ul.variable-items-wrapper > li.variable-item.button-variable-item.disabled {
  background: rgba(255, 252, 247, .55) !important;
  color: var(--gc-muted) !important;
  opacity: .45;
}

@media (max-width: 520px) {
  body.single-product ul.variable-items-wrapper.button-variable-items-wrapper {
    gap: 8px !important;
    max-width: none;
  }

  body.single-product ul.variable-items-wrapper > li.variable-item.button-variable-item {
    font-size: 1.05rem !important;
    height: 50px !important;
    min-height: 50px !important;
  }
}

/* --- Product FAQ typography ---------------------------------------------- */
body.single-product .gc-product-faq-head .gc-product-reviews-kicker {
  color: var(--gc-accent);
  font-family: Tajawal, Arial, sans-serif;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 8px;
}

body.single-product .gc-product-faq-head h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 12px;
}

body.single-product .gc-product-faq-lede {
  color: var(--gc-muted);
  font-family: Tajawal, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.9;
  max-width: 62ch;
}

body.single-product .gc-product-faq-lede a {
  color: var(--gc-accent);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

@media (max-width: 520px) {
  body.single-product .gc-product-faq-head {
    margin-bottom: 20px;
  }

  body.single-product .gc-product-faq-head h2 {
    font-size: 1.55rem;
    line-height: 1.45;
  }

  body.single-product .gc-product-faq-lede {
    font-size: .98rem;
    line-height: 1.85;
  }

  body.single-product .gc-product-faq-item summary {
    font-size: 1rem;
    line-height: 1.7;
    padding-block: 18px;
  }

  body.single-product .gc-product-faq-item > p {
    font-size: .96rem;
    line-height: 1.9;
  }
}

/* FAQ answers need stronger contrast than general secondary copy. */
body.single-product .gc-product-faq-item > p {
  background: rgba(255, 252, 247, .62);
  border-inline-start: 3px solid rgba(167, 122, 59, .55);
  border-radius: 5px;
  color: #44342C !important;
  font-family: Tajawal, Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 2;
  margin: 0 0 18px;
  padding: 13px 16px 14px !important;
  text-align: right;
}

@media (max-width: 520px) {
  body.single-product .gc-product-faq-item > p {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.95;
    padding: 12px 14px 13px !important;
  }
}

/* Compact sale badge on the main product gallery. */
body.single-product div.product .woocommerce-product-gallery > span.onsale {
  align-items: center !important;
  background: var(--gc-sale) !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 12px rgba(42, 30, 26, .2) !important;
  color: var(--gc-dark) !important;
  display: inline-flex !important;
  font-size: .88rem !important;
  font-weight: 800 !important;
  height: auto !important;
  justify-content: center !important;
  left: auto !important;
  line-height: 1 !important;
  margin: 0 !important;
  min-height: 0 !important;
  min-width: 0 !important;
  padding: 9px 16px !important;
  position: absolute !important;
  right: 18px !important;
  top: 18px !important;
  width: auto !important;
  z-index: 8 !important;
}

body.single-product div.product .woocommerce-product-gallery > span.onsale span {
  display: inline !important;
  line-height: 1 !important;
  width: auto !important;
}

@media (max-width: 520px) {
  body.single-product div.product .woocommerce-product-gallery > span.onsale {
    font-size: .82rem !important;
    padding: 8px 14px !important;
    right: 16px !important;
    top: 16px !important;
  }
}

