/*
Brand palette
-------------
Main (primary):  #8B0000
Secondary:       #1E1E1E
Gold:            #F5B514
Teal:            #52B7B3
Viber:           #7360F2
Lime:            #AEFF70
*/

/* ==========================================================================
   Custom Fonts - AC Raleway
   ========================================================================== */

   @font-face {
    font-family: 'AC Raleway';
    src: url('/assets/fonts/ACRaleway/TTF/AC-Ralewaythin.ttf') format('truetype'),
         url('/assets/fonts/ACRaleway/OTF/AC-Ralewaythin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AC Raleway';
    src: url('/assets/fonts/ACRaleway/TTF/AC-RalewayExtraLight.ttf') format('truetype'),
         url('/assets/fonts/ACRaleway/OTF/AC-RalewayExtraLight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AC Raleway';
    src: url('/assets/fonts/ACRaleway/TTF/AC-RalewayLite.ttf') format('truetype'),
         url('/assets/fonts/ACRaleway/OTF/AC-RalewayLite.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AC Raleway';
    src: url('/assets/fonts/ACRaleway/TTF/AC-RalewayRegular.ttf') format('truetype'),
         url('/assets/fonts/ACRaleway/OTF/AC-RalewayRegular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AC Raleway';
    src: url('/assets/fonts/ACRaleway/TTF/AC-RalewayMedium.ttf') format('truetype'),
         url('/assets/fonts/ACRaleway/OTF/AC-RalewayMedium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AC Raleway';
    src: url('/assets/fonts/ACRaleway/TTF/AC-RalewaySemiBold.ttf') format('truetype'),
         url('/assets/fonts/ACRaleway/OTF/AC-RalewaySemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AC Raleway';
    src: url('/assets/fonts/ACRaleway/TTF/AC-RalewayExtraBold.ttf') format('truetype'),
         url('/assets/fonts/ACRaleway/OTF/AC-RalewayExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AC Raleway';
    src: url('/assets/fonts/ACRaleway/TTF/AC-RalewayHeavy.ttf') format('truetype'),
         url('/assets/fonts/ACRaleway/OTF/AC-RalewayHeavy.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   CSS Variables
   ========================================================================== */

:root {
    /* Fonts */
    --font-primary: 'AC Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Brand */
    --color-main: #8B0000;
    --color-sage: #8B0000;
    --color-secondary: #1E1E1E;
    --color-gold: #F5B514;
    --color-teal: #52B7B3;
    --color-viber: #7360F2;
    --color-viber-hover: #5b4bc9;
    --color-lime: #AEFF70;

    /* Surfaces & text */
    --color-cream: #F0EFEE;
    --color-olive: #6B0000;
    --color-accent: #F5B514;
    --color-bg-dark: #8B0000;
    --color-bg-darker: #1E1E1E;
    --color-text-light: #ffffff;
    --color-text-muted: #7A7A7A;
    --color-text-body: #2C2C2C;
    --color-danger: #B71C1C;

    /* Bootstrap theme (loaded after bootstrap.min.css) */
    --bs-primary: #8B0000;
    --bs-primary-rgb: 139, 0, 0;
    --bs-secondary: #1E1E1E;
    --bs-secondary-rgb: 30, 30, 30;
    --bs-success: #3D9A96;
    --bs-success-rgb: 61, 154, 150;
    --bs-info: #52B7B3;
    --bs-info-rgb: 82, 183, 179;
    --bs-warning: #F5B514;
    --bs-warning-rgb: 245, 181, 20;
    --bs-danger: #B71C1C;
    --bs-danger-rgb: 183, 28, 28;
    --bs-light: #F5F4F3;
    --bs-light-rgb: 245, 244, 243;
    --bs-dark: #1E1E1E;
    --bs-dark-rgb: 30, 30, 30;
    --bs-body-color: #2C2C2C;
    --bs-tertiary-color: #6B6B6B;
    --bs-border-color: #D4D2D0;
    --bs-link-color: #8B0000;
    --bs-link-hover-color: #6B0000;

    /* Legacy storefront aliases kept for existing dynamic page styles. */
    --safety-orange-tints-0: #8B0000;
    --safety-orange-tints-20: #A83333;
    --safety-orange-tints-40: #C56666;
    --safety-orange-tints-60: #E29999;
    --safety-orange-tints-80: #F1CCCC;
    --safety-orange-shades-0: #8B0000;
    --safety-orange-shades-20: #6B0000;
    --safety-orange-shades-40: #4C0000;
    --safety-orange-shades-60: #2E0000;
    --safety-orange-shades-80: #1E1E1E;

    /* Form selects & light menus — “glass” from blur + soft edge (minimal lift shadow) */
    --form-select-glass-bg: rgba(255, 255, 255, 0.78);
    --form-select-glass-border: rgba(255, 255, 255, 0.5);
    --form-select-hairline: rgba(0, 0, 0, 0.05);
    --form-select-radius: 14px;
    --form-select-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 1px var(--form-select-hairline), 0 1px 3px rgba(0, 0, 0, 0.03);
    --form-select-shadow-focus: 0 0 0 0.2rem rgba(139, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 0 0 1px var(--form-select-hairline), 0 1px 4px rgba(0, 0, 0, 0.04);
    --dropdown-glass-bg: linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.75) 55%, rgba(245, 244, 242, 0.78) 100%);
    --dropdown-outer-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    --dropdown-inner-glow: inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    /* Dark “reference” glass (navbar / on-dark) — frosted dark teal, light rim */
    --glass-dark-surface: linear-gradient(165deg, rgba(32, 78, 82, 0.72) 0%, rgba(18, 45, 50, 0.82) 100%);
    --glass-dark-border: rgba(255, 255, 255, 0.2);
    --glass-dark-text: rgba(255, 255, 255, 0.96);
    --glass-dark-pill: rgba(0, 0, 0, 0.32);
    --glass-dark-pill-active: rgba(0, 0, 0, 0.42);
}

/* Full-width layout: Bootstrap .container is no longer max-width constrained */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    max-width: 100% !important;
    width: 100%;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

body {
    font-family: var(--font-primary);
    background-color: var(--color-cream);
    color: var(--color-text-body);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
}

/* ==========================================================================
   Breadcrumb Bar
   ========================================================================== */

.breadcrumb-bar {
    width: 100%;
    background-color: #F0EFEE;
    padding: 0.75rem 0;
}

.breadcrumb-bar:empty {
    display: none;
}

/* Scroll to top button (global, all pages) */
.scroll-to-top-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1030;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    color: #2C2C2C;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.5rem);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, box-shadow 0.2s ease;
}

.scroll-to-top-btn.scroll-to-top-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top-btn:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    color: var(--color-sage);
}

.scroll-to-top-btn i {
    font-size: 1.25rem;
    line-height: 1;
}

.breadcrumb-bar .container {
    padding-left: 1rem;
    padding-right: 1rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    gap: 0.35rem;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item a {
    color: var(--color-bg-darker);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: var(--color-sage);
}

.breadcrumb-current {
    color: var(--color-olive);
    font-weight: 500;
}

.breadcrumb-sep {
    color: var(--color-olive);
    opacity: 0.8;
    pointer-events: none;
}

/* ==========================================================================
   Announcement Bar
   ========================================================================== */

.announcement-bar {
    background-color: var(--color-bg-darker);
    background-image: none;
    color: #ffffff;
    padding: 0.35rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.announcement-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.announcement-arrow {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 0.7rem;
    padding: 0.15rem 0.25rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.announcement-arrow i {
    font-size: inherit;
}

.announcement-arrow:hover {
    opacity: 1;
}

.announcement-slides {
    position: relative;
    min-height: 1.5rem;
    overflow: hidden;
    flex: 1;
    min-width: 0;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.announcement-text {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.85rem;
    margin: 0;
    letter-spacing: 0.3px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.announcement-text.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   Navbar Styles
   ========================================================================== */

.navbar {
    background-color: var(--color-bg-dark);
}

.navbar-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.navbar-left-cluster {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    flex-shrink: 1;
}

/* Menu button (left) - MENOY style */
.navbar-menu-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-width: 72px;
    padding: 0.6rem 1rem;
    background: rgba(0, 0, 0, 0.28);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.navbar-menu-btn:hover {
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
}

.navbar-menu-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.navbar-menu-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@media (max-width: 575.98px) {
    .navbar-menu-label {
        display: none;
    }

    .navbar-menu-btn {
        min-width: 48px;
        padding: 0.5rem;
    }
}

.navbar-toggler-custom {
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.navbar-toggler-custom:hover {
    color: var(--color-accent);
}

/* SVG asset reads slightly smaller than bi icons at 1.5rem — scale up to match visual weight */
.navbar-toggler-custom .navbar-icon-profile {
    width: 1.9rem;
    height: 1.9rem;
    display: block;
    object-fit: contain;
    vertical-align: middle;
    pointer-events: none;
}

.navbar-toggler-custom .navbar-inline-svg {
    width: 1.75rem;
    height: 1.75rem;
    display: block;
    object-fit: contain;
    vertical-align: middle;
    pointer-events: none;
}

.navbar-toggler-custom:hover .navbar-icon-profile {
    opacity: 0.85;
    filter: brightness(1.15);
}

.navbar-brand-center {
    color: var(--color-text-light);
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.navbar-brand-center:hover {
    color: var(--color-accent);
}

/* White logos on dark backgrounds: any colored / full-color asset reads as white */
.navbar-logo,
.footer-logo {
    filter: brightness(0) invert(1);
}

.navbar-logo {
    height: 56px;
    width: auto;
    max-width: 100%;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--color-accent);
    color: #2C2C2C;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 50%;
    line-height: 1;
}

.navbar-right-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Call us: left, no background; icon + two-line text; no color/underline change on hover */
.navbar-call-cta,
.navbar-call-cta:hover,
.navbar-call-cta:focus,
.navbar-call-cta:active {
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0;
    background: none;
    color: var(--color-text-light);
    text-decoration: none;
    line-height: 1.12;
    border-radius: 0;
}

.navbar-call-cta__icon {
    font-size: 1.9rem;
    line-height: 1;
    flex-shrink: 0;
    margin-right: 0.05rem;
}

.navbar-call-cta__icon-img {
    width: 1.9rem;
    height: 1.9rem;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    margin-right: 0.05rem;
}

.navbar-call-cta__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-width: 0;
}

.navbar-call-cta__label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.95;
}

.navbar-call-cta__value {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0.1rem;
    white-space: nowrap;
}

/* ==========================================================================
   Offcanvas menu: sliding “cards” — main list on top, sub-panels sit beneath (z-index)
   ========================================================================== */

.offcanvas-menu.offcanvas-start {
    width: min(100vw, 32rem);
    max-width: 100%;
}

.offcanvas-menu .offcanvas-body.offcanvas-menu__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.offcanvas-menu__body,
.sliding-menu--cards {
    min-height: min(22rem, calc(100dvh - 5.5rem));
}

/* Main menu = top card; sub panels slide in from the right, drawn beneath until revealed */
.sliding-menu--cards .menu-panel.menu-sub {
    z-index: 1;
}

.sliding-menu--cards .menu-panel.menu-main {
    z-index: 2;
    position: relative;
    background: #ffffff;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.07);
}

.sliding-menu--cards .menu-panel.menu-main.slide-out {
    z-index: 2;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
}

.menu-sub__mega {
    padding: 0.25rem 0 0.75rem;
    border-top: 1px solid #e8e8e8;
    overflow: visible;
}

/* Mega link columns inside a submenu slide */
.offcanvas-mega__layout {
    display: block;
    min-height: 0;
    width: 100%;
}

.offcanvas-mega__layout--simple {
    min-height: 0;
    width: 100%;
}

.offcanvas-mega__cols {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 1.75rem;
    padding: 1.1rem 1.25rem 1.4rem 1.35rem;
    width: 100%;
    box-sizing: border-box;
}

.offcanvas-mega__col {
    flex: 1 1 10rem;
    min-width: 8.5rem;
}

.offcanvas-mega__group-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-main);
    margin: 0 0 0.2rem;
    line-height: 1.3;
}

.offcanvas-mega__link {
    display: block;
    padding: 0.4rem 0;
    font-size: 1rem;
    color: var(--color-text-body);
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.15s ease;
}

.offcanvas-mega__link:hover,
.offcanvas-mega__link:focus-visible {
    color: var(--color-olive);
}

.offcanvas-mega__layout--simple .offcanvas-mega__cols {
    flex: 1 1 100%;
    padding: 1.05rem 1.25rem 1.25rem 1.35rem;
    gap: 1.5rem 1.25rem;
}

.offcanvas-mega__layout--simple .offcanvas-mega__col {
    max-width: 20rem;
}

/* Spotlight Search */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-modal {
    width: 100%;
    max-width: 800px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: scale(0.95) translateY(-20px);
    transition: transform 0.2s ease;
    margin: 0 1rem;
}

.search-overlay.active .search-modal {
    transform: scale(1) translateY(0);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #D8D6D4;
}

.search-icon {
    font-size: 1.25rem;
    color: #6B6B6B;
    margin-right: 1rem;
}

.search-icon--svg {
    font-size: 0;
    margin-right: 1rem;
    width: 1.35rem;
    height: 1.35rem;
    object-fit: contain;
    flex-shrink: 0;
    cursor: pointer;
}

.search-input-wrapper .search-icon[role='button'] {
    cursor: pointer;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.25rem;
    font-weight: 500;
    color: #2C2C2C;
    background: transparent;
    padding: 0.5rem 0;
}

.search-input::placeholder {
    color: #7A7A7A;
}

.search-kbd {
    background: #F0EFEE;
    border: 1px solid #CFCDC9;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    color: var(--color-bg-darker);
    font-family: inherit;
}

.search-results {
    max-height: 500px;
    overflow-y: auto;
}

.search-hint {
    padding: 2rem;
    text-align: center;
    color: #6B6B6B;
}

.search-hint p {
    margin: 0;
}

.search-section {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #D8D6D4;
}

.search-section:last-child {
    border-bottom: none;
}

.search-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6B6B6B;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.search-items {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.search-item:hover {
    background-color: #F0EFEE;
}

.search-item-img {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 1rem;
}

.search-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.search-item-title {
    font-weight: 600;
    color: #2C2C2C;
    font-size: 0.95rem;
}

.search-item-category {
    font-size: 0.8rem;
    color: #6B6B6B;
}

.search-item-price {
    font-weight: 600;
    color: var(--color-sage);
}

.search-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.search-category {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #F0EFEE;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--color-bg-darker);
    text-decoration: none;
    transition: all 0.15s ease;
}

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

.search-category:hover {
    background: var(--color-sage);
    color: #ffffff;
}

.search-no-results {
    padding: 2rem;
    text-align: center;
    color: #6B6B6B;
}

.search-no-results p {
    margin: 0;
}

/* Offcanvas Menus */
.offcanvas-menu .nav-link,
.offcanvas-cart .nav-link {
    color: #2C2C2C;
    padding: 0.75rem 0;
    border-bottom: 1px solid #D8D6D4;
    transition: color 0.2s ease;
}

.offcanvas-menu .nav-link:hover,
.offcanvas-cart .nav-link:hover {
    color: var(--color-sage);
}

.offcanvas-menu .nav-link.active {
    color: var(--color-sage);
}

.cart-empty {
    color: var(--color-bg-darker);
}

/* Sliding Menu */
.sliding-menu {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.sliding-menu--cards {
    isolation: isolate;
}

.menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.menu-panel.active {
    transform: translateX(0);
}

.menu-panel.slide-out {
    transform: translateX(-100%);
}

.menu-panel.menu-main {
    position: relative;
    transform: translateX(0);
}

.menu-panel.menu-main.slide-out {
    position: absolute;
    transform: translateX(-100%);
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.45rem 1.5rem;
    color: #1E1E1E;
    text-decoration: none;
    border-bottom: 1px solid #D8D6D4;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 1.25rem;
}

.menu-item:hover {
    background-color: #F0EFEE;
    color: var(--color-sage);
}

.menu-item:hover .menu-item__sub {
    color: #5a5a5a;
}

/* Main list: direct link (e.g. Επικοινωνία) — no chevron, full row */
.menu-item--direct {
    justify-content: flex-start;
}

.menu-item-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex: 1 1 auto;
}

.menu-item-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    min-width: 0;
}

.menu-item__title {
    display: block;
    line-height: 1.25;
}

.menu-item__sub {
    display: block;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.35;
    color: #6b6b6b;
    letter-spacing: 0.01em;
}

.menu-item .bi-chevron-right {
    font-size: 1.2rem;
    opacity: 0.7;
    flex-shrink: 0;
    align-self: center;
}

.menu-item-content i {
    font-size: 1.3rem;
    color: #2C2C2C;
}

.menu-item-img {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.menu-item:hover .menu-item-content i {
    color: var(--color-sage);
}

.menu-back-item {
    color: var(--color-sage) !important;
    font-weight: 600;
    justify-content: flex-start;
}

.menu-back-item:hover {
    background-color: #F0EFEE;
    color: var(--color-sage) !important;
}

.offcanvas-menu .offcanvas-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1E1E1E;
    letter-spacing: 0.02em;
}

.offcanvas-menu .offcanvas-header {
    padding-bottom: 1rem;
    margin-bottom: 0.25rem;
}

/* ==========================================================================
   Pre-footer wave section
   ========================================================================== */

/* Flat strip (replaces wavy two-tone SVG) */
.pre-footer-wave {
    width: 100%;
    min-height: 8px;
    background-color: var(--color-bg-darker);
    background-image: none;
}

/* ==========================================================================
   Subnavbar trust strip (below main navbar) — like announcement: arrows, no Swiper
   ========================================================================== */

.subnavbar-trust {
    background: #fafafa;
    color: var(--color-text-body);
    border-bottom: 1px solid #e6e6e6;
    font-family: var(--font-primary);
    padding: 0.5rem 0;
}

.subnavbar-trust-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

/* Chevrons (same idea as .announcement-arrow; light background → dark chevron) */
.subnavbar-trust-arrow {
    background: none;
    border: none;
    color: #4a4a4a;
    font-size: 0.75rem;
    padding: 0.2rem 0.35rem;
    cursor: pointer;
    opacity: 0.78;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.subnavbar-trust-arrow i {
    font-size: inherit;
}

.subnavbar-trust-arrow:hover {
    opacity: 1;
}

.subnavbar-trust-slides {
    position: relative;
    flex: 1;
    min-width: 0;
    min-height: 3rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 991.98px) {
    .subnavbar-trust-slide {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.2rem 0.25rem;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .subnavbar-trust-slide.active {
        position: relative;
        opacity: 1;
        pointer-events: auto;
    }
}

@media (min-width: 992px) {
    .subnavbar-trust-slides {
        position: static;
        overflow: visible;
        min-height: 0;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem 1rem;
    }

    .subnavbar-trust-slide {
        position: relative;
        flex: 1 1 0;
        min-width: 0;
        opacity: 1 !important;
        pointer-events: auto !important;
        padding: 0.1rem 0;
    }
}

.subnavbar-trust-item {
    padding: 0.1rem 0.25rem;
    min-height: 0;
    max-width: 16rem;
}

@media (min-width: 992px) {
    .subnavbar-trust-item {
        max-width: none;
    }
}

.subnavbar-trust-text {
    flex: 1 1 auto;
    min-width: 0;
}

.subnavbar-trust-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    font-size: 1.35rem;
    line-height: 1;
    color: #6f6f6f;
}

.subnavbar-trust-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    color: #2c2c2c;
}

.subnavbar-trust-sub {
    font-size: 0.85rem;
    line-height: 1.3;
    color: #6f6f6f;
    margin-top: 0.12rem;
}

/* ==========================================================================
   Pre-footer trust strip (above main footer)
   ========================================================================== */

.prefooter-trust {
    background: #ffffff;
    color: var(--color-text-body);
    border-top: 1px solid #e6e6e6;
    border-bottom: 1px solid #e6e6e6;
    font-family: var(--font-primary);
}

.prefooter-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    min-height: 100%;
    padding: 0.5rem 0.35rem;
}

.prefooter-trust-icon {
    display: block;
    font-size: 1.85rem;
    line-height: 1;
    color: #9a9a9a;
    margin-bottom: 0.5rem;
}

.prefooter-trust-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: #2c2c2c;
    max-width: 12rem;
    margin-left: auto;
    margin-right: auto;
}

.prefooter-trust-sub {
    font-size: 0.8rem;
    line-height: 1.35;
    color: #7a7a7a;
    max-width: 13rem;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 991.98px) {
    .prefooter-trust .row {
        row-gap: 1rem;
    }
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

.footer {
    background-color: #8B0000;
    /* background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 0C6.716 0 0 6.716 0 15c8.284 0 15-6.716 15-15zM0 15c0 8.284 6.716 15 15 15 0-8.284-6.716-15-15-15zm30 0c0-8.284-6.716-15-15-15 0 8.284 6.716 15 15 15zm0 0c0 8.284-6.716-15-15-15 0 8.284 6.716 15 15 15z' fill='%23d4af37' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E"); */
}

/* Space above the dark copyright strip (matches top padding feel) */
.footer > .container:first-child {
    padding-bottom: clamp(1.75rem, 4vw, 3rem);
}

/* Reuse .cart-help-card; keep within narrow 5th column on lg */
.footer .footer-viber-cta,
.footer .footer-instagram-cta {
    min-width: 0;
    max-width: 100%;
}

.footer-logo-link {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-logo-link:hover {
    opacity: 0.9;
}

.footer-logo {
    height: 80px;
    width: auto;
    max-width: 100%;
}

.footer h5,
.footer h6 {
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: underline;
    text-decoration-color: rgba(245, 181, 20, 0.3);
    text-decoration-thickness: 8px;
    text-underline-offset: -6px;
    text-decoration-skip-ink: none;
}

.footer-heading-accent {
    color: var(--color-text-light);
    font-weight: 500;
    text-transform: none;
    font-size: 1.35rem;
}

.footer-contact-block {
    display: flex;
    align-items: center;
}

.footer-contact-block p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links {
    line-height: 2.2;
}

.footer-links a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-contact {
    line-height: 2.4;
}

.footer-contact li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.footer-contact i {
    min-width: 24px;
    color: var(--color-accent);
}

.footer-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.footer-social {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 1.8rem;
}

.footer-social-triangle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.3rem;
    height: 3.3rem;
    background: #ffffff57;
    color: #ffffff;
    text-decoration: none;
    border-radius: 0.6rem;
    transform: rotate(45deg);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-social-triangle i {
    font-size: 1.5rem;
    transform: rotate(-45deg);
    display: block;
    line-height: 1;
}

.footer-social-triangle:hover {
    background: var(--color-text-light);
    color: #2C2C2C;
    transform: rotate(45deg) translateY(-3px);
}

/* Match .announcement-bar (top of site) */
.footer-bottom {
    background-color: var(--color-bg-darker);
    background-image: none;
    color: #ffffff;
    padding-top: 0.75rem;
    padding-left: clamp(1rem, 4vw, 1.5rem);
    padding-right: clamp(1rem, 4vw, 1.5rem);
    padding-bottom: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

.footer-bottom-row {
    --bs-gutter-y: 0.75rem;
}

.footer-bottom-copy {
    line-height: 1.35;
}

.footer-bottom-legal {
    font-size: 0.9em;
    line-height: 1.4;
    opacity: 0.95;
}

.footer-bottom-legal a {
    color: inherit;
    text-decoration: none;
}

.footer-bottom-legal a:hover,
.footer-bottom-legal a:focus {
    text-decoration: underline;
}

.footer-bottom-sep {
    display: inline-block;
    margin: 0 0.35em;
    opacity: 0.85;
    user-select: none;
}

.footer-credit {
    line-height: 1.2;
}

.fossasoft-link--footer {
    gap: 0.5rem 0.65rem;
    max-width: 100%;
}

.footer-credit-text {
    gap: 0.15em;
    line-height: 1.2;
    min-width: 0;
}

.footer-credit-by {
    font-size: 0.8em;
    line-height: 1.2;
    opacity: 0.9;
    letter-spacing: 0.02em;
}

.footer-credit-brand {
    font-size: 1.2em;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.fossasoft-link {
    color: var(--color-text-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    line-height: 1;
    vertical-align: middle;
}

.fossasoft-link:hover,
.fossasoft-link--footer:hover {
    color: var(--color-text-light);
}

.fossasoft-link--footer .fossasoft-icon {
    /* Height matches the two-line “Developed by / Fossasoft” block */
    height: 2.65em;
    width: 2.65em;
    min-height: 2.45rem;
    min-width: 2.45rem;
}

.fossasoft-icon {
    display: block;
    flex-shrink: 0;
    object-fit: contain;
    vertical-align: middle;
}

.icon-white {
    filter: brightness(0) invert(1);
}

/* ==========================================================================
   Features Section
   ========================================================================== */

/* ==========================================================================
   Hero Banners + Slider Section
   ========================================================================== */

.hero-banners-section {
    background-color: #ffffff;
}

.hero-banners-row {
    align-items: stretch;
}

.hero-banners-row > [class*="col-"] {
    display: flex;
}

.hero-banners {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    height: 100%;
    min-height: 580px;
}

.hero-banner {
    display: block;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-banner img {
    min-height: 100%;
}

.hero-slider-wrapper {
    overflow: hidden;
    width: 100%;
    height: 100%;
    min-height: 580px;
    background: #F0EFEE;
}

.hero-swiper {
    width: 100%;
    height: 100%;
    min-height: 580px;
}

.hero-slide {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 580px;
    overflow: hidden;
    text-decoration: none;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    min-height: 580px;
    object-fit: cover;
    display: block;
}

@media (max-width: 991.98px) {
    .hero-banners {
        min-height: 320px;
    }

    .hero-slider-wrapper,
    .hero-swiper,
    .hero-slide,
    .hero-slide-img {
        min-height: 320px;
    }
}

.hero-swiper .swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.6;
}

.hero-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: #ffffff;
}

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
    color: #ffffff;
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
    font-size: 1.5rem;
}

/* ==========================================================================
   Categories Carousel
   ========================================================================== */

.categories-carousel-section {
    background: linear-gradient(165deg, #5c0000 0%, var(--color-main) 45%, #6b0000 100%);
    color: #ffffff;
}

.categories-carousel-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    text-align: left;
}

.categories-carousel-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.categories-carousel-subtitle {
    font-size: 0.95rem;
    color: #ffffff;
    opacity: 0.92;
    margin: 0;
    text-align: left;
}

.categories-carousel-section .features-section-more {
    color: #ffffff;
}

.categories-carousel-section .features-section-more:hover {
    color: rgba(255, 255, 255, 0.88);
}

.categories-carousel-section .features-section-more i {
    color: inherit;
}

.categories-swiper {
    padding: 2rem 2.5rem 1rem;
    overflow: hidden;
}

/* “Νέα υλικά & αφίξεις” cards: photo + dark burgundy overlay, white type */
.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    height: 100%;
    padding: 1.5rem 1.25rem;
    text-decoration: none;
    text-align: center;
    color: #ffffff;
    background-color: rgba(40, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 1.25rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

/* Dark red wash over photo so labels read in full white */
.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: linear-gradient(
            165deg,
            rgba(90, 0, 0, 0.82) 0%,
            rgba(60, 0, 0, 0.88) 50%,
            rgba(45, 0, 0, 0.9) 100%
        ),
        var(--card-img);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.category-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    max-width: 100%;
}

.category-card .category-card-title {
    display: block;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.category-card .category-card-subtext {
    display: block;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.35;
    color: #ffffff;
    opacity: 0.95;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.category-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.32);
}

.category-card:hover .category-card-title,
.category-card:hover .category-card-subtext {
    color: #ffffff;
}

.categories-swiper .swiper-button-prev,
.categories-swiper .swiper-button-next {
    color: #ffffff;
}

.categories-swiper .swiper-button-prev::after,
.categories-swiper .swiper-button-next::after {
    font-size: 1.5rem;
    font-weight: 600;
}

/* ==========================================================================
   Trending Items
   ========================================================================== */

.trending-section {
    background-color: #ffffff;
}

/* Search page: min height so footer stays at bottom even with no/few results */
.search-page-section {
    min-height: calc(100vh - 220px);
}

.trending-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    text-align: left;
}

.trending-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 0.5rem;
    text-decoration: underline;
    text-decoration-color: rgba(139, 0, 0, 0.18);
    text-decoration-thickness: 8px;
    text-underline-offset: -6px;
    text-decoration-skip-ink: none;
}

.trending-subtitle {
    font-size: 0.95rem;
    color: var(--color-bg-darker);
    margin: 0;
    text-align: left;
}

.trending-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.trending-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    margin-bottom: 0.75rem;
}

.trending-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.trending-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--color-sage);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.trending-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.trending-card:hover .trending-card-title {
    color: var(--color-sage);
}

.trending-card-prices {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.trending-price {
    font-size: 1rem;
    font-weight: 600;
    color: #2C2C2C;
}

.trending-price-old {
    font-size: 0.85rem;
    color: #6B6B6B;
    text-decoration: line-through;
}

.trending-price.sale {
    color: var(--color-sage);
}

/* ==========================================================================
   Narrow Banners Section
   ========================================================================== */

.narrow-banners-section {
    background-color: #ffffff;
}

.narrow-banner {
    display: block;
    overflow: hidden;
    height: 140px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.narrow-banner:hover {
    opacity: 0.92;
}

.narrow-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.narrow-banner:hover img {
    transform: scale(1.03);
}

@media (min-width: 768px) {
    .narrow-banner {
        height: 120px;
    }
}

/* ==========================================================================
   Blog Section
   ========================================================================== */

.blog-section {
    background-color: #ffffff;
}

.blog-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    text-align: left;
}

.blog-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 0.5rem;
    text-decoration: underline;
    text-decoration-color: rgba(139, 0, 0, 0.18);
    text-decoration-thickness: 8px;
    text-underline-offset: -6px;
    text-decoration-skip-ink: none;
}

.blog-subtitle {
    font-size: 0.95rem;
    color: var(--color-bg-darker);
    margin: 0;
    text-align: left;
}

.blog-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 400 / 260;
    margin-bottom: 0.75rem;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.03);
}

.blog-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.blog-card:hover .blog-card-title {
    color: var(--color-sage);
}

.blog-card-date {
    font-size: 0.8rem;
    color: #6B6B6B;
}

/* ==========================================================================
   Features Section
   ========================================================================== */

.features-section {
    background-color: #ffffff;
}

.features-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    text-align: left;
}

.features-section-more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-sage);
    text-decoration: none;
    white-space: nowrap;
}

