/* ============================================================
   Eternal Publication — design system (corporate / curriculum publisher)
   Logo colours: red #EC1F25, sky #00ADEF.
   Used here as: deep publishing-blue primary + red CTA accent.
   ============================================================ */
:root {
    --navy: #0B3A66;
    --navy-d: #082b4d;
    --navy-l: #14538f;
    --blue: #00ADEF;
    --blue-d: #0d8ec2;
    --red: #EC1F25;
    --red-d: #cf1219;
    --ink: #16202e;
    --slate: #566071;
    --slate-l: #7b8696;
    --bg: #ffffff;
    --bg-alt: #f3f7fb;
    --bg-soft: #eef3f9;
    --line: #e2e8f0;
    --line-d: #cfd8e3;
    --cbse: #1f7a4d;
    --cbse-bg: #e7f5ee;
    --icse: #1f5fae;
    --icse-bg: #e8f0fb;
    --state: #b06a14;
    --state-bg: #fbf0e0;
    --shadow: 0 18px 40px -24px rgba(11, 58, 102, .30);
    --shadow-sm: 0 8px 20px -14px rgba(11, 58, 102, .28);
    --maxw: 1200px;
    --r: 10px;
    --serif: "Source Serif 4", Georgia, serif;
    --sans: "Inter", system-ui, -apple-system, sans-serif;



    --card: #FBF8F1;
    --line: rgba(22, 39, 31, .14);
    --line-2: rgba(22, 39, 31, .08);
    --radius-lg: 22px;
    --forest: var(--navy,#2F4A38);
    --paper: #e7e8f6;
    --paper-2: #cacbdd;
    --display: var(--serif, "Fraunces", Georgia, "Times New Roman", serif);
    --ink-55: rgba(22, 39, 31, .55);
    --ink-70: rgba(22, 39, 31, .72);
    --leaf: var(--paper,#aebfd0);
    --ease: cubic-bezier(.22, .61, .36, 1);
    --gold-deep: #A87E27;
    --leaf-deep: var(--navy,#6E8C38);
    --moss: #5E7A5A;
     --radius: 14px;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden
}

h1,
h2,
h3,
h4 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.18;
    margin: 0;
    color: var(--ink);
    letter-spacing: -.01em
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%;
    display: block
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px
}

.muted {
    color: var(--slate)
}

.center {
    text-align: center
}

.eyebrow {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--navy-l);
    display: inline-block
}

.eyebrow.red {
    color: var(--red)
}

.eyebrow.white {
    /* color: #cfe6f7 */
}

.pill {
    display: inline-block;
    background: var(--bg-soft);
    color: var(--navy);
    font-family: var(--sans);
    font-weight: 600;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 4px;
    letter-spacing: .03em
}

/* buttons (corporate, small radius) */
.btn {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 6px;
    cursor: pointer;
    border: 1.5px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: .18s;
    text-align: center;
    letter-spacing: .01em
}

.btn-red {
    background: var(--red);
    color: #fff
}

.btn-red:hover {
    background: var(--red-d)
}

.btn-navy {
    background: var(--navy);
    color: #fff
}

.btn-navy:hover {
    background: var(--navy-d)
}

.btn-ghost {
    background: #fff;
    border-color: var(--line-d);
    color: var(--navy)
}

.btn-ghost:hover {
    border-color: var(--navy);
    background: var(--bg-alt)
}

.btn-grey {
    background: var(--bg);
    border: 1px solid var(--slate);
    color: var(--slate);
    transition: all 0.25s ease;
}

.btn-grey:hover,
.btn-grey:focus {
    background: var(--slate);
    border-color: var(--slate);
    color: #fff;
}

.btn-grey:active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--navy)
}

.btn-light:hover {
    background: var(--bg-alt)
}

.btn-sm {
    padding: 9px 14px;
    font-size: 13.5px
}

.btn-block {
    width: 100%
}

.btn[disabled] {
    opacity: .5;
    cursor: not-allowed
}

