/* ==========================================================================
   COMFY HOMES E-COMMERCE - FRESH SAGE & GOLD THEME (NO BLUE)
   ========================================================================== */

   @import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

   /* --- RESET & VARIABLES --- */
   * { margin: 0; padding: 0; box-sizing: border-box; }
   
   :root {
       /* Fresh Light Palette - NO BLUE */
       --bg-white: #ffffff;
       --bg-light: #f8faf8;         /* Soft Sage Tint */
       --bg-dark: #064e3b;          /* Deep Forest Green */
       --bg-card: #ffffff;
       
       /* Green & Gold Accents */
       --accent-solid: #16a34a;     /* Vibrant Green */
       --accent-hover: #15803d;     /* Dark Green */
       --accent-sale: #dc2626;      /* Rose/Red for Sale Tags */
       
       /* Nature Gradients */
       --gradient-primary: linear-gradient(135deg, #16a34a 0%, #84cc16 100%);
       --gradient-light: linear-gradient(135deg, #dcfce7 0%, #fef9c3 100%);
       --gradient-overlay: linear-gradient(to top, rgba(6, 78, 59, 0.9) 0%, transparent 50%);
       
       /* Text Colors */
       --text-dark: #064e3b;        
       --text-body: #4b5563;        
       --text-muted: #9ca3af;
       --text-light: #f8faf8;
       
       /* Structure & Effects */
       --border-color: #e5e7eb;
       --shadow-sm: 0 4px 6px -1px rgba(22, 163, 74, 0.05);
       --shadow-md: 0 10px 20px -5px rgba(22, 163, 74, 0.08);
       --shadow-lg: 0 25px 50px -12px rgba(22, 163, 74, 0.12);
       --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
       --header-height: 90px;
       --border-radius: 12px;
   }
   
   html, body {
       font-family: 'Outfit', sans-serif;
       background-color: var(--bg-light);
       color: var(--text-body);
       line-height: 1.7;
       overflow-x: hidden;
       scroll-behavior: smooth;
   }
   
   /* --- TYPOGRAPHY --- */
   h1, h2, h3, h4, h5 { color: var(--text-dark); font-weight: 800; line-height: 1.2; letter-spacing: -0.5px; }
   .serif-text { font-family: 'Playfair Display', serif; font-weight: 600; font-style: italic; }
   .text-gradient { background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }
   a { text-decoration: none; color: inherit; transition: var(--transition); }
   img { max-width: 100%; height: auto; display: block; object-fit: cover; }
   
   /* --- UTILITIES --- */
   .container { width: 100%; max-width: 1350px; margin: 0 auto; padding: 0 24px; }
   .py-mega { padding: 100px 0; }
   .py-large { padding: 70px 0; }
   .text-center { text-align: center; }
   
   /* --- E-COMMERCE BUTTONS --- */
   .btn-primary, .btn-outline, .btn-cart {
       display: inline-flex; align-items: center; justify-content: center; gap: 8px;
       border-radius: 50px; font-weight: 700; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; transition: var(--transition); cursor: pointer;
   }
   .btn-primary { padding: 16px 36px; background: var(--gradient-primary); color: var(--bg-white) !important; border: none; box-shadow: 0 10px 20px rgba(22, 163, 74, 0.2); }
   .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(22, 163, 74, 0.3); filter: brightness(1.1); }
   .btn-outline { padding: 14px 34px; background: transparent; color: var(--text-dark) !important; border: 2px solid var(--accent-solid); }
   .btn-outline:hover { background: var(--gradient-primary); color: var(--bg-white) !important; border-color: transparent; }
   .btn-cart { padding: 12px 24px; background: var(--bg-dark); color: #fff !important; border: none; font-size: 0.85rem; width: 100%; }
   .btn-cart:hover { background: var(--accent-solid); }
   
   /* --- HEADER & NAVIGATION --- */
   .top-bar { background: var(--gradient-primary); color: #fff; font-size: 0.85rem; padding: 10px 0; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
   .top-bar .container { display: flex; justify-content: space-between; align-items: center; }
   .top-bar a { color: #fff; transition: var(--transition); }
   .top-bar a:hover { color: #fef9c3; }
   
   header { position: sticky; top: 0; width: 100%; height: var(--header-height); z-index: 1000; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(15px); border-bottom: 1px solid var(--border-color); transition: var(--transition); }
   header.scrolled { height: 75px; box-shadow: var(--shadow-sm); }
   .nav-container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
   .logo h1 { font-size: 2rem; font-weight: 900; letter-spacing: -1px; color: var(--text-dark); margin: 0;}
   .logo h1 span { color: var(--accent-solid); }
   
   .nav-links { display: flex; gap: 35px; list-style: none; margin: 0; padding: 0; }
   .nav-links a { font-weight: 600; font-size: 0.95rem; color: var(--text-dark); text-transform: uppercase; letter-spacing: 0.5px; }
   .nav-links a:hover, .nav-links a.active { color: var(--accent-solid); }
   
   /* Cart Icon */
   .header-actions { display: flex; align-items: center; gap: 20px; }
   .cart-icon-wrapper { position: relative; cursor: pointer; font-size: 1.5rem; color: var(--text-dark); transition: var(--transition); }
   .cart-icon-wrapper:hover { color: var(--accent-solid); transform: scale(1.1); }
   .cart-count { position: absolute; top: -8px; right: -10px; background: var(--accent-sale); color: #fff; font-size: 0.7rem; font-weight: 800; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
   
   /* Hamburger */
   .hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; border: none; background: none; }
   .hamburger span { width: 30px; height: 3px; background: var(--text-dark); border-radius: 5px; transition: var(--transition); }
   
   /* --- HERO SECTION --- */
   .hero { position: relative; min-height: 85vh; display: flex; align-items: center; background: var(--bg-card); overflow: hidden;}
   .hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; width: 100%; }
   .hero-content { padding-right: 40px; }
   .hero-content h1 { font-size: 4.5rem; line-height: 1.1; margin-bottom: 25px; }
   .hero-content p { font-size: 1.2rem; color: var(--text-body); margin-bottom: 40px; max-width: 500px; }
   .hero-img-wrapper { position: relative; height: 600px; border-radius: 300px 300px 0 0; overflow: hidden; box-shadow: var(--shadow-lg); }
   .hero-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
   .hero-badge { position: absolute; bottom: 40px; left: -30px; background: #fff; padding: 20px 30px; border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--border-color); display: flex; align-items: center; gap: 15px; }
   
   /* --- PRODUCT CARDS --- */
   .product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
   .product-card { display: flex; flex-direction: column; height: 100%; background: var(--bg-white); border-radius: var(--border-radius); overflow: hidden; transition: var(--transition); border: 1px solid var(--border-color); position: relative; }
   .product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--accent-solid); }
   .product-img-box { position: relative; width: 100%; aspect-ratio: 4/5; height: auto; flex-shrink: 0; overflow: hidden; background: #f4f4f5; }
   .product-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; mix-blend-mode: multiply;}
   .product-card:hover .product-img-box img { transform: scale(1.08); }
   
   /* Badges & Overlays */
   .product-badge { position: absolute; top: 15px; left: 15px; background: var(--bg-dark); color: #fff; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; padding: 5px 12px; border-radius: 4px; z-index: 2; }
   .product-badge.sale { background: var(--accent-sale); }
   .product-overlay { position: absolute; bottom: -60px; left: 0; width: 100%; padding: 15px; background: rgba(255,255,255,0.95); backdrop-filter: blur(5px); transition: var(--transition); opacity: 0; }
   .product-card:hover .product-overlay { bottom: 0; opacity: 1; }
   
   .product-info { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; align-items: center; text-align: center; }
   .product-category { font-size: 0.8rem; color: var(--accent-solid); text-transform: uppercase; font-weight: 700; letter-spacing: 1px; margin-bottom: 5px; }
   .product-info h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--text-dark); line-height: 1.4; font-weight: 700; }
   .product-price { font-size: 1.1rem; font-weight: 800; color: var(--text-dark); }
   .product-price .old-price { text-decoration: line-through; color: var(--text-muted); font-size: 0.95rem; font-weight: 500; margin-right: 8px; }
   
   /* --- CATEGORY CARDS --- */
   .category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
   .category-card { position: relative; height: 400px; border-radius: var(--border-radius); overflow: hidden; cursor: pointer; }
   .category-card img { width: 100%; height: 100%; transition: transform 0.8s ease; }
   .category-card:hover img { transform: scale(1.05); }
   .category-content { position: absolute; inset: 0; background: var(--gradient-overlay); display: flex; flex-direction: column; justify-content: flex-end; padding: 40px; transition: var(--transition); }
   .category-content h3 { color: #fff; font-size: 2rem; margin-bottom: 5px; }
   .category-content p { color: #dcfce7; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; }
   
   /* --- PROMO BANNER --- */
   .promo-banner { background: var(--gradient-light); border-radius: 24px; padding: 80px 5%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 40px; border: 1px solid rgba(22, 163, 74, 0.2); }
   .promo-text h2 { font-size: 3.5rem; margin-bottom: 15px; }
   .promo-text p { font-size: 1.2rem; color: var(--text-body); margin-bottom: 30px; max-width: 500px; }
   
   /* --- SLIM FOOTER --- */
   footer { background: var(--bg-white); padding: 60px 0 20px; border-top: 1px solid var(--border-color); }
   .footer-wrapper { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 50px; margin-bottom: 40px; align-items: start; }
   .footer-brand h2 { font-size: 1.8rem; font-weight: 900; margin-bottom: 10px; }
   .footer-brand h2 span { color: var(--accent-solid); }
   .footer-brand p { font-size: 0.95rem; color: var(--text-body); max-width: 350px; }
   .footer-nav { display: flex; flex-direction: column; gap: 12px; }
   .footer-nav a { color: var(--text-dark); font-weight: 600; font-size: 0.95rem; }
   .footer-nav a:hover { color: var(--accent-solid); }
   .footer-contact { display: flex; flex-direction: column; gap: 15px; }
   .contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: var(--text-body); }
   .contact-item span { color: var(--accent-solid); font-size: 1.2rem; }
   .contact-item a { color: var(--text-dark); font-weight: 700; }
   .contact-item a:hover { color: var(--accent-solid); }
   .footer-bottom { text-align: center; padding-top: 25px; border-top: 1px solid var(--border-color); font-size: 0.85rem; color: var(--text-muted); }
   
   /* --- ANIMATIONS & TOAST --- */
   /* We use :not(.active) to drop the transform once revealed to prevent hover conflicts! */
   .reveal { opacity: 0; visibility: hidden; transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s; }
   .reveal.active { opacity: 1; visibility: visible; }
   .slide-up:not(.active) { transform: translateY(40px); }
   .slide-left:not(.active) { transform: translateX(-40px); }
   .slide-right:not(.active) { transform: translateX(40px); }
   .zoom-in:not(.active) { transform: scale(0.9); }
   
   /* Toast Notification */
   .toast { position: fixed; bottom: 30px; right: 30px; background: var(--bg-dark); color: #fff; padding: 15px 25px; border-radius: 8px; font-weight: 600; box-shadow: var(--shadow-lg); transform: translateY(100px); opacity: 0; transition: var(--transition); z-index: 2000; display: flex; align-items: center; gap: 10px;}
   .toast.show { transform: translateY(0); opacity: 1; }
   
   /* --- RESPONSIVE --- */
   @media (max-width: 992px) {
       .hero-grid { grid-template-columns: 1fr; text-align: center; }
       .hero-content { padding-right: 0; }
       .hero-img-wrapper { display: none; }
       .category-grid { grid-template-columns: repeat(2, 1fr); }
       .footer-wrapper { grid-template-columns: 1fr 1fr; }
   }
   
   @media (max-width: 768px) {
       .top-bar { display: none; }
       .nav-links { display: none; }
       .hamburger { display: flex; }
       .nav-container.menu-open .nav-links {
           display: flex; flex-direction: column; position: absolute; top: var(--header-height); left: 0;
           width: 100%; background: var(--bg-white); padding: 30px 24px; border-top: 1px solid var(--border-color);
           box-shadow: var(--shadow-lg); z-index: 1000;
       }
       .nav-container.menu-open .nav-links a { padding: 15px 0; width: 100%; border-bottom: 1px solid var(--border-color); }
       .category-grid, .footer-wrapper { grid-template-columns: 1fr; }
       .hero-content h1 { font-size: 3.5rem; }
   }