/*
Theme Name: Krofto Wood
Theme URI: https://kroftowood.com
Author: Krofto
Author URI: https://kroftowood.com
Description: A minimalist WordPress theme for Krofto Wood — handcrafted wooden sculptures, clocks, and home décor. Features a warm brown color palette, custom cursor, and seamless WooCommerce integration.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: krofto
Tags: e-commerce, woocommerce, minimalist, custom-cursor, brown, wood
*/

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
  /* Primary Palette — Warm Browns */
  --color-primary:        #7B5B3A;
  --color-primary-light:  #A07850;
  --color-primary-dark:   #5C3D1E;
  --color-primary-rgb:    123, 91, 58;

  /* Secondary / Accent */
  --color-secondary:      #D4A574;
  --color-secondary-light:#E8C9A0;
  --color-accent:         #C17F3E;
  --color-accent-dark:    #8B6914;

  /* Neutrals */
  --color-bg:             #FDF8F1;
  --color-bg-alt:         #F5EDE0;
  --color-bg-card:        #FFFFFF;
  --color-surface:        #FAF3EA;
  --color-border:         #E0D3C3;
  --color-border-light:   #EDE5D8;

  /* Text */
  --color-text:           #3E2723;
  --color-text-secondary: #6D5D4E;
  --color-text-muted:     #9C8B7A;
  --color-text-inverse:   #FDF8F1;

  /* Feedback */
  --color-success:        #5D8C3E;
  --color-error:          #C0392B;
  --color-warning:        #D4A017;
  --color-info:           #5B7FA7;

  /* Typography */
  --font-heading:         'Playfair Display', Georgia, serif;
  --font-body:            'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:            'JetBrains Mono', 'Fira Code', monospace;

  --fs-xs:   0.75rem;   /* 12px */
  --fs-sm:   0.875rem;  /* 14px */
  --fs-base: 1rem;      /* 16px */
  --fs-md:   1.125rem;  /* 18px */
  --fs-lg:   1.25rem;   /* 20px */
  --fs-xl:   1.5rem;    /* 24px */
  --fs-2xl:  2rem;      /* 32px */
  --fs-3xl:  2.5rem;    /* 40px */
  --fs-4xl:  3.5rem;    /* 56px */
  --fs-5xl:  4.5rem;    /* 72px */

  --fw-light:    300;
  --fw-normal:   400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  --lh-tight:   1.2;
  --lh-normal:  1.6;
  --lh-relaxed: 1.8;

  --ls-tight:   -0.02em;
  --ls-normal:  0;
  --ls-wide:    0.05em;
  --ls-wider:   0.1em;

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --container-sm:  640px;
  --container-md:  768px;
  --container-lg:  1024px;
  --container-xl:  1200px;
  --container-2xl: 1400px;
  --sidebar-width: 280px;

  /* Borders & Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:     0 1px 3px rgba(62, 39, 35, 0.06), 0 1px 2px rgba(62, 39, 35, 0.04);
  --shadow-md:     0 4px 12px rgba(62, 39, 35, 0.08), 0 2px 4px rgba(62, 39, 35, 0.04);
  --shadow-lg:     0 12px 32px rgba(62, 39, 35, 0.12), 0 4px 8px rgba(62, 39, 35, 0.06);
  --shadow-xl:     0 20px 48px rgba(62, 39, 35, 0.16), 0 8px 16px rgba(62, 39, 35, 0.08);
  --shadow-inner:  inset 0 2px 4px rgba(62, 39, 35, 0.06);
  --shadow-glow:   0 0 24px rgba(193, 127, 62, 0.25);

  /* Transitions */
  --transition-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base:   250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-index layers */
  --z-dropdown:  100;
  --z-sticky:    200;
  --z-overlay:   300;
  --z-modal:     400;
  --z-cursor:    9999;
}


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none; /* hide default cursor for custom cursor */
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-normal);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  cursor: none;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
  cursor: none;
}

a:hover {
  color: var(--color-accent);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  cursor: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--color-text);
  letter-spacing: var(--ls-tight);
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl);  }
h5 { font-size: var(--fs-lg);  }
h6 { font-size: var(--fs-md);  }

p {
  margin-bottom: var(--space-md);
  line-height: var(--lh-relaxed);
}

::selection {
  background-color: var(--color-secondary);
  color: var(--color-primary-dark);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-alt);
}
::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-light);
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.krofto-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--color-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, opacity 0.2s ease;
  mix-blend-mode: difference;
  opacity: 0;
}

.krofto-cursor.visible {
  opacity: 1;
}

.krofto-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--color-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: var(--z-cursor);
  transform: translate(-50%, -50%);
  transition: width 0.35s ease, height 0.35s ease, border-color 0.35s ease, opacity 0.35s ease;
  opacity: 0;
}

.krofto-cursor-ring.visible {
  opacity: 0.5;
}

