/* ===== MARO — Premium Modern Store ===== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

[hidden] { display: none !important; }

:root {
    --bg: #f7f6f3;
    --dark: #111111;
    --white: #ffffff;
    --accent: #e84428;
    --accent-2: #ff6b3d;
    --accent-hover: #d13920;
    --accent-glow: rgba(232, 68, 40, 0.18);
    --accent-grad: linear-gradient(135deg, var(--accent), var(--accent-2));
    --gray-50: #fafaf7;
    --gray-100: #f0efeb;
    --gray-200: #e6e5e1;
    --gray-300: #d4d3cf;
    --gray-400: #9a9a96;
    --gray-600: #6b6b68;
    --border: #e6e5e1;
    --card: #ffffff;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.06);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.08);
    --shadow-xl: 0 30px 80px rgba(0,0,0,0.1);
    --shadow-accent: 0 8px 30px rgba(232, 68, 40, 0.2);
    --r-xs: 8px;
    --r-sm: 12px;
    --r-md: 16px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-full: 999px;
    --container: min(1260px, calc(100% - 48px));
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --dur: 0.3s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

body {
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Grain texture overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.028;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ===== LAYOUT ===== */
.container { width: var(--container); margin: 0 auto; }
.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent-grad);
    z-index: 1000;
    width: 0;
    transition: none;
}

/* ===== TOPBAR — MARQUEE ===== */
.topbar {
    background: var(--dark);
    color: var(--white);
    padding: 10px 0;
    overflow: hidden;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.marquee-track {
    display: flex;
    gap: 0;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-track:hover { animation-play-state: paused; }

.marquee-item {
    white-space: nowrap;
    padding: 0 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.marquee-item .dot {
    width: 4px; height: 4px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247, 246, 243, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: box-shadow var(--dur) var(--ease);
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
}

.header-inner {
    width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    gap: 36px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: var(--accent-grad);
    color: var(--white);
    border-radius: var(--r-sm);
    display: grid;
    place-items: center;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 2px 12px rgba(232, 68, 40, 0.25);
    transition: transform var(--dur) var(--ease);
}

.brand:hover .brand-icon { transform: scale(1.06) rotate(-2deg); }

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--gray-600);
    padding: 8px 16px;
    border-radius: var(--r-full);
    transition: all var(--dur) var(--ease);
    position: relative;
}

.site-nav a:hover {
    color: var(--dark);
    background: var(--gray-100);
}

.site-nav a.active {
    color: var(--dark);
    background: var(--gray-100);
}

.site-nav a.active::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    background: var(--white);
    color: var(--dark);
    font-weight: 700;
    font-size: 0.84rem;
    transition: all var(--dur) var(--ease);
    box-shadow: var(--shadow-xs);
}

.search-toggle:hover {
    border-color: var(--gray-300);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.site-search-panel {
    background: rgba(255,255,255,0.96);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.site-search-shell {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 0 12px;
}

.site-search-input-wrap {
    position: relative;
    flex: 1;
}

.site-search-input-wrap input {
    width: 100%;
    min-height: 58px;
    padding: 16px 110px 16px 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--gray-50);
    font: inherit;
    font-size: 1rem;
    color: var(--dark);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
    transition: all var(--dur) var(--ease);
}

.site-search-input-wrap input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--white);
}

.site-search-clear,
.site-search-close {
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--gray-600);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    transition: all var(--dur) var(--ease);
}

.site-search-clear:hover,
.site-search-close:hover {
    border-color: var(--gray-300);
    color: var(--dark);
    transform: translateY(-1px);
}

.site-search-clear {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 14px;
    border-radius: var(--r-full);
    box-shadow: var(--shadow-xs);
}

.site-search-clear:hover {
    transform: translateY(calc(-50% - 1px));
}

.site-search-close {
    min-height: 58px;
    padding: 0 20px;
    border-radius: 18px;
    white-space: nowrap;
    box-shadow: var(--shadow-xs);
}

.site-search-results {
    display: grid;
    gap: 12px;
    padding: 0 0 18px;
}

.site-search-state {
    margin: 0;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--white);
    color: var(--gray-600);
    box-shadow: var(--shadow-xs);
}

.site-search-result {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-xs);
    transition: all var(--dur) var(--ease);
}

.site-search-result:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(232, 68, 40, 0.25);
}

.site-search-result-image {
    width: 84px;
    height: 84px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f5f0eb, #ece4db);
}

.site-search-result-body {
    display: grid;
    gap: 6px;
}

.site-search-result-body strong {
    font-size: 1.08rem;
    line-height: 1.25;
}

.site-search-result-body span {
    color: var(--gray-600);
    font-size: 0.88rem;
}

.site-search-result-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.site-search-result-price span:last-child {
    color: var(--dark);
    font-size: 1rem;
    font-weight: 800;
}

.site-search-price-old {
    color: var(--gray-400);
    text-decoration: line-through;
}

.cart-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    background: var(--dark);
    color: var(--white);
    border-radius: var(--r-full);
    border: 0;
    font-weight: 700;
    font-size: 0.86rem;
    transition: all var(--dur) var(--ease);
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.cart-btn:hover {
    background: #222;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.orders-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    background: var(--white);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    box-shadow: var(--shadow-xs);
}
.orders-btn:hover {
    background: var(--gray-50);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cart-btn .count {
    background: var(--accent);
    padding: 2px 9px;
    border-radius: var(--r-full);
    font-size: 0.76rem;
    font-weight: 800;
}

.menu-toggle {
    display: none;
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    background: var(--white);
    font-weight: 600;
    font-size: 0.86rem;
    transition: all var(--dur) var(--ease);
}

.menu-toggle:hover { background: var(--gray-100); }

/* ===== MEGA MENU (Comfy-style dropdown from nav) ===== */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.nav-arrow {
    font-size: 0.65rem;
    opacity: 0.5;
    transition: transform .2s ease;
}
.nav-dropdown.is-open .nav-arrow {
    transform: rotate(180deg);
}

.mega-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 98;
    background: rgba(0,0,0,0.18);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
    pointer-events: none;
}
.mega-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Invisible bridge covers the gap between toggle and panel */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 14px;
    display: none;
}
.nav-dropdown.is-open::after { display: block; }