/* ---------- Top utility bar ---------- */
.topbar {
    background: var(--navy-d);
    color: #cfe0ef;
    font-size: 13px
}

.topbar .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    gap: 18px
}

.topbar a {
    color: #cfe0ef;
    transition: .15s
}

.topbar a:hover {
    color: #fff
}

.topbar .tb-left {
    display: flex;
    gap: 20px;
    align-items: center
}

.topbar .tb-right {
    display: flex;
    gap: 18px;
    align-items: center
}

.topbar .tb-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 500
}

.topbar svg {
    width: 14px;
    height: 14px;
    opacity: .8
}

.topbar .sep {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, .2)
}

@media(max-width:760px) {
    .topbar .tb-left .tb-item:not(:first-child) {
        display: none
    }

    .topbar .tb-right .label-only {
        display: none
    }
}

/* ---------- Header ---------- */
header.site {
    position: sticky;
    top: 0;
    z-index: 60;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(11, 58, 102, .02)
}

header.site .bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
    gap: 22px
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0
}

.brand img {
    height: 54px;
    width: auto
}

nav.primary {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-left: 34px;
    margin-right: auto
}

nav.primary a {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    position: relative;
    padding: 30px 0;
    letter-spacing: .01em
}

nav.primary a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 3px;
    width: 0;
    background: var(--red);
    transition: width .22s ease
}

nav.primary a:hover,
nav.primary a.active {
    color: var(--navy)
}

nav.primary a:hover::after,
nav.primary a.active::after {
    width: 100%
}

.head-actions {
    display: flex;
    align-items: center;
    gap: 8px
}

.icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 600;
    font-size: 14px;
    padding: 9px 12px;
    border-radius: 6px;
    transition: .15s
}

.icon-link:hover {
    color: var(--navy);
    background: var(--bg-alt)
}

.icon-link svg {
    width: 22px;
    height: 22px
}

.cart-count {
    position: absolute;
    top: 0;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 20px;
    background: var(--red);
    color: #fff;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1
}

.cart-count.zero {
    display: none
}

.menu-btn {
    display: none;
    background: none;
    border: 0;
    color: var(--navy);
    cursor: pointer;
    padding: 8px
}

/* ---------- Page banner (interior pages) ---------- */
.page-banner {
    background: var(--navy);
    color: #fff;
    padding: 46px 0;
    position: relative;
    overflow: hidden
}

.page-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(80% 120% at 100% 0, rgba(0, 173, 239, .18), transparent 60%);
    pointer-events: none
}

.page-banner .wrap {
    position: relative;
    z-index: 1
}

.page-banner h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 600
}

.page-banner p {
    color: #cfe0ef;
    max-width: 640px;
    margin: 12px 0 0;
    font-size: 1.05rem
}

.breadcrumb {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 13px;
    color: #a9c4dd;
    margin-bottom: 14px
}

.breadcrumb a:hover {
    color: #fff
}

.breadcrumb .sep {
    opacity: .5;
    margin: 0 8px
}

/* ---------- Sections ---------- */
section {
    padding: 74px 0
}

.section-head {
    max-width: 680px
}

.section-head.center {
    margin: 0 auto;
    text-align: center
}

.section-head h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    margin-top: 12px;
    font-weight: 600
}

.section-head p {
    color: var(--slate);
    margin-top: 12px;
    font-size: 1.08rem
}

.bg-alt {
    background: var(--bg-alt)
}

/* ---------- Board badges ---------- */
.board-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap
}

.bbadge {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: .04em;
    padding: 3px 7px;
    border-radius: 4px;
    line-height: 1.3
}

.bbadge.cbse {
    color: var(--cbse);
    background: var(--cbse-bg)
}

.bbadge.icse {
    color: var(--icse);
    background: var(--icse-bg)
}

.bbadge.state {
    color: var(--state);
    background: var(--state-bg)
}

/* ---------- Product grid / cards ---------- */
.shop-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 10px
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px
}

.filter-row .flabel {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--slate);
    min-width: 64px
}

.chip {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--line-d);
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: .15s
}