/* Cursor hover states */
.krofto-cursor.hovering {
  width: 20px;
  height: 20px;
  background: var(--color-accent);
  mix-blend-mode: normal;
}

.krofto-cursor-ring.hovering {
  width: 55px;
  height: 55px;
  border-color: var(--color-accent);
  opacity: 0.3;
}

.krofto-cursor.clicking {
  width: 8px;
  height: 8px;
  background: var(--color-primary-dark);
}

.krofto-cursor-ring.clicking {
  width: 30px;
  height: 30px;
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
  html, body, a, button, input, select, textarea {
    cursor: auto !important;
  }
  .krofto-cursor,
  .krofto-cursor-ring {
    display: none !important;
  }
}


/* ============================================
   LAYOUT — CONTAINER
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container--narrow {
  max-width: var(--container-md);
}

.container--wide {
  max-width: var(--container-2xl);
}


/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: rgba(253, 248, 241, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-base);
  padding: var(--space-md) 0;
}

.site-header.scrolled {
  background: rgba(253, 248, 241, 0.96);
  border-bottom-color: var(--color-border-light);
  box-shadow: var(--shadow-sm);
  padding: var(--space-sm) 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo svg {
  width: 36px;
  height: 36px;
  transition: transform var(--transition-base);
}

.site-logo:hover svg {
  transform: rotate(-8deg) scale(1.05);
}

.site-logo-text {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary-dark);
  letter-spacing: var(--ls-tight);
}

.site-logo-text span {
  color: var(--color-accent);
}

.custom-fallback-logo {
  height: auto;
  width: auto;
  max-height: clamp(35px, 5vw, 60px);
  max-width: clamp(140px, 20vw, 280px);
  transition: transform var(--transition-base);
  mix-blend-mode: multiply;
  object-fit: contain;
}

.site-logo:hover .custom-fallback-logo {
  transform: scale(1.02);
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

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

.main-nav a {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-primary-dark);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  position: relative;
}

.header-action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.header-action-btn:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
}

.header-action-btn svg {
  width: 22px;
  height: 22px;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: var(--color-accent);
  color: var(--color-text-inverse);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  line-height: 1;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  gap: 5px;
  padding: 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}


/* ============================================
   VIDEO HERO SECTION
   ============================================ */
.video-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-primary-dark);
}

.video-hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

.video-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(62, 39, 35, 0.55);
  z-index: 2;
}

.video-hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: 0 var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: rgba(253, 248, 241, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(253, 248, 241, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-text-inverse);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-xl);
}

.video-hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.5); }
}

.video-hero__title {
  font-size: clamp(3rem, 6vw, var(--fs-5xl));
  font-weight: var(--fw-bold);
  line-height: 1.1;
  color: var(--color-text-inverse);
  margin-bottom: var(--space-md);
}

.video-hero__highlight {
  color: var(--color-secondary);
  font-style: italic;
}

.video-hero__subtitle {
  font-size: var(--fs-lg);
  color: rgba(253, 248, 241, 0.9);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
}

.video-hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.btn--outline-light {
  background: transparent;
  color: var(--color-text-inverse);
  border-color: rgba(253, 248, 241, 0.5);
}

.btn--outline-light:hover {
  background: var(--color-text-inverse);
  color: var(--color-primary-dark);
  border-color: var(--color-text-inverse);
  transform: translateY(-2px);
}

.video-hero__scroll {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(253, 248, 241, 0.6);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  z-index: 3;
}

.video-hero__scroll-mouse {
  width: 24px;
  height: 36px;
  border: 2px solid rgba(253, 248, 241, 0.6);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.video-hero__scroll-wheel {
  width: 4px;
  height: 6px;
  background: rgba(253, 248, 241, 0.6);
  border-radius: 2px;
  animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}


/* ============================================
   PARALLAX SECTIONS
   ============================================ */
.parallax-section {
  position: relative;
  padding: var(--space-5xl) 0;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(62, 39, 35, 0.65);
  z-index: 0;
}

.relative {
  position: relative;
}

.z-index-1 {
  z-index: 1;
}

.text-center {
  text-align: center;
}

.parallax-content {
  max-width: 800px;
  margin: 0 auto;
}

.parallax-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, var(--fs-4xl));
  color: var(--color-text-inverse);
  margin-bottom: var(--space-md);
}

.parallax-desc {
  font-size: var(--fs-xl);
  color: rgba(253, 248, 241, 0.9);
  font-weight: var(--fw-light);
}


/* ============================================
   REVEAL ANIMATIONS (Intersection Observer)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.in-view {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

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

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border-color: transparent;
  padding: var(--space-sm) var(--space-md);
}

.btn--ghost:hover {
  color: var(--color-primary);
  background: rgba(var(--color-primary-rgb), 0.06);
}

.btn--lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--fs-base);
}

.btn--sm {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--fs-xs);
}

.btn--icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-full);
}


/* ============================================
   SECTION STYLES
   ============================================ */