.mega-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 99;
    background: var(--white);
    border-radius: var(--r-lg);
    box-shadow: 0 12px 48px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    width: max-content;
    min-width: 700px;
    max-width: 920px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    pointer-events: none;
}
.mega-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-menu-inner {
    display: flex;
    overflow: hidden;
    border-radius: var(--r-lg);
}

.mega-menu-cats {
    width: 240px;
    min-width: 240px;
    background: var(--gray-50);
    border-right: 1px solid var(--border);
    padding: 10px 0;
    overflow-y: auto;
    max-height: 500px;
}
.mega-menu-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: background .12s ease, color .12s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    white-space: nowrap;
}
.mega-menu-cat:hover,
.mega-menu-cat.is-active {
    background: var(--white);
    color: var(--dark);
    font-weight: 600;
}
.mega-menu-cat.is-active {
    box-shadow: inset 3px 0 0 var(--accent);
}
.mega-menu-cat .cat-arrow { margin-left: auto; opacity: .3; font-size: .7rem; }

.mega-menu-right {
    flex: 1;
    padding: 18px 24px;
    overflow-y: auto;
    max-height: 500px;
    min-height: 180px;
    min-width: 380px;
}
.mega-menu-right-cols {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 6px 28px;
    animation: megaFadeIn .15s ease;
}
@keyframes megaFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.mega-menu-product-link {
    display: block;
    padding: 5px 0;
    font-size: 0.86rem;
    color: var(--gray-600);
    text-decoration: none;
    transition: color .12s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mega-menu-product-link:hover {
    color: var(--dark);
}
.mega-menu-view-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 14px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
}
.mega-menu-view-all:hover { text-decoration: underline; }
.mega-menu-empty {
    color: var(--gray-400);
    font-size: 0.88rem;
    padding: 30px 0;
    text-align: center;
}

.mega-menu-close-mobile { display: none; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: 0;
    border-radius: var(--r-full);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all var(--dur) var(--ease);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-grad);
    color: var(--white);
    box-shadow: 0 2px 10px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
    filter: brightness(1.05);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: var(--dark);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: #222;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--dark);
    background: var(--dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 0.95rem;
    border-radius: var(--r-full);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.82rem;
}

/* ===== HERO ===== */
.hero { padding: 40px 0 48px; }

/* ===== PROMO BANNER ===== */
.phone-banner {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    background: linear-gradient(135deg, #0d0d1a 0%, #1a1033 35%, #1e1245 60%, #12082a 100%);
    background-size: cover;
    background-position: center;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 36px 44px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-lg);
}

/* Badge */
.banner-badge {
    position: absolute;
    top: 24px;
    left: 28px;
    display: inline-block;
    padding: 6px 16px;
    background: rgba(232, 68, 40, 0.15);
    border: 1px solid rgba(232, 68, 40, 0.3);
    border-radius: var(--r-full);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--accent-2);
    backdrop-filter: blur(8px);
    z-index: 2;
}

.phone-banner-content {
    position: relative;
    z-index: 2;
}

.phone-banner-content h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.phone-banner-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
    max-width: 420px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.btn-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--accent-grad);
    color: var(--white);
    border: none;
    border-radius: var(--r-full);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(232, 68, 40, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    z-index: 2;
}

.btn-banner::after {
    content: "→";
    font-size: 1.05em;
    transition: transform 0.25s ease;
}

.btn-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232, 68, 40, 0.45);
}

.btn-banner:hover::after {
    transform: translateX(4px);
}

/* Clickable full-banner link */
.banner-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.phone-banner:has(.banner-link-overlay) {
    cursor: pointer;
}

/* ─── Tablet ─── */
@media (max-width: 1024px) {
    .phone-banner {
        min-height: 240px;
        padding: 30px 34px;
        border-radius: 24px;
    }
    .banner-badge {
        top: 20px;
        left: 24px;
    }
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
    .hero {
        padding: 24px 0 32px;
    }
    .phone-banner {
        min-height: 200px;
        padding: 24px 22px;
        border-radius: 20px;
    }
    .banner-badge {
        top: 16px;
        left: 18px;
        font-size: 0.66rem;
        padding: 5px 12px;
    }
    .phone-banner-content h2 {
        font-size: clamp(1.5rem, 5.5vw, 2rem);
    }
    .phone-banner-content p {
        font-size: 0.88rem;
        max-width: 100%;
    }
    .btn-banner {
        padding: 11px 24px;
        font-size: 0.86rem;
    }
}

/* ─── Small Mobile ─── */
@media (max-width: 480px) {
    .hero {
        padding: 16px 0 24px;
    }
    .phone-banner {
        min-height: 170px;
        padding: 20px 18px;
        border-radius: 18px;
    }
    .banner-badge {
        top: 14px;
        left: 14px;
        font-size: 0.62rem;
        padding: 4px 10px;
    }
    .phone-banner-content h2 {
        font-size: clamp(1.3rem, 7vw, 1.7rem);
        margin-bottom: 8px;
    }
    .phone-banner-content p {
        font-size: 0.82rem;
        margin-bottom: 14px;
    }
    .btn-banner {
        padding: 10px 20px;
        font-size: 0.82rem;
    }
}

/* ===== TAG / LABEL ===== */
.tag {
    display: inline-block;
    padding: 5px 14px;
    background: var(--gray-100);
    color: var(--gray-600);
    border-radius: var(--r-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tag-accent {
    background: rgba(232, 68, 40, 0.08);
    color: var(--accent);
}

.tag-dark {
    background: var(--dark);
    color: var(--white);
}

/* ===== SECTION HEADER ===== */
.section-header { margin-bottom: 44px; }

.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 44px;
}

.section-label {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 14px;
    padding: 4px 0;
    border-bottom: 2px solid var(--accent);
}

.section-header h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--gray-600);
    max-width: 520px;
    margin-top: 14px;
}