.chip:hover {
    border-color: var(--navy);
    color: var(--navy)
}

.chip.active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px
}

.product-grid.wide {
    grid-template-columns: repeat(4, 1fr)
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: .2s
}

.card:hover {
    box-shadow: var(--shadow);
    border-color: var(--line-d);
    transform: translateY(-3px)
}

.card .cover-link {
    display: block
}

.cover {
    aspect-ratio: 3/4;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px 13px;
    color: #fff;
    background: #0B3A66;
    border-bottom: 1px solid var(--line)
}

.cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(255, 255, 255, .10), transparent 55%);
    z-index: 1
}

/* .cover.has-image::before {
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.55) 100%);
} */

.cover .cat-tag {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .16);
    padding: 4px 9px;
    border-radius: 4px;
    align-self: flex-start;
    position: relative;
    z-index: 2
}

.cover .seal {
    position: absolute;
    right: 10px;
    top: 11px;
    width: 24px;
    height: 24px;
    opacity: .55;
    z-index: 2
}

.cover .ph-spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 7px;
    background: rgba(0, 0, 0, .18);
    z-index: 2
}

.cover .ph-title {
    position: relative;
    z-index: 2;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.04rem;
    line-height: 1.16;
    color: #fff
}

.cover .ph-pub {
    position: relative;
    z-index: 2;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 8px;
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: .75;
    margin-top: 4px
}

.cover .ph-badge {
    position: absolute;
    left: 50%;
    top: 62%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    padding: 5px 11px;
    border-radius: 4px;
    white-space: nowrap
}

.cover .cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 3;
    background: #fff
}

.cover .ribbon {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: var(--red);
    color: #fff;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 10px;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 4px;
    z-index: 4
}

.card .body {
    padding: 15px 16px 15px;
    display: flex;
    flex-direction: column;
    flex: 1
}

.card .board-badges {
    margin-bottom: 9px
}

.card .grade {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--navy-l)
}

.card .title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 5px;
    line-height: 1.2;
    color: var(--ink)
}

.card .sub {
    font-size: .86rem;
    color: var(--slate);
    margin-top: 3px
}

.card .price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 13px
}

.card .price {
    font-family: var(--sans);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--ink)
}

.card .mrp {
    font-size: .88rem;
    color: var(--slate-l);
    text-decoration: line-through;
    font-weight: 600
}

.card .actions {
    margin-top: 14px;
    display: flex;
    gap: 8px
}

.card .actions .btn {
    flex: 1
}

/* ---------- Product detail ---------- */
.product {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 48px;
    align-items: start
}

.product .cover {
    aspect-ratio: 3/4;
    border-radius: var(--r);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm)
}

.product .pd-grade {
    margin-top: 4px;
    color: var(--navy-l);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase
}

.product h1 {
    font-size: clamp(1.7rem, 3.6vw, 2.4rem);
    font-weight: 600;
    margin: 12px 0 0
}

.product .pd-sub {
    color: var(--slate);
    font-size: 1.1rem;
    margin-top: 8px
}

.product .pd-boards {
    display: flex;
    gap: 6px;
    margin-top: 14px
}

.product .pd-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 20px 0
}

.product .pd-price .price {
    font-family: var(--sans);
    font-weight: 800;
    font-size: 2rem;
    color: var(--ink)
}

.product .pd-price .mrp {
    font-size: 1.05rem;
    color: var(--slate-l);
    text-decoration: line-through;
    font-weight: 600
}

.product .pd-price .save {
    background: var(--cbse-bg);
    color: var(--cbse);
    font-family: var(--sans);
    font-weight: 700;
    font-size: .82rem;
    padding: 4px 10px;
    border-radius: 4px
}

.product .pd-desc {
    color: var(--slate);
    font-size: 1.04rem;
    line-height: 1.7
}

.qty {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--line-d);
    border-radius: 6px;
    overflow: hidden
}

.qty button {
    width: 40px;
    height: 44px;
    border: 0;
    background: #fff;
    font-size: 18px;
    font-family: var(--sans);
    color: var(--navy);
    cursor: pointer
}

