:root {
    --primary-color: #0077ff;
    --secondary-color: #005b93;
    --accent-color: #00000000;
    --accent-color1: #f90000;
    --bg-light: #0f1d2d;
    --text-dark: #ffffff;
    --white1: #7DF9FF;
    --white: #000000;
    --whitetest: #ff0000;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    color: #ffffff;
}

.scrollbar {
    display: flex;
    overflow-x: auto;
    padding: 10px;
    gap: 15px;
    background: #000000;
    white-space: nowrap;
}

.scrollbar button {
    font-size: 14px;
    padding: 10px 00px;
    margin: 0 6px;
    border-radius: 5px;
    border: 2px solid transparent;
    background: rgba(0, 136, 255, 0.1);
    color: #00d0ff;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    backdrop-filter: blur(4px);
}

.scrollbar button:hover, .scrollbar button:focus {
    background: linear-gradient(135deg, #00bfff, #0077ff);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 187, 255, 0.4);
    border-color: #00d0ff;
}

.scrollbar button.active {
    background: linear-gradient(135deg, #00f2ff, #0077ff);
    color: white;
    font-weight: bold;
    border-color: #00f2ff;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
}

#breadcrumbs {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    color: #f0f0f0;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 16px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    border-radius: 0 0 10px 10px;
}

#breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

#breadcrumbs a:hover {
    color: #00d0ff;
    text-decoration: underline;
}

#products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 25px;
}

.scrollbar::-webkit-scrollbar {
    height: 8px;
}

.scrollbar::-webkit-scrollbar-thumb {
    background: #505050;
    border-radius: 3px;
}

.card {
    background: linear-gradient(135deg, var(--white), #2c3e50);
    color: var(--text-dark);
    border-radius: var(--card-radius);
    box-shadow: 0 8px 16px var(--shadow-color);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    padding: 35px;
    position: relative;
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 24px rgba(0, 122, 255, 0.3);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card h3 {
    font-size: 22px;
    margin: 6px 0 10px;
    font-weight: bold;
    text-align: left;
}

.card p {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.85;
}

.card a, .card button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #003067e8;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.card a:hover, .card button:hover {
    background: var(--accent-color1);
    box-shadow: 0 4px 10px rgba(0, 122, 255, 0.3);
}

@media (max-width: 768px) {
    .card {
        width: 100%;
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 10px;
    box-sizing: border-box;
}

.modal-content {
    background: white;
    padding: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 10px;
    position: relative;
    color: black;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    box-sizing: border-box;
}

.modal-content .btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    border: none;
    background: #4a148c;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
}

.modal-img {
    width: 70%;
    height: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .modal-img {
        max-width: 200px;
        margin-bottom: 15px;
        display: block;
    }
}

.close-account {
    position: absolute;
    top: 10px;
    right: 12px;
    cursor: pointer;
    font-size: 18px;
    color: #666;
}

.btn-cart {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 16px;
    margin-top: 8px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-cart:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

.review-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 10px;
    box-sizing: border-box;
}


.review-modal-content {
    background: white;
    padding: 20px;
    width: 100%;
    max-width: 320px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    position: relative;
    color: black;
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
    box-sizing: border-box;
}

.review-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e91e63;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
}

.variant-wrapper {
    position: relative;
    width: 100%;
    margin-top: 15px;
}

.variant-select {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 18px;
    padding-right: 3rem;
}

.variant-select:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px #00aaff;
}

.variant-select:focus {
    outline: none;
    background: rgba(0, 170, 255, 0.1);
    box-shadow: 0 0 0 2px #00aaff;
}

.variant-select option {
    background-color: #1a1a1a;
    color: #fff;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 40px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@media (min-width: 768px) {
    .review-modal-content {
        max-width: 500px;
    }
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffe7e7;
    padding: 6px 14px;
    border-left: 4px solid #0076ff;
    /* var(--primary-color), royal blue */
    background-color: rgba(255, 255, 255, 0.03);
    text-shadow: 0 0 4px rgba(0, 119, 255, 0.6);
    margin-bottom: 14px;
    border-radius: 40px;
    letter-spacing: 0.3px;
}

