/* ============================================
   Glowé Cosmetics — Demo Store by MAR IT SOLUTION
   Self-contained stylesheet (independent of the
   main website so branding is easy to swap).
   Brand is fully customisable via the variables
   in :root below.
   ============================================ */
:root {
    --brand: #B2486C;          /* primary accent (rose) */
    --brand-dark: #8E3354;
    --brand-soft: #FCEEF2;     /* tinted background */
    --ink: #2B2430;            /* headings */
    --text: #5C5364;           /* body text */
    --muted: #9A90A0;
    --line: #EBE2E6;
    --bg: #FFFDFE;
    --card-bg: #FFFFFF;
    --ok: #1E9E56;
    --warn: #C77700;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 1px 3px rgba(43, 36, 48, 0.06), 0 10px 30px -18px rgba(43, 36, 48, 0.25);
    --shadow-lg: 0 24px 48px -24px rgba(43, 36, 48, 0.3);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Poppins', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font);
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }
button { font-family: inherit; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.25; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 22px; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 99;
    background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ===== Demo banner ===== */
.demo-banner {
    background: var(--ink);
    color: #fff;
    font-size: 0.75rem;
    text-align: center;
    padding: 7px 16px;
    letter-spacing: 0.3px;
}
.demo-banner strong { color: #F5C6D4; }

/* ===== Header ===== */
.store-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 253, 254, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 26px;
    height: 66px;
}

.store-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.store-logo .logo-mark {
    width: 34px; height: 34px; border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), #E989A5);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.05rem;
}
.store-logo .logo-name { color: var(--ink); font-size: 1.1rem; }
.store-logo small { display: block; color: var(--muted); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.4px; }