.qty button:hover {
    background: var(--bg-alt)
}

.qty input {
    width: 44px;
    height: 44px;
    border: 0;
    text-align: center;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
    -moz-appearance: textfield
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0
}

.pd-buy {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 22px;
    flex-wrap: wrap
}

.pd-meta {
    margin-top: 26px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

.pd-meta div {
    font-weight: 500;
    color: var(--slate);
    font-size: .95rem
}

.pd-meta b {
    font-family: var(--sans);
    font-weight: 700;
    color: var(--ink);
    display: block;
    font-size: .72rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: 2px
}

.pd-inspect {
    margin-top: 18px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: .92rem;
    color: var(--slate);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap
}

.pd-inspect b {
    color: var(--ink);
    font-family: var(--sans)
}

/* ---------- Cart ---------- */
.cart-layout {
    display: grid;
    grid-template-columns: 1.55fr .85fr;
    gap: 32px;
    align-items: start
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.cart-row {
    display: grid;
    grid-template-columns: 78px 1fr auto;
    gap: 18px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 14px 18px
}

.cart-row .thumb {
    width: 78px;
    aspect-ratio: 3/4;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    background: var(--navy)
}

.cart-row .thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.cart-row .ci-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--ink)
}

.cart-row .ci-sub {
    font-size: .85rem;
    color: var(--slate)
}

.cart-row .ci-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px
}

.cart-row .ci-price {
    font-family: var(--sans);
    font-weight: 800;
    font-size: 1.15rem;
    text-align: right;
    white-space: nowrap
}

.cart-row .remove {
    background: none;
    border: 0;
    color: var(--slate);
    cursor: pointer;
    font-weight: 600;
    font-size: .85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px
}

.cart-row .remove:hover {
    color: var(--red)
}

.summary {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 26px;
    position: sticky;
    top: 108px;
    box-shadow: var(--shadow-sm)
}

.summary h3 {
    font-size: 1.3rem;
    font-weight: 600
}

.summary .line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-weight: 500;
    color: var(--slate)
}

.summary .line.total {
    border-top: 1px solid var(--line);
    margin-top: 8px;
    padding-top: 15px;
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 800;
    font-size: 1.25rem
}

.summary .btn {
    margin-top: 16px
}

.empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--slate)
}

.empty svg {
    width: 64px;
    height: 64px;
    color: var(--line-d);
    margin: 0 auto 16px
}

.empty h3 {
    font-weight: 600;
    font-size: 1.4rem
}

/* ---------- Auth / forms ---------- */
.auth-wrap {
    max-width: 460px;
    margin: 0 auto
}

.card-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    padding: 34px
}

.tabs {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px
}

.tabs button {
    flex: 1;
    border: 0;
    background: #fff;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 14px;
    color: var(--slate);
    padding: 12px;
    cursor: pointer;
    transition: .15s
}

.tabs button.active {
    background: var(--navy);
    color: #fff
}

.field {
    margin-bottom: 16px
}

.field label {
    font-family: var(--sans);
    font-weight: 600;
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--slate);
    display: block;
    margin-bottom: 6px
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border: 1.5px solid var(--line-d);
    border-radius: 6px;
    padding: 12px 14px;
    font-family: var(--sans);
    font-weight: 500;
    font-size: .98rem;
    color: var(--ink);
    background: #fff;
    transition: .15s
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(11, 58, 102, .08)
}

.form-msg {
    font-weight: 600;
    font-size: .92rem;
    margin-top: 4px;
    min-height: 1.2em
}

.form-msg.err {
    color: var(--red)
}

.form-msg.ok {
    color: var(--cbse)
}

.muted-note {
    font-size: .85rem;
    color: var(--slate);
    text-align: center;
    margin-top: 16px
}

/* ---------- Account ---------- */
.account-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 28px;
    align-items: start
}

.acct-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 26px
}