.no-more-products {
    display: none;
    text-align: center;
    padding: 15px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    font-style: italic;
    text-shadow: 0 0 4px #e91e63, 0 0 8px #ff4081;
    background: #2c2c2c;
    border-radius: 8px;
    max-width: 300px;
    animation: fadeIn 0.6s ease;
    margin: 50px auto 100px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stock-status {
    font-size: 13px;
    font-weight: bold;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stock-status .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.in-stock .dot {
    background-color: #28a745;
}

.low-stock .dot {
    background-color: #ffc107;
}

.out-of-stock .dot {
    background-color: #dc3545;
}

/* ====== Theme tokens ====== */
:root {
    --overlay: rgba(0,0,0,.6);
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --card: #f8fafc;
    --ring: #2563eb;
    --shadow: 0 10px 30px rgba(0,0,0,.18);
}

@media (prefers-color-scheme: dark) {
    :root {
        --overlay: rgba(0,0,0,.7);
        --surface: #0b1220;
        --text: #e5e7eb;
        --muted: #94a3b8;
        --card: #111827;
        --ring: #60a5fa;
        --shadow: 0 16px 40px rgba(0,0,0,.45);
    }
}

/* ====== Overlay ====== */
#storePicker {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--overlay);
    /* bottom sheet layout */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 env(safe-area-inset-right) calc(8px + env(safe-area-inset-bottom)) env(safe-area-inset-left);
}

body.store-picker-open {
    overflow: hidden;
}

#storePicker .modal-content {
    width: min(720px, 100%);
    max-height: calc(100vh - 80px - env(safe-area-inset-top));
    background: var(--surface);
    color: var(--text);
    border-radius: 16px 16px 0 0;
    /* rounded top = bottom sheet */
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: sheet-in .26s cubic-bezier(.2,.9,.2,1) both;
}

@media (min-width: 900px) {
    #storePicker {
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
    }

    #storePicker .modal-content {
        border-radius: 16px;
        max-height: min(86vh, 720px);
    }
}

#storePicker .modal-content h3 {
    position: sticky;
    top: 0;
    margin: 0;
    padding: 16px 20px;
    background: inherit;
    z-index: 1;
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(148,163,184,.25);
}

#storePicker .modal-content::before {
    content: "";
    align-self: center;
    width: 44px;
    height: 4px;
    background: rgba(148,163,184,.6);
    border-radius: 999px;
    margin: 10px 0 4px;
}

#storeList {
    padding: 12px;
    overflow: auto;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

@media (min-width: 600px) {
    #storeList {
        grid-template-columns: repeat(2, minmax(0,1fr));
        padding: 16px;
        gap: 14px;
    }
}

@media (min-width: 1100px) {
    #storeList {
        grid-template-columns: repeat(3, minmax(0,1fr));
    }
}

.store-card {
    background: var(--card);
    border: 1px solid rgba(148,163,184,.25);
    border-radius: 12px;
    padding: 14px 16px;
    min-height: 64px;
    /* touch target */
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.store-card h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .2px;
    color: var(--text);
}

.store-card p {
    margin: 0;
    font-size: .9rem;
    color: var(--muted);
}

/* Hover/Focus states (desktop + a11y) */
@media (hover: hover) {
    .store-card:hover {
        transform: translateY(-2px);
        border-color: var(--ring);
        box-shadow: 0 8px 20px rgba(37,99,235,.25);
    }
}

.store-card:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
}

.store-card[data-busy="true"] {
    position: relative;
}

.store-card[data-busy="true"]::after {
    content: "Busy";
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: .75rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f97316;
    color: #fff;
}

/* ====== Animations ====== */
@keyframes sheet-in {
    from {
        transform: translateY(24px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    #storePicker .modal-content {
        animation: none;
    }

    .store-card {
        transition: none;
    }
}

/* Modal wrapper */
#storePicker {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
}

body.store-picker-open {
    overflow: hidden;
}

