/* =========================================================
   SALLOQ ALSO ORGANICS THEME — CSS
   Clean, minimal wellness aesthetic
   ========================================================= */

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: var(--base-font-size, 16px);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-background);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

::selection { background: var(--color-primary); color: #fff; }
:focus-visible { outline: 2px solid var(--color-secondary); outline-offset: 2px; }

/* =========================================================
   SKIP LINK
   ========================================================= */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 24px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow { max-width: 800px; }
.container-wide { max-width: 1440px; }

.section-padding {
  padding-top: var(--section-spacing);
  padding-bottom: var(--section-spacing);
}

/* =========================================================
   TYPOGRAPHY — Also Organics Style
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.25;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 500; }
.text-muted { color: var(--color-text-muted); }

/* =========================================================
   BUTTONS — Also Organics organic/earthy style
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  transition: all var(--transition);
  cursor: pointer;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-text);
}

.btn-block { display: flex; width: 100%; }
.btn-sm { padding: 10px 20px; font-size: 0.8rem; }
.btn-lg { padding: 18px 40px; font-size: 1rem; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =========================================================
   FORMS
   ========================================================= */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-text);
}

.form-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background: var(--color-background);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(90, 114, 71, 0.1);
}

textarea { resize: vertical; min-height: 120px; }

/* =========================================================
   OVERLAY
   ========================================================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  backdrop-filter: blur(2px);
}
.overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* =========================================================
   ANNOUNCEMENT BAR
   ========================================================= */
.announcement-bar {
  background: var(--announcement-bg);
  color: var(--announcement-text);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.announcement-bar-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 40px;
  position: relative;
}
.announcement-bar-link,
.announcement-bar-text { color: inherit; }
.announcement-bar-link { text-decoration: underline; text-underline-offset: 3px; }
.announcement-bar-link:hover { opacity: 0.85; }
.announcement-bar-dismiss {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: inherit;
  opacity: 0.6;
  padding: 4px;
  transition: opacity var(--transition);
}
.announcement-bar-dismiss:hover { opacity: 1; }

/* =========================================================
   HEADER — Clean, minimal like Also Organics
   ========================================================= */
.header {
  background: var(--header-bg);
  color: var(--header-text);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition), background var(--transition);
  border-bottom: 1px solid var(--color-border);
}
.header.is-scrolled {
  box-shadow: 0 1px 16px rgba(0, 0, 0, 0.05);
  border-bottom-color: transparent;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.header-logo { flex-shrink: 0; }
.header-logo a { display: flex; align-items: center; }
.header-logo img {
  width: var(--logo-width);
  height: auto;
  transition: opacity var(--transition);
}
.header-logo img:hover { opacity: 0.8; }
.header-logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}

.nav-item { position: relative; }
.nav-link {
  display: block;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--header-text);
  transition: color var(--transition);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-link:hover { color: var(--color-secondary); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  z-index: 200;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-inner { padding: 4px 0; }
.nav-dropdown-link {
  display: block;
  padding: 10px 24px;
  font-size: 0.875rem;
  color: var(--color-text);
  transition: background var(--transition), color var(--transition);
}
.nav-dropdown-link:hover {
  background: var(--color-background-secondary);
  color: var(--color-secondary);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.header-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--header-text);
  border-radius: 50%;
  transition: background var(--transition), color var(--transition);
}
.header-action:hover {
  background: var(--color-background-secondary);
  color: var(--color-secondary);
}
.header-action svg { width: 20px; height: 20px; }

.header-cart { position: relative; }
.cart-count {
  position: absolute;
  top: 4px;
  right: 2px;
  background: var(--color-secondary);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Mobile toggle */
.header-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--header-text);
  flex-shrink: 0;
}

/* =========================================================
   FOOTER — Warm, earthy like Also Organics
   ========================================================= */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}

/* Footer about / brand column */
.footer-about { max-width: 380px; }
.footer-logo { margin-bottom: 20px; }
.footer-logo img { width: 160px; height: auto; }
.footer-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-brand-name a { color: var(--color-primary); }
.footer-description {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--footer-text);
}

/* Footer headings */
.footer-heading {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  color: var(--color-text);
}

/* Footer links */
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a {
  font-size: 0.88rem;
  color: var(--footer-text);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--color-secondary); }

/* Footer newsletter */
.footer-newsletter-text {
  font-size: 0.88rem;
  margin-bottom: 16px;
  color: var(--footer-text);
  line-height: 1.6;
}