.features-section-more:hover {
    color: var(--color-olive);
}

.features-section-more i {
    font-size: 1rem;
}

.features-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1E1E1E;
    text-align: left;
    margin-bottom: 0.5rem;
    text-decoration: underline;
    text-decoration-color: rgba(139, 0, 0, 0.18);
    text-decoration-thickness: 8px;
    text-underline-offset: -6px;
    text-decoration-skip-ink: none;
}

.features-section-subtitle {
    font-size: 0.95rem;
    color: var(--color-bg-darker);
}

.features-section .container {
    background-color: #F0EFEE;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
}

.feature-icon {
    flex-shrink: 0;
    line-height: 1;
}

.feature-svg-icon {
    width: 48px;
    height: 48px;
    display: block;
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: inline;
    color: #1E1E1E;
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-color: rgba(139, 0, 0, 0.18);
    text-decoration-thickness: 8px;
    text-underline-offset: -6px;
    text-decoration-skip-ink: none;
}

.feature-text {
    font-size: 0.9rem;
    color: var(--color-bg-darker);
    margin-bottom: 0;
    line-height: 1.5;
}

/* ==========================================================================
   Category Page – Subcategory carousel (below breadcrumb)
   ========================================================================== */

.category-subcats-section {
    background-color: #ffffff;
    border-bottom: 1px solid #E8E6E3;
    overflow-x: clip;
    max-width: 100%;
}