.store-card {
    display: block;
    width: 90%;
    max-width: 420px;
    margin: 10px auto;
    padding: 15px 20px;
    border-radius: 12px;
    border: none;
    background: #0a192f;
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.store-card:hover {
    background: #112240;
    transform: translateY(-2px);
}

.store-card h3 {
    font-size: 1.1rem;
    margin: 0 0 5px;
    font-weight: 600;
}

.store-card p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

.cat-toggle {
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    cursor: pointer;
}

.cat-toggle[aria-expanded="true"] {
    background: #15d1ff;
    color: #042337;
}

.cat-toggle[aria-expanded="false"] {
    background: #0b7faa;
    color: #e8fbff;
}

.cat-summary {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: .9;
    cursor: pointer;
}

body.cat-collapsed #mainCategories, body.cat-collapsed #subcategories, body.cat-collapsed #subSubcategoriesDiv {
    display: none !important;
}

body.cat-collapsed #catSummary {
    display: block !important;
}

@media (max-width: 768px) {
    #products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 8px 10px 16px !important;
    }

    .card.product {
        padding: 8px !important;
        border-radius: 14px !important;
        box-shadow: 0 2px 10px rgba(0,0,0,.12);
    }

    .card.product .modal-img {
        width: 100% !important;
        aspect-ratio: 1 / 1;
        object-fit: cover !important;
        border-radius: 10px;
        display: block;
    }

    .card.product h3 {
        font-size: 13px !important;
        line-height: 1.25;
        margin: 6px 0 4px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: calc(1.25em * 2);
    }

    .card.product .rating {
        font-size: 12px !important;
        opacity: .9;
        margin-bottom: 4px;
    }

    .card.product .summary {
        display: none !important;
    }

    .card.product .price {
        font-weight: 700;
        font-size: 14px !important;
        margin: 4px 0 6px !important;
    }

    .card.product .btn, .card.product .btn-cart {
        display: block;
        width: 100%;
        padding: 6px 8px !important;
        font-size: 12px !important;
        line-height: 1.1;
        border-radius: 10px;
    }

    .card.product .btn + .btn-cart {
        margin-top: 6px;
    }

    .card.product .favorite-icon {
        /* top: 8px !important; */
        right: 8px !important;
        transform: none !important;
        nt; */
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #products {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px !important;
    }
}

@media (max-width: 360px) {
    #products {
        gap: 8px !important;
    }

    .card.product {
        padding: 6px !important;
        min-width: 0;
    }

    .card.product h3 {
        font-size: 12px !important;
        -webkit-line-clamp: 2;
    }

    .card.product .btn, .card.product .btn-cart {
        padding: 6px !important;
        font-size: 11px !important;
    }
}

@media (orientation: landscape) and (max-height: 420px) {
    #products {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
}

.card.product {
    min-width: 0;
}


:root {
    --chip-bg: #0f1b2d;
    --chip-fg: #e9f0ff;
    --chip-border: #28384f;
    --chip-hover-bg: #14243b;
    --chip-active-bg: #1677ff;
    --chip-active-fg: #ffffff;
    --chip-shadow: 0 2px 10px rgba(0,0,0,.15);
    --chip-radius: 9999px;
}

.scrollbar {
    display: flex;
    gap: .6rem;
    padding: 8px 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

.scrollbar::-webkit-scrollbar {
    height: 0;
}

.category-button, #subcategories .scrollbar button, #subSubcategoriesDiv .scrollbar button {
    scroll-snap-align: start;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .9rem;
    border-radius: var(--chip-radius);
    border: 1px solid var(--chip-border);
    background: var(--chip-bg);
    color: var(--chip-fg);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: .2px;
    white-space: nowrap;
    box-shadow: var(--chip-shadow);
    transition: background .2s, color .2s, border-color .2s, transform .06s;
}

.category-button img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

/* Hover / Active / Focus */
.category-button:hover, #subcategories .scrollbar button:hover, #subSubcategoriesDiv .scrollbar button:hover {
    background: var(--chip-hover-bg);
}

.category-button.active, #subcategories .scrollbar button.active, #subSubcategoriesDiv .scrollbar button.active {
    background: var(--chip-active-bg);
    color: var(--chip-active-fg);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(22,119,255,.35);
}