.section {
  padding: var(--space-5xl) 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
}

.section-label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-accent);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: clamp(var(--fs-2xl), 3vw, var(--fs-3xl));
  margin-bottom: var(--space-md);
}

.section-desc {
  font-size: var(--fs-md);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
}


/* ============================================
   PRODUCT CARDS
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.product-card {
  position: relative;
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid var(--color-border-light);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-secondary);
}

.product-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card-image img {
  transform: scale(1.08);
}

.product-card-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-accent);
  color: var(--color-text-inverse);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border-radius: var(--radius-sm);
}

.product-card-actions {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-base);
}

.product-card:hover .product-card-actions {
  opacity: 1;
  transform: translateX(0);
}

.product-card-action {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-card);
  border: none;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.product-card-action:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.product-card-action svg {
  width: 18px;
  height: 18px;
}

.product-card-body {
  padding: var(--space-lg);
}

.product-card-category {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  margin-bottom: var(--space-xs);
}

.product-card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  transition: color var(--transition-fast);
}

.product-card:hover .product-card-title {
  color: var(--color-primary);
}

.product-card-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}

.product-card-price .current {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary-dark);
}

.product-card-price .original {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.product-card-footer {
  padding: 0 var(--space-lg) var(--space-lg);
}

.product-card .add-to-cart-btn {
  width: 100%;
  padding: var(--space-md);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  color: var(--color-text);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.product-card .add-to-cart-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
}

.product-card .add-to-cart-btn svg {
  width: 16px;
  height: 16px;
}


/* ============================================
   CATEGORIES
   ============================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.category-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  text-decoration: none;
  display: block;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(62, 39, 35, 0.7) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-xl);
  transition: background var(--transition-base);
}

.category-card:hover .category-card-overlay {
  background: linear-gradient(180deg, transparent 20%, rgba(62, 39, 35, 0.8) 100%);
}

.category-card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-text-inverse);
  margin-bottom: var(--space-xs);
}

.category-card-count {
  font-size: var(--fs-sm);
  color: rgba(253, 248, 241, 0.7);
}


/* ============================================
   FEATURES / CRAFTSMANSHIP
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
}

.feature-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--color-primary-rgb), 0.08);
  border-radius: var(--radius-lg);
  margin: 0 auto var(--space-lg);
  transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
  background: var(--color-primary);
  transform: scale(1.1);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
  transition: color var(--transition-base);
}

.feature-card:hover .feature-icon svg {
  color: var(--color-text-inverse);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-sm);
}

.feature-desc {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
}


/* ============================================
   TESTIMONIALS — HORIZONTAL SLIDESHOW
   ============================================ */
.testimonials-carousel {
  position: relative;
}

.testimonials-track-wrapper {
  overflow: hidden;
  margin: 0 -var(--space-md);
  padding: var(--space-md);
}

.testimonials-track {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
  padding-bottom: var(--space-md);
}

.testimonials-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.testimonials-track .testimonial-card {
  flex: 0 0 auto;
  width: 320px;
  height: 320px;
  scroll-snap-align: start;
}

.testimonial-card-inner {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

.testimonial-card-inner:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-secondary);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-md);
  color: var(--color-accent);
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.testimonial-text {
  font-size: var(--fs-base);
  color: var(--color-text-secondary);
  font-style: italic;
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-lg);
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: var(--color-bg-alt);
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
}

.testimonial-role {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

/* Carousel Navigation */
.testimonials-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.testimonials-nav-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-card);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.testimonials-nav-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
  transform: scale(1.05);
}

.testimonials-nav-btn svg {
  width: 20px;
  height: 20px;
}


/* ============================================
   HEADER SEARCH FORM
   ============================================ */
.header-search-form {
  position: absolute;
  right: 0;
  top: calc(100% + 15px);
  width: 300px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  padding: 4px;
}

.header-search-form.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--fs-sm);
  background: transparent;
  color: var(--color-text);
  min-width: 0;
}

.header-search-input::placeholder {
  color: var(--color-text-muted);
}

.header-search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.header-search-submit:hover {
  background: var(--color-primary-dark);
}

.header-search-submit svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .header-search-form.open {
    width: 220px;
  }
}

/* ============================================
   WISHLIST HEART — ACTIVE STATE
   ============================================ */
.product-card-action.wishlist-btn.wishlisted {
  background: var(--color-error);
  color: var(--color-text-inverse);
}

.product-card-action.wishlist-btn.wishlisted svg {
  fill: currentColor;
}



/* ============================================
   CTA / NEWSLETTER
   ============================================ */
