/* ==========================================================================
   Customer Portal – modern storefront theme
   Built on Bootstrap 5.3. Change the brand in the :root block below and the
   whole site follows.
   ========================================================================== */

:root {
    /* Brand – edit these to re-colour the site */
    --brand: #1f4fd8;
    --brand-600: #1a41b3;
    --brand-700: #153390;
    --brand-50: #eef3ff;
    --brand-100: #dbe5ff;
    --accent: #ff7a1a;
    --accent-50: #fff1e6;

    /* Neutrals */
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --line: #e6e9ef;
    --bg: #f6f7fb;
    --surface: #ffffff;

    /* Status */
    --ok: #12a05c;
    --ok-50: #e6f7ee;
    --warn: #d98a00;
    --warn-50: #fff4db;
    --bad: #dc3545;
    --bad-50: #fde8ea;
    --frost: #0b78a8;
    --frost-50: #e2f4fb;

    /* Shape & depth */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px -8px rgba(15, 23, 42, .10);
    --shadow-hover: 0 2px 6px rgba(15, 23, 42, .06), 0 20px 40px -12px rgba(15, 23, 42, .22);
    --ring: 0 0 0 4px rgba(31, 79, 216, .16);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --transition: all .25s var(--ease);

    /* Type */
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;

    /* Bootstrap bridge */
    --bs-primary: var(--brand);
    --bs-primary-rgb: 31, 79, 216;
    --bs-body-font-family: var(--font-body);
    --bs-body-color: var(--ink-2);
    --bs-body-bg: var(--bg);
    --bs-border-color: var(--line);
    --bs-link-color: var(--brand);
    --bs-link-hover-color: var(--brand-600);
    --bs-link-color-rgb: 31, 79, 216;
    --bs-border-radius: var(--radius-sm);
    --bs-border-radius-lg: var(--radius);
    --bs-primary-bg-subtle: var(--brand-50);
    --bs-primary-text-emphasis: var(--brand-700);
}