.category-button:active, #subcategories .scrollbar button:active, #subSubcategoriesDiv .scrollbar button:active {
    transform: translateY(1px) scale(.99);
}

.category-button:focus-visible, #subcategories .scrollbar button:focus-visible, #subSubcategoriesDiv .scrollbar button:focus-visible {
    outline: 2px solid #5ab0ff;
    outline-offset: 2px;
}

.category-title {
    text-shadow: none !important;
}

/* Mobile compact */
@media (max-width: 768px) {
    .category-button, #subcategories .scrollbar button, #subSubcategoriesDiv .scrollbar button {
        padding:.45rem .75rem;
        font-size: 14px;
    }

    .category-button img {
        width: 22px;
        height: 22px;
    }
}

#catBarHeader .cat-toggle {
    background: transparent;
    border: none;
    color: var(--chip-fg);
    padding: .35rem .8rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

body.cat-collapsed #mainCategories, body.cat-collapsed #subcategories, body.cat-collapsed #subSubcategoriesDiv {
    display: none !important;
}

/* ================================
   ================================ */
.card.product .btn, .card.product .btn-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .5rem .75rem;
    border-radius: 10px;
    border: 1px solid var(--chip-border);
    font-weight: 700;
}

.card.product .btn {
    background: #10233a;
    color: #eaf3ff;
}

.card.product .btn:hover {
    filter: brightness(1.05);
}

.card.product .btn-cart {
    background: var(--chip-active-bg);
    border-color: var(--chip-active-bg);
    color: #fff;
}

.card.product .btn-cart:hover {
    filter: brightness(1.07);
}

#catBarHeader {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .75rem;
    padding: .35rem .75rem;
    background: linear-gradient(180deg, rgba(0,0,0,.30), rgba(0,0,0,0));
    backdrop-filter: blur(4px);
    overflow: visible;
}

#catCollapseBtn {
    --glow-color: #00f2ff;
    --glow-spread-color: rgba(0, 242, 255, .35);
    --enhanced-glow-color: #c9f4ff;
    --btn-color: var(--primary-color);
    border: .18em solid var(--glow-color);
    color: var(--enhanced-glow-color);
    background: linear-gradient(135deg, var(--btn-color), #00bfff);
    border-radius: 999px;
    padding: .5em 1.4em;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    position: relative;
    isolation: isolate;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    cursor: pointer;
    box-shadow: 0 0 .7em .15em var(--glow-color), 0 0 2.4em .8em var(--glow-spread-color), inset 0 0 .45em .12em var(--glow-color);
    text-shadow: 0 0 .35em var(--glow-color);
    transition: transform .15s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

#catCollapseBtn::after {
    pointer-events: none;
    content: "";
    position: absolute;
    top: 120%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--glow-spread-color);
    filter: blur(1.6em);
    opacity: .35;
    transform: perspective(1.5em) rotateX(35deg) scale(1,.6);
    z-index: -1;
}

#catCollapseBtn:hover {
    color: #042337;
    background: linear-gradient(135deg, #00f2ff, #00bfff);
    box-shadow: 0 0 .9em .2em var(--glow-color), 0 0 2.8em 1em var(--glow-spread-color), inset 0 0 .55em .18em var(--glow-color);
    transform: translateY(-1px);
}

#catCollapseBtn:active {
    transform: translateY(0);
    box-shadow: 0 0 .6em .18em var(--glow-color), 0 0 2.1em .9em var(--glow-spread-color), inset 0 0 .45em .18em var(--glow-color);
}

@media (max-width: 420px) {
    #catCollapseBtn {
        padding: .45em 1.1em;
        font-size: 13px;
        border-width: .16em;
    }
}

#catCollapseBtn::after {
    pointer-events: none;
    content: "";
    position: absolute;
    top: 120%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--glow-spread-color);
    filter: blur(2em);
    opacity: .7;
    transform: perspective(1.5em) rotateX(35deg) scale(1,.6);
    z-index: -1;
}

#catCollapseBtn:hover {
    color: var(--btn-color);
    background-color: var(--glow-color);
    box-shadow: 0 0 1em .25em var(--glow-color), 0 0 4em 2em var(--glow-spread-color), inset 0 0 .75em .25em var(--glow-color);
    transform: translateY(-1px);
}

