html { scroll-padding-top: 6rem; }
body { padding-bottom: 0; }
.container { --bs-gutter-x: 2rem; max-width: 1320px; }

/* Header */
.announce { background: var(--ink); color: #fff; font-size: .86rem; text-align: center; padding: .45rem 1rem; }
.site-header { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 1.25rem; padding: .8rem 0; }
.search { flex: 1; max-width: 620px; margin: 0 auto; position: relative; }
.search input { background: var(--tile); border: 1px solid transparent; border-radius: 999px; padding: .6rem 3rem .6rem 1.2rem; }
.search input:focus { background: #fff; }
.search button { position: absolute; right: .3rem; top: 50%; translate: 0 -50%; border: 0; background: none; width: 2.5rem; height: 2.3rem; color: var(--ink); }
.icon-link { position: relative; display: inline-flex; flex-direction: column; align-items: center; font-size: .74rem; font-weight: 600; color: var(--ink); line-height: 1.2; border: 0; background: none; padding: 0; white-space: nowrap; }
.icon-link i { font-size: 1.35rem; }
.icon-link .dot { position: absolute; top: -.25rem; left: calc(50% + .3rem); background: var(--red); color: #fff; border-radius: 999px; min-width: 1.15rem; padding: 0 .3rem; font-size: .7rem; text-align: center; line-height: 1.15rem; }

.cat-nav { border-top: 1px solid var(--line); }
.cat-nav > .container { display: flex; gap: .25rem; position: relative; flex-wrap: wrap; }
.cat-nav .root > a, .cat-nav .root > button { display: block; padding: .65rem .8rem; font-weight: 600; font-size: .93rem; color: var(--ink); border: 0; background: none; border-bottom: 2px solid transparent; }
.cat-nav .root:hover > a, .cat-nav .root:focus-within > a, .cat-nav .root > a.active { border-bottom-color: var(--red); }
.cat-nav .root:first-child > a { margin-left: -.8rem; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .25); padding: 1.5rem 2rem; display: none; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.5rem; max-height: 70vh; overflow: auto; margin: 0 1rem; }
.root:hover > .mega, .root:focus-within > .mega { display: grid; }
.mega a.h { font-weight: 700; display: block; margin-bottom: .35rem; }
.mega ul { list-style: none; padding: 0; margin: 0; }
.mega li a { display: block; padding: .18rem 0; color: var(--ink-2); font-size: .92rem; }
.mega li a:hover { color: var(--red); }

/* Mobile category drawer */
.tree details > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); cursor: pointer; font-weight: 600; }
.tree summary::-webkit-details-marker { display: none; }
.tree summary i { transition: rotate .15s; }
.tree details[open] > summary i.bi-chevron-down { rotate: 180deg; }
.tree .leaf { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.tree .sub { padding-left: 1rem; }
.tree .sub .leaf, .tree .sub summary { font-weight: 500; }

/* Hero */
.hero { border-radius: 1.1rem; overflow: hidden; }
.bnr { position: relative; min-height: clamp(300px, 36vw, 460px); padding: clamp(1.75rem, 5vw, 4.5rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; overflow: hidden; isolation: isolate; }
.bnr h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.04; max-width: 13ch; }
.bnr p { font-size: clamp(1rem, 1.4vw, 1.2rem); max-width: 42ch; margin-bottom: 1.6rem; }
.bnr > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.bnr.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .68), rgba(0, 0, 0, .12) 75%); z-index: -1; }
.bnr:not(.has-img)::after { content: "X"; position: absolute; right: -2%; top: 50%; translate: 0 -52%; font-weight: 800; font-size: clamp(18rem, 48vw, 44rem); line-height: .7; z-index: -1; color: var(--x); }
.t-ink { background: var(--ink); color: #fff; --x: #d9211c; }
.t-red { background: var(--red); color: #fff; --x: #b51813; }
.t-sand { background: var(--sand); color: var(--ink); --x: #dfd3c1; }
.t-sky { background: #dfeaf3; color: var(--ink); --x: #c8dbea; }
.carousel-indicators { justify-content: flex-start; margin: 0 clamp(1.75rem, 5vw, 4.5rem) 1.1rem; }
.carousel-indicators [data-bs-target] { width: 26px; height: 4px; border: 0; border-radius: 4px; background-color: #9b989f; }
.promo { border-radius: var(--radius); }
.promo .bnr { min-height: 210px; padding: 1.75rem 2rem; border-radius: var(--radius); height: 100%; }
.promo .bnr h2 { font-size: 1.6rem; max-width: 16ch; }
.promo .bnr::after { font-size: 19rem !important; }
.promo .bnr p { margin-bottom: 1rem; }

/* Sections */
.section { margin-top: clamp(2.25rem, 4vw, 3.5rem); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.1rem; }
.section-head h2 { font-size: clamp(1.3rem, 2vw, 1.65rem); margin: 0; }
.section-head a { font-weight: 600; white-space: nowrap; }
.cat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .9rem; }
.cat-tile { text-align: center; font-weight: 600; font-size: .92rem; line-height: 1.25; }
.cat-tile .img-tile { margin-bottom: .5rem; color: var(--ink); transition: background .15s; }
.cat-tile:hover .img-tile { background: var(--sand); }

.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.6rem 1.1rem; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.p-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.p-card .img-tile { margin-bottom: .65rem; }
.home .p-card .img-tile { border: 1px solid #d9d7d4; }
.p-card .img-tile img { transition: scale .3s; }
.p-card:hover .img-tile img { scale: 1.04; }
.p-card .brand { font-size: .78rem; color: var(--ink-3); }
.p-card .name { font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: .25rem; color: var(--ink); }
.p-card .name::after { content: ""; position: absolute; inset: 0; }
.p-card form { position: relative; z-index: 1; margin-top: auto; padding-top: .6rem; }
.flag { z-index: 1; position: absolute; top: .6rem; left: .6rem; background: var(--red); color: #fff; font-weight: 700; font-size: .78rem; border-radius: .4rem; padding: .12rem .45rem; }
.flag.out { background: var(--ink-2); }
.price { font-weight: 700; font-size: 1.08rem; }
.price.sale { color: var(--red); }
.was { color: var(--ink-3); text-decoration: line-through; font-size: .88rem; margin-left: .35rem; }
.stars { color: #d98a00; white-space: nowrap; font-size: .82rem; }
.stars small { color: var(--ink-3); }

.assure { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.25rem; border-block: 1px solid var(--line); padding: 1.5rem 0; }
.assure div { display: flex; gap: .85rem; align-items: center; line-height: 1.3; }
.assure i { font-size: 1.6rem; color: var(--red); }
.assure small { color: var(--ink-2); display: block; }

/* Listing */
.listing { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; align-items: start; }
.filters h3 { font-size: .95rem; margin: 1.4rem 0 .5rem; }
.filters .form-check { margin-bottom: .2rem; }
.filters .scroll { max-height: 210px; overflow: auto; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: .3rem .85rem; font-weight: 600; font-size: .9rem; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.breadcrumb { font-size: .88rem; margin: 1.1rem 0 .6rem; --bs-breadcrumb-divider-color: var(--ink-3); }
.breadcrumb a { color: var(--ink-2); }

/* Product */
.gallery .main { aspect-ratio: 1; }
.gallery .thumbs { display: flex; gap: .6rem; margin-top: .7rem; overflow-x: auto; padding: 2px; }
.gallery .thumbs button { border: 0; padding: 0; width: 72px; flex: none; border-radius: .5rem; background: none; }
.gallery .thumbs button.on { box-shadow: 0 0 0 2px var(--ink); }
.gallery .thumbs .img-tile { border-radius: .5rem; }
.opt { display: inline-block; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid #bcb9b5; border-radius: .5rem; padding: .4rem .85rem; font-weight: 600; cursor: pointer; min-width: 2.8rem; justify-content: center; }
.opt input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.opt.off span { color: var(--ink-3); border-style: dashed; text-decoration: line-through; }
.swatch { width: 1rem; height: 1rem; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); }
.stepper { display: inline-flex; border: 1px solid #bcb9b5; border-radius: .55rem; overflow: hidden; background: #fff; }
.stepper button { border: 0; background: none; width: 2.5rem; font-size: 1.1rem; }
.stepper input { width: 3rem; border: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { display: none; }
.spec td, .spec th { padding: .55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 38%; font-weight: 500; color: var(--ink-2); padding-right: 1rem; }

.zoom { display: block; width: 100%; border: 0; padding: 0; background: none; border-radius: var(--radius); cursor: zoom-in; position: relative; }
.zoom .hint { position: absolute; right: .8rem; bottom: .8rem; z-index: 1; background: #fff; color: var(--ink); width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.viewer .modal-content { background: rgba(20, 20, 22, .96); border: 0; }
.viewer .modal-body { display: grid; place-items: center; padding: 1rem; height: 100%; min-height: 0; overflow: hidden; }
.viewer .modal-body img { max-width: 100%; max-height: calc(100dvh - 2rem); object-fit: contain; }
.viewer .ctl { position: absolute; z-index: 2; width: 3rem; height: 3rem; border-radius: 50%; border: 0; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 1.15rem; }
.viewer .close { top: 1rem; right: 1rem; }
.viewer .prev { left: 1rem; top: calc(50% - 1.5rem); }
.viewer .next { right: 1rem; top: calc(50% - 1.5rem); }
.viewer .count { position: absolute; z-index: 2; left: 1.2rem; top: 1.3rem; color: #fff; }

/* Panels */
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.panel h2 { font-size: 1.1rem; }
.panel-tint { background: var(--tile); border-color: var(--tile); }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; padding: .28rem 0; }
.sum-row.total { font-weight: 700; font-size: 1.2rem; border-top: 1px solid #d8d5d0; margin-top: .5rem; padding-top: .75rem; }
.line-item { display: grid; grid-template-columns: 88px 1fr auto; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.mini-item { display: grid; grid-template-columns: 52px 1fr auto; gap: .8rem; align-items: center; padding: .4rem 0; font-size: .93rem; }
.mini-item .img-tile { border-radius: .45rem; }
.pay-opt { display: flex; gap: .9rem; align-items: center; border: 1px solid var(--line); border-radius: .6rem; padding: .9rem 1rem; cursor: pointer; margin-bottom: .6rem; }
.pay-opt:has(:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

.progress-steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; list-style: none; padding: 0; margin: 0; }
.progress-steps li { text-align: center; position: relative; font-size: .88rem; color: var(--ink-3); font-weight: 500; }
.progress-steps li i { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin: 0 auto .4rem; border-radius: 50%; background: var(--tile); color: var(--ink-3); position: relative; z-index: 1; font-size: 1.05rem; }
.progress-steps li + li::before { content: ""; position: absolute; top: 1.2rem; right: 50%; width: 100%; height: 3px; background: var(--tile); }
.progress-steps li.on { color: var(--ink); font-weight: 600; }
.progress-steps li.on i { background: var(--ink); color: #fff; }
.progress-steps li.on + li.on::before, .progress-steps li.on::before { background: var(--ink); }
.progress-steps li.now i { background: var(--red); }

.account { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: start; }
.account nav a { display: flex; gap: .7rem; padding: .6rem .8rem; border-radius: .55rem; font-weight: 600; }
.account nav a.active { background: var(--tile); }

.auth-card { max-width: 440px; margin: 3rem auto; }

/* Footer */
.site-footer { background: var(--ink); color: #cfcdd1; margin-top: clamp(3rem, 6vw, 5rem); padding: 3rem 0 1.5rem; font-size: .94rem; }
.site-footer .wordmark { color: #fff; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer a { color: #cfcdd1; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { padding: .2rem 0; }
.site-footer.has-wa { padding-bottom: 5.5rem; }
.site-credit { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid #48474c; font-size: .88rem; }
.site-credit .powered { margin-left: auto; }
.site-credit a { color: #fff; font-weight: 600; }
.site-credit a:hover { text-decoration: underline; }
.wa { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 1020; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: #1da851; color: #fff; display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .45); }
.wa:hover { color: #fff; }
.tabbar { display: none; }

@media (max-width: 1199.98px) { .grid.row5 > :nth-child(5):last-child { display: none; } .grid, .grid.four { grid-template-columns: repeat(4, 1fr); } .listing .grid.four { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991.98px) {
    .container { --bs-gutter-x: 2rem; }
    .site-header .bar { flex-wrap: wrap; gap: .6rem 1rem; }
    .search { order: 5; flex-basis: 100%; max-width: none; }
    .grid, .grid.four, .listing .grid.four { grid-template-columns: repeat(3, 1fr); }
    .buy-bar { flex-wrap: nowrap !important; }
    .buy-bar .btn { --bs-btn-padding-x: .4rem; --bs-btn-font-size: .95rem; --bs-btn-padding-y: .65rem; white-space: nowrap; }
    .buy-bar .stepper button { width: 1.9rem; }
    .buy-bar .stepper input { width: 2.2rem; }
    .listing, .account { display: block; }
    .account nav { display: flex; overflow-x: auto; margin-bottom: 1.25rem; gap: .25rem; }
    .account nav a { white-space: nowrap; }
    body { padding-bottom: 4rem; }
    .tabbar { position: fixed; inset: auto 0 0; z-index: 1030; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-top: 1px solid var(--line); padding: .45rem 0 calc(.45rem + env(safe-area-inset-bottom)); }
    .wa { bottom: 5rem; }
    .hero .bnr:not(.has-img)::after { right: -42%; }
    .buy-bar { position: sticky; bottom: 3.9rem; background: #fff; padding: .7rem 0; z-index: 5; }
}
@media (max-width: 575.98px) {
    .grid, .grid.four, .listing .grid.four { grid-template-columns: repeat(2, 1fr); gap: 1.3rem .8rem; }
    .cat-row { grid-template-columns: repeat(4, 1fr); gap: .7rem .6rem; }
    .cat-tile { font-size: .78rem; }
    .line-item { grid-template-columns: 72px 1fr; }
    .line-item > :last-child { grid-column: 2; text-align: left !important; }
    .progress-steps li { font-size: .72rem; }
    .section-head { flex-wrap: wrap; }
}
