/* ==========================================================================
   COBBLER RIDGE — BESPOKE BENCHMADE FOOTWEAR DESIGN SYSTEM
   Modern, Ultra-Legible, Premium Typography & Layout
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Crisp, Ultra-Legible Modern Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Colors - High Contrast & Warm Craft */
  --bg-page: #FBF9F5;
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #F3EEE7;
  --bg-dark: #121110;
  --bg-dark-card: #1C1A18;
  
  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6B7280;
  --text-inverse: #FFFFFF;

  --accent-saddle: #9A4612;
  --accent-saddle-hover: #7E360B;
  --accent-saddle-light: #F7EFE9;
  --accent-amber: #B86725;
  --accent-evergreen: #1E3A2F;
  --accent-evergreen-light: #E6F0EB;
  
  --border-light: #E5DFD5;
  --border-subtle: #EFE9E0;
  --border-dark: #2B2824;

  --badge-bg: #EAE3D6;
  --badge-text: #2A2621;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.12);
  --shadow-drawer: -10px 0 30px rgba(0, 0, 0, 0.25);

  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;

  --transition-fast: 0.15s ease;
  --transition-base: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  --container-max: 1280px;
  --container-narrow: 880px;
  --header-height: 80px;
}

/* 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;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

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

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

/* Typography Helpers */
.font-serif { font-family: var(--font-serif); }
.font-mono { font-family: var(--font-mono); }

/* ==========================================================================
   ANNOUNCEMENT BAR
   ========================================================================== */
.announcement-bar {
  background-color: var(--bg-dark);
  color: #E5E7EB;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-dark);
}

.announcement-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
}

.announcement-content .divider {
  color: var(--accent-amber);
}

/* ==========================================================================
   SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(251, 249, 245, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition-base), background-color var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  background-color: #FFFFFF;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-tagline {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--accent-saddle);
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 3px;
}

.main-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
}

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

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: background-color var(--transition-fast), color var(--transition-fast);
  position: relative;
}

.action-btn:hover {
  background-color: var(--bg-surface-alt);
  color: var(--accent-saddle);
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: var(--accent-saddle);
  color: white;
  font-size: 11px;
  font-weight: 700;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: 1px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  text-align: center;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--bg-dark);
  color: var(--text-inverse);
  border: 1px solid var(--bg-dark);
}

.btn-primary:hover {
  background-color: var(--accent-saddle);
  border-color: var(--accent-saddle);
  color: white;
}

.btn-secondary {
  background-color: var(--accent-saddle);
  color: white;
  border: 1px solid var(--accent-saddle);
}

.btn-secondary:hover {
  background-color: var(--accent-saddle-hover);
  border-color: var(--accent-saddle-hover);
}

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

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

.btn-outline-white {
  background-color: transparent;
  color: #FFFFFF;
  border: 1.5px solid #FFFFFF;
}

.btn-outline-white:hover {
  background-color: #FFFFFF;
  color: var(--bg-dark);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  background-color: var(--badge-bg);
  color: var(--badge-text);
}

.badge-sale {
  background-color: #FEE2E2;
  color: #991B1B;
}

.badge-artisan {
  background-color: var(--accent-saddle-light);
  color: var(--accent-saddle);
}

.badge-evergreen {
  background-color: var(--accent-evergreen-light);
  color: var(--accent-evergreen);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: var(--bg-dark);
  color: var(--text-inverse);
  overflow: hidden;
  padding: 90px 0 110px;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(184, 103, 37, 0.22) 0%, transparent 60%),
              linear-gradient(to bottom, rgba(18, 17, 16, 0.4) 0%, rgba(18, 17, 16, 0.95) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-subtitle {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #E5A86B;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-subtitle::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background-color: #E5A86B;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  color: #FFFFFF;
}

.hero-title em {
  font-style: normal;
  color: #F3C99F;
}

.hero-text {
  font-size: 17px;
  line-height: 1.7;
  color: #E5E7EB;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  aspect-ratio: 4/3;
  background-color: #22201D;
}

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

.hero-image-card:hover img {
  transform: scale(1.03);
}

.hero-badge-float {
  position: absolute;
  bottom: -16px;
  left: -16px;
  background-color: #FFFFFF;
  color: var(--text-primary);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 260px;
}

.hero-badge-icon {
  width: 36px;
  height: 36px;
  background-color: var(--accent-saddle-light);
  color: var(--accent-saddle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-badge-text p:first-child {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-saddle);
  text-transform: uppercase;
}

.hero-badge-text p:last-child {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

/* ==========================================================================
   VALUE PROPOSITION PILLARS
   ========================================================================== */