.section-link {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--accent);
    white-space: nowrap;
    padding: 10px 22px;
    background: rgba(232, 68, 40, 0.06);
    border-radius: var(--r-full);
    transition: all var(--dur) var(--ease);
}

.section-link:hover {
    background: rgba(232, 68, 40, 0.12);
    transform: translateX(4px);
}

/* ===== PRODUCT CARDS ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all 0.4s var(--ease);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.product-image {
    height: 260px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f5f0eb, #ece4db);
    transition: all 0.6s var(--ease);
}

.product-card:hover .product-image { background: linear-gradient(180deg, #f0e9e0, #e7d8cc); }

/* Placeholder when no product image */
.product-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    text-align: center;
    gap: 6px;
}

.product-image-placeholder .ph-category {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gray-400);
}

.product-image-placeholder .ph-brand {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: var(--gray-800);
    line-height: 1;
}

.product-image-placeholder .ph-name {
    font-size: 0.75rem;
    color: var(--gray-500);
    max-width: 80%;
    line-height: 1.3;
}

.product-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }

.product-body .tag { margin-bottom: 10px; }

.product-body h3 { font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }

.product-body > p {
    font-size: 0.86rem;
    color: var(--gray-600);
    margin-bottom: 18px;
    line-height: 1.55;
    flex: 1;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.product-footer {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-footer strong {
    font-size: 1.15rem;
    font-weight: 800;
}

.product-footer .btn-group {
    display: flex;
    gap: 6px;
}

.product-footer .btn-group .btn {
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

/* ===== FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 32px;
    transition: all 0.4s var(--ease);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--gray-100);
    border-radius: var(--r-md);
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    transition: all var(--dur) var(--ease);
}

.feature-card:hover .feature-icon {
    background: rgba(232, 68, 40, 0.08);
    transform: scale(1.08);
}

.feature-card h3 { font-weight: 700; margin-bottom: 8px; }

.feature-card p { font-size: 0.86rem; color: var(--gray-600); line-height: 1.65; }

/* ===== REVIEWS ===== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 32px;
    transition: all 0.4s var(--ease);
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.review-text {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--gray-600);
    flex: 1;
    margin-bottom: 20px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-grad);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.review-author-info strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
}

.review-author-info span {
    font-size: 0.78rem;
    color: var(--gray-400);
}

/* ===== INFO PAGE ===== */
.info-page { padding-top: 48px; }

.info-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: start;
}

.info-sidebar {
    position: sticky;
    top: 100px;
}

.info-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-nav-link {
    display: block;
    padding: 10px 16px;
    border-radius: var(--r-sm);
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--dur) var(--ease);
    border-left: 3px solid transparent;
}

.info-nav-link:hover {
    background: var(--gray-100);
    color: var(--dark);
}

.info-nav-link.active {
    background: rgba(232, 68, 40, 0.06);
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 600;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.info-section {
    scroll-margin-top: 100px;
}

.info-section-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.info-section h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.info-section h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 24px 0 12px;
}

.info-section p {
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--gray-600);
    margin-bottom: 12px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.info-card {
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 20px;
}

.info-card strong {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 8px;
}

.info-card p {
    font-size: 0.84rem;
    margin-bottom: 0;
}

.info-highlight {
    background: linear-gradient(135deg, rgba(232, 68, 40, 0.05), rgba(255, 107, 61, 0.05));
    border: 1px solid rgba(232, 68, 40, 0.15);
    border-radius: var(--r-md);
    padding: 24px;
    margin: 20px 0;
}

.info-highlight strong {
    display: block;
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.info-highlight p {
    margin-bottom: 0;
}

.info-note {
    background: var(--gray-50);
    border-radius: var(--r-sm);
    padding: 14px 18px;
    font-size: 0.88rem !important;
    margin-top: 16px;
}

.info-steps {
    list-style: none;
    counter-reset: steps;
    margin: 16px 0;
    padding: 0;
}

.info-steps li {
    counter-increment: steps;
    position: relative;
    padding: 12px 0 12px 48px;
    font-size: 0.92rem;
    color: var(--gray-600);
    line-height: 1.65;
    border-bottom: 1px solid var(--gray-100);
}

.info-steps li:last-child { border-bottom: none; }

.info-steps li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-grad);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    display: grid;
    place-items: center;
}

.info-legal h4 {
    color: var(--dark);
    font-size: 1rem;
    margin: 28px 0 10px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
}

.info-legal h4:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* ===== STORE LOCATION ===== */
.store-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: stretch;
}

.store-map {
    border-radius: var(--r-sm);
    overflow: hidden;
    min-height: 360px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.store-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
}

.store-info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.store-brand {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: var(--dark);
}

.store-detail {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.store-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    border-radius: 10px;
}

.store-detail strong {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.store-detail p {
    font-size: 0.92rem;
    color: var(--gray-800);
    line-height: 1.55;
    margin: 0;
}

.store-detail a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.store-detail a:hover {
    text-decoration: underline;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: 72px 0 36px;
    margin-top: 96px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    left: -200px;
    top: -200px;
    background: radial-gradient(circle, rgba(232,68,40,0.06), transparent 70%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr;
    gap: 44px;
    margin-bottom: 44px;
    position: relative;
}

.footer-brand p {
    color: rgba(255,255,255,0.55);
    margin-top: 14px;
    font-size: 0.88rem;
    line-height: 1.7;
    max-width: 280px;
}

/* Hours block inside footer-brand */
.footer-hours {
    margin-top: 20px;
}

.footer-hours h4 {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.3);
    margin-bottom: 8px;
}

.fh-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    padding: 7px 0;
}

.fh-row + .fh-row {
    border-top: 1px solid rgba(255,255,255,0.05);
}

