@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Poppins:wght@600;700&display=swap');

:root{
  --bg:#ffffff;
  --mobile-cta-height:92px;
  --muted:#6b6b6b;
  --accent:#d97706; /* construction amber */
  --header-height:72px;
  --accent-2:#b08b5a;
  --brand-a:#d97706; /* amber */
  --brand-b:#374151; /* steel/charcoal */
  --brand-c:#f59e0b; /* bright amber */
  --brand-d:#6b7280; /* neutral gray */
  --brand-e:#9ca3af; /* muted */
  --brand-f:#ef4444; /* red accent for warnings */
  --card:#ffffff;
  --primary-text:#1e1b18;
  --success:#2e7d32;
}
*{box-sizing:border-box}
.body-reset{}
html,body{height:100%}
body{display:flex;flex-direction:column;min-height:100vh;margin:0;background:var(--bg);color:var(--primary-text);font-family:Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif}
main{flex:1}
html,body{height:100%}
body{display:flex;flex-direction:column;min-height:100vh;margin:0;background:linear-gradient(180deg,#fbfaf8,#fff);color:var(--primary-text);font-family:Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif}
main{flex:1}
.site-header{display:flex;justify-content:space-between;align-items:center;padding:12px 20px;background:#fff;box-shadow:0 2px 18px rgba(0,0,0,.06);position:sticky;top:0;z-index:40}
.site-header .site-container{display:flex;align-items:center;gap:12px}
.brand{font-weight:700;font-family:Poppins, Inter, sans-serif;text-decoration:none;color:var(--primary-text)}
.nav-list{display:flex;gap:12px;list-style:none;margin:0;padding:0;align-items:center}
.nav-list a{color:inherit;text-decoration:none;padding:8px 10px;border-radius:8px;border:1px solid transparent}
.nav-list a:hover{background:rgba(0,0,0,0.04)}
.nav-list a.btn-link{background:transparent;border:1px solid rgba(0,0,0,0.06)}
.site-header{display:flex;justify-content:space-between;align-items:center;padding:12px 20px;background:linear-gradient(90deg,var(--brand-a),var(--brand-b));color:#fff;box-shadow:0 2px 18px rgba(11,10,9,.05);position:sticky;top:0;z-index:80}
.site-header .site-container{display:flex;align-items:center;gap:18px;width:100%;justify-content:space-between}
.brand{font-weight:700;font-family:Poppins, Inter, sans-serif;text-decoration:none;color:#fff;font-size:1.05rem;margin-right:auto}
.nav-list{display:flex;gap:12px;list-style:none;margin:0;padding:0;align-items:center}
.nav-list a{color:rgba(255,255,255,0.95);text-decoration:none;padding:8px 12px;border-radius:10px;border:1px solid transparent;background:transparent}
.nav-list a:hover{background:rgba(255,255,255,0.06)}
.nav-list a.btn-link{background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.06);box-shadow:0 6px 18px rgba(11,10,9,.03)}
.hamburger{display:none;background:none;border:none;font-size:20px}

/* mobile-only helpers: hide by default, show in mobile nav */
.mobile-only{display:none}
@media(max-width:800px){
  .mobile-only{display:block}
  .nav-list .mobile-only a{display:block;padding:12px;border-radius:8px}
}

.header-ctas{display:flex;gap:10px;align-items:center}
.call-btn{display:inline-flex;align-items:center;gap:8px;background:transparent;border:1px solid rgba(0,0,0,.06);padding:8px 10px;border-radius:8px;text-decoration:none;color:var(--primary-text)}

/* Header quote button */
.header-ctas #quote-btn{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:10px;background:rgba(255,255,255,0.08);color:#fff;border:1px solid rgba(255,255,255,0.06);text-decoration:none}
.header-ctas #quote-btn .q-count{background:#fff;color:var(--primary-text);padding:4px 8px;border-radius:999px;font-weight:700;font-size:12px}

.hero{background:linear-gradient(rgba(0,0,0,.35),rgba(0,0,0,.30)),url('../Product_Images/hero.svg') center/cover no-repeat;color:#fff;padding:56px 16px;position:relative}
.hero{background:linear-gradient(rgba(0,0,0,.25),rgba(0,0,0,.18)),url('../Product_Images/hero.svg') center/cover no-repeat;color:#fff;padding:56px 16px;position:relative}
.hero::after{content:'';position:absolute;left:0;right:0;top:0;bottom:0;background:linear-gradient(180deg,rgba(0,0,0,0.55),rgba(0,0,0,0.35));pointer-events:none}
.hero-inner{max-width:1100px;margin:0 auto;text-align:left;position:relative;z-index:2;padding:44px 16px}
/* Banner carousel styles */
.banner-carousel{position:relative;overflow:hidden;border-radius:12px;margin:12px 0;padding:0}
.carousel-slides{display:flex;transition:transform .6s ease;width:100%}
.banner-slide{min-width:100%;height:420px;background-position:center;background-size:cover;flex-shrink:0}
.carousel-overlay{position:absolute;left:0;right:0;top:0;bottom:0;display:flex;align-items:center}
.banner-carousel .hero-inner{max-width:1000px;margin:0 auto;padding:28px 18px;color:#fff;z-index:3}
.banner-carousel .hero-inner{background:rgba(0,0,0,0.36);backdrop-filter:blur(6px);border-radius:10px}
.carousel-controls{position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);display:flex;justify-content:space-between;padding:0 8px;pointer-events:none}
.carousel-controls button{pointer-events:auto;background:rgba(0,0,0,0.45);border:none;color:#fff;width:44px;height:44px;border-radius:999px;font-size:22px;display:inline-flex;align-items:center;justify-content:center}
.carousel-indicators{position:absolute;left:50%;transform:translateX(-50%);bottom:12px;display:flex;gap:8px;z-index:40}
.carousel-indicators button{width:10px;height:10px;border-radius:999px;border:none;background:rgba(255,255,255,0.6)}
.carousel-indicators button.active{background:#fff}

@media(max-width:900px){
  .banner-slide{height:280px}
  .banner-carousel .hero-inner{padding:18px}
}

/* ensure banner isn't hidden under fixed header on small screens */
@media(max-width:699px){
  .banner-carousel{margin-top:calc(var(--header-height) + 8px)}
}

/* Desktop: show 4 columns for product grids */
@media(min-width:900px){
  .products-grid{grid-template-columns:repeat(4,1fr);gap:20px}
  /* featured grid may use #featured-grid id in templates */
  #featured-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
}
.hero h1{margin:0 0 12px;font-size:clamp(26px,6vw,48px);font-family:Poppins, Inter, sans-serif}
.hero p{margin:0 0 18px;color:rgba(255,255,255,0.95);font-size:1.05rem}
.hero-ctas{display:flex;gap:12px;flex-wrap:wrap}
.btn-primary{background:linear-gradient(90deg,var(--brand-c),var(--brand-a));color:#111;padding:12px 18px;border-radius:10px;text-decoration:none;font-weight:700}
.btn-secondary{background:transparent;border:2px solid rgba(255,255,255,0.16);color:#fff;padding:10px 16px;border-radius:10px;text-decoration:none}

.intro{max-width:900px;margin:24px auto;padding:0 16px}
.intro.card{background:var(--card);padding:20px;border-radius:12px;box-shadow:0 12px 30px rgba(11,10,9,.06);display:flex;flex-direction:column;align-items:center;text-align:center;max-width:980px;margin:28px auto}
.intro.card h2,.intro.card p{width:100%;max-width:760px}

/* Services grid inside intro card */
.services-grid{list-style:none;margin:14px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,1fr);gap:12px;width:100%;max-width:860px;margin-left:auto;margin-right:auto}
.service-item{display:flex;gap:12px;align-items:flex-start;padding:12px;background:linear-gradient(180deg,rgba(0,0,0,0.02),rgba(255,255,255,0.02));border-radius:10px;border-left:4px solid var(--brand-c);box-shadow:0 8px 18px rgba(11,10,9,0.04)}
.service-item h4{margin:0;font-size:1rem;font-weight:700}
.service-item p{margin:4px 0 0;color:var(--muted);font-size:.95rem}
.svc-icon{width:46px;height:46px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;background:var(--brand-b);color:#fff;font-size:20px;flex-shrink:0}

@media(max-width:900px){
  .services-grid{grid-template-columns:repeat(1,1fr)}
}

@media(max-width:480px){
  .service-item{padding:10px}
  .svc-icon{width:40px;height:40px;font-size:18px}
  .service-item h4{font-size:.98rem}
}
.featured{max-width:1100px;margin:16px auto;padding:0 16px}
.products-grid{display:grid;grid-template-columns:repeat(1,1fr);gap:18px}
.product-card{background:var(--card);padding:10px;border-radius:12px;box-shadow:0 6px 18px rgba(11,10,9,.04);display:flex;flex-direction:column;transition:transform .18s ease,box-shadow .18s ease;width:100%}
.product-card:hover{transform:translateY(-6px);box-shadow:0 12px 30px rgba(11,10,9,.08)}
.product-media{width:100%;padding-top:66%;position:relative;border-radius:8px;overflow:hidden;background:#faf7f3}
.product-media img{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:cover}
.product-card{background:var(--card);padding:12px;border-radius:14px;box-shadow:0 8px 30px rgba(11,10,9,.05);display:flex;flex-direction:column;transition:transform .18s ease,box-shadow .18s ease}
.product-card:hover{transform:translateY(-8px);box-shadow:0 18px 40px rgba(11,10,9,.09)}
.product-media{width:100%;padding-top:64%;position:relative;border-radius:10px;overflow:hidden;background:#faf7f3}
.product-media img{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:cover}
.product-info{padding:12px 6px;flex:1}
.price-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.price{font-weight:700;color:var(--primary-text)}
.product-features{margin-top:8px;color:var(--muted);font-size:.95rem}
.badge-stock{display:inline-block;padding:6px 8px;border-radius:999px;background:#e8f5e9;color:var(--success);font-weight:600;margin-left:6px}
.product-actions{display:flex;gap:8px;align-items:center;margin-top:12px}
.btn{display:inline-block;background:var(--accent);color:#fff;padding:8px 12px;border-radius:8px;text-decoration:none}
.btn-outline{background:transparent;border:1px solid rgba(0,0,0,.08);color:inherit;padding:8px 12px;border-radius:8px}

/* Add-to-cart button gradient (blue -> pink) */
.product-actions .btn{background:linear-gradient(90deg,var(--brand-a),var(--brand-c));color:#111;border:none}
.product-actions .btn:hover{filter:brightness(.98);transform:translateY(-2px)}

.cart-items{max-width:980px;margin:20px auto;padding:0 16px}
.cart-item{display:flex;gap:14px;align-items:center;background:var(--card);padding:12px;border-radius:12px;margin-bottom:12px;box-shadow:0 8px 22px rgba(11,10,9,.03)}
.cart-item img{width:96px;height:72px;object-fit:cover;border-radius:8px;flex:0 0 96px}
.cart-item .cart-meta{flex:1;display:flex;flex-direction:column;gap:6px}
.cart-item .cart-meta strong{font-size:1rem}
.cart-item .cart-controls{display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.cart-item input[type=number]{width:64px;padding:6px;border-radius:6px;border:1px solid #e6e6e6}
.cart-item .remove{background:transparent;border:1px solid rgba(0,0,0,.08);padding:6px 8px;border-radius:8px}
.cart-summary{max-width:980px;margin:12px auto;padding:0 16px;display:flex;justify-content:space-between;align-items:center}

.site-footer{display:flex;justify-content:space-between;padding:20px 16px;background:#fff;margin-top:0;box-shadow:0 -1px 6px rgba(11,10,9,.03)}
.site-footer{display:block;background:linear-gradient(90deg,var(--brand-b),#f7f5f2);margin-top:24px;border-top:1px solid rgba(0,0,0,.04);color:#fff}
.site-footer .site-container{display:flex;justify-content:space-between;padding:20px 16px;align-items:flex-start;gap:12px;flex-wrap:wrap}
.site-footer .copyright{padding:12px;text-align:center;background:transparent}
.site-footer .site-container{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}

/* Footer grid and items */
.footer-grid{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:12px;align-items:start;padding:20px 0}
.footer-grid > *{background:#fff;padding:12px;border-radius:10px;box-shadow:0 6px 14px rgba(11,10,9,0.06);color:var(--brand-b);border-left:6px solid transparent}
/* subtle accent color on the left of each card to add color without clashing */
.footer-grid > *:nth-child(1){border-left-color:var(--brand-a)}
.footer-grid > *:nth-child(2){border-left-color:var(--brand-b)}
.footer-grid > *:nth-child(3){border-left-color:var(--accent-2)}
.footer-grid > *:nth-child(4){border-left-color:var(--brand-c)}
.footer-about .footer-brand{font-size:1.02rem;color:var(--brand-b);text-decoration:none;font-weight:700}
.footer-about p{color:var(--brand-d);margin:6px 0}
.footer-links h4,.footer-services h4,.footer-contact h4{color:var(--brand-b);margin:0 0 8px;font-size:1rem}
.footer-links ul,.footer-services ul{list-style:none;padding:0;margin:0}
.footer-links li,.footer-services li{margin:6px 0;color:var(--brand-d)}
.footer-links a,.footer-services a{color:var(--brand-b);text-decoration:none}
.footer-contact p{margin:6px 0;color:var(--brand-d)}
.footer-social{display:flex;gap:8px;margin-top:8px}
.footer-social a{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;background:var(--brand-a);color:#111;text-decoration:none;font-weight:700}
.newsletter{margin-top:12px}
.newsletter-row{display:flex;gap:8px;margin-top:6px}
.newsletter-row input{flex:1;padding:10px 12px;border-radius:8px;border:1px solid rgba(0,0,0,0.06);background:#fff;color:var(--brand-b)}
.newsletter-row input::placeholder{color:rgba(0,0,0,0.45)}
.newsletter-row button{padding:8px 12px;border-radius:8px}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;padding:12px 0;background:linear-gradient(90deg,var(--brand-b),var(--brand-d));color:#fff;border-top:0;gap:12px}
.footer-bottom .foot-links{display:flex;gap:12px}
.footer-bottom .foot-links a{color:rgba(255,255,255,0.95);text-decoration:none}
/* ensure the legal/copyright line is always white for legibility */
.footer-bottom .legal small,.footer-bottom .legal,.footer-bottom .muted{color:#fff !important}

@media(max-width:900px){
  .footer-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:600px){
  .footer-grid{grid-template-columns:1fr;gap:12px}
  .newsletter-row{flex-direction:column}
  .newsletter-row button{width:100%}
}

/* ensure footer sticks to bottom when content is short */
body > footer.site-footer{margin-top:auto}

#whatsapp-float{position:fixed;right:18px;bottom:76px;background:linear-gradient(90deg,var(--brand-d),#25D366);color:#fff;width:auto;height:48px;border-radius:26px;display:flex;align-items:center;justify-content:center;font-size:15px;box-shadow:0 10px 30px rgba(37,211,102,.18);text-decoration:none;padding:0 12px;gap:8px;z-index:150}
#whatsapp-float .w-icon{width:34px;height:34px;border-radius:50%;background:transparent;display:inline-flex;align-items:center;justify-content:center}
#whatsapp-float .w-icon{width:34px;height:34px;border-radius:50%;background:transparent;display:inline-flex;align-items:center;justify-content:center}

/* Why choose us */
.why-choose{max-width:1100px;margin:28px auto;padding:18px;display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.why-choose .item{background:var(--card);padding:14px;border-radius:10px;display:flex;gap:12px;align-items:center;box-shadow:0 6px 18px rgba(11,10,9,.03)}
.why-choose .icon{width:54px;height:54px;border-radius:10px;background:var(--accent-2);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700}

/* testimonials */
.testimonials{max-width:1100px;margin:18px auto;padding:18px;display:grid;grid-template-columns:repeat(1,1fr);gap:12px}
.testimonial{background:var(--card);padding:14px;border-radius:10px;box-shadow:0 6px 18px rgba(11,10,9,.03)}
.stars{color:#f6b84b;font-weight:700}

/* Multicolored testimonial cards */
.testimonials{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));align-items:start}
.testimonial{color:var(--primary-text);display:flex;flex-direction:column;gap:8px;padding:16px;border-radius:12px;box-shadow:0 12px 30px rgba(11,10,9,.06);min-height:120px}
.testimonial .stars{font-size:1.05rem}
.testimonial.variant-a{background:linear-gradient(135deg, #fffaf0, #fff2e6)}
.testimonial.variant-b{background:linear-gradient(135deg, #f8f6f2, #f3eee8)}
.testimonial.variant-c{background:linear-gradient(135deg, #f4f5f6, #eef0f2)}
.testimonial.variant-d{background:linear-gradient(135deg, #fff6f4, #fff0ef)}
.testimonial strong{font-weight:700}
.testimonial p{margin:0;color:rgba(0,0,0,0.85)}

/* header dropdowns */
.nav-item{position:relative}
.dropdown{position:absolute;top:36px;left:0;background:#fff;padding:10px;border-radius:8px;box-shadow:0 8px 30px rgba(0,0,0,.08);display:none;min-width:200px}
.nav-item:hover .dropdown{display:block}

.muted{color:var(--muted);font-size:.95rem}

/* Section banner and category rows */
.section-banner{background:linear-gradient(90deg,var(--accent-2),#f0e8df);padding:20px 0;color:var(--primary-text);margin-top:18px}
.section-banner .section-inner{max-width:1200px;margin:0 auto;padding:0 16px;display:flex;align-items:center;justify-content:space-between}
.section-banner h4{margin:0;font-family:Poppins,Inter,sans-serif}

.category-row{max-width:1200px;margin:18px auto;padding:0 16px}
.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.section-header h3{margin:0}
.product-row{display:flex;gap:12px;overflow:auto;padding-bottom:8px}
.product-row .product-card{min-width:220px;max-width:260px;flex:0 0 240px}

/* Sticky mobile CTA bar */
.mobile-cta-bar{display:none;position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid #eee;padding:8px 10px;box-shadow:0 -6px 20px rgba(0,0,0,.06);z-index:60}
.mobile-cta-bar .cta{display:flex;justify-content:space-around;align-items:center}
.mobile-cta-bar a{display:inline-flex;flex-direction:column;align-items:center;text-decoration:none;color:var(--primary-text);font-size:13px}
.mobile-cta-bar .cta .circle{width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--accent);color:#fff;margin-bottom:4px}

@media(max-width:800px){
  .product-row{padding:8px 12px}
  .mobile-cta-bar{display:block}
  .header-ctas{display:none}
  /* reposition floats above the mobile CTA to avoid overlap */
  /* use --mobile-cta-height so JS can set exact runtime height */
  #cart-float{right:12px;bottom:calc(var(--mobile-cta-height) + 40px);padding:8px 10px;gap:8px}
  #cart-float .cart-ico{width:34px;height:34px}
  #cart-float .cart-badge{padding:4px 8px;font-size:12px}
  #whatsapp-float{right:72px;bottom:calc(var(--mobile-cta-height) + 8px);height:44px;padding:0 10px}
  #whatsapp-float .w-label{display:none}
}

/* Global page container to avoid full-width layout */
.site-container{max-width:1200px;margin:0 auto;padding:0 16px}

/* Products page spacing to avoid overlap with footer */
#products-page .site-container{padding-top:32px;padding-bottom:80px}

/* Category buttons */
.category-btn{background:transparent;border:1px solid rgba(0,0,0,0.08);padding:8px 12px;border-radius:10px;color:inherit;cursor:pointer}
.category-btn.active{background:linear-gradient(90deg,var(--brand-b),var(--brand-e));color:#fff;border-color:transparent}
.product-controls input{min-width:220px}

/* Search debounce spinner */
.search-spinner{width:18px;height:18px;border-radius:50%;border:2px solid rgba(0,0,0,0.12);border-top-color:var(--brand-b);margin-left:8px;display:inline-block;opacity:0;vertical-align:middle;transition:opacity .18s}
.search-spinner.active{opacity:1;animation:spin .9s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* price range styles */
.price-range label{display:block;margin-bottom:6px}
.price-range input[type=range]{width:100%;appearance:none;height:6px;background:linear-gradient(90deg,#eee,#f5f5f5);border-radius:6px}
.price-range input[type=range]::-webkit-slider-thumb{appearance:none;width:14px;height:14px;border-radius:50%;background:var(--brand-b);box-shadow:0 2px 6px rgba(0,0,0,.12)}
.price-range input[type=range]::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:var(--brand-b);border:none}

/* general section spacing to avoid overlap and tidy layout */
main .site-container > section{margin:28px 0}
main .site-container > div[style], main .site-container > div{margin:18px 0}

/* testimonials adjustments */
.testimonials{align-items:stretch}
.testimonial{min-height:120px;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;text-align:center}
.testimonial p{margin:0}

/* Contact form — normalize with checkout styles */
#contact-form{max-width:720px;margin:0;padding:12px;display:flex;flex-direction:column;gap:10px}
#contact-form label{display:flex;flex-direction:column;gap:6px}
#contact-form input,#contact-form textarea{width:100%;padding:10px;border-radius:8px;border:1px solid #e6e6e6}

/* contact page grid (desktop two-column, mobile stacked with map below form) */
.contact-grid{display:grid;grid-template-columns:1fr 360px;gap:18px;margin-top:18px}
.contact-grid .contact-main{min-width:0}
.contact-grid .contact-map iframe{width:100%;height:200px;border:0;border-radius:8px}

/* treat small tablets as mobile too so the map stacks below form */
@media(max-width:900px){
  .contact-grid{grid-template-columns:1fr;padding:0 8px}
  .contact-grid aside{order:2;width:100%}
  .contact-grid .contact-main{order:1;width:100%}
  /* larger form fields for easier tapping on phones */
  #contact-form input,#contact-form textarea{padding:14px;font-size:1.05rem}
  #contact-form textarea{min-height:160px}
  .contact-grid .contact-map iframe{height:220px}
}
@media(max-width:900px){
  /* make contact two-column layout stack on small screens */
  main .site-container > div[style*="grid-template-columns"]{grid-template-columns:1fr}
}

/* Toast (added to cart) */
.toast{position:fixed;left:50%;transform:translateX(-50%) translateY(20px);bottom:86px;background:rgba(30,27,24,0.96);color:#fff;padding:10px 16px;border-radius:8px;box-shadow:0 10px 30px rgba(0,0,0,.2);opacity:0;pointer-events:none;transition:opacity .25s ease,transform .25s ease;z-index:120}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}

/* Floating cart button (above whatsapp) */
#cart-float{position:fixed;right:18px;bottom:126px;background:linear-gradient(90deg,var(--brand-a),var(--brand-c));color:#fff;padding:10px 14px;border-radius:30px;display:flex;align-items:center;gap:12px;text-decoration:none;box-shadow:0 18px 40px rgba(139,107,74,.18);z-index:200;transition:transform .18s ease}
#cart-float:hover{transform:translateY(-4px)}
#cart-float .cart-ico{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center}
#cart-float .cart-badge{background:#fff;color:var(--primary-text);padding:6px 9px;border-radius:999px;font-weight:700;font-size:13px;box-shadow:inset 0 -1px 0 rgba(0,0,0,.06)}

/* Floating checkout panel */
.checkout-panel{position:fixed;right:24px;top:80px;width:420px;max-width:calc(100% - 48px);background:var(--card);box-shadow:0 20px 50px rgba(11,10,9,.12);border-radius:12px;padding:18px;z-index:130}
.checkout-panel{position:fixed;right:24px;top:80px;width:420px;max-width:calc(100% - 48px);background:var(--card);box-shadow:0 30px 70px rgba(11,10,9,.12);border-radius:12px;padding:20px 18px 18px 18px;z-index:160}
.checkout-panel .close-cke{position:absolute;right:12px;top:12px;background:transparent;border:none;font-size:18px;padding:6px;cursor:pointer}
.checkout-panel .close-cke:focus{outline:2px solid rgba(0,0,0,0.08)}
.checkout-panel{min-width:320px}
.checkout-panel h3{margin:0 0 12px;font-size:1.1rem}
.checkout-panel #panel-cart-items{max-height:320px;overflow:auto;padding-right:6px}
.checkout-panel .cart-item{margin:8px 0;padding:8px;border-radius:8px;background:transparent;box-shadow:none}
.checkout-panel form label{display:block;margin-bottom:8px}
.checkout-panel form input,.checkout-panel form textarea,.checkout-panel form select{width:100%;padding:8px;border-radius:8px;border:1px solid #eaeaea}
.checkout-panel .btn{padding:8px 12px;border-radius:8px}
@media(max-width:900px){
  .checkout-panel{right:12px;left:12px;top:20px;width:auto}
}


/* mobile first */
@media(max-width:800px){
  .product-row{padding:8px 12px}
  .mobile-cta-bar{display:block}
  .header-ctas{display:none}
  /* reposition floats above the mobile CTA to avoid overlap */
  /* stack floats vertically on small screens: cart above whatsapp */
  /* use runtime-measured CTA height variable for consistent offsets */
  #cart-float{right:18px;bottom:calc(var(--mobile-cta-height) + 56px);padding:8px 10px;gap:8px;z-index:200}
  #cart-float .cart-ico{width:34px;height:34px}
  #cart-float .cart-badge{padding:4px 8px;font-size:12px}
  #whatsapp-float{right:18px;bottom:calc(var(--mobile-cta-height) + 8px);height:44px;padding:0 10px;z-index:190}
  #whatsapp-float .w-label{display:none}
}
  .nav-list{gap:18px}


/* small screens tweaks */
@media(max-width:699px){
  .nav-list{display:none}
  .hamburger{display:block}
  /* Mobile nav: compact dropdown under the header (not full-height) */
  /* position absolute so it expands only to fit menu items and doesn't cover the whole screen */
  .nav-list{position:absolute;top:100%;left:8px;right:8px;background:linear-gradient(90deg,var(--brand-a),var(--brand-b));padding:10px;flex-direction:column;gap:8px;z-index:300;border-radius:12px;max-height:calc(100vh - var(--header-height) - 24px);overflow:auto;box-shadow:0 10px 30px rgba(0,0,0,.14)}
  .nav-list a{color:#fff;padding:10px;border-radius:10px;display:block;text-align:center;width:100%;margin:6px 0;background:rgba(255,255,255,0.06)}
  /* ensure dropdowns inside mobile nav are hidden on compact view */
  .nav-item .dropdown{position:static;background:transparent;box-shadow:none;padding:0;margin:0;display:none}
}

@media(max-width:699px){
  /* ensure header stays above the mobile nav and brand doesn't overlap items */
  .site-header{position:sticky;top:0;z-index:500}
  .site-header .brand{position:relative;left:0;top:0;z-index:510;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:60%;font-size:1rem}
  .hamburger{position:relative;z-index:520}
}

@media(max-width:480px){
  /* make sure floats sit above the mobile CTA and don't overlap small screens */
  /* ensure vertical stack on very small screens (cart above WhatsApp) */
  #cart-float{right:14px;bottom:calc(var(--mobile-cta-height) + 56px);padding:8px 10px}
  #whatsapp-float{right:14px;bottom:calc(var(--mobile-cta-height) + 8px)}
  #whatsapp-float .w-icon{width:30px;height:30px}
  #whatsapp-float .w-label{display:none}
  /* tight header spacing */
  .site-header{padding:10px}
  .brand{font-size:1rem}
}

/* Fluid smartphone range: adapt layout and type between 320px and 480px */
@media (min-width:320px) and (max-width:480px){
  :root{ --gutter:12px }
  .site-container{padding:0 var(--gutter)}
  .site-header .site-container{padding:10px var(--gutter)}
  .brand{font-size:clamp(0.95rem,4.5vw,1.15rem);line-height:1}

  /* Mobile nav buttons: comfortable hit targets and readable type */
  .nav-list a{font-size:clamp(14px,3.8vw,16px);padding:10px 12px}
  .nav-list .mobile-only a{font-size:clamp(14px,3.8vw,16px);padding:12px}

  /* Banner scales smoothly so text never overflows */
  .banner-slide{height:clamp(220px,36vw,320px)}
  .banner-carousel .hero-inner{padding:12px}
  .banner-carousel .hero-inner h1{font-size:clamp(18px,6.2vw,26px);line-height:1.05}
  .banner-carousel .hero-inner p{font-size:clamp(13px,3.6vw,15px)}

  /* Product cards scale for narrow screens (ensure images remain proportional) */
  .product-media{padding-top:80%}
  .product-card{padding:10px}

  /* Forms — larger inputs for touch */
  #contact-form input,#contact-form textarea{padding:14px;font-size:1rem}
  #contact-form textarea{min-height:140px}

  /* Slightly tighten mobile floats so they don't crowd content */
  #cart-float{right:12px;bottom:calc(var(--mobile-cta-height) + 48px)}
  #whatsapp-float{right:12px;bottom:calc(var(--mobile-cta-height) + 8px)}

  /* Ensure product rows that use horizontal scroll are usable on narrow screens */
  .product-row{gap:12px;padding-left:12px;padding-right:12px}
  .product-row .product-card{min-width:180px;flex:0 0 46%}
}

/* When mobile nav is open move floating CTAs further up so they don't overlap the menu */
/* When mobile nav is open move floating CTAs further up so they don't overlap the menu */
body.mobile-nav-open{ --mobile-nav-height:260px }
/* when mobile nav opens, include its height plus the CTA height so floats move above both */
body.mobile-nav-open #cart-float{bottom:calc(var(--mobile-cta-height) + var(--mobile-nav-height) + 40px);transition:bottom .18s}
body.mobile-nav-open #whatsapp-float{bottom:calc(var(--mobile-cta-height) + var(--mobile-nav-height) + 8px);transition:bottom .18s}

.checkout-form{max-width:700px;margin:12px auto;padding:12px;display:flex;flex-direction:column;gap:8px}
.checkout-form label{display:flex;flex-direction:column;gap:4px}

.view-more{text-align:center;margin-top:36px}

/* Dynamic card variants for colorful accents */
.product-card.variant-a .product-media{background:linear-gradient(180deg,#fff7f0,#fbf0e6)}
.product-card.variant-b .product-media{background:linear-gradient(180deg,#f4fbff,#eef7ff)}
.product-card.variant-c .product-media{background:linear-gradient(180deg,#f7fff4,#eefce8)}
.product-card.variant-d .product-media{background:linear-gradient(180deg,#fff6fb,#fdeef7)}
.product-card.variant-e .product-media{background:linear-gradient(180deg,#fdfbf6,#fffefc)}
.product-card.variant-f .product-media{background:linear-gradient(180deg,#fbf8ff,#f3f0ff)}
.product-card .product-info h4{margin:0 0 6px}

.badge{background:#e53935;color:#fff;padding:2px 6px;border-radius:12px;font-size:12px}

/* Ensure desktop product layout is enforced and not overridden by mobile tweaks */
@media(min-width:900px){
  .products-grid{grid-template-columns:repeat(4,1fr) !important;gap:20px}
  #featured-grid{grid-template-columns:repeat(4,1fr) !important}
  .product-card{width:100!important;max-width:none}
  /* slightly reduce image aspect ratio on desktop so cards don't look oversized */
  .product-media{padding-top:56%}
}

/* Strong mobile header layout: compact header with logo + hamburger; nav is a hidden full-height panel */
@media(max-width:800px){
  :root{ --header-height:56px }
  .site-header .site-container{flex-direction:row;align-items:center;justify-content:space-between;padding:8px 10px}
  .site-header .brand{position:relative;left:0;top:0;max-width:72%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:1rem}
  /* nav hidden by default, becomes a full height panel when opened via .mobile-nav-open */
  .nav-list{display:none;position:fixed;top:var(--header-height);left:0;right:0;background:linear-gradient(90deg,var(--brand-a),var(--brand-b));padding:14px;flex-direction:column;gap:10px;z-index:350;height:calc(100vh - var(--header-height));overflow:auto;box-shadow:0 8px 30px rgba(0,0,0,.12)}
  .nav-list a{display:block;padding:12px;border-radius:8px;background:rgba(255,255,255,0.06);color:#fff}
  .nav-list .nav-item .dropdown{position:static;background:transparent;padding-left:12px}
  /* mobile CTAs style inside nav */
  .nav-list .mobile-only a{background:linear-gradient(90deg,var(--brand-a),var(--brand-b));color:#fff}
  /* show the hamburger on mobile to toggle the nav */
  .hamburger{display:block}
  /* ensure header CTAs are hidden (we show them in the nav) */
  .header-ctas{display:none}
  /* when menu open */
  body.mobile-nav-open .nav-list{display:flex}
}

/* Mobile nav: compact grid buttons and hide product subcategories on small screens */
@media(max-width:699px){
  /* prefer grid layout for touch-friendly buttons; two columns on most phones */
  body.mobile-nav-open .nav-list,
  .nav-list.open{
    display:grid !important;
    grid-template-columns:repeat(2,1fr);
    gap:10px;
    padding:10px;
    align-items:stretch;
    position:absolute;
    top:100%;
    left:8px;
    right:8px;
    margin-top:6px;
    border-radius:12px;
    /* constrain to two rows of buttons to keep dropdown compact */
    grid-auto-rows:48px;
    max-height:120px; /* ~ (48px row + gaps) * 2 rows + padding */
    overflow:auto;
    box-shadow:0 10px 30px rgba(0,0,0,0.14);
  }

  /* make each nav link look like a tappable card/button */
  body.mobile-nav-open .nav-list a,
  .nav-list.open a{
    display:flex !important;
    align-items:center;
    justify-content:center;
    padding:8px 8px; /* reduced padding for denser layout */
    font-size:13px; /* smaller type for compact look */
    line-height:1;
    border-radius:10px;
    background:linear-gradient(90deg,rgba(255,255,255,0.06),rgba(255,255,255,0.04));
    color:#fff;
    text-align:center;
    width:100%;
    box-shadow:0 6px 18px rgba(0,0,0,0.08);
  }

  /* mobile-only CTAs should span full width in the grid for prominence */
  body.mobile-nav-open .nav-list .mobile-only,
  .nav-list.open .mobile-only{ grid-column: 1 / -1 }

  /* ensure product subcategories are hidden for a compact menu */
  .nav-item .dropdown{ display:none !important }
}