/* ---- Base ---- */
html { font-size: 15px; scroll-behavior: smooth; }
@media (min-width: 768px) { html { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
    overflow-x: clip;
    font-family: var(--font-body);
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .display-4, .display-5 {
    font-family: var(--font-display);
    color: var(--ink);
    letter-spacing: -.02em;
}
a { transition: color .15s ease; }
::selection { background: var(--brand-100); color: var(--brand-700); }
.text-muted { color: var(--muted) !important; }
.text-primary { color: var(--brand) !important; }
.bg-primary { background-color: var(--brand) !important; }
.bg-light { background-color: var(--bg) !important; }
.bg-primary-subtle { background-color: var(--brand-50) !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 700 !important; }

:focus-visible { outline: 3px solid rgba(31, 79, 216, .45); outline-offset: 2px; border-radius: 6px; }

.section { padding: 4.5rem 0; }
.section-sm { padding: 3rem 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin: 0; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--brand); background: var(--brand-50);
    padding: .4rem .85rem; border-radius: 999px; margin-bottom: 1rem;
}
.link-arrow { font-weight: 600; color: var(--brand); text-decoration: none; white-space: nowrap; }
.link-arrow i { transition: transform .2s var(--ease); display: inline-block; }
.link-arrow:hover i { transform: translateX(4px); }

/* ==========================================================================
   Announcement bar
   ========================================================================== */
.top-bar {
    background: var(--ink);
    color: rgba(255, 255, 255, .78);
    font-size: .8rem;
    padding: .45rem 0;
    position: relative;
    z-index: 1031;
}
.top-bar a { color: inherit; text-decoration: none; }
.top-bar a:hover { color: #fff; }

.seg {
    display: inline-flex; padding: 2px; margin: 0;
    background: rgba(255, 255, 255, .1); border-radius: 999px;
}
.seg button {
    border: 0; background: transparent; color: rgba(255, 255, 255, .72);
    font: 600 .72rem/1 var(--font-body); padding: .38rem .8rem; border-radius: 999px;
    cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.seg button:hover { color: #fff; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); }

/* ==========================================================================
   Header / navbar
   ========================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 1030;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.site-header .navbar { padding: .7rem 0; background: transparent !important; box-shadow: none; }

.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink) !important; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--brand) 0%, #5b7cff 100%);
    color: #fff; font: 800 1.05rem var(--font-display);
    box-shadow: 0 6px 14px -4px rgba(31, 79, 216, .55);
}
.brand-name { font: 800 1.15rem var(--font-display); letter-spacing: -.02em; }

.site-header .nav-link {
    font-weight: 600; font-size: .92rem; color: var(--ink-2) !important;
    padding: .5rem .9rem !important; border-radius: 999px; transition: var(--transition);
}
.site-header .nav-link:hover { background: var(--bg); color: var(--ink) !important; }
.site-header .nav-link.active { background: var(--brand-50); color: var(--brand) !important; }
.site-header .navbar-toggler { border: 1px solid var(--line); border-radius: 12px; padding: .45rem .65rem; }
.site-header .navbar-toggler:focus { box-shadow: var(--ring); }
.site-header .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='%230f172a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 8h22M4 15h22M4 22h22'/%3e%3c/svg%3e");
}

.search-pill { position: relative; flex: 1 1 280px; max-width: 420px; margin: 0 1rem; }
.search-pill input {
    width: 100%; border: 1px solid var(--line); background: var(--bg); color: var(--ink);
    border-radius: 999px; padding: .62rem 1rem .62rem 2.6rem; font-size: .9rem; transition: var(--transition);
}
.search-pill input::placeholder { color: #94a3b8; }
.search-pill input:focus { outline: 0; background: #fff; border-color: var(--brand); box-shadow: var(--ring); }
.search-pill .bi { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }

.icon-btn {
    position: relative; width: 42px; height: 42px; display: inline-grid; place-items: center;
    border-radius: 50%; color: var(--ink) !important; background: transparent; transition: var(--transition); text-decoration: none;
}
.icon-btn:hover { background: var(--bg); }
.cart-badge {
    position: absolute; top: 1px; right: 0; min-width: 19px; height: 19px; padding: 0 5px;
    display: inline-grid; place-items: center; border-radius: 999px;
    background: var(--accent); color: #fff; font: 700 .68rem/1 var(--font-body);
    border: 2px solid #fff; transform: none !important;
}
.account-chip {
    display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .8rem .3rem .3rem;
    border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink) !important;
    font-weight: 600; font-size: .88rem; text-decoration: none;
}
.account-chip:hover { border-color: #cbd5e1; box-shadow: var(--shadow-xs); }
.account-chip::after { margin-left: .2rem; }
.avatar {
    width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    background: var(--brand-50); color: var(--brand); font: 700 .8rem var(--font-display);
}
.site-header .dropdown-menu {
    border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-hover);
    padding: .4rem; min-width: 220px; margin-top: .6rem !important;
}
.site-header .dropdown-item { border-radius: 8px; padding: .55rem .8rem; font-weight: 500; font-size: .92rem; color: var(--ink-2); }
.site-header .dropdown-item:hover { background: var(--bg); color: var(--ink); }

@media (max-width: 991.98px) {
    .site-header .navbar-collapse { padding: 1rem 0 .5rem; }
    .search-pill { max-width: none; margin: .75rem 0; flex-basis: 100%; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn { font-weight: 600; border-radius: 999px; padding: .6rem 1.3rem; transition: var(--transition); }
.btn-lg { padding: .85rem 1.8rem; font-size: 1rem; }
.btn-sm { padding: .4rem .9rem; font-size: .85rem; }
.btn:focus-visible { box-shadow: var(--ring); outline: 0; }

.btn-primary {
    background: var(--brand); border-color: var(--brand); color: #fff;
    box-shadow: 0 6px 16px -6px rgba(31, 79, 216, .65);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background: var(--brand-600) !important; border-color: var(--brand-600) !important; color: #fff;
    transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(31, 79, 216, .7);
}
.btn-primary:disabled { background: #93a7e8; border-color: #93a7e8; box-shadow: none; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: #ec6a0a; border-color: #ec6a0a; color: #fff; transform: translateY(-1px); }
.btn-outline-primary { color: var(--brand); border: 1.5px solid var(--brand-100); background: #fff; }
.btn-outline-primary:hover, .btn-outline-primary:active { background: var(--brand) !important; border-color: var(--brand) !important; color: #fff; }
.btn-outline-secondary { color: var(--ink-2); border: 1.5px solid var(--line); background: #fff; }
.btn-outline-secondary:hover { background: var(--bg); border-color: #cbd5e1; color: var(--ink); }
.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light:hover { background: #f1f5f9; border-color: #f1f5f9; color: var(--ink); transform: translateY(-1px); }
.btn-outline-light { border: 1.5px solid rgba(255, 255, 255, .45); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-success { background: var(--ok); border-color: var(--ok); }
.btn-outline-danger, .btn-danger { border-radius: 999px; }

.add-to-cart-btn, .add-to-cart-detail-btn { font-weight: 700; }
.add-to-cart-btn:active, .add-to-cart-detail-btn:active { transform: scale(.94); }
.add-to-cart-btn {
    width: 42px; height: 42px; padding: 0 !important; border-radius: 50% !important;
    display: inline-grid; place-items: center; flex-shrink: 0; font-size: 1.1rem;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-control, .form-select {
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .65rem .9rem;
    color: var(--ink); background-color: #fff; transition: var(--transition);
}
.form-control-sm, .form-select-sm { padding: .45rem .75rem; font-size: .88rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: var(--ring); }
.form-label { font-weight: 600; color: var(--ink); font-size: .88rem; margin-bottom: .4rem; }
.form-check-input { border-width: 1.5px; border-color: #cbd5e1; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { box-shadow: var(--ring); border-color: var(--brand); }
.input-group > .form-control, .input-group > .btn { border-radius: var(--radius-sm); }
.input-group-text { background: var(--bg); border: 1.5px solid var(--line); }
.invalid-feedback, .text-danger.field-validation-error, .field-validation-error { font-size: .82rem; }

/* ==========================================================================
   Cards, alerts, tables, misc Bootstrap components
   ========================================================================== */
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card.border-0 { border: 1px solid var(--line) !important; }
.shadow-sm { box-shadow: var(--shadow) !important; }
.card-header { background: var(--bg); border-bottom: 1px solid var(--line); font-weight: 700; }

.alert { border: 0; border-radius: var(--radius-sm); font-weight: 500; }
.alert-success { background: var(--ok-50); color: #0b6e3f; }
.alert-danger { background: var(--bad-50); color: #a21d2b; }
.alert-warning { background: var(--warn-50); color: #8a5a00; }
.alert-info { background: var(--frost-50); color: #075b80; }

.table { --bs-table-bg: transparent; color: var(--ink-2); }
.table > :not(caption) > * > * { padding: .85rem 1rem; border-bottom-color: var(--line); }
.table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; background: var(--bg); border-bottom: 1px solid var(--line); }

.badge { font-weight: 600; border-radius: 999px; padding: .4em .75em; }
.badge.bg-primary-subtle { color: var(--brand) !important; }
.badge.bg-secondary-subtle { color: var(--ink-2) !important; background: #eef1f6 !important; }
.badge.bg-info { background: var(--frost-50) !important; color: var(--frost) !important; }
.badge.bg-danger { background: var(--bad-50) !important; color: #a21d2b !important; }
.badge.bg-warning { background: var(--warn-50) !important; color: #8a5a00 !important; }
.badge.bg-success { background: var(--ok-50) !important; color: #0b6e3f !important; }

.breadcrumb { background: transparent; padding: 0; margin-bottom: 1.5rem; font-size: .88rem; }
.breadcrumb-item a { color: var(--muted); text-decoration: none; font-weight: 500; }
.breadcrumb-item a:hover { color: var(--brand); }
.breadcrumb-item.active { color: var(--ink); font-weight: 600; }
.breadcrumb-item + .breadcrumb-item::before { color: #cbd5e1; }

.pagination { gap: .35rem; }
.pagination .page-link {
    border: 1.5px solid var(--line); color: var(--ink-2); border-radius: 12px !important;
    min-width: 42px; text-align: center; font-weight: 600; background: #fff;
}
.pagination .page-link:hover { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand); }
.pagination .page-item.active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .page-item.disabled .page-link { background: var(--bg); color: #b6bfcc; }

/* ==========================================================================
   Home – hero
   ========================================================================== */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(900px 480px at 85% -10%, rgba(91, 124, 255, .55), transparent 60%),
        radial-gradient(700px 420px at -5% 110%, rgba(255, 122, 26, .30), transparent 60%),
        linear-gradient(160deg, #0b1535 0%, #0f1f55 55%, #142a73 100%);
    padding: 5rem 0 6rem;
}
.hero::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow { background: rgba(255, 255, 255, .12); color: #cfdcff; backdrop-filter: blur(6px); }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.035em; margin-bottom: 1.1rem; }
.hero h1 .hl { background: linear-gradient(90deg, #8fb0ff, #ffb778); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: rgba(226, 232, 255, .82); font-size: 1.15rem; max-width: 34rem; }

.hero-search {
    display: flex; gap: .5rem; padding: .45rem; margin: 2rem 0 1.25rem; max-width: 34rem;
    background: #fff; border-radius: 999px; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .5);
}
.hero-search input { flex: 1; border: 0; background: transparent; padding: .6rem 1rem; font-size: 1rem; color: var(--ink); min-width: 0; }
.hero-search input:focus { outline: 0; }
.hero-search .btn { padding-inline: 1.5rem; }

.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: rgba(226, 232, 255, .8); font-size: .9rem; font-weight: 500; }
.hero-points i { color: #7ee2a8; margin-right: .35rem; }

.hero-mosaic { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 460px; margin-inline: auto; padding-bottom: 32px; }
.hero-mosaic .tile {
    position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden;
    background: #fff; box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .6);
    transform: translateY(0); transition: transform .5s var(--ease);
}
.hero-mosaic .tile:nth-child(even) { transform: translateY(32px); }
.hero-mosaic .tile:hover { transform: translateY(-6px) scale(1.02); z-index: 2; }
.hero-mosaic .tile:nth-child(even):hover { transform: translateY(26px) scale(1.02); }
.hero-mosaic .tile .img-frame { position: absolute; inset: 0; }
.hero-float {
    position: absolute; left: -10px; bottom: 6%; z-index: 3; display: flex; align-items: center; gap: .75rem;
    background: #fff; color: var(--ink); padding: .8rem 1.1rem; border-radius: var(--radius);
    box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .55); font-size: .85rem; line-height: 1.25;
}
.hero-float .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ok-50); color: var(--ok); font-size: 1.2rem; }
.hero-float strong { display: block; font-family: var(--font-display); color: var(--ink); }
@media (max-width: 991.98px) { .hero { padding: 3rem 0 5rem; } }

/* ---- Trust strip ---- */
.trust { margin-top: -2.75rem; position: relative; z-index: 3; }
.trust-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); overflow: hidden;
}
.trust-item { display: flex; align-items: center; gap: .9rem; padding: 1.35rem 1.5rem; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-size: 1.3rem; flex-shrink: 0; }
.trust-item h6 { margin: 0; font-size: .95rem; font-weight: 700; }
.trust-item small { color: var(--muted); }
@media (max-width: 991.98px) {
    .trust-grid { grid-template-columns: 1fr 1fr; }
    .trust-item:nth-child(2n) { border-right: 0; }
    .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 575.98px) {
    .trust-item { flex-direction: column; align-items: flex-start; gap: .6rem; padding: 1rem; }
    .trust-item .ic { width: 40px; height: 40px; font-size: 1.1rem; }
    .trust-item small { font-size: .78rem; }
}

/* ---- Category tiles ---- */
.category-card {
    --h: 215;
    position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2.25rem;
    min-height: 168px; padding: 1.35rem; border-radius: var(--radius); overflow: hidden;
    text-decoration: none; color: var(--ink); border: 1px solid hsl(var(--h) 55% 90%);
    background: linear-gradient(145deg, hsl(var(--h) 90% 97%) 0%, hsl(var(--h) 80% 92%) 100%);
    transition: var(--transition);
}
.category-card::after {
    content: ''; position: absolute; width: 150px; height: 150px; right: -40px; bottom: -50px; border-radius: 50%;
    background: hsl(var(--h) 80% 86% / .7); transition: transform .5s var(--ease);
}
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); color: var(--ink); }
.category-card:hover::after { transform: scale(1.35); }
.category-card .cat-icon {
    position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
    background: #fff; color: hsl(var(--h) 70% 38%); font-size: 1.4rem; box-shadow: var(--shadow-xs);
}
.category-card .cat-body { position: relative; z-index: 1; }
.category-card h6 { margin: 0; font-weight: 700; font-size: 1.02rem; }
.category-card small { color: hsl(var(--h) 25% 38%); font-weight: 500; }
.category-card .cat-go {
    position: absolute; z-index: 1; right: 1.1rem; top: 1.1rem; width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center; background: #fff; color: var(--ink); opacity: 0; transform: translate(-6px, 6px); transition: var(--transition);
}
.category-card:hover .cat-go { opacity: 1; transform: none; }

/* ---- How it works ---- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.75rem; }
.step::before {
    counter-increment: step; content: counter(step); display: grid; place-items: center;
    width: 40px; height: 40px; margin-bottom: 1.1rem; border-radius: 12px;
    background: var(--ink); color: #fff; font: 800 1rem var(--font-display);
}
.step h5 { font-weight: 700; margin-bottom: .4rem; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 767.98px) { .steps { grid-template-columns: 1fr; } }

/* ---- CTA ---- */
.cta {
    position: relative; overflow: hidden; border-radius: var(--radius-lg); color: #fff; text-align: center; padding: 4rem 1.5rem;
    background:
        radial-gradient(600px 300px at 90% 0%, rgba(255, 122, 26, .45), transparent 60%),
        linear-gradient(135deg, var(--brand-700), var(--brand));
}
.cta h3 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
.cta p { color: rgba(255, 255, 255, .85); max-width: 36rem; margin: .75rem auto 1.75rem; }

.hours-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); height: 100%; }
.hours-card .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-size: 1.25rem; flex-shrink: 0; }
.hours-card h5 { font-size: 1.05rem; font-weight: 700; margin-bottom: .25rem; }

/* ==========================================================================
   Product images (photo or generated category tile)
   ========================================================================== */
.img-frame { position: relative; width: 100%; height: 100%; overflow: hidden; background: #f3f5f9; }
.img-frame > img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10%;
    transition: transform .6s var(--ease); background: #fff;
}
.img-tile {
    --h: 215;
    position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
    background: linear-gradient(145deg, hsl(var(--h) 85% 96%), hsl(var(--h) 75% 89%));
}
.img-tile::before, .img-tile::after { content: ''; position: absolute; border-radius: 50%; background: hsl(var(--h) 80% 85% / .6); }
.img-tile::before { width: 70%; aspect-ratio: 1; right: -18%; top: -22%; }
.img-tile::after { width: 52%; aspect-ratio: 1; left: -14%; bottom: -20%; background: hsl(var(--h) 80% 82% / .45); }
.img-tile .tile-icon {
    position: relative; z-index: 1; width: 34%; aspect-ratio: 1; min-width: 44px; display: grid; place-items: center;
    border-radius: 28%; background: #fff; color: hsl(var(--h) 70% 38%); font-size: clamp(1.4rem, 3.4vw, 2.2rem);
    box-shadow: 0 10px 24px -10px hsl(var(--h) 60% 35% / .5);
}
.product-card:hover .img-frame > img { transform: scale(1.06); }

/* ==========================================================================
   Product cards
   ========================================================================== */
.product-card {
    position: relative; display: flex; flex-direction: column; height: 100%;
    background: #fff; border: 1px solid var(--line) !important; border-radius: var(--radius);
    overflow: hidden; transition: var(--transition); box-shadow: none !important;
}
.product-card:hover { transform: translateY(-5px); border-color: transparent !important; box-shadow: var(--shadow-hover) !important; }
.product-image-container { position: relative; aspect-ratio: 1 / 1; display: block; background: #f3f5f9; }
.product-image-container .img-frame { position: absolute; inset: 0; }
.product-badge, .product-badge-right { position: absolute; top: .7rem; z-index: 3; font-size: .7rem; backdrop-filter: blur(6px); }
.product-badge { left: .7rem; }
.product-badge-right { right: .7rem; }
.chip {
    display: inline-flex; align-items: center; gap: .35rem; padding: .32rem .65rem; border-radius: 999px;
    font: 700 .68rem/1 var(--font-body); letter-spacing: .02em; background: rgba(255, 255, 255, .94); color: var(--ink);
    box-shadow: var(--shadow-xs);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.low { color: #8a5a00; background: #fff4db; }
.chip.out { color: #a21d2b; background: #fde8ea; }
.chip.frozen { color: var(--frost); background: var(--frost-50); }

.product-card .card-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: .3rem; }
.product-card .product-title {
    font: 700 .98rem/1.35 var(--font-display); color: var(--ink); letter-spacing: -.01em; margin: 0 0 .25rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em;
}
.product-card a:hover .product-title { color: var(--brand); }
.product-meta { font-size: .78rem; color: var(--muted); }
.product-price-row { margin-top: auto; padding-top: .9rem; display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; }
.price { font: 800 1.35rem/1 var(--font-display); color: var(--ink); letter-spacing: -.02em; }
.price-note { display: block; margin-top: .3rem; font-size: .72rem; color: var(--muted); font-weight: 500; }

.stock-badge-in { background: var(--ok-50); color: #0b6e3f; }
.stock-badge-low { background: var(--warn-50); color: #8a5a00; }
.stock-badge-out { background: var(--bad-50); color: #a21d2b; }
.frozen-badge { background: var(--frost-50); color: var(--frost); }

/* Product detail */
.detail-gallery { position: sticky; top: 110px; }
.detail-image { position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #f3f5f9; }
.detail-image .img-frame > img { padding: 8%; }
.detail-image .img-tile .tile-icon { width: 26%; font-size: clamp(2rem, 6vw, 3.6rem); }
.price-display { background: var(--bg); border-radius: var(--radius); padding: 1.5rem; }
.price-display .price-label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.price-display .price-value { font: 800 2rem var(--font-display); color: var(--ink); }
.price-display .price-vat-info { font-size: .8rem; color: var(--muted); }
.pricing-section { background: var(--bg) !important; border-radius: var(--radius) !important; }
.pricing-section .border.border-primary { border: 1.5px solid var(--brand) !important; border-radius: 12px !important; box-shadow: 0 0 0 4px var(--brand-50); }
.specs-table th { width: 40%; background: var(--bg); font-weight: 600; color: var(--ink-2); }
.qty-control, .cart-qty-control {
    display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff;
}
.qty-control button, .cart-qty-control button {
    width: 40px; height: 40px; border: 0; background: transparent; font-weight: 700; color: var(--ink); cursor: pointer; transition: var(--transition);
}
.cart-qty-control button { width: 34px; height: 34px; }
.qty-control button:hover, .cart-qty-control button:hover { background: var(--brand); color: #fff; }
.qty-control input, .cart-qty-control input { width: 56px; height: 40px; text-align: center; border: 0; font-weight: 700; color: var(--ink); background: transparent; }
.cart-qty-control input { width: 48px; height: 34px; font-size: .9rem; }
.qty-control input:focus, .cart-qty-control input:focus { outline: 0; }
.qty-control input::-webkit-inner-spin-button, .qty-control input::-webkit-outer-spin-button,
.cart-qty-control input::-webkit-inner-spin-button, .cart-qty-control input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.input-group > .qty-btn { border-radius: 12px !important; }
#quantity { border-radius: 12px !important; margin: 0 .35rem; font-weight: 700; }

/* ==========================================================================
   Product listing page
   ========================================================================== */
.page-hero { background: #fff; border-bottom: 1px solid var(--line); padding: 2rem 0 1.5rem; }
.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; margin: 0 0 .25rem; }
.cat-pills { display: flex; gap: .5rem; overflow-x: auto; padding: 1rem 0 .25rem; scrollbar-width: none; }
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pill {
    flex-shrink: 0; padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
    color: var(--ink-2); font-weight: 600; font-size: .86rem; text-decoration: none; transition: var(--transition); white-space: nowrap;
}
.cat-pill:hover { border-color: var(--brand-100); color: var(--brand); background: var(--brand-50); }
.cat-pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.filter-sidebar { position: sticky; top: 110px; }
.filter-sidebar .card { border-radius: var(--radius); box-shadow: none; }
.filter-sidebar .form-check-label { cursor: pointer; font-size: .9rem; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }

/* ==========================================================================
   Cart, checkout, account, orders
   ========================================================================== */
.cart-table th { background: var(--bg); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line); }
.cart-item-row { transition: var(--transition); }
.cart-item-row:hover { background: #fafbfe; }
.order-summary-card { border-radius: var(--radius); box-shadow: var(--shadow); position: sticky; top: 110px; }

.delivery-option {
    display: block; padding: 1rem 1.15rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: #fff; cursor: pointer; transition: var(--transition);
}
.delivery-option:hover { border-color: #b9c7f3; }
.delivery-option.selected, .delivery-option:has(input:checked) { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 4px rgba(31, 79, 216, .08); }
.delivery-option input[type="radio"] { margin-right: .6rem; accent-color: var(--brand); }

.auth-card { border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); overflow: hidden; }
.auth-card .card-body { padding: 2.5rem; }
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header .icon-circle {
    width: 68px; height: 68px; border-radius: 20px; display: inline-grid; place-items: center; font-size: 1.7rem; margin-bottom: 1rem;
    background: var(--brand-50); color: var(--brand);
}
.password-toggle { cursor: pointer; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; z-index: 5; }
.password-toggle:hover { color: var(--brand); }

.order-card { border-radius: var(--radius); box-shadow: none; transition: var(--transition); overflow: hidden; }
.order-card:hover { box-shadow: var(--shadow); border-color: #d6dcea !important; }
.order-card .order-header { background: var(--bg); padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--ink); color: rgba(226, 232, 240, .66); padding: 4rem 0 1.5rem; margin-top: 5rem !important; }
.footer h5, .footer h6 { color: #fff; font-weight: 700; }
.footer h6 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; margin-bottom: 1.1rem; }
.footer .brand { color: #fff !important; }
.footer a { color: rgba(226, 232, 240, .72); text-decoration: none; transition: var(--transition); }
.footer a:hover { color: #fff; }
.footer .footer-links li { margin-bottom: .55rem; }
.footer .text-muted { color: rgba(226, 232, 240, .6) !important; }
.footer .social a {
    width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%;
    background: rgba(255, 255, 255, .08); color: #fff; margin-right: .4rem;
}
.footer .social a:hover { background: var(--brand); }
.footer hr { border-color: rgba(255, 255, 255, .1); opacity: 1; }
.footer .contact-list li { display: flex; gap: .65rem; margin-bottom: .75rem; font-size: .9rem; }
.footer .contact-list i { color: #8fb0ff; margin-top: .15rem; }

/* ==========================================================================
   Feedback: toasts, alerts, scroll-top
   ========================================================================== */
.alert-floating { position: fixed; top: 20px; right: 20px; z-index: 9999; min-width: 300px; max-width: 450px; box-shadow: var(--shadow-hover); border-radius: var(--radius-sm); animation: slideInRight .3s var(--ease); }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: none; opacity: 1; } }
.spinner-overlay { position: fixed; inset: 0; background: rgba(255, 255, 255, .7); display: flex; align-items: center; justify-content: center; z-index: 9999; }

.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: .6rem; }
.cart-toast {
    display: flex; align-items: center; gap: .85rem; min-width: 290px; padding: .9rem 1rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-hover);
    animation: slideInRight .3s var(--ease);
}
.cart-toast .toast-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; flex-shrink: 0; }

.scroll-top {
    position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0;
    background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; z-index: 1000;
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition); box-shadow: var(--shadow-hover);
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { background: var(--brand); }

/* ==========================================================================
   Utilities & motion
   ========================================================================== */
.hover-lift { transition: var(--transition); }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.section-title { font-weight: 800; position: relative; padding-bottom: .75rem; }
.section-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 48px; height: 4px; border-radius: 4px; background: var(--accent); }
.section-title.text-center::after { left: 50%; transform: translateX(-50%); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise .6s var(--ease) both; }
.reveal-2 { animation-delay: .08s; }
.reveal-3 { animation-delay: .16s; }
