/* ===== GLOBAL VARIABLES ===== */
:root {
    --ink: #0d0d0e;
    --graphite: #151415;
    --graphite-soft: #1e1c1d;
    --platinum: #e7d9da;
    --platinum-light: #f3ecec;
    --paper: #faf7f7;
    --white: #ffffff;
    --cobalt: #a10f1f;
    --cobalt-bright: #d81324;
    --red-deep: #7a0b17;
    --verified: #d81324;
    --line: #ece4e4;
    --line-dark: #332a2b;
    --muted: #7a7274;
    --green: #1a8a4a;

    --display: 'Space Grotesk', sans-serif;
    --body: 'Inter', sans-serif;
    --mono: 'JetBrains Mono', monospace;

    --container: 1240px;
    --radius: 14px;
}

/* ===== RESET & BASE ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: var(--body);
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    padding-bottom: 64px;
}
img {
    max-width: 100%;
    display: block;
}
a {
    color: inherit;
    text-decoration: none;
}
ul {
    list-style: none;
}
button {
    font-family: inherit;
    cursor: pointer;
}
.wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}
.eyebrow {
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.eyebrow::before {
    content: "";
    width: 16px;
    height: 1px;
    background: var(--muted);
}
h1,
h2,
h3,
h4 {
    font-family: var(--display);
    line-height: 1.05;
    letter-spacing: -0.01em;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14.5px;
    border: 1px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    white-space: nowrap;
}
.btn-primary {
    background: var(--ink);
    color: var(--white);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(11, 13, 16, .25);
}
.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-dark);
}
.btn-line-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, .3);
}
.btn-white {
    background: var(--white);
    color: var(--ink);
}
.btn-sm {
    padding: 10px 18px;
    font-size: 13px;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    padding: 12px 0 4px;
    flex-wrap: wrap;
}
.breadcrumbs a {
    color: var(--cobalt-bright);
    font-weight: 500;
    transition: color .18s;
}
.breadcrumbs a:hover {
    color: var(--ink);
}
.breadcrumbs .sep {
    color: var(--line-dark);
    font-weight: 300;
}
.breadcrumbs .current {
    color: var(--ink);
    font-weight: 600;
}

/* ===== HEADER ===== */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 247, 249, .86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    min-width: 0;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 19px;
    min-width: 0;
    flex-shrink: 0;
}
.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #0d0d0e;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
    flex-shrink: 0;
    object-fit: cover;
}
.logo small {
    display: block;
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: .12em;
    color: var(--muted);
    font-weight: 500;
    text-transform: uppercase;
    margin-top: 1px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 14px;
    font-weight: 600;
}
.nav-links a {
    color: var(--graphite);
    position: relative;
    padding: 4px 0;
}
.nav-links a:hover {
    color: var(--cobalt);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    color: var(--graphite);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    background: none;
    border: none;
    padding: 4px 6px;
    border-radius: 8px;
    transition: background .18s ease;
}
.nav-profile:hover {
    color: var(--cobalt-bright);
    background: rgba(168, 15, 31, 0.06);
}
.nav-profile svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.8;
    display: block;
}
.nav-profile:hover svg {
    color: var(--cobalt-bright);
}
.nav-profile span {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 880px) {
    .nav-links {
        display: none;
    }
}

/* ===== SECTIONS ===== */
section {
    padding: 64px 0;
}
.sec-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    gap: 20px;
    flex-wrap: wrap;
}
.sec-head h2 {
    font-size: clamp(24px, 3vw, 34px);
}
.sec-head p {
    color: var(--muted);
    font-size: 14.5px;
    margin-top: 6px;
    max-width: 420px;
}

.trust-bar {
    background: var(--ink);
    color: var(--platinum-light);
    border-top: 1px solid var(--line-dark);
}
.trust-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 20px 0;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    padding: 0 18px;
    border-left: 1px solid var(--line-dark);
}
.trust-item:first-child {
    border-left: none;
}
.trust-item svg {
    flex-shrink: 0;
    color: var(--cobalt-bright);
}
@media (max-width: 880px) {
    .trust-inner {
        grid-template-columns: 1fr 1fr;
        row-gap: 16px;
    }
    .trust-item:nth-child(3) {
        border-left: none;
    }
}

.filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.chip {
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--line-dark);
    font-weight: 600;
    background: var(--white);
    cursor: pointer;
    transition: all .18s ease;
}
.chip:hover {
    border-color: var(--ink);
}
.chip.active {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.p-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .2s;
    min-width: 0;
    cursor: pointer;
}
.p-card:hover {
    box-shadow: 0 12px 24px rgba(11, 13, 16, .08);
    transform: translateY(-2px);
}
.p-media {
    aspect-ratio: 1/1;
    position: relative;
    display: block;
    background: #f8f6f6;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.p-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.tag {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .03em;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--graphite);
    font-weight: 600;
}
.tag.tag-verified {
    background: var(--cobalt-bright);
    color: #fff;
    border-color: var(--cobalt-bright);
}
.tag.tag-new {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}
.tag.tag-hot {
    background: #e67e22;
    color: #fff;
    border-color: #e67e22;
}
.p-body {
    padding: 8px 10px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.p-store {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 4px;
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.p-store .store-name {
    color: var(--ink);
    font-weight: 700;
}
.p-store .store-label {
    color: var(--muted);
    font-weight: 500;
}
.p-listed {
    font-size: 9.5px;
    color: var(--muted);
    margin-bottom: 3px;
    font-family: var(--mono);
    letter-spacing: .02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.p-listed .cat-highlight {
    color: var(--ink);
    font-weight: 600;
}
.p-name-wrap {
    margin-bottom: 3px;
}
.p-name {
    font-family: var(--body);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}
.p-name .highlight {
    font-weight: 700;
    color: var(--cobalt-bright);
}
.p-desc-wrap {
    margin: 4px 0 6px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--muted);
}
.p-desc {
    display: inline;
}
.p-spec-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 4px 0 6px;
}
.p-spec-chips span {
    font-family: var(--mono);
    font-size: 8.5px;
    font-weight: 600;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 2px 7px;
    border-radius: 999px;
    color: var(--graphite);
    letter-spacing: .01em;
}
.p-spec-chips span.highlight-chip {
    background: #fff0f0;
    border-color: var(--cobalt-bright);
    color: var(--cobalt-bright);
}
.p-foot {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
}
.p-price-wrap {
    min-width: 0;
}
.p-price {
    font-family: var(--display);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.05;
    color: var(--ink);
}
.p-price s {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    display: block;
    font-weight: 400;
    margin-top: 2px;
}
.p-location {
    text-align: right;
    font-size: 11.5px;
    color: var(--muted);
    font-weight: 500;
    flex-shrink: 0;
}
.p-location .time {
    display: block;
    font-size: 10.5px;
    color: var(--muted);
    font-weight: 400;
    margin-top: 2px;
}
.p-units {
    display: inline-block;
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 2px 8px;
    border-radius: 999px;
    background: #fee9ea;
    color: var(--cobalt-bright);
    border: 1px solid #fcd5d7;
    margin-top: 4px;
}
.p-units.in-stock {
    background: #e6f5ed;
    color: var(--green);
    border-color: #b8dfcc;
}
.products-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}
.load-more-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    font-family: var(--body);
    font-weight: 600;
    font-size: 14px;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(11, 13, 16, .18);
}
.load-more-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===== WHY SECTION ===== */
.why {
    background: var(--graphite);
    color: var(--white);
}
.why .sec-head p {
    color: #a9adb4;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line-dark);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    overflow: hidden;
}
.why-card {
    background: var(--graphite-soft);
    padding: 26px 22px;
}
.why-num {
    font-family: var(--mono);
    font-size: 11px;
    color: #7d828c;
    margin-bottom: 16px;
}
.why-card h3 {
    font-size: 17px;
    margin-bottom: 8px;
}
.why-card p {
    font-size: 13.5px;
    color: #a9adb4;
    line-height: 1.55;
}
@media (max-width: 880px) {
    .why-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 560px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== SOCIAL / REVIEWS ===== */
.social-wrap {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 40px;
    align-items: center;
}
.social-stats {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.stat-box {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.stat-box b {
    font-family: var(--display);
    font-size: 26px;
}
.stat-box span {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    color: var(--muted);
    letter-spacing: .05em;
}
.quote-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    margin-bottom: 14px;
}
.quote-card p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 14px;
}
.quote-who {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
}
.quote-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1c1f24, #c9cdd3);
}
.stars {
    color: #e0a731;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
@media (max-width: 880px) {
    .social-wrap {
        grid-template-columns: 1fr;
    }
}

/* ===== CTA BAND ===== */
.cta-band {
    background: linear-gradient(120deg, var(--cobalt) 0%, #2a0308 100%);
    color: var(--white);
    border-radius: 20px;
    padding: 48px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
.cta-band::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 70%);
}
.cta-band h2 {
    font-size: clamp(22px, 3vw, 30px);
    max-width: 440px;
    position: relative;
}
.cta-band p {
    color: #ffd0d4;
    margin-top: 8px;
    font-size: 14px;
    position: relative;
}
.cta-actions {
    display: flex;
    gap: 12px;
    position: relative;
    flex-wrap: wrap;
}

/* ===== BLOG PREVIEW ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.blog-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.blog-card:hover {
    box-shadow: 0 12px 28px rgba(11, 13, 16, .08);
    transform: translateY(-3px);
}
.blog-card .blog-img {
    height: 160px;
    background: var(--platinum-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 12px;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.blog-card .blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-card .blog-body {
    padding: 16px 18px 18px;
}
.blog-card .blog-meta {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 6px;
}
.blog-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
    line-height: 1.2;
}
.blog-card h3 a {
    color: var(--ink);
    transition: color .18s;
}
.blog-card h3 a:hover {
    color: var(--cobalt-bright);
}
.blog-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}
.blog-card .blog-read {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    font-size: 13px;
    color: var(--cobalt-bright);
}
@media (max-width: 880px) {
    .blog-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 560px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== FAQ ===== */
.faq-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 32px;
}
.faq-item {
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}
.faq-item h4 {
    font-family: var(--body);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--ink);
}
.faq-item p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.5;
}
@media (max-width: 640px) {
    .faq-list {
        grid-template-columns: 1fr;
    }
}