.pillars-section {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 40px 0;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.pillar-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pillar-icon {
  width: 44px;
  height: 44px;
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-saddle);
  flex-shrink: 0;
}

.pillar-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.pillar-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   SECTION HEADERS
   ========================================================================== */
.section {
  padding: 80px 0;
}

.section-header {
  margin-bottom: 44px;
}

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

.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--accent-saddle);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 12px auto 0;
  line-height: 1.6;
}

/* ==========================================================================
   CATEGORY CARDS
   ========================================================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.category-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3/4;
  background-color: #22201D;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #FFFFFF;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.category-card:hover .category-card-bg {
  transform: scale(1.06);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 17, 16, 0.9) 0%, rgba(18, 17, 16, 0.2) 60%, transparent 100%);
  z-index: 1;
}

.category-card-content {
  position: relative;
  z-index: 2;
}

.category-card-count {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #F3C99F;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
  display: block;
}

.category-card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 6px;
}

.category-card-link {
  font-size: 13px;
  font-weight: 600;
  color: #E5E7EB;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.category-card:hover .category-card-link {
  color: #FFFFFF;
}

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

.product-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-amber);
}

.product-card-image-wrap {
  position: relative;
  aspect-ratio: 1/1;
  background-color: #F7F5F0;
  overflow: hidden;
}

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

.product-card-image.hover-img {
  position: absolute;
  inset: 0;
  opacity: 0;
}

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

.product-card:hover .product-card-image.hover-img {
  opacity: 1;
  transform: scale(1.04);
}

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

.product-card-actions {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-base);
  z-index: 3;
}

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

.quick-add-btn {
  flex: 1;
  background-color: rgba(18, 17, 16, 0.95);
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 11px;
  border-radius: var(--radius-xs);
  backdrop-filter: blur(4px);
  transition: background-color var(--transition-fast);
}

.quick-add-btn:hover {
  background-color: var(--accent-saddle);
}

.product-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.product-card-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-title a:hover {
  color: var(--accent-saddle);
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.rating-stars {
  color: #D97706;
  display: flex;
  gap: 2px;
  font-size: 14px;
}

.product-card-footer {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.current-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
}

.compare-price {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-card-origin {
  font-size: 11px;
  color: var(--accent-saddle);
  font-weight: 700;
  text-transform: uppercase;
}

/* ==========================================================================
   ANATOMY / CRAFTSMANSHIP SHOWCASE
   ========================================================================== */
.craft-showcase-section {
  background-color: var(--bg-dark);
  color: var(--text-inverse);
  padding: 90px 0;
  position: relative;
}

.craft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.craft-feature-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.craft-feature-item {
  border-left: 3px solid var(--border-dark);
  padding-left: 24px;
  transition: border-color var(--transition-fast);
}

.craft-feature-item:hover {
  border-left-color: var(--accent-amber);
}

.craft-feature-num {
  font-size: 12px;
  color: #F3C99F;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.06em;
}

.craft-feature-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.craft-feature-desc {
  font-size: 15px;
  color: #D1D5DB;
  line-height: 1.6;
}

.craft-visual-wrapper {
  position: relative;
}

.craft-visual-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   TESTIMONIALS & REVIEWS
   ========================================================================== */
.testimonials-section {
  background-color: var(--bg-surface-alt);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.testimonial-quote {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.author-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
}

.author-location {
  font-size: 13px;
  color: var(--text-muted);
}

.verified-buyer-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--accent-evergreen);
  font-weight: 700;
  text-transform: uppercase;
}

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */
.newsletter-section {
  background-color: var(--bg-surface);
  text-align: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--border-light);
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 28px auto 0;
}

.newsletter-input {
  flex: 1;
  padding: 14px 20px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-size: 15px;
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--accent-saddle);
}

/* ==========================================================================
   CATALOG PAGE
   ========================================================================== */
