/*
Theme Name: Mazel
Theme URI: https://mazelkippah.com
Author: We Are Lion
Author URI: https://wearelion.com
Description: Official theme for Mazel Kippah – WooCommerce compatible.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: mazel
Tags: woocommerce, ecommerce, custom
*/

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter.woff2") format("woff2");
  font-weight: 400;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/InstrumentSerif.woff2") format("woff2");
  font-weight: 700;
}

@font-face {
  font-family: "Instrument Serif Italic";
  src: url("assets/fonts/InstrumentSerif-Italic.woff2") format("woff2");
  font-weight: 700;
}

:root {
  /* Color system */
  --color-navy: #081f5c;
  --color-sky: #6abae8;
  --color-sky-40: #c3e3f6;
  --color-text: #333333;
  --color-muted: #aaaaaa;
  --color-white: #ffffff;
  --color-image-bg: #f7f7f7;

  /* Typography */
  --font-serif: "Instrument Serif", serif;
  --font-serif-italic: "Instrument Serif Italic", serif;
  --font-inter: "Inter", sans-serif;

  /* Spacing and sizing */
  --container-width: 1248px;
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-14: 14px;
  --space-16: 16px;
  --space-18: 18px;
  --space-20: 20px;
  --space-22: 22px;
  --space-24: 24px;
  --space-28: 28px;
  --space-30: 30px;
  --space-32: 32px;
  --space-34: 34px;
  --space-36: 36px;
  --space-38: 38px;
  --space-40: 40px;
  --space-42: 42px;
  --space-44: 44px;
  --space-46: 46px;
  --space-48: 48px;

  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-inter);
  background: var(--color-white);
  color: var(--color-text);
  line-height: 1.2;
  overflow-x: hidden;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-0.5 * var(--bs-gutter-x));
  margin-left: calc(-0.5 * var(--bs-gutter-x));
}

.row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-right: calc(var(--bs-gutter-x) * 0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  margin-top: var(--bs-gutter-y);
}

.col {
  flex: 1 0 0%;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

.container {
  width: min(var(--container-width), calc(100% - 48px));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   HEADER
   ============================================================ */

.header-container {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-32);
}

/* Top utility bar */
.top-utility {
  background: var(--color-navy);
  color: var(--color-white);
}

.utility-wrap {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.utility-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-32);
}

.utility-nav a {
  font-size: 10px;
  letter-spacing: 0.03em;
  line-height: 18px;
  font-weight: 500;
}

.live-help {
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
}

.live-help img {
  width: 14px;
  height: 14px;
}

/* Main header */
.main-header {
  padding: var(--space-12) 0 var(--space-8) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 84px;
}

.brand img {
  width: 100%;
  height: auto;
}

.search-and-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-22);
  flex: 1;
  padding: var(--space-22) 0 9px 0;
}

.search-form {
  border: 2px solid var(--color-muted);
  border-radius: 7px;
  display: flex;
  align-items: center;
  padding: var(--space-12);
  max-width: 400px;
  flex: 1;
  position: relative;
}

.search-form input {
  border: 0;
  outline: 0;
  height: 100%;
  width: 100%;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-muted);
  padding-right: var(--space-32);
}

.search-form input::placeholder {
  color: var(--color-muted);
  font-weight: 500;
}

.search-form img {
  width: 26px;
  height: 26px;
  position: absolute;
  right: var(--space-12);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-20);
  justify-self: end;
}

.header-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-navy);
  white-space: nowrap;
}

.header-link img {
  width: 15px;
  height: 15px;
}

.header-link.help-link img {
  width: 20px;
  height: 20px;
}

.header-link.help-link strong {
  color: var(--color-sky);
  font-weight: 700;
}

.header-link.help-link {
  margin-right: var(--space-16);
}

.account-cart-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.icon-action {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.cart-action {
  width: 30px;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

/* Category navigation */
.category-nav ul {
  border-top: 1px solid var(--color-muted);
  border-bottom: 1px solid var(--color-muted);
  display: grid;
  grid-template-columns: repeat(9, auto);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-nav ul::-webkit-scrollbar {
  display: none;
}

.category-nav li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-12);
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-text);
  text-align: center;
  min-width: fit-content;
  white-space: nowrap;
}