/* ===== LOCATION / MAP SECTION ===== */
.location-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
}
.location-info {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.location-info h3 {
    font-size: 20px;
}
.location-info .addr-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--graphite);
}
.location-info .addr-line svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--cobalt-bright);
}
.location-info .addr-line strong {
    font-weight: 600;
}
.location-info .hours {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13.5px;
    color: var(--muted);
    padding-top: 6px;
    border-top: 1px solid var(--line);
}
.location-info .hours span {
    display: flex;
    justify-content: space-between;
}
.location-info .hours .day {
    font-weight: 500;
    color: var(--graphite);
}
.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--platinum-light);
    min-height: 280px;
    position: relative;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 280px;
    border: 0;
    display: block;
}
.map-container .map-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 280px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 13px;
    padding: 20px;
    text-align: center;
}
@media (max-width: 880px) {
    .location-wrap {
        grid-template-columns: 1fr;
    }
    .map-container {
        min-height: 220px;
    }
    .map-container iframe {
        min-height: 220px;
    }
}

/* ===== FOOTER ===== */
footer {
    background: var(--ink);
    color: #c9cdd3;
    padding: 56px 0 24px;
}
.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
}
.foot-brand p {
    font-size: 13.5px;
    color: #8b909a;
    margin: 14px 0 18px;
    max-width: 280px;
    line-height: 1.6;
}
.foot-social {
    display: flex;
    gap: 10px;
}
.foot-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .18s, background .18s;
}
.foot-social a:hover {
    border-color: var(--cobalt-bright);
    background: rgba(216, 19, 36, .12);
}
.foot-col h4 {
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #7d828c;
    margin-bottom: 16px;
    font-weight: 600;
}
.foot-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.foot-col a {
    font-size: 13.5px;
    color: #c9cdd3;
    transition: color .18s;
}
.foot-col a:hover {
    color: var(--white);
}
.foot-bottom {
    border-top: 1px solid var(--line-dark);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: #7d828c;
    font-family: var(--mono);
}
@media (max-width: 880px) {
    .foot-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 560px) {
    .foot-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    background: var(--white);
    border-top: 1px solid var(--line);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.bottom-nav ul {
    display: flex;
    justify-content: space-around;
}
.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    color: var(--muted);
    font-weight: 600;
}
.bottom-nav a.active {
    color: var(--ink);
}
.bottom-nav a.active svg {
    color: var(--cobalt-bright);
}
@media (max-width: 640px) {
    .bottom-nav {
        display: block;
    }
    body {
        padding-bottom: 74px;
    }
    #headerCart {
        display: none;
    }
}