.cta-section {
  background: var(--color-primary-dark);
  border-radius: var(--radius-2xl);
  padding: var(--space-4xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0 var(--space-xl);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 200%;
  background: radial-gradient(circle, rgba(193, 127, 62, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-title {
  font-size: var(--fs-3xl);
  color: var(--color-text-inverse);
  margin-bottom: var(--space-md);
  position: relative;
}

.cta-desc {
  font-size: var(--fs-md);
  color: rgba(253, 248, 241, 0.7);
  max-width: 500px;
  margin: 0 auto var(--space-2xl);
  position: relative;
}

.cta-form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}

.cta-form input {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  border: none;
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  background: rgba(253, 248, 241, 0.12);
  color: var(--color-text-inverse);
  font-size: var(--fs-sm);
  outline: none;
  transition: background var(--transition-fast);
}

.cta-form input::placeholder {
  color: rgba(253, 248, 241, 0.5);
}

.cta-form input:focus {
  background: rgba(253, 248, 241, 0.18);
}

.cta-form button {
  padding: var(--space-md) var(--space-xl);
  border: none;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  background: var(--color-accent);
  color: var(--color-text-inverse);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  transition: background var(--transition-fast);
}

.cta-form button:hover {
  background: var(--color-accent-dark);
}


/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(253, 248, 241, 0.8);
  padding: var(--space-4xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(253, 248, 241, 0.1);
}

.footer-brand-desc {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-lg);
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(253, 248, 241, 0.08);
  border-radius: var(--radius-full);
  color: rgba(253, 248, 241, 0.6);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--color-accent);
  color: var(--color-text-inverse);
  transform: translateY(-3px);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--color-text-inverse);
  margin-bottom: var(--space-lg);
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  font-size: var(--fs-sm);
  color: rgba(253, 248, 241, 0.6);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-text-inverse);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: var(--fs-sm);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-secondary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0;
  font-size: var(--fs-xs);
  color: rgba(253, 248, 241, 0.4);
}

.footer-bottom a {
  color: rgba(253, 248, 241, 0.5);
}

.footer-bottom a:hover {
  color: var(--color-text-inverse);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border: none;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: var(--z-dropdown);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}


/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact-form-wrapper {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

.form-message {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-md);
}

.form-message--success {
  background: rgba(93, 140, 62, 0.1);
  border: 1px solid rgba(93, 140, 62, 0.3);
  color: var(--color-success);
}

.form-message--error {
  background: rgba(192, 57, 43, 0.1);
  border: 1px solid rgba(192, 57, 43, 0.3);
  color: var(--color-error);
}

.contact-info-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

.contact-info-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--color-primary-rgb), 0.08);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
}

.contact-info-label {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  margin-bottom: var(--space-xs);
}

.contact-info-value {
  font-weight: var(--fw-medium);
  color: var(--color-text);
}


/* ============================================
   SHOP / FILTER
   ============================================ */
.shop-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: var(--space-2xl);
}

.shop-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.filter-group {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border-light);
}

.filter-group:last-child {
  border-bottom: none;
}

.filter-title {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-md);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.filter-option:hover {
  color: var(--color-primary);
}

.filter-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border-light);
}

.shop-result-count {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.shop-sort select {
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  color: var(--color-text);
  outline: none;
}


/* ============================================
   SINGLE PRODUCT
   ============================================ */
.single-product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.product-gallery {
  position: sticky;
  top: 100px;
}

.product-gallery-main {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--color-bg-alt);
  margin-bottom: var(--space-md);
}

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

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

.product-gallery-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.product-gallery-thumb.active,
.product-gallery-thumb:hover {
  border-color: var(--color-primary);
}

.product-info .product-category {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  margin-bottom: var(--space-sm);
}

.product-info .product-title {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-md);
}

.product-info .product-price {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary-dark);
  margin-bottom: var(--space-lg);
}

.product-info .product-desc {
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-xl);
}

.product-quantity {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.quantity-control button {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--color-text);
  font-size: var(--fs-lg);
  transition: background var(--transition-fast);
}

.quantity-control button:hover {
  background: var(--color-bg-alt);
}

.quantity-control input {
  width: 60px;
  height: 44px;
  text-align: center;
  border: none;
  border-left: 1.5px solid var(--color-border);
  border-right: 1.5px solid var(--color-border);
  font-weight: var(--fw-semibold);
  outline: none;
  background: transparent;
}

.product-add-actions {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.product-meta {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border-light);
}

.product-meta-row {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  font-size: var(--fs-sm);
}

.product-meta-label {
  color: var(--color-text-muted);
  min-width: 100px;
}


/* ============================================
   CART
   ============================================ */
.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  text-align: left;
  padding: var(--space-md) var(--space-lg);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  border-bottom: 2px solid var(--color-border);
}

.cart-table td {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: middle;
}

.cart-product-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.cart-product-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

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

.cart-product-name {
  font-weight: var(--fw-semibold);
}

.cart-remove {
  background: none;
  border: none;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
  font-size: var(--fs-sm);
}

.cart-remove:hover {
  color: var(--color-error);
}