.newsletter-form-row {
  display: flex;
  gap: 8px;
}
.newsletter-form-row input {
  flex: 1;
  padding: 11px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: 0.88rem;
  background: #fff;
}
.newsletter-form-row input:focus {
  border-color: var(--color-secondary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(90, 114, 71, 0.1);
}

/* Footer social */
.footer-social-section { margin-top: 28px; }
.footer-social-heading {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  color: var(--color-text);
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-background);
  color: var(--color-text-muted);
  transition: all var(--transition);
  border: 1px solid var(--color-border);
}
.footer-social-link:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.footer-social-link svg { width: 18px; height: 18px; }

/* Footer divider and bottom */
.footer-divider {
  border: none;
  height: 1px;
  background: var(--color-border);
}
.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copyright {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.payment-icons { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.payment-icons-image { height: 28px; width: auto; object-fit: contain; }
.payment-icon-img { height: 24px; width: auto; object-fit: contain; }

/* =========================================================
   PRODUCT GRID
   ========================================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.product-grid-2 { grid-template-columns: repeat(2, 1fr); }
.product-grid-3 { grid-template-columns: repeat(3, 1fr); }
.product-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .product-grid,
  .product-grid-4 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media (max-width: 768px) {
  .product-grid,
  .product-grid-3,
  .product-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 480px) {
  .product-grid-2 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* =========================================================
   PRODUCT CARD — Clean, centered like Also Organics
   ========================================================= */
.product-card {
  position: relative;
  text-align: center;
}

.product-card-media { display: block; position: relative; }

.product-card-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  background: var(--color-background-secondary);
  border-radius: var(--border-radius);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-img-primary { transform: scale(1.03); }
.product-card-img-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 16px;
}
.product-card:hover .product-card-img-hover { opacity: 1; }

.product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 100px;
}
.badge-sale { background: var(--color-sale); color: #fff; }
.badge-sold-out { background: var(--color-text-muted); color: #fff; }
.badge-new { background: var(--color-secondary); color: #fff; }

.product-card-quick-add {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  padding: 12px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 2;
}
.product-card:hover .product-card-quick-add {
  opacity: 1;
  transform: translateY(0);
}

.product-card-info { padding: 16px 8px 8px; }

.product-card-vendor {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.product-card-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.product-card-title a { color: var(--color-text); }
.product-card-title a:hover { color: var(--color-secondary); }

.product-card-price { font-size: 0.95rem; font-weight: 600; color: var(--color-text); }

/* Price snippet */
.price { display: inline-flex; align-items: center; gap: 8px; }
.price-regular { font-weight: 600; }
.price-compare {
  text-decoration: line-through;
  color: var(--color-text-muted);
  font-weight: 400;
}
.price-sale { color: var(--color-sale); font-weight: 600; }
.price-sold-out { color: var(--color-text-muted); font-size: 0.82rem; font-weight: 500; }

/* Star ratings */
.star-rating {
  display: inline-flex;
  gap: 2px;
  color: var(--color-star);
}
.star-rating svg { width: 14px; height: 14px; }
.review-count { font-size: 0.8rem; color: var(--color-text-muted); margin-left: 4px; }

/* =========================================================
   PRODUCT PAGE LAYOUT
   ========================================================= */
.product-page { padding-top: 24px; padding-bottom: var(--section-spacing); }

.product-main {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 8px;
}

/* Gallery */
.product-gallery {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}
.product-gallery-main {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--border-radius);
  background: var(--color-background-secondary);
}
.product-gallery-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 32px;
}
.product-gallery-placeholder img { opacity: 0.5; }

.product-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.product-thumbnail {
  width: 72px;
  height: 72px;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition);
  background: var(--color-background-secondary);
  flex-shrink: 0;
}
.product-thumbnail.is-active,
.product-thumbnail:hover { border-color: var(--color-secondary); }
.product-thumbnail img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

/* Product info */
.product-info { max-width: 560px; }
.product-vendor {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-secondary);
  margin-bottom: 8px;
}
.product-title { font-size: 2rem; font-weight: var(--heading-weight); margin-bottom: 12px; line-height: 1.25; }
.product-price-wrap {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 24px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.product-price-wrap .price-compare { font-size: 1rem; }

/* Variant selectors */
.product-variants { margin-bottom: 20px; }
.product-option { margin-bottom: 16px; }
.product-option-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
}
.product-option-select {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: 0.95rem;
  appearance: none;
  background: #fff 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' fill='none' stroke='%23666' stroke-width='1.5'/%3E%3C/svg%3E") right 16px center no-repeat;
  transition: border-color var(--transition);
}
.product-option-select:focus {
  border-color: var(--color-secondary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(90, 114, 71, 0.1);
}

.product-quantity { margin-bottom: 20px; }
.product-add-btn {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  margin-bottom: 16px;
}
.product-add-btn:disabled {
  background: var(--color-border);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

/* Product description / RTE */
.product-description-wrap { margin-top: 28px; }
.product-description.rte,
.rte {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}
.rte p { margin-bottom: 12px; }
.rte ul, .rte ol { margin: 12px 0; padding-left: 24px; }
.rte li { margin-bottom: 6px; }
.rte h2, .rte h3, .rte h4 { margin: 20px 0 8px; color: var(--color-text); }
.rte a { color: var(--color-secondary); text-decoration: underline; }
.rte img { max-width: 100%; height: auto; border-radius: var(--border-radius); margin: 16px 0; }

/* Accordion */
.product-accordion { border-top: 1px solid var(--color-border); }
.product-accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  transition: color var(--transition);
}
.product-accordion-trigger:hover { color: var(--color-secondary); }
.product-accordion-trigger svg { transition: transform 0.3s ease; flex-shrink: 0; }
.product-accordion-trigger.is-open svg { transform: rotate(180deg); }
.product-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.product-accordion-content.is-open { max-height: 600px; }
.product-accordion-content .rte,
.product-accordion-content .product-description { padding-bottom: 18px; }

/* =========================================================
   COLLECTION PAGE
   ========================================================= */
.collection-page { padding-bottom: var(--section-spacing); }

.collection-header {
  text-align: center;
  padding: 40px 0 24px;
  background: var(--color-background-secondary);
}
.collection-title { font-size: 2.25rem; margin-bottom: 8px; }
.collection-description {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.collection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 32px;
}
.collection-count { font-size: 0.85rem; color: var(--color-text-muted); }

.collection-toolbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.collection-sort { display: flex; align-items: center; gap: 8px; }
.collection-sort-label { font-size: 0.82rem; font-weight: 500; color: var(--color-text-muted); white-space: nowrap; }
.collection-sort-select {
  padding: 8px 36px 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: 0.85rem;
  appearance: none;
  background: #fff 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' fill='none' stroke='%23666' stroke-width='1.5'/%3E%3C/svg%3E") right 12px center no-repeat;
}

.collection-grid-toggle { display: flex; gap: 4px; }
.grid-toggle-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}
.grid-toggle-btn.is-active,
.grid-toggle-btn:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}