#catCollapseBtn:active {
    box-shadow: 0 0 .6em .25em var(--glow-color), 0 0 2.5em 2em var(--glow-spread-color), inset 0 0 .5em .25em var(--glow-color);
    transform: translateY(0);
}

@media (max-width: 420px) {
    #catCollapseBtn {
        padding: .5em 1em;
        font-size: 13px;
        border-width: .22em;
    }
}

body.cat-collapsed #catCollapseBtn {
    --glow-color: #82e7ff;
    --glow-spread-color: rgba(130,231,255,.5);
    --enhanced-glow-color: #c9f4ff;
    --btn-color: #073d52;
}

#catCollapseBtn {
    --glow-color: #EADFFF;
    --glow-spread-color: rgba(176,136,255,.35);
    --enhanced-glow-color: #F6F1FF;
    --btn-color: #8A77C9;
    border-width: .18em;
    box-shadow: 0 0 .6em .15em var(--glow-color), 0 0 2em .6em var(--glow-spread-color), inset 0 0 .45em .15em var(--glow-color);
    text-shadow: 0 0 .35em var(--glow-color);
}

#catCollapseBtn::after {
    opacity: .35;
    filter: blur(1.5em);
}

#catCollapseBtn:hover {
    box-shadow: 0 0 .8em .2em var(--glow-color), 0 0 2.2em 1em var(--glow-spread-color), inset 0 0 .55em .2em var(--glow-color);
}

#catCollapseBtn {
    --glow-color: #ffffff;
    --glow-spread-color: rgb(0 242 255 / 35%);
    --enhanced-glow-color: #000000;
    --btn-color: var(--primary-color);
    border: .18em solid var(--glow-color);
    color: var(--enhanced-glow-color);
    background: linear-gradient(135deg, var(--btn-color), #232a2c);
    border-radius: 999px;
    padding: .5em 1.4em;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    position: relative;
    isolation: isolate;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    cursor: pointer;
    box-shadow: 0 0 .1em .1em var(--glow-color), 0 0 1.1em .1em var(--glow-spread-color), inset 0 0 .15em .1em var(--glow-color);
    text-shadow: 0 0 10.35em var(--glow-color);
    transition: transform .15s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

#catCollapseBtn::after {
    pointer-events: none;
    content: "";
    position: absolute;
    top: 120%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--glow-spread-color);
    filter: blur(1.6em);
    opacity: .35;
    transform: perspective(1.5em) rotateX(35deg) scale(1,.6);
    z-index: -1;
}

#catCollapseBtn:hover {
    color: #000000;
    background: linear-gradient(135deg, #5d5d5d, #ffffff);
    box-shadow: 0 0 12.1em 0.1em #0009ff, 0 0 16.8em 1em var(--glow-spread-color), inset 0 0 .55em .18em #000000;
    transform: translateY(-1px);
}

#catCollapseBtn:active {
    transform: translateY(0);
    box-shadow: 0 0 .6em .18em var(--glow-color), 0 0 2.1em .9em var(--glow-spread-color), inset 0 0 .45em .18em var(--glow-color);
}

@media (max-width: 480px) {
    #catCollapseBtn {
        padding: .45em 1.1em;
        font-size: 13px;
        border-width: .16em;
    }
}

body.cat-collapsed #catCollapseBtn {
    --glow-color: #82e7ff;
    --glow-spread-color: rgba(130,231,255,.5);
    --enhanced-glow-color: #c9f4ff;
    --btn-color: #073d52;
}

.pm-desc-block {
    margin: 0 0 0.9rem 0;
    font-size: 1rem;
}

.pm-desc {
    margin-top: .25rem;
    line-height: 1.5;
    max-height: 4.5em;
    overflow: hidden;
    position: relative;
}

.pm-desc::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2em;
    background: linear-gradient( to bottom, rgba(32,42,59,0), rgba(32,42,59,1) );
    pointer-events: none;
}

.pm-desc.expanded {
    max-height: none;
}