.cart-totals {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 400px;
  margin-left: auto;
}

.cart-totals-title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border-light);
}

.cart-totals-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  font-size: var(--fs-sm);
}

.cart-totals-row.total {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  padding-top: var(--space-md);
  margin-top: var(--space-md);
  border-top: 2px solid var(--color-border);
}

.coupon-form {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.coupon-form input {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  outline: none;
}

.coupon-form input:focus {
  border-color: var(--color-primary);
}


/* ============================================
   LOGIN / REGISTRATION
   ============================================ */
.auth-container {
  max-width: 440px;
  margin: var(--space-5xl) auto;
}

.auth-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
}

.auth-title {
  text-align: center;
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-sm);
}

.auth-subtitle {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2xl);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
  color: var(--color-text-muted);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.google-login-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-weight: var(--fw-medium);
  font-size: var(--fs-sm);
  color: var(--color-text);
  transition: all var(--transition-fast);
}

.google-login-btn:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.google-login-btn svg {
  width: 20px;
  height: 20px;
}


/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  padding: calc(80px + var(--space-3xl)) 0 var(--space-3xl);
  background: var(--color-bg-alt);
  text-align: center;
}

.page-header-title {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-sm);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.breadcrumbs a {
  color: var(--color-text-muted);
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs .sep {
  color: var(--color-border);
}


/* ============================================
   WOOCOMMERCE OVERRIDES
   ============================================ */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
  border-radius: var(--radius-md);
  border-color: var(--color-primary);
  background: var(--color-bg-card);
}

.woocommerce .woocommerce-message::before {
  color: var(--color-success);
}

.woocommerce .button,
.woocommerce input.button {
  background: var(--color-primary) !important;
  color: var(--color-text-inverse) !important;
  border-radius: var(--radius-full) !important;
  font-weight: var(--fw-semibold) !important;
  letter-spacing: var(--ls-wide) !important;
  text-transform: uppercase !important;
  font-size: var(--fs-sm) !important;
  padding: var(--space-md) var(--space-xl) !important;
  border: none !important;
  transition: all var(--transition-base) !important;
}

.woocommerce .button:hover,
.woocommerce input.button:hover {
  background: var(--color-primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.woocommerce .price {
  color: var(--color-primary-dark) !important;
  font-weight: var(--fw-bold);
}

.woocommerce .price del {
  color: var(--color-text-muted) !important;
  opacity: 0.6;
}

.woocommerce-pagination .page-numbers {
  border-color: var(--color-border) !important;
  color: var(--color-text) !important;
  border-radius: var(--radius-md) !important;
}

.woocommerce-pagination .page-numbers.current {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: var(--color-text-inverse) !important;
}

.woocommerce .star-rating span::before {
  color: var(--color-accent) !important;
}


/* ============================================
   LOADING / SPINNER
   ============================================ */
.krofto-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.krofto-loader span {
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: loader-bounce 1.4s ease-in-out infinite both;
}

.krofto-loader span:nth-child(2) { animation-delay: 0.16s; }
.krofto-loader span:nth-child(3) { animation-delay: 0.32s; }

@keyframes loader-bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2xl);
  }

  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-image-wrapper {
    max-width: 400px;
    margin: 0 auto;
  }

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

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

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

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .shop-sidebar {
    position: static;
  }

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

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

  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }
  h3 { font-size: var(--fs-xl); }

  .section {
    padding: var(--space-3xl) 0;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .hero {
    min-height: auto;
    padding: calc(80px + var(--space-2xl)) 0 var(--space-2xl);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .cta-section {
    margin: 0;
    border-radius: 0;
    padding: var(--space-2xl);
  }

  .cta-form {
    flex-direction: column;
  }

  .cta-form input {
    border-radius: var(--radius-full);
  }

  .cta-form button {
    border-radius: var(--radius-full);
  }

  .hero-float {
    display: none;
  }
}

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

  .hero-title {
    font-size: var(--fs-2xl);
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }
}

/* Mobile navigation drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--color-bg);
  z-index: var(--z-overlay);
  padding: var(--space-5xl) var(--space-xl) var(--space-xl);
  transition: right var(--transition-slow);
  box-shadow: var(--shadow-xl);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mobile-nav a {
  display: block;
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(62, 39, 35, 0.4);
  z-index: calc(var(--z-overlay) - 1);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-nav-overlay.visible {
  opacity: 1;
  visibility: visible;
}


/* ============================================
   PAGE HEADER + BREADCRUMBS
   ============================================ */
.page-header {
  padding: var(--space-3xl) 0 var(--space-2xl);
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border-light);
  margin-top: 80px;
}

.page-header--product {
  text-align: left;
  padding: var(--space-md) 0;
}

.page-header-title {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-sm);
}