.catalog-header {
  background-color: var(--bg-surface-alt);
  border-bottom: 1px solid var(--border-light);
  padding: 48px 0;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 48px 0 90px;
}

.filter-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.filter-group-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
  accent-color: var(--accent-saddle);
  width: 17px;
  height: 17px;
}

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

.filter-option .count {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 16px;
}

.catalog-count-text {
  font-size: 15px;
  color: var(--text-secondary);
}

.catalog-count-text strong {
  color: var(--text-primary);
}

.catalog-sort-select {
  padding: 9px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

/* ==========================================================================
   PRODUCT DETAIL PAGE (PDP)
   ========================================================================== */
.product-detail-section {
  padding: 40px 0 90px;
}

.product-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.product-breadcrumbs a:hover {
  color: var(--accent-saddle);
}

.product-breadcrumbs .divider {
  font-size: 11px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: start;
}

/* Product Gallery */
.pdp-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 100px;
}

.pdp-main-image-wrap {
  position: relative;
  aspect-ratio: 1/1;
  background-color: #F7F5F0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

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

.pdp-thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.pdp-thumb {
  aspect-ratio: 1/1;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background-color: #F7F5F0;
  transition: border-color var(--transition-fast);
}

.pdp-thumb.active, .pdp-thumb:hover {
  border-color: var(--accent-saddle);
}

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

/* Product Info Panel */
.pdp-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pdp-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
}

.pdp-category-tag {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent-saddle);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.pdp-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.pdp-price-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.pdp-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.pdp-price .current {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
}

.pdp-price .compare {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.pdp-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.pdp-stock-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background-color: var(--accent-evergreen-light);
  color: var(--accent-evergreen);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
}

.pdp-stock-status::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--accent-evergreen);
  border-radius: 50%;
  display: inline-block;
}

.pdp-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Sizing Options */
.pdp-option-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdp-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}

.size-guide-link {
  font-size: 13px;
  color: var(--accent-saddle);
  text-decoration: underline;
}

.size-pills-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.size-pill {
  padding: 11px 4px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--bg-surface);
  transition: all var(--transition-fast);
}

.size-pill:hover {
  border-color: var(--text-primary);
}

.size-pill.selected {
  background-color: var(--bg-dark);
  color: white;
  border-color: var(--bg-dark);
}

.pdp-actions-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.quantity-picker {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
}

.qty-btn {
  width: 40px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
}

.qty-input {
  width: 40px;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 15px;
}

/* Accordion */
.pdp-accordions {
  border-top: 1px solid var(--border-light);
  margin-top: 16px;
}

.accordion-item {
  border-bottom: 1px solid var(--border-light);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: left;
}

.accordion-icon {
  font-size: 18px;
  transition: transform var(--transition-fast);
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  display: none;
  padding-bottom: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.accordion-item.active .accordion-content {
  display: block;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}

.specs-table td:first-child {
  font-weight: 700;
  color: var(--text-primary);
  width: 35%;
}

/* ==========================================================================
   CHECKOUT PAGE (STRIPE REALISTIC FLOW)
   ========================================================================== */
.checkout-section {
  padding: 40px 0 90px;
  background-color: var(--bg-page);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: start;
}

.checkout-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.checkout-step-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-num {
  width: 26px;
  height: 26px;
  background-color: var(--bg-dark);
  color: white;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group.full {
  grid-column: span 2;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  font-size: 14px;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-saddle);
}

.stripe-card-element-box {
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 18px;
  background-color: #FAFAFA;
}

.stripe-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.stripe-brands {
  display: flex;
  gap: 6px;
}

/* Order Summary Box */
.order-summary-box {
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 32px;
  position: sticky;
  top: 100px;
}

.summary-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.summary-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  max-height: 320px;
  overflow-y: auto;
}

.summary-item {
  display: flex;
  gap: 14px;
  align-items: center;
}

.summary-item-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  background-color: white;
  border: 1px solid var(--border-light);
}

.summary-item-info {
  flex: 1;
}

.summary-item-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.summary-item-variant {
  font-size: 12px;
  color: var(--text-muted);
}

.summary-item-price {
  font-weight: 700;
  font-size: 15px;
}

.summary-totals {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-secondary);
}

.summary-row.total-row {
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
  margin-top: 4px;
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
}