.collection-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
}

/* =========================================================
   SEARCH PAGE
   ========================================================= */
.search-page-form { max-width: 520px; margin: 24px auto 0; }
.search-page-input-wrap {
  display: flex;
  gap: 8px;
}
.search-page-input {
  flex: 1;
  padding: 13px 18px;
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: 0.95rem;
}
.search-page-input:focus {
  border-color: var(--color-secondary);
  outline: none;
}
.search-results-count {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

/* =========================================================
   CART PAGE
   ========================================================= */
.cart-page-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}

.cart-page-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}
.cart-page-item-image {
  width: 100px;
  height: 100px;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--color-background-secondary);
}
.cart-page-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-page-item-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.cart-page-item-title a { color: var(--color-text); }
.cart-page-item-title a:hover { color: var(--color-secondary); }
.cart-page-item-variant { font-size: 0.82rem; color: var(--color-text-muted); margin-bottom: 4px; }
.cart-page-item-price { font-size: 0.9rem; font-weight: 600; }
.cart-page-item-total { text-align: right; }
.cart-page-item-total p { font-weight: 600; margin-bottom: 8px; }

.cart-page-summary {
  background: var(--color-background-secondary);
  border-radius: var(--border-radius);
  padding: 28px;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}
.cart-page-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.cart-page-shipping-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}
.cart-page-continue {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   BLOG & ARTICLE
   ========================================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 32px;
}

.article-card {
  display: block;
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.article-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.article-card-image {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--color-background-secondary);
}
.article-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.article-card:hover .article-card-image img { transform: scale(1.03); }
.article-card-info { padding: 20px; }
.article-card-date { font-size: 0.78rem; color: var(--color-text-muted); margin-bottom: 6px; }
.article-card-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; color: var(--color-text); }
.article-card-excerpt { font-size: 0.88rem; color: var(--color-text-muted); line-height: 1.6; margin-bottom: 12px; }
.article-card-link { font-size: 0.85rem; font-weight: 600; color: var(--color-secondary); }