.breadcrumbs {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.breadcrumbs a {
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs .sep {
  margin: 0 var(--space-sm);
  opacity: 0.5;
}

/* Container Narrow */
.container--narrow {
  max-width: 780px;
}


/* ============================================
   KROFTO SINGLE PRODUCT (Custom Template)
   ============================================ */
.krofto-single-product {
  max-width: var(--container-xl);
  margin: 0 auto;
}

.krofto-sp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
  margin-bottom: var(--space-3xl);
}

/* Gallery */
.krofto-gallery {
  position: sticky;
  top: 100px;
}

.krofto-gallery-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 2;
}

.krofto-sale-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: var(--color-error);
  color: var(--color-text-inverse);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  border-radius: var(--radius-md);
  letter-spacing: var(--ls-wide);
}

.krofto-gallery-main {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--color-bg-alt);
  margin-bottom: var(--space-md);
}

.krofto-zoom-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: crosshair;
  position: relative;
}

.krofto-gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  transform-origin: center center;
}

.krofto-zoom-hint {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: rgba(62, 39, 35, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-text-inverse);
  font-size: var(--fs-xs);
  border-radius: var(--radius-md);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.krofto-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

.krofto-gallery-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
  background: none;
  padding: 0;
}

.krofto-gallery-thumb:hover {
  transform: scale(1.03);
}

.krofto-gallery-thumb.active {
  border-color: var(--color-primary);
}

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

/* Product Info */
.krofto-product-info {
  padding-top: var(--space-sm);
}

.krofto-pi-category {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  margin-bottom: var(--space-sm);
}

.krofto-pi-category a {
  color: inherit;
  transition: color var(--transition-fast);
}

.krofto-pi-category a:hover {
  color: var(--color-primary);
}

.krofto-pi-title {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-md);
  line-height: var(--lh-tight);
}

/* Rating */
.krofto-pi-rating {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.krofto-stars {
  display: flex;
  gap: 2px;
  color: var(--color-accent);
}

.krofto-star.empty {
  color: var(--color-border);
}

.krofto-pi-rating-value {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  color: var(--color-text);
}

.krofto-pi-rating-count {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.krofto-pi-rating-count:hover {
  color: var(--color-primary);
}

/* Price */
.krofto-pi-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.krofto-pi-price-sale,
.krofto-pi-price-current {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary-dark);
}

.krofto-pi-price-regular {
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.krofto-pi-savings {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-success);
  background: rgba(93, 140, 62, 0.1);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
}

/* Description */
.krofto-pi-short-desc {
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-lg);
  font-size: var(--fs-md);
}

.krofto-pi-short-desc p:last-child {
  margin-bottom: 0;
}

.krofto-pi-description {
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
}

.krofto-pi-desc-title {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-sm);
}

.krofto-pi-desc-content {
  color: var(--color-text-secondary);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
}

.krofto-pi-desc-content p:last-child {
  margin-bottom: 0;
}

/* Quantity + Cart */
.krofto-pi-cart {
  margin-bottom: var(--space-xl);
}

.krofto-pi-qty-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  display: block;
  margin-bottom: var(--space-sm);
}

.krofto-pi-quantity {
  margin-bottom: var(--space-md);
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.krofto-qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-bg-alt);
  border: none;
  cursor: pointer;
  color: var(--color-text);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.krofto-qty-btn:hover {
  background: var(--color-secondary);
  color: var(--color-primary-dark);
}

.krofto-qty-input {
  width: 56px;
  height: 44px;
  text-align: center;
  border: none;
  border-left: 1.5px solid var(--color-border);
  border-right: 1.5px solid var(--color-border);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
  background: transparent;
  color: var(--color-text);
  outline: none;
}

.krofto-qty-btn svg {
  width: 16px;
  height: 16px;
}

.krofto-qty-input {
  -moz-appearance: textfield;
}

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

.krofto-pi-actions {
  display: flex;
  gap: var(--space-md);
}

.krofto-add-to-cart {
  flex: 1;
}

.krofto-wishlist-btn {
  flex-shrink: 0;
}

/* Stock */
.krofto-pi-stock {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-xl);
}

.krofto-pi-stock svg {
  width: 16px;
  height: 16px;
}

.krofto-pi-stock.in-stock {
  color: var(--color-success);
}

.krofto-pi-stock.out-of-stock {
  color: var(--color-error);
}

.krofto-pi-stock-qty {
  color: var(--color-text-muted);
  font-weight: var(--fw-normal);
}

/* Features */
.krofto-pi-features {
  display: flex;
  gap: var(--space-xl);
  padding: var(--space-lg);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
}

.krofto-pi-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}

.krofto-pi-feature svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* Meta */
.krofto-pi-meta {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border-light);
}

.krofto-pi-meta-row {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-xs) 0;
  font-size: var(--fs-sm);
}

.krofto-pi-meta-label {
  color: var(--color-text-muted);
  min-width: 90px;
}

.krofto-pi-meta-value a {
  color: var(--color-text-secondary);
}