/* ==========================================================================
   LEGAL & CONTENT PAGES
   ========================================================================== */
.legal-page-header {
  background-color: var(--bg-surface-alt);
  border-bottom: 1px solid var(--border-light);
  padding: 60px 0;
  text-align: center;
}

.legal-content-container {
  max-width: 820px;
  margin: 60px auto;
  padding: 0 24px;
}

.legal-article {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.legal-article h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.legal-article h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 24px 0 12px;
}

.legal-article p {
  margin-bottom: 16px;
}

.legal-article ul {
  list-style: disc;
  margin-left: 24px;
  margin-bottom: 20px;
}

.legal-article li {
  margin-bottom: 8px;
}

.legal-highlight-box {
  background-color: var(--accent-saddle-light);
  border-left: 4px solid var(--accent-saddle);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: var(--radius-xs);
  color: var(--text-primary);
}

/* ==========================================================================
   CART DRAWER & SEARCH MODAL
   ========================================================================== */
.cart-drawer-overlay, .search-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(18, 17, 16, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.cart-drawer-overlay.active, .search-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-drawer);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-base);
}

.cart-drawer-overlay.active .cart-drawer {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-title-group h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
}

.cart-drawer-count {
  font-size: 13px;
  color: var(--text-muted);
}

.cart-drawer-close {
  font-size: 28px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.cart-drawer-close:hover {
  color: var(--text-primary);
}

.free-shipping-progress {
  background-color: var(--bg-surface-alt);
  padding: 12px 24px;
  border-bottom: 1px solid var(--border-light);
}

.progress-bar-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  text-align: center;
}

.progress-track {
  height: 5px;
  background-color: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--accent-evergreen);
  transition: width var(--transition-base);
}

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  background-color: #F7F5F0;
  border: 1px solid var(--border-light);
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2px;
}

.cart-item-variant {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cart-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
}

.cart-item-qty button {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.cart-item-qty span {
  width: 26px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.cart-item-remove {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: underline;
}

.cart-item-remove:hover {
  color: #991B1B;
}

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-light);
  background-color: var(--bg-surface);
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.cart-tax-notice {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.cart-trust-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.empty-cart-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
  gap: 12px;
}

/* Search Modal */
.search-modal {
  max-width: 680px;
  margin: 80px auto 0;
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.search-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--border-light);
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.search-input-wrapper input {
  width: 100%;
  border: none;
  font-size: 16px;
  color: var(--text-primary);
  background: transparent;
}

.search-input-wrapper input:focus {
  outline: none;
}

.close-search-btn {
  font-size: 28px;
  line-height: 1;
  color: var(--text-muted);
}

.search-results-container {
  max-height: 480px;
  overflow-y: auto;
  padding: 20px 24px;
}

.search-popular-title {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}

.popular-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.popular-tag {
  padding: 5px 14px;
  background-color: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.popular-tag:hover {
  border-color: var(--accent-saddle);
  color: var(--accent-saddle);
}

.search-results-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-result-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius-xs);
  transition: background-color var(--transition-fast);
}

.search-result-item:hover {
  background-color: var(--bg-surface-alt);
}

.search-result-img {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  background-color: #F7F5F0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--bg-dark);
  color: #D1D5DB;
  border-top: 1px solid var(--border-dark);
  padding: 80px 0 0;
  margin-top: auto;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border-dark);
}

.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  margin-bottom: 16px;
  display: block;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #9CA3AF;
  margin-bottom: 20px;
}

.footer-workshop-info p {
  font-size: 13px;
  line-height: 1.6;
  color: #E5E7EB;
  margin-bottom: 8px;
}

.footer-heading {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: #9CA3AF;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.payment-badges-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.pay-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  background-color: #22201D;
  border: 1px solid #383531;
  border-radius: var(--radius-xs);
  color: #E5E7EB;
}

.footer-bottom {
  padding: 24px 0;
  font-size: 13px;
  color: #9CA3AF;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-made-tag {
  font-size: 12px;
  color: #9CA3AF;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background-color: var(--bg-dark);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  animation: slideInUp 0.3s ease forwards;
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .craft-grid {
    grid-template-columns: 1fr;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    display: none;
  }
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .categories-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
  .size-pills-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