.pm-desc.expanded::after {
    display: none;
}

.pm-desc-toggle {
    margin-top: .35rem;
    border: none;
    background: none;
    color: #394449;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.pm-desc-toggle:hover {
    text-decoration: underline;
}


#catBarHeader {
    position: static !important;
    top: auto !important;
    z-index: 30;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .75rem;
    padding: .35rem .75rem .25rem;
    background: linear-gradient(180deg, rgba(0,0,0,.30), rgba(0,0,0,0));
    backdrop-filter: blur(4px);
    overflow: visible;
}

#catCollapseBtn {
    --glow-color: #0b0431;
    --glow-spread-color: rgba(0, 242, 255, .35);
    --enhanced-glow-color: #c9f4ff;
    --btn-color: var(--primary-color);
    border: .18em solid var(--glow-color);
    color: var(--enhanced-glow-color);
    background: linear-gradient(135deg, var(--btn-color), #00bfff);
    border-radius: 999px;
    padding: .5em 1.4em;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    position: relative;
    isolation: isolate;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    cursor: pointer;
    box-shadow: 0 0 .7em .15em var(--glow-color), 0 0 2.4em .8em var(--glow-spread-color), inset 0 0 .45em .12em var(--glow-color);
    text-shadow: 0 0 .35em var(--glow-color);
    transition: transform .15s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

#catCollapseBtn::after {
    pointer-events: none;
    content: "";
    position: absolute;
    top: 120%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--glow-spread-color);
    filter: blur(1.6em);
    opacity: .35;
    transform: perspective(1.5em) rotateX(35deg) scale(1,.6);
    z-index: -1;
}

#catCollapseBtn:hover {
    color: #042337;
    background: linear-gradient(135deg, #00f2ff, #00bfff);
    box-shadow: 0 0 .9em .2em var(--glow-color), 0 0 2.8em 1em var(--glow-spread-color), inset 0 0 .55em .18em var(--glow-color);
    transform: translateY(-1px);
}

#catCollapseBtn:active {
    transform: translateY(0);
    box-shadow: 0 0 .6em .18em var(--glow-color), 0 0 2.1em .9em var(--glow-spread-color), inset 0 0 .45em .18em var(--glow-color);
}

@media (max-width: 480px) {
    #catCollapseBtn {
        padding: .45em 1.1em;
        font-size: 13px;
        border-width: .16em;
    }
}

body.cat-collapsed #catCollapseBtn {
    --glow-color: #82e7ff;
    --glow-spread-color: rgba(130,231,255,.5);
    --enhanced-glow-color: #c9f4ff;
    --btn-color: #073d52;
}

.btn-login-required {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--chip-border);
    background: #10233a;
    color: #eaf3ff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, transform .1s ease, box-shadow .2s ease;
}

.btn-login-required:hover {
    background: #16314f;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,.25);
}

@media (max-width: 768px) {
    html, body {
        margin: 0;
        padding: 0;
    }

    #products {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        padding: 8px 8px 16px 8px !important;
        /* ÃŽÂ¯ÃŽÂ´ÃŽÂ¹ÃŽÂ¿ left/right */
        box-sizing: border-box;
        justify-content: stretch !important;
        align-content: start !important;
    }

    /* ÃŽÂ£ÃŽÂ²ÃŽÂ®ÃŽÂ½ÃŽÂ¿Ãâ€¦ÃŽÂ¼ÃŽÂµ ÃÅ’,Ãâ€žÃŽÂ¹ width/margin ÃŽÂ¼Ãâ‚¬ÃŽÂ¿ÃÂÃŽÂµÃŽÂ¯ ÃŽÂ½ÃŽÂ± ÃÆ’Ãâ€žÃÂÃŽÂ±ÃŽÂ²ÃÅ½ÃŽÂ½ÃŽÂµÃŽÂ¹ Ãâ€žÃŽÂ¹Ãâ€š ÃŽÂºÃŽÂ¬ÃÂÃâ€žÃŽÂµÃâ€š */
    #products .card, #products .card.product {
        box-sizing: border-box;
        width: auto !important;
        margin: 0 !important;
        padding: 8px !important;
        border-radius: 14px !important;
    }
}