/* Article page */
.article-image { margin-bottom: 28px; border-radius: var(--border-radius); overflow: hidden; }
.article-image img { width: 100%; height: auto; }
.article-title { font-size: 2.25rem; margin-bottom: 12px; }
.article-meta { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 32px; }
.article-body { margin-top: 20px; }

/* Page */
.page-title { font-size: 2.25rem; margin-bottom: 24px; }

/* =========================================================
   CART DRAWER — Polished slide-out
   ========================================================= */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  z-index: 1000;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility var(--transition);
}
.cart-drawer.is-open {
  visibility: visible;
  transform: translateX(0);
}

.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition);
  backdrop-filter: blur(2px);
}
.cart-drawer.is-open .cart-drawer-overlay { opacity: 1; }

.cart-drawer-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.08);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.cart-drawer-header h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.cart-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-text-muted);
  transition: background var(--transition), color var(--transition);
}
.cart-drawer-close:hover { background: var(--color-background-secondary); color: var(--color-text); }

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px;
}

/* Empty cart state */
.cart-drawer-empty {
  text-align: center;
  padding: 56px 24px;
}
.cart-drawer-empty-icon {
  color: var(--color-border);
  margin-bottom: 16px;
}
.cart-drawer-empty-text {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

/* Cart footer */
.cart-drawer-footer {
  border-top: 1px solid var(--color-border);
  padding: 20px 24px;
  flex-shrink: 0;
}
.cart-drawer-subtotal {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}
.cart-drawer-shipping-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.cart-drawer-checkout { margin-bottom: 8px; }
.cart-drawer-view-cart {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.cart-drawer-view-cart:hover { color: var(--color-text); }

/* Cart item */
.cart-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-image { width: 80px; height: 80px; flex-shrink: 0; border-radius: var(--border-radius); overflow: hidden; background: var(--color-background-secondary); }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-title { font-size: 0.88rem; font-weight: 600; margin-bottom: 4px; line-height: 1.4; }
.cart-item-title a { color: var(--color-text); }
.cart-item-title a:hover { color: var(--color-secondary); }
.cart-item-variant { font-size: 0.78rem; color: var(--color-text-muted); margin-bottom: 6px; }
.cart-item-price { font-size: 0.88rem; font-weight: 600; margin-bottom: 10px; }
.cart-item-actions { display: flex; align-items: center; gap: 12px; }
.cart-item-remove {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}
.cart-item-remove:hover { color: var(--color-error); }

/* Quantity selector */
.quantity-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
}
.quantity-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.quantity-btn:hover { color: var(--color-text); }
.quantity-input {
  width: 40px;
  text-align: center;
  border: none;
  padding: 0;
  font-size: 0.85rem;
  font-weight: 600;
  -moz-appearance: textfield;
}
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* =========================================================
   MOBILE MENU — Also Organics style
   ========================================================= */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  transition: visibility var(--transition);
}
.mobile-menu.is-open { visibility: visible; }

.mobile-menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity var(--transition);
  backdrop-filter: blur(2px);
}
.mobile-menu.is-open .mobile-menu-overlay { opacity: 1; }

.mobile-menu-container {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mobile-menu.is-open .mobile-menu-container { transform: translateX(0); }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.mobile-menu-logo img { height: 32px; width: auto; }
.mobile-menu-title { font-weight: 600; font-size: 1rem; }
.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-text-muted);
  transition: background var(--transition), color var(--transition);
}
.mobile-menu-close:hover { background: var(--color-background-secondary); color: var(--color-text); }

/* Mobile search */
.mobile-menu-search {
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-border);
}
.mobile-search-form {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--color-background-secondary);
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
}
.mobile-search-form svg { flex-shrink: 0; color: var(--color-text-muted); }
.mobile-search-form input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  padding: 0;
  outline: none;
}

/* Mobile nav items */
.mobile-menu-nav { flex: 1; padding: 8px 0; }
.mobile-nav-item { border-bottom: 1px solid var(--color-border); }

.mobile-nav-row {
  display: flex;
  align-items: center;
}
.mobile-nav-row .mobile-nav-link { flex: 1; }

