/* =========================================================
   ELIKEYS ENT — Store Stylesheet
   Light, bright ecommerce theme. Warm gold accent carried over
   from the brand mark, on a clean white/cream base.
   Fonts: Poppins (display) + Inter (body) — the standard
   ecommerce pairing (Shopify-class stores lean on this combo).
   ========================================================= */

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

:root {
    --bg:        #FFFFFF;
    --bg-soft:   #FAF8F4;
    --surface:   #FFFFFF;
    --surface-2: #F5F2EC;
    --border:    #E9E4D8;
    --gold:      #B8873B;
    --gold-hi:   #D9A94F;
    --gold-soft: #FBF1DD;
    --ink:       #17150F;
    --text:      #221F19;
    --text-muted:#736C5E;
    --success:   #16A34A;
    --success-soft: #E7F7ED;
    --danger:    #DC2626;
    --danger-soft: #FDECEC;
    --radius:    12px;
    --shadow-sm: 0 1px 2px rgba(23,21,15,.05);
    --shadow-md: 0 8px 24px rgba(23,21,15,.08);
    --shadow-lg: 0 20px 48px rgba(23,21,15,.12);
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; margin: 0 0 .5em; letter-spacing: -0.01em; color: var(--ink); }
p { margin: 0 0 1em; color: var(--text-muted); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.eyebrow {
    display: inline-block; font-family: var(--font-display); font-size: .72rem; font-weight: 600;
    letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
    background: var(--gold-soft); padding: 5px 14px; border-radius: 999px;
    margin-bottom: 16px;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-display); font-weight: 600; font-size: .9rem;
    padding: 13px 26px; border-radius: 8px; border: 1px solid transparent;
    cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
    position: relative; overflow: hidden;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #2C2818; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .8rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.logo img { height: 40px; width: 40px; object-fit: cover; border-radius: 50%; display: block; box-shadow: 0 0 0 1px rgba(184,135,59,.25), 0 4px 14px rgba(184,135,59,.18); flex-shrink: 0; }
.logo .mark {
    width: 36px; height: 36px; border-radius: 50%;
    background: conic-gradient(from 90deg, var(--gold-hi), var(--gold), #8a662c, var(--gold-hi));
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 1px rgba(184,135,59,.25), 0 4px 14px rgba(184,135,59,.25);
    animation: spin 16s linear infinite;
    flex-shrink: 0;
}
.logo .mark::after { content: ''; width: 11px; height: 11px; background: #fff; border-radius: 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
.logo small { display: block; color: var(--text-muted); font-family: var(--font-body); font-weight: 500; font-size: .68rem; letter-spacing: .04em; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { font-size: .88rem; color: var(--text-muted); font-weight: 600; transition: color .15s; position: relative; }
.main-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .2s ease; }
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.icon-link { position: relative; color: var(--ink); font-size: 1.1rem; transition: transform .15s; }
.icon-link:hover { transform: translateY(-1px); }
.cart-badge {
    position: absolute; top: -8px; right: -10px; background: var(--gold); color: #fff;
    font-size: .65rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.nav-toggle { display: none; background: none; border: none; color: var(--ink); font-size: 1.4rem; cursor: pointer; }

@media (max-width: 860px) {
    .main-nav { position: fixed; inset: 62px 0 0 0; background: var(--bg); flex-direction: column;
        align-items: flex-start; padding: 24px; gap: 18px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
    .main-nav.open { transform: translateX(0); }
    .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 76px 0 60px; overflow: hidden; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--bg-soft), var(--bg) 70%); }
.hero-eq { position: absolute; inset: auto 0 0 0; height: 90px; display: flex; align-items: flex-end; gap: 4px; opacity: .18; pointer-events: none; }
.hero-eq span { flex: 1; background: linear-gradient(180deg, var(--gold), transparent); animation: eq 1.6s ease-in-out infinite; }
.hero-eq span:nth-child(odd) { animation-duration: 1.1s; }
.hero-eq span:nth-child(3n) { animation-duration: 1.9s; }
@keyframes eq { 0%,100% { height: 12%; } 50% { height: 85%; } }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.08; animation: fadeUp .7s ease both; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 1.02rem; max-width: 46ch; animation: fadeUp .7s ease .1s both; }
.hero-actions { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; animation: fadeUp .7s ease .2s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.hero-visual { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 26px; box-shadow: var(--shadow-md); animation: fadeUp .7s ease .15s both; }
.hero-visual .row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border); font-family: var(--font-display); font-size: .85rem; }
.hero-visual .row:last-child { border-bottom: none; }
.hero-visual .row b { color: var(--gold); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Category strip ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.section-head h2 { font-size: 1.7rem; margin: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.cat-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px 16px; text-align: center; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.cat-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-card .dial { width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%; border: 2px solid var(--gold); position: relative; transition: transform .3s ease; }
.cat-card:hover .dial { transform: rotate(35deg); }
.cat-card .dial::after { content: ''; position: absolute; top: 3px; left: 50%; width: 2px; height: 10px; background: var(--gold); transform: translateX(-50%); }
.cat-card span { font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: var(--ink); }

/* ---------- Product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.product-card:hover { border-color: var(--gold); transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-thumb { aspect-ratio: 1/1; background: var(--surface-2); position: relative; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-thumb img { transform: scale(1.06); }
.product-thumb .badge { position: absolute; top: 10px; left: 10px; background: var(--ink); color: #fff; font-size: .68rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; font-family: var(--font-display); }
.product-thumb .badge-discount { position: absolute; top: 10px; right: 10px; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; font-family: var(--font-display); }
.product-thumb .no-image { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--text-muted); font-size: .8rem; background: var(--surface-2); }
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-cat { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-weight: 700; }
.product-name { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--ink); }
.product-price { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.product-price .price { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.product-price .compare { text-decoration: line-through; color: var(--text-muted); font-size: .8rem; margin-right: 6px; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number],
textarea, select {
    width: 100%; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text); font-family: var(--font-body); font-size: .92rem;
    transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); outline: none; }
textarea { resize: vertical; min-height: 100px; }
.form-card { max-width: 460px; margin: 60px auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-md); }
.form-card h1 { font-size: 1.4rem; }
.form-foot { text-align: center; margin-top: 16px; font-size: .88rem; color: var(--text-muted); }
.form-foot a { color: var(--gold); font-weight: 600; }

/* ---------- Alerts ---------- */
.alert { padding: 13px 16px; border-radius: 8px; margin-bottom: 18px; font-size: .9rem; border: 1px solid transparent; }
.alert-success { background: var(--success-soft); border-color: rgba(22,163,74,.25); color: #14803A; }
.alert-error { background: var(--danger-soft); border-color: rgba(220,38,38,.25); color: #B32323; }

/* ---------- Cart / checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-family: var(--font-display); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); padding: 10px; border-bottom: 1px solid var(--border); }
.cart-table td { padding: 14px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-line-item { display: flex; align-items: center; gap: 12px; }
.cart-line-item img { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; background: var(--surface-2); }
.qty-input { width: 64px; }
.cart-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: .92rem; color: var(--text-muted); }
.summary-row.total { color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; }
.summary-row.total b { color: var(--gold); }

/* ---------- Product gallery (detail page) ---------- */
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 2px solid var(--border); cursor: pointer; transition: border-color .15s, transform .15s; }
.gallery-thumbs img:hover { transform: translateY(-2px); }
.gallery-thumbs img.active { border-color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 46px 0 26px; margin-top: 60px; color: var(--text-muted); font-size: .88rem; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 30px; }
.footer-grid h4 { color: var(--ink); font-size: .85rem; }
.footer-grid a { display: block; color: var(--text-muted); margin-bottom: 8px; transition: color .15s; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- WhatsApp float ---------- */
.wa-float {
    position: fixed; bottom: 22px; right: 22px; background: #25D366; color: #fff;
    width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; box-shadow: var(--shadow-lg); z-index: 60; animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,.35), var(--shadow-lg); } 50% { box-shadow: 0 0 0 10px rgba(37,211,102,0), var(--shadow-lg); } }

/* ---------- Misc pages ---------- */
.breadcrumb { font-size: .82rem; color: var(--text-muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--gold); }
.empty-state { text-align: center; padding: 70px 20px; color: var(--text-muted); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; font-family: var(--font-display); }
.pill-paid { background: var(--success-soft); color: var(--success); }
.pill-pending { background: var(--gold-soft); color: var(--gold); }
.pill-failed { background: var(--danger-soft); color: var(--danger); }
.pill-fulfilled { background: var(--success-soft); color: var(--success); }
.table-wrap { overflow-x: auto; }
.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.gallery-main { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); aspect-ratio: 1/1; box-shadow: var(--shadow-sm); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .no-image { height: 100%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.file-list { list-style: none; padding: 0; margin: 0; }
.file-list li { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; }

/* ---------------------------------------------------
   Variants, wishlist, 360 viewer, ratings & reviews
   --------------------------------------------------- */

/* Wishlist heart */
.wishlist-heart {
    background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
    width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--text-muted); cursor: pointer; transition: all .15s; flex-shrink: 0;
}
.wishlist-heart:hover { border-color: var(--danger); color: var(--danger); }
.wishlist-heart.active { color: #fff; background: var(--danger); border-color: var(--danger); }
.wishlist-heart-lg { width: 42px; height: 42px; font-size: 1.2rem; }
.product-thumb .wishlist-heart { position: absolute; top: 10px; left: 10px; z-index: 3; }

/* Variant picker */
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-pill {
    padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
    font-size: .85rem; cursor: pointer; transition: all .15s; color: var(--ink);
}
.variant-pill:hover { border-color: var(--gold); }
.variant-pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.variant-pill.out, .variant-pill:disabled { opacity: .45; text-decoration: line-through; cursor: not-allowed; }

/* 360 spin viewer */
.spin-viewer { position: relative; width: 100%; height: 100%; cursor: grab; user-select: none; touch-action: pan-y; }
.spin-viewer.dragging { cursor: grabbing; }
.spin-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; }
.spin-frame.active { opacity: 1; }
.spin-hint {
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
    background: rgba(23,21,15,.7); color: #fff; font-size: .7rem; padding: 4px 10px; border-radius: 999px;
    pointer-events: none;
}
.gallery-thumbs-spin {
    width: 64px; height: 64px; border-radius: 8px; border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700;
    color: var(--gold); background: var(--gold-soft); cursor: pointer; transition: border-color .15s;
}
.gallery-thumbs-spin.active, .gallery-thumbs-spin:hover { border-color: var(--gold); }

/* Ratings & stars */
.stars { color: var(--gold-hi); letter-spacing: 1px; }
.rating-summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.star-picker { font-size: 1.6rem; color: var(--border); margin-bottom: 12px; }
.star-picker span { cursor: pointer; transition: color .1s; }
.star-picker span.active { color: var(--gold-hi); }

/* Reviews */
.review-form-box {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; margin-bottom: 26px; max-width: 560px; box-shadow: var(--shadow-sm);
}
.review-list { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }
.review-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; background: var(--surface); }
.review-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