@media (max-width: 768px) {
    .card.product .btn, .card.product .btn-cart {
        display: inline-flex !important;
        width: auto !important;
        min-width: 0;
    }
}

.category-block {
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    /* ÏÎ¯Î¾Îµ Ï„Î¿ ÏÏˆÎ¿Ï‚ */
    min-height: 0 !important;
}

#subcategories .category-block, #subSubcategoriesDiv .category-block {
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
}

#subcategories, #subSubcategoriesDiv {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    height: auto !important;
    min-height: 0 !important;
}

#mainCategories .category-button, #subcategories .category-button, #subSubcategoriesDiv .category-button {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: 30px !important;
    height: auto !important;
    line-height: 1.1 !important;
}

/* === ΡΥΘΜΙΣΙΜΟ ΚΕΝΟ ΜΕΤΑΞΥ ΚΑΤΗΓΟΡΙΩΝ === */
/* 1) Ορίζουμε ένα variable για το κατακόρυφο κενό */
:root {
    --cat-gap-y: 2px;
    /* ΑΛΛΑΖΕΙΣ ΜΟΝΟ ΑΥΤΟ (0px–8px κτλ) */
}

/* 2) Μηδενίζουμε extra margin/padding του container */
body[data-page="eshop"] .category-block {
    margin: 0 !important;
    padding: 0 !important;
}

/* 3) Το <hr> δίνει ΜΟΝΟ το κενό, χωρίς να φαίνεται γραμμή */
body[data-page="eshop"] .category-block > hr {
    margin: var(--cat-gap-y) 0 !important;
    /* επάνω/κάτω κενό */
    padding: 0 !important;
    border: 0 !important;
    /* να μην φαίνεται γραμμή */
    height: 0 !important;
}

/* Δείξε το bell ΜΟΝΟ όταν το body έχει at-top */
body:not(.at-top) .onesignal-bell-launcher, body:not(.at-top) .onesignal-bell-launcher-button {
    display: none !important;
}

/* Προαιρετικά: όταν είμαστε στην κορυφή, σιγουρέψου ότι φαίνεται */
body.at-top .onesignal-bell-launcher, body.at-top .onesignal-bell-launcher-button {
    display: block !important;
}

/* === DESKTOP VIEW: 3 προϊόντα ανά σειρά === */
@media (min-width: 1025px) {
    #products {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 20px !important;
        justify-content: center !important;
        padding: 25px !important;
    }

    .card.product, .card {
        width: 100% !important;
        margin: 0 !important;
        padding: 20px;
        box-sizing: border-box;
    }
}



.sr-only{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}





@media (max-width: 768px){
  :root { --bottom-nav-h: 80px; } /* ξεκίνα 80, όχι 110 */

  #sentinel{
    height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* ==== PSI / CLS / LCP production fixes v11 ==== */
#products{
  align-items:start !important;
  content-visibility:auto;
  contain-intrinsic-size: 1200px;
}
#products .card,
#products .card.product{
  min-height: 420px;
  contain: layout paint style;
}
@media (min-width: 769px){
  #products .card,
  #products .card.product{
    min-height: 470px;
  }
}
.product-image-wrapper{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
}
.product-image-wrapper img,
.product-image-wrapper .modal-img{
  width: 100% !important;
  height: 100% !important;
  display:block !important;
  object-fit: contain !important;
  margin-bottom:0 !important;
}
.card.product h3{
  min-height: 3.2em;
  line-height: 1.2;
}
.card.product .summary{
  min-height: 3.6em;
}
.card.product .price,
.card.product .eta,
.card.product .rating{
  min-height: 1.5em;
}
#noMoreProducts,
.no-more-products[hidden]{
  display:none !important;
}
.btn-more-category{
  min-height: 44px;
}
img[width][height]{
  height:auto;
}
@media (prefers-reduced-motion: reduce){
  .card,
  .card img,
  .scrollbar button,
  .category-button,
  .btn-more-category,
  .see-more,
  .see-more-group div{
    transition:none !important;
    animation:none !important;
    transform:none !important;
  }
}