.mobile-nav-link {
  display: block;
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition);
}
.mobile-nav-link:hover { color: var(--color-secondary); }

.mobile-nav-toggle {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: transform 0.2s;
}
.mobile-nav-toggle.is-open { transform: rotate(180deg); }
.mobile-nav-toggle svg { transition: transform 0.2s; }

.mobile-nav-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--color-background-secondary);
}
.mobile-nav-submenu.is-open { max-height: 400px; }

.mobile-nav-sublink {
  display: block;
  padding: 10px 24px 10px 44px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.mobile-nav-sublink:hover { color: var(--color-secondary); }

/* Mobile menu footer */
.mobile-menu-footer {
  border-top: 1px solid var(--color-border);
  padding: 20px 24px;
  flex-shrink: 0;
}
.mobile-menu-account-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 16px;
}
.mobile-menu-account-link svg { color: var(--color-text-muted); }
.mobile-menu-social {
  display: flex;
  gap: 10px;
}
.mobile-menu-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-background-secondary);
  color: var(--color-text-muted);
  transition: all var(--transition);
}
.mobile-menu-social a:hover { background: var(--color-primary); color: #fff; }

/* =========================================================
   SEARCH DRAWER — Overlay style
   ========================================================= */
.search-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  transition: visibility var(--transition);
}
.search-drawer.is-open { visibility: visible; }

.search-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity var(--transition);
  backdrop-filter: blur(2px);
}
.search-drawer.is-open .search-drawer-backdrop { opacity: 1; }

.search-drawer-inner {
  position: relative;
  z-index: 1;
  background: #fff;
  padding: 24px 0;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.search-drawer.is-open .search-drawer-inner { transform: translateY(0); }

.search-drawer-form { max-width: 640px; margin: 0 auto; }

.search-drawer-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius);
  background: #fff;
  transition: border-color var(--transition);
}
.search-drawer-input-wrap:focus-within { border-color: var(--color-secondary); }

.search-drawer-icon { flex-shrink: 0; color: var(--color-text-muted); }

.search-drawer-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 1.05rem;
  padding: 0;
  outline: none;
  color: var(--color-text);
}
.search-drawer-input::placeholder { color: var(--color-text-muted); }

.search-drawer-close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--color-text-muted);
  transition: all var(--transition);
}
.search-drawer-close:hover { background: var(--color-background-secondary); color: var(--color-text); }

/* =========================================================
   SECTION SHARED STYLES
   ========================================================= */
.section-spacing { padding: var(--section-spacing) 0; }
.section-header { margin-bottom: 40px; }
.section-subheading {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  margin-bottom: 8px;
}
.section-title {
  font-size: 1.75rem;
  font-weight: var(--heading-weight);
  color: var(--color-text);
  margin-bottom: 12px;
}
.section-description {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}
.section-footer {
  text-align: center;
  margin-top: 40px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 640px;
  overflow: hidden;
  background-color: var(--color-primary);
}
.hero-small { min-height: 400px; }
.hero-medium { min-height: 520px; }
.hero-large { min-height: 640px; }
.hero-full { min-height: 100vh; }

.hero-image-wrap {
  position: absolute;
  inset: 0;
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  pointer-events: none;
}

/* Desktop/mobile image switching */
.hero-image-desktop { display: block; }
.hero-image-mobile { display: none; }

@media (max-width: 768px) {
  .hero-image-desktop { display: none; }
  .hero-image-mobile { display: block; }
}

.hero-container {
  position: relative;
  z-index: 2;
  padding: 80px 0;
}
.hero-content {
  margin: 0 auto;
}
.hero-subheading {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
}
.hero-heading {
  font-size: 3rem;
  font-weight: var(--heading-weight);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-text {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 28px;
}
.hero-btn { margin: 0 6px; }

/* =========================================================
   IMAGE WITH TEXT
   ========================================================= */
.iwt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.iwt-grid-reversed { direction: rtl; }
.iwt-grid-reversed > * { direction: ltr; }

.iwt-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  object-fit: cover;
}
.iwt-image-placeholder {
  aspect-ratio: 4/3;
  background: var(--color-background-secondary);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.iwt-image-placeholder img { width: 60%; opacity: 0.5; }

.iwt-subheading {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  margin-bottom: 10px;
}
.iwt-heading {
  font-size: 2rem;
  font-weight: var(--heading-weight);
  margin-bottom: 16px;
}
.iwt-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}
.iwt-text p { margin-bottom: 12px; }