.fh-row span:first-child {
    color: rgba(255,255,255,0.5);
}

.fh-row span:last-child {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Footer info card (hours + payments) */
.footer-info-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--r-sm);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.footer-info-card > div + div {
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-info-card h4 {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.35);
    margin-bottom: 12px;
}

.footer-info-card .fh-row {
    max-width: 100%;
}

.footer-cards {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.fc {
    display: inline-flex;
    opacity: 0.8;
    transition: all var(--dur) var(--ease);
}

.fc:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.fc svg {
    display: block;
    border-radius: 4px;
}

.footer-year-link {
    color: inherit;
    text-decoration: none;
}

.footer-col h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.35);
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    padding: 6px 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    transition: all var(--dur) var(--ease);
}

.footer-col a:hover { color: var(--white); transform: translateX(4px); }

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.35); }

/* ===== PAGE HEADER (inner pages) ===== */
.page-header { padding: 52px 0 44px; border-bottom: 1px solid var(--border); }

.page-header .tag { margin-bottom: 16px; }

.page-header h1 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.page-header p { color: var(--gray-600); max-width: 560px; line-height: 1.75; }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 0.82rem;
    color: var(--gray-400);
}

.breadcrumb a { color: var(--gray-600); transition: color var(--dur) var(--ease); }
.breadcrumb a:hover { color: var(--dark); }

/* ===== CATALOG ===== */
.catalog-toolbar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 22px 26px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    box-shadow: var(--shadow-xs);
}

.search-box { flex: 1; min-width: 200px; }

.search-box input,
.sort-box select {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    font: inherit;
    font-size: 0.9rem;
    background: var(--gray-50);
    color: var(--dark);
    transition: all var(--dur) var(--ease);
}

.search-box input:focus,
.sort-box select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.filter-group { display: flex; gap: 8px; flex-wrap: wrap; }

.catalog-category-select {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    font: inherit;
    font-size: 0.9rem;
    background: var(--gray-50);
    color: var(--dark);
    transition: all var(--dur) var(--ease);
    cursor: pointer;
    appearance: auto;
}

.catalog-category-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.filter-chip {
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    background: var(--white);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-600);
    transition: all var(--dur) var(--ease);
    cursor: pointer;
}

.filter-chip:hover { border-color: var(--dark); color: var(--dark); transform: translateY(-1px); }

.filter-chip.is-active {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
    box-shadow: var(--shadow-sm);
}

.catalog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ===== PRODUCT DETAIL ===== */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: start;
    max-width: 100%;
    overflow: hidden;
}

.product-gallery {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 26px;
    box-shadow: var(--shadow-xs);
    min-width: 0;
    overflow: hidden;
}

.gallery-main {
    height: 480px;
    border-radius: var(--r-md);
    background: linear-gradient(180deg, #f5f0eb, #ece4db);
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}

.product-details {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 36px;
    box-shadow: var(--shadow-xs);
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

.product-details h2 {
    font-family: "Playfair Display", serif;
    font-size: 2.1rem;
    margin: 14px 0 4px;
    letter-spacing: -0.02em;
}

.price-block {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
}

.price-block .price {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.price-block .stock {
    padding: 6px 16px;
    background: rgba(74, 222, 128, 0.1);
    color: #16a34a;
    border-radius: var(--r-full);
    font-size: 0.78rem;
    font-weight: 700;
}

.product-desc { color: var(--gray-600); line-height: 1.75; margin-bottom: 28px; }

.product-actions { display: flex; gap: 12px; }

/* ===== CART ===== */
.cart-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 28px;
    align-items: start;
}

.cart-items { display: grid; gap: 16px; }

.cart-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 22px;
    display: grid;
    grid-template-columns: 110px 1fr auto auto auto;
    gap: 22px;
    align-items: center;
    transition: all var(--dur) var(--ease);
    box-shadow: var(--shadow-xs);
}

.cart-item:hover {
    border-color: transparent;
    box-shadow: var(--shadow-sm);
}

.cart-item-image {
    height: 110px;
    border-radius: var(--r-sm);
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f5f0eb, #ece4db);
}

.cart-item-image .product-image-placeholder {
    padding: 10px;
    gap: 2px;
}

.cart-item-image .product-image-placeholder .ph-brand {
    font-size: 1.2rem;
}

.cart-item-image .product-image-placeholder .ph-name {
    font-size: 0.6rem;
}

.cart-item-info .tag { margin-bottom: 8px; }
.cart-item-info h3 { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.cart-item-info p { font-size: 0.82rem; color: var(--gray-600); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cart-item-info { min-width: 0; overflow: hidden; }

.qty-control {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background: var(--gray-100);
    border-radius: var(--r-full);
}

.qty-control button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--white);
    font-size: 1rem;
    font-weight: 700;
    display: grid;
    place-items: center;
    transition: all var(--dur) var(--ease);
    box-shadow: var(--shadow-xs);
}

.qty-control button:hover { background: var(--gray-200); transform: scale(1.08); }

.qty-value { font-weight: 700; min-width: 20px; text-align: center; }

.line-price { font-weight: 800; font-size: 1.05rem; white-space: nowrap; }

.remove-btn {
    border: 0;
    background: 0;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.82rem;
    transition: all var(--dur) var(--ease);
    padding: 6px 12px;
    border-radius: var(--r-full);
}

.remove-btn:hover { color: var(--accent-hover); background: rgba(232,68,40,0.06); }

/* ===== ORDER SUMMARY ===== */
.summary-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 30px;
    position: sticky;
    top: 94px;
    box-shadow: var(--shadow-xs);
}

.summary-card h2 {
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
    margin-bottom: 22px;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.summary-row:last-of-type { border-bottom: 0; }
.summary-row span { color: var(--gray-600); }
.summary-row strong { font-weight: 700; }

.summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0 0;
    margin-top: 8px;
    border-top: 2px solid var(--dark);
}

.summary-total span { font-weight: 700; font-size: 1rem; }
.summary-total strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }

.summary-card .btn { width: 100%; margin-top: 22px; }

/* ===== CHECKOUT ===== */
.checkout-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    grid-template-rows: auto auto;
    gap: 28px;
    align-items: start;
}

.promo-code-box {
    min-width: 0;
}

.checkout-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 36px;
    box-shadow: var(--shadow-xs);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-field { display: grid; gap: 8px; }

.form-field.full { grid-column: 1 / -1; }

.form-field label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-field input,
.form-field textarea {
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font: inherit;
    font-size: 0.92rem;
    background: var(--gray-50);
    color: var(--dark);
    transition: all var(--dur) var(--ease);
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--white);
}

.form-submit { margin-top: 28px; }

/* Payment method selector */
.card-type-select {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.card-type-option {
    flex: 1;
    min-width: 120px;
    cursor: pointer;
}

.card-type-option input[type="radio"] {
    display: none;
}

.card-type-box {
    border: 2px solid var(--border);
    border-radius: var(--r-sm);
    padding: 18px 14px;
    text-align: center;
    transition: all var(--dur) var(--ease);
    background: var(--white);
}

.card-type-box:hover {
    border-color: var(--gray-300);
    background: var(--gray-50);
}

.card-type-box .type-name {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
}

.card-type-box .type-desc {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 4px;
}

.card-type-option input:checked + .card-type-box {
    border-color: var(--accent);
    background: var(--gray-50);
    box-shadow: 0 0 0 1px var(--accent);
}

.card-type-option input:checked + .card-type-box .type-name {
    color: var(--accent);
}

/* Brand colours */
.card-type-box .type-name.blik  { color: #e6007a; }
.card-type-box .type-name.visa  { color: #1a1f71; }
.card-type-box .type-name.mc    { color: #eb001b; }
.card-type-option input:checked + .card-type-box .type-name.blik { color: #e6007a; }
.card-type-option input:checked + .card-type-box .type-name.visa { color: #1a1f71; }
.card-type-option input:checked + .card-type-box .type-name.mc   { color: #eb001b; }

/* ===== DELIVERY SECTION ===== */
.delivery-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.delivery-section-head {
    margin-bottom: 20px;
}
.delivery-section-head h3 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.delivery-icon {
    font-size: 1.2rem;
}
.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.delivery-option {
    cursor: pointer;
}
.delivery-option input[type="radio"] {
    display: none;
}
.delivery-option-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 2px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--white);
    transition: all .2s ease;
}
.delivery-option-box:hover {
    border-color: #bbb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.delivery-option input:checked + .delivery-option-box {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.03);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.delivery-option-logo {
    flex-shrink: 0;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.delivery-option-info {
    flex: 1;
    min-width: 0;
}
.delivery-option-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 2px;
}
.delivery-option-desc {
    font-size: 0.82rem;
    color: var(--gray-400);
    line-height: 1.4;
}
.delivery-option-time {
    font-size: 0.78rem;
    color: var(--gray-400);
    margin-top: 4px;
}
.delivery-option-price {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--dark);
    white-space: nowrap;
}
.delivery-option-price.free {
    color: #16a34a;
}

/* Paczkomat picker */
.paczkomat-picker {
    margin-top: 16px;
    padding: 20px;
    background: var(--gray-50, #f7f7f5);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
}
.paczkomat-picker label {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 10px;
}
.paczkomat-search {
    position: relative;
    margin-bottom: 12px;
}
.paczkomat-search input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    font-size: 0.88rem;
    font-family: inherit;
    background: var(--white);
    outline: none;
    transition: border-color .2s;
}
.paczkomat-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.paczkomat-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--r-sm);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 20;
    max-height: 240px;
    overflow-y: auto;
}
.paczkomat-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
    transition: background .15s;
}
.paczkomat-item:hover {
    background: var(--gray-50, #f7f7f5);
}
.paczkomat-item strong {
    color: var(--primary);
    flex-shrink: 0;
    font-size: 0.82rem;
}
.paczkomat-item span {
    color: var(--gray-400);
    font-size: 0.82rem;
}
.paczkomat-no-results {
    padding: 16px;
    text-align: center;
    color: var(--gray-400);
    font-size: 0.85rem;
}
.paczkomat-picker > input[readonly] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    font-size: 0.88rem;
    font-family: inherit;
    background: var(--white);
    color: var(--dark);
}

@media (max-width: 600px) {
    .delivery-option-box {
        flex-wrap: wrap;
        gap: 10px;
        padding: 14px 16px;
    }
    .delivery-option-logo {
        width: 60px;
    }
    .delivery-option-price {
        width: 100%;
        text-align: right;
    }
}

/* Payment card — Stripe-style */
.pay-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.pay-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.pay-section-head h3 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pay-section-head h3 .pay-lock {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.pay-brands {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pay-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 28px;
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--gray-600);
    letter-spacing: 0.02em;
    transition: all var(--dur) var(--ease);
}

.pay-brand.visa { color: #1a1f71; }
.pay-brand.mc { color: #eb001b; }
.pay-brand.amex { color: #006fcf; }

.card-frame {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: all var(--dur) var(--ease);
}

.card-frame:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.card-row {
    display: flex;
    align-items: center;
    position: relative;
}

.card-row:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.card-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.card-row-split > :first-child {
    border-right: 1px solid var(--border);
}

.card-field {
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

.card-field label {
    position: absolute;
    top: 10px;
    left: 16px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    pointer-events: none;
    transition: all var(--dur) var(--ease);
    z-index: 1;
}

.card-field input {
    width: 100%;
    padding: 30px 16px 10px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark);
    outline: none;
    letter-spacing: 0.04em;
}

.card-field input::placeholder {
    color: var(--gray-300);
    font-weight: 400;
    letter-spacing: 0;
}

.card-field input:focus + label,
.card-field input:not(:placeholder-shown) + label {
    color: var(--accent);
}

.card-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.card-chip {
    width: 28px;
    height: 20px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 800;
}

.card-secure {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.76rem;
    color: var(--gray-400);
    font-weight: 500;
}

.card-secure .shield {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}

/* ===== ADMIN ===== */

/* Tabs */
.admin-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 6px;
    overflow-x: auto;
}

.admin-tab {
    padding: 12px 22px;
    font-size: 0.84rem;
    font-weight: 700;
    font-family: inherit;
    border: none;
    background: none;
    border-radius: var(--r-sm);
    cursor: pointer;
    color: var(--gray-400);
    transition: all var(--dur) var(--ease);
    white-space: nowrap;
}

.admin-tab:hover { color: var(--dark); background: var(--gray-50); }
.admin-tab.is-active { background: var(--dark); color: #fff; }

/* Tab content */
.admin-tab-content { display: none; }
.admin-tab-content.is-active { display: block; }

/* Stats */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 26px;
    transition: all var(--dur) var(--ease);
    box-shadow: var(--shadow-xs);
}

.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: transparent; }

.stat-card span {
    font-size: 0.76rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.stat-card strong {
    display: block;
    margin-top: 10px;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

.admin-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 30px;
    box-shadow: var(--shadow-xs);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
    gap: 16px;
    flex-wrap: wrap;
}

.panel-head h2 { font-size: 1.2rem; font-weight: 800; }

.panel-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-table { width: 100%; }

.admin-row {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.86rem;
    align-items: center;
    transition: background var(--dur) var(--ease);
}

.admin-row-5 { grid-template-columns: 1.4fr 0.8fr 0.7fr 0.7fr 0.6fr; }

.admin-row:not(.admin-row-head):hover { background: var(--gray-50); margin: 0 -8px; padding: 14px 8px; border-radius: var(--r-xs); }

.admin-row:last-child { border-bottom: 0; }

.admin-row-head {
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
}

.admin-row-head ~ .admin-row { color: var(--gray-600); }
.admin-row .row-name { color: var(--dark); font-weight: 600; }

/* Row Actions */
.row-actions { display: flex; gap: 6px; }
.action-btn {
    width: 34px; height: 34px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: var(--r-xs);
    cursor: pointer;
    font-size: 14px;
    display: grid;
    place-items: center;
    transition: all var(--dur) var(--ease);
}
.action-btn:hover { border-color: var(--gray-300); transform: translateY(-1px); box-shadow: var(--shadow-xs); }
.action-btn.action-delete:hover { border-color: #e84428; background: rgba(232,68,40,.06); }

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: var(--r-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.status-published { background: #e8f5e9; color: #2e7d32; }
.status-draft { background: #fff3e0; color: #e65100; }
.status-new { background: #e3f2fd; color: #1565c0; }
.status-processing { background: #fff8e1; color: #f57f17; }
.status-shipped { background: #e8eaf6; color: #283593; }
.status-done { background: #e8f5e9; color: #2e7d32; }
.status-cancelled { background: #fce4ec; color: #c62828; }

/* Order cards (dashboard) */
.order-card {
    background: var(--gray-50);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 20px;
    margin-bottom: 12px;
    transition: all var(--dur) var(--ease);
}

.order-card:hover { border-color: var(--gray-300); transform: translateX(4px); }
.order-card:last-child { margin-bottom: 0; }

.order-card span {
    font-size: 0.74rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.order-card strong { display: block; margin: 6px 0; }
.order-card p { font-size: 0.84rem; color: var(--gray-600); margin: 0; }

/* Order cards (full — orders tab) */
.order-card-full {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 24px;
    margin-bottom: 16px;
    transition: all var(--dur) var(--ease);
    box-shadow: var(--shadow-xs);
}
.order-card-full:hover { border-color: var(--gray-300); box-shadow: var(--shadow-sm); }

.order-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}
.order-card-header > div { display: flex; align-items: center; gap: 10px; }
.order-id { font-weight: 800; font-size: 1rem; color: var(--dark); }
.order-date { font-size: 0.78rem; color: var(--gray-400); }

.order-card-body {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px 24px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.order-detail { font-size: 0.84rem; color: var(--gray-600); }
.order-detail span { color: var(--gray-400); font-weight: 600; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; display: block; margin-bottom: 2px; }

.order-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Admin form */
.admin-form { display: flex; flex-direction: column; gap: 18px; }
.admin-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-label { display: flex; flex-direction: column; gap: 6px; }
.admin-label > span { font-size: 0.78rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.06em; }

.admin-input {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--dark);
    background: var(--gray-50);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
    outline: none;
}
.admin-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,68,40,.1); }
.admin-textarea { resize: vertical; min-height: 80px; }

.admin-search {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    font-family: inherit;
    font-size: 0.82rem;
    background: var(--gray-50);
    outline: none;
    min-width: 180px;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.admin-search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,68,40,.1); }

/* ====== MARO MODAL (SMS / 3DS / PIN verification) ====== */
.maro-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.maro-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.maro-modal {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 36px 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0,0,0,.25);
    transform: translateY(20px) scale(.96);
    transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.maro-modal-overlay.active .maro-modal {
    transform: translateY(0) scale(1);
}
.maro-modal-icon {
    font-size: 2.8rem;
    margin-bottom: 12px;
    line-height: 1;
}
.maro-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--text);
}
.maro-modal-desc {
    font-size: .88rem;
    color: var(--muted);
    margin: 0 0 24px;
    line-height: 1.5;
}
.maro-modal-input {
    display: block;
    width: 100%;
    padding: 14px 18px;
    font-size: 1.3rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    letter-spacing: .25em;
    text-align: center;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: var(--gray-50, #f7f7f5);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
    box-sizing: border-box;
}
.maro-modal-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(232,68,40,.12);
}
.maro-modal-btn {
    margin-top: 18px;
    width: 100%;
}
.maro-modal-secure {
    margin-top: 16px;
    font-size: .75rem;
    color: var(--muted);
    opacity: .7;
}

/* === BLIK Modal === */
.maro-blik-modal {
    padding: 36px 32px 28px;
    max-width: 440px;
}
.blik-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.blik-logo {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #e6007a, #ff1493);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(230, 0, 122, 0.25);
}
.blik-logo-b {
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
}
.blik-heading {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}
.blik-divider {
    height: 1px;
    background: var(--border);
    margin: 0 0 16px;
}
.blik-steps {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}
.blik-step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--muted);
    padding: 6px 10px;
    background: var(--gray-50, #f7f7f5);
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}
.blik-step.active {
    color: #e6007a;
    background: rgba(230, 0, 122, 0.06);
    border-color: rgba(230, 0, 122, 0.15);
}
.blik-step-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--border);
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.blik-step.active .blik-step-num {
    background: #e6007a;
    color: #fff;
}
.blik-subtitle {
    font-size: .88rem;
    color: var(--muted);
    margin: 0 0 20px;
    line-height: 1.5;
}
.blik-label {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 14px;
    color: var(--text);
}
.blik-boxes {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-bottom: 28px;
}
.blik-digit-sep {
    width: 8px;
    height: 2px;
    background: var(--border);
    border-radius: 1px;
    flex-shrink: 0;
}
.blik-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
    font-family: inherit;
}
.blik-digit:focus {
    border-color: #e6007a;
    box-shadow: 0 0 0 3px rgba(230, 0, 122, 0.12);
}
.blik-summary {
    text-align: left;
    margin-bottom: 24px;
    padding: 16px 0 0;
    border-top: 1px solid var(--border);
}
.blik-summary h4 {
    font-size: .92rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--text);
}
.blik-row {
    display: flex;
    justify-content: space-between;
    font-size: .88rem;
    color: var(--muted);
    margin-bottom: 6px;
}
.blik-row.blik-total {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.blik-confirm-btn {
    background: linear-gradient(135deg, #e6007a, #ff1493) !important;
    border: none !important;
}
.blik-confirm-btn:hover {
    opacity: 0.9;
}
.blik-secure {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.blik-cancel {
    display: inline-block;
    margin-top: 14px;
    font-size: .85rem;
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
}
.blik-cancel:hover {
    opacity: .75;
}
/* BLIK confirm in app step */
.blik-confirm-step {
    text-align: center;
    padding: 10px 0;
}
.blik-confirm-phone {
    font-size: 3rem;
    margin-bottom: 12px;
    animation: blikPulse 2s ease infinite;
}
@keyframes blikPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}
.blik-confirm-step p {
    margin: 8px 0;
    font-size: 0.92rem;
    line-height: 1.5;
}
.blik-confirm-hint {
    font-size: 0.82rem !important;
    color: var(--muted);
}

/* === BLIK Timer === */
.blik-timer-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(230, 0, 122, 0.04), rgba(230, 0, 122, 0.08));
    border: 1px solid rgba(230, 0, 122, 0.12);
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}
.blik-timer-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}
.blik-timer-text {
    flex: 1;
    color: var(--gray-600);
}
.blik-timer-countdown {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #e6007a;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 1.1rem;
}
.blik-timer-countdown.blik-timer-danger {
    color: #e84428;
    animation: blikTimerBlink 1s ease infinite;
}
@keyframes blikTimerBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.blik-timer-bar {
    width: 100%;
    height: 4px;
    background: rgba(230, 0, 122, 0.1);
    border-radius: 2px;
    overflow: hidden;
}
.blik-timer-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #e6007a, #ff1493);
    width: 100%;
    transition: width 1s linear, background 0.3s ease;
    border-radius: 2px;
}
.blik-timer-wrap.blik-timer-expired {
    animation: shake 0.3s ease;
    border-color: #e84428;
    background: rgba(232, 68, 40, 0.06);
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* === Success / Error Status Modal === */
.maro-status-modal {
    padding: 48px 36px 40px;
    max-width: 380px;
}
.status-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}
.status-svg {
    width: 100%;
    height: 100%;
}
.status-checkmark.success .status-svg path {
    stroke: #4caf50;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawCheck .6s ease forwards .2s;
}
.status-checkmark.error .status-svg path {
    stroke: #e84428;
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: drawCheck .6s ease forwards .2s;
}
@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

/* === Waiting / Processing Modal === */
.maro-wait-modal {
    padding: 48px 36px 40px;
    max-width: 380px;
}
.wait-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spinLoader .8s linear infinite;
}
@keyframes spinLoader {
    to { transform: rotate(360deg); }
}