.krofto-pi-meta-value a:hover {
  color: var(--color-primary);
}


/* ============================================
   REVIEWS SECTION
   ============================================ */
.krofto-reviews {
  margin-top: var(--space-3xl);
  padding-top: var(--space-3xl);
  border-top: 1px solid var(--color-border-light);
}

.krofto-reviews-title {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-xl);
}

.krofto-reviews-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--color-bg-alt);
  border-radius: var(--radius-xl);
}

.krofto-reviews-avg {
  text-align: center;
  min-width: 140px;
}

.krofto-reviews-avg-number {
  font-size: 3rem;
  font-weight: var(--fw-bold);
  color: var(--color-primary-dark);
  line-height: 1;
  display: block;
  margin-bottom: var(--space-sm);
}

.krofto-reviews-avg-stars {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.krofto-reviews-avg-count {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

/* Rating Distribution */
.krofto-reviews-distribution {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-sm);
}

.krofto-reviews-dist-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.krofto-dist-label {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  min-width: 36px;
}

.krofto-dist-bar {
  flex: 1;
  height: 8px;
  background: var(--color-border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.krofto-dist-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.krofto-dist-pct {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  min-width: 36px;
  text-align: right;
}

/* Review Cards */
.krofto-reviews-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.krofto-review-card {
  padding: var(--space-xl);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  transition: box-shadow var(--transition-base);
}

.krofto-review-card:hover {
  box-shadow: var(--shadow-sm);
}

.krofto-review-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.krofto-review-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(var(--color-primary-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  color: var(--color-primary);
  flex-shrink: 0;
}

.krofto-review-meta {
  flex: 1;
}

.krofto-review-author {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.krofto-review-verified {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: var(--fs-xs);
  color: var(--color-success);
  font-weight: var(--fw-medium);
}

.krofto-review-verified svg {
  width: 12px;
  height: 12px;
}

.krofto-review-date {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.krofto-review-stars {
  display: flex;
  gap: 1px;
  color: var(--color-accent);
}

.krofto-review-title {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-sm);
}

.krofto-review-content {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: 0;
}

/* Review Form */
.krofto-review-form-section {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border-light);
}

.krofto-review-form-title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  margin-bottom: var(--space-xl);
}

.krofto-review-form-rating {
  margin-bottom: var(--space-lg);
}

.krofto-review-form-rating label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-sm);
}

.krofto-rating-select {
  display: flex;
  gap: var(--space-xs);
}

.krofto-rating-star {
  background: none;
  border: none;
  padding: 2px;
  color: var(--color-border);
  cursor: pointer;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.krofto-rating-star:hover {
  transform: scale(1.15);
}

.krofto-rating-star.selected {
  color: var(--color-accent);
}

.krofto-review-login-notice {
  padding: var(--space-xl);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--color-text-secondary);
}

.krofto-review-login-notice a {
  color: var(--color-primary);
  font-weight: var(--fw-semibold);
}

/* Related Products */
.krofto-related-products {
  margin-top: var(--space-3xl);
  padding-top: var(--space-3xl);
  border-top: 1px solid var(--color-border-light);
}

.krofto-related-title {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-xl);
}


/* ============================================
   ABOUT PAGE
   ============================================ */
.krofto-about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.krofto-about-hero-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.krofto-about-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.krofto-about-hero-content p {
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
}

/* Stats */
.krofto-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.krofto-stat {
  padding: var(--space-2xl) var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.krofto-stat:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-secondary);
  transform: translateY(-4px);
}

.krofto-stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.krofto-stat-label {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}


/* ============================================
   FAQ PAGE
   ============================================ */
.krofto-faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.krofto-faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.krofto-faq-item:hover {
  border-color: var(--color-secondary);
}

.krofto-faq-item.open {
  border-color: var(--color-primary);
}

.krofto-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  background: none;
  border: none;
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.krofto-faq-question:hover {
  color: var(--color-primary);
}

.krofto-faq-icon {
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--color-text-muted);
}

.krofto-faq-item.open .krofto-faq-icon {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.krofto-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 var(--space-xl);
}

.krofto-faq-item.open .krofto-faq-answer {
  max-height: 300px;
  padding: 0 var(--space-xl) var(--space-lg);
}

.krofto-faq-answer p {
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  font-size: var(--fs-sm);
}

.krofto-faq-cta {
  text-align: center;
  margin-top: var(--space-3xl);
  padding: var(--space-2xl);
  background: var(--color-bg-alt);
  border-radius: var(--radius-xl);
}

.krofto-faq-cta h3 {
  font-family: var(--font-heading);
  margin-bottom: var(--space-sm);
}

.krofto-faq-cta p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}


/* ============================================
   POLICY PAGES (Privacy, Terms, Shipping, Refund)
   ============================================ */
.krofto-policy-content {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--color-text-secondary);
}