/* ===== CHAT FLOAT ===== */
.chat-float {
    position: fixed;
    right: 18px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--cobalt-bright);
    color: var(--white);
    box-shadow: 0 12px 30px rgba(16, 18, 20, 0.18);
    z-index: 75;
    text-decoration: none;
    transition: transform .14s ease, box-shadow .14s ease, opacity .14s ease;
}
.chat-float:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(16, 18, 20, 0.22);
}
.chat-float svg {
    display: block;
}
.chat-float:active {
    transform: translateY(-1px);
}
@media (max-width: 640px) {
    .chat-float {
        bottom: calc(74px + 12px + env(safe-area-inset-bottom));
    }
    .bottom-nav a.chat-link {
        display: none;
    }
}

/* ===== SEARCH BAR ===== */
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 16px;
    flex: 1;
    min-width: 0;
    max-width: 360px;
    margin: 0 24px;
}
.search-bar svg {
    color: var(--muted);
    flex-shrink: 0;
}
.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    min-width: 0;
    font-family: var(--body);
    font-size: 13.5px;
    color: var(--ink);
}
.search-bar input::placeholder {
    color: var(--muted);
}
.search-clear {
    display: none;
    border: none;
    background: none;
    color: var(--muted);
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
}
.search-clear.show {
    display: flex;
}
@media (max-width: 880px) {
    .search-bar {
        max-width: none;
        margin: 0 12px;
    }
}
@media (max-width: 640px) {
    .search-bar {
        padding: 8px 12px;
        margin: 0 8px;
    }
    .search-bar input {
        font-size: 13px;
    }
    .nav {
        gap: 6px;
    }
    .logo {
        gap: 6px;
        font-size: 16px;
    }
    .logo span {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    #headerAccount {
        display: none;
    }
}
@media (max-width: 420px) {
    .logo span {
        display: none;
    }
    .logo {
        gap: 0;
    }
}

/* ===== CHAT OVERLAY ===== */
.chat-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 13, 14, .45);
    backdrop-filter: blur(4px);
    display: none;
    align-items: flex-end;
    justify-content: flex-end;
    z-index: 120;
    padding: 18px;
}
.chat-overlay.open {
    display: flex;
}
.chat-modal {
    width: min(420px, 100%);
    height: min(640px, calc(100vh - 36px));
    background: var(--white);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 26px 80px rgba(0, 0, 0, .28);
    display: flex;
    flex-direction: column;
}
.chat-header {
    padding: 18px 18px 14px;
    background: linear-gradient(120deg, var(--ink), var(--graphite));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.chat-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.chat-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--cobalt-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.chat-title h3 {
    font-size: 18px;
    margin: 0;
}
.chat-title p {
    font-size: 12px;
    color: #bfc4cc;
    margin-top: 2px;
}
.chat-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .16);
    background: transparent;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-body {
    padding: 18px;
    flex: 1;
    overflow: auto;
    background: #f7f8fa;
    display: flex;
    flex-direction: column;
}
.chat-msg {
    max-width: 82%;
    padding: 12px 14px;
    border-radius: 16px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.45;
}
/* USER messages – right side (dark) */
.chat-msg.user {
    align-self: flex-end;
    background: var(--ink);
    color: var(--white);
    border-bottom-right-radius: 6px;
}
/* STORE / ADMIN messages – left side (light) */
.chat-msg.bot {
    align-self: flex-start;
    background: var(--white);
    border: 1px solid var(--line);
    border-bottom-left-radius: 6px;
    color: var(--ink);
}
.chat-msg .msg-time {
    font-size: 10px;
    color: var(--muted);
    margin-top: 4px;
}
.chat-msg.user .msg-time {
    color: rgba(255,255,255,0.7);
}
.chat-actions {
    padding: 14px 18px 18px;
    background: var(--white);
    border-top: 1px solid var(--line);
}
.chat-row {
    display: flex;
    gap: 10px;
    align-items: center;
}
.chat-input {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 12px 16px;
    font-family: var(--body);
    outline: none;
    font-size: 14px;
}
.chat-send {
    border: none;
    background: var(--cobalt-bright);
    color: var(--white);
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
}
@media (max-width: 640px) {
    #headerAccount {
        display: none;
    }
    .chat-overlay {
        padding: 0;
        align-items: flex-end;
        justify-content: stretch;
    }
    .chat-modal {
        width: 100%;
        height: 85vh;
        border-radius: 20px 20px 0 0;
    }
}