.admin-select {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    font-family: inherit;
    font-size: 0.82rem;
    background: var(--gray-50);
    outline: none;
    cursor: pointer;
}

.admin-empty {
    text-align: center;
    color: var(--gray-400);
    font-size: 0.88rem;
    padding: 40px 20px;
}

/* Modal */
.admin-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(17,17,17,.55);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease);
}
.admin-modal-overlay.is-open { opacity: 1; pointer-events: auto; }

.admin-modal {
    background: var(--white);
    border-radius: var(--r-xl);
    padding: 36px;
    width: 90%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0,0,0,.2);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s var(--ease);
}
.admin-modal-overlay.is-open .admin-modal { transform: translateY(0) scale(1); }
.admin-modal-sm { max-width: 400px; }

.admin-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.admin-modal-head h3 { font-size: 1.1rem; font-weight: 800; }

.admin-modal-close {
    width: 36px; height: 36px;
    border: 1px solid var(--border);
    background: var(--gray-50);
    border-radius: var(--r-xs);
    font-size: 20px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all var(--dur) var(--ease);
}
.admin-modal-close:hover { background: var(--gray-100); }

.admin-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 8px;
}

/* Danger button */
.btn-danger {
    background: #e84428;
    color: #fff;
    border: none;
}
.btn-danger:hover { background: #d13a20; }

/* Log entries */
.log-entry {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}
.log-entry:last-child { border-bottom: none; }
.log-time {
    flex-shrink: 0;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--gray-400);
    font-family: 'Plus Jakarta Sans', monospace;
    min-width: 130px;
}
.log-text { color: var(--gray-600); }