.category-subcats-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #1e1e1e;
    text-decoration: none;
}

.category-subcats-subtitle {
    font-size: 0.9rem;
    color: #5a5a5a;
    line-height: 1.45;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .category-subcats-subtitle {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Match home horizontal padding; extra bottom so card shadows aren’t clipped (overflow:hidden) */
.category-subcats-swiper {
    position: relative;
    padding: 2rem 2.5rem 2.5rem;
    margin: 0;
    overflow: hidden;
}

.category-subcats-swiper .swiper-slide {
    height: auto;
    display: flex;
    box-sizing: border-box;
    /* Space for box-shadow below cards (swiper clips overflow) */
    padding: 0.25rem 0.15rem 1.1rem;
}

.category-subcat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.65rem;
    width: 100%;
    min-height: 120px;
    padding: 1rem 0.5rem 0.85rem;
    text-align: center;
    text-decoration: none;
    color: #1e1e1e;
    background: #ffffff;
    border: 1px solid #d4d2ce;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    box-sizing: border-box;
}

.category-subcat-card:hover {
    border-color: rgba(139, 0, 0, 0.32);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.1);
    color: #1e1e1e;
}

.category-subcat-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    flex-shrink: 0;
}

.category-subcat-icon-wrap .bi {
    font-size: 1.65rem;
    line-height: 1;
    color: var(--color-sage);
}

