/* ==========================================================================
   CLOSET4BREAKFAST - PREMIUM VINTAGE & THRIFT LANDING PAGE
   DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

/* --- CSS Variables --- */
:root {
  --bg: #FAF8F5;
  --card: #FFFFFF;
  --primary: #111111;
  --secondary: #555555;
  --accent: #2F2F2F;
  --border: #D9D9D9;
  --highlight: #ECE8E2;
  
  --font-heading: 'Caveat', cursive;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  --sketch-border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  --sketch-border-radius-reverse: 15px 225px 15px 255px/255px 15px 225px 15px;
}

/* --- Base Styles & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  background-color: var(--bg);
}

body {
  font-family: var(--font-body);
  color: var(--primary);
  background-color: var(--bg);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Paper Grain Texture Overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.035;
  pointer-events: none;
  z-index: 9999;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- Scrollbar Customization --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border: 2px solid var(--bg);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: var(--secondary);
}

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

.handwritten {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
}

.accent-font {
  font-family: var(--font-heading);
  color: var(--accent);
}

/* --- Shared Layout Containers & Components --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
}

.section-header {
  margin-bottom: 4rem;
  position: relative;
}

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

.section-title {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--secondary);
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
  .section-header {
    margin-bottom: 2.5rem;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-body);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg);
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--accent);
  color: #FFFFFF;
  border: 2px solid var(--accent);
}

.btn-accent:hover {
  background-color: transparent;
  color: var(--accent);
  transform: translateY(-2px);
}

.w-100 {
  width: 100%;
}

/* --- Custom Cursor --- */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, background-color 0.3s;
  mix-blend-mode: difference;
}

.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

@media (hover: none) {
  .custom-cursor, .custom-cursor-dot {
    display: none;
  }
}

/* --- Loading Screen --- */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg);
  z-index: 10005;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

.loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  margin-bottom: 2rem;
  animation: pulse-border 2s infinite ease-in-out;
}

.loader-bar-container {
  width: 160px;
  height: 2px;
  background-color: var(--border);
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
}

.loader-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 40%;
  background-color: var(--primary);
  animation: load-slide 1.5s infinite ease-in-out;
}

.loader-text {
  font-size: 1.5rem;
  color: var(--secondary);
}

/* --- Dividers --- */
.pencil-divider {
  width: 100%;
  height: 20px;
  margin: 4rem 0;
  overflow: hidden;
}

.pencil-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pencil-divider-nav {
  width: 100%;
  height: 5px;
  position: absolute;
  bottom: 0;
  left: 0;
  background: radial-gradient(rgba(17, 17, 17, 0.15) 1px, transparent 0);
  background-size: 4px 4px;
}

.pencil-divider-banner {
  width: 100%;
  height: 10px;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
}

.pencil-divider-footer {
  width: 100%;
  height: 20px;
  transform: translateY(-10px);
}

/* --- Sticky Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 1000;
  background-color: transparent;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  height: 75px;
  background-color: rgba(250, 248, 245, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 1001;
}

.brand-logo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  object-fit: cover;
  transition: var(--transition-smooth);
}

.navbar.scrolled .brand-logo {
  width: 38px;
  height: 38px;
}

.brand-text {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.nav-menu ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
  color: var(--secondary);
}

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.nav-icon-btn:hover {
  background-color: var(--highlight);
  transform: translateY(-1px);
}

.nav-icon-btn i {
  width: 20px;
  height: 20px;
  stroke-width: 1.8px;
}

.badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: var(--primary);
  color: var(--bg);
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger .bar {
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition-smooth);
}

@media (max-width: 991px) {
  .nav-menu {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

/* --- Mobile Drawer Navigation --- */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

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

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  height: 100%;
  background-color: var(--bg);
  z-index: 2001;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  padding: 2rem;
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.close-drawer-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--highlight);
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.drawer-link {
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  padding: 0.5rem 0;
}

.drawer-footer {
  margin-top: auto;
  border-top: 1.5px dashed var(--border);
  padding-top: 1.5rem;
  text-align: center;
}

.drawer-footer p {
  font-size: 1.25rem;
}

/* --- Hero Section --- */
.hero-section {
  padding-top: 150px;
  padding-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 4rem;
}

