/* ============================================================
   Refinement layer on top of Bootstrap 5.
   Tokens + component polish for a lighter, more elegant look.
   ============================================================ */

:root {
    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    --ink: #241f27;
    --ink-soft: #5c5560;
    --ink-muted: #8d8792;
    --line: #ece8ed;
    --line-strong: #ddd7de;
    --surface: #ffffff;
    --canvas: #ffffff;

    /* Brand palette (from beauty-store reference) */
    --accent: #e30b87;
    --accent-hover: #c30873;
    --accent-soft: #fdeaf5;
    --ring: rgba(227, 11, 135, 0.18);

    --charcoal: #2c2a31;
    --charcoal-soft: #3a3740;

    --radius-sm: .5rem;
    --radius: .75rem;
    --radius-lg: 1rem;
    --shadow-xs: 0 1px 2px rgba(20, 24, 33, .05);
    --shadow-sm: 0 1px 3px rgba(20, 24, 33, .06), 0 1px 2px rgba(20, 24, 33, .04);
    --shadow-md: 0 6px 18px rgba(20, 24, 33, .08), 0 2px 6px rgba(20, 24, 33, .05);
    --shadow-lg: 0 16px 40px rgba(20, 24, 33, .12);

    --bs-body-font-family: var(--font-sans);
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--canvas);
    --bs-border-color: var(--line);
    --bs-border-radius: var(--radius);
    --bs-border-radius-sm: var(--radius-sm);
    --bs-border-radius-lg: var(--radius-lg);
    --bs-secondary-color: var(--ink-soft);
    --bs-emphasis-color: var(--ink);
}

html, body {
    font-family: var(--font-sans);
    background-color: var(--canvas);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.006em;
    font-size: 15px;
    line-height: 1.6;
    /* Clip (not hidden) so full-bleed 100vw sections can't create sideways
       scroll on mobile, without breaking the sticky header. */
    overflow-x: clip;
    max-width: 100%;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
}

h1, .h1 { font-weight: 700; }

/* Global heading rule above forces --ink, which hides headings on dark
   sections (e.g. the .bg-dark hero). Use a light accent there instead. */
.bg-dark h1, .bg-dark .h1, .bg-dark h2, .bg-dark .h2,
.bg-dark h3, .bg-dark .h3, .bg-dark h4, .bg-dark .h4 { color: #8B7EC8; }

.text-muted { color: var(--ink-muted) !important; }

a, .btn-link { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* --- Buttons --- */
.btn {
    --bs-btn-border-radius: var(--radius-sm);
    font-weight: 500;
    letter-spacing: -0.01em;
    padding: .5rem .95rem;
    border-radius: var(--radius-sm);
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .05s ease;
}

.btn:active { transform: translateY(1px); }

.btn-sm { padding: .3rem .65rem; border-radius: .45rem; }
.btn-lg { padding: .7rem 1.3rem; border-radius: var(--radius); }

.btn-primary {
    color: #fff;
    background-color: var(--accent);
    border-color: var(--accent);
    box-shadow: var(--shadow-xs);
}
.btn-primary:hover, .btn-primary:focus-visible {
    color: #fff;
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: var(--shadow-sm);
}
.btn-primary:disabled { background-color: #eaa9cd; border-color: #eaa9cd; }

.btn-dark {
    color: #fff;
    background-color: var(--charcoal);
    border-color: var(--charcoal);
    box-shadow: var(--shadow-xs);
}
.btn-dark:hover, .btn-dark:focus-visible {
    color: #fff;
    background-color: var(--charcoal-soft);
    border-color: var(--charcoal-soft);
    box-shadow: var(--shadow-sm);
}

.btn-outline-primary {
    color: var(--accent);
    border-color: var(--accent);
    background-color: transparent;
}
.btn-outline-primary:hover {
    color: #fff;
    background-color: var(--accent);
    border-color: var(--accent);
}

.btn-outline-dark {
    color: var(--charcoal);
    border-color: var(--line-strong);
    background-color: transparent;
}
.btn-outline-dark:hover {
    color: #fff;
    background-color: var(--charcoal);
    border-color: var(--charcoal);
}

.btn-secondary {
    color: var(--ink);
    background-color: #eef0f3;
    border-color: #eef0f3;
}
.btn-secondary:hover { color: var(--ink); background-color: #e3e6ea; border-color: #e3e6ea; }

.btn-success { background-color: #1f9d61; border-color: #1f9d61; }
.btn-success:hover { background-color: #1a854f; border-color: #1a854f; }

.btn:focus, .btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus, .form-check-input:focus, .form-select:focus {
    box-shadow: 0 0 0 .2rem rgba(0, 0, 0, .1);
}

/* --- Cards --- */
.card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.card-img-top { border-top-left-radius: var(--radius-lg); border-top-right-radius: var(--radius-lg); }

/* Product cards use square corners (not rounded) */
.card-hover, .card-hover .card-img-top { border-radius: 0; }

/* Minimalist storefront product cards: flush white tiles separated only by
   thin divider lines between adjacent cards (no gaps, no outer shadow) */
.featured-tile {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    padding: 1.25rem;
    overflow: hidden;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.featured-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.featured-tile-label {
    position: absolute;
    top: 1.1rem;
    left: 1.25rem;
    color: #2b2b2b;
    font-size: .95rem;
    text-transform: lowercase;
}
.featured-tile-arrow {
    position: absolute;
    top: 1.1rem;
    right: 1.25rem;
    display: inline-flex;
    color: #2b2b2b;
}
.featured-tile-arrow svg { width: 20px; height: 20px; }
.featured-tile-img {
    max-width: 74%;
    max-height: 78%;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.featured-tile-price {
    position: absolute;
    bottom: 1.1rem;
    left: 1.25rem;
    color: #2b2b2b;
    font-weight: 600;
    font-size: 1rem;
}

@media (max-width: 575.98px) {
    .featured-tiles { --bs-gutter-x: .75rem; --bs-gutter-y: .75rem; }
    /* Taller than square gives vertical room so the label, image and price
       don't overlap on the narrow two-column mobile grid. */
    .featured-tile {
        aspect-ratio: 3 / 4;
        padding: .9rem;
        border-radius: 16px;
    }
    .featured-tile-label {
        top: .85rem;
        left: .9rem;
        right: 2.1rem; /* reserve room for the arrow so long labels wrap instead of colliding */
        font-size: .8rem;
        line-height: 1.15;
    }
    .featured-tile-arrow { top: .85rem; right: .9rem; }
    .featured-tile-arrow svg { width: 16px; height: 16px; }
    .featured-tile-img { max-width: 72%; max-height: 52%; }
    .featured-tile-price { bottom: .85rem; left: .9rem; font-size: .95rem; }
}

.product-card {
    background: transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card-media {
    display: block;
    background: #f0efeb;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.75rem;
    mix-blend-mode: multiply;
    transition: transform .3s ease;
}
.product-card-media:hover .product-card-img { transform: scale(1.04); }
.product-card-body { padding: 1rem .1rem 0; display: flex; flex-direction: column; flex: 1 1 auto; }
.product-card-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    line-height: 1.3;
}
.product-card-title:hover { color: var(--ink); }
.product-card-subtitle {
    color: var(--ink-muted);
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: .35rem;
}
.product-card-divider { display: none; }
.product-card-price {
    font-size: 1.05rem;
    font-weight: 600;
    margin: .65rem 0 .9rem;
}
.product-card-cart {
    width: 100%;
    margin-top: auto;
    background: transparent;
    border: 1px solid #000;
    color: #000;
    border-radius: 2px;
    padding: .7rem 1rem;
    font-size: .8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
    transition: background-color .15s ease, color .15s ease;
}
.product-card-cart:hover:not(:disabled) { background: #000; color: #fff; }
.product-card-cart:disabled { opacity: .4; cursor: not-allowed; }

/* --- Product detail breadcrumb: small, all-black, active in bold, extra gap below the header --- */
.product-breadcrumb { margin-top: 2rem; margin-bottom: 1.5rem; }
.product-breadcrumb .breadcrumb { margin-bottom: 0; font-size: .72rem; }
.product-breadcrumb .breadcrumb-item,
.product-breadcrumb .breadcrumb-item a,
.product-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: #000; }
.product-breadcrumb .breadcrumb-item a { text-decoration: none; }
.product-breadcrumb .breadcrumb-item a:hover { text-decoration: underline; }
.product-breadcrumb .breadcrumb-item.active { color: #000; font-weight: 700; }

/* --- Product detail: large image on the left, editorial info panel on the right --- */
.product-detail {
    display: flex;
    align-items: stretch;
    gap: 3rem;
    background: #f0efeb;
    border-radius: 8px;
    overflow: hidden;
}
.product-detail-media,
.product-detail-panel {
    flex: 1 1 50%;
    min-width: 0;
}
.product-detail-media {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}
.product-detail-img {
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    mix-blend-mode: multiply;
}
.product-detail-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem 4rem 3.5rem 0;
}
@media (max-width: 991.98px) {
    .product-detail { flex-direction: column; gap: 0; }
    .product-detail-panel { padding: 0 2rem 3rem; justify-content: flex-start; }
    .product-detail-media { padding: 2.5rem; }
}
.product-detail-eyebrow {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ink-muted);
    margin-bottom: 1rem;
}
.product-detail-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: clamp(2rem, 3.5vw, 2.9rem);
    line-height: 1.1;
    color: var(--ink);
    margin: 0 0 1.25rem;
}
.product-detail-desc {
    color: var(--ink-soft);
    line-height: 1.7;
    margin: 0;
    max-width: 42ch;
}
.product-detail-rule {
    border: 0;
    border-top: 1px solid rgba(0,0,0,.15);
    margin: 2rem 0;
    opacity: 1;
}
.product-detail-price {
    font-size: 1.7rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 1.5rem;
}
.product-tier-table {
    width: 100%;
    max-width: 320px;
    margin-bottom: .6rem;
    font-size: .9rem;
    border-collapse: collapse;
}
.product-tier-note {
    max-width: 320px;
    margin-bottom: 1.5rem;
    font-size: .8rem;
    font-style: italic;
    color: #71717a;
}
.product-tier-table th,
.product-tier-table td {
    padding: .4rem .6rem;
    border-bottom: 1px solid #e4e4e2;
}
.product-tier-table thead th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .04em;
    color: #71717a;
}
.product-detail-bar {
    display: flex;
    align-items: stretch;
    background: #7c756e;
    border-radius: 2px;
    overflow: hidden;
    min-height: 3.25rem;
}
.product-detail-bar-cart {
    flex: 1 1 auto;
    border: 0;
    background: transparent;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
}
.product-detail-bar-cart:hover:not(:disabled) { background: rgba(0,0,0,.12); }
.product-detail-bar-cart:disabled { opacity: .7; cursor: default; }
.product-detail-bar-qty {
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: 0 .75rem;
    background: #9a938c;
    color: #fff;
}
.bar-qty-input {
    width: 3rem;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    text-align: center;
    cursor: text;
    -moz-appearance: textfield;
}
.bar-qty-input::selection { background: rgba(255,255,255,.3); }
.bar-qty-input::-webkit-outer-spin-button,
.bar-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bar-qty-input:focus { outline: none; }
.product-detail-stock {
    display: block;
    color: var(--ink-muted);
    font-size: .8rem;
    margin: .75rem 0 1.5rem;
}
.product-detail-save > .btn {
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .8rem;
    font-weight: 500;
}
.product-detail-ship {
    display: flex;
    margin-top: 2rem;
    border-top: 1px solid rgba(0,0,0,.15);
}
.product-detail-ship > div {
    flex: 1 1 50%;
    padding: 1.15rem 1.5rem 0 0;
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ink-muted);
}

/* Full-bleed hero: break out of the page container to span the whole viewport width */
/* Hero: big ÖGA logo on top, then a photo inset from the sides with only the
   CTA button floating at its bottom-right (not glued to the image edges). */
.hero-section {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    margin-top: -1.5rem; /* cancel .main-content top padding */
    padding: 2.5rem 3rem 1rem;
}
.hero-carousel { position: relative; }
.hero-image {
    position: relative;
    height: 72vh;
    border-radius: 18px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 3.5rem;
}
/* Bottom gradient so the text/button group stays legible over any photo */
.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .1) 40%, transparent 65%);
    pointer-events: none;
}
.hero-image-empty { background: #e7e4de; }
.hero-image-empty::after { display: none; }
.hero-image-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 620px;
    color: #fff;
}
.hero-image-eyebrow {
    display: inline-block;
    align-self: flex-start;
    background: #fff;
    color: #0d0d0d;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .35rem .85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.hero-image-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.6rem, 5.5vw, 4.5rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -.01em;
    color: #fff;
    margin: 0;
}
.hero-image-desc {
    margin: 1.15rem 0 0;
    font-size: clamp(1.15rem, 1.8vw, 1.5rem);
    line-height: 1.5;
    max-width: 560px;
    color: rgba(255, 255, 255, .9);
}
.hero-image-btn {
    display: inline-block;
    margin-top: 1.75rem;
    background: var(--ink);
    color: #fff;
    padding: .9rem 2.6rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease;
}
.hero-image-btn:hover { background: #000; color: #fff; }
@media (max-width: 767.98px) {
    .hero-section { padding: 1.5rem 1rem .5rem; }
    .hero-image { height: 58vh; padding: 1.75rem; }
    .hero-image-content { max-width: 100%; }
    .hero-image-btn { margin-top: 1.25rem; }
}

/* Carousel indicators (the dots) — bottom-RIGHT so they don't collide with the bottom-left content */
#heroCarousel .carousel-indicators {
    justify-content: flex-end;
    margin-right: 3.5rem;
    margin-bottom: 2rem;
    margin-left: 0;
    z-index: 3;
}
#heroCarousel .carousel-indicators [data-bs-target] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.7);
    background-color: rgba(255,255,255,.4);
    opacity: 1;
}
#heroCarousel .carousel-indicators .active { background-color: #fff; }

/* Custom thin chevron arrows for the hero prev/next controls */
#heroCarousel .hero-control-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255,255,255,.15);
    color: #fff;
}
#heroCarousel .hero-control-icon svg { width: 22px; height: 22px; }
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next { width: auto; padding: 0 1.25rem; opacity: 1; }

