/* =========================================================
   Sivakasi Crackers - Frontend Theme
========================================================= */
:root {
    --primary: #e8232a;
    --secondary: #1a0a3c;
    --accent: #f8b400;
    --primary-dark: #c11a20;
    --text: #2c2c3a;
    --muted: #7a7a90;
    --border: #ececf3;
    --bg: #faf9fc;
    --card: #ffffff;
    --success: #1ba94c;
    --info: #1c8fd6;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 10px rgba(26,10,60,0.06);
    --shadow: 0 8px 30px rgba(26,10,60,0.1);
    --shadow-lg: 0 20px 50px rgba(26,10,60,0.18);
    --header-h: 78px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', 'Segoe UI', Roboto, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    padding-bottom: 0;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

::selection { background: var(--primary); color: #fff; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
::-webkit-scrollbar-track { background: #f0f0f5; }

/* ---------- Reveal Animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="left"].in-view { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="right"].in-view { transform: translateX(0); }
[data-reveal="scale"] { transform: scale(.9); }
[data-reveal="scale"].in-view { transform: scale(1); }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
[data-reveal-delay="5"] { transition-delay: .40s; }
[data-reveal-delay="6"] { transition-delay: .48s; }

@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulseGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(232,35,42,0.4);} 50% { box-shadow: 0 0 0 12px rgba(232,35,42,0);} }
@keyframes sparkle { 0%,100% { opacity: .4; transform: scale(.8) rotate(0deg);} 50% { opacity: 1; transform: scale(1.15) rotate(20deg);} }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
@keyframes slideInRight { from { transform: translateX(30px); opacity:0; } to { transform: translateX(0); opacity:1; } }

/* ---------- Top Announcement Bar ---------- */
.top-bar {
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    color: #fff; text-align: center; font-size: 13px; font-weight: 500;
    padding: 9px 40px; position: relative; letter-spacing: .2px;
}
.top-bar .bell { animation: floatY 1.6s ease-in-out infinite; margin-right: 6px; }
.top-bar .close-bar { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #fff; font-size: 15px; opacity: .8; }
.top-bar .close-bar:hover { opacity: 1; }
.top-bar.hidden { display: none; }

/* ---------- Header ---------- */
.site-header { background: #fff; box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 500; transition: .3s; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 20px; max-width: 1280px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img.logo-img { height: 48px; width: auto; }
.brand .logo-fallback {
    width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px;
}
.brand-text .brand-name { font-size: 18px; color: var(--secondary); font-weight: 800; letter-spacing: .3px; line-height: 1.1; }
.brand-text span { font-size: 10.5px; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; }

.header-search { flex: 1; max-width: 460px; position: relative; }
.header-search input {
    width: 100%; padding: 12px 50px 12px 18px; border: 1.5px solid var(--border); border-radius: 30px;
    font-size: 14px; transition: .2s; background: var(--bg);
}
.header-search input:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(232,35,42,0.08); }
.header-search button {
    position: absolute; right: 5px; top: 5px; bottom: 5px; width: 40px; border: none; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; display: flex; align-items: center; justify-content: center;
}
.header-search .search-suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 50; overflow: hidden; display: none; max-height: 340px; overflow-y: auto; }
.header-search .search-suggest.active { display: block; }
.search-suggest a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13.5px; border-bottom: 1px solid var(--border); }
.search-suggest a:hover { background: var(--bg); }
.search-suggest img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; }

.header-actions { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.header-contact { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.header-contact .whatsapp-icon { width: 38px; height: 38px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; animation: pulseGlow 2.4s infinite; }
.header-contact strong { display: block; color: var(--secondary); font-size: 14px; }
.header-cart-btn { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--secondary); color: #fff; border-radius: 30px; font-size: 13.5px; font-weight: 600; border: none; transition: .2s; }
.header-cart-btn:hover { background: var(--primary); transform: translateY(-2px); }
.header-cart-btn .cart-count { position: absolute; top: -7px; right: -7px; background: var(--accent); color: var(--secondary); width: 22px; height: 22px; border-radius: 50%; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 22px; color: var(--secondary); }

/* ---------- Nav ---------- */
.main-nav { background: var(--secondary); }
.main-nav ul { display: flex; align-items: center; gap: 4px; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.main-nav a { display: block; padding: 14px 18px; color: rgba(255,255,255,0.85); font-size: 13.5px; font-weight: 600; letter-spacing: .3px; position: relative; }
.main-nav a:hover, .main-nav a.active { color: var(--accent); }
.main-nav a.active::after { content: ''; position: absolute; bottom: 0; left: 18px; right: 18px; height: 3px; background: var(--accent); border-radius: 3px 3px 0 0; }
.main-nav .has-dropdown { position: relative; }
.nav-dropdown { position: absolute; top: 100%; left: 0; background: #fff; min-width: 220px; box-shadow: var(--shadow-lg); border-radius: 0 0 12px 12px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s; z-index: 60; padding: 8px; }
.has-dropdown:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a { color: var(--text); padding: 10px 14px; border-radius: 8px; font-weight: 500; }
.nav-dropdown a:hover { background: var(--bg); color: var(--primary); }

/* ---------- Mobile Nav Drawer ---------- */
.mobile-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 300px; max-width: 85vw; background: var(--secondary); z-index: 999; transform: translateX(100%); transition: .35s cubic-bezier(.2,.8,.3,1); overflow-y: auto; }
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-drawer-header h3 { color: #fff; font-size: 16px; }
.mobile-drawer-header button { background: none; border: none; color: #fff; font-size: 20px; }
.mobile-drawer nav a { display: flex; align-items: center; gap: 12px; padding: 15px 22px; color: rgba(255,255,255,0.85); font-size: 14.5px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.mobile-drawer nav a:hover { background: rgba(255,255,255,0.06); color: var(--accent); }
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 998; opacity: 0; visibility: hidden; transition: .3s; }
.drawer-overlay.active { opacity: 1; visibility: visible; }

/* ---------- Hero Slider ---------- */
.hero-slider { position: relative; overflow: hidden; background: var(--secondary); }
.hero-slide { position: relative; display: none; min-height: 420px; align-items: center; background-size: cover; background-position: center; }
.hero-slide.active { display: flex; animation: fadeIn .8s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.hero-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(26,10,60,0.92) 15%, rgba(26,10,60,0.55) 55%, rgba(26,10,60,0.2) 100%); }
.hero-slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-content { position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 60px 20px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.hero-text { max-width: 560px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(248,180,0,0.15); border: 1px solid var(--accent); color: var(--accent); padding: 6px 16px; border-radius: 30px; font-size: 12px; font-weight: 700; letter-spacing: .5px; margin-bottom: 18px; }
.hero-text .hero-title { color: #fff; font-size: clamp(28px, 4.5vw, 46px); font-weight: 800; line-height: 1.15; margin-bottom: 14px; }
.hero-text .hero-title span { color: var(--accent); display: block; }
.hero-text p { color: rgba(255,255,255,0.8); font-size: 15px; margin-bottom: 26px; }
.hero-features { display: flex; gap: 22px; margin-bottom: 10px; flex-wrap: wrap; }
.hero-features div { display: flex; align-items: center; gap: 9px; color: #fff; font-size: 12.5px; }
.hero-features i { color: var(--accent); font-size: 16px; }
.hero-cta { display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(135deg, var(--primary), #ff5a3c); color: #fff; padding: 14px 30px; border-radius: 30px; font-weight: 700; font-size: 14.5px; margin-top: 18px; box-shadow: 0 10px 30px rgba(232,35,42,0.4); transition: .25s; }
.hero-cta:hover { transform: translateY(-3px); box-shadow: 0 15px 36px rgba(232,35,42,0.5); }
.hero-badge-circle { position: relative; z-index: 2; flex-shrink: 0; }
.hero-badge-circle .badge-ring {
    width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, var(--primary), var(--primary-dark));
    display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-align: center;
    box-shadow: 0 0 0 8px rgba(255,255,255,0.12), var(--shadow-lg); animation: floatY 3.5s ease-in-out infinite;
}
.hero-badge-circle .badge-ring b { font-size: 30px; font-weight: 800; }
.hero-badge-circle .badge-ring small { font-size: 11px; letter-spacing: .5px; }
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; transition: .25s; }
.hero-dots button.active { background: var(--accent); width: 24px; border-radius: 6px; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.15); color: #fff; border: none; font-size: 16px; backdrop-filter: blur(6px); transition: .2s; }
.hero-arrow:hover { background: var(--primary); }
.hero-arrow.prev { left: 18px; } .hero-arrow.next { right: 18px; }
.hero-sparkle { position: absolute; color: var(--accent); font-size: 20px; animation: sparkle 2.2s ease-in-out infinite; z-index: 2; }

/* ---------- Offer Tiles ---------- */
.offers-strip { padding: 34px 0 10px; }
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.offer-tile {
    border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden; min-height: 110px;
    display: flex; flex-direction: column; justify-content: center; transition: .3s; box-shadow: var(--shadow-sm);
}
.offer-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.offer-tile .tag { font-size: 11px; font-weight: 800; letter-spacing: .6px; opacity: .85; margin-bottom: 6px; }
.offer-tile h3 { font-size: 21px; font-weight: 800; margin-bottom: 4px; }
.offer-tile p { font-size: 13px; opacity: .9; }
.offer-tile i.deco { position: absolute; right: 16px; bottom: 10px; font-size: 56px; opacity: .18; }
.offer-tile .btn-badge { display: inline-block; margin-top: 10px; background: rgba(255,255,255,0.25); padding: 5px 14px; border-radius: 20px; font-size: 11px; font-weight: 700; width: fit-content; }

/* ---------- Section Headings ---------- */
.section { padding: 44px 0; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head .eyebrow { color: var(--primary); font-size: 12.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 8px; display: block; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); color: var(--secondary); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 8px; font-size: 14px; }
.section-head-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.view-all-link { color: var(--primary); font-weight: 700; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.view-all-link:hover { gap: 10px; }

/* ---------- Category Scroller ---------- */
.category-scroller { display: flex; gap: 22px; overflow-x: auto; padding: 10px 4px 20px; scrollbar-width: none; }
.category-scroller::-webkit-scrollbar { display: none; }
.category-item { flex-shrink: 0; width: 108px; text-align: center; transition: .25s; }
.category-item:hover { transform: translateY(-6px); }
.category-circle {
    width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 10px; background: #fff; border: 2.5px solid var(--border);
    display: flex; align-items: center; justify-content: center; overflow: hidden; transition: .25s; box-shadow: var(--shadow-sm);
}
.category-item:hover .category-circle { border-color: var(--primary); box-shadow: 0 10px 25px rgba(232,35,42,0.25); }
.category-circle img { width: 100%; height: 100%; object-fit: cover; }
.category-circle i { font-size: 30px; color: var(--primary); }
.category-item span { font-size: 12.5px; font-weight: 600; color: var(--text); }

/* ---------- Product Grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card {
    background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
    transition: .3s; position: relative; display: flex; flex-direction: column; border: 1px solid var(--border);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.product-img-wrap { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--bg); }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: .5s; }
.product-card:hover .product-img-wrap img { transform: scale(1.08); }
.product-discount-badge { position: absolute; top: 10px; left: 10px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 800; padding: 5px 10px; border-radius: 20px; z-index: 2; }
.product-featured-badge { position: absolute; top: 10px; right: 10px; background: var(--accent); color: var(--secondary); font-size: 10.5px; font-weight: 800; padding: 5px 9px; border-radius: 20px; z-index: 2; }
.product-info { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-cat-label { font-size: 11px; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .3px; margin-bottom: 4px; }
.product-info h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 6px; color: var(--secondary); line-height: 1.35; min-height: calc(1.35em * 2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-info h3 a:hover { color: var(--primary); }
.product-price-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; min-height: 44px; justify-content: center; }
.product-price-row .new { color: var(--primary); font-weight: 800; font-size: 18px; line-height: 1; }
.product-price-row .price-sub { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.product-price-row .old { text-decoration: line-through; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.product-price-row .off { font-size: 11px; color: var(--success); font-weight: 700; background: #e8f8ee; padding: 2px 7px; border-radius: 10px; white-space: nowrap; }
.product-actions { margin-top: auto; display: flex; align-items: center; gap: 8px; }
.qty-stepper { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty-stepper button { width: 30px; height: 34px; background: var(--bg); border: none; font-size: 14px; color: var(--secondary); }
.qty-stepper button:hover { background: var(--primary); color: #fff; }
.qty-stepper input { width: 36px; text-align: center; border: none; font-size: 13.5px; font-weight: 700; }
.btn-add-cart { flex: 1; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border: none; border-radius: 8px; padding: 9px 6px; font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; transition: .2s; }
.btn-add-cart:hover { box-shadow: 0 8px 20px rgba(232,35,42,0.35); transform: translateY(-1px); }
.btn-add-cart.added { background: var(--success); }
.out-of-stock-overlay { position: absolute; inset: 0; background: rgba(255,255,255,0.75); display: flex; align-items: center; justify-content: center; z-index: 3; }
.out-of-stock-overlay span { background: var(--secondary); color: #fff; padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 700; }

/* ---------- Trust Badges ---------- */
.trust-strip { background: #fff; border-top: 1px solid var(--border); padding: 30px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.trust-item .icon { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, rgba(232,35,42,0.1), rgba(248,180,0,0.1)); display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--primary); }
.trust-item strong { font-size: 13.5px; color: var(--secondary); display: block; }
.trust-item span { font-size: 11.5px; color: var(--muted); }

/* ---------- Layout with Cart Panel ---------- */
.shop-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
.shop-layout--filter { grid-template-columns: 260px 1fr; }
.shop-layout--about { grid-template-columns: 1.1fr 1fr; align-items: center; }
.shop-main { min-width: 0; }
.shop-layout > aside, .shop-layout > div { min-width: 0; }

/* ---------- Cart Panel ---------- */
.cart-panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.cart-panel--inline { position: sticky; top: calc(var(--header-h) + 90px); }
.cart-panel--drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 92vw; z-index: 999;
    border-radius: 0; transform: translateX(100%); transition: .35s cubic-bezier(.2,.8,.3,1); overflow-y: auto;
}
.cart-panel--drawer.open { transform: translateX(0); box-shadow: -10px 0 40px rgba(0,0,0,0.25); }
.cart-panel.cart-panel--drawer .close-cart-btn { display: block; }
.cart-panel--drawer .cart-items-list { max-height: calc(100vh - 380px); }
.cart-panel-header { background: linear-gradient(135deg, var(--secondary), #2a1660); color: #fff; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; }
.cart-panel-header h3 { font-size: 15.5px; display: flex; align-items: center; gap: 9px; }
.cart-panel-header .close-cart-btn { display: none; background: none; border: none; color: #fff; font-size: 18px; }
.cart-panel-header .count-badge { background: var(--accent); color: var(--secondary); font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 20px; }
.cart-items-list { max-height: 300px; overflow-y: auto; padding: 6px 20px; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: center; }
.cart-item img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: var(--bg); flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { font-size: 13px; font-weight: 600; color: var(--secondary); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-info .price { font-size: 12.5px; color: var(--primary); font-weight: 700; }
.cart-item-controls { display: flex; align-items: center; gap: 6px; }
.cart-item-controls .qty-stepper button { width: 24px; height: 26px; }
.cart-item-controls .qty-stepper input { width: 28px; }
.cart-item-remove { color: var(--muted); font-size: 13px; padding: 4px; }
.cart-item-remove:hover { color: var(--primary); }
.cart-empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.cart-empty i { font-size: 40px; margin-bottom: 12px; opacity: .35; }

.coupon-row { display: flex; gap: 8px; padding: 14px 20px 0; }
.coupon-row input { flex: 1; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 12.5px; text-transform: uppercase; }
.coupon-row button { padding: 0 16px; background: var(--secondary); color: #fff; border: none; border-radius: 8px; font-size: 12px; font-weight: 700; }
.coupon-msg { font-size: 11.5px; padding: 8px 20px 0; }
.coupon-msg.success { color: var(--success); } .coupon-msg.error { color: var(--primary); }
.applied-coupon { margin: 12px 20px 0; background: #e8f8ee; color: var(--success); padding: 8px 12px; border-radius: 8px; font-size: 12px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.applied-coupon button { background: none; border: none; color: var(--success); font-size: 13px; }

.cart-summary { padding: 16px 20px; border-top: 1px dashed var(--border); }
.cart-summary-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; color: var(--muted); }
.cart-summary-row.total { font-size: 16.5px; font-weight: 800; color: var(--secondary); border-top: 1px solid var(--border); padding-top: 10px; margin-top: 4px; }
.cart-summary-row.total .amt { color: var(--primary); }
.min-order-warning { background: #fff8e1; color: #b8860b; font-size: 11.5px; padding: 8px 20px; text-align: center; }
.order-block-banner { background: #fdecea; color: #c62828; font-size: 12px; padding: 12px 20px; text-align: center; font-weight: 600; }

.customer-form { padding: 4px 20px 20px; border-top: 1px solid var(--border); }
.customer-form h4 { font-size: 13.5px; color: var(--secondary); margin: 14px 0 12px; display: flex; align-items: center; gap: 8px; }
.customer-form .form-group { margin-bottom: 12px; }
.customer-form label { font-size: 12px; font-weight: 600; color: var(--secondary); display: block; margin-bottom: 5px; }
.customer-form input:not([type="checkbox"]):not([type="radio"]), .customer-form textarea {
    width: 100%; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; transition: .2s;
}
.customer-form input:focus, .customer-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,35,42,0.08); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.customer-form .form-row-2 { gap: 10px; }
.field-error { color: var(--primary); font-size: 11px; margin-top: 4px; display: none; }
.customer-form label.save-info-check {
    display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin: 10px 0; cursor: pointer;
}
.save-info-check input[type="checkbox"] { width: 15px; height: 15px; flex-shrink: 0; accent-color: var(--primary); margin: 0; }

.btn-place-order {
    width: 100%; background: linear-gradient(135deg, #25D366, #128C7E); color: #fff; border: none; padding: 15px;
    border-radius: 10px; font-size: 14.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: .25s; box-shadow: 0 10px 25px rgba(37,211,102,0.35);
}
.btn-place-order:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(37,211,102,0.45); }
.btn-place-order:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.secure-note { text-align: center; font-size: 11px; color: var(--muted); margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; }

.cart-toggle-fab {
    position: fixed; bottom: 24px; right: 24px; z-index: 400; width: 58px; height: 58px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border: none; font-size: 22px;
    box-shadow: 0 10px 30px rgba(232,35,42,0.45); display: none; align-items: center; justify-content: center;
}
.cart-toggle-fab.always-show { display: flex; }
.cart-toggle-fab .fab-count { position: absolute; top: -4px; right: -4px; background: var(--accent); color: var(--secondary); width: 22px; height: 22px; border-radius: 50%; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }

.whatsapp-fab {
    position: fixed; bottom: 24px; left: 24px; z-index: 400; width: 56px; height: 56px; border-radius: 50%;
    background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px;
    box-shadow: 0 10px 30px rgba(37,211,102,0.45); animation: pulseGlow 2.4s infinite;
}
.back-to-top { position: fixed; bottom: 96px; right: 24px; z-index: 399; width: 42px; height: 42px; border-radius: 50%; background: var(--secondary); color: #fff; display: none; align-items: center; justify-content: center; box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); transition: .3s; }
.back-to-top.show { display: flex; opacity: 1; transform: translateY(0); }

/* ---------- Page Header (inner pages) ---------- */
.page-banner { background: linear-gradient(120deg, var(--secondary), #2a1660); padding: 50px 0; position: relative; overflow: hidden; }
.page-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(248,180,0,0.15), transparent 60%); }
.page-banner h1 { color: #fff; font-size: clamp(24px,3.6vw,34px); font-weight: 800; position: relative; }
.page-banner .breadcrumb { color: rgba(255,255,255,0.65); font-size: 13px; margin-top: 8px; position: relative; }
.page-banner .breadcrumb a { color: rgba(255,255,255,0.9); } .page-banner .breadcrumb a:hover { color: var(--accent); }

/* ---------- Sidebar Filters ---------- */
.filter-sidebar { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px; margin-bottom: 22px; }
.filter-sidebar h4 { font-size: 14px; color: var(--secondary); margin-bottom: 14px; }
.filter-cat-list a { display: flex; justify-content: space-between; padding: 9px 10px; border-radius: 8px; font-size: 13px; color: var(--text); margin-bottom: 2px; }
.filter-cat-list a:hover, .filter-cat-list a.active { background: var(--bg); color: var(--primary); font-weight: 600; }
.filter-cat-list a span { color: var(--muted); font-size: 11.5px; }

/* ---------- Product Detail ---------- */
.product-detail-grid { display: grid; grid-template-columns: 440px 1fr; gap: 40px; }
.pd-gallery img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); aspect-ratio: 1/1; object-fit: cover; }
.pd-info h1 { font-size: 26px; color: var(--secondary); font-weight: 800; margin-bottom: 10px; }
.pd-info .price-block { display: flex; align-items: baseline; gap: 14px; margin: 16px 0; }
.pd-info .price-block .new { font-size: 30px; font-weight: 800; color: var(--primary); }
.pd-info .price-block .old { font-size: 18px; text-decoration: line-through; color: var(--muted); }
.pd-info .desc { color: var(--muted); line-height: 1.7; margin: 18px 0; font-size: 14px; }
.pd-add-row { display: flex; gap: 14px; margin-top: 24px; align-items: center; }

/* ---------- About / Contact / Safety ---------- */
.content-page { padding: 50px 0; }
.info-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 30px 0; }
.info-card { background: #fff; border-radius: var(--radius); padding: 26px; text-align: center; box-shadow: var(--shadow-sm); transition: .3s; }
.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.info-card .icon { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, rgba(232,35,42,0.1), rgba(248,180,0,0.12)); color: var(--primary); font-size: 24px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.info-card h3 { color: var(--secondary); font-size: 16px; margin-bottom: 8px; }
.info-card p { color: var(--muted); font-size: 13.5px; line-height: 1.6; }

.safety-tip-item { display: flex; gap: 16px; background: #fff; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 16px; align-items: flex-start; transition: .25s; }
.safety-tip-item:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.safety-tip-item .num { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.safety-tip-item h4 { color: var(--secondary); margin-bottom: 4px; font-size: 15px; }
.safety-tip-item p { color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.safety-dos-donts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 30px; }
.dos-box, .donts-box { border-radius: var(--radius); padding: 24px; }
.dos-box { background: #e8f8ee; } .donts-box { background: #fdecea; }
.dos-box h3 { color: var(--success); margin-bottom: 14px; } .donts-box h3 { color: var(--primary); margin-bottom: 14px; }
.dos-box li, .donts-box li { display: flex; gap: 10px; font-size: 13.5px; margin-bottom: 10px; color: var(--text); align-items: flex-start; }
.dos-box i { color: var(--success); margin-top: 3px; } .donts-box i { color: var(--primary); margin-top: 3px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.contact-form .form-group { margin-bottom: 16px; }
.contact-form label { font-size: 13px; font-weight: 600; color: var(--secondary); display: block; margin-bottom: 6px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 13.5px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,35,42,0.08); }
.map-embed-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-embed-wrap iframe { width: 100%; height: 320px; border: none; display: block; }
.contact-info-list li { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.contact-info-list .icon { width: 42px; height: 42px; border-radius: 10px; background: rgba(232,35,42,0.08); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info-list strong { display: block; color: var(--secondary); font-size: 13.5px; }
.contact-info-list span { color: var(--muted); font-size: 13px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--secondary); color: rgba(255,255,255,0.75); padding: 60px 0 0; margin-top: 50px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 34px; padding-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 14.5px; margin-bottom: 18px; font-weight: 700; }
.footer-col p { font-size: 13px; line-height: 1.8; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 13px; transition: .2s; }
.footer-col ul a:hover { color: var(--accent); padding-left: 4px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: .25s; }
.footer-social a:hover { background: var(--primary); transform: translateY(-3px); }
.footer-contact li { display: flex; gap: 10px; font-size: 13px; margin-bottom: 14px; align-items: flex-start; }
.footer-contact i { color: var(--accent); margin-top: 3px; }
.newsletter-box { display: flex; margin-top: 8px; border-radius: 8px; overflow: hidden; }
.newsletter-box input { flex: 1; border: none; padding: 11px 14px; font-size: 13px; }
.newsletter-box button { background: var(--accent); color: var(--secondary); border: none; padding: 0 16px; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 18px 0; text-align: center; font-size: 12.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: rgba(255,255,255,0.6); }

.legal-notice { border-top: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08); padding: 24px 0; }
.legal-notice-inner { display: flex; gap: 14px; align-items: flex-start; }
.legal-notice-inner i { color: var(--accent); font-size: 20px; margin-top: 2px; flex-shrink: 0; }
.legal-notice p { font-size: 12.5px; line-height: 1.9; color: rgba(255,255,255,0.65); margin-bottom: 10px; }
.legal-notice p:last-child { margin-bottom: 0; }
.legal-notice strong { color: rgba(255,255,255,0.9); }

/* ---------- Mobile Bottom Nav ---------- */
.mobile-bottom-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; box-shadow: 0 -4px 20px rgba(0,0,0,0.08); z-index: 450; padding: 8px 0; }
.mobile-bottom-nav ul { display: flex; justify-content: space-around; }
.mobile-bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; color: var(--muted); position: relative; padding: 4px 8px; }
.mobile-bottom-nav a.active, .mobile-bottom-nav a:hover { color: var(--primary); }
.mobile-bottom-nav i { font-size: 18px; }
.mobile-bottom-nav .mb-cart-count { position: absolute; top: -2px; right: 0; background: var(--primary); color: #fff; width: 15px; height: 15px; border-radius: 50%; font-size: 9px; display: flex; align-items: center; justify-content: center; }

/* ---------- Toasts ---------- */
.toast-container { position: fixed; top: 100px; right: 20px; z-index: 1200; display: flex; flex-direction: column; gap: 10px; }
.toast { background: #fff; padding: 14px 20px; border-radius: 10px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; min-width: 260px; animation: slideInRight .35s ease; border-left: 4px solid var(--success); font-size: 13px; }
.toast.error { border-left-color: var(--primary); }
.toast i { font-size: 16px; color: var(--success); }
.toast.error i { color: var(--primary); }

/* ---------- Order Success ---------- */
.success-box { max-width: 560px; margin: 60px auto; background: #fff; border-radius: var(--radius-lg); padding: 50px 40px; text-align: center; box-shadow: var(--shadow); }
.success-icon { width: 90px; height: 90px; border-radius: 50%; background: #e8f8ee; color: var(--success); font-size: 42px; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; animation: floatY 2.5s ease-in-out infinite; }
.success-box h1 { color: var(--secondary); font-size: 24px; margin-bottom: 10px; }
.success-box p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.order-no-chip { display: inline-block; background: var(--bg); border: 1.5px dashed var(--border); padding: 10px 22px; border-radius: 30px; font-weight: 800; color: var(--primary); letter-spacing: 1px; margin-bottom: 24px; }

/* ---------- Spinner / Loading ---------- */
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.skeleton { background: linear-gradient(90deg, #eee 25%, #f6f6f6 37%, #eee 63%); background-size: 400px 100%; animation: shimmer 1.4s infinite linear; border-radius: 8px; }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1150px) {
    .shop-layout { grid-template-columns: 1fr; }
    .cart-panel--inline { position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 92vw; z-index: 999; border-radius: 0; transform: translateX(100%); transition: .35s cubic-bezier(.2,.8,.3,1); overflow-y: auto; }
    .cart-panel--inline.open { transform: translateX(0); box-shadow: -10px 0 40px rgba(0,0,0,0.2); }
    .cart-panel-header .close-cart-btn { display: block; }
    .cart-toggle-fab { display: flex; }
    .cart-items-list { max-height: 220px; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
    .header-search { display: none; }
    .main-nav { display: none; }
    .mobile-menu-toggle { display: block; }
    .header-contact { display: none; }
    .offers-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .product-detail-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: repeat(2,1fr); }
    .info-card-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .safety-dos-donts { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .hero-content { flex-direction: column; text-align: center; padding: 40px 20px 70px; }
    .hero-features { justify-content: center; }
    .hero-badge-circle { order: -1; }
    .footer-grid { grid-template-columns: 1fr; text-align: left; padding-bottom: 20px; }
    .header-cart-btn span.label { display: none; }
    body { padding-bottom: 62px; }
    .mobile-bottom-nav { display: block; }
    .cart-toggle-fab { bottom: 78px; }
    .whatsapp-fab { bottom: 78px; }
    .back-to-top { bottom: 148px; }
    .info-card-grid { grid-template-columns: 1fr; }
    .top-bar { font-size: 11.5px; padding: 8px 34px; }
    .form-row-2, .customer-form .form-row-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .brand-text span { display: none; }
    .hero-slide { min-height: 380px; }
}