.category-nav .all-products a {
  background: var(--color-sky-40);
  gap: var(--space-10);
  justify-content: space-between;
}

.category-nav .all-products img {
  width: 12px;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  background: url("assets/images/hero-section-bg.svg") center top / cover no-repeat;
}

.hero-content {
  min-height: 517px;
  display: flex;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-serif);
  color: var(--color-navy);
  font-size: clamp(58px, 6.1vw, 88px);
  line-height: 1.04;
  font-weight: 700;
  max-width: 540px;
}

.hero h1 span {
  display: block;
}

.hero h1 em {
  color: var(--color-sky);
  font-family: var(--font-serif-italic);
  font-weight: 700;
}

/* Promo strip */
.promo-bar {
  background: var(--color-sky);
  padding: var(--space-8) 0;
}

.promo-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  max-width: 800px;
}

.promo-wrap img {
  width: 26px;
  height: 26px;
}

.promo-wrap p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--color-navy);
  font-size: 20px;
  font-weight: 700;
  text-align: center;
}

.promo-wrap p span {
  color: #e8f6ff;
}

/* ============================================================
   BEST SELLERS
   ============================================================ */

.best-sellers {
  margin-top: 64px;
  margin-bottom: 100px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--space-18);
}

.best-sellers .product-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(192px, 1fr));
  row-gap: var(--space-22);
  column-gap: var(--space-16);
}

.best-sellers .product-grid .product-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  width: 100%;
}

.best-sellers .product-grid .product-image-wrap {
  border-radius: 10px;
  width: 100%;
  height: 192px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-image-bg);
}

.best-sellers .product-grid .product-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.best-sellers .product-grid .product-name {
  font-size: 14px;
  font-weight: 500;
}

.best-sellers .product-grid .product-price {
  font-size: 14px;
  font-weight: 700;
}

.best-sellers .shop-all-link {
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
}

.best-sellers .best-sellers-decor-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.best-sellers .best-sellers-decor-wrap img {
  width: 100%;
  object-fit: cover;
}

.best-sellers .best-sellers-decor-wrap .view-product-link {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-decoration: underline;
  color: var(--color-white);
  font-size: 18px;
}

/* ============================================================
   FEATURED PRODUCTS
   ============================================================ */

.featured-products {
  display: flex;
  align-items: center;
  gap: var(--space-48);
  margin-bottom: 96px;
  padding-block: 64px;
  border-top: 2px solid var(--color-navy);
  border-bottom: 2px solid var(--color-navy);
}

.featured-products-left-decor {
  width: 400px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-48);
}

.featured-products-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.featured-products-title {
  font-family: var(--font-serif);
  color: var(--color-navy);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 600;
}

.featured-products-description {
  font-size: 18px;
}

.featured-products-slider-progress {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.slider-progress-bar {
  display: inline-block;
  width: 300px;
  height: 1.5px;
  background-color: var(--color-sky);
  position: relative;
}

.slider-progress-bar-fill {
  display: block;
  height: 4px;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  background-color: var(--color-navy);
  transition: left 0.3s ease;
}

.featured-products-slider-next {
  width: 36px;
  height: 36px;
  border: 2px solid var(--color-sky);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sky);
  background-color: var(--color-white);
  cursor: pointer;
}

.featured-products-slider-next:hover {
  background-color: var(--color-sky-40);
}

.featured-product-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  align-items: center;
  border-radius: 10px;
  border: 1px solid var(--color-navy);
  padding-inline: var(--space-18);
  padding-bottom: var(--space-22);
}

