/* =====================================================
   Oficiali atributika – New design system
   Black / white / orange accent. Mobile-first, Bootstrap-friendly.
   ===================================================== */

:root {
    --black: #0a0a0a;
    --white: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --accent: #ff5722;
    --accent-hover: #e64a19;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--black);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* HEADER */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--black);
    color: var(--white);
    padding: 0 0.75rem;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    color: var(--white);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.header__logo img { height: 28px; width: auto; display: block; flex-shrink: 0; }

@media (max-width: 320px) {
    .header__logo { font-size: 0.9rem; max-width: 50%; }
}

.header__nav { display: none; }

.header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header__cart {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem;
}
.header__cart:hover { color: var(--white); }

.header__cart-icon { font-size: 1.15rem; }

.header__cart-count {
    position: absolute;
    top: 2px; right: -2px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.55rem;
    font-weight: 700;
    min-width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

.header__cart-total {
    font-size: 0.75rem;
    font-weight: 600;
}

.header__menu-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.35rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

@media (min-width: 768px) {
    .header { padding: 0 2rem; height: 70px; }
    .header__logo { font-size: 1.5rem; max-width: none; }
    .header__logo img { height: 36px; }
    .header__nav { display: flex; gap: 2rem; }
    .header__nav a {
        color: var(--white);
        text-decoration: none;
        font-size: 0.8rem;
        font-weight: 500;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        transition: color 0.2s;
    }
    .header__nav a:hover, .header__nav a.active { color: var(--accent); }
    .header__menu-btn { display: none; }
}

/* MOBILE MENU */
.mobile-menu {
    position: fixed;
    top: 56px; left: 0; right: 0; bottom: 0;
    background: var(--black);
    z-index: 999;
    padding: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu a {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.75rem;
    letter-spacing: 0.03em;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-800);
    transition: color 0.2s;
}
/* Red text when tapped/active */
.mobile-menu a:active,
.mobile-menu a.active { color: var(--danger); }
@media (min-width: 768px) { .mobile-menu { top: 70px; } }

/* MAIN */
.main { padding-top: 56px; min-height: 100vh; }
@media (min-width: 768px) { .main { padding-top: 70px; } }

/* HERO */
.hero {
    position: relative;
    background: var(--black);
    color: var(--white);
    min-height: 28vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding: 2rem 1rem;
}
@media (min-width: 768px) { .hero { min-height: 34vh; } }
.hero__title {
    font-family: var(--font-display);
    font-size: 2.75rem;
    letter-spacing: 0.02em;
    line-height: 1;
}
@media (min-width: 768px) { .hero__title { font-size: 4.5rem; } }
.hero__subtitle { color: var(--gray-400); margin-top: 0.75rem; font-size: 0.95rem; }
.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    color: var(--black);
    padding: 1rem 2rem;
    margin-top: 1.5rem;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: background 0.2s;
}
.hero__cta:hover { background: var(--gray-200); color: var(--black); }

/* DEADLINE BANNER */
.deadline-banner {
    background: var(--accent);
    color: var(--white);
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}
.deadline-banner i { margin-right: 0.5rem; }

/* FEATURES */
.features { background: var(--gray-100); padding: 1.5rem 1rem; }
.features__grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
@media (min-width: 768px) { .features__grid { grid-template-columns: repeat(4, 1fr); } }
.feature { text-align: center; padding: 0.75rem; }
.feature__icon { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--black); }
.feature__title { font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.feature__text { font-size: 0.7rem; color: var(--gray-500); }

/* PRODUCTS GRID - 2 columns on mobile */
.products-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
@media (min-width: 576px) { .products-grid { gap: 1.5rem; } }
@media (min-width: 768px) { .products-grid { grid-template-columns: repeat(3, 1fr); padding: 2rem; } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }

.section-title {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem 0;
    font-family: var(--font-display);
    font-size: 1.75rem;
    letter-spacing: 0.02em;
}
@media (min-width: 768px) { .section-title { padding: 2rem 2rem 0; } }

/* PRODUCT CARD */
.product-card { position: relative; background: var(--white); display: flex; flex-direction: column; }
.product-card__image {
    position: relative;
    aspect-ratio: 1;
    background: var(--gray-100);
    overflow: hidden;
}
.product-card__image img {
    width: 100%; height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}
.product-card:hover .product-card__image img { transform: scale(1.05); }
.product-card__badge {
    position: absolute;
    top: 0.75rem; left: 0.75rem;
    background: var(--accent);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}
.product-card__sold-out {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.25rem;
    z-index: 2;
}
.product-card__info { padding: 1rem 0; }
.product-card__category { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-500); }
.product-card__name { font-size: 0.95rem; font-weight: 500; margin-bottom: 0.5rem; color: var(--black); text-decoration: none; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.product-card__price { font-family: var(--font-display); font-size: 1.35rem; }
.product-card__price del { font-family: var(--font-body); font-size: 0.8rem; color: var(--gray-400); margin-right: 0.35rem; }
.product-card__link { position: absolute; inset: 0; z-index: 1; }

/* PRODUCT CARD - listing/category grid variant (.product-visual / .product-body) */
.product-visual {
    position: relative;
    aspect-ratio: 1;
    background-color: var(--gray-100);
    overflow: hidden;
}
.product-visual img {
    width: 100%; height: 100%;
    object-fit: contain;
}
.visual-green { background-color: #e6f0e6; }
.visual-sage  { background-color: #e8eee4; }
.visual-cream { background-color: #f5f0e6; }
.visual-mint  { background-color: #e4efe9; }
.product-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 1rem 0; }
.product-body .product-category { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-500); }

/* BUTTONS - orange primary (scoped to avoid clobbering Bootstrap) */
.btn-merch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    z-index: 2;
}
.btn-merch--primary { background: var(--accent); color: var(--white); }
.btn-merch--primary:hover { background: var(--accent-hover); color: var(--white); }
.btn-merch--black { background: var(--black); color: var(--white); }
.btn-merch--black:hover { background: var(--gray-800); color: var(--white); }
.btn-merch--outline { background: transparent; border: 2px solid var(--black); color: var(--black); }
.btn-merch--outline:hover { background: var(--black); color: var(--white); }
.btn-merch--block { width: 100%; }
.btn-merch--sm { padding: 0.5rem 0.9rem; font-size: 0.8rem; }

.pickup-coupon-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 52px;
    border: 1px solid #facc15;
    background: linear-gradient(135deg, #fbbf24 0%, #fde047 42%, #f59e0b 100%);
    color: var(--black);
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.36), inset 0 1px 0 rgba(255,255,255,0.55);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.pickup-coupon-btn::before {
    content: "";
    position: absolute;
    inset: -45% auto -45% -35%;
    width: 35%;
    transform: skewX(-22deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.85), transparent);
    animation: pickup-coupon-shine 2.8s ease-in-out infinite;
}
.pickup-coupon-btn:hover,
.pickup-coupon-btn:focus {
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(245, 158, 11, 0.48), inset 0 1px 0 rgba(255,255,255,0.65);
}
.pickup-coupon-btn i,
.pickup-coupon-btn span {
    position: relative;
    z-index: 1;
}

@keyframes pickup-coupon-shine {
    0% { left: -40%; }
    45%, 100% { left: 125%; }
}

@media (prefers-reduced-motion: reduce) {
    .pickup-coupon-btn,
    .pickup-coupon-btn::before {
        animation: none;
        transition: none;
    }
}

/* FLOATING CART */
.floating-cart {
    position: fixed;
    bottom: 1.25rem;
    right: 0.75rem;
    z-index: 900;
    display: none;
}
.floating-cart.active { display: block; }
.floating-cart__btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--white);
    padding: 0.875rem 1.25rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    text-decoration: none;
    color: var(--black);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}