.category-subcat-label {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1e1e1e;
    display: block;
    overflow-wrap: anywhere;
}

.category-subcats-swiper .swiper-button-prev,
.category-subcats-swiper .swiper-button-next {
    color: var(--color-sage);
    top: 50%;
    margin-top: 0;
    transform: translateY(-50%);
    width: 2.1rem;
    height: 2.1rem;
}

.category-subcats-swiper .swiper-button-prev::after,
.category-subcats-swiper .swiper-button-next::after {
    font-size: 1.1rem;
    font-weight: 700;
}

@media (max-width: 575.98px) {
    .category-subcats-swiper {
        padding: 1.5rem 2rem 2rem;
    }
}

/* ==========================================================================
   Category Page – Filters & Sort
   ========================================================================== */

.category-filter-card {
    background-color: #ffffff;
    padding: 1.5rem 1.25rem;
    position: sticky;
    top: 1rem;
    border: 1px solid #DCDAD8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.category-filter-card .trending-title.category-filter-card-title {
    margin-bottom: 1.5rem;
}

.category-filter-group {
    margin-bottom: 1.5rem;
}

.category-filter-group:last-of-type {
    margin-bottom: 0;
}

.category-filter-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1E1E1E;
    margin-bottom: 0.6rem;
    text-transform: none;
    letter-spacing: 0;
}

.category-filter-search {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: #1E1E1E;
    background-color: #ffffff;
    border: 1px solid #CECCC8;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.category-filter-search::placeholder {
    color: #8A8A8A;
}

.category-filter-search:focus {
    border-color: rgba(139, 0, 0, 0.5);
    box-shadow: 0 0 0 2px rgba(139, 0, 0, 0.12);
    outline: none;
}

.category-filter-options {
    margin-top: 0.25rem;
}

.category-filter-options-scroll {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

.category-filter-options-scroll::-webkit-scrollbar {
    width: 6px;
}

.category-filter-options-scroll::-webkit-scrollbar-track {
    background: #F0F0F0;
    border-radius: 3px;
}

.category-filter-options-scroll::-webkit-scrollbar-thumb {
    background: rgba(139, 0, 0, 0.35);
    border-radius: 3px;
}

.category-filter-options-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 0, 0, 0.5);
}

.category-filter-group .form-check {
    margin-bottom: 0.5rem;
    padding-left: 0;
    min-height: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-filter-group .form-check-input.category-filter-check {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    flex-shrink: 0;
    border: 1px solid #CECCC8;
    border-radius: 4px;
    background-color: #ffffff;
}

.category-filter-group .form-check-input.category-filter-check:checked {
    background-color: var(--color-sage);
    border-color: var(--color-sage);
}

.category-filter-group .form-check-label {
    font-size: 0.9rem;
    font-weight: 400;
    color: #1E1E1E;
    cursor: pointer;
    margin: 0;
}

.category-filter-clear-btn {
    background-color: #ffffff;
    color: #B71C1C;
    border: 1px solid #B71C1C;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.6rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-filter-clear-btn:hover {
    background-color: rgba(220, 53, 69, 0.06);
    color: #8B0000;
    border-color: #8B0000;
}

/* Mobile: floating Filters button (bottom left) – higher, float animation, glowing shadow */
@keyframes category-fab-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.category-filters-fab {
    position: fixed;
    bottom: 3rem;
    left: 1.25rem;
    z-index: 1040;
    background: var(--color-sage);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.65rem 1.25rem;
    box-shadow:
        0 4px 14px rgba(139, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 24px rgba(139, 0, 0, 0.35);
    animation: category-fab-float 2.5s ease-in-out infinite;
}

.category-filters-fab:hover {
    background: var(--color-olive);
    color: #ffffff;
    box-shadow:
        0 6px 18px rgba(139, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset,
        0 0 32px rgba(139, 0, 0, 0.4);
}

.category-filters-fab.category-filters-fab-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* Mobile: filters offcanvas (same look as desktop filter card) */
.category-filters-offcanvas.offcanvas-start {
    max-width: 320px;
}

.category-filters-offcanvas .offcanvas-header .offcanvas-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2C2C2C;
    text-decoration: underline;
    text-decoration-color: rgba(139, 0, 0, 0.18);
    text-decoration-thickness: 8px;
    text-underline-offset: -6px;
    text-decoration-skip-ink: none;
}

.category-filters-offcanvas .category-filter-card {
    position: static;
    box-shadow: none;
}

.category-sort-bar {
    padding: 0.25rem 0;
}

.category-sort-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-bg-darker);
    margin-bottom: 0;
}

/* ==========================================================================
   404 Page
   ========================================================================== */

.error-404-section {
    min-height: 50vh;
    display: flex;
    align-items: center;
    background-color: #ffffff;
}

.error-404-content {
    max-width: 520px;
    margin: 0 auto;
}

.error-404-code {
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-sage);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.error-404-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 0.75rem;
}

.error-404-text {
    font-size: 1rem;
    color: var(--color-bg-darker);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.error-404-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background-color: var(--color-sage);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.error-404-btn:hover {
    background-color: var(--color-olive);
    color: #ffffff;
}

.error-404-btn i {
    font-size: 1rem;
}

/* ==========================================================================
   Generic Page (e.g. Terms, Privacy)
   ========================================================================== */

.page-content-section {
    background-color: #ffffff;
}

.page-title {
    font-size: 1.85rem;
    font-weight: 600;
    color: #2C2C2C;
    text-align: left;
    margin-bottom: 1.25rem;
    text-decoration: underline;
    text-decoration-color: rgba(139, 0, 0, 0.18);
    text-decoration-thickness: 8px;
    text-underline-offset: -6px;
    text-decoration-skip-ink: none;
}

.page-body {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--color-bg-darker);
}

.page-body p {
    margin-bottom: 1rem;
}

.page-body p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Cart Page
   ========================================================================== */

.cart-page {
    background-color: #ffffff;
    min-height: 60vh;
}

.cart-card,
.cart-summary-card {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 1.5rem 1.75rem;
}

.cart-card-title,
.cart-summary-title,
.cart-popular-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 1.25rem;
    text-decoration: underline;
    text-decoration-color: rgba(139, 0, 0, 0.18);
    text-decoration-thickness: 8px;
    text-underline-offset: -6px;
    text-decoration-skip-ink: none;
}

.cart-card-title i,
.cart-summary-title i,
.cart-popular-title i {
    color: var(--color-sage);
}

.cart-title-icon {
    width: 2rem;
    height: 2rem;
    vertical-align: middle;
    object-fit: contain;
}

.cart-table-header {
    padding-bottom: 0.5rem;
}

.cart-divider {
    margin: 0.5rem 0 1rem;
    border-color: #D8D6D4;
}

.cart-item-product-inner {
    min-width: 0;
}

.cart-item-text {
    min-width: 0;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: #F0EFEE;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-name {
    font-weight: 500;
    color: #2C2C2C;
    font-size: 0.95rem;
    line-height: 1.35;
    word-wrap: break-word;
}

.cart-item-mobile-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6B6B6B;
    margin-bottom: 0.2rem;
}

.cart-item-code {
    font-size: 0.8rem;
}

.cart-item-price {
    font-weight: 600;
    color: #2C2C2C;
}

.cart-quantity {
    max-width: 140px;
    margin: 0 auto;
}

.cart-qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: var(--color-sage);
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cart-qty-btn:hover {
    background: var(--color-olive);
    color: #ffffff;
}

.cart-qty-input {
    width: 48px;
    height: 36px;
    text-align: center;
    border: 1px solid #CFCDC9;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Hide number input spinners (up/down arrows) */
.cart-qty-input::-webkit-inner-spin-button,
.cart-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: #CFCDC9;
    color: #252525;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.cart-remove-btn:hover {
    background: #D8D6D4;
    color: #1A1A1E;
}

.cart-coupon-input {
    flex: 1;
    min-width: 0;
    border-radius: 8px;
    border: 1px solid #CFCDC9;
}

.cart-coupon-btn {
    border-radius: 8px;
    background: var(--color-sage);
    color: #ffffff;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: none;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.cart-coupon-btn:hover {
    background: var(--color-olive);
    color: #ffffff;
}

.cart-totals {
    font-size: 0.95rem;
    color: var(--color-bg-darker);
}

.cart-total-row {
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid #D8D6D4;
    font-size: 1rem;
    color: #2C2C2C;
}

.cart-checkout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    background: var(--color-sage);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    border: none;
    transition: background 0.2s ease;
}

.cart-checkout-btn:hover {
    background: var(--color-olive);
    color: #ffffff;
}

/* ==========================================================================
   Product view page
   ========================================================================== */

.product-view-section {
    background-color: #ffffff;
    overflow-x: clip;
    max-width: 100%;
}

/* Flex/grid children need min-width:0 or long content + Swiper can widen past 100% */
.product-view-section .row > [class*="col-"] {
    min-width: 0;
    max-width: 100%;
}

.product-view-section .container {
    max-width: 100%;
    box-sizing: border-box;
}

.product-gallery-wrap .product-gallery a {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.product-gallery {
    position: relative;
    background: #F0F0F0;
    aspect-ratio: 1;
    max-width: 100%;
    overflow: hidden;
    isolation: isolate;
}

.product-gallery-swiper {
    width: 100% !important;
    max-width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    margin: 0;
    overflow: hidden;
}

.product-gallery-swiper .swiper-slide {
    height: 100%;
}

.product-gallery-swiper .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-gallery-swiper .product-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Keep arrows inside the gallery box on narrow screens (no horizontal bleed) */
.product-gallery-swiper .swiper-button-prev,
.product-gallery-swiper .swiper-button-next {
    color: #2C2C2C !important;
    top: 50%;
    width: 2.5rem;
    height: 2.5rem;
    margin-top: 0;
    transform: translateY(-50%);
}

.product-gallery-swiper .swiper-button-prev::after,
.product-gallery-swiper .swiper-button-next::after {
    font-size: 1.5rem;
    color: #2C2C2C !important;
}

.product-gallery-swiper .swiper-button-prev:hover,
.product-gallery-swiper .swiper-button-next:hover,
.product-gallery-swiper .swiper-button-prev:hover::after,
.product-gallery-swiper .swiper-button-next:hover::after {
    color: var(--color-olive) !important;
}

.product-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.product-gallery-thumbs {
    flex-wrap: wrap;
    max-width: 100%;
    box-sizing: border-box;
    row-gap: 0.5rem;
}

@media (max-width: 400px) {
    .product-gallery-thumbs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        padding-bottom: 0.2rem;
        margin-left: 0;
        margin-right: 0;
    }

    .product-gallery-thumb {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }
}