.featured-product-item-new {
  background-color: var(--color-sky);
  color: var(--color-white);
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 7px 19px 11px 19px;
  letter-spacing: 0.05em;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.featured-product-item-title {
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-product-item-image {
  width: auto;
  height: auto;
  max-width: 200px;
  max-height: 135px;
  object-fit: contain;
}

.featured-product-item-info {
  display: flex;
  align-items: flex-end;
  width: 100%;
  justify-content: space-between;
}

.featured-product-item-price-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.featured-product-item-price {
  font-size: 14px;
  font-weight: 700;
}

.featured-product-item-price-description {
  font-size: 12px;
}

.featured-product-item-shop-link {
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: underline;
  letter-spacing: 0.03em;
}

/* ============================================================
   OUR FEATURES
   ============================================================ */

.our-features {
  background-color: var(--color-navy);
  border-radius: 10px;
  padding: var(--space-40);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  margin-bottom: 96px;
}

.features-container {
  width: 100%;
  max-width: 880px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-32);
  place-items: center;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-12);
  flex: 1 1 200px;
  max-width: 210px;
  min-width: 190px;
}

.feature-title {
  letter-spacing: 0.06em;
  text-align: center;
}

.feature-description {
  font-size: 14px;
  text-align: center;
  font-weight: 100;
}

.feature-link {
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  color: var(--color-sky);
}

/* ============================================================
   TIME TO REMEMBER
   ============================================================ */

.time-to-remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-48);
  margin-bottom: 96px;
}

.time-to-remember-decor-left {
  width: 50%;
}

.time-to-remember-decor-left img {
  width: 100%;
  height: auto;
}

.time-to-remember-content {
  width: 50%;
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  align-items: center;
}

.time-to-remember-title {
  font-family: var(--font-serif);
  color: var(--color-sky);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 600;
  text-align: center;
}

#time-to-remember-slider .owl-item {
  display: flex;
  justify-content: center;
}

#time-to-remember-slider .owl-nav {
  display: flex;
  justify-content: space-between;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  padding: 0 var(--space-16);
}

#time-to-remember-slider .owl-nav button {
  border: 2px solid var(--color-sky);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sky);
  font-size: 26px;
}

#time-to-remember-slider .owl-nav button:hover {
  background-color: var(--color-sky);
  color: var(--color-white);
}

#time-to-remember-slider .owl-nav button span {
  height: 34px;
}

.time-to-remember-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
  align-items: center;
  max-width: 420px;
}

.time-to-remember-item-description {
  font-size: 18px;
  text-align: center;
  font-weight: 500;
}

.time-to-remember-item-image {
  width: auto;
  height: auto;
  max-width: 304px;
  max-height: 238px;
  object-fit: contain;
}

.time-to-remember-item-title {
  font-size: 36px;
  font-weight: 600;
  text-align: center;
  font-family: var(--font-serif-italic);
  color: var(--color-sky);
}

.time-to-remember-item-link {
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  letter-spacing: 0.03em;
}

/* ============================================================
   VIEW PRODUCTS
   ============================================================ */

.view-products {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-32);
  margin-bottom: 64px;
  background: url("assets/images/tallit-shawl.svg") center top / cover no-repeat;
  height: 506px;
}

.view-products .view-products-title {
  font-family: var(--font-serif);
  color: var(--color-navy);
  font-size: clamp(32px, 5vw, 84px);
  line-height: 1.1;
  font-weight: 600;
  text-align: center;
}

.view-products .view-products-title span {
  font-family: var(--font-serif-italic);
}

.view-products .view-products-link {
  padding: 11px 28px;
  color: var(--color-white);
  background-color: var(--color-sky);
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 7px;
  text-transform: uppercase;
}

/* ============================================================
   PRODUCT GUIDE
   ============================================================ */

.product-guide {
  display: flex;
  flex-direction: column;
  gap: var(--space-32);
  margin-bottom: 96px;
}

.product-guide-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-32);
  padding: var(--space-42);
  background-color: var(--color-sky);
  border-radius: 10px;
  color: var(--color-white);
}

.product-guide-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 600;
  text-align: center;
  max-width: 620px;
}

.product-guide-link {
  text-decoration: underline;
  text-transform: uppercase;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.product-guide-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr)) minmax(160px, 200px);
  gap: var(--space-48);
  width: 100%;
}

.product-guide-step {
  display: flex;
  gap: var(--space-16);
  align-items: center;
}

.product-guide-step-number {
  font-size: var(--space-42);
  font-weight: 500;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
  border-radius: 50%;
  min-width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-guide-step-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.product-guide-step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-navy);
  text-transform: uppercase;
}