/* =========================================================
   IMAGE BANNER
   ========================================================= */
.image-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}
.image-banner-small { min-height: 300px; }
.image-banner-medium { min-height: 400px; }
.image-banner-large { min-height: 500px; }

.image-banner-wrap {
  position: absolute;
  inset: 0;
}
.image-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-banner-container {
  position: relative;
  z-index: 2;
}
.image-banner-content {
  margin: 0 auto;
  padding: 60px 0;
}
.image-banner-heading {
  font-size: 2.25rem;
  font-weight: var(--heading-weight);
  margin-bottom: 16px;
}
.image-banner-text {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* =========================================================
   RICH TEXT
   ========================================================= */
.rich-text-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}
.rich-text-body p { margin-bottom: 12px; }
.rich-text-body a { color: var(--color-secondary); text-decoration: underline; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials-grid {
  display: grid;
  gap: 28px;
}
.testimonials-grid-2 { grid-template-columns: repeat(2, 1fr); }
.testimonials-grid-3 { grid-template-columns: repeat(3, 1fr); }

.testimonial-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 32px;
}
.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}
.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
}
.testimonial-title {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* =========================================================
   LOGO LIST
   ========================================================= */
.logo-list-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px 48px;
}
.logo-list-item img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: all var(--transition);
}
.logo-list-item img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* =========================================================
   NEWSLETTER SECTION
   ========================================================= */
.newsletter-heading {
  font-size: 1.75rem;
  font-weight: var(--heading-weight);
  margin-bottom: 12px;
}
.newsletter-text {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}
.newsletter-section-form .newsletter-form-row {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto;
}
.newsletter-section-form input {
  flex: 1;
  padding: 13px 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: var(--border-radius);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.9rem;
}
.newsletter-section-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-section-form input:focus {
  border-color: rgba(255,255,255,0.6);
  outline: none;
}
.newsletter-disclaimer {
  font-size: 0.78rem;
  margin-top: 12px;
}

/* =========================================================
   COLLECTION GRID
   ========================================================= */
.collection-grid {
  display: grid;
  gap: 24px;
}
.collection-grid-2 { grid-template-columns: repeat(2, 1fr); }
.collection-grid-3 { grid-template-columns: repeat(3, 1fr); }
.collection-grid-4 { grid-template-columns: repeat(4, 1fr); }

.collection-card {
  display: block;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.collection-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.collection-card-image {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: var(--color-background-secondary);
}
.collection-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.collection-card:hover .collection-card-image img { transform: scale(1.03); }
.collection-card-info {
  padding: 16px;
  text-align: center;
}
.collection-card-title {
  font-size: 1rem;
  font-weight: 600;
}
.collection-card-count {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

/* =========================================================
   VIDEO
   ========================================================= */
.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius);
}
.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* =========================================================
   SLIDESHOW
   ========================================================= */
.slideshow-section {
  position: relative;
  overflow: hidden;
  min-height: 520px;
}
.slideshow-track { position: relative; height: 100%; min-height: 520px; }

.slideshow-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.slideshow-slide.is-active { opacity: 1; z-index: 1; }

.slideshow-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.slideshow-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}
.slideshow-content-inner { max-width: 700px; }

.slideshow-prev,
.slideshow-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  color: var(--color-text);
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all var(--transition);
}
.slideshow-prev { left: 20px; }
.slideshow-next { right: 20px; }
.slideshow-prev:hover,
.slideshow-next:hover { background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.15); }

/* =========================================================
   COUNTDOWN
   ========================================================= */
.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}
.countdown-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.countdown-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery-grid {
  display: grid;
  gap: 12px;
}
.gallery-grid-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-grid-4 { grid-template-columns: repeat(4, 1fr); }

.gallery-item {
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 1;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* =========================================================
   FAQ
   ========================================================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  gap: 16px;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--color-secondary); }
.faq-question svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.faq-item.is-open .faq-question svg { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.is-open .faq-answer { max-height: 500px; }
.faq-answer-inner {
  padding: 0 0 20px;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

/* =========================================================
   CONTACT FORM
   ========================================================= */
.contact-form .form-group {
  margin-bottom: 20px;
}
.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-secondary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(90, 114, 71, 0.1);
}
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* =========================================================
   MAP
   ========================================================= */
.map-responsive {
  position: relative;
  padding-bottom: 50%;
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius);
}
.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================================
   CUSTOMER PAGES
   ========================================================= */
