@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Inter+Tight:wght@500;600;700;800&display=swap');

/* Variables are now centralized in tokens.css */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-surface-soft, #F5F3EF);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

body.storefront-layout {
    background-color: var(--storefront-bg);
    background-image: var(--storefront-glow);
    background-repeat: no-repeat;
    background-size: 100% min(100vh, 1200px);
    background-attachment: fixed;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Base Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
    font-weight: normal;
}

/* Glassmorphism Header — desktop only */
.desktop-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-color);
    letter-spacing: -1px;
    text-transform: uppercase;
}

.logo span {
    color: var(--color-primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

nav ul li a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.2s;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--color-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-wishlist-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 5px;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.header-wishlist-btn:hover {
    color: var(--color-primary);
}

.header-wishlist-icon {
    display: block;
    stroke: currentColor;
    fill: none;
}

.cart-icon-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
    padding: 5px;
}

.cart-icon-btn:hover {
    color: var(--color-primary);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -14px;
    background-color: var(--color-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background-color: var(--color-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-badge[hidden] {
    display: none !important;
}

/* Footer — nền đen streetwear */
.site-footer {
    background: #111111;
    color: #ffffff;
    margin-top: 48px;
}

.site-footer a {
    color: #b8b8b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: #ff2026;
}

.site-footer p,
.site-footer .footer-contact-muted {
    color: #b8b8b8;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 16px;
}

.footer-logo span {
    color: #ff2026;
}

.footer-tagline {
    font-size: 0.9375rem;
    line-height: 1.55;
    margin: 0 0 20px;
    max-width: 280px;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin: 0 0 16px;
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 56px 24px 28px;
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1.25fr;
    gap: 56px;
}

.footer-links,
.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 10px;
}

.footer-links a,
.footer-contact a {
    font-size: 0.9375rem;
    line-height: 1.45;
}

.footer-contact-muted {
    font-size: 0.9375rem;
    line-height: 1.5;
}

.footer-zalo {
    color: #ff2026 !important;
    font-weight: 600;
}

.footer-zalo:hover {
    color: #ff4046 !important;
}

.footer-social-row {
    margin: 0;
    font-size: 0.875rem;
}

.footer-social-text {
    color: #b8b8b8;
}

.footer-social-dot {
    color: #666;
    margin: 0 6px;
}

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 24px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: #888888;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Legacy selectors — giữ tương thích */
footer {
    background-color: #111111;
    border-top: none;
    padding: 0;
    margin-top: 48px;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1.25fr;
    gap: 56px;
}

.footer-brand h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
    color: #fff;
}

.footer-brand p {
    color: #b8b8b8;
    font-size: 0.9375rem;
    max-width: 280px;
    line-height: 1.55;
}

.footer-links h4 {
    font-size: 0.8125rem;
    margin-bottom: 16px;
    color: #ffffff;
    letter-spacing: 0.08em;
}

.footer-links ul li a {
    color: #b8b8b8;
    font-size: 0.9375rem;
}

.footer-links ul li a:hover {
    color: #ff2026;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 30px;
    background-color: var(--text-dark);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, letter-spacing 0.18s ease;
    border-radius: 0; /* Sharp corners */
    text-transform: uppercase;
    box-sizing: border-box;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    letter-spacing: 2px;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
}

.btn-outline:hover {
    background-color: var(--text-color);
    color: #FFFFFF;
}

/* Success notification toast — hidden until showToast() */
.toast-notification {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(12px);
    max-width: min(420px, calc(100vw - 32px));
    padding: 12px 18px;
    background-color: #00cc66;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.4;
    z-index: 1200;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    border-radius: 10px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.toast-notification:not(:empty).active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.toast-notification:empty {
    display: none !important;
}

.toast-notification.error {
    background-color: var(--color-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 600;
}

.label-hint {
    text-transform: none;
    font-weight: 400;
    font-size: 0.8rem;
}

.field-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background-color: var(--dark-grey);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 14px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--color-primary);
    outline: none;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pay-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.pay-option {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    text-transform: none !important;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.pay-option input {
    margin-top: 4px;
    accent-color: var(--color-primary);
}

.pay-option strong {
    display: block;
    font-size: 0.95rem;
}

.pay-option small {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 2px;
}

.bank-hint {
    margin-top: 10px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px dashed var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.header-search input {
    width: 160px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    background: #fff;
}

body.has-pdp-sticky {
    padding-bottom: calc(var(--sticky-bar-h) + env(safe-area-inset-bottom) + var(--content-pad-extra, 24px));
}

@media (max-width: 768px) {
    .header-container {
        padding: 12px 16px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 20px 24px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .form-control,
    select.form-control,
    textarea.form-control {
        font-size: 16px;
        min-height: 48px;
        padding: 12px 14px;
    }

    .pay-option {
        min-height: 48px;
    }

    .btn {
        min-height: 48px;
    }
}