.store-nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.store-nav a { font-size: 0.92rem; font-weight: 500; color: var(--text); padding: 6px 2px; }
.store-nav a:hover, .store-nav a.active { color: var(--brand); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

.cart-link {
    position: relative;
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.92rem; font-weight: 600; color: var(--ink) !important;
    padding: 8px 14px; border: 1px solid var(--line); border-radius: 50px;
}
.cart-link:hover { border-color: var(--brand); color: var(--brand) !important; }

.cart-count {
    min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 50px; background: var(--brand); color: #fff;
    font-size: 0.68rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 26px; border-radius: 50px;
    font-size: 0.92rem; font-weight: 600; cursor: pointer;
    border: 1px solid transparent; transition: var(--transition);
    text-align: center;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.btn-outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--card-bg); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 9px 18px; font-size: 0.82rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ===== Hero ===== */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, var(--brand-soft), #FFFFFF 55%, #F4EFF7);
    padding: 72px 0 80px;
}
.hero::after {
    content: '';
    position: absolute; right: -140px; top: -140px;
    width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 137, 165, 0.18), transparent 65%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero-kicker {
    display: inline-block; padding: 6px 16px; border-radius: 50px;
    background: #fff; border: 1px solid var(--line);
    color: var(--brand); font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 { font-size: 2.6rem; letter-spacing: -0.5px; margin-bottom: 16px; }
.hero h1 em { font-style: italic; color: var(--brand); }
.hero p.lead { font-size: 1.05rem; max-width: 480px; margin-bottom: 26px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual .hero-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-visual .hero-card {
    background: #fff; border-radius: var(--radius-lg); padding: 12px;
    box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.hero-visual .hero-card img { border-radius: var(--radius-md, 12px); }
.hero-note { color: var(--muted); font-size: 0.78rem; margin-top: 14px; text-align: center; }

/* ===== Sections ===== */
.section { padding: 66px 0; }
.section-tint { background: var(--brand-soft); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 38px; }
.section-head h2 { font-size: 1.8rem; margin-bottom: 10px; }
.section-head p { color: var(--text); }

/* ===== Value strip ===== */
.value-strip {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
    margin-top: 46px;
}
.value-item {
    display: flex; gap: 12px; align-items: flex-start;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px 18px; font-size: 0.85rem; color: var(--text);
}
.value-item i { color: var(--brand); margin-top: 3px; }
.value-item b { display: block; color: var(--ink); font-size: 0.9rem; }

/* ===== Product cards & grid ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
    gap: 22px;
}

.product-card {
    display: flex; flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.product-card .p-media { position: relative; }
.product-card .p-media img { aspect-ratio: 1; object-fit: cover; width: 100%; }

.p-tag {
    position: absolute; top: 12px; left: 12px;
    background: rgba(255, 255, 255, 0.92); color: var(--brand-dark);
    font-size: 0.66rem; font-weight: 700; letter-spacing: 0.4px;
    padding: 4px 10px; border-radius: 50px; border: 1px solid var(--line);
}

.product-card .p-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-card .p-cat { color: var(--muted); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; }
.product-card h3 { font-size: 1rem; margin-bottom: 5px; }
.product-card .p-blurb { font-size: 0.8rem; color: var(--text); margin-bottom: 12px; }

.p-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; margin-top: auto; }
.p-price { color: var(--ink); font-weight: 700; font-size: 1.05rem; }
.p-old { color: var(--muted); text-decoration: line-through; font-size: 0.82rem; }

.p-add { margin-top: auto; }

/* ===== Shop toolbar ===== */
.shop-toolbar { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 26px; }
.search-box { position: relative; flex: 1 1 260px; max-width: 380px; }
.search-box input {
    width: 100%; padding: 11px 16px 11px 40px;
    border: 1px solid var(--line); border-radius: 50px;
    font-family: inherit; font-size: 0.9rem; color: var(--ink);
    background: var(--card-bg);
}
.search-box input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(178, 72, 108, 0.12); }
.search-box i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 0.85rem; }

.cat-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-pill {
    padding: 9px 16px; border-radius: 50px; cursor: pointer;
    border: 1px solid var(--line); background: var(--card-bg);
    font-size: 0.8rem; font-weight: 600; color: var(--text);
    transition: var(--transition);
}
.cat-pill:hover { border-color: var(--brand); color: var(--brand); }
.cat-pill.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.sort-row { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 0.8rem; }
.sort-row select {
    padding: 9px 12px; border: 1px solid var(--line); border-radius: 50px;
    font-family: inherit; font-size: 0.8rem; color: var(--ink); background: var(--card-bg);
}

.result-note { color: var(--muted); font-size: 0.8rem; margin-bottom: 18px; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state i { font-size: 2rem; color: var(--line); margin-bottom: 12px; }

/* ===== Product detail ===== */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.pdp-media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.pdp-info .p-cat { color: var(--muted); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 8px; }
.pdp-info h1 { font-size: 1.9rem; margin-bottom: 12px; }
.pdp-info .p-desc { margin: 18px 0 22px; }

.qty-row { display: flex; gap: 14px; align-items: stretch; flex-wrap: wrap; margin-bottom: 18px; }
.qty-input { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 50px; overflow: hidden; }
.qty-input button { width: 40px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 1rem; color: var(--ink); }
.qty-input button:hover { background: var(--brand-soft); color: var(--brand); }
.qty-input input {
    width: 48px; height: 44px; border: 0; text-align: center;
    font-family: inherit; font-size: 0.95rem; font-weight: 600; color: var(--ink);
    -moz-appearance: textfield;
}
.qty-input input::-webkit-outer-spin-button, .qty-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pdp-perks {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    margin-top: 26px; font-size: 0.8rem; color: var(--text);
}
.pdp-perks div { display: flex; gap: 8px; align-items: center; }
.pdp-perks i { color: var(--brand); }

/* ===== Cart ===== */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 34px; align-items: start; }
.cart-table { display: flex; flex-direction: column; gap: 14px; }
.cart-row {
    display: grid;
    grid-template-columns: 86px 1fr auto;
    gap: 16px; align-items: center;
    background: var(--card-bg); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 14px;
}
.cart-row img { width: 86px; height: 86px; object-fit: cover; border-radius: 10px; }
.cart-row .c-name { font-weight: 600; color: var(--ink); }
.cart-row .c-cat { color: var(--muted); font-size: 0.72rem; }
.cart-row .c-right { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.cart-row .c-line { color: var(--ink); font-weight: 700; }
.cart-row .c-remove {
    background: none; border: 0; cursor: pointer;
    color: var(--muted); font-size: 0.75rem; display: inline-flex; gap: 6px; align-items: center;
}
.cart-row .c-remove:hover { color: #D13A4E; }

.summary-box {
    background: var(--card-bg); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow);
}
.summary-box h3 { margin-bottom: 16px; }
.summary-line { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 7px 0; color: var(--text); }
.summary-line.total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; color: var(--ink); font-weight: 700; font-size: 1.05rem; }
.summary-note { color: var(--muted); font-size: 0.72rem; margin-top: 12px; text-align: center; }

/* ===== Checkout & forms ===== */
.formnarrow { max-width: 640px; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-grid .span2 { grid-column: span 2; }
.f-field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.f-field input, .f-field textarea, .f-field select {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--line); border-radius: 10px;
    font-family: inherit; font-size: 0.92rem; color: var(--ink);
    background: var(--card-bg);
}
.f-field textarea { resize: vertical; min-height: 90px; }
.f-field input:focus, .f-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(178, 72, 108, 0.12); }
.f-field input.invalid, .f-field textarea.invalid { border-color: #D13A4E; }
.f-err { color: #D13A4E; font-size: 0.72rem; min-height: 16px; display: block; margin-top: 4px; }

.checkout-summary { margin-bottom: 20px; }
.checkout-summary li { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 6px 0; }
.checkout-summary .cs-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 700; color: var(--ink); }

.form-result { margin-top: 18px; padding: 14px 18px; border-radius: 10px; font-size: 0.85rem; display: none; }
.form-result.ok { display: block; background: rgba(30, 158, 86, 0.08); border: 1px solid rgba(30, 158, 86, 0.3); color: #14713B; }
.form-result.err { display: block; background: rgba(209, 58, 78, 0.06); border: 1px solid rgba(209, 58, 78, 0.3); color: #A32035; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.contact-card {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 20px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--card-bg); margin-bottom: 14px;
}
.contact-card i { color: var(--brand); margin-top: 4px; font-size: 1.1rem; }
.contact-card b { color: var(--ink); display: block; font-size: 0.95rem; margin-bottom: 3px; }
.contact-card p { font-size: 0.85rem; }
.contact-card a { color: var(--brand); font-weight: 600; }
.contact-card a:hover { text-decoration: underline; }

/* ===== CTA band ===== */
.cta-band {
    background: linear-gradient(120deg, var(--brand), var(--brand-dark));
    border-radius: var(--radius-lg); text-align: center;
    padding: 46px 30px; color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { max-width: 520px; margin: 0 auto 24px; color: rgba(255, 255, 255, 0.85); }
.cta-band .btn-primary { background: #fff; color: var(--brand-dark); }
.cta-band .btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: #fff; background: transparent; }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ===== Footer ===== */
.store-footer { border-top: 1px solid var(--line); padding: 44px 0 30px; background: #fff; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 34px; margin-bottom: 30px; }
.footer-cols h4 { font-size: 0.9rem; margin-bottom: 12px; }
.footer-cols ul li { margin-bottom: 8px; font-size: 0.85rem; }
.footer-cols a:hover { color: var(--brand); }
.footer-desc { font-size: 0.85rem; color: var(--text); max-width: 320px; margin-top: 10px; }
.footer-note { border-top: 1px solid var(--line); padding-top: 18px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 0.75rem; }

/* ===== Breadcrumbs ===== */
.crumbs { font-size: 0.78rem; color: var(--muted); padding: 16px 0 4px; }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { margin: 0 7px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { max-width: 480px; }
    .pdp { grid-template-columns: 1fr; gap: 30px; }
    .cart-layout { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 2.1rem; }
}

@media (max-width: 640px) {
    .store-nav {
        display: none;
        position: absolute; top: 66px; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--line);
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 10px 22px 18px; box-shadow: var(--shadow-lg);
    }
    .store-nav.open { display: flex; }
    .store-nav a { padding: 12px 4px; border-bottom: 1px solid var(--brand-soft); }
    .store-nav .cart-link { border: 0; padding: 12px 4px; margin-top: 8px; }
    .nav-toggle { display: block; }
    .header-inner { gap: 12px; }
    .value-strip { grid-template-columns: 1fr; }
    .section { padding: 50px 0; }
    .hero { padding: 48px 0 56px; }
    .cart-row { grid-template-columns: 64px 1fr; }
    .cart-row img { width: 64px; height: 64px; }
    .cart-row .c-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
    .f-grid { grid-template-columns: 1fr; }
    .f-grid .span2 { grid-column: span 1; }
    .footer-cols { grid-template-columns: 1fr; gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
    html { scroll-behavior: auto; }
    .product-card:hover { transform: none; }
}