/* ===== LOGIN OVERLAY ===== */
.login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 13, 14, .55);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 150;
    padding: 20px;
}
.login-overlay.open {
    display: flex;
}
.login-modal {
    width: min(440px, 100%);
    background: var(--white);
    border-radius: 24px;
    padding: 32px 28px 28px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, .35);
    position: relative;
    animation: modalUp .24s ease;
    max-height: 90vh;
    overflow-y: auto;
}
.login-modal::-webkit-scrollbar {
    width: 4px;
}
.login-modal::-webkit-scrollbar-thumb {
    background: var(--line-dark);
    border-radius: 99px;
}
@keyframes modalUp {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.login-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: background .18s;
}
.login-close:hover {
    background: var(--platinum-light);
}
.login-modal h2 {
    font-family: var(--display);
    font-size: 24px;
    margin-bottom: 6px;
}
.login-modal p.sub {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 24px;
}
.login-modal label {
    font-weight: 600;
    font-size: 13px;
    display: block;
    margin-bottom: 4px;
}
.login-modal input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-family: var(--body);
    font-size: 14px;
    outline: none;
    transition: border .2s;
    margin-bottom: 16px;
}
.login-modal input:focus {
    border-color: var(--cobalt-bright);
}
.login-modal .btn-login {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    font-weight: 700;
    font-size: 15px;
    transition: transform .18s, box-shadow .18s;
    margin-top: 4px;
}
.login-modal .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(11, 13, 16, .2);
}
.login-modal .toggle-register {
    display: block;
    text-align: center;
    margin-top: 18px;
    font-size: 14px;
    color: var(--muted);
}
.login-modal .toggle-register a {
    color: var(--cobalt-bright);
    font-weight: 600;
    cursor: pointer;
}
.login-modal .toggle-register a:hover {
    text-decoration: underline;
}
.login-error {
    background: #fee9ea;
    color: #a10f1f;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    display: none;
    margin-bottom: 14px;
}
.login-error.show {
    display: block;
}

.social-login-row {
    display: flex;
    gap: 12px;
    margin: 18px 0 12px;
    justify-content: center;
}
.social-login-row .social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    font-weight: 600;
    font-size: 14px;
    color: var(--graphite);
    transition: background .18s, border-color .18s;
    cursor: pointer;
    text-decoration: none;
}
.social-login-row .social-btn:hover {
    background: var(--platinum-light);
    border-color: var(--muted);
}
.social-login-row .social-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.social-login-row .social-btn.google svg {
    fill: #4285f4;
}
.social-login-row .social-btn.apple svg {
    fill: #000;
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--muted);
    font-size: 12px;
}
.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

@media (max-width: 480px) {
    .login-modal {
        padding: 24px 16px 22px;
    }
    .social-login-row {
        flex-direction: column;
    }
    .social-login-row .social-btn {
        justify-content: center;
    }
}

/* ===== CART BADGE ===== */
.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--cobalt-bright);
    color: #fff;
    font-family: var(--mono);
    font-size: 9.5px;
    font-weight: 700;
    position: relative;
    top: -8px;
    left: -6px;
}
.cart-badge:empty,
.cart-badge[data-count="0"] {
    display: none;
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .p-body {
        padding: 7px 8px 8px;
    }
    .p-name {
        font-size: 11.5px;
    }
    .p-price {
        font-size: 13.5px;
    }
    .p-spec-chips span {
        font-size: 8px;
        padding: 2px 6px;
    }
    .products-footer {
        justify-content: center;
    }
    .load-more-btn {
        width: 100%;
    }
    .filter-row {
        gap: 8px;
        margin-bottom: 20px;
    }
    .chip {
        padding: 8px 14px;
        font-size: 11px;
        letter-spacing: .03em;
        white-space: nowrap;
    }
    .chat-float {
        width: 52px;
        height: 52px;
        right: 14px;
    }
    section {
        padding: 44px 0;
    }
    .cta-band {
        padding: 34px 24px;
        flex-direction: column;
        align-items: flex-start;
    }
}

#contact{
  width: 100%;
  position: absolute;
}