.product-gallery-thumb {
    display: block;
    width: 4rem;
    height: 4rem;
    flex-shrink: 0;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
    background: transparent;
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-gallery-thumb:hover,
.product-gallery-thumb.active {
    border-color: var(--color-sage);
}

.product-gallery-thumb:hover {
    opacity: 0.9;
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--color-sage);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.product-info {
    padding-top: 0.25rem;
}

.product-category-link {
    font-size: 1rem;
    color: var(--color-sage);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.85rem;
}

.product-category-link:hover {
    color: var(--color-olive);
    text-decoration: underline;
}

.product-info .product-title {
    font-size: clamp(1.35rem, 4vw, 2.1rem);
    margin-bottom: 0.85rem;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.product-sku {
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
}

.product-availability {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.product-info .product-prices {
    margin-top: 0.25rem;
}

/* In stock — success green (distinct from brand burgundy) */
.product-availability-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem 0.4rem 0.7rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 999px;
    line-height: 1.2;
    background: linear-gradient(180deg, #ecf9f0 0%, #d8f0e1 100%);
    color: #0d4d2b;
    border: 1px solid rgba(34, 139, 84, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.product-availability-in .product-availability-icon {
    color: #1e8e4a;
    font-size: 1.05rem;
    flex-shrink: 0;
}

/* Out of stock */
.product-availability-pill--out {
    background: linear-gradient(180deg, #f3f3f2 0%, #e8e6e3 100%);
    color: #4a4a4a;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: none;
    font-weight: 600;
}

.product-availability-out .product-availability-icon {
    color: #6b6b6b;
    font-size: 1.05rem;
    flex-shrink: 0;
}

/* Pickup note — modern callout (not full pill); neutral surface */
.product-pickup-wrap {
    margin-top: 0.35rem;
}

.product-pickup-pill.product-availability-pill {
    align-items: flex-start;
    text-align: start;
    max-width: 100%;
    font-weight: 500;
    font-size: 0.9375rem;
    line-height: 1.45;
    letter-spacing: 0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    gap: 0.65rem;
    background: #f4f3f1;
    color: var(--color-bg-darker);
    border: 1px solid #e0deda;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.product-pickup-pill .product-pickup-text {
    flex: 1 1 auto;
    min-width: 0;
    text-align: start;
    font-weight: 500;
    font-size: inherit;
    line-height: 1.45;
}

.product-pickup-pill .product-pickup-text * {
    text-align: start;
}

.product-pickup-pill .product-pickup-text strong {
    color: inherit;
    font-weight: 700;
}

.product-pickup-pill .product-availability-icon {
    flex-shrink: 0;
    font-size: 1.55em;
    line-height: 1.45;
    margin-top: 0.04em;
    color: var(--color-sage);
}

/* ==========================================================================
   Upsell modal + home deal cards (modal, cart suggestions, category/search JS)
   ========================================================================== */

#upsellModal .upsell-modal-dialog {
    max-width: min(920px, calc(100vw - 1.5rem));
    margin: 1rem auto;
}

#upsellModal .upsell-modal-content {
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

#upsellModal .upsell-modal-header {
    padding: 1.25rem 1.5rem 0.65rem;
    background: linear-gradient(180deg, #faf9f8 0%, #ffffff 100%);
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0.5rem;
}

#upsellModal .upsell-modal-header-inner {
    width: 100%;
    min-width: 0;
}

#upsellModal .upsell-modal-close {
    flex-shrink: 0;
    margin: -0.25rem -0.35rem 0 auto;
    opacity: 0.65;
}

#upsellModal .upsell-modal-close:hover {
    opacity: 1;
}

#upsellModal .upsell-modal-title {
    font-size: clamp(1.15rem, 3.5vw, 1.4rem);
    font-weight: 700;
    color: var(--color-bg-darker);
    letter-spacing: 0.02em;
    line-height: 1.25;
}

#upsellModal .upsell-modal-subtitle {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    margin-top: 0.4rem;
    line-height: 1.45;
}

#upsellModal .upsell-modal-body {
    padding: 0 1.25rem 1.35rem;
}

#upsellModal .upsell-modal-swiper-container {
    min-height: 0;
    width: 100%;
    min-width: 0;
}

#upsellModal .upsell-modal-footer {
    margin-top: 1.15rem;
    padding-top: 0.25rem;
}

#upsellModal .upsell-continue-btn {
    background: var(--color-sage);
    border: 1px solid var(--color-sage);
    color: #ffffff;
    font-weight: 600;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#upsellModal .upsell-continue-btn:hover {
    background: var(--color-olive);
    border-color: var(--color-olive);
    color: #ffffff;
}

#upsellModal .upsell-swiper-wrap {
    position: relative;
    padding: 0 2.75rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

#upsellModal .upsell-products-prev,
#upsellModal .upsell-products-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #d8d6d4;
    background: #ffffff;
    color: var(--color-bg-darker);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

#upsellModal .upsell-products-prev {
    left: 0;
}

#upsellModal .upsell-products-next {
    right: 0;
}

#upsellModal .upsell-products-prev:hover,
#upsellModal .upsell-products-next:hover {
    border-color: var(--color-sage);
    color: var(--color-sage);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

#upsellModal .upsell-products-swiper {
    overflow: hidden;
    padding: 0.35rem 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

#upsellModal .upsell-products-swiper .swiper-slide {
    height: auto;
    box-sizing: border-box;
    display: flex;
}

#upsellModal .upsell-products-swiper .swiper-slide > .home-deal-card {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}

@media (max-width: 575.98px) {
    #upsellModal .upsell-swiper-wrap {
        padding: 0 2.35rem;
    }

    #upsellModal .upsell-modal-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.home-deal-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: 100%;
    min-height: 0;
    background: #ffffff;
    border: 1px solid #e4e2df;
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-deal-card:hover {
    border-color: rgba(139, 0, 0, 0.22);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09);
}

.home-deal-card__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 0.75rem;
    text-decoration: none;
}

.home-deal-card__img {
    width: 100px;
    height: 100px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #eceae8;
    background: #fafafa;
}

.home-deal-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.home-deal-card__sku {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    margin: 0 0 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.home-deal-card__title {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--color-bg-darker);
    text-decoration: none;
    line-height: 1.35;
    margin: 0 0 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-deal-card__title:hover {
    color: var(--color-sage);
}

.home-deal-card__availability {
    font-size: 0.8rem;
    margin: 0 0 0.5rem;
    color: #2e7d32;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    line-height: 1.35;
}

.home-deal-card__availability .bi {
    flex-shrink: 0;
    font-size: 0.95em;
}

.home-deal-card__availability--out {
    align-items: flex-start;
    color: #5c5348;
}

.home-deal-card__availability--out .bi {
    margin-top: 0.12em;
    color: #8a7a68;
}

.home-deal-card__img--dim {
    opacity: 0.72;
    filter: grayscale(0.12);
}

.home-deal-card__add--oos-spacer {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    visibility: hidden;
    pointer-events: none;
    padding: 0;
    border: none;
    background: transparent;
}

.home-deal-card__price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
}

.home-deal-card__prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
    min-width: 0;
}

.home-deal-card__price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-bg-darker);
}

.home-deal-card__price--old {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.home-deal-card__add {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: none;
    background: var(--color-sage);
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.home-deal-card__add:hover:not(:disabled) {
    background: var(--color-olive);
    color: #ffffff;
    transform: translateY(-1px);
}

.home-deal-card__add:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

#upsellModal .upsell-add-btn--added {
    background: #2e7d32;
    pointer-events: none;
}

/* Quantity stepper (±) */
.product-qty-row {
    width: 100%;
}

.product-qty-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2C2C2C;
    margin: 0;
}

.product-qty {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #D4D2D0;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.product-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    min-height: 2.65rem;
    padding: 0;
    font-size: 1.2rem;
    line-height: 1;
    font-weight: 600;
    color: #2C2C2C;
    background: #F5F4F3;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.product-qty-btn:hover:not(:disabled) {
    background: #ebe9e6;
    color: var(--color-sage);
}

.product-qty-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.product-qty-input {
    width: 3.25rem;
    min-height: 2.65rem;
    padding: 0.25rem 0.35rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    color: #2C2C2C;
    border: none;
    border-left: 1px solid #E8E6E3;
    border-right: 1px solid #E8E6E3;
    background: #ffffff;
    -moz-appearance: textfield;
    appearance: textfield;
}

.product-qty-input:disabled {
    background: #f0f0f0;
    color: #6b6b6b;
}

.product-qty-input::-webkit-outer-spin-button,
.product-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Product page: full-width call + Viber row below add to cart */
.product-contact-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.5rem;
    width: 100%;
    align-items: stretch;
    box-sizing: border-box;
}

.product-contact-row .product-contact-card {
    flex: 1 1 0;
    min-width: 0;
}

.product-contact-card-text {
    min-width: 0;
    flex: 1 1 auto;
}

@media (max-width: 380px) {
    .product-contact-row {
        flex-direction: column;
    }
}

/* Product description – matches features-style block on product page */
.product-description-section {
    margin-top: 1.5rem;
    background-color: #F0EFEE;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    .product-description-section {
        padding: 1.25rem 1rem;
    }

    .product-view-section > .container {
        padding-left: max(0.75rem, env(safe-area-inset-left));
        padding-right: max(0.75rem, env(safe-area-inset-right));
    }
}

.product-description-section .features-section-header {
    margin-bottom: 0.5rem;
}

.product-description-section .features-section-title {
    margin-bottom: 0.25rem;
}

.product-description-section .features-section-header + .feature-text,
.product-description-section .features-section-header ~ p.feature-text {
    margin-top: 0;
}

.product-description-section .product-features-row {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(139, 0, 0, 0.12);
}

.product-description-section .feature-item {
    padding: 0.4rem 0;
    gap: 0.6rem;
}

.product-description-section .feature-svg-icon {
    width: 28px;
    height: 28px;
}

.product-description-section .feature-title {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    text-decoration-thickness: 4px;
    text-underline-offset: -3px;
    text-transform: none;
}

.product-description-section .feature-text {
    font-size: 0.8rem;
    line-height: 1.45;
}

.product-description-section .product-description {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-bg-darker);
}

.product-description-section .product-description p:last-child {
    margin-bottom: 0;
}

/* Variants & grouped product options (not in static front-end mock; kept functional) */
.property-radio-group .property-option-btn {
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(34, 139, 84, 0.35);
    background: #fff;
    color: var(--color-bg-darker);
    transition: all 0.15s ease;
}

.property-radio-group .property-option-btn:hover {
    border-color: var(--color-sage);
    background: rgba(34, 139, 84, 0.06);
}

.property-radio:checked + .property-option-btn {
    background: var(--color-sage);
    border-color: var(--color-sage);
    color: #fff;
    box-shadow: 0 0 0 2px rgba(34, 139, 84, 0.2);
}

.property-radio:disabled + .property-option-btn {
    opacity: 0.55;
    cursor: not-allowed;
    text-decoration: line-through;
}