.product-guide-step-description {
  font-size: var(--space-12);
  color: var(--color-muted);
}

.product-guide-button-step {
  align-self: center;
}

.product-guide-step-button {
  padding: var(--space-12) var(--space-40);
  background-color: var(--color-navy);
  color: var(--color-white);
  border: none;
  border-radius: 5px;
  font-size: 16px;
  text-transform: uppercase;
  cursor: pointer;
}

/* ============================================================
   FOLLOW ON INSTAGRAM
   ============================================================ */

.follow-instagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-12);
  margin-bottom: 132px;
}

.follow-instagram .follow-instagram-title {
  font-size: 48px;
  font-family: var(--font-serif);
  color: var(--color-sky);
  padding-block: var(--space-32);
}

.follow-instagram-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-16);
  width: 100%;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background-color: var(--color-navy);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  padding: var(--space-46) 0;
}

.footer-content,
.footer-bottom {
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.footer-content {
  padding-bottom: var(--space-32);
}

.footer-bottom {
  padding-top: var(--space-32);
  border-top: 2px solid var(--color-white);
}

.footer-company-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-42);
}

.footer-logo {
  width: 148px;
  height: auto;
}

.footer-contact-info {
  display: flex;
  align-items: center;
  gap: var(--space-16);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  width: 300px;
}

.newsletter-label {
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.newsletter-input-wrap {
  display: flex;
  align-items: center;
  border: 2px solid var(--color-white);
  border-radius: 7px;
  padding: var(--space-12) var(--space-22);
  background-color: var(--color-navy);
  width: 100%;
}

.newsletter-input {
  border: none;
  outline: none;
  background: transparent;
  color: var(--color-white);
  font-size: 12px;
  flex: 1;
  padding-right: var(--space-4);
}

.newsletter-input::placeholder {
  color: var(--color-white);
}

.newsletter-submit {
  background-color: var(--color-navy);
  border: none;
  cursor: pointer;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  align-self: flex-end;
  margin-bottom: 8px;
}

.footer-social-links .social-link {
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social-links .social-link img {
  width: 16px;
  height: 16px;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  gap: 64px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.footer-links-list li a {
  font-size: 16px;
  color: var(--color-white);
}

.footer-bottom span {
  font-size: 12px;
  line-height: 14px;
}

/* ============================================================
   WOOCOMMERCE OVERRIDES
   ============================================================ */

/* Wrap WooCommerce pages in a container */
.woocommerce-page .site-main,
.woocommerce .site-main {
  padding: 48px 0;
}

.woocommerce-page .woocommerce,
.woocommerce .woocommerce {
  width: min(var(--container-width), calc(100% - 48px));
  margin-inline: auto;
}

/* Buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background-color: var(--color-sky);
  color: var(--color-white);
  font-weight: 600;
  border-radius: 7px;
  font-family: var(--font-inter);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background-color: var(--color-navy);
  color: var(--color-white);
}

/* Primary / alt buttons */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background-color: var(--color-sky);
  color: var(--color-white);
}

/* Price color */
.woocommerce .price,
.woocommerce .amount {
  color: var(--color-navy);
  font-weight: 700;
}

/* Product titles */
.woocommerce .woocommerce-loop-product__title {
  font-family: var(--font-inter);
  font-size: 14px !important;
  font-weight: 500;
}

/* ============================================================
   GENERIC PAGE & POST CONTENT
   ============================================================ */

.site-main {
  min-height: 60vh;
}

.entry-content {
  width: min(var(--container-width), calc(100% - 48px));
  margin-inline: auto;
  padding: 48px 0;
  line-height: 1.7;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
  color: var(--color-navy);
  font-family: var(--font-serif);
  margin-bottom: 16px;
}

.entry-content p {
  margin-bottom: 16px;
}

/* ============================================================
   PRODUCT PAGE LAYOUT (shared: archive & single)
   ============================================================ */

/* Shared two-column layout: sidebar + content */
.product-page-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-40);
  align-items: start;
  padding-block: var(--space-32);
}

