/* Essential icon styles only */
.icon-btn {
    background: transparent;
    border: none;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0f172a;
    border-radius: 50%;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover {
    background: #f4f6f4;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}
.icon-btn:focus {
    outline: 2px solid rgba(47, 79, 52, 0.3);
    outline-offset: 2px;
}
.icon {
    font-family: 'Material Symbols Rounded', sans-serif;
    color: #0f172a;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 400;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.bag-icon { position: relative; }
.bag-count {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #d62828;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Headline ticker */
.headline-ticker {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #e9f4e6 0%, #d9eddc 100%);
    color: #27412f;
    padding: 8px 0;
    border-bottom: 1px solid rgba(47, 79, 52, 0.08);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.ticker-inner {
    display: flex;
    width: 200%;
    animation: tickerSlide 26s linear infinite;
    animation-direction: reverse;
    gap: 36px;
    will-change: transform;
    padding-left: 0;
}

.ticker-track {
    display: flex;
    gap: 26px;
    padding: 0 18px;
    flex: 0 0 50%;
    white-space: nowrap;
}

.ticker-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    letter-spacing: 0.01em;
    flex-shrink: 0;
}

.ticker-indicator { display: none; }

@keyframes tickerSlide {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}
/* Navbar styles with better responsive design */

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border-radius: 0;
    position: sticky;
    top: 0;
    z-index: 120;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 100px;
    gap: 12px;
    overflow: hidden;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-center {
    text-align: center;
    padding: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.logo-link { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    min-width: 0;
    flex-shrink: 0;
}

.logo {
    max-height: 46px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .main-nav {
        padding: 10px;
        gap: 10px;
    }
    .logo {
        max-height: 44px;
        max-width: 120px;
    }
    .icon-btn {
        min-width: 40px;
        min-height: 40px;
        padding: 6px;
    }
    .icon {
        font-size: 22px;
    }
    .nav-left, .nav-right {
        gap: 6px;
    }
}

@media (max-width: 500px) {
    .main-nav {
        padding: 8px;
        gap: 8px;
    }
    .logo {
        max-height: 80px;
    }
    .icon-btn {
        min-width: 38px;
        min-height: 38px;
        padding: 5px;
    }
    .icon {
        font-size: 20px;
    }
    .bag-count {
        font-size: 9px;
        height: 16px;
        min-width: 16px;
        padding: 0 3px;
    }
}


.horizontal-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px clamp(14px, 3vw, 28px);
    gap: clamp(12px, 2.2vw, 20px);
    scroll-padding: 0 18px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-weight: 600;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.horizontal-nav a {
    color: #111;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(12px, 2vw, 14px);
    white-space: nowrap;
    scroll-snap-align: start;
    padding: 6px 10px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.horizontal-nav a:hover {
    color: #2f4f34;
    background: #f5f5f5;
    text-decoration: none;
}

.horizontal-nav a:focus {
    outline: 2px solid rgba(47, 79, 52, 0.3);
    outline-offset: -2px;
}

.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1400;
}

.mobile-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 340px;
    height: 100vh;
    background: #fff;
    box-shadow: -12px 0 30px rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1500;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mobile-drawer.open {
    transform: translateX(0);
}

.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1500;
}

.cart-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 90vw);
    height: 100dvh;
    background: #fff;
    box-shadow: -16px 0 32px rgba(15, 23, 42, 0.18);
    transform: translateX(100%);
    transition: transform 0.32s ease;
    z-index: 1600;
    display: flex;
    flex-direction: column;
    padding: 16px 16px max(16px, env(safe-area-inset-bottom));
    gap: 12px;
}

.cart-drawer.open { transform: translateX(0); }

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eceff3;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.cart-title {
    margin: 0;
    font-weight: 800;
    font-size: 18px;
}

.cart-subtitle {
    margin: 2px 0 0;
    color: #4b5c49;
    font-size: 13px;
}

.cart-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 10px 2px 16px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.12), rgba(0,0,0,0.12) 12px, rgba(0,0,0,1) 28px, rgba(0,0,0,1) 92%, rgba(0,0,0,0.12));
}

.cart-empty {
    padding: 22px;
    background: #f7fbf7;
    border: 1px solid #e7f1e4;
    border-radius: 12px;
    text-align: center;
    color: #3a4a32;
    font-weight: 600;
}

.cart-summary {
    position: sticky;
    bottom: 0;
    border-top: 1px solid #eceff3;
    padding: 12px 4px 2px;
    display: grid;
    gap: 12px;
    background: #fff;
    box-shadow: 0 -12px 28px rgba(15, 23, 42, 0.12);
    z-index: 1;
}

.cart-summary .summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    color: #111;
}

.cart-summary .cta-button {
    width: 100%;
    background: #111;
    border: 1px solid #111;
    border-radius: 10px;
    box-shadow: none;
}

.cart-summary .cta-button:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

.cart-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #eceff3;
    border-radius: 12px;
    margin-bottom: 10px;
    background: #fff;
}

.cart-item + .cart-item { margin-top: 8px; }

.cart-item img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #e7e7e7;
}

.cart-item-title {
    margin: 0 0 4px;
    font-weight: 700;
}

.cart-item-meta {
    margin: 0 0 6px;
    color: #4b5c49;
    font-size: 13px;
}

.cart-item-price { margin: 0; font-weight: 700; color: #111; }

.cart-item.gift {
    grid-template-columns: auto 1fr;
    background: #f7fbf7;
    border: 1px solid #e0eddc;
}

.cart-item.gift .gift-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e5f2e3;
    font-size: 20px;
}

.cart-remove { color: #555; }

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.drawer-close {
    font-weight: 700;
    font-size: 16px;
    color: #111;
}

.drawer-brand {
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #111;
    font-size: 18px;
}

.drawer-links {
    display: grid;
    gap: 14px;
    margin-top: 8px;
}

.drawer-links a {
    text-decoration: none;
    color: #222;
    font-weight: 600;
    font-size: 16px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}

body.drawer-open {
    overflow: hidden;
}

body.cart-open {
    overflow: hidden;
}

@media (max-width: 1100px) {
    .main-nav { padding: 12px 16px; }
    .logo { max-height: 40px; }
    .icon { font-variation-settings: 'FILL' 0, 'wght' 460, 'GRAD' 0, 'opsz' 24; }
    .ticker-chip { font-size: 12.5px; font-weight: 500; }
    .horizontal-nav { gap: 14px; padding: 10px 16px; }
    .horizontal-nav a { font-size: 14px; font-weight: 500; }
}

@media (max-width: 900px) {
    .ticker-inner { animation-duration: 22s; }
    .ticker-track { gap: 20px; padding: 0 12px; }
    .ticker-chip { font-size: 12px; gap: 8px; }
}

@media (max-width: 600px) {
    .horizontal-nav {
        padding: 10px;
        gap: 0px;
        /*padding-left: 40px;*/
    }
    .horizontal-nav a {
        font-size: clamp(11px, 1.8vw, 13px);
        padding: 5px 8px;
    }
    .headline-ticker { padding: 6px 0; }
    .ticker-inner { animation-duration: 18s; gap: 24px; }
    .ticker-track { gap: 16px; padding: 0 10px; }
    .ticker-chip { font-size: 11px; gap: 6px; }
}

@media (max-width: 480px) {
    .headline-ticker { padding: 5px 0; }
    .ticker-inner { animation-duration: 16s; gap: 20px; }
    .ticker-track { gap: 14px; padding: 0 8px; }
    .ticker-chip { font-size: 10px; gap: 4px; }
}