.product-group-selections {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.product-group-option {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 2px solid rgba(34, 139, 84, 0.28);
    background: #fff;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-group-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-group-option:hover {
    transform: translateY(-1px);
    border-color: var(--color-sage);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-group-option.is-current {
    border-color: var(--color-sage);
    box-shadow: 0 0 0 3px rgba(34, 139, 84, 0.2);
    pointer-events: none;
}

.product-add-to-cart-btn:disabled {
    background: #8A8A8A;
    color: #ffffff;
    cursor: not-allowed;
    opacity: 0.85;
}

.product-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-bg-darker);
    margin-bottom: 0;
}

.product-accordion .accordion-item {
    border: none;
    background: transparent;
    margin-bottom: 0;
}

.product-accordion .accordion-button {
    background: transparent;
    color: #2C2C2C;
    font-weight: 500;
    font-size: 1rem;
    border: none;
    box-shadow: none;
    padding: 0.5rem 1.5rem 0.5rem 0;
    position: relative;
}

.product-accordion .accordion-button::after {
    position: absolute;
    right: 0;
}

.product-accordion .accordion-button:not(.collapsed) {
    background: transparent;
    color: #2C2C2C;
}

.product-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.product-accordion .accordion-body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-bg-darker);
    padding: 0 0 0.75rem 0;
    border: none;
    background: transparent;
}

.product-add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    background: var(--color-sage);
    color: #ffffff;
    font-weight: 600;
    border: none;
    transition: background 0.2s ease;
}

.product-add-to-cart-btn:hover:not(:disabled) {
    background: var(--color-olive);
    color: #ffffff;
}

/* ==========================================================================
   Auth (Login / Register / Reset password)
   ========================================================================== */

.auth-page {
    background-color: #ffffff;
    min-height: 55vh;
    overflow-x: clip;
    max-width: 100%;
    box-sizing: border-box;
}

.auth-page .container {
    max-width: 100%;
    box-sizing: border-box;
}

/* Row columns must shrink so long text / inputs do not cause horizontal scroll */
.auth-page .auth-split.row > [class*="col-"] {
    min-width: 0;
    max-width: 100%;
}

.auth-page .auth-form .row > [class*="col-"] {
    min-width: 0;
    max-width: 100%;
}

/* Two-column auth layout: form left, benefits/create-account right (full container width like home) */
.auth-split-page .auth-split {
    max-width: 100%;
}

.auth-split .auth-panel {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 2rem 1.75rem;
    border-radius: 12px;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-wrap: break-word;
}

.auth-split .auth-form,
.auth-split .form-control,
.auth-split .form-select {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 575.98px) {
    .auth-page .container {
        padding-left: max(0.75rem, env(safe-area-inset-left));
        padding-right: max(0.75rem, env(safe-area-inset-right));
    }

    .auth-split .auth-panel {
        padding: 1.5rem 1.1rem;
    }
}

.auth-create-panel .auth-title {
    margin-bottom: 1rem;
}

.auth-create-intro {
    font-size: 0.95rem;
    color: var(--color-bg-darker);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.auth-benefits {
    margin-bottom: 1.5rem;
}

.auth-benefits li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
    font-size: 0.95rem;
    color: #2C2C2C;
}

.auth-benefit-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    object-fit: contain;
}

.auth-btn-outline {
    border-radius: 10px;
    background: #ffffff;
    color: var(--color-sage);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--color-sage);
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

.auth-btn-outline:hover {
    background: var(--color-sage);
    color: #ffffff;
    border-color: var(--color-sage);
}

.auth-forgot {
    font-size: 0.95rem;
}

.auth-forgot .auth-link {
    font-weight: 500;
}

.auth-card {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 2rem 1.75rem;
}

.auth-title {
    font-size: clamp(1.35rem, 4.2vw, 1.85rem);
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 0.5rem;
    line-height: 1.25;
    text-decoration: underline;
    text-decoration-color: rgba(139, 0, 0, 0.18);
    text-decoration-thickness: 8px;
    text-underline-offset: -6px;
    text-decoration-skip-ink: none;
    overflow-wrap: anywhere;
}

.auth-subtitle {
    font-size: 0.95rem;
}

.auth-form .form-label {
    font-weight: 500;
    color: #2C2C2C;
}

.auth-input {
    border-radius: 8px;
    border: 1px solid #CFCDC9;
    padding: 0.6rem 0.85rem;
}

.auth-input:focus {
    border-color: var(--color-sage);
    box-shadow: 0 0 0 0.2rem rgba(139, 0, 0, 0.15);
}

.auth-input[readonly] {
    background-color: #F0F0F0;
}

.auth-form .form-select.auth-input {
    padding: 0.7rem 2.4rem 0.7rem 1rem;
    font-size: 0.95rem;
}

.auth-form .form-check-input:checked {
    background-color: var(--color-sage);
    border-color: var(--color-sage);
}

.auth-form .form-check-label {
    color: var(--color-bg-darker);
}

.auth-btn {
    border-radius: 10px;
    background: var(--color-sage);
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: none;
    transition: background 0.2s ease;
}

.auth-btn:hover {
    background: var(--color-olive);
    color: #ffffff;
}

.btn.auth-btn,
.btn.auth-btn:disabled {
    background: var(--color-sage);
    color: #ffffff;
    border: none;
}

.btn.auth-btn:hover:not(:disabled) {
    background: var(--color-olive);
    color: #ffffff;
}

.btn.auth-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn.auth-btn-outline {
    border-radius: 10px;
    background: #ffffff;
    color: var(--color-sage);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--color-sage);
}

.btn.auth-btn-outline:hover {
    background: var(--color-sage);
    color: #ffffff;
    border-color: var(--color-sage);
}

.auth-footer {
    font-size: 0.95rem;
    color: var(--color-bg-darker);
}

.auth-link {
    color: var(--color-sage);
    font-weight: 600;
    text-decoration: none;
}

.auth-link:hover {
    color: var(--color-olive);
    text-decoration: underline;
}

.auth-link-btn {
    color: var(--color-sage);
    font-weight: 600;
    font-size: inherit;
    cursor: pointer;
    text-decoration: none;
}

.auth-link-btn:hover {
    color: var(--color-olive);
    text-decoration: underline;
}

.auth-modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

.auth-modal-content .modal-header {
    padding: 1.5rem 1.5rem 0;
}

.auth-modal-content .modal-body {
    padding: 0 1.5rem 1.5rem;
}

/* Feedback modal — success / error (sign-in, sign-up, reset-password, cart, dashboard) */
.feedback-modal-dialog {
    max-width: 440px;
}

.feedback-modal-content {
    position: relative;
    background: #ffffff;
    color: #2c2c2c;
    border: 2px solid var(--color-sage);
    border-radius: 12px;
    padding: 2rem 1.75rem 1.75rem;
    box-shadow: 0 8px 32px rgba(44, 44, 44, 0.1);
}

.feedback-modal-body {
    padding: 0.5rem 0.25rem 0;
}

.feedback-modal-close.btn-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0efee;
    border: 2px solid var(--color-sage);
    color: var(--color-sage);
    border-radius: 50%;
    opacity: 1;
    background-image: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.feedback-modal-close.btn-close:hover {
    background: var(--color-sage);
    color: #ffffff;
    border-color: var(--color-sage);
}

.feedback-modal-close.btn-close:focus {
    box-shadow: 0 0 0 0.2rem rgba(139, 0, 0, 0.2);
}

.feedback-modal-close .bi {
    font-size: 1.25rem;
    line-height: 1;
}

#feedbackModalIcon,
.feedback-modal-icon {
    font-size: 3.5rem;
    line-height: 1;
}

#feedbackModalIcon.success,
.feedback-modal-icon.success {
    color: #52b7b3;
}

#feedbackModalIcon.danger,
.feedback-modal-icon.danger {
    color: #8b0000;
}

#feedbackModalIcon.info,
.feedback-modal-icon.info {
    color: #c9a227;
}

.feedback-modal-message,
#feedbackModalMessage {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 0.35rem;
    line-height: 1.35;
}

.feedback-modal-subtext,
.modal-subtext {
    font-size: 0.975rem;
    color: #4a4a4a;
    line-height: 1.45;
    margin-bottom: 0;
}

.modal-subtext:empty,
.feedback-modal-subtext:empty {
    display: none;
}

/* ==========================================================================
   Dashboard (account)
   ========================================================================== */

.dashboard-page .card {
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-page .nav-pills .nav-link {
    color: #2c2c2c;
    text-align: left;
    padding: 1rem;
    border-radius: 0;
    border-left: 3px solid transparent;
}

.dashboard-page .nav-pills .nav-link.active {
    background-color: #f0efee;
    color: var(--color-sage);
    border-left: 3px solid var(--color-sage);
}

.dashboard-page .blue-highlight-title,
.dashboard-page .dashboard-section-title {
    color: var(--color-sage);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.dashboard-page .vertical-menu {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(139, 0, 0, 0.08);
}

.dashboard-page .content-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(139, 0, 0, 0.08);
    padding: 2rem;
}

.dashboard-page .form-section {
    margin-bottom: 2rem;
}

.dashboard-page .form-section h5 {
    color: var(--color-sage);
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f0efee;
    padding-bottom: 0.5rem;
    position: relative;
}

.dashboard-page .form-section h5:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--color-sage);
}

.dashboard-page .alert {
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.dashboard-page .loading {
    opacity: 0.6;
    pointer-events: none;
}

.dashboard-page .dashboard-form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #d4d2d0;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    background-color: #fff;
    color: #1e1e1e;
    font-size: 1rem;
    line-height: 1.5;
}

.dashboard-page .dashboard-form-control:focus {
    border-color: var(--color-sage);
    box-shadow: 0 0 0 0.2rem rgba(139, 0, 0, 0.12);
    outline: none;
}

.dashboard-page .dashboard-form-control::placeholder {
    color: #8a8a8a;
}

.dashboard-page .dashboard-form-select {
    width: 100%;
    font-size: 1rem;
    border: 2px solid #d4d2d0;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #1e1e1e;
}

.dashboard-page select.dashboard-form-select:focus {
    border-color: var(--color-sage);
    box-shadow: 0 0 0 0.2rem rgba(139, 0, 0, 0.12);
    outline: none;
}

.dashboard-page .btn-primary {
    background-color: var(--color-sage);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: #fff;
    transition: background 0.2s ease;
}

.dashboard-page .btn-primary:hover {
    background-color: var(--color-olive);
    color: #fff;
}

