/* ============================================================
   ALQUSSADI — WooCommerce Shop Styles
   Loaded after styles.css; overrides/extends for WC pages.
   ============================================================ */

/* ── Page Title Bar ── */
.page-title {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin-bottom: 20px;
}
.page-title h1 {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  color: var(--navy-900);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-500);
  margin-top: 6px;
}
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--blue-600); }

/* ── Shop Layout ── */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding: 32px 0 64px;
  align-items: start;
}

/* ── Sidebar ── */
.sidebar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px;
  position: sticky;
  top: 110px;
}
.sidebar-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy-900);
  margin: 0 0 16px;
}
.filter-group {
  margin-bottom: 24px;
}
.filter-group h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-800);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-700);
}
.filter-check input {
  accent-color: var(--blue-600);
  width: 16px;
  height: 16px;
}
.filter-check:hover { color: var(--navy-800); }
.filter-check span.cnt {
  margin-right: auto;
  font-size: 11px;
  color: var(--ink-400);
}

/* WC Layered Nav widget overrides — make it match .filter-check */
.widget_layered_nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.widget_layered_nav ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--ink-700);
}
.widget_layered_nav ul li a {
  color: inherit;
}
.widget_layered_nav ul li .count {
  margin-right: auto;
  font-size: 11px;
  color: var(--ink-400);
}
.widget_layered_nav ul li.chosen a {
  color: var(--blue-600);
  font-weight: 700;
}

/* WC Price Filter widget */
.widget_price_filter .price_slider_wrapper { padding: 8px 0; }
.widget_price_filter .ui-slider {
  background: var(--line);
  border-radius: 99px;
  height: 4px;
}
.widget_price_filter .ui-slider-range {
  background: var(--blue-600);
  border-radius: 99px;
}
.widget_price_filter .ui-slider-handle {
  width: 16px;
  height: 16px;
  background: var(--blue-600);
  border-radius: 50%;
  top: -6px;
  cursor: pointer;
}
.widget_price_filter .price_slider_amount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.widget_price_filter .price_slider_amount .button {
  background: var(--blue-600);
  color: #fff;
  border-radius: var(--r-md);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
}
.widget_price_filter .price_slider_amount .button:hover {
  background: var(--navy-800);
}

/* WC Rating Filter widget */
.widget_rating_filter ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.widget_rating_filter ul li {
  padding: 4px 0;
  font-size: 14px;
}
.widget_rating_filter ul li a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-700);
}
.widget_rating_filter .star-rating { font-size: 14px; }

/* ── Shop Toolbar ── */
.shop-main { }
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.results-count {
  font-size: 14px;
  color: var(--ink-500);
}
.results-count strong { color: var(--navy-900); }
.sort-select {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 9px 14px;
  font-family: var(--f-ar);
  font-size: 14px;
  color: var(--ink-700);
  outline: none;
  background: #fff;
  cursor: pointer;
}
.sort-select:focus { border-color: var(--blue-500); }

/* WC ordering form wrapper — remove default margins */
.woocommerce-ordering { margin: 0; }

.mobile-filter-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-700);
  cursor: pointer;
}
.mobile-filter-btn svg { color: var(--blue-600); }

