body{
      box-sizing: border-box;
    }
    
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    :root {
      --coffee-text: #5A3E2B;
      --espresso-dark: #3B2A1A;
      --latte-light: #C7A17A;
      --bg-white: #FFFFFF;
      --bg-cream: #FAFAF8;
    }

    body {
      font-family: 'Inter', sans-serif;
      color: var(--coffee-text);
      background: var(--bg-white);
    }

    .font-playfair {
      font-family: 'Playfair Display', serif;
    }

    .font-cormorant {
      font-family: 'Cormorant Garamond', serif;
    }

    /* Smooth Animations */
    .fade-in {
      animation: fadeIn 0.8s ease-in-out;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .slide-in-left {
      animation: slideInLeft 0.8s ease-out;
    }

    @keyframes slideInLeft {
      from { opacity: 0; transform: translateX(-30px); }
      to { opacity: 1; transform: translateX(0); }
    }

    .hover-underline {
      position: relative;
      transition: color 0.3s ease;
    }

    .hover-underline::after {
      content: '';
      position: absolute;
      bottom: -2px;
      left: 0;
      width: 0;
      height: 1px;
      background: var(--coffee-text);
      transition: width 0.3s ease;
    }

    .hover-underline:hover::after {
      width: 100%;
    }

    .btn-coffee {
      background: var(--bg-white);
      color: var(--coffee-text);
      border: 2px solid var(--coffee-text);
      padding: 12px 32px;
      border-radius: 0;
      font-weight: 500;
      letter-spacing: 1px;
      transition: all 0.3s ease;
      cursor: pointer;
      font-family: 'Inter', sans-serif;
    }

    .btn-coffee:hover {
      background: var(--coffee-text);
      color: var(--bg-white);
    }

    .btn-coffee-filled {
      background: var(--coffee-text);
      color: var(--bg-white);
      border: 2px solid var(--coffee-text);
      padding: 12px 32px;
      border-radius: 0;
      font-weight: 500;
      letter-spacing: 1px;
      transition: all 0.3s ease;
      cursor: pointer;
    }

    .btn-coffee-filled:hover {
      background: var(--espresso-dark);
      border-color: var(--espresso-dark);
    }

    /* Custom Scrollbar */
    ::-webkit-scrollbar {
      width: 8px;
    }

    ::-webkit-scrollbar-track {
      background: var(--bg-cream);
    }

    ::-webkit-scrollbar-thumb {
      background: var(--latte-light);
      border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
      background: var(--coffee-text);
    }

    /* Navbar */
    .navbar {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: var(--bg-white);
      border-bottom: 1px solid #F0EDE8;
      transition: box-shadow 0.3s ease;
    }

    .navbar.scrolled {
      box-shadow: 0 2px 20px rgba(90, 62, 43, 0.08);
    }

    /* Product Cards */
    .product-card {
      background: var(--bg-white);
      border: 1px solid #F0EDE8;
      transition: all 0.4s ease;
      overflow: hidden;
    }

    .product-card:hover {
      box-shadow: 0 8px 30px rgba(90, 62, 43, 0.12);
      transform: translateY(-5px);
    }

    .product-card img {
      transition: transform 0.5s ease;
    }

    .product-card:hover img {
      transform: scale(1.05);
    }

    /* Modal */
    .modal {
      display: none;
      position: fixed;
      z-index: 2000;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: rgba(90, 62, 43, 0.6);
      backdrop-filter: blur(5px);
      animation: fadeIn 0.3s ease;
    }

    .modal.active {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .modal-content {
      background: var(--bg-white);
      padding: 0;
      max-width: 900px;
      width: 90%;
      max-height: 90%;
      overflow-y: auto;
      animation: slideUp 0.4s ease;
    }

    @keyframes slideUp {
      from {
        transform: translateY(50px);
        opacity: 0;
      }
      to {
        transform: translateY(0);
        opacity: 1;
      }
    }

    /* Cart Badge */
    .cart-badge {
      position: absolute;
      top: -8px;
      right: -8px;
      background: var(--coffee-text);
      color: var(--bg-white);
      font-size: 11px;
      font-weight: 600;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* Filter Pills */
    .filter-pill {
      padding: 8px 24px;
      border: 1px solid var(--coffee-text);
      background: var(--bg-white);
      color: var(--coffee-text);
      cursor: pointer;
      transition: all 0.3s ease;
      font-size: 14px;
      letter-spacing: 0.5px;
    }

    .filter-pill:hover, .filter-pill.active {
      background: var(--coffee-text);
      color: var(--bg-white);
    }

    /* Hero Section */
    .hero-section {
      min-height: 85%;
      display: flex;
      align-items: center;
      background: linear-gradient(to bottom, var(--bg-white), var(--bg-cream));
    }

    /* Page Transitions */
    .page {
      display: none;
      animation: fadeIn 0.5s ease;
    }

    .page.active {
      display: block;
    }

    /* Input Styles */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    textarea {
      border: 1px solid #E5E0D8;
      background: var(--bg-white);
      color: var(--coffee-text);
      padding: 12px 16px;
      outline: none;
      transition: border-color 0.3s ease;
      font-family: 'Inter', sans-serif;
    }

    input:focus,
    textarea:focus {
      border-color: var(--coffee-text);
    }

    /* Mobile Menu */
    .mobile-menu {
      transform: translateX(100%);
      transition: transform 0.3s ease;
    }

    .mobile-menu.open {
      transform: translateX(0);
    }

    /* Quantity Controls */
    .qty-btn {
      background: var(--bg-cream);
      color: var(--coffee-text);
      border: 1px solid #E5E0D8;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.3s ease;
      font-weight: 600;
    }

    .qty-btn:hover {
      background: var(--coffee-text);
      color: var(--bg-white);
    }

    /* Toast Notification */
    .toast {
      position: fixed;
      bottom: 32px;
      right: 32px;
      background: var(--espresso-dark);
      color: var(--bg-white);
      padding: 16px 24px;
      z-index: 3000;
      animation: slideInRight 0.3s ease;
      font-family: 'Inter', sans-serif;
      box-shadow: 0 4px 20px rgba(90, 62, 43, 0.2);
    }

    @keyframes slideInRight {
      from {
        transform: translateX(100px);
        opacity: 0;
      }
      to {
        transform: translateX(0);
        opacity: 1;
      }
    }

    /* Gallery Hover */
    .gallery-item {
      position: relative;
      overflow: hidden;
    }

    .gallery-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(90, 62, 43, 0.8), transparent);
      opacity: 0;
      transition: opacity 0.4s ease;
      display: flex;
      align-items: flex-end;
      padding: 20px;
      color: var(--bg-white);
    }

    .gallery-item:hover .gallery-overlay {
      opacity: 1;
    }

    /* Letter Spacing */
    .tracking-widest-custom {
      letter-spacing: 0.15em;
    }

    /* Line Height */
    .leading-relaxed-custom {
      line-height: 1.9;
    }
      .cursor::after {
    content: "|";
    margin-left: 4px;
    animation: blink 1s infinite;
    opacity: 0.6;
  }

  @keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
  }
    .story-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
  }

  .story-marquee-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: storyScroll 25s linear infinite;
  }

  .story-marquee-track span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-style: italic;
    color: var(--latte-light);
    white-space: nowrap;
    opacity: 0.85;
  }

  @keyframes storyScroll {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-50%);
    }
  }

  /* Softer feel on hover */
  .story-marquee:hover .story-marquee-track {
    animation-play-state: paused;
  }
    .animate-fade-up {
    animation: fadeUp 0.4s ease forwards;
  }

  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(20px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