.dashboard-page .btn-primary:disabled {
    background-color: #1e1e1e;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.dashboard-page .text-primary,
.dashboard-page .text-success {
    color: var(--color-sage) !important;
}

.dashboard-page .text-danger {
    color: var(--color-danger, #b71c1c) !important;
}

.dashboard-page a.text-primary:hover {
    color: var(--color-olive) !important;
}

.dashboard-page .badge.bg-success {
    background-color: var(--color-sage) !important;
}

.dashboard-page .form-label {
    margin-bottom: 0.5rem;
    color: #2c2c2c;
    font-weight: 600;
}

/* ==========================================================================
   Order details
   ========================================================================== */

.order-details-page .order-details-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(139, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.order-details-page .order-details-header {
    border-bottom: 2px solid var(--color-cream, #f0efee);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.order-details-page .order-details-title {
    color: var(--color-sage);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.order-details-page .order-details-subtitle {
    color: #1e1e1e;
    font-size: 1.05rem;
}

.order-details-page .back-button {
    background-color: var(--color-sage);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: background 0.2s ease;
    text-decoration: none;
    color: #fff;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.order-details-page .back-button:hover {
    background-color: var(--color-olive);
    color: #fff;
    text-decoration: none;
}

.order-details-page .info-section {
    margin-bottom: 2rem;
}

.order-details-page .info-section h6 {
    color: var(--color-sage);
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-cream, #f0efee);
    padding-bottom: 0.5rem;
    position: relative;
}

.order-details-page .info-section h6:after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--color-sage);
}

.order-details-page .order-item {
    border-bottom: 1px solid var(--color-cream, #f0efee);
    padding: 1rem 0;
}

.order-details-page .order-item:last-child {
    border-bottom: none;
}

.order-details-page .order-item-img-wrap {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.order-details-page .order-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-details-page .order-item-details {
    text-align: left;
}

.order-details-page .totals-section {
    background-color: var(--color-cream, #f0efee);
    border-radius: 12px;
    padding: 1.5rem;
}

.order-details-page .total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.order-details-page .total-row.final {
    border-top: 2px solid rgba(139, 0, 0, 0.2);
    padding-top: 1rem;
    margin-top: 1rem;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-sage);
}

.order-details-page .text-primary {
    color: var(--color-sage) !important;
}

.order-details-page .badge-success {
    background-color: rgba(139, 0, 0, 0.12);
    color: var(--color-sage);
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-weight: 600;
}

.order-details-page .badge-warning {
    background-color: rgba(245, 181, 20, 0.25);
    color: #5c3d00;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-weight: 600;
}

.order-details-page .badge-secondary {
    background-color: #e8e7e6;
    color: #1e1e1e;
    padding: 0.35rem 0.75rem;
    border-radius: 2rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .order-details-page .order-details-container {
        padding: 1rem;
    }

    .order-details-page .order-details-header {
        text-align: center;
    }

    .order-details-page .back-button {
        margin-bottom: 1rem;
    }

    .order-details-page .row {
        flex-direction: column;
    }

    .order-details-page .col-md-6 {
        width: 100%;
        margin-bottom: 1rem;
    }

    .order-details-page .d-flex.align-items-center {
        flex-direction: column;
        align-items: flex-start !important;
        text-align: left;
    }

    .order-details-page .text-end {
        text-align: left !important;
        margin-top: 0.5rem;
    }
}

/* ==========================================================================
   Order success page
   ========================================================================== */

.success-page-section {
    background: linear-gradient(135deg, #f7f6f5, #f0efee, rgba(82, 183, 179, 0.12));
    min-height: 55vh;
    padding: 3rem 0;
}

.success-page-section .success-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1rem;
    text-align: center;
}

.success-page-section .success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--color-sage), var(--color-olive));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 24px rgba(139, 0, 0, 0.22);
}

.success-page-section .success-icon .checkmark {
    width: 40px;
    height: 22px;
    border-left: 4px solid #fff;
    border-bottom: 4px solid #fff;
    border-radius: 2px;
    transform: translate(-50%, -60%) rotate(-45deg);
    position: absolute;
    left: 50%;
    top: 50%;
}

.success-page-section .success-header {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e1e1e;
    margin-bottom: 0.5rem;
}

.success-page-section .success-subtext {
    font-size: 1rem;
    color: #1e1e1e;
    margin-bottom: 1.5rem;
}

.success-page-section .order-id {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #fff;
    border-radius: 12px;
    border-left: 4px solid var(--color-sage);
    font-size: 1rem;
    color: #2c2c2c;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.success-page-section .order-id strong {
    color: var(--color-sage);
    margin-left: 0.35rem;
}

.success-page-section .order-table-container {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.5rem auto;
    max-width: 560px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow-x: auto;
}

.success-page-section .order-items .order-table-container {
    max-width: 720px;
}

.success-page-section .order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.success-page-section .order-table th {
    text-align: left;
    padding: 0.6rem 0.75rem;
    font-weight: 600;
    color: #1e1e1e;
    border-bottom: 2px solid #e4e2e0;
}

.success-page-section .order-table th:last-child,
.success-page-section .order-table td:last-child {
    text-align: right;
}

.success-page-section .order-table td {
    padding: 0.6rem 0.75rem;
    color: #1e1e1e;
    border-bottom: 1px solid #f0f0f0;
}

.success-page-section .order-table tbody tr:last-child td {
    border-bottom: none;
}

.success-page-section .order-table .product-name {
    font-weight: 600;
    color: #2c2c2c;
}

.success-page-section .order-table .product-price {
    font-weight: 600;
    color: var(--color-sage);
}

.success-page-section .order-table tfoot td {
    padding: 1rem 0.75rem;
    font-weight: 700;
    font-size: 1.05rem;
    border-top: 2px solid #e4e2e0;
    background: #f0efee;
}

.success-page-section .order-table .total-amount {
    color: var(--color-sage);
}

.success-page-section .back-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    background: var(--color-sage);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s ease;
}

.success-page-section .back-home:hover {
    background: var(--color-olive);
    color: #fff;
}

.success-page-section .payment-method-message {
    text-align: left;
    max-width: 560px;
    margin: 0 auto 1.5rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e4e2e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.success-page-section .payment-method-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.success-page-section .payment-method-header h6 {
    color: var(--color-sage);
}

.success-page-section .message-content {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #2c2c2c;
}

.success-page-section .order-item-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
}

.success-page-section .order-item-thumb {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-sage);
    font-size: 1.35rem;
}

.success-page-section .order-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.success-page-section .order-item-title-link {
    color: var(--color-sage);
    font-weight: 600;
    text-decoration: none;
}

.success-page-section .order-item-title-link:hover {
    color: var(--color-olive);
    text-decoration: underline;
}

.success-page-section .product-code {
    font-size: 0.8rem;
    color: #6c757d;
}

.success-page-social-wrap {
    margin-top: 2rem;
}

/* ==========================================================================
   Checkout
   ========================================================================== */

.checkout-page {
    background-color: #ffffff;
}

.checkout-page-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 1.5rem;
    text-decoration: underline;
    text-decoration-color: rgba(139, 0, 0, 0.18);
    text-decoration-thickness: 8px;
    text-underline-offset: -6px;
    text-decoration-skip-ink: none;
}

.checkout-page-title .cart-title-icon {
    color: var(--color-sage);
}

.checkout-page-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #5a5a5a;
    max-width: 42rem;
    margin-top: -0.75rem;
}

.checkout-card {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 1.5rem 1.75rem;
}

.checkout-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 1.25rem;
    text-decoration: underline;
    text-decoration-color: rgba(139, 0, 0, 0.18);
    text-decoration-thickness: 8px;
    text-underline-offset: -6px;
    text-decoration-skip-ink: none;
}

.checkout-input {
    border-radius: 8px;
    border: 1px solid #CFCDC9;
    padding: 0.6rem 0.85rem;
}

.checkout-input:focus {
    border-color: var(--color-sage);
    box-shadow: 0 0 0 0.2rem rgba(139, 0, 0, 0.15);
}

.checkout-page .form-check-input:checked {
    background-color: var(--color-sage);
    border-color: var(--color-sage);
}

.checkout-info-box {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: rgba(139, 0, 0, 0.08);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--color-bg-darker);
}

.checkout-info-box i {
    color: var(--color-sage);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.checkout-options {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    width: 100%;
}

.checkout-options .method-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.checkout-option {
    margin: 0;
    cursor: pointer;
    display: block;
    width: 100%;
}

.checkout-option-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkout-option-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    width: 100%;
    box-sizing: border-box;
    background: #F0EFEE;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: border-color 0.2s ease, background 0.2s ease;
    position: relative;
}

.checkout-option-icon {
    font-size: 1.35rem;
    color: var(--color-sage);
    flex-shrink: 0;
    margin-top: 0.1rem;
    line-height: 1;
}

.checkout-option-text {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    padding-right: 0.5rem;
}

.checkout-option-price {
    font-weight: 600;
    color: #2C2C2C;
    flex-shrink: 0;
    white-space: nowrap;
    margin-top: 0.05rem;
    margin-left: auto;
    text-align: right;
    font-variant-numeric: tabular-nums;
    min-width: 4.25rem;
}

/* Selection state = border/background only (no trailing check glyph) */
.checkout-option-check {
    display: none !important;
}

.checkout-page .method-message-box {
    margin-top: 0.5rem;
    padding: 0.65rem 0.9rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #3d3d3d;
    background: #faf9f8;
    border: 1px solid #e4e2df;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.checkout-option-box:hover {
    background: #D8D6D4;
}

.checkout-option-input:checked + .checkout-option-box,
.checkout-option-box.selected {
    border-color: var(--color-sage);
    background: rgba(139, 0, 0, 0.06);
}

.checkout-vat-btn {
    border-radius: 8px;
    background: var(--color-sage);
    color: #ffffff;
    border: none;
    padding: 0.5rem 0.85rem;
    transition: background 0.2s ease;
}

.checkout-vat-btn:hover {
    background: var(--color-olive);
    color: #ffffff;
}

.checkout-preview-item-image {
    width: 56px;
    height: 56px;
    background: #F0EFEE;
    flex-shrink: 0;
}

.checkout-preview-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-preview-item-name {
    font-size: 0.9rem;
    color: #2C2C2C;
    display: block;
    line-height: 1.35;
}

.checkout-totals {
    font-size: 0.95rem;
    color: var(--color-bg-darker);
}

.checkout-total-row {
    border-top: 1px solid #D8D6D4;
    font-size: 1rem;
    color: #2C2C2C;
}

.checkout-help-card {
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    color: #ffffff;
    transition: opacity 0.2s ease;
}

.checkout-help-card:hover {
    color: #ffffff;
    opacity: 0.92;
}

.checkout-help-phone {
    background: var(--color-sage);
}

.checkout-help-viber {
    background: var(--color-viber);
}
.checkout-help-viber:hover {
    background: var(--color-viber-hover);
}

.checkout-notes {
    resize: vertical;
    min-height: 80px;
}

.checkout-terms-link {
    color: var(--color-sage);
    font-weight: 600;
    text-decoration: none;
}

.checkout-terms-link:hover {
    color: var(--color-olive);
    text-decoration: underline;
}

.checkout-submit-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    background: var(--color-sage);
    color: #ffffff;
    font-weight: 600;
    border: none;
    transition: background 0.2s ease;
}

.checkout-submit-btn:hover {
    background: var(--color-olive);
    color: #ffffff;
}

.cart-help {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-help-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #ffffff;
    transition: opacity 0.2s ease;
}

.cart-help-card:hover {
    color: #ffffff;
    opacity: 0.92;
}

.cart-help-phone {
    background: var(--color-sage);
}

.cart-help-viber {
    background: var(--color-viber);
}
.cart-help-viber:hover {
    background: var(--color-viber-hover);
}