/* ============================================================
   FILTERS SIDEBAR
   ============================================================ */

.product-filters {
  position: sticky;
  top: var(--space-20);
}

.product-filters-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-16);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-group {
  border-bottom: 1px solid var(--color-muted);
}

.filter-group summary {
  padding: var(--space-12) 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-group summary::-webkit-details-marker {
  display: none;
}

.filter-group summary::after {
  content: '+';
  font-size: 18px;
  font-weight: 400;
  color: var(--color-muted);
}

.filter-group[open] summary::after {
  content: '−';
}

.filter-submenu {
  padding-bottom: var(--space-12);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.filter-submenu li a {
  font-size: 13px;
  color: var(--color-text);
  display: block;
  padding: 2px 4px;
}

.filter-submenu li a.active {
  color: var(--color-sky);
  font-weight: 600;
}

.filter-submenu li a:hover {
  color: var(--color-navy);
}

/* ============================================================
   PRODUCT ARCHIVE (shop/category listing)
   ============================================================ */

.product-page.container {
  padding-bottom: var(--space-48);
}

/* Breadcrumb */
.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: var(--space-24);
  flex-wrap: wrap;
}

.product-breadcrumb a {
  color: var(--color-text);
}

.product-breadcrumb a:hover {
  color: var(--color-navy);
}

.product-breadcrumb img {
  width: 12px;
  height: 12px;
}

/* Content top: intro + feature callout */
.product-content-top {
  margin-bottom: var(--space-28);
}

.product-page-intro {
  margin-bottom: var(--space-24);
}

.product-page-title {
  font-family: var(--font-serif);
  color: var(--color-navy);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-8);
}

.product-page-description {
  font-size: 16px;
  color: var(--color-text);
  max-width: 600px;
}

/* Feature callout circles */
.product-feature-callout {
  display: flex;
  gap: var(--space-24);
  flex-wrap: wrap;
}

.product-feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
}

.product-feature-card h3 {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: var(--color-navy);
  max-width: 120px;
}

.product-feature-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--color-navy);
}

.product-feature-circle.solid-suede {
  background: #5a4b3c;
}

.product-feature-circle.two-tone-suede {
  background: linear-gradient(135deg, #5a4b3c 50%, #b5a080 50%);
}

/* Toolbar */
.product-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  margin-bottom: var(--space-24);
  border-top: 1px solid var(--color-muted);
  border-bottom: 1px solid var(--color-muted);
  padding: var(--space-10) 0;
}

.view-toggle,
.sort-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  font-size: 13px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  padding: var(--space-6) var(--space-12);
  border: 1px solid var(--color-muted);
  border-radius: 5px;
}

.view-toggle:hover,
.sort-toggle:hover {
  border-color: var(--color-navy);
}

.view-toggle img,
.sort-toggle img {
  width: 12px;
  height: 12px;
}

.view-toggle-icon {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: 14px;
  height: 14px;
}

.view-toggle-icon span {
  background: var(--color-text);
  border-radius: 1px;
}

/* Product listing grid */
.product-listing.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-24);
  margin-bottom: var(--space-32);
}

/* Override best-sellers card styles for product page */
.product-page .product-card {
  display: flex;
  flex-direction: column;
}

.product-card-link {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.product-page .product-image-wrap {
  aspect-ratio: 1;
  background: var(--color-image-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-page .product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.product-card-details .product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.product-card-details .product-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-navy);
}

.product-price-note {
  font-size: 11px;
  color: var(--color-muted);
}

/* Pagination */
.product-pagination {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-top: var(--space-32);
}

.product-pagination a,
.product-pagination span {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--color-muted);
  border-radius: 5px;
  color: var(--color-text);
}

.product-pagination a.active,
.product-pagination .current {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: var(--color-navy);
}

.product-pagination a:hover {
  border-color: var(--color-navy);
  color: var(--color-navy);
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */

.product-detail-page.container {
  padding-bottom: 0;
}

/* Detail layout: wider content, no sidebar on small screens */
.product-detail-layout {
  grid-template-columns: 220px 1fr;
}

.product-detail-content {
  min-width: 0;
}

/* Detail top: gallery + summary side by side */
.product-detail-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-40);
  margin-bottom: var(--space-40);
  align-items: start;
}