.floating-cart__btn:hover { transform: scale(1.02); box-shadow: 0 6px 25px rgba(0,0,0,0.2); color: var(--black); }
.floating-cart__icon { position: relative; font-size: 1.4rem; }
.floating-cart__count {
    position: absolute;
    top: -6px; right: -6px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.55rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}
.floating-cart__total { font-family: var(--font-display); font-size: 1.15rem; }

/* NOTICES */
.notice {
    padding: 1rem;
    border-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.notice--warning { background: #fef3c7; border: 1px solid var(--warning); color: #92400e; }
.notice--info { background: #dbeafe; border: 1px solid #3b82f6; color: #1e40af; }
.notice--danger { background: #fee2e2; border: 1px solid var(--danger); color: #991b1b; }
.notice i { font-size: 1.1rem; flex-shrink: 0; }

.contact__logo {
    display: block;
    width: min(220px, 100%);
    height: auto;
}

/* FOOTER */
.footer { background: var(--black); color: var(--white); padding: 2.5rem 1rem; }
.footer__features {
    background: var(--gray-100);
    padding: 1.5rem 1rem;
    margin: -2.5rem -1rem 2rem;
}
.footer .feature__icon { color: var(--black); }
.footer .feature__title { color: var(--black); }
.footer .feature__text { color: var(--gray-500); }
.footer__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    text-align: center;
}
.footer__left { flex: 1 1 100%; }
.footer__brand { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.03em; }
.footer__text { color: var(--gray-500); font-size: 0.8rem; margin: 0.25rem 0 0; }
.footer__official { display: inline-flex; align-items: center; gap: 0.35rem; vertical-align: middle; }
.footer__official img { height: 42px; width: auto; display: inline-block; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; }
.footer__links a { color: var(--gray-400); font-size: 0.8rem; text-decoration: none; transition: color 0.2s; }
.footer__links a:hover { color: var(--white); }
@media (min-width: 768px) {
    .footer { padding: 3rem 2rem; }
    .footer__features { margin: -3rem -2rem 2.5rem; padding: 1.5rem 2rem; }
    .footer__content { flex-wrap: nowrap; text-align: left; }
    .footer__left { flex: 1; }
    .footer__links { justify-content: flex-end; }
}

/* TOAST */
.toast-container {
    position: fixed;
    bottom: 1rem; left: 1rem; right: 1rem;
    z-index: 1100;
    pointer-events: none;
}
@media (min-width: 768px) { .toast-container { left: auto; width: 350px; } }
.toast-merch {
    background: var(--black);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    pointer-events: auto;
    margin-top: 0.5rem;
}
.toast-merch--success { background: var(--success); }
.toast-merch--error { background: var(--danger); }

/* UTILITIES */
.container-merch { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.text-muted-merch { color: var(--gray-500); }