.cart-help-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.cart-help-instagram:hover {
    color: #ffffff;
    filter: brightness(0.95);
    opacity: 0.95;
}

.cart-help-card i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.cart-help-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
}

.cart-help-value {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
}

.cart-popular {
    padding-top: 0.5rem;
}

.cart-popular-header {
    flex-wrap: nowrap;
}

.cart-popular-title i {
    color: var(--color-accent);
}

.cart-popular-swiper {
    overflow: hidden;
}

/* Keep prev/next in header only – override Swiper's absolute positioning */
.cart-popular-header .cart-popular-prev,
.cart-popular-header .cart-popular-next {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    margin: 0 !important;
}

.cart-popular-prev,
.cart-popular-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--color-sage);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Hide Swiper's default arrow – we use Bootstrap Icons instead */
.cart-popular-prev::after,
.cart-popular-next::after {
    display: none;
}

.cart-popular-prev i,
.cart-popular-next i {
    font-size: 1.1rem;
    line-height: 1;
    color: #ffffff;
}

.cart-popular-prev:hover,
.cart-popular-next:hover {
    background: var(--color-olive);
    color: #ffffff;
}

.cart-popular-prev:hover i,
.cart-popular-next:hover i {
    color: #ffffff;
}

/* Tablet: hide table header, keep row layout */
@media (max-width: 991.98px) {
    .cart-table-header {
        display: none;
    }
}

/* Mobile: card format – image+title+remove top, then code, price, quantity stacked */
@media (max-width: 767.98px) {
    .cart-page {
        padding-top: 0.75rem;
        padding-bottom: 1rem;
    }

    .cart-page .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .cart-card,
    .cart-summary-card {
        padding: 0.75rem 0.75rem;
    }

    .cart-card-title,
    .cart-summary-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .cart-item.row {
        display: block;
        margin-bottom: 0.75rem;
    }

    .cart-item {
        padding: 0.75rem;
        border: 1px solid #CFCDC9;
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .cart-item:last-child {
        margin-bottom: 0;
    }

    .cart-item-product {
        width: 100%;
        max-width: 100%;
        margin-bottom: 0;
    }

    .cart-item-product-inner {
        gap: 0.5rem;
        align-items: flex-start;
    }

    .cart-item-product-inner .cart-item-remove-col {
        margin-left: auto;
        align-self: flex-start;
    }

    .cart-item-image {
        width: 64px;
        height: 64px;
    }

    .cart-item-name {
        font-size: 0.85rem;
        line-height: 1.3;
        font-weight: 600;
    }

    .cart-item-code {
        font-size: 0.75rem;
        color: #6B6B6B;
    }

    .cart-item-mobile-bottom {
        padding-top: 0.5rem;
        border-top: 1px solid #F0EFEE;
        margin-top: 0.5rem;
    }

    .cart-item-mobile-bottom .cart-item-price {
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .cart-item-mobile-bottom .cart-quantity {
        margin: 0;
        justify-content: flex-start;
    }

    .cart-quantity {
        max-width: none;
    }

    .cart-qty-btn {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .cart-qty-input {
        width: 40px;
        height: 32px;
        font-size: 0.85rem;
    }

    .cart-remove-btn {
        width: 32px;
        height: 32px;
        padding: 0;
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   Bootstrap .form-select & .dropdown-menu — rounded, larger, white border, glass
   Native <select> open lists: option styles apply where the browser allows (often
   partial); OS-drawn popups on some platforms cannot be fully themed.
   ========================================================================== */

.form-select {
    min-height: calc(1.5em + 0.9rem + 2px);
    padding: 0.65rem 2.5rem 0.65rem 1.05rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text-body);
    color-scheme: light;
    border-radius: var(--form-select-radius);
    border: 1px solid var(--form-select-glass-border);
    background-color: var(--form-select-glass-bg);
    backdrop-filter: blur(14px) saturate(1.12);
    -webkit-backdrop-filter: blur(14px) saturate(1.12);
    box-shadow: var(--form-select-shadow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-select:focus {
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: var(--form-select-shadow-focus);
    outline: 0;
}

/* Open list: match menu glass / spacing where supported (Firefox, some WebKit) */
.form-select option,
.form-select optgroup {
    font: inherit;
    color: var(--color-text-body);
    background: rgba(255, 255, 255, 0.98);
    padding: 0.45rem 0.7rem;
}

.form-select option:checked,
.form-select option:hover {
    background: linear-gradient(90deg, rgba(139, 0, 0, 0.1), rgba(139, 0, 0, 0.05));
    color: #1a1a1a;
}

/* Slightly larger than default Bootstrap "sm" */
.form-select-sm {
    min-height: 2.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.9rem;
    border-radius: 12px;
}

.dropdown-menu {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: var(--dropdown-glass-bg);
    backdrop-filter: blur(18px) saturate(1.1);
    -webkit-backdrop-filter: blur(18px) saturate(1.1);
    box-shadow: var(--dropdown-outer-shadow), var(--dropdown-inner-glow);
    padding: 0.4rem 0.45rem;
    font-size: 0.95rem;
}

.dropdown-menu::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 20px -4px rgba(255, 255, 255, 0.25);
    pointer-events: none;
}

.dropdown-item {
    position: relative;
    z-index: 1;
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    margin: 0.1rem 0.05rem;
    transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(0, 0, 0, 0.04);
    color: var(--color-text-body);
    box-shadow: none;
}

.dropdown-item.active,
.dropdown-item:active {
    background: rgba(0, 0, 0, 0.07);
    color: var(--color-text-body);
    box-shadow: none;
}

.dropdown-divider {
    border-color: rgba(0, 0, 0, 0.05);
    margin: 0.35rem 0.3rem;
    opacity: 1;
}

/* Category & search “Ταξινόμηση” — larger control, stronger glass (overrides global .form-select) */
/* Layered bg: gradient + Bootstrap chevron (do not use background: shorthand — it removes the arrow) */
.form-select.category-sort-select {
    width: auto;
    min-width: 280px;
    min-height: 3.1rem;
    padding: 0.8rem 2.9rem 0.8rem 1.2rem;
    font-size: 1.05rem;
    line-height: 1.45;
    border-radius: 16px;
    color: #2C2C2C;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.7);
    background-image: linear-gradient(
        158deg,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(255, 255, 255, 0.08) 45%,
        rgba(240, 238, 235, 0.35) 100%
    ),
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%232C2C2C' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat, no-repeat;
    background-position: 0 0, right 1rem center;
    background-size: 100% 100%, 15px 11px;
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    box-shadow: var(--form-select-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-select.category-sort-select:focus {
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: var(--form-select-shadow-focus), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    outline: 0;
}

/* Larger option rows where the browser allows styling the list */
.form-select.category-sort-select option,
.form-select.category-sort-select optgroup {
    font-size: 1.05rem;
    line-height: 1.5;
    padding: 0.6rem 0.9rem;
    color: var(--color-text-body);
    background: rgba(255, 255, 255, 0.99);
}

.form-select.category-sort-select option:checked,
.form-select.category-sort-select option:hover {
    background: linear-gradient(90deg, rgba(139, 0, 0, 0.12), rgba(139, 0, 0, 0.05));
    color: #1a1a1a;
}

/* --------------------------------------------------------------------------
   Dark “reference” glass (e.g. language menu on red navbar): translucent panel,
   light rim, blur-first depth, white text, nested rounded “pill” for hover/active.
   Also use class .glass-on-dark on a dropdown when not inside .navbar.
   -------------------------------------------------------------------------- */
.navbar .dropdown-menu,
.dropdown-menu.glass-on-dark {
    background: var(--glass-dark-surface);
    background-color: rgba(24, 58, 62, 0.68);
    border: 1px solid var(--glass-dark-border);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(1.22);
    -webkit-backdrop-filter: blur(20px) saturate(1.22);
}

.navbar .dropdown-menu::after,
.dropdown-menu.glass-on-dark::after {
    box-shadow: inset 0 0 22px -5px rgba(255, 255, 255, 0.12);
}

.navbar .dropdown-item,
.dropdown-menu.glass-on-dark .dropdown-item {
    color: var(--glass-dark-text);
    padding: 0.7rem 0.85rem 0.7rem 0.75rem;
    margin: 0.1rem 0.05rem;
    border-radius: 10px;
    font-size: 0.95rem;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus,
.dropdown-menu.glass-on-dark .dropdown-item:hover,
.dropdown-menu.glass-on-dark .dropdown-item:focus {
    background: var(--glass-dark-pill);
    color: #ffffff;
    box-shadow: none;
}

.navbar .dropdown-item.active,
.navbar .dropdown-item:active,
.dropdown-menu.glass-on-dark .dropdown-item.active,
.dropdown-menu.glass-on-dark .dropdown-item:active {
    background: var(--glass-dark-pill-active);
    color: #ffffff;
    box-shadow: none;
}

.navbar .dropdown-divider,
.dropdown-menu.glass-on-dark .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 0.3rem 0.35rem;
}

/* Optional trigger — matches reference pill next to the open menu */
.navbar .nav-glass-btn,
.navbar .nav-glass-btn.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem 0.45rem 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--glass-dark-border);
    border-radius: 10px;
    backdrop-filter: blur(10px) saturate(1.1);
    -webkit-backdrop-filter: blur(10px) saturate(1.1);
    box-shadow: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.navbar .nav-glass-btn:hover,
.navbar .nav-glass-btn:focus,
.navbar .nav-glass-btn.show {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.28);
}

.navbar .nav-glass-btn.dropdown-toggle::after {
    margin-left: 0.15rem;
    border-top-color: rgba(255, 255, 255, 0.85);
    vertical-align: 0.2em;
}

/* ==========================================================================
   Cookie Consent
   ========================================================================== */

.cookie-consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    color: #ffffff;
    background: rgba(30, 30, 30, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 -16px 42px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
}

.cookie-consent-banner.is-visible {
    display: block;
}

.cookie-consent-inner {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-consent-copy {
    flex: 1 1 22rem;
    font-size: 0.95rem;
    line-height: 1.55;
}

.cookie-consent-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: 0.35rem;
    font-weight: 700;
}

.cookie-consent-icon {
    color: var(--color-accent);
    font-size: 1.1rem;
}

.cookie-consent-text a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.cookie-consent-text a:hover {
    color: var(--color-accent);
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.cookie-consent-btn {
    border-radius: 999px;
    padding: 0.62rem 1.35rem;
    font-weight: 700;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cookie-consent-btn:hover {
    transform: translateY(-1px);
}

.cookie-consent-btn--accept {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #1E1E1E;
}

.cookie-consent-btn--accept:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #1E1E1E;
}

.cookie-consent-btn--decline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
}

.cookie-consent-btn--decline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
}

.cookie-consent-btn:focus-visible {
    outline: 3px solid rgba(245, 181, 20, 0.45);
    outline-offset: 3px;
}

@media (max-width: 575.98px) {
    .cookie-consent-inner {
        width: min(100% - 1rem, 1120px);
        padding: 0.85rem 0;
    }

    .cookie-consent-actions,
    .cookie-consent-btn {
        width: 100%;
    }
}