/* Mobile intro (hidden on desktop) */
.product-detail-mobile-intro {
  display: none;
  grid-column: 1 / -1;
}

/* Gallery */
.product-detail-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.product-detail-stage {
  position: relative;
  background: var(--color-image-bg);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}

.product-detail-main-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
}

.product-detail-zoom {
  position: absolute;
  bottom: var(--space-12);
  right: var(--space-12);
  background: var(--color-white);
  border: 1px solid var(--color-muted);
  border-radius: 5px;
  padding: var(--space-6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-zoom img {
  width: 18px;
  height: 18px;
}

.product-detail-thumbs {
  display: flex;
  gap: var(--space-8);
}

.product-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--color-image-bg);
  padding: 0;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumb.active {
  border-color: var(--color-navy);
}

.product-thumb:hover {
  border-color: var(--color-sky);
}

/* Mobile price row (hidden on desktop) */
.product-detail-mobile-price-row {
  display: none;
  grid-column: 1 / -1;
}

/* Summary panel */
.product-detail-summary {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.product-detail-category {
  font-size: 13px;
  color: var(--color-sky);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-detail-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 36px);
  color: var(--color-navy);
  font-weight: 700;
  line-height: 1.15;
}

.product-detail-sku {
  font-size: 13px;
  color: var(--color-muted);
}

.product-detail-price-wrap {
  display: flex;
  align-items: baseline;
  gap: var(--space-8);
}

.product-detail-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-navy);
}

.product-detail-price-note {
  font-size: 13px;
  color: var(--color-muted);
}

/* Tier pricing */
.product-tier-pricing {
  background: var(--color-image-bg);
  border-radius: 8px;
  padding: var(--space-14) var(--space-16);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.product-tier-pricing .detail-label {
  margin-bottom: var(--space-4);
}

.tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--color-muted);
  padding: var(--space-4) var(--space-8);
  border-radius: 5px;
}

.tier-row.active {
  background: var(--color-sky-40);
  color: var(--color-navy);
  font-weight: 600;
}

.tier-row strong {
  font-weight: 700;
}

/* Product copy & bullets */
.product-detail-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  font-size: 14px;
}

.product-detail-bullets ul {
  list-style: disc;
  padding-left: var(--space-18);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  font-size: 13px;
}

/* Labels */
.detail-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
  display: block;
  margin-bottom: var(--space-6);
}

/* Options */
.product-detail-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.detail-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.detail-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-side-link {
  font-size: 12px;
  color: var(--color-sky);
  text-decoration: underline;
  font-weight: 600;
}

.detail-field select {
  width: 100%;
  padding: var(--space-10) var(--space-14);
  border: 1px solid var(--color-muted);
  border-radius: 7px;
  font-size: 14px;
  font-family: var(--font-inter);
  color: var(--color-text);
  background: var(--color-white);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Qty stepper */
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-muted);
  border-radius: 7px;
  overflow: hidden;
  width: fit-content;
}

.qty-stepper input {
  width: 60px;
  text-align: center;
  border: none;
  outline: none;
  font-size: 16px;
  font-weight: 600;
  padding: var(--space-8);
  color: var(--color-navy);
}

.qty-stepper-controls {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--color-muted);
}

.qty-stepper-controls button {
  background: none;
  border: none;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1;
}

.qty-stepper-controls button:hover {
  background: var(--color-image-bg);
}

.qty-stepper-controls button:first-child {
  border-bottom: 1px solid var(--color-muted);
}

/* Color swatches */
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.detail-current-color-block {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--color-muted);
}