.hero-content {
  position: relative;
}

.tag-accent {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 2.5rem;
  max-width: 550px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Hero Doodles */
.hero-doodles {
  position: absolute;
  bottom: -60px;
  right: 50px;
  pointer-events: none;
}

.doodle-arrow {
  animation: wiggle-float 6s infinite ease-in-out;
}

.doodle-text {
  font-size: 1.5rem;
  transform: rotate(-12deg) translateY(-20px);
  color: var(--accent);
}

/* Hero Image & Paper Frame */
.hero-image-container {
  display: flex;
  justify-content: center;
  position: relative;
}

.paper-frame {
  background-color: var(--card);
  padding: 1.25rem 1.25rem 3rem 1.25rem;
  box-shadow: 10px 15px 30px rgba(0, 0, 0, 0.03);
  border: 2px solid var(--primary);
  border-radius: var(--sketch-border-radius);
  position: relative;
  transform: rotate(2deg);
  transition: var(--transition-smooth);
  max-width: 420px;
  width: 100%;
}

.paper-frame:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 15px 20px 40px rgba(0, 0, 0, 0.06);
}

.hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  filter: grayscale(10%) contrast(105%);
}

.rough-border-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 2.75rem;
  border: 1px dashed var(--secondary);
  border-radius: 6px;
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  background-color: var(--primary);
  color: var(--bg);
  padding: 0.5rem 1.5rem;
  border: 1.5px solid var(--primary);
  border-radius: 4px;
  white-space: nowrap;
}

.hero-badge .handwritten {
  font-size: 1.25rem;
}

.doodle-star {
  position: absolute;
  top: -20px;
  right: -20px;
  animation: spin-slow 20s infinite linear;
}

@media (max-width: 991px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-doodles {
    display: none;
  }
  
  .paper-frame {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-img {
    height: 380px;
  }
}

/* --- Why Thrift Section --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.why-card {
  background: var(--card);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  position: relative;
  transition: var(--transition-smooth);
}

.why-card::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: -5px;
  bottom: -5px;
  border: 1.5px solid var(--primary);
  border-radius: 12px;
  pointer-events: none;
  z-index: -1;
  transition: var(--transition-smooth);
}

.why-card:hover {
  transform: translateY(-5px);
}

.why-card:hover::after {
  top: 8px;
  left: 8px;
  right: -8px;
  bottom: -8px;
}

.why-icon-container {
  position: relative;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.why-icon-sketch {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.why-icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
  stroke-width: 1.8px;
  z-index: 1;
}

.why-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.why-text {
  font-size: 0.95rem;
  color: var(--secondary);
}

@media (max-width: 991px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- Featured Collection --- */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
}

.collection-filters {
  display: flex;
  gap: 0.75rem;
}

.filter-btn {
  background: none;
  border: 1.5px solid var(--border);
  padding: 0.5rem 1.25rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}

@media (max-width: 768px) {
  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .collection-filters {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Product Card */
.product-card {
  background-color: var(--card);
  border: 2px solid var(--primary);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.product-card::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: -5px;
  bottom: -5px;
  border: 1.5px solid var(--primary);
  border-radius: 12px;
  pointer-events: none;
  z-index: -1;
  transition: var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-8px);
}

.product-card:hover::after {
  top: 10px;
  left: 10px;
  right: -10px;
  bottom: -10px;
}

/* Image Wrapper */
.product-img-wrapper {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-bottom: 2px solid var(--primary);
  background-color: var(--highlight);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Discount Badge */
.discount-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--primary);
  color: var(--bg);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  border: 1px solid var(--primary);
  letter-spacing: 0.5px;
}

/* Like Button */
.like-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background-color: var(--card);
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--primary);
}

.like-btn:hover {
  transform: scale(1.1);
  background-color: var(--highlight);
}

.like-btn.liked i {
  fill: #E05A47;
  stroke: #E05A47;
}

/* Product Action Overlay Slide-up */
.product-actions-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem;
  background: linear-gradient(to top, rgba(250, 248, 245, 0.95), rgba(250, 248, 245, 0));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transform: translateY(102%);
  transition: var(--transition-smooth);
}

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