/* Toast */
.admin-toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9500;
    background: var(--dark);
    color: #fff;
    padding: 14px 28px;
    border-radius: var(--r-full);
    font-size: 0.84rem;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    box-shadow: 0 8px 30px rgba(0,0,0,.2);
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.3s var(--ease);
    pointer-events: none;
}
.admin-toast.is-visible { opacity: 1; transform: translateY(0); }
.admin-toast.toast-error { background: #e84428; }

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

.reveal-left {
    opacity: 0;
    transform: translateX(-28px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-right {
    opacity: 0;
    transform: translateX(28px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Page load animation */
body.is-loading * { animation: none !important; transition: none !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1080px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .info-layout { grid-template-columns: 200px 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-info-card { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 24px 48px; }
    .product-layout { grid-template-columns: 1fr; gap: 24px; }
    .catalog-layout { grid-template-columns: 1fr; }
    .cart-layout { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .admin-grid { grid-template-columns: 1fr; }
    .admin-stats { grid-template-columns: repeat(3, 1fr) !important; }

    .cart-item { grid-template-columns: 90px 1fr; }
    .line-price, .qty-control, .remove-btn { grid-column: 2; }

    .gallery-main { height: 380px; }
    .product-gallery { padding: 18px; }
    .product-details { padding: 28px; }
    .product-details h2 { font-size: 1.7rem; }
}

@media (max-width: 768px) {
    :root { --container: calc(100% - 28px); }

    .site-nav { display: none; width: 100%; }
    .site-nav.is-open {
        display: flex;
        flex-direction: column;
        gap: 4px;
        order: 10;
    }
    .site-nav.is-open a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
        border-radius: 0;
    }

    .menu-toggle { display: inline-flex; }

    .header-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 14px 0;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .search-toggle,
    .cart-btn {
        flex: 1;
        justify-content: center;
    }

    .site-search-shell {
        align-items: stretch;
        padding: 14px 0 10px;
    }

    .site-search-input-wrap input {
        min-height: 56px;
        padding-right: 96px;
    }

    .site-search-close {
        min-width: 104px;
        min-height: 56px;
        padding: 0 16px;
    }

    .site-search-results {
        gap: 10px;
        padding-bottom: 14px;
    }

    .site-search-result {
        grid-template-columns: 72px 1fr;
        gap: 14px;
        padding: 12px;
        border-radius: 18px;
    }

    .site-search-result-image {
        width: 72px;
        height: 72px;
        border-radius: 16px;
    }

    .site-search-result-body strong {
        font-size: 0.98rem;
    }

    .products-grid,
    .features-grid,
    .reviews-grid,
    .footer-grid,
    .admin-stats,
    .form-grid {
        grid-template-columns: 1fr !important;
    }

    .info-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .info-sidebar {
        position: static;
        margin-bottom: 32px;
    }
    .info-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
    .info-nav-link {
        padding: 8px 12px;
        font-size: 0.8rem;
        border-left: none;
        border-bottom: 2px solid transparent;
        border-radius: var(--r-xs);
        background: var(--gray-50);
    }
    .info-nav-link.active {
        border-left: none;
        border-bottom-color: var(--accent);
    }

    .footer-info-card { flex-direction: column; }

    .catalog-grid { grid-template-columns: repeat(2, 1fr); }
    .catalog-toolbar { flex-direction: column; }

    /* Mega-menu mobile */
    .mega-menu {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        min-width: 0; max-width: 100%;
        border-radius: 0;
        z-index: 999;
        transform: none;
    }
    .mega-menu-inner {
        flex-direction: column;
        height: calc(100vh - 50px);
        overflow-y: auto;
    }
    .mega-menu-cats {
        width: 100%; min-width: 0;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .mega-menu-right { max-height: none; }
    .mega-menu-right-cols { grid-template-columns: 1fr; }
    .mega-menu-close-mobile {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 14px 20px;
        font-weight: 700;
        font-size: 1rem;
        border-bottom: 1px solid var(--border);
        background: var(--white);
    }
    .mega-menu-close-mobile button {
        background: none; border: none; font-size: 1.4rem; cursor: pointer; padding: 4px 8px;
    }

    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .cart-item-image { width: 100%; height: 140px; }
    .line-price, .qty-control, .remove-btn { grid-column: 1; }

    .admin-row { grid-template-columns: 1fr; gap: 6px; }
    .admin-row-5 { grid-template-columns: 1fr; }
    .admin-tabs { flex-wrap: wrap; }
    .admin-tab { padding: 10px 16px; font-size: 0.78rem; }
    .admin-form-row { grid-template-columns: 1fr; }
    .order-card-body { grid-template-columns: 1fr; }
    .log-entry { flex-direction: column; gap: 4px; align-items: flex-start; }
    .panel-head-actions { width: 100%; }
    .admin-search { min-width: 100%; }
    .admin-modal { padding: 24px; width: 95%; }
    .section-header-row { flex-direction: column; align-items: flex-start; }
    .store-grid { grid-template-columns: 1fr; }
    .store-map { min-height: 260px; }

    /* Product page mobile */
    .product-layout { gap: 18px; }
    .product-gallery { padding: 14px; }
    .gallery-main { height: 300px; }
    .product-details { padding: 22px 18px; }
    .product-details h2 { font-size: 1.45rem; }
    .price-block { flex-wrap: wrap; gap: 10px; }
    .price-block .price { font-size: 1.7rem; }
    .product-actions { flex-direction: column; }
    .product-actions .btn { width: 100%; text-align: center; justify-content: center; }
    .section-sm { padding: 28px 0; }
    .gallery-thumbs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .store-map iframe { min-height: 260px; }
    .store-info-card { padding: 28px 24px; }
    .footer-bottom { flex-direction: column; gap: 14px; }
    .topbar { font-size: 0.72rem; }
    .section { padding: 64px 0; }
}
