:root {
    --shop-ink: #14211e;
    --shop-muted: #60706a;
    --shop-teal: #075b57;
    --shop-teal-dark: #063f3d;
    --shop-teal-soft: #e9f2ef;
    --shop-gold: #c68522;
    --shop-paper: #fcfaf5;
    --shop-card: #ffffff;
    --shop-line: #d7e1dd;
    --shop-shadow: 0 16px 42px rgba(17, 46, 42, .08);
}

html { scroll-behavior: smooth; }

body {
    background:
        radial-gradient(circle at 8% -4%, rgba(198, 133, 34, .08), transparent 25rem),
        var(--shop-paper);
    color: var(--shop-ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body > .promo {
    background: var(--shop-teal-dark);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    padding: 8px 24px;
    text-align: center;
    text-transform: uppercase;
}

body > .topbar {
    align-items: center;
    background: rgba(252, 250, 245, .96);
    border-bottom: 1px solid rgba(7, 91, 87, .15);
    box-shadow: 0 8px 28px rgba(17, 46, 42, .06);
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(250px, 1fr) auto auto auto;
    min-height: 82px;
    padding: 13px clamp(18px, 4vw, 68px);
    position: sticky;
    top: 0;
    z-index: 110;
}

body > .topbar .brand-group {
    align-items: center;
    display: flex;
    min-width: 0;
}

body > .topbar .site-brand { display: none; }

body > .topbar .shop-brand {
    border: 0;
    margin: 0;
    padding: 0;
}

body > .topbar .shop-brand img {
    display: block;
    height: auto;
    max-height: 56px;
    max-width: min(360px, 38vw);
    object-fit: contain;
}

body > .topbar .nav {
    align-items: center;
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

body > .topbar .browse-nav {
    align-items: center;
    display: flex;
    gap: 3px;
}

body > .topbar .browse-nav > a,
body > .topbar .browse-nav > details > summary {
    border-radius: 999px;
    color: var(--shop-ink);
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    list-style: none;
    padding: 9px 11px;
    text-decoration: none;
}

body > .topbar .browse-nav > details > summary::-webkit-details-marker { display: none; }
body > .topbar .browse-nav > details > summary::after { content: "⌄"; margin-left: 6px; }
body > .topbar .browse-nav > a:hover,
body > .topbar .browse-nav > details > summary:hover { background: var(--shop-teal-soft); }

body > .topbar .browse-nav details { position: relative; }
body > .topbar .browse-menu {
    background: #fff;
    border: 1px solid var(--shop-line);
    border-radius: 14px;
    box-shadow: var(--shop-shadow);
    display: grid;
    gap: 4px;
    left: 0;
    min-width: 235px;
    padding: 10px;
    position: absolute;
    top: calc(100% + 8px);
}

body > .topbar .browse-menu a {
    border-radius: 8px;
    color: #2b3d37;
    font-size: 12px;
    font-weight: 700;
    padding: 9px 10px;
    text-decoration: none;
}

body > .topbar .browse-menu a:hover {
    background: var(--shop-teal-soft);
    color: var(--shop-teal);
}

body > .topbar .nav a,
body > .topbar .mobile-nav summary {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--shop-teal-dark);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 6px;
    justify-content: center;
    letter-spacing: .02em;
    min-height: 39px;
    padding: 8px 12px;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

body > .topbar .nav a:hover,
body > .topbar .mobile-nav summary:hover {
    background: var(--shop-teal-soft);
    border-color: #c6d9d3;
}

body > .topbar .nav .cart-link {
    border-color: #c6d9d3;
}

body > .topbar .nav .cart-link[href*="cart"] {
    background: var(--shop-teal);
    border-color: var(--shop-teal);
    color: #fff;
}

body > .topbar .cart-count,
body > .topbar .count {
    align-items: center;
    background: var(--shop-gold);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 10px;
    font-weight: 900;
    justify-content: center;
    min-height: 19px;
    min-width: 19px;
    padding: 1px 5px;
}

body > .topbar .shop-preferences {
    align-items: center;
    display: flex;
    gap: 6px;
}

body > .topbar .shop-preferences select,
body > .topbar .shop-preferences button {
    border-radius: 999px;
    min-height: 38px;
}

body > main {
    margin-inline: auto;
    max-width: 1540px;
    padding: clamp(22px, 3vw, 48px) clamp(14px, 3.5vw, 54px) 70px;
}

h1, h2, h3,
.hero h1,
.category-intro h1,
.quick-title {
    color: var(--shop-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: -.025em;
}

.hero {
    background: var(--shop-teal-dark);
    border: 1px solid rgba(7, 91, 87, .18);
    border-radius: 22px;
    box-shadow: var(--shop-shadow);
    color: #fff;
    overflow: hidden;
}

.hero .hero-copy { padding: clamp(32px, 5vw, 74px); }
.hero .hero-copy h1 { color: #fff; font-size: clamp(38px, 5vw, 72px); line-height: .98; }
.hero .lead { color: rgba(255,255,255,.8); font-size: 17px; max-width: 620px; }
.hero .hero-media { background: #0a3433; }
.hero .hero-media a { overflow: hidden; }
.hero .hero-media img { transition: transform .5s ease; }
.hero .hero-media a:hover img { transform: scale(1.025); }

.shipping-callout {
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;
    color: #fff;
}

.collections {
    gap: 10px;
    margin-block: 22px;
}

.collection {
    background: var(--shop-card);
    border: 1px solid var(--shop-line);
    border-radius: 13px;
    box-shadow: 0 6px 20px rgba(17,46,42,.035);
    min-height: 74px;
    padding: 13px 16px;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.collection:hover {
    border-color: #9dbbb2;
    box-shadow: 0 10px 25px rgba(17,46,42,.08);
    transform: translateY(-2px);
}

.collection-title { color: var(--shop-ink); font-size: 12px; }
.collection-count { color: var(--shop-muted); }

.search {
    background: var(--shop-card);
    border: 1px solid var(--shop-line);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(17,46,42,.05);
    gap: 9px;
    margin-block: 22px;
    padding: 10px;
}

input, select, textarea {
    border-color: #bfd0ca;
    border-radius: 9px;
}

button,
.primary,
a.primary,
.request,
.checkout-button {
    border-radius: 9px;
}

.search input,
.search select,
.search button { min-height: 46px; }

.search button,
button.primary,
a.primary {
    background: var(--shop-teal);
    color: #fff;
}

.layout { gap: 22px; }

.filters,
.panel,
.category-intro,
.notice,
.error,
.empty,
.summary,
.cart-item,
.account-card,
.order-card {
    background: var(--shop-card);
    border: 1px solid var(--shop-line);
    border-radius: 15px;
    box-shadow: 0 8px 28px rgba(17,46,42,.045);
}

.filters { padding: 17px; }
.filters > h2,
.filters > summary {
    color: var(--shop-ink);
    font-size: 13px;
    letter-spacing: .08em;
}

.filters a {
    border-radius: 8px;
    color: #31423c;
    padding: 9px 10px;
}

.filters a.active {
    background: var(--shop-teal-soft);
    color: var(--shop-teal);
}

.products { gap: 18px; }

.card {
    background: var(--shop-card);
    border: 1px solid var(--shop-line);
    border-radius: 15px;
    box-shadow: 0 7px 24px rgba(17,46,42,.045);
    min-width: 0;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}

.card:hover {
    box-shadow: 0 15px 34px rgba(17,46,42,.1);
    transform: translateY(-3px);
}

.card .image,
.card-image {
    background: #edf2f0;
    overflow: hidden;
}

.card .image img,
.card-image img {
    transition: transform .45s ease;
}

.card:hover .image img,
.card:hover .card-image img { transform: scale(1.025); }

.card-body { padding: 15px; }
.card-title {
    font-size: 15px;
    line-height: 1.25;
    margin-bottom: 9px;
}

.price { color: var(--shop-teal-dark); font-size: 16px; }

.card-actions {
    border-top: 1px solid #e5ece9;
    gap: 7px;
    padding-top: 12px;
}

.icon-action {
    border-radius: 9px;
    min-height: 41px;
}

.icon-action.primary,
.icon-action[data-cart-action] {
    background: var(--shop-teal);
    border-color: var(--shop-teal);
    color: #fff;
}

.panel { padding: clamp(16px, 2.5vw, 30px); }
.gallery-main { background: #f1f4f2; border-radius: 13px; overflow: hidden; }
.thumb { border-radius: 9px; }
.detail-grid { gap: clamp(20px, 4vw, 54px); }

.purchase-actions {
    background: #f3f7f5;
    border: 1px solid #dce7e3;
    border-radius: 13px;
    padding: 12px;
}

.offer-box[open] {
    background: var(--shop-teal-soft);
    border-radius: 12px;
    padding: 12px;
}

.notice.added {
    background: #e5f4ea;
    border-color: #a9d2b6;
    color: #17552d;
}

.category-intro { padding: 25px 28px; }
.category-intro h1 { font-size: clamp(34px, 4vw, 56px); }

.mobile-nav { display: none; }

@media (max-width: 980px) {
    body > .topbar {
        gap: 12px;
        grid-template-columns: 1fr auto;
        min-height: 72px;
        padding: 10px 16px;
    }
    body > .topbar .shop-brand img { max-height: 44px; max-width: 260px; }
    body > .topbar .browse-nav { display: none; }
    body > .topbar .shop-preferences { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 700px) {
    body > .promo {
        font-size: 9px;
        letter-spacing: .07em;
        padding: 7px 10px;
    }
    body > .topbar {
        align-items: center;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 62px;
        padding: 8px 11px;
    }
    body > .topbar .brand-group { width: auto; }
    body > .topbar .shop-brand img {
        height: auto;
        max-height: 38px;
        max-width: min(235px, 60vw);
    }
    body > .topbar .nav {
        display: flex;
        gap: 4px;
        width: auto;
    }
    body > .topbar .nav a {
        background: var(--shop-teal-soft);
        border: 1px solid #d4e2dd;
        font-size: 0;
        min-height: 38px;
        min-width: 38px;
        padding: 6px;
    }
    body > .topbar .nav a::before {
        content: "•";
        font-size: 17px;
    }
    body > .topbar .nav a[href*="saved"]::before { content: "♥"; }
    body > .topbar .nav a[href*="cart"]::before { content: "🛒"; font-size: 15px; }
    body > .topbar .nav a[href*="login"]::before,
    body > .topbar .nav a[href*="account"]::before { content: "♙"; }
    body > .topbar .nav a[href*="register"],
    body > .topbar .nav a[href*="order_status"],
    body > .topbar .nav a[href*="storefront"] { display: none; }
    body > .topbar .nav .cart-count,
    body > .topbar .nav .count { font-size: 9px; }
    body > .topbar .shop-preferences {
        display: none;
        grid-column: auto;
    }
    body > .topbar .mobile-nav { display: block; }
    body > .topbar .mobile-nav summary {
        font-size: 0;
        min-height: 38px;
        min-width: 38px;
        padding: 7px;
    }
    body > .topbar .mobile-nav summary::after {
        content: "☰";
        font-size: 20px;
    }
    body > .topbar .mobile-nav[open] .mobile-nav-links {
        background: #fff;
        border: 1px solid var(--shop-line);
        border-radius: 13px;
        box-shadow: var(--shop-shadow);
        display: grid;
        gap: 4px;
        padding: 10px;
        position: absolute;
        right: 10px;
        top: 58px;
        width: min(260px, calc(100vw - 20px));
    }
    body > .topbar .mobile-nav-links a {
        border-radius: 8px;
        color: var(--shop-teal-dark);
        font-weight: 750;
        padding: 10px;
        text-decoration: none;
    }
    body > main { padding: 16px 10px 70px; }
    .hero { border-radius: 16px; }
    .hero .hero-copy { padding: 28px 21px; }
    .hero .hero-copy h1 { font-size: 38px; }
    .hero .lead { font-size: 15px; }
    .collections { margin-block: 14px; }
    .collection { flex-basis: 142px; min-height: 66px; }
    .search { border-radius: 13px; margin-block: 14px; padding: 8px; }
    .products { gap: 12px; }
    .card { border-radius: 13px; }
    .card:hover { transform: none; }
    .panel { border-radius: 13px; padding: 13px; }
}