.action-btn-hover {
  padding: 0.6rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.action-btn-hover.add-cart {
  background-color: var(--primary);
  color: var(--bg);
}

.action-btn-hover.add-cart:hover {
  background-color: transparent;
  color: var(--primary);
}

.action-btn-hover.quick-view {
  background-color: var(--card);
  color: var(--primary);
}

.action-btn-hover.quick-view:hover {
  background-color: var(--primary);
  color: var(--bg);
}

/* Info Details */
.product-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.price-current {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary);
}

.price-old {
  font-size: 0.95rem;
  color: var(--secondary);
  text-decoration: line-through;
  opacity: 0.65;
}

/* --- Limited Drop Banner --- */
.limited-banner {
  background-color: var(--primary);
  color: var(--bg);
  position: relative;
  padding: 6rem 0;
  margin: 6rem 0;
  overflow: hidden;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 0);
  background-size: 12px 12px;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 17, 17, 0.4);
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.banner-tag {
  color: var(--border);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.banner-title {
  font-size: 4rem;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.banner-description {
  color: var(--border);
  font-size: 1.15rem;
  max-width: 550px;
  margin: 0 auto 2.5rem auto;
}

.banner-scribble {
  position: absolute;
  top: 0;
  right: -50px;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scribble-svg {
  position: absolute;
  top: 0;
  left: 0;
  animation: spin-slow 25s infinite linear;
}

.scribble-text {
  font-size: 1.35rem;
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .banner-title {
    font-size: 2.8rem;
  }
  .banner-scribble {
    display: none;
  }
  .mobile-only {
    display: block;
  }
}

/* --- Categories Section --- */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.category-card {
  position: relative;
  background-color: var(--card);
  border: 2px solid var(--primary);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.category-card::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: -5px;
  bottom: -5px;
  border: 1.5px solid var(--primary);
  border-radius: 12px;
  pointer-events: none;
  z-index: -1;
  transition: var(--transition-smooth);
}

.category-card:hover {
  transform: translateY(-5px) rotate(1deg);
}

.category-card:hover::after {
  top: 8px;
  left: 8px;
  right: -8px;
  bottom: -8px;
}

.category-img-wrapper {
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
}

.category-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
  filter: grayscale(20%);
}

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

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.7) 0%, rgba(17, 17, 17, 0.1) 60%);
  z-index: 1;
}

.category-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--bg);
}