/* Sample color dots (override in child theme with actual product colors) */
.color-dot.c1  { background: #000000; }
.color-dot.c2  { background: #1a2d6e; }
.color-dot.c3  { background: #1f4fa3; }
.color-dot.c4  { background: #4a7fc1; }
.color-dot.c5  { background: #5b9bd5; }
.color-dot.c6  { background: #40b4c4; }
.color-dot.c7  { background: #2e7d6f; }
.color-dot.c8  { background: #3c8a3c; }
.color-dot.c9  { background: #6aaa42; }
.color-dot.c10 { background: #8b6914; }
.color-dot.c11 { background: #c8922a; }
.color-dot.c12 { background: #8b2020; }
.color-dot.c13 { background: #c22860; }
.color-dot.c14 { background: #5b2b7a; }
.color-dot.c15 { background: #9e9e9e; }
.color-dot.c16 { background: #ffffff; border: 2px solid var(--color-muted); }

.color-dot.active {
  outline: 3px solid var(--color-navy);
  outline-offset: 2px;
}

.color-dot:hover {
  outline: 2px solid var(--color-sky);
  outline-offset: 2px;
}

/* Action buttons */
.product-detail-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-24);
  border-radius: 7px;
  border: none;
  cursor: pointer;
  font-family: var(--font-inter);
  text-align: center;
  gap: 2px;
}

.button-light {
  background: var(--color-white);
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
}

.button-light:hover {
  background: var(--color-image-bg);
}

.button-dark {
  background: var(--color-navy);
  color: var(--color-white);
}

.button-dark:hover {
  background: var(--color-sky);
}

.button-personalize {
  position: relative;
}

.button-personalize .button-edit-icon::after {
  content: '✏';
  font-size: 14px;
  margin-left: var(--space-6);
}

.button-add-cart .button-subtitle {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 0.05em;
}

.button-add-cart .button-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.button-full {
  width: 100%;
  padding: var(--space-14) var(--space-24);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ============================================================
   CUSTOMIZE SECTION
   ============================================================ */

.product-detail-customize {
  border-top: 2px solid var(--color-navy);
  padding-top: var(--space-32);
  margin-bottom: var(--space-40);
}

/* Promo bar */
.product-detail-promo-bar {
  background: var(--color-sky);
  border-radius: 8px;
  padding: var(--space-12) var(--space-24);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-16);
  margin-bottom: var(--space-24);
}

.product-detail-promo-bar img {
  width: 24px;
  height: 24px;
}

.promo-bar-copy {
  display: flex;
  gap: var(--space-8);
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-navy);
}

.promo-accent {
  color: var(--color-white);
}

/* Customize tabs */
.customize-tabs {
  display: flex;
  gap: 0;
  margin-bottom: var(--space-24);
  border-bottom: 2px solid var(--color-muted);
}

.mobile-customize-tabs {
  display: none;
  margin-bottom: var(--space-16);
}

.customize-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: var(--space-10) var(--space-20);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  color: var(--color-muted);
  transition: color 0.2s, border-color 0.2s;
}

.customize-tab.active {
  color: var(--color-navy);
  border-bottom-color: var(--color-navy);
}

.customize-tab:hover {
  color: var(--color-text);
}

/* Customize grid: form + preview */
.product-customize-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-40);
  align-items: start;
}

.customize-form-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
}

.customize-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.customize-field select,
.customize-field textarea {
  font-family: var(--font-inter);
  font-size: 14px;
  color: var(--color-text);
  border: 1px solid var(--color-muted);
  border-radius: 7px;
  padding: var(--space-10) var(--space-12);
  resize: vertical;
}

.customize-field textarea {
  min-height: 80px;
}

.customize-choice-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  font-size: 13px;
  font-weight: 600;
}

.customize-choice-row label {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  cursor: pointer;
}

/* Monogram input */
.monogram-input-wrap {
  position: relative;
}

.monogram-input-wrap textarea {
  width: 100%;
  min-height: 80px;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.2em;
  padding-right: 100px;
}

.keyboard-badge {
  position: absolute;
  right: var(--space-8);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  background: var(--color-image-bg);
  border-radius: 6px;
  padding: var(--space-6) var(--space-8);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}

.keyboard-icon::before {
  content: '⌨';
  font-size: 18px;
}

/* Typeface grid */
.typeface-grid {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.typeface-button {
  width: 48px;
  height: 48px;
  border: 2px solid var(--color-muted);
  border-radius: 8px;
  background: var(--color-white);
  font-size: 20px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.typeface-button.active {
  border-color: var(--color-navy);
  background: var(--color-sky-40);
}

.typeface-button:hover {
  border-color: var(--color-sky);
}

.typeface-button.script  { font-family: cursive; }
.typeface-button.rounded { border-radius: 50%; }
.typeface-button.bold    { font-weight: 900; }
.typeface-button.serif   { font-family: serif; }
.typeface-button.light   { font-weight: 200; }

/* Color wheel placeholder */
.color-wheel {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: conic-gradient(
    hsl(0, 100%, 50%),
    hsl(60, 100%, 50%),
    hsl(120, 100%, 50%),
    hsl(180, 100%, 50%),
    hsl(240, 100%, 50%),
    hsl(300, 100%, 50%),
    hsl(360, 100%, 50%)
  );
  cursor: pointer;
  border: 2px solid var(--color-muted);
}

/* Preview panel */
.customize-preview-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.preview-card {
  position: relative;
  background: var(--color-image-bg);
  border-radius: 10px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preview-image {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.preview-monogram {
  position: absolute;
  font-size: 32px;
  font-weight: 700;
  color: var(--color-navy);
  font-family: cursive;
  text-shadow: 0 1px 3px rgba(255,255,255,0.6);
}

/* Mobile approve button (hidden on desktop) */
.mobile-approve-button {
  display: none;
  margin-top: var(--space-16);
}

/* ============================================================
   PRODUCT DETAIL BANNER
   ============================================================ */

.product-detail-banner {
  background: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-48) var(--space-40);
  border-radius: 12px;
  margin-bottom: var(--space-48);
  overflow: hidden;
  position: relative;
}

.product-detail-banner-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
  z-index: 1;
}

.product-detail-banner-copy h2 {
  color: var(--color-white);
  display: flex;
  flex-direction: column;
}

.product-detail-banner-copy h2 span:first-child {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-sky);
}

.product-detail-banner-copy h2 span:last-child {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
}

.product-detail-banner-image {
  max-width: 200px;
  height: auto;
  object-fit: contain;
}

/* Mobile filter trigger (hidden on desktop) */
.mobile-filter-trigger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.mobile-filter-trigger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
}

/* ============================================================
   RESPONSIVE – PRODUCT PAGES
   ============================================================ */

@media (max-width: 1024px) {
  .product-page-layout {
    grid-template-columns: 180px 1fr;
    gap: var(--space-24);
  }

  .product-customize-grid {
    grid-template-columns: 1fr;
  }

  .customize-preview-panel {
    order: -1;
    max-width: 340px;
    align-self: center;
    margin-inline: auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* Collapse sidebar into mobile drawer */
  .product-page-layout {
    grid-template-columns: 1fr;
  }

  .product-filters {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: var(--color-white);
    z-index: 1000;
    overflow-y: auto;
    padding: var(--space-24);
    box-shadow: 4px 0 16px rgba(0,0,0,0.15);
  }

  .product-filters.open {
    display: block;
  }

  .mobile-filter-trigger {
    display: flex;
  }

  /* Detail top: stack vertically */
  .product-detail-top {
    grid-template-columns: 1fr;
  }

  .product-detail-mobile-intro {
    display: block;
  }

  /* Hide desktop title + sku in summary (shown in mobile intro instead) */
  .product-detail-summary .product-detail-category,
  .product-detail-summary .product-detail-title,
  .product-detail-summary .product-detail-sku {
    display: none;
  }

  .product-detail-mobile-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-16);
    padding-block: var(--space-12);
    border-bottom: 1px solid var(--color-muted);
  }

  .mobile-customize-tabs {
    display: flex;
  }

  /* Hide desktop tabs inside form panel on mobile */
  .customize-form-panel > .customize-tabs {
    display: none;
  }

  .customize-preview-panel {
    order: 0;
  }

  .mobile-approve-button {
    display: flex;
  }

  /* Banner stacks */
  .product-detail-banner {
    flex-direction: column;
    text-align: center;
    padding: var(--space-32) var(--space-24);
    gap: var(--space-24);
  }

  .product-detail-banner-image {
    max-width: 140px;
  }
}