.customer-form-wrap {
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
}
.customer-form-wrap h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}
.customer-form-subtitle {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}
.customer-form { text-align: left; }
.customer-form .form-group { margin-bottom: 16px; }
.customer-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.customer-form input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: 0.9rem;
}
.customer-form input:focus {
  border-color: var(--color-secondary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(90, 114, 71, 0.1);
}
.customer-form-links {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}
.customer-form-links a { color: var(--color-secondary); font-weight: 500; }

/* Account page */
.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.account-header h1 { margin-bottom: 0; }

.account-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: start;
}
.account-details h2,
.account-orders h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.account-info-card {
  background: var(--color-background-secondary);
  border-radius: var(--border-radius);
  padding: 24px;
}
.account-name { font-weight: 600; margin-bottom: 4px; }
.account-email { font-size: 0.88rem; color: var(--color-text-muted); margin-bottom: 12px; }
.account-address { font-size: 0.88rem; line-height: 1.6; margin-bottom: 12px; }
.account-edit-link { font-size: 0.85rem; color: var(--color-secondary); font-weight: 500; }
.account-empty { color: var(--color-text-muted); margin-bottom: 16px; }

.orders-table-wrap { overflow-x: auto; }
.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.orders-table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  border-bottom: 2px solid var(--color-border);
}
.orders-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
}
.orders-table a { color: var(--color-secondary); font-weight: 500; }
.order-status {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: capitalize;
}
.order-status-paid { background: #dcfce7; color: #166534; }
.order-status-pending { background: #fef3c7; color: #92400e; }
.order-status-refunded { background: #fecaca; color: #991b1b; }

/* Order detail */
.back-link {
  display: inline-block;
  font-size: 0.88rem;
  color: var(--color-secondary);
  margin-bottom: 16px;
}
.order-date {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}
.order-detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.order-items h2,
.order-summary h2,
.order-summary h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.order-summary h3 { margin-top: 24px; }

.order-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}
.order-item-image { width: 64px; height: 64px; border-radius: 6px; overflow: hidden; background: var(--color-background-secondary); flex-shrink: 0; }
.order-item-image img { width: 100%; height: 100%; object-fit: cover; }
.order-item-details { flex: 1; }
.order-item-title { font-weight: 600; font-size: 0.9rem; }
.order-item-variant { font-size: 0.8rem; color: var(--color-text-muted); }
.order-item-qty { font-size: 0.82rem; color: var(--color-text-muted); }
.order-item-price { font-weight: 600; }

.order-summary-card {
  background: var(--color-background-secondary);
  border-radius: var(--border-radius);
  padding: 20px;
}
.order-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.9rem;
}
.order-summary-total {
  border-top: 1px solid var(--color-border);
  margin-top: 8px;
  padding-top: 12px;
  font-weight: 600;
  font-size: 1.05rem;
}
.order-address {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* =========================================================
   THANK YOU PAGE
   ========================================================= */
.thank-you-section {
  background: var(--color-background-secondary);
  border-radius: var(--border-radius);
  padding: 24px;
  margin-bottom: 20px;
}
.thank-you-section h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.thank-you-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}
.thank-you-item:last-of-type { border-bottom: none; }
.thank-you-item-info { display: flex; gap: 8px; }
.thank-you-item-qty { color: var(--color-text-muted); }
.thank-you-totals { border-top: 1px solid var(--color-border); margin-top: 8px; padding-top: 8px; }
.thank-you-total-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.88rem; }
.thank-you-grand-total { font-weight: 600; font-size: 1rem; border-top: 1px solid var(--color-border); margin-top: 6px; padding-top: 10px; }
.thank-you-section p { font-size: 0.88rem; line-height: 1.6; }

/* =========================================================
   BREADCRUMBS
   ========================================================= */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 16px 0;
}
.breadcrumbs a { color: var(--color-text-muted); transition: color var(--transition); }
.breadcrumbs a:hover { color: var(--color-text); }
.breadcrumbs .separator { opacity: 0.5; }

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 48px;
}
.pagination a, .pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-weight: 500;
}
.pagination a { color: var(--color-text); transition: background var(--transition); }
.pagination a:hover { background: var(--color-background-secondary); }
.pagination .current {
  background: var(--color-primary);
  color: #fff;
}

/* =========================================================
   NOTIFICATION
   ========================================================= */
.notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--color-text);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 2000;
  opacity: 0;
  transform: translateY(16px);
  transition: all var(--transition);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}