.cat-label {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cat-arrow {
  width: 38px;
  height: 38px;
  background-color: var(--bg);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.category-card:hover .cat-arrow {
  transform: rotate(45deg);
  background-color: var(--primary);
  color: var(--bg);
}

@media (max-width: 991px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* --- Testimonials Section --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.testimonial-card {
  background-color: var(--card);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 2.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.testimonial-card::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 5px;
  right: -5px;
  bottom: -5px;
  border: 1.5px solid var(--primary);
  border-radius: 12px;
  pointer-events: none;
  z-index: -1;
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-card:hover::after {
  top: 8px;
  left: 8px;
  right: -8px;
  bottom: -8px;
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.star-icon {
  width: 16px;
  height: 16px;
  fill: var(--primary);
  stroke: var(--primary);
}

.testimonial-quote {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--primary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.author-avatar-container {
  position: relative;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-sketch {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.avatar-initials {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  z-index: 1;
}

.author-name {
  font-size: 1rem;
  font-weight: 700;
}

.author-tag {
  font-size: 1.15rem;
  color: var(--secondary);
  line-height: 1;
}

@media (max-width: 991px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- Sustainability Timeline --- */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  border-left: 2px dashed var(--border);
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 4rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: 6px;
  top: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marker-sketch {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.marker-number {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  z-index: 1;
}

.timeline-content {
  background-color: var(--card);
  padding: 2rem;
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  position: relative;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 18px;
  left: -9px;
  width: 16px;
  height: 16px;
  background-color: var(--card);
  border-left: 1.5px solid var(--primary);
  border-bottom: 1.5px solid var(--primary);
  transform: rotate(45deg);
}

.timeline-heading {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

/* --- Newsletter Section --- */
.newsletter-section {
  display: flex;
  justify-content: center;
  padding: 4rem 2rem;
}

.paper-note {
  position: relative;
  background-color: #FFFFFF;
  border: 1.5px solid var(--border);
  width: 100%;
  max-width: 750px;
  box-shadow: 10px 10px 0px var(--highlight);
  transform: rotate(-0.5deg);
}

.paper-torn-edge-top {
  height: 10px;
  background: 
    linear-gradient(135deg, var(--bg) 25%, transparent 25%), 
    linear-gradient(225deg, var(--bg) 25%, transparent 25%);
  background-size: 10px 20px;
  background-position: 0 0;
}

.paper-torn-edge-bottom {
  height: 10px;
  background: 
    linear-gradient(45deg, var(--bg) 25%, transparent 25%), 
    linear-gradient(315deg, var(--bg) 25%, transparent 25%);
  background-size: 10px 20px;
  background-position: 0 0;
}

.paper-note-inner {
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
}

.newsletter-stamp {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: var(--secondary);
  border: 1.5px dashed var(--secondary);
  padding: 0.25rem 0.75rem;
  transform: rotate(8deg);
  font-size: 1.2rem;
  border-radius: 4px;
}

.newsletter-title {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.newsletter-subtitle {
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 2.5rem auto;
}

.newsletter-form {
  display: flex;
  gap: 1.5rem;
  max-width: 500px;
  margin: 0 auto;
  align-items: center;
}

.input-wrapper {
  flex-grow: 1;
  position: relative;
}

.newsletter-form input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.85rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
  outline: none;
}

.input-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--border);
  transition: var(--transition-smooth);
}

.newsletter-form input:focus ~ .input-underline {
  background-color: var(--primary);
}

.newsletter-message {
  margin-top: 1.5rem;
  font-size: 1.35rem;
}

@media (max-width: 768px) {
  .paper-note-inner {
    padding: 3rem 1.5rem;
  }
  .newsletter-title {
    font-size: 2.2rem;
  }
  .newsletter-form {
    flex-direction: column;
    gap: 1.25rem;
  }
  .input-wrapper {
    width: 100%;
  }
  .newsletter-form button {
    width: 100%;
  }
  .newsletter-stamp {
    display: none;
  }
}

/* --- Footer --- */
.footer {
  background-color: var(--bg);
  padding-top: 4rem;
  padding-bottom: 2rem;
  position: relative;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-brand .nav-brand {
  margin-bottom: 1.5rem;
}

.footer-desc {
  font-size: 0.95rem;
  color: var(--secondary);
  margin-bottom: 2rem;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  transition: var(--transition-fast);
}

.social-link:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.95rem;
  color: var(--secondary);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 3px;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--secondary);
}

.contact-info li i {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.footer-hours {
  margin-top: 0.75rem;
  font-size: 1.35rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--secondary);
}

@media (max-width: 991px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 576px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* --- Back to Top --- */
.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--card);
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.back-to-top-btn i {
  width: 22px;
  height: 22px;
  color: var(--primary);
  z-index: 2;
}

.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
  pointer-events: none;
}

.progress-ring-circle {
  transition: stroke-dashoffset 0.1s;
  transform-origin: 50% 50%;
  stroke-dasharray: 138.2; /* 2 * PI * 22 */
  stroke-dashoffset: 138.2;
}

/* --- Modals and Drawers --- */

/* Search Overlay Modal */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(250, 248, 245, 0.97);
  z-index: 2010;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-container {
  width: 100%;
  max-width: 650px;
  padding: 2rem;
  position: relative;
}

.search-close {
  position: absolute;
  top: -40px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--highlight);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.search-form-wrapper {
  position: relative;
  margin-bottom: 2rem;
}

.search-form-wrapper input {
  width: 100%;
  background: transparent;
  border: none;
  font-size: 1.75rem;
  font-family: var(--font-body);
  padding: 0.5rem 0;
  outline: none;
  text-align: center;
}

.search-bar-line {
  height: 2px;
  background-color: var(--primary);
  width: 100%;
}

.search-results-container {
  max-height: 280px;
  overflow-y: auto;
  padding: 1rem;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--border);
  cursor: pointer;
}

.search-result-item:hover {
  background-color: var(--highlight);
}

.search-result-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
}

.search-result-title {
  font-weight: 700;
}

/* Modals General overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 17, 17, 0.4);
  backdrop-filter: blur(4px);
  z-index: 2020;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background-color: var(--bg);
  border: 2px solid var(--primary);
  border-radius: 12px;
  width: 100%;
  max-width: 800px;
  padding: 2.5rem;
  position: relative;
  transform: translateY(30px);
  transition: var(--transition-smooth);
  box-shadow: 15px 15px 0px rgba(17, 17, 17, 0.15);
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--highlight);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal Content Structure */
.modal-product-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
}

.modal-product-gallery {
  aspect-ratio: 3/4;
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  overflow: hidden;
}

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

.modal-product-details {
  display: flex;
  flex-direction: column;
}

.modal-product-tag {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.modal-product-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.modal-product-price-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.modal-product-price {
  font-size: 1.5rem;
  font-weight: 800;
}

.modal-product-old-price {
  font-size: 1.15rem;
  color: var(--secondary);
  text-decoration: line-through;
  opacity: 0.6;
}

.modal-product-desc {
  font-size: 0.95rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.modal-meta-list {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-meta-list li {
  font-size: 0.9rem;
}

.modal-meta-list strong {
  color: var(--primary);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

@media (max-width: 768px) {
  .modal-container {
    max-width: 90%;
    padding: 1.5rem;
    max-height: 90vh;
    overflow-y: auto;
  }
  .modal-product-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .modal-product-gallery {
    aspect-ratio: 4/3;
  }
}

/* Drawers (Cart and Wishlist) Overlay */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 17, 17, 0.4);
  z-index: 2005;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Side Drawers */
.side-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100%;
  background-color: var(--bg);
  z-index: 2006;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.side-drawer.active {
  right: 0;
}

@media (max-width: 480px) {
  .side-drawer {
    width: 100%;
    right: -100%;
  }
}

.side-drawer-header {
  padding: 2rem;
  border-bottom: 1.5px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.side-drawer-title {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
}

.close-side-drawer {
  background: none;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--highlight);
  display: flex;
  align-items: center;
  justify-content: center;
}

.side-drawer-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 2rem;
}

.empty-drawer-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.empty-icon {
  width: 48px;
  height: 48px;
  opacity: 0.3;
  margin-bottom: 1rem;
}

.empty-drawer-state p {
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.side-drawer-footer {
  padding: 2rem;
  border-top: 1.5px solid var(--primary);
  background-color: var(--card);
}

.cart-totals {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.shipping-info {
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

/* Drawer Item UI */
.drawer-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px dashed var(--border);
}

.drawer-item-img {
  width: 70px;
  height: 90px;
  object-fit: cover;
  border: 1px solid var(--primary);
  border-radius: 4px;
}

.drawer-item-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.drawer-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.drawer-item-price {
  font-weight: 800;
  font-size: 0.95rem;
}

.drawer-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.drawer-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.drawer-remove-btn:hover {
  color: var(--primary);
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--primary);
  border-radius: 4px;
  overflow: hidden;
}

.qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-weight: 700;
}

.qty-btn:hover {
  background-color: var(--highlight);
}

.qty-val {
  padding: 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
}

/* --- Toasts notifications --- */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background-color: var(--primary);
  color: var(--bg);
  border: 1.5px solid var(--primary);
  border-radius: 6px;
  padding: 1rem 1.5rem;
  box-shadow: 5px 5px 0px rgba(17, 17, 17, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  transform: translateX(-120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast i {
  width: 18px;
  height: 18px;
}

/* --- Scroll Reveal Classes --- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.15s;
}

.delay-2 {
  transition-delay: 0.3s;
}

/* --- Keyframe Animations --- */
@keyframes load-slide {
  0% { left: -40%; }
  50% { left: 100%; }
  100% { left: -40%; }
}

@keyframes pulse-border {
  0% { transform: scale(1); box-shadow: 0 0 0 0px rgba(17, 17, 17, 0.2); }
  70% { transform: scale(1.03); box-shadow: 0 0 0 8px rgba(17, 17, 17, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0px rgba(17, 17, 17, 0); }
}

@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes wiggle-float {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(3px, -5px) rotate(-1deg); }
  50% { transform: translate(-2px, -8px) rotate(1deg); }
  75% { transform: translate(-4px, -3px) rotate(-0.5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