.avatar-lg {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: var(--navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1.4rem
}

.order {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 14px
}

.order .oid {
    font-family: var(--sans);
    font-weight: 700;
    color: var(--ink)
}

.order .ostat {
    display: inline-block;
    background: var(--cbse-bg);
    color: var(--cbse);
    font-family: var(--sans);
    font-weight: 700;
    font-size: .74rem;
    padding: 3px 10px;
    border-radius: 4px;
    margin-left: 8px
}

/* ---------- Toast ---------- */
#toast-host {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 302;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.toast {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--cbse);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 14px 18px;
    font-weight: 600;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 340px;
    animation: toast-in .25s ease
}

.toast svg {
    width: 20px;
    height: 20px;
    color: var(--cbse);
    flex-shrink: 0
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(12px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.toast.error { border-left-color: #dc2626; }
.toast.error svg { color: #dc2626; }

@keyframes toast-out {
    from { opacity: 1; transform: none; }
    to { opacity: 0; transform: translateY(12px); }
}

/* ---------- Footer ---------- */
footer.site {
    background: var(--navy-d);
    color: #aebfd0
}

.footer-top-rule {
    height: 4px;
    background: var(--red)
}

footer.site .top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding: 56px 0 40px
}

footer.site .brand {
    background: #fff;
    border-radius: 8px;
    padding: 12px 14px;
    display: inline-flex;
    width: max-content
}

footer.site .brand img {
    height: 54px
}

footer.site p.blurb {
    margin-top: 18px;
    font-weight: 400;
    max-width: 320px;
    font-size: .95rem;
    color: #9fb2c6;
    line-height: 1.6
}

footer.site h4 {
    font-family: var(--sans);
    font-weight: 700;
    color: #fff;
    font-size: .85rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 16px
}

footer.site ul {
    list-style: none;
    padding: 0;
    margin: 0
}

footer.site ul li {
    margin-bottom: 10px;
    font-weight: 400;
    font-size: .95rem
}

footer.site ul li a {
    color: #aebfd0
}

footer.site ul li a:hover {
    color: #fff
}

footer.site .bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-weight: 400;
    font-size: .86rem;
    color: #8ea4ba
}

/* ---------- Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s ease, transform .5s ease
}

.reveal.in {
    opacity: 1;
    transform: none
}

/* ---------- Helpers ---------- */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center
}

/* ---------- Responsive ---------- */
@media(max-width:980px) {

    .product-grid,
    .product-grid.wide {
        grid-template-columns: repeat(3, 1fr)
    }

    .product {
        grid-template-columns: 1fr;
        gap: 30px
    }

    .product .cover {
        max-width: 320px
    }

    .cart-layout {
        grid-template-columns: 1fr
    }

    .summary {
        position: static
    }

    .account-grid,
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 30px
    }

    footer.site .top {
        grid-template-columns: 1fr 1fr
    }

    nav.primary {
        margin-left: 18px;
        gap: 20px
    }
}

@media(max-width:820px) {
    nav.primary {
        display: none
    }

    .menu-btn {
        display: block;
        order: 3
    }

    nav.primary.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 84px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 10px 28px 18px;
        gap: 0;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        margin: 0;
        z-index: 55
    }

    nav.primary.open a {
        padding: 14px 0;
        font-size: 16px;
        border-bottom: 1px solid var(--line)
    }

    nav.primary.open a::after {
        display: none
    }
}

@media(max-width:680px) {

    .product-grid,
    .product-grid.wide {
        grid-template-columns: repeat(2, 1fr)
    }

    .cart-row {
        grid-template-columns: 60px 1fr;
        grid-template-areas: 't i''t p'
    }

    .cart-row .thumb {
        grid-area: t
    }

    .cart-row .ci-main {
        grid-area: i
    }

    .cart-row .ci-price {
        grid-area: p;
        text-align: left
    }

    footer.site .top {
        grid-template-columns: 1fr
    }

    section {
        padding: 54px 0
    }

    .icon-link .lbl {
        display: none
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important
    }

    .reveal {
        opacity: 1;
        transform: none
    }

    html {
        scroll-behavior: auto
    }
}