.notification.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   PAGE TEMPLATES
   ========================================================= */
.page-template { padding: 48px 0; }
.page-header { margin-bottom: 32px; text-align: center; }
.page-header h1 { margin-bottom: 8px; }
.page-body { max-width: 800px; margin: 0 auto; font-size: 0.95rem; line-height: 1.8; }
.page-body p { margin-bottom: 1rem; }
.page-body img { border-radius: var(--border-radius); margin: 24px 0; }

/* =========================================================
   LOADING SPINNER
   ========================================================= */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spinner-rotate 0.6s linear infinite;
}
@keyframes spinner-rotate { to { transform: rotate(360deg); } }

/* =========================================================
   PLACEHOLDER IMAGE
   ========================================================= */
.product-placeholder {
  width: 100%;
  height: 100%;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  :root {
    --header-height: 64px;
    --section-spacing: 60px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .header-nav { gap: 0; }
  .nav-link { padding: 8px 12px; font-size: 0.85rem; }

  .hero-heading { font-size: 2.5rem; }

  .iwt-grid { gap: 40px; }

  .product-main { grid-template-columns: 1fr; gap: 32px; }
  .product-gallery { position: relative; top: 0; }

  .testimonials-grid-3 { grid-template-columns: repeat(2, 1fr); }

  .cart-page-layout { grid-template-columns: 1fr 320px; gap: 32px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-about { grid-column: 1 / -1; max-width: none; }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    --section-spacing: 48px;
  }

  .header-nav { display: none; }
  .header-menu-toggle { display: flex; }
  .header-action-account { display: none; }

  .container { padding: 0 16px; }

  .hero-heading { font-size: 2rem; }
  .hero-content { padding: 0 16px; }
  .hero-btn { display: inline-block; margin: 4px 4px; }

  .iwt-grid,
  .iwt-grid-reversed { grid-template-columns: 1fr; gap: 32px; direction: ltr; }

  .testimonials-grid-2,
  .testimonials-grid-3 { grid-template-columns: 1fr; }

  .collection-grid-3,
  .collection-grid-4 { grid-template-columns: repeat(2, 1fr); }

  .gallery-grid-4 { grid-template-columns: repeat(2, 1fr); }

  .form-row-2col { grid-template-columns: 1fr; }

  .cart-page-layout { grid-template-columns: 1fr; }
  .cart-page-item { grid-template-columns: 80px 1fr auto; }
  .cart-page-item-quantity { grid-column: 2; }
  .cart-page-item-total { grid-column: 3; grid-row: 1 / 3; align-self: center; }

  .collection-toolbar { flex-wrap: wrap; gap: 12px; }
  .collection-grid-toggle { display: none; }

  .blog-grid { grid-template-columns: 1fr; }

  .account-grid { grid-template-columns: 1fr; }
  .order-detail-grid { grid-template-columns: 1fr; }

  .search-page-input-wrap { flex-direction: column; }

  .countdown-number { font-size: 2rem; }
  .countdown-block { min-width: 60px; }

  .slideshow-prev,
  .slideshow-next { width: 40px; height: 40px; }
  .slideshow-prev { left: 12px; }
  .slideshow-next { right: 12px; }

  .footer { padding: 48px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-about { max-width: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .payment-icons { justify-content: center; }

  .product-grid { gap: 16px; }

  .cart-drawer { max-width: 100%; }
}

@media (max-width: 480px) {
  :root {
    --section-spacing: 40px;
  }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.35rem; }
  .btn { padding: 12px 24px; font-size: 0.85rem; }

  .hero-heading { font-size: 1.75rem; }
  .hero-section { min-height: 380px; }
  .hero-full { min-height: 100vh; }

  .header-container { gap: 12px; }
  .header-actions { gap: 0; }
  .header-action { width: 38px; height: 38px; }

  .newsletter-form-row,
  .newsletter-section-form .newsletter-form-row { flex-direction: column; }
  .newsletter-form-row button { width: 100%; }

  .countdown-timer { gap: 12px; }
  .countdown-number { font-size: 1.6rem; }

  .gallery-grid-3,
  .gallery-grid-4 { grid-template-columns: repeat(2, 1fr); }

  .collection-grid-2,
  .collection-grid-3,
  .collection-grid-4 { grid-template-columns: 1fr; }

  .logo-list-grid { gap: 20px 32px; }
  .logo-list-item img { max-height: 32px; }
}