.main-content {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* Featured-products carousel: both nav arrows sit together at the bottom-right
   of the section; dark icons so they're visible on the light page background */
#featuredCarousel { padding-bottom: 3.5rem; }
#featuredCarousel .carousel-control-prev,
#featuredCarousel .carousel-control-next {
    top: auto;
    bottom: 0;
    height: 2.5rem;
    width: 2.5rem;
    align-items: flex-end;
    opacity: .85;
}
#featuredCarousel .carousel-control-next { left: auto; right: 0; }
#featuredCarousel .carousel-control-prev { left: auto; right: 2.75rem; }
#featuredCarousel .carousel-control-prev-icon,
#featuredCarousel .carousel-control-next-icon {
    width: 1.5rem;
    height: 1.5rem;
    filter: invert(1) grayscale(1);
}

/* Product cards feel interactive */
a .card:hover, .card-hover:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--line-strong);
}

/* --- Forms --- */
.form-control, .form-select {
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: .55rem .8rem;
    color: var(--ink);
    background-color: var(--surface);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control::placeholder { color: var(--ink-muted); }
.form-control:focus, .form-select:focus {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 .2rem rgba(0, 0, 0, .1);
}
.form-label { font-weight: 500; color: var(--ink-soft); margin-bottom: .35rem; font-size: .875rem; }
.input-group-text { background-color: #f2f3f5; border-color: var(--line-strong); color: var(--ink-soft); }

/* --- Navbar: normal full-width bar pinned to the top of the page --- */
.site-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0;
}
.site-navbar > .container {
    padding: .85rem 1rem;
    align-items: center;
    flex-wrap: wrap;
}
.navbar-brand { display: flex; align-items: center; padding: 0; margin-right: 1.5rem; }
.navbar-brand img { height: 26px; width: auto; display: block; }

.site-navbar .navbar-nav { align-items: center; }
.site-navbar .navbar-nav .nav-link {
    color: #000;
    display: flex;
    align-items: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-size: .78rem;
    padding: .35rem .9rem;
    position: relative;
    transition: color .15s ease;
}
.site-navbar .navbar-nav .nav-link:hover,
.site-navbar .navbar-nav .nav-link:focus { color: #000; }
.site-navbar .navbar-nav .nav-link.active { color: #000; }
.site-navbar .navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: .9rem;
    right: .9rem;
    bottom: .1rem;
    height: 2px;
    border-radius: 2px;
    background: #000;
}
.nav-icon { width: 20px; height: 20px; }
.nav-flag { font-size: 1.1rem; line-height: 1; }
/* Mobile top-bar cart, next to the hamburger — visible while adding products. */
.navbar-mobile-actions .nav-cart-mobile {
    display: inline-flex;
    align-items: center;
    color: #000;
    padding: .25rem .4rem;
}
/* Mini-cart count badge — black, no pink */
.navbar .badge.bg-danger { background-color: #1a1a1a !important; }
.site-navbar .navbar-toggler { border-color: rgba(0,0,0,.15); }
.site-navbar .navbar-toggler:focus { box-shadow: 0 0 0 .2rem var(--ring); }
.site-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile: menu opens as a full-screen overlay, not just the top strip.
   Sits below the sticky header (z-index 1030) so the toggler stays clickable to close. */
@media (max-width: 991.98px) {
    .site-navbar .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1020;
        background: #fff;
        padding: 5rem 1.75rem 2.5rem;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    .site-navbar .navbar-collapse:not(.show) { display: none; }
    /* Flatten both <ul>s so every <li> becomes a direct flex child of the
       overlay; that lets a single `order` chain interleave items from the two
       lists into the requested mobile sequence. */
    .site-navbar .navbar-collapse .navbar-nav {
        display: contents;
        align-items: stretch !important;
        width: 100%;
        gap: 0 !important;
        margin: 0 !important;
    }
    /* Mobile order: Buscar, Categorías, Cuenta, Idioma. */
    .site-navbar .navbar-collapse .nav-item { order: 2; }
    .site-navbar .navbar-collapse .nav-item-search { order: 1; }
    .site-navbar .navbar-collapse .nav-item-account { order: 3; }
    .site-navbar .navbar-collapse .nav-item-lang { order: 4; }
    .site-navbar .navbar-collapse .navbar-nav .nav-link {
        justify-content: flex-start;
        gap: .65rem;
        font-size: 1.05rem;
        padding: .9rem 0;
        border-bottom: 1px solid var(--line);
    }
    .site-navbar .navbar-collapse .nav-link .badge {
        position: static !important;
        transform: none !important;
        margin-left: .4rem;
    }
    .mobile-nav-label {
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .09em;
        font-size: 1.05rem;
    }
    .site-navbar .navbar-collapse .dropdown-menu {
        border: 0;
        padding: 0 0 .5rem 1.75rem;
        box-shadow: none;
    }
    /* Category submenus render as a flat, always-open indented list inside the
       overlay — tapping the category name navigates; subs sit beneath it. */
    .site-navbar .navbar-collapse .nav-cat-dropdown .dropdown-menu {
        display: block;
        position: static;
        float: none;
    }
    .site-navbar .navbar-collapse .nav-cat-all { display: none; }
    .site-navbar .navbar-collapse .nav-cat-dropdown .dropdown-toggle::after { display: none; }
    .mobile-menu-close {
        position: absolute;
        top: 1.25rem;
        right: 1.25rem;
        width: 2.5rem;
        height: 2.5rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        background: transparent;
        color: var(--ink);
        padding: 0;
        cursor: pointer;
    }
    .mobile-menu-close svg { width: 26px; height: 26px; }
}

/* Desktop: category name is a real link (navigates on click); its submenu opens
   on hover instead of a Bootstrap click-toggle, which otherwise swallowed the click. */
@media (min-width: 992px) {
    .site-navbar .nav-cat-dropdown > .dropdown-menu { top: 100%; left: 0; margin-top: .125rem; }
    .site-navbar .nav-cat-dropdown:hover > .dropdown-menu { display: block; }
}

/* --- Dropdowns --- */
.dropdown-menu {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: .4rem;
}
.dropdown-item { border-radius: var(--radius-sm); padding: .5rem .7rem; }
.dropdown-item:active { background-color: var(--accent); }

/* Header dropdowns: white panel, square corners, black (not pink) on hover/click */
.site-dropdown {
    background-color: #fff;
    border: 1px solid var(--line);
    border-radius: 0;
    padding: .4rem;
}
.site-dropdown .dropdown-item { border-radius: 0; color: var(--ink); }
.site-dropdown .dropdown-item:hover,
.site-dropdown .dropdown-item:focus,
.site-dropdown .dropdown-item:active {
    background-color: #000;
    color: #fff;
}
/* Selected item is only marked in bold — no persistent filled background that
   would read as a "stuck" hover on the previously selected option. */
.site-dropdown .dropdown-item.active {
    background-color: transparent;
    color: var(--ink);
    font-weight: 600;
}
.site-dropdown .dropdown-item.active:hover,
.site-dropdown .dropdown-item.active:focus {
    background-color: #000;
    color: #fff;
}
.site-dropdown .dropdown-item.text-danger { color: var(--ink) !important; }
.site-dropdown .dropdown-item.text-danger:hover,
.site-dropdown .dropdown-item.text-danger:focus,
.site-dropdown .dropdown-item.text-danger:active { color: #fff !important; }

/* --- Tables --- */
.table { --bs-table-border-color: var(--line); color: var(--ink); }
.table > thead {
    color: var(--ink-muted);
    text-transform: uppercase;
    font-size: .72rem;
    letter-spacing: .04em;
}
.table > thead th { font-weight: 600; border-bottom: 1px solid var(--line-strong); }
.table > tbody td { padding-top: .8rem; padding-bottom: .8rem; vertical-align: middle; }
.table-hover > tbody > tr:hover > * { background-color: #f4f5f7; }

/* --- Badges --- */
.badge { font-weight: 500; letter-spacing: .01em; padding: .35em .6em; border-radius: .4rem; }

/* --- Admin sidebar --- */
.admin-sidebar { background: var(--surface); }
.admin-sidebar .nav-link {
    color: var(--ink-soft);
    border-radius: var(--radius-sm);
    padding: .5rem .75rem;
    font-weight: 500;
    transition: background-color .12s ease, color .12s ease;
}
.admin-sidebar .nav-link:hover { background-color: #f2f3f5; color: var(--ink); }
.admin-sidebar .nav-link.active { background-color: var(--accent); color: #fff; }

/* --- Footer: full-viewport, oversized brand logo (fabrica-style reference) --- */
.site-footer {
    background: #0d0d0d;
    color: #fff;
    margin-top: 4rem;
}
.site-footer-inner {
    display: flex;
    flex-direction: column;
    padding-top: 3.5rem;
    padding-bottom: 1.5rem;
}
.site-footer-top { flex: 0 0 auto; }
.site-footer-label {
    display: block;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .7rem;
    color: rgba(255, 255, 255, .5);
    margin-bottom: 1.1rem;
}
.site-footer-contact {
    font-size: 1.05rem;
    color: #fff;
    text-decoration: none;
    border-bottom: 2px solid #fff;
    padding-bottom: 2px;
}
.site-footer-contact:hover { color: rgba(255, 255, 255, .7); border-color: rgba(255, 255, 255, .7); }
.site-footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
}
.site-footer-social a {
    color: rgba(255, 255, 255, .7);
    display: inline-flex;
}
.site-footer-social a:hover { color: #fff; }
.site-footer-social svg { width: 22px; height: 22px; display: block; }

.whatsapp-fab {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1040;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
    transition: transform .15s, box-shadow .15s;
}
.whatsapp-fab:hover {
    color: #fff;
    transform: scale(1.06);
    box-shadow: 0 8px 26px rgba(0, 0, 0, .3);
}
.whatsapp-fab svg { width: 32px; height: 32px; display: block; }
@media (max-width: 575.98px) {
    .whatsapp-fab { width: 52px; height: 52px; right: 1rem; bottom: 1rem; }
    .whatsapp-fab svg { width: 28px; height: 28px; }
}
.site-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.site-footer-links a {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    font-size: 1.05rem;
    overflow-wrap: anywhere; /* long emails wrap instead of bleeding into the next column */
}
.site-footer-links a:hover { color: #fff; }

.site-footer-address {
    margin-top: 1.4rem;
}
.site-footer-address-title {
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .68rem;
    color: rgba(255, 255, 255, .5);
    margin: 0 0 .3rem;
}
.site-footer-address-line {
    color: rgba(255, 255, 255, .7);
    font-size: .92rem;
    line-height: 1.5;
    margin: 0 0 1rem;
}
.site-footer-address-line:last-child { margin-bottom: 0; }

.site-footer-brand {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    margin-top: 2.5rem;
}
.site-footer-logo {
    max-width: 45%;
    max-height: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: bottom right;
}
@media (max-width: 575.98px) {
    .site-footer-inner { padding-top: 2.5rem; }
    .site-footer-address { margin-top: 1rem; }
    /* Center and enlarge the brand mark on mobile so it isn't a small corner sliver. */
    .site-footer-brand { justify-content: center; margin-top: 2rem; }
    .site-footer-logo { max-width: 68%; object-position: bottom center; }
}
/* Header product search — slide-in panel from the left */
.search-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    z-index: 1035;
}
.search-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(620px, 100vw);
    background: #fff;
    z-index: 1040;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: 0 0 40px rgba(0, 0, 0, .15);
    padding: 2.5rem 2.75rem;
}
.search-drawer.open { transform: translateX(0); }
.search-drawer-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #000;
    padding-bottom: .85rem;
}
.search-drawer-icon { display: inline-flex; color: #000; }
.search-drawer-icon svg { width: 24px; height: 24px; }
.search-drawer-input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 1.5rem;
    color: #000;
}
.search-drawer-input::placeholder { color: #9a9a9a; }
.search-drawer-close {
    border: 0;
    background: transparent;
    color: #000;
    display: inline-flex;
    padding: 0;
}
.search-drawer-close svg { width: 26px; height: 26px; }

.site-footer-payments {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, .8);
}
.site-footer-payments .pay-logo {
    height: 22px;
    width: auto;
    display: block;
}
.site-footer-bottom {
    flex: 0 0 auto;
    padding-top: 1rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.site-footer-bottom .text-muted { color: rgba(255, 255, 255, .45) !important; }
.site-footer-credit { color: rgba(255, 255, 255, .45); }
.site-footer-credit a { color: rgba(255, 255, 255, .75); text-decoration: underline; }
.site-footer-credit a:hover { color: #fff; }

/* --- Misc --- */
.content { padding-top: 1.1rem; }
h1:focus { outline: none; }
hr { color: var(--line-strong); opacity: 1; }

/* --- Blazor validation / error boundary (kept) --- */
.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    border-radius: var(--radius-sm);
}
.blazor-error-boundary::after { content: "An error has occurred." }

.darker-border-checkbox.form-check-input { border-color: #929292; }
.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder { color: var(--bs-secondary-color); text-align: end; }
.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder { text-align: start; }

/* ── Home promo banners (two columns: photo left, text right) ── */
.featured-section {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 5rem 3.5rem;
}
.featured-section h2 { margin-bottom: 3rem !important; font-size: clamp(3rem, 6vw, 5rem); }
.promo-section {
    background-color: #eceee2;
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    display: flex;
    flex-direction: column;
    padding: 0;
}
.promo-banner {
    flex: 1;
    display: flex;
    align-items: stretch;
    min-height: 480px;
}
.promo-banner-body {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.25rem;
    padding: 3rem 4rem;
}
.promo-eyebrow {
    font-size: 1.5rem;
    color: #6a6a6a;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.promo-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    color: #1a1a1a;
    margin: 0;
}
.promo-banner-body p { color: #3a3a3a; max-width: 40ch; margin: 0; }
.promo-btn {
    background-color: transparent;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
    border-radius: 4px;
    padding: .7rem 1.4rem;
    font-size: .95rem;
}
.promo-btn:hover { background-color: #1a1a1a; color: #fff; }
.promo-banner-media {
    flex: 1 1 55%;
    align-self: stretch;
    background-size: cover;
    background-position: center;
    min-height: 0;
}
@media (max-width: 767.98px) {
    .promo-section { padding: 1.5rem; }
    .promo-banner { flex-direction: column-reverse; gap: 1.5rem; min-height: 0; }
    .promo-banner-media { width: 100%; min-height: 320px; }
}

/* ── Home "why buy from us" values grid ─────────────────────── */
.values-section { padding: 5rem 0; }
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.value-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 4rem 2.5rem;
    border-left: 1px solid var(--line);
}
.value-item:first-child { border-left: 0; }
.value-index { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.value-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: 1.7rem;
    line-height: 1.2;
    color: var(--ink);
    margin: 0;
}
.value-text { color: var(--ink-muted); font-size: 1rem; line-height: 1.6; margin: 0; }

/* ── Home testimonials (Instagram-style stories) ────────────── */
.stories-head { margin-bottom: 1.75rem; }
.stories-eyebrow {
    display: block;
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: .5rem;
}
.stories-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 400;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--ink);
    margin: 0;
}
.stories-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1.25rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--ink) transparent;
}
.stories-row::-webkit-scrollbar {
    height: 5px;
}
.stories-row::-webkit-scrollbar-track {
    background: #e7e4de;
    border-radius: 999px;
}
.stories-row::-webkit-scrollbar-thumb {
    background: var(--ink);
    border-radius: 999px;
}
.stories-row::-webkit-scrollbar-thumb:hover {
    background: #000;
}
.story-card {
    flex: 0 0 auto;
    width: 300px;
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
}
.story-card video,
.story-card img {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    background: #000;
}
.story-caption {
    margin-top: .85rem;
    color: var(--ink);
    font-weight: 600;
    font-size: .95rem;
}
.story-person {
    margin-top: .3rem;
    color: #71717a;
    font-size: .85rem;
}
.story-socials {
    display: flex;
    gap: .6rem;
    margin-top: .5rem;
}
.story-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .15);
    color: var(--ink);
    transition: background .15s, color .15s, border-color .15s;
}
.story-social:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}
.story-social svg {
    width: 18px;
    height: 18px;
}

/* Cart drawer: slides in as a clean rectangle pinned to the right edge */
.cart-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    z-index: 1045;
}
.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh; /* dvh excludes the mobile browser chrome so the footer button stays reachable */
    width: 420px;
    max-width: 90vw;
    background: #fdfcf8;
    border-left: 1px solid var(--line);
    box-shadow: -2px 0 28px rgba(0, 0, 0, .10);
    z-index: 1050;
    transform: translateX(100%);
    transition: transform .28s ease;
    display: flex;
    flex-direction: column;
    color: #1a1a1a;
}
.cart-drawer.open { transform: translateX(0); }
@media (max-width: 575.98px) {
    .cart-drawer { width: 100vw; max-width: 100vw; border-left: 0; }
}
/* Neutralise the brand accent inside the cart — nothing pink here.
   Exclude .btn so the dark checkout button keeps its white label. */
.cart-drawer a:not(.btn),
.cart-drawer a:not(.btn):hover,
.cart-drawer .cart-drawer-remove { color: #1a1a1a; }
.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}
.cart-drawer-title {
    margin: 0;
    font-size: .95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.cart-drawer-close {
    background: none;
    border: 0;
    font-size: 1.05rem;
    line-height: 1;
    color: #1a1a1a;
    cursor: pointer;
    padding: .25rem;
}
.cart-drawer-body {
    flex: 1 1 auto;
    overflow-y: auto;
}
.cart-drawer-item {
    display: flex;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    border-bottom: 1px solid var(--line);
}
.cart-drawer-item-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
}
.cart-drawer-remove {
    background: none;
    border: 0;
    padding: 0;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: rgba(0, 0, 0, .5);
    text-decoration: underline;
    cursor: pointer;
}
.product-qty-stepper.cart-drawer-qty {
    gap: .4rem;
    border: 0;
    border-radius: 0;
    overflow: visible;
}
.product-qty-stepper.cart-drawer-qty .qty-btn {
    width: 1.7rem;
    height: 1.7rem;
    font-size: .95rem;
    background: transparent;
}
.product-qty-stepper.cart-drawer-qty .qty-btn:hover { background: transparent; color: var(--ink-muted); }
.product-qty-stepper.cart-drawer-qty .qty-value {
    min-width: 1.2rem;
    font-size: 1rem;
    border-left: 0;
    border-right: 0;
    background: transparent;
}
.cart-drawer-footer {
    border-top: 1px solid var(--line);
    padding: 1.5rem;
    flex-shrink: 0;
}
.cart-drawer-footer .btn {
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .82rem;
    font-weight: 600;
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
}
.cart-drawer-empty {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
}
.cart-drawer-empty-icon {
    color: rgba(0, 0, 0, .35);
    margin-bottom: 1rem;
}

