:root {
    --ink: #11110f;
    --cream: #f5f1e9;
    --paper: #fbfaf7;
    --muted: #74736f;
    --line: rgba(17, 17, 15, .11);
    --lime: #d8ff4f;
    --coral: #ff6f61;
    --lavender: #dcd4ff;
    --blue: #b8d8ff;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'DM Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.sv-navbar { background: rgba(251,250,247,.9); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.sv-brand img { width: 122px; height: 62px; object-fit: contain; mix-blend-mode: multiply; }
.nav-link { font-size: .84rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #222 !important; }
.nav-link:hover { opacity: .55; }
.nav-actions { margin-left: auto; }
.icon-btn { border: 0; background: transparent; font-weight: 700; font-size: .88rem; padding: .65rem .75rem; }
.cart-btn { border: 1px solid var(--ink); border-radius: 999px; display: flex; gap: .5rem; align-items: center; }
.cart-btn b { min-width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: white; font-size: .68rem; }

.hero-section { min-height: 730px; display: flex; align-items: center; overflow: hidden; position: relative; background: linear-gradient(120deg, #f7f2e8 0%, #f4efff 55%, #eef6ff 100%); }
.hero-section::after { content: ''; position: absolute; inset: auto 0 0; height: 120px; background: linear-gradient(to top, var(--paper), transparent); pointer-events: none; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(1px); opacity: .6; }
.hero-orb-one { width: 240px; height: 240px; background: var(--lime); right: 9%; top: 7%; }
.hero-orb-two { width: 180px; height: 180px; background: var(--coral); left: -5%; bottom: 8%; }
.eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #64625e; }
.hero-section h1, h2 { font-family: var(--serif); font-weight: 600; line-height: .94; letter-spacing: -.045em; }
.hero-section h1 { font-size: clamp(4rem, 8vw, 7.4rem); margin: 1.2rem 0; }
h1 em, h2 em { font-style: italic; font-weight: 500; }
.hero-lead { max-width: 580px; font-size: 1.08rem; line-height: 1.7; color: #55534e; }
.hero-actions { align-items: center; }
.btn-dark { background: var(--ink); border-color: var(--ink); }
.text-link { font-weight: 700; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.hero-proof { flex-wrap: wrap; }
.hero-proof div { display: flex; flex-direction: column; gap: .2rem; min-width: 105px; }
.hero-proof strong { font-size: 1.25rem; }
.hero-proof span { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.hero-visual { height: 590px; position: relative; }
.hero-card { position: absolute; border-radius: 28px; overflow: hidden; box-shadow: 0 28px 80px rgba(17,17,15,.16); }
.hero-card-back { width: 70%; height: 74%; right: 3%; top: 13%; background: #dcd4ff; transform: rotate(8deg); }
.hero-card-main { width: 76%; height: 82%; right: 10%; top: 8%; background: #fff; transform: rotate(-5deg); }
.hero-card-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-label { position: absolute; left: 24px; bottom: 24px; background: rgba(255,255,255,.88); backdrop-filter: blur(10px); padding: 13px 16px; border-radius: 14px; font-size: .68rem; font-weight: 800; letter-spacing: .08em; }
.hero-label span { font-weight: 500; color: #777; }
.floating-pill { position: absolute; z-index: 4; padding: 12px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .66rem; letter-spacing: .12em; font-weight: 800; box-shadow: 0 12px 30px rgba(0,0,0,.14); animation: float 4s ease-in-out infinite; }
.floating-pill span { color: var(--lime); }
.floating-pill-top { top: 7%; left: 1%; }
.floating-pill-bottom { bottom: 9%; right: 2%; animation-delay: -1.4s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.marquee-band { overflow: hidden; background: var(--ink); color: #fff; padding: 14px 0; white-space: nowrap; }
.marquee-track { display: inline-flex; align-items: center; gap: 26px; min-width: max-content; animation: marquee 24s linear infinite; font-size: .72rem; font-weight: 800; letter-spacing: .18em; }
.marquee-track b { color: var(--lime); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.shop-section { background: var(--paper); }
.section-heading h2 { font-size: clamp(3rem, 5vw, 5.2rem); margin: .8rem 0 0; }
.shop-tools { justify-content: flex-end; }
.filter-chip { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 10px 16px; font-size: .78rem; font-weight: 700; transition: .25s ease; }
.filter-chip:hover, .filter-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.product-card { height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: transform .35s ease, box-shadow .35s ease; }
.product-card:hover { transform: translateY(-7px); box-shadow: 0 22px 50px rgba(17,17,15,.11); }
.product-image-wrap { height: 310px; background: #efede8; position: relative; overflow: hidden; }
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.product-card:hover .product-image-wrap img { transform: scale(1.055); }
.product-tag { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.9); border-radius: 999px; padding: 7px 10px; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.heart-btn { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(17,17,15,.1); background: rgba(255,255,255,.92); font-size: 1.25rem; line-height: 1; }
.heart-btn.is-favourite { background: var(--lime); border-color: var(--lime); }
.quick-view { position: absolute; left: 12px; right: 12px; bottom: 12px; border: 0; border-radius: 999px; background: rgba(17,17,15,.92); color: #fff; padding: 11px; font-size: .72rem; font-weight: 800; transform: translateY(70px); transition: .3s ease; }
.product-card:hover .quick-view { transform: translateY(0); }
.product-info { padding: 17px; }
.product-brand { font-size: .64rem; text-transform: uppercase; letter-spacing: .13em; color: #888; font-weight: 800; }
.product-info h3 { font-size: 1rem; margin: 6px 0 8px; font-weight: 700; }
.product-meta { display: flex; justify-content: space-between; gap: 8px; color: #7a7975; font-size: .68rem; margin-bottom: 15px; }
.product-bottom { display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.product-bottom strong { font-size: .98rem; }
.product-bottom del { font-size: .7rem; color: #999; margin-left: 5px; }
.stock-label { font-size: .62rem; color: #558b42; white-space: nowrap; }
.stock-label.stock-low { color: #c15d3e; }
.add-btn { width: 100%; border: 1px solid var(--ink); background: transparent; border-radius: 999px; padding: 11px; margin-top: 15px; font-size: .74rem; font-weight: 800; transition: .25s; }
.add-btn:hover { background: var(--ink); color: #fff; }
.add-btn:disabled { opacity: .4; }
.empty-state { text-align: center; padding: 90px 20px; color: var(--muted); }

.brands-section { background: #e9e5dc; }
.brand-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.brand-tile { min-height: 180px; border: 1px solid rgba(17,17,15,.1); background: rgba(255,255,255,.45); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; text-align: left; transition: .3s ease; }
.brand-tile:nth-child(2) { background: #dfeaff; }
.brand-tile:nth-child(3) { background: #f5d9d0; }
.brand-tile:nth-child(4) { background: #ded8ff; }
.brand-tile:nth-child(5) { background: #e6f6b8; }
.brand-tile:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 18px 40px rgba(17,17,15,.1); }
.brand-tile span { font-family: var(--serif); font-size: 1.55rem; line-height: 1.05; }
.brand-tile small { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }

.feature-panel { border-radius: 30px; overflow: hidden; background: var(--ink); color: #fff; box-shadow: 0 30px 70px rgba(17,17,15,.14); }
.feature-image { min-height: 600px; position: relative; overflow: hidden; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.feature-stamp { position: absolute; top: 28px; left: 28px; width: 90px; height: 90px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; display: grid; place-items: center; text-align: center; font-weight: 900; font-size: 1.25rem; line-height: .85; transform: rotate(-12deg); }
.feature-stamp span { font-size: .48rem; letter-spacing: .16em; }
.feature-copy { padding: 55px; }
.feature-copy .eyebrow { color: #aaa; }
.feature-copy h2 { font-size: clamp(3rem, 5vw, 4.7rem); margin: 1rem 0 1.4rem; }
.feature-copy p { color: #bbb9b3; line-height: 1.75; }
.feature-points { margin-top: 30px; border-top: 1px solid rgba(255,255,255,.15); }
.feature-points div { display: flex; gap: 15px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.15); font-size: .86rem; }
.feature-points span { color: var(--lime); font-weight: 800; }

.sv-footer { background: var(--ink); color: #fff; }
.footer-logo-wrap { width: 170px; height: 100px; background: #fff; border-radius: 18px; padding: 8px; }
.footer-logo-wrap img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.footer-copy { color: #aaa; max-width: 420px; line-height: 1.7; }
.sv-footer h6 { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: #fff; margin-bottom: 16px; }
.sv-footer .col-lg-2 a { display: block; color: #aaa; margin: 9px 0; font-size: .85rem; }
.sv-footer .col-lg-2 a:hover { color: var(--lime); }
.socials { display: flex; gap: 10px; }
.social-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #3b3b38; border-radius: 50%; transition: .25s; }
.social-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.facebook-icon svg { fill: currentColor; stroke: none; }
.social-icon:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid #2e2e2a; color: #777; font-size: .72rem; }

.sv-cart { width: min(460px, 100vw); }
.sv-cart h5 { font-family: var(--serif); font-size: 1.65rem; }
.cart-item { display: flex; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 86px; height: 100px; object-fit: cover; border-radius: 12px; background: #eee; }
.cart-item-copy { display: flex; flex-direction: column; flex: 1; gap: 3px; }
.cart-item-copy small { color: #888; text-transform: uppercase; font-size: .6rem; letter-spacing: .12em; font-weight: 800; }
.cart-item-copy strong { font-size: .88rem; }
.cart-item-copy > span { font-size: .8rem; }
.cart-controls { display: flex; align-items: center; gap: 9px; margin-top: 7px; }
.cart-controls button { border: 1px solid var(--line); background: #fff; width: 27px; height: 27px; border-radius: 50%; }
.cart-controls .remove-cart { border: 0; width: auto; font-size: .66rem; color: #888; background: transparent; }
.cart-empty { min-height: 55vh; display: grid; place-items: center; text-align: center; align-content: center; gap: 10px; color: #777; }
.cart-empty-icon { width: 70px; height: 70px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-size: 1.6rem; }
.cart-empty h5 { color: var(--ink); }
.cart-empty p { max-width: 270px; }

.sv-modal { border: 0; border-radius: 26px; overflow: hidden; }
.modal-close { position: absolute; z-index: 5; right: 15px; top: 15px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); font-size: 1.5rem; line-height: 1; }
.modal-product-image { min-height: 520px; background: #eee; }
.modal-product-image img { width: 100%; height: 100%; object-fit: cover; }
.modal-product-copy h2 { font-size: 3rem; margin: 12px 0; }
.modal-price { font-size: 1.25rem; font-weight: 800; }
.modal-price del { color: #999; font-size: .8rem; margin-left: 6px; }
.modal-product-copy > p:not(.modal-price) { color: #6b6965; line-height: 1.7; }
.small-label { font-size: .65rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; color: #777; }
.modal-color { font-size: .9rem; font-weight: 700; margin-top: 7px; }
.size-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.size-option { min-width: 44px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: .75rem; }
.size-option.selected { background: var(--ink); color: #fff; border-color: var(--ink); }
.stock-meter { height: 5px; background: #eceae5; border-radius: 99px; overflow: hidden; }
.stock-meter div { height: 100%; background: var(--lime); border-radius: inherit; }
.sv-toast { background: var(--ink); color: #fff; border-radius: 14px; border: 0; box-shadow: 0 18px 45px rgba(0,0,0,.2); }

@media (max-width: 991px) {
    .hero-section { min-height: auto; padding: 90px 0 110px; }
    .hero-visual { height: 520px; margin-top: 15px; }
    .brand-grid { grid-template-columns: repeat(2,1fr); }
    .brand-tile:last-child { grid-column: span 2; }
    .feature-image { min-height: 450px; }
}
@media (max-width: 575px) {
    .sv-brand img { width: 98px; height: 52px; }
    .hero-section h1 { font-size: 3.65rem; }
    .hero-visual { height: 420px; }
    .hero-card-main { width: 82%; height: 86%; right: 8%; }
    .hero-card-back { width: 76%; height: 72%; right: 1%; }
    .floating-pill { font-size: .55rem; padding: 9px 12px; }
    .product-image-wrap { height: 360px; }
    .brand-grid { grid-template-columns: 1fr; }
    .brand-tile:last-child { grid-column: auto; }
    .feature-copy { padding: 35px 24px; }
    .modal-product-image { min-height: 330px; }
    .modal-product-copy h2 { font-size: 2.5rem; }
}

/* Account, checkout, setup and admin screens */
.account-page,
.checkout-page,
.success-page,
.admin-page,
.setup-page {
    min-height: 70vh;
}

.auth-shell,
.success-card {
    max-width: 620px;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 2rem;
    box-shadow: 0 25px 80px rgba(20, 20, 20, 0.08);
}

.auth-shell h1,
.checkout-heading h1,
.success-card h1,
.account-header h1,
.admin-page h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.7rem, 6vw, 5rem);
    line-height: 0.95;
    margin: 0.7rem 0 1rem;
}

.auth-shell h1 em,
.checkout-heading h1 em,
.success-card h1 em,
.account-header h1 em,
.admin-page h1 em {
    font-style: italic;
}

.auth-form label,
.checkout-form label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 1.2rem 0 0.45rem;
}

.auth-form input,
.checkout-form input {
    width: 100%;
    border: 1px solid #d9d9d9;
    border-radius: 0.9rem;
    padding: 0.9rem 1rem;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-form input:focus,
.checkout-form input:focus {
    border-color: #111;
    box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.07);
}

.auth-form label span,
.checkout-form label span {
    color: #999;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

.auth-switch {
    text-align: center;
    margin: 1.5rem 0 0;
    color: #777;
}

.auth-switch a {
    color: #111;
    font-weight: 700;
}

.account-card,
.checkout-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1.75rem;
    padding: 2rem;
    box-shadow: 0 18px 60px rgba(20, 20, 20, 0.06);
}

.account-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.3rem;
    margin: 0.5rem 0 0;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    background: #f1f1ed;
    font-size: 0.78rem;
    font-weight: 700;
}

.checkout-heading {
    max-width: 800px;
}

.step-title {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.8rem;
}

.step-title > span {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
}

.step-title strong,
.step-title small {
    display: block;
}

.step-title strong {
    font-size: 1.1rem;
}

.step-title small {
    color: #888;
    margin-top: 0.15rem;
}

.checkout-payment-note {
    display: flex;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 1rem;
    background: #f5f4ef;
}

.payment-lock {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #111;
    color: #fff;
    flex: 0 0 auto;
}

.checkout-payment-note strong {
    display: block;
    font-size: 0.9rem;
}

.checkout-payment-note p {
    color: #777;
    font-size: 0.8rem;
    line-height: 1.5;
    margin-top: 0.2rem;
}

.checkout-summary-card {
    top: 100px;
}

.checkout-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 0.9rem;
    align-items: center;
    padding: 0.75rem 0;
}

.checkout-item img {
    width: 72px;
    height: 82px;
    border-radius: 0.9rem;
    object-fit: cover;
    background: #f2f1ed;
}

.checkout-item small,
.checkout-item strong,
.checkout-item span {
    display: block;
}

.checkout-item small {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
}

.checkout-item strong {
    font-size: 0.9rem;
    margin: 0.2rem 0;
}

.checkout-item span {
    font-size: 0.78rem;
    color: #888;
}

.checkout-item > b {
    font-size: 0.85rem;
}

.summary-lines > div {
    display: flex;
    justify-content: space-between;
    padding: 0.45rem 0;
}

.summary-total {
    margin-top: 0.6rem;
    padding-top: 1rem !important;
    border-top: 1px solid #eee;
    font-size: 1.15rem;
}

.success-card {
    text-align: center;
}

.success-icon {
    display: grid;
    place-items: center;
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 2rem;
}

.success-total {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 1.5rem;
}

.admin-stock-input {
    width: 100px;
    border: 1px solid #ddd;
    border-radius: 0.6rem;
    padding: 0.4rem 0.6rem;
}

.setup-warning {
    padding: 1rem;
    border-radius: 1rem;
    background: #fff5d6;
    color: #6c5600;
    font-size: 0.85rem;
}

@media (max-width: 767px) {
    .auth-shell,
    .success-card,
    .account-card,
    .checkout-card {
        padding: 1.4rem;
        border-radius: 1.25rem;
    }

    .checkout-item {
        grid-template-columns: 60px 1fr;
    }

    .checkout-item > b {
        grid-column: 2;
    }
}

.admin-help-box {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1rem 1.2rem;
    border-radius: 1rem;
    background: #f7f6f1;
    min-width: 210px;
}

.admin-help-box strong {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.admin-help-box span {
    color: #666;
    font-size: 0.82rem;
}

.admin-product-table {
    min-width: 1450px;
}

/* Give Price and Original Price enough room to show the full amount. */
.admin-product-table th:nth-child(5),
.admin-product-table td:nth-child(5),
.admin-product-table th:nth-child(6),
.admin-product-table td:nth-child(6) {
    min-width: 175px;
}

.admin-product-table .admin-money-input {
    width: 125px;
    min-width: 125px;
    flex: 0 0 125px;
}

.admin-product-table .input-group {
    width: 165px;
    min-width: 165px;
    flex-wrap: nowrap;
}

.admin-product-table .input-group-text {
    flex: 0 0 auto;
}


.admin-product-photo {
    width: 84px;
    height: 84px;
    border-radius: 16px;
    overflow: hidden;
    background: #f4f4f1;
    border: 1px solid #e5e5e1;
}

.admin-product-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-name-input {
    min-width: 220px;
}

.admin-product-table label.btn {
    cursor: pointer;
}

.admin-product-table label.btn.active {
    background: #111;
    color: #fff;
}

.admin-product-table td:first-child {
    min-width: 210px;
}

.admin-product-table td:first-child strong,
.admin-product-table td:first-child small {
    display: block;
}

.admin-product-table td:first-child small {
    color: #999;
    margin-top: 0.2rem;
}

.admin-product-form {
    display: contents;
}

.admin-money-input {
    min-width: 105px;
}

.admin-sizes-input {
    min-width: 190px;
}

.admin-stock-input {
    width: 90px;
}

.admin-product-table .input-group-text {
    background: #f7f7f5;
    border-color: #ddd;
}

.admin-product-table .form-control {
    border-color: #ddd;
}

.admin-product-table .form-control:focus {
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}