/* ── Shop Grid ── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* ── Product Card — shared with front-page.php cards ── */
.shop-grid .product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.shop-grid .product:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.shop-grid .product .media {
  position: relative;
  background: var(--grey-50, #f9fafb);
  overflow: hidden;
  aspect-ratio: 1;
}
.shop-grid .product .media img,
.shop-grid .product .media .product-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.shop-grid .product .media .ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--ink-400);
  text-align: center;
  padding: 16px;
  line-height: 1.5;
}
.shop-grid .product .badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1;
}
.shop-grid .product .fav {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink-400);
  z-index: 1;
  transition: color .15s, border-color .15s;
}
.shop-grid .product .fav:hover { color: var(--coral-500, #f97316); border-color: var(--coral-500, #f97316); }

.shop-grid .product .body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.shop-grid .product .brand {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-400);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.shop-grid .product .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-grid .product .name a { color: inherit; }
.shop-grid .product .rating {
  font-size: 13px;
  color: var(--ink-500);
  display: flex;
  align-items: center;
  gap: 4px;
}
.shop-grid .product .rating .stars { color: #f59e0b; font-size: 13px; }
.shop-grid .product .price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}
.shop-grid .product .price {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-900);
}
.shop-grid .product .price .cur {
  font-size: 13px;
  font-weight: 600;
  margin-left: 2px;
}
.shop-grid .product .was {
  font-size: 13px;
  color: var(--ink-400);
  text-decoration: line-through;
}

/* Reuse .add button styles from styles.css if defined; else define here */
.shop-grid .product .add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  width: 100%;
  padding: 10px;
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  text-align: center;
}
.shop-grid .product .add:hover { background: var(--blue-600); }
.shop-grid .product .add.out-of-stock {
  background: var(--line);
  color: var(--ink-400);
  cursor: not-allowed;
}

/* WC adds .loading class during AJAX */
.shop-grid .product .add.loading { opacity: .6; pointer-events: none; }
.shop-grid .product .add.added {
  background: var(--blue-600);
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.page-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-700);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all .15s;
}
.page-btn:hover,
.page-btn.active { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }

/* paginate_links generates <a> and <span> — style both */
.page-btn a,
.page-btn span { color: inherit; font-weight: inherit; display: contents; }
.page-btn.active a,
.page-btn.active span { color: #fff; }

/* ── WC Notices ── */
.woocommerce-info,
.woocommerce-message,
.woocommerce-error {
  padding: 14px 20px;
  border-radius: var(--r-lg);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
}
.woocommerce-info { background: var(--blue-50); color: var(--blue-700, #1d4ed8); border: 1px solid var(--blue-100); }
.woocommerce-message { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.woocommerce-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* ── Responsive ── */
@media (max-width: 1023px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .shop-layout { grid-template-columns: 1fr; }
  .sidebar {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
    border-radius: 0;
    overflow-y: auto;
    max-width: 300px;
  }
  .sidebar.open { display: block; }
  #close-sidebar { display: block !important; }
  .mobile-filter-btn { display: flex; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 480px) {
  .shop-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   SINGLE PRODUCT PAGE
   ============================================================ */

/* ── Layout grid ── */
.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 36px 20px 64px;
  align-items: start;
}

/* ── Gallery column — WC gallery classes ── */
.pd-gallery-wrap {
  min-width: 0;
}

.woocommerce-product-gallery {
  position: relative;
  width: 100%;
}

/* Main viewport */
.flex-viewport {
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--blue-50, #eff6ff);
  border: 1px solid var(--line);
  height: auto !important;
}

/* IMPORTANT:
   FlexSlider needs horizontal layout
*/
.woocommerce-product-gallery__wrapper {
  margin: 0;
  padding: 0;
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
}

/* Each slide */
.woocommerce-product-gallery__image {
  display: block;
  overflow: hidden;
  flex: 0 0 100%;
  width: 100% !important;
}

/* Product image */
.woocommerce-product-gallery__image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Prevent weird oversizing */
.woocommerce-product-gallery__wrapper img {
  max-width: 100%;
  height: auto;
}

/* Prevent giant width bugs */
.woocommerce-product-gallery .flex-viewport,
.woocommerce-product-gallery .woocommerce-product-gallery__wrapper,
.woocommerce-product-gallery .woocommerce-product-gallery__image {
  max-width: 100%;
}

/* Thumbnails */
.flex-control-thumbs {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  flex-wrap: wrap;
}

.flex-control-thumbs li {
  flex-shrink: 0;
}

.flex-control-thumbs img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 2px solid var(--line);
  cursor: pointer;
  transition: border-color .15s;
  background: #fff;
}

.flex-control-thumbs .flex-active,
.flex-control-thumbs img:hover {
  border-color: var(--blue-500);
}

/* Zoom trigger */
.woocommerce-product-gallery__trigger {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  z-index: 10;
  opacity: .9;
}

.woocommerce-product-gallery__trigger:hover {
  opacity: 1;
}

/* Sale badge */
.woocommerce-badge,
span.onsale {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--coral-500, #f97316);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-full);
  z-index: 10;
}

/* Mobile */
@media (max-width: 767px) {
  .flex-control-thumbs img {
    width: 60px;
    height: 60px;
  }
}

/* ── Info column ── */
.pd-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pd-brand {
  font-family: var(--f-en);
  font-size: 12px;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Product title */
.product_title,
.pd-name {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy-900);
  line-height: 1.3;
  margin: 0;
}

/* ── Rating ── */
.woocommerce-product-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.woocommerce-product-rating .star-rating {
  font-size: 16px;
  color: #f59e0b;
  letter-spacing: 2px;
}
.woocommerce-product-rating .woocommerce-review-link {
  color: var(--blue-600);
  font-size: 13px;
}

/* ── Price — WC outputs the initial/range price as p.price only ── */
.single-product .summary p.price {
  background: var(--bg-soft, #f8fafc);
  border-radius: var(--r-xl);
  padding: 20px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0;
  line-height: 1;
}
/* Current / sale price amount */
.single-product .summary .price ins,
.single-product .summary .price > .woocommerce-Price-amount {
  text-decoration: none;
  font-size: 32px;
  font-weight: 900;
  color: var(--navy-900);
  font-family: var(--f-en);
}
/* Struck-out regular price */
.single-product .summary .price del {
  font-size: 18px;
  color: var(--ink-400);
  font-weight: 400;
  opacity: 1;
}
.single-product .summary .price del .woocommerce-Price-amount { font-size: inherit; font-weight: inherit; }
/* Currency symbol inside any price amount */
.single-product .summary .price .woocommerce-Price-currencySymbol {
  font-size: 16px;
  color: var(--ink-500);
  font-weight: 600;
}

/* ── Stock status ── */
.stock {
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  margin: 0;
}
.stock.in-stock  { color: var(--green-500, #22c55e); }
.stock.out-of-stock { color: #dc2626; }

/* ── Short description ── */
.woocommerce-product-details__short-description {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-700);
}

/* ── Trust badges ── */
.pd-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pd-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-700);
}
.pd-badge svg { color: var(--green-500, #22c55e); }

/* ── Cart form layout (simple + variable shared) ── */
.single-product .cart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Quantity row — WC outputs div.quantity wrapping label + input */
.single-product .cart .quantity {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  width: fit-content;
}
.single-product .cart .quantity input.qty {
  width: 52px;
  height: 42px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  border: none;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.single-product .cart .quantity input.qty::-webkit-inner-spin-button,
.single-product .cart .quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; }

/* +/- buttons injected by theme.js around the qty input */
.single-product .cart .qty-minus,
.single-product .cart .qty-plus {
  width: 42px;
  height: 42px;
  font-size: 20px;
  font-weight: 700;
  background: #fff;
  color: var(--navy-800);
  display: grid;
  place-items: center;
  cursor: pointer;
  border: none;
  transition: background .15s;
  flex-shrink: 0;
}
.single-product .cart .qty-minus { border-left: 1.5px solid var(--line); }
.single-product .cart .qty-plus  { border-right: 1.5px solid var(--line); }
.single-product .cart .qty-minus:hover,
.single-product .cart .qty-plus:hover { background: var(--blue-50, #eff6ff); }

/* ── Add-to-cart button — WC outputs button.single_add_to_cart_button ── */
.single-product .single_add_to_cart_button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: var(--blue-600);
  color: #fff;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s, transform .15s;
  border: none;
}
.single-product .single_add_to_cart_button:hover { background: var(--navy-800); transform: translateY(-2px); }
.single-product .single_add_to_cart_button.loading { opacity: .6; pointer-events: none; }
.single-product .single_add_to_cart_button.disabled { opacity: .5; pointer-events: none; }

.btn-wish {
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  color: var(--ink-500);
  background: #fff;
  cursor: pointer;
  transition: all .15s;
  flex-shrink: 0;
}
.btn-wish:hover { border-color: var(--coral-500, #f97316); color: var(--coral-500, #f97316); }

/* ── Variable product: attribute table (WC native table.variations) ── */
.single-product .variations_form table.variations {
  width: 100%;
  border-collapse: collapse;
}
.single-product .variations_form table.variations tr { display: block; margin-bottom: 12px; }
.single-product .variations_form table.variations th.label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 6px;
}
.single-product .variations_form table.variations td.value { display: block; }
.single-product .variations_form table.variations td.value select {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 9px 14px;
  font-family: var(--f-ar);
  font-size: 14px;
  color: var(--ink-700);
  outline: none;
  background: #fff;
  cursor: pointer;
  min-width: 180px;
}
.single-product .variations_form table.variations td.value select:focus { border-color: var(--blue-500); }
.single-product .reset_variations {
  display: inline-block;
  font-size: 12px;
  color: var(--ink-400);
  margin-top: 6px;
  text-decoration: underline;
}
.single-product .reset_variations:hover { color: var(--blue-600); }

/* Variation price + stock display (JS populates this div) */
.single-product .woocommerce-variation.single_variation { min-height: 28px; margin-bottom: 8px; }
.single-product .woocommerce-variation-price .price {
  background: none;
  padding: 0;
  font-size: 28px;
  font-weight: 900;
  color: var(--navy-900);
}
.single-product .woocommerce-variation-availability .stock { margin-top: 4px; }

/* Variation add-to-cart area hidden by WC until variation selected */
.single-product .woocommerce-variation-add-to-cart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.single-product .woocommerce-variation-add-to-cart.woocommerce-variation-add-to-cart-disabled {
  opacity: .5;
  pointer-events: none;
}

/* ── Product meta (SKU, categories, tags) ── */
.product_meta {
  font-size: 13px;
  color: var(--ink-500);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.product_meta span.sku_wrapper,
.product_meta span.posted_in,
.product_meta span.tagged_as { display: block; }
.product_meta a { color: var(--blue-600); }
.product_meta a:hover { text-decoration: underline; }

/* ── Tabs section ── */
.pd-tabs-section { margin-top: 8px; }
.pd-tabs {
  border-bottom: 2px solid var(--line);
  display: flex;
  gap: 0;
}
.pd-tab {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
  background: transparent;
}
.pd-tab.active { color: var(--blue-600); border-color: var(--blue-600); }
.pd-tab:hover:not(.active) { color: var(--navy-800); }
.pd-tab-content {
  display: none;
  padding: 20px 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-700);
}
.pd-tab-content.active { display: block; }
/* Description tab content */
.pd-tab-content h2,
.pd-tab-content h3 { font-size: 16px; font-weight: 700; color: var(--navy-900); margin: 16px 0 8px; }
.pd-tab-content ul { padding-right: 20px; margin-bottom: 12px; }
.pd-tab-content li { margin-bottom: 4px; }

/* Product attributes (specs) table in description tab */
.shop_attributes {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}
.shop_attributes tr:nth-child(odd) { background: var(--bg-soft, #f8fafc); }
.shop_attributes th,
.shop_attributes td { padding: 10px 14px; font-size: 13px; text-align: right; }
.shop_attributes th { font-weight: 700; color: var(--navy-800); width: 40%; }
.shop_attributes td { color: var(--ink-700); }

/* ── Reviews (WC comments_template output) ── */
#reviews { }
#reviews h2 { font-size: 18px; font-weight: 800; color: var(--navy-900); margin: 0 0 16px; }
.woocommerce-Reviews-title { font-size: 18px; font-weight: 800; color: var(--navy-900); margin: 0 0 16px; }
.comment-form-rating label { font-size: 14px; font-weight: 600; color: var(--ink-700); display: block; margin-bottom: 6px; }
.comment-form-rating .stars a { font-size: 20px; color: #f59e0b; text-decoration: none; }
.review.comment {
  padding: 16px;
  background: var(--bg-soft, #f8fafc);
  border-radius: var(--r-md);
  margin-bottom: 12px;
}
.review .star-rating { color: #f59e0b; font-size: 14px; }
.review .reviewer { font-weight: 700; color: var(--navy-900); margin-bottom: 4px; }
.review p { font-size: 13px; color: var(--ink-500); margin: 0; }
#respond .comment-form { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
#respond .comment-form-author input,
#respond .comment-form-email input,
#respond .comment-form-comment textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-family: var(--f-ar);
  font-size: 14px;
  outline: none;
}
#respond .comment-form-author input:focus,
#respond .comment-form-email input:focus,
#respond .comment-form-comment textarea:focus { border-color: var(--blue-500); }
#respond .form-submit .submit {
  background: var(--blue-600);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s;
}
#respond .form-submit .submit:hover { background: var(--navy-800); }

/* ── Related products section ── */
.related-section {
  padding: 48px 0 64px;
}

.related-heading,
.related-section h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy-900);
  margin: 0 0 20px;
}

/* Grid */
.related-section .shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 18px;
  width: 100%;
}
.related-section .related.products {
  width: 100%;
  margin: 20px;
}

.related-section {
  width: 100%;
}
/* Card */
.related-section .shop-grid .product {
  width: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: .2s ease;
}

.related-section .shop-grid .product:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
}

/* Image area */
.related-section .shop-grid .media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

/* Product image */
.related-section .shop-grid .media img,
.related-section .shop-grid .media .product-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  background: #fff;
  display: block;
}

/* Badges */
.related-section .shop-grid .badges {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

/* Wishlist button */
.related-section .shop-grid .fav {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: .15s ease;
}

.related-section .shop-grid .fav:hover {
  color: var(--coral-500, #f97316);
  border-color: var(--coral-500, #f97316);
}

/* Content */
.related-section .shop-grid .body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* Product name */
.related-section .shop-grid .name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy-900);
}

.related-section .shop-grid .name a {
  color: inherit;
}

/* Price row */
.related-section .shop-grid .price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Current price */
.related-section .shop-grid .price {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-900);
}

/* Currency */
.related-section .shop-grid .price .cur {
  font-size: 13px;
  font-weight: 600;
}

/* Old price */
.related-section .shop-grid .was {
  font-size: 14px;
  color: var(--ink-400);
  text-decoration: line-through;
}

/* Add to cart */
.related-section .shop-grid .add {
  margin-top: auto;
  width: 100%;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--navy-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  transition: .15s ease;
}

.related-section .shop-grid .add:hover {
  background: var(--blue-600);
}

/* Tablet */
@media (max-width: 1023px) {
  .related-section .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .related-section .shop-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .related-section .shop-grid .body {
    padding: 12px;
  }

  .related-section .shop-grid .price {
    font-size: 18px;
  }

  .related-section .shop-grid .add {
    height: 40px;
    font-size: 13px;
  }
}
@media (max-width: 767px) {

  .related.products {
    display: flex;
    flex-direction: column;
  }

  .related-section h2 {
    width: 100%;
    display: block;
    margin-bottom: 16px;
  }

  .related-section .shop-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}
@media (max-width: 1024px) {

  .related.products {
    display: flex;
    flex-direction: column;
  }

  .related-section h2 {
    width: 100%;
    display: block;
    margin-bottom: 16px;
  }

  .related-section .shop-grid {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}