/* Checkout — minimalist underline-input layout */
.checkout-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -.02em;
    line-height: .95;
    margin: 3.5rem 0 .75rem;
}
.cart-count {
    color: var(--ink-muted);
    font-size: 1rem;
    margin: 0 0 2.5rem;
}
.checkout-grid {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}
.checkout-form { flex: 1 1 60%; min-width: 0; }
.checkout-summary {
    flex: 1 1 40%;
    position: sticky;
    top: 6.5rem;
    padding-left: 4rem;
    border-left: 1px solid var(--line);
}
@media (max-width: 991.98px) {
    .checkout-grid { flex-direction: column; gap: 2.5rem; }
    /* Bag summary rides to the top as a collapsible total button; form sections follow. */
    .checkout-summary { position: static; width: 100%; padding-left: 0; border-left: 0; order: -1; }
    /* On the Cart page the order must read top-to-bottom: products, then shipping
       type, estimated total and the Pagar button (all inside the summary). Keep the
       summary in natural flow instead of hoisting it above the product list. */
    .checkout-summary.cart-summary { order: 0; }
    .checkout-summary-toggle {
        align-items: center;
        gap: .5rem;
        margin-bottom: 0;
        padding: 1.1rem 1.25rem;
        border: 1px solid var(--line);
        border-radius: 8px;
        cursor: pointer;
        font-size: 1.1rem;
    }
    /* Chevron sits at the far right of the header; total shows on its own row below.
       Prefixed with .checkout-summary to outrank the later base `display:none`. */
    .checkout-summary .checkout-summary-chevron {
        display: block;
        width: 30px;
        height: 30px;
        stroke-width: 2.4;
        margin-left: auto;
        flex-shrink: 0;
        transition: transform .2s ease;
    }
    .checkout-summary.open .checkout-summary-chevron { transform: rotate(180deg); }
    .checkout-summary-body { display: none; }
    .checkout-summary.open .checkout-summary-body {
        display: block;
        padding: 1.25rem;
        border: 1px solid var(--line);
        border-top: 0;
        border-radius: 0 0 8px 8px;
        margin-top: -1px;
    }
    .checkout-total { margin-top: 1.25rem; }

    /* Keep every checkout block within the viewport: the Mercado Pago / PayPal
       iframes and some form rows otherwise render wider than the screen, which
       pushes the whole page sideways and leaves big side gaps on mobile. */
    .checkout-page, .checkout-grid, .checkout-form, .checkout-summary,
    .checkout-section, .checkout-section-content { max-width: 100%; min-width: 0; }
    #mp-brick, #paypal-buttons { max-width: 100%; overflow: hidden; }
    #mp-brick iframe, #paypal-buttons iframe { max-width: 100% !important; width: 100% !important; }
}
.checkout-section {
    border-top: 1px solid var(--line);
}
.checkout-section:first-child { border-top: 0; }
.checkout-section-title { font-size: 1.6rem; font-weight: 600; margin: 0; padding: 1.75rem 0 1.25rem; }
.checkout-section-content { padding-bottom: 2.5rem; }
.checkout-subtitle { font-size: .95rem; font-weight: 600; margin: 1.5rem 0 1rem; }
.checkout-note { font-size: .85rem; color: rgba(0, 0, 0, .55); }
.checkout-note a { color: #1a1a1a; text-decoration: underline; }
.checkout-form .form-control {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    padding: .6rem 0;
    box-shadow: none;
}
.checkout-form .form-control:focus { border-bottom-color: #1a1a1a; box-shadow: none; }
.checkout-form .form-control::placeholder { color: rgba(0, 0, 0, .4); }
.checkout-form .form-control.input-error { border-bottom-color: #dc3545; }
.checkout-form .form-control.input-error::placeholder { color: #dc3545; }
/* Pickup date/time: bordered boxes with a sub-label so it's obvious on mobile
   that these are fields to fill, not bare underlines. accent-color recolors the
   native picker highlights from the browser blue to the site's black. */
.pickup-fields { display: flex; gap: .75rem; margin-top: .25rem; }
/* On mobile the two boxes are too narrow side by side, so stack them:
   date on top, time below. */
@media (max-width: 575.98px) {
    .pickup-fields { flex-direction: column; }
}
.pickup-field { flex: 1; min-width: 0; }
.pickup-field-label {
    display: block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: rgba(0, 0, 0, .5);
    margin-bottom: .35rem;
}
.pickup-input {
    /* Drop the native iOS inner border/shadow so only our clean 1px box shows. */
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    width: 100%;
    min-height: 3rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: .7rem .85rem;
    font-size: 16px;
    color: #1a1a1a;
    accent-color: #1a1a1a;
}
.pickup-input:focus { outline: none; border-color: #1a1a1a; }
.pickup-input::-webkit-calendar-picker-indicator {
    filter: grayscale(1) brightness(.2);
    cursor: pointer;
    opacity: .7;
}
.pickup-input::-webkit-calendar-picker-indicator:hover { opacity: 1; }
.checkout-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 0;
    border-top: 1px solid var(--line);
    cursor: pointer;
    margin: 0;
}
.checkout-option:last-of-type { border-bottom: 1px solid var(--line); }
.checkout-option input { margin: 0; flex-shrink: 0; }
.checkout-option-body { display: flex; flex-direction: column; min-width: 0; }
.checkout-option-desc { overflow-wrap: anywhere; }
.checkout-option-title { font-weight: 600; }
.checkout-option-desc { font-size: .8rem; color: rgba(0, 0, 0, .5); }
.checkout-option-price { margin-left: auto; font-weight: 500; }
.checkout-agree {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .85rem;
    color: rgba(0, 0, 0, .7);
    margin-bottom: 1.5rem;
    cursor: pointer;
}
.checkout-submit {
    width: 100%;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
    padding: 1rem;
}
.checkout-change-method {
    background: none;
    border: 0;
    padding: 0;
    margin-bottom: 1rem;
    font-size: .85rem;
    color: rgba(0, 0, 0, .6);
    cursor: pointer;
}
.checkout-change-method:hover { color: #000; }

/* Auth — login / register, minimalist full-viewport */
.auth-page {
    min-height: calc(100vh - 5.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}
.auth-form {
    width: 100%;
    max-width: 380px;
}
.auth-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -.02em;
    line-height: 1;
    margin-bottom: 2.5rem;
}
.auth-field { margin-bottom: 1.75rem; }
.auth-label {
    display: block;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(0, 0, 0, .5);
    margin-bottom: .5rem;
}
.auth-form .form-control {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    padding: .6rem 0;
    box-shadow: none;
}
.auth-form .form-control:focus { border-bottom-color: #1a1a1a; }
.auth-password { display: flex; align-items: baseline; gap: 1rem; }
.auth-password .form-control { flex: 1 1 auto; }
.auth-password-toggle {
    background: transparent;
    border: 0;
    padding: 0;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(0, 0, 0, .5);
    text-decoration: underline;
    flex-shrink: 0;
}
.auth-hint { font-size: .75rem; color: rgba(0, 0, 0, .45); margin-top: .5rem; }
.auth-form .checkout-submit { margin-top: 1rem; }
.auth-alt {
    text-align: center;
    font-size: .85rem;
    color: rgba(0, 0, 0, .6);
    margin: 1.25rem 0 0;
}
.auth-alt a { color: #1a1a1a; }
.checkout-summary-toggle {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    width: 100%;
    background: transparent;
    border: 0;
    padding: 0;
    margin-bottom: 1.75rem;
    text-align: left;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--ink);
    cursor: default;
}
.checkout-summary-chevron { display: none; }
.checkout-bag-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: .6rem 0;
    border-bottom: 1px solid var(--line);
}
.checkout-bag-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
    flex-shrink: 0;
}
.checkout-bag-info { flex: 1 1 auto; min-width: 0; }
.checkout-bag-name { font-weight: 600; font-size: .82rem; }
.checkout-bag-meta { font-size: .72rem; color: rgba(0, 0, 0, .5); margin-top: .2rem; }
.checkout-bag-price { font-weight: 600; font-size: .82rem; white-space: nowrap; }
.checkout-summary-rows { padding: 1.5rem 0; }
.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    padding: .4rem 0;
    color: rgba(0, 0, 0, .7);
    font-size: .9rem;
}
.checkout-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
    font-size: 1.6rem;
    font-weight: 700;
}
.order-confirmation {
    max-width: 520px;
    margin: 4rem auto;
    text-align: center;
}
.order-confirmation-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border: 1px solid #1a1a1a;
    border-radius: 999px;
    color: #1a1a1a;
    margin-bottom: 1.75rem;
}
/* Order detail header: brand-neutral order id + status pill (replaces Bootstrap's
   pink <code> and cyan/yellow contextual badges that clashed with the store palette). */
.order-id { color: var(--ink-muted); font-weight: 500; font-size: 1.1rem; }
.order-status-badge {
    display: inline-block;
    border-radius: 999px;
    padding: .4rem 1rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .02em;
}
.order-status-badge.is-positive  { background: var(--ink); color: #fff; }
.order-status-badge.is-pending   { background: #f4efe6; color: #8a7434; }
.order-status-badge.is-neutral   { background: #f2f2f0; color: var(--ink-soft); }
.order-status-badge.is-cancelled { background: #f7eaea; color: #9c2b2b; }

/* Back link on the order detail screen. */
.order-back-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--ink-soft);
    font-size: .9rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}
.order-back-link:hover { color: var(--ink); }
.order-back-link svg { width: 16px; height: 16px; }

/* Buyer portal orders list — store-native table (replaces the plain Bootstrap
   table + pink code/outline button that clashed with the rest of the site). */
.orders-heading { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; margin: 0 0 1.75rem; }
.orders-table-wrap {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}
.orders-table { width: 100%; border-collapse: collapse; margin: 0; }
.orders-table thead th {
    text-align: left;
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-muted);
    font-weight: 600;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line);
    background: #faf9f8;
    white-space: nowrap;
}
.orders-table tbody td {
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
    color: var(--ink);
}
.orders-table tbody tr:last-child td { border-bottom: 0; }
.orders-table tbody tr:hover { background: #f8f7f6; }
.orders-view-btn {
    display: inline-block;
    border: 1px solid var(--ink);
    color: var(--ink);
    border-radius: 999px;
    padding: .4rem 1.1rem;
    font-size: .85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}
.orders-view-btn:hover { background: var(--ink); color: #fff; }

.order-confirmation-title { font-size: clamp(1.8rem, 4vw, 2.75rem); margin: 0 0 1.5rem; }
.order-confirmation-text { color: rgba(0, 0, 0, .6); margin-bottom: .35rem; }
.order-confirmation-strong { color: #1a1a1a; font-weight: 600; }
.order-confirmation-card {
    max-width: 420px;
    margin: 2rem auto;
    padding: 1.5rem 1.75rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-align: left;
    background: #fff;
}
.order-confirmation-card-title {
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #71717a;
    font-weight: 600;
    margin: 0 0 1.1rem;
}
.order-confirmation-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: .55rem 0;
    border-bottom: 1px solid #f0efec;
}
.order-confirmation-item-info { display: flex; flex-direction: column; gap: .15rem; }
.order-confirmation-item-name { font-weight: 500; color: #1a1a1a; }
.order-confirmation-item-qty { font-size: .8rem; color: rgba(0, 0, 0, .5); }
.order-confirmation-item-price { font-weight: 500; white-space: nowrap; }
.order-confirmation-rows { margin-top: 1rem; display: flex; flex-direction: column; gap: .45rem; }
.order-confirmation-row {
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
    color: rgba(0, 0, 0, .65);
}
.order-confirmation-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-size: 1.25rem;
    font-weight: 700;
}
.order-confirmation-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.order-confirmation-btn { max-width: 320px; margin: 0; }
.store-empty {
    max-width: 460px;
    margin: 0 auto;
    padding: 4rem 1.5rem 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.store-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    background: #f2f2f0;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}
.store-empty-title {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 .75rem;
}
.store-empty-text {
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(0, 0, 0, .55);
    margin: 0 0 2rem;
}
.store-empty-btn { max-width: 320px; width: 100%; }
.cart-empty {
    min-height: calc(100vh - 5.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cart-empty-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: .5rem;
}

.cart-empty-text {
    font-size: 1.25rem;
    color: rgba(0, 0, 0, .5);
    margin-bottom: 2.5rem;
}

.cart-empty-products {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 3rem;
    text-align: left;
}

.cart-empty-btn {
    width: auto;
    min-width: 260px;
}

.cart-line {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.1rem 0;
    border-top: 1px solid var(--line);
}
.cart-line:first-child { border-top: 0; padding-top: 0; }
.cart-line-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--line);
    flex-shrink: 0;
}
.cart-line-info { flex: 1 1 auto; min-width: 0; }
.cart-line-name {
    display: inline-block;
    font-weight: 600;
    font-size: .85rem;
    color: #1a1a1a;
    text-decoration: none;
}
.cart-line-name:hover { color: #1a1a1a; text-decoration: underline; }
.cart-line-price { margin-top: .2rem; font-size: .8rem; color: rgba(0, 0, 0, .6); display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.cart-line-price-old { text-decoration: line-through; color: rgba(0, 0, 0, .4); }
.cart-line-price-now { color: var(--ink); font-weight: 600; }
.cart-line-price-badge { font-size: .62rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; color: #fff; background: var(--ink); border-radius: 999px; padding: .1rem .45rem; }
.cart-wholesale-alert { background: var(--ink); color: #fff; border-radius: 10px; padding: .6rem .85rem; font-size: .82rem; font-weight: 600; text-align: center; margin-bottom: 1rem; }
.cart-ship-select { margin-bottom: 1.25rem; }
.cart-ship-label { display: block; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: #71717a; font-weight: 600; margin-bottom: .6rem; }
.product-qty-stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    width: max-content;
}
.product-qty-stepper .qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: #fff;
    color: var(--ink);
    line-height: 1;
    cursor: pointer;
    transition: background .15s;
}
.product-qty-stepper .qty-btn:hover { background: #f2f2f0; }
.product-qty-stepper .qty-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    background: #fff;
}
.cart-line-qty { margin-top: .6rem; }
.cart-qty-input {
    width: 3.5rem;
    padding: .35rem .5rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    font-size: .9rem;
    text-align: center;
    -moz-appearance: textfield;
}
.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-qty-input:focus { outline: none; border-color: rgba(0,0,0,.3); }
/* iOS Safari zooms the viewport in when a focused input's font-size is under
   16px; the qty steppers (.9rem/.95rem) triggered that jump on mobile. Force
   16px on small screens so tapping the quantity field never zooms. */
@media (max-width: 991.98px) {
    .cart-qty-input, .bar-qty-input { font-size: 16px; }
}
.cart-toast {
    position: fixed;
    top: 5.75rem;
    right: 1.75rem;
    z-index: 1090;
    display: flex;
    align-items: center;
    gap: .55rem;
    background: var(--ink);
    color: #fff;
    padding: .9rem 1.4rem;
    border-radius: 4px;
    font-size: .85rem;
    letter-spacing: .04em;
    box-shadow: 0 10px 32px rgba(0, 0, 0, .2);
    animation: cart-toast-in .25s ease;
}
.cart-toast-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-size: .7rem;
    font-weight: 700;
}
@keyframes cart-toast-in {
    from { opacity: 0; transform: translateY(-14px); }
    to { opacity: 1; transform: translateY(0); }
}
.cart-line-end {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .5rem;
    flex-shrink: 0;
}
.cart-line-subtotal { font-weight: 600; font-size: .85rem; white-space: nowrap; }
.cart-line-remove {
    background: transparent;
    border: 0;
    padding: 0;
    color: rgba(0, 0, 0, .5);
    font-size: .75rem;
    text-decoration: underline;
    cursor: pointer;
}
.cart-line-remove:hover { color: #1a1a1a; }
.catalog-title { font-size: clamp(1.8rem, 4vw, 2.75rem); }
.catalog-grid {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}
.catalog-products { margin-top: 1rem; }
.catalog-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: .5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}
.catalog-sort-dropdown .dropdown-toggle {
    height: 38px;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
}
.catalog-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--ink-muted);
    cursor: pointer;
    transition: color .15s, border-color .15s;
}
.catalog-view svg { width: 20px; height: 20px; }
.catalog-view:hover { color: var(--ink); border-color: var(--ink-soft); }
.catalog-view.active { color: var(--ink); border-color: var(--ink); }
.catalog-sidebar {
    flex: 0 0 240px;
    position: sticky;
    top: 6.5rem;
    max-height: calc(100vh - 7.5rem);
    overflow-y: auto;
}
.catalog-main { flex: 1 1 auto; min-width: 0; }
.catalog-search {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    padding: .6rem 0;
    box-shadow: none;
    outline: none;
    margin-bottom: 2.5rem;
}
.catalog-search:focus { border-bottom-color: #1a1a1a; }
.catalog-search::placeholder { color: rgba(0, 0, 0, .4); }
.catalog-filter-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(0, 0, 0, .45);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: .5rem;
}
.catalog-cats { display: flex; flex-direction: column; }
.catalog-cat {
    background: transparent;
    border: 0;
    padding: .55rem 0;
    text-align: left;
    color: rgba(0, 0, 0, .6);
    font-size: .95rem;
    cursor: pointer;
    transition: color .15s ease;
}
.catalog-cat:hover { color: #1a1a1a; }
.catalog-cat.active { color: #1a1a1a; font-weight: 600; }
.catalog-cat-sub { padding-left: 1rem; font-size: .88rem; color: rgba(0, 0, 0, .45); }
.catalog-cat-sub.active { color: #1a1a1a; }
@media (max-width: 991.98px) {
    .catalog-grid { flex-direction: column; gap: 1.5rem; }
    .catalog-sidebar { position: static; flex-basis: auto; width: 100%; }
    /* The category list moves to the header hamburger on mobile; the catalog
       just keeps its search, toolbar (filters / sort) and products. */
    .catalog-cats { display: none; }
    .catalog-search { margin-bottom: 0; }
}

/* Admin panel — black-on-white theme. These rules are GLOBAL (not scoped)
   on purpose: NavLink and the child pages rendered in @Body do not receive
   the layout's CSS-isolation attribute, so scoped .razor.css never reaches
   them (that was the pink-text bug). */
/* Dashboard fills exactly the viewport; the main pane scrolls internally so
   the page itself never scrolls (no stray whitespace above/below content). */
.admin-shell { display: flex; height: 100vh; overflow: hidden; background: #f5f5f4; }

.admin-sidebar {
    display: flex;
    flex-direction: column;
    width: 256px;
    flex-shrink: 0;
    background: #f4f4f2;
    border-right: 1px solid #e6e6e3;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 1.5rem 1rem 1rem;
}

.admin-brand { display: block; padding: .25rem .5rem 1.5rem; }
.admin-brand img { height: 30px; width: auto; }

.admin-nav { flex: 1; display: flex; flex-direction: column; gap: 1.6rem; }
.admin-nav-group { display: flex; flex-direction: column; gap: .4rem; }

.admin-nav-label {
    text-transform: uppercase;
    font-size: .68rem;
    letter-spacing: .06em;
    font-weight: 600;
    color: #a3a3a0;
    padding: 0 .7rem;
    margin-bottom: .4rem;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem .7rem;
    border-radius: .6rem;
    border: 1px solid transparent;
    color: #71717a;
    font-size: .92rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .12s ease, color .12s ease, border-color .12s ease;
}

.admin-nav-link:hover { background: #eaeae7; color: #3f3f46; }
.admin-nav-link:hover .admin-nav-icon { color: #3f3f46; }

.admin-nav-link.active {
    background: #e4e4e0;
    border-color: #d6d6d2;
    color: #141414;
    font-weight: 600;
}
.admin-nav-link.active .admin-nav-icon { color: #141414; }

.admin-nav-icon {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
    color: #9a9a97;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-nav-sub { padding-left: 2.4rem; font-size: .88rem; }

.admin-store-link {
    margin-top: 1.6rem;
    border-top: 1px solid #dededa;
    padding-top: 1rem;
    border-radius: 0;
    border-left: 0; border-right: 0; border-bottom: 0;
}
.admin-store-link:hover { background: transparent; }

.admin-main { flex: 1; min-width: 0; padding: 2rem 2.25rem; background: #fff; height: 100vh; overflow-y: auto; }

.admin-main h1, .admin-main h2, .admin-main h3, .admin-main h4 { color: #141414; }

/* Bootstrap defaults <code> to pink (#d63384) — force admin codes/URLs to black. */
.admin-main code, .admin-main kbd, .admin-main pre { color: #111; font-weight: 600; }

.admin-main .btn-primary {
    --bs-btn-bg: #111;
    --bs-btn-border-color: #111;
    --bs-btn-hover-bg: #000;
    --bs-btn-hover-border-color: #000;
    --bs-btn-active-bg: #000;
    --bs-btn-active-border-color: #000;
    --bs-btn-disabled-bg: #333;
    --bs-btn-disabled-border-color: #333;
    --bs-btn-focus-shadow-rgb: 40, 40, 40;
    /* The base .btn-primary sets background-color directly (pink --accent), which the
       var overrides above can't beat. Set it directly so the admin button is black. */
    background-color: #111;
    border-color: #111;
}
.admin-main .btn-primary:hover,
.admin-main .btn-primary:focus-visible {
    background-color: #000;
    border-color: #000;
}
.admin-main .btn-primary:disabled {
    background-color: #333;
    border-color: #333;
}

.admin-main .btn-outline-primary {
    --bs-btn-color: #111;
    --bs-btn-border-color: #111;
    --bs-btn-hover-bg: #111;
    --bs-btn-hover-border-color: #111;
    --bs-btn-active-bg: #111;
    --bs-btn-active-border-color: #111;
    --bs-btn-focus-shadow-rgb: 40, 40, 40;
}

.admin-main a:not(.btn) { color: #111; }

/* "Crear nuevo" buttons — Emerald green, squared corners like the storefront. */
.admin-main .btn-create {
    background: #059669;
    border: 1px solid #059669;
    color: #fff;
    border-radius: 0;
    font-weight: 500;
    padding: .5rem 1.25rem;
    transition: background-color .12s ease, border-color .12s ease;
}
.admin-main .btn-create:hover,
.admin-main .btn-create:focus { background: #047857; border-color: #047857; color: #fff; }

/* Cancel button — white with black outline, square (mirrors .btn-create shape). */
.admin-main .btn-cancel {
    background: #fff;
    border: 1px solid #111;
    color: #111;
    border-radius: 0;
    font-weight: 500;
    padding: .5rem 1.25rem;
    transition: background-color .12s ease, color .12s ease;
}
.admin-main .btn-cancel:hover,
.admin-main .btn-cancel:focus { background: #111; border-color: #111; color: #fff; }

/* Admin confirmation modal — replaces the browser's default confirm() dialog. */
.admin-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: rgba(17, 17, 17, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: admin-modal-fade .12s ease;
}
.admin-modal {
    background: #fff;
    border: 1px solid #e4e4e2;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    width: 100%;
    max-width: 420px;
    padding: 1.75rem;
    animation: admin-modal-pop .14s ease;
}
.admin-modal-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #111;
    margin: 0 0 .6rem;
}
.admin-modal-message {
    color: #52525b;
    font-size: .95rem;
    line-height: 1.5;
    margin: 0 0 1.5rem;
}
.admin-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
}
.admin-modal .btn-cancel {
    background: #fff;
    border: 1px solid #111;
    color: #111;
    border-radius: 0;
    font-weight: 500;
    padding: .5rem 1.25rem;
    transition: background-color .12s ease, color .12s ease;
}
.admin-modal .btn-cancel:hover,
.admin-modal .btn-cancel:focus { background: #111; color: #fff; }
.admin-modal .admin-modal-confirm {
    background: #dc2626;
    border: 1px solid #dc2626;
    color: #fff;
    border-radius: 0;
    font-weight: 500;
    padding: .5rem 1.25rem;
    transition: background-color .12s ease, border-color .12s ease;
}
.admin-modal .admin-modal-confirm:hover,
.admin-modal .admin-modal-confirm:focus { background: #b91c1c; border-color: #b91c1c; color: #fff; }
@keyframes admin-modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes admin-modal-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

/* Admin inputs focus dark instead of the storefront pink accent. */
.admin-main .form-control:focus, .admin-main .form-select:focus {
    border-color: #111;
    box-shadow: 0 0 0 .2rem rgba(17, 17, 17, .12);
}

/* CMS tables — column titles: uppercase, gray, spaced (matches the design) */
.admin-main table thead th {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #9ca3af;
    border-bottom: 1px solid #ececea;
    padding-top: .5rem;
    padding-bottom: .9rem;
}
/* Roomier rows + softer separators */
.admin-main table tbody td {
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-color: #f0f0ee;
    vertical-align: middle;
    color: #1f2937;
}
.admin-main table tbody td code {
    color: #111;
    font-weight: 600;
    background: none;
    padding: 0;
    font-size: .9rem;
}

/* Status cells → colored dot + colored text (no filled pill) */
.admin-main .badge.bg-success,
.admin-main .badge.bg-secondary,
.admin-main .badge.bg-warning {
    background: none !important;
    padding: 0;
    font-size: .9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    vertical-align: middle;
}
.admin-main .badge.bg-success::before,
.admin-main .badge.bg-secondary::before,
.admin-main .badge.bg-warning::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.admin-main .badge.bg-success { color: #15803d !important; }
.admin-main .badge.bg-success::before { background: #22c55e; }
.admin-main .badge.bg-secondary { color: #71717a !important; }
.admin-main .badge.bg-secondary::before { background: #a1a1aa; }
.admin-main .badge.bg-warning { color: #b45309 !important; }
.admin-main .badge.bg-warning::before { background: #f59e0b; }

/* Inline label tags next to a name → soft rounded pills */
.admin-main .badge.bg-primary {
    background: #eef2ff !important;
    color: #4f46e5 !important;
    font-weight: 600;
    font-size: .75rem;
    border-radius: 6px;
    padding: .32em .6em;
}
.admin-main .badge.bg-info {
    background: #f4f4f5 !important;
    color: #3f3f46 !important;
    font-weight: 600;
    font-size: .75rem;
    border-radius: 6px;
    padding: .32em .6em;
}

/* Secondary row action ("Hacer default", etc.) → outlined pill */
.admin-main .table .btn-outline-secondary {
    border-radius: 8px;
    border-color: #e2e2e0;
    color: #3f3f46;
    background: #fff;
    font-weight: 500;
}
.admin-main .table .btn-outline-secondary:hover {
    background: #f4f4f2;
    color: #111;
    border-color: #d6d6d2;
}

/* Back link on detail/form pages — plain underlined text under the title. */
.admin-main .admin-back { display: inline-block; margin-top: .15rem; color: #52525b; font-size: .9rem; text-decoration: underline; }
.admin-main .admin-back:hover { color: #111; }

/* Row action icons — pencil (edit) and trash (delete, red). */
.admin-main a.admin-action,
.admin-main button.admin-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #e2e2e0;
    border-radius: 8px;
    background: #fff;
    color: #3f3f46;
    cursor: pointer;
    transition: background-color .12s ease, color .12s ease, border-color .12s ease;
}
.admin-main .admin-action + .admin-action { margin-left: .35rem; }
.admin-main .admin-action:hover { background: #f4f4f2; color: #111; border-color: #d6d6d2; }
.admin-main .admin-action svg { width: 17px; height: 17px; }
.admin-main a.admin-action.admin-action-danger,
.admin-main button.admin-action.admin-action-danger { color: #dc2626; border-color: #f0caca; }
.admin-main .admin-action.admin-action-danger:hover { background: #fdecec; color: #b91c1c; border-color: #e6b3b3; }

.admin-main .text-bg-primary { background-color: #141414 !important; color: #fff !important; }

.admin-main .card {
    border: 1px solid #ececec;
    border-radius: 14px;
}

.admin-main .card .card-header {
    background: #fff;
    border-bottom: 1px solid #f0f0ee;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

@media (max-width: 767.98px) {
    .admin-shell { flex-direction: column; height: auto; overflow: visible; }
    .admin-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: 0;
        border-bottom: 1px solid #ececec;
    }
    .admin-main { padding: 1.5rem 1.15rem; height: auto; overflow-y: visible; }
}

/* About / Nosotras page ---------------------------------------------------- */
.about-page {
    --about-blue: #c5d0d8;
    --about-sand: #eceee2;
    --about-taupe: #b6adab;
    --about-cream: #f0efeb;
}

.about-page section {
    padding: 5rem 0;
}

.about-eyebrow {
    display: block;
    font-size: .75rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--about-taupe);
    margin-bottom: 1rem;
}

/* Hero */
.about-hero-title {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
    line-height: 1.05;
    margin: 0 0 1.25rem;
    max-width: 14ch;
}

.about-hero-subtitle {
    font-size: 1.05rem;
    color: #555;
    max-width: 46ch;
    margin-bottom: 3rem;
}

.about-hero-media {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--about-cream);
}

.about-hero-media img,
.about-future-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Story */
.about-story {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    border-top: 1px solid #e6e4de;
}

.about-quote {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    line-height: 1.3;
    margin: 0 0 2rem;
}

.about-story-body p {
    color: #555;
    max-width: 60ch;
    margin-bottom: 1.25rem;
}

/* Dark band */
.about-band {
    background: #0d0d0d;
    color: #fff;
    text-align: center;
    margin: 0 calc(50% - 50vw);
    width: 100vw;
}

.about-band-quote {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    line-height: 1.35;
    max-width: 24ch;
    margin: 0 auto;
}

/* Values */
.about-values {
    border-top: 1px solid #e6e4de;
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.about-value {
    border-top: 1px solid #111;
    padding-top: 1.5rem;
}

.about-value-num {
    display: block;
    color: var(--about-taupe);
    margin-bottom: 1.5rem;
}

.about-value-title {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    font-size: 1.6rem;
    margin-bottom: .75rem;
}

.about-value p {
    color: #555;
    margin: 0;
}

/* Future */
.about-future {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
}

.about-future-panel {
    background: var(--about-blue);
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-future-title {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.1;
    margin: 0 0 1.25rem;
}

.about-future-panel p {
    color: #3c4348;
    max-width: 40ch;
    margin: 0;
}

.about-future-media {
    min-height: 340px;
    background: #ececec;
}
.about-future-media img {
    object-fit: contain;
    object-position: center;
    padding: 2rem;
    box-sizing: border-box;
}

/* CTA */
.about-cta {
    text-align: center;
}

.about-cta-title {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    margin-bottom: 2rem;
}

.about-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.about-cta-btn {
    padding: .7rem 1.75rem;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .8rem;
}

@media (max-width: 767.98px) {
    .about-page section { padding: 3rem 0; }
    .about-story,
    .about-values-grid,
    .about-future {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .about-future-panel { padding: 2.5rem 1.5rem; }
    .about-future-media { min-height: 260px; }
}

/* ===== Admin dashboard (palette c5d0d8 / eceee2 / b6adab / f0efeb) ===== */
.dash-kpi {
    border-radius: 16px;
    padding: 1.25rem 1.35rem;
    height: 100%;
    color: #2b2b2b;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.dash-kpi-1 { background: #c5d0d8; }
.dash-kpi-2 { background: #eceee2; }
.dash-kpi-3 { background: #b6adab; }
.dash-kpi-4 { background: #f0efeb; }
.dash-kpi-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; opacity: .7; }
.dash-kpi-value { font-size: 2rem; font-weight: 700; line-height: 1.1; }
.dash-kpi-sub { font-size: .78rem; opacity: .7; }

.dash-card {
    background: #fff;
    border: 1px solid #e4e4e2;
    border-radius: 16px;
    overflow: hidden;
}
.dash-card-head { padding: 1rem 1.25rem; border-bottom: 1px solid #eee; }

.dash-chart {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    padding: 1.5rem 1.25rem 1rem;
    min-height: 260px;
}
.dash-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.dash-bar-value { font-size: .72rem; color: #71717a; }
.dash-bar-track { width: 100%; height: 170px; display: flex; align-items: flex-end; background: #f6f6f4; border-radius: 8px; }
.dash-bar { width: 100%; background: #c5d0d8; border-radius: 8px 8px 0 0; min-height: 3px; transition: height .3s ease; }
.dash-bar-current { background: #b6adab; }
.dash-bar-label { font-size: .8rem; font-weight: 600; text-transform: uppercase; color: #52525b; }
.dash-bar-orders { font-size: .7rem; color: #a1a1aa; }

.dash-list { list-style: none; margin: 0; padding: .35rem 0; }
.dash-list li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .6rem 1.25rem; border-bottom: 1px solid #f2f2f0; }
.dash-list li:last-child { border-bottom: 0; }
.dash-list-main { display: flex; flex-direction: column; min-width: 0; }
.dash-list-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-list-sub { font-size: .75rem; color: #a1a1aa; }
.dash-list-end { display: flex; flex-direction: column; align-items: flex-end; gap: .1rem; white-space: nowrap; }
.dash-badge-soft { background: #eceee2; color: #52525b; border-radius: 999px; padding: .1rem .55rem; font-size: .72rem; font-weight: 600; }

.dash-table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; color: #a1a1aa; border-bottom: 1px solid #eee; }
.dash-table td { vertical-align: middle; }

/* Dashboard country dropdown — storefront style */
.dash-country-dropdown .dropdown-toggle {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    padding: .4rem .9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
}
.dash-country-dropdown .dropdown-toggle:hover { background: #f6f6f4; }

/* Dashboard Excel export — palette green (eceee2) */
.dash-btn-export {
    background: #eceee2;
    border: 1px solid #d8dcc9;
    color: #52525b;
    font-weight: 600;
}
.dash-btn-export:hover { background: #e1e4d3; color: #3f3f46; }

/* Admin category selects styled as the dashboard pill dropdown */
.admin-pill-select {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding-left: .9rem;
    font-weight: 500;
    color: var(--ink);
}
.admin-pill-select:hover { background-color: #f6f6f4; }
.admin-pill-select:focus {
    border-color: rgba(0, 0, 0, .2);
    box-shadow: none;
}

.contact-subject-cell {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.contact-subject-full {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.6;
}

.manual-toc {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}
.manual-toc-item {
    display: inline-flex;
    align-items: center;
    padding: .45rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: .9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}
.manual-toc-item:hover {
    background: #f6f6f4;
    border-color: #d9d9d5;
    color: var(--ink);
}
.manual-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    scroll-margin-top: 2rem;
}
.manual-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--ink);
}
.manual-steps {
    padding-left: 1.2rem;
    line-height: 1.75;
}
.manual-steps > li {
    margin-bottom: .5rem;
}
.manual-steps ul {
    margin-top: .35rem;
    margin-bottom: .35rem;
}
.manual-tip {
    margin-top: 1.25rem;
    padding: 1rem 1.15rem;
    background: #f6f6f4;
    border: 1px solid var(--line);
    border-left: 3px solid var(--ink);
    border-radius: 10px;
    font-size: .92rem;
    line-height: 1.65;
}

.manual-video-player {
    display: block;
    width: 100%;
    max-width: 480px;
    max-height: 270px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #000;
}

/* --- Buyer account portal (left sidebar + right content) --- */
.account-shell {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    margin: 1.5rem 0 3rem;
}
.account-sidebar {
    flex: 0 0 260px;
    position: sticky;
    top: 7rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 1.5rem 1.25rem;
}
.account-sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    padding: 0 .4rem;
}
.account-nav { display: flex; flex-direction: column; gap: .35rem; }
.account-nav-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .75rem;
    border-radius: .6rem;
    border: 1px solid transparent;
    color: #52525b;
    font-size: .95rem;
    text-decoration: none;
    transition: background .12s, color .12s;
}
.account-nav-icon { width: 20px; height: 20px; flex-shrink: 0; color: inherit; }
.account-nav-link:hover { background: #f2f2f0; color: #141414; }
.account-nav-link.active {
    background: #f2f2f0;
    border-color: #e4e4e2;
    color: #141414;
    font-weight: 600;
}
.account-content { flex: 1 1 auto; min-width: 0; }
.account-panel { max-width: 760px; }
.account-form { background: #fff; }
.account-intro { color: #71717a; margin: -.75rem 0 1.5rem; }

/* Saved addresses / billing profiles shown as a grid of boxes, side by side */
.account-card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.account-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid #e4e4e2;
    border-radius: 12px;
    padding: 1.25rem;
    background: #fff;
}
.account-card-body > div { line-height: 1.5; }
.account-card-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.account-subheading { font-size: 1.15rem; font-weight: 700; margin: 2rem 0 1rem; }

/* Gate shown instead of the account portal until the email is verified */
.account-verify { display: flex; justify-content: center; padding: 2rem 0 4rem; }
.account-verify-card {
    max-width: 520px;
    width: 100%;
    text-align: center;
    border: 1px solid #e4e4e2;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    background: #fff;
}
.account-verify-icon { width: 48px; height: 48px; color: #0d0d0d; margin-bottom: 1rem; }
.account-verify-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 1rem; }
.account-verify-text { color: #71717a; line-height: 1.6; margin-bottom: .75rem; }
.account-verify-email { font-weight: 600; word-break: break-all; margin-bottom: 1rem; }
.account-verify-code {
    display: flex;
    gap: .5rem;
    margin: 1.25rem 0 .5rem;
}
.account-verify-code .form-control { flex: 1; }
.account-verify-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    margin: 1.5rem 0 1rem;
}
.account-verify-shop { display: inline-block; color: #71717a; text-decoration: underline; }

@media (max-width: 767.98px) {
    .account-shell { flex-direction: column; gap: 1.5rem; }
    .account-sidebar { position: static; width: 100%; flex-basis: auto; }
    .account-nav { flex-direction: row; flex-wrap: wrap; }
}