.krofto-policy-updated {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: var(--space-2xl);
}

.krofto-policy-content h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  color: var(--color-text);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.krofto-policy-content h2:first-of-type {
  margin-top: 0;
}

.krofto-policy-content ul,
.krofto-policy-content ol {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.krofto-policy-content ul {
  list-style: disc;
}

.krofto-policy-content ol {
  list-style: decimal;
}

.krofto-policy-content li {
  margin-bottom: var(--space-sm);
  padding-left: var(--space-xs);
}

.krofto-policy-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.krofto-policy-content a:hover {
  color: var(--color-accent);
}

/* Policy Table (Shipping) */
.krofto-policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
}

.krofto-policy-table thead {
  background: var(--color-bg-alt);
}

.krofto-policy-table th {
  text-align: left;
  padding: var(--space-md) var(--space-lg);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

.krofto-policy-table td {
  padding: var(--space-md) var(--space-lg);
  font-size: var(--fs-sm);
  border-top: 1px solid var(--color-border-light);
}


/* ============================================
   RESPONSIVE — NEW COMPONENTS
   ============================================ */
@media (max-width: 1024px) {
  .krofto-sp-layout {
    grid-template-columns: 1fr;
  }

  .krofto-gallery {
    position: static;
  }

  .krofto-about-hero {
    grid-template-columns: 1fr;
  }

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

  .krofto-pi-features {
    flex-wrap: wrap;
    gap: var(--space-md);
  }

  .krofto-reviews-summary {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .krofto-gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xs);
  }

  .krofto-pi-title {
    font-size: var(--fs-2xl);
  }

  .krofto-pi-price-sale,
  .krofto-pi-price-current {
    font-size: var(--fs-xl);
  }

  .krofto-pi-features {
    flex-direction: column;
  }

  .krofto-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .krofto-review-header {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .krofto-pi-actions {
    flex-direction: column;
  }

  .krofto-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   HORIZONTAL BEST SELLERS ACCORDION
   ============================================ */
.krofto-accordion-container {
  display: flex;
  width: 100%;
  height: 600px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.krofto-accordion-card {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.5s ease-in-out;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-right: 10px;
}

.krofto-accordion-card:last-child {
  margin-right: 0;
}

.krofto-accordion-container:hover .krofto-accordion-card {
  flex: 0;
  opacity: 0;
  margin-right: 0;
}

.krofto-accordion-container .krofto-accordion-card:hover {
  flex: 1;
  opacity: 1;
}

.krofto-accordion-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
  z-index: 1;
}

.krofto-accordion-card:hover .krofto-accordion-bg {
  transform: scale(1.05);
}

.krofto-accordion-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(62, 39, 35, 0.9) 0%, rgba(62, 39, 35, 0.4) 50%, rgba(62, 39, 35, 0.1) 100%);
  z-index: 2;
  transition: background 0.5s ease;
}

.krofto-accordion-card:hover .krofto-accordion-overlay {
  background: linear-gradient(to top, rgba(62, 39, 35, 0.95) 0%, rgba(62, 39, 35, 0.6) 60%, rgba(62, 39, 35, 0.2) 100%);
}

.krofto-accordion-content {
  position: relative;
  z-index: 3;
  padding: var(--space-xl);
  color: var(--color-text-inverse);
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-end;
}

.krofto-accordion-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  transition: transform 0.5s ease;
}

.krofto-accordion-card:hover .krofto-accordion-header {
  transform: translateY(-10px);
}

.krofto-accordion-title {
  font-size: var(--fs-xl);
  color: var(--color-text-inverse);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.krofto-accordion-price {
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  color: var(--color-secondary);
}

.krofto-accordion-price .woocommerce-Price-amount {
  color: inherit;
}

.krofto-accordion-expanded-content {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease;
  transition-delay: 0s;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.krofto-accordion-card:hover .krofto-accordion-expanded-content {
  opacity: 1;
  max-height: 300px;
  transition-delay: 0.1s;
  padding-top: var(--space-sm);
}

.krofto-accordion-desc {
  font-size: var(--fs-sm);
  color: rgba(253, 248, 241, 0.8);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.krofto-accordion-desc p {
  margin: 0;
}

.krofto-accordion-gallery {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.krofto-accordion-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
  pointer-events: auto;
}

.krofto-accordion-thumb:hover {
  border-color: var(--color-secondary);
  transform: scale(1.05);
}

.krofto-accordion-btn {
  align-self: flex-start;
  margin-top: var(--space-sm);
  background: var(--color-secondary);
  color: var(--color-primary-dark);
}

.krofto-accordion-btn:hover {
  background: var(--color-secondary-light);
  color: var(--color-primary-dark);
}

@media (max-width: 768px) {
  .krofto-accordion-container {
    flex-direction: column;
    height: 800px;
  }
  .krofto-accordion-card {
    min-height: 100px;
  }
}
