@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/montserrat/montserrat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- CSS VARIABLES & RESET --- */
:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --footer-bg: #1c1c1c;
    --footer-text: #ffffff;
    --accent-gray: #f4f4f4;
    --btn-bg: #1a1a1a;
    --btn-text: #ffffff;
    --font-main: 'Montserrat', sans-serif;
    --max-width: 1440px;
    --header-height: 80px;
    --sky-blue: #0ea5e9;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease, color 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* --- UTILITIES --- */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.text-center {
    text-align: center;
}

.w-100 {
    width: 100%;
}

/* --- HEADER --- */
.header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: none;
    z-index: 1000;
    border-bottom: 1px solid #f0f0f0;
}

.logo {
    font-weight: 900;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: -1.5px;
    flex: 1;
    z-index: 1002;
    position: relative;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 30px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 40px;
    flex: 2;
    justify-content: center;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Active state for current page */
.nav-link.active {
    color: #dc3545;
}

/* Language Switcher Dropdown */
.lang-switcher-dropdown {
    position: relative;
    margin-right: 15px;
}

.lang-switcher-toggle {
    min-width: 92px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #111;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    user-select: none;
    list-style: none;
}

.lang-switcher-toggle::-webkit-details-marker {
    display: none;
}

.lang-switcher-dropdown[open] .lang-switcher-toggle {
    border-color: #000;
}

.lang-chevron {
    margin-left: auto;
    font-size: 0.62rem;
    opacity: 0.7;
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 110px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    display: grid;
    gap: 2px;
    z-index: 1010;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.lang-option:hover {
    background: #f6f6f6;
    opacity: 1;
}

.lang-option.is-active {
    background: #f1f1f1;
}

.flag-badge {
    width: 16px;
    height: 11px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    flex-shrink: 0;
}

.flag-en {
    background:
        linear-gradient(to bottom, #b22234 0 16.66%, #fff 16.66% 33.33%, #b22234 33.33% 50%, #fff 50% 66.66%, #b22234 66.66% 83.33%, #fff 83.33% 100%),
        linear-gradient(to right, #3c3b6e 0 40%, transparent 40% 100%);
}

.flag-id {
    background: linear-gradient(to bottom, #d81f26 0 50%, #fff 50% 100%);
}

.flag-ms {
    background:
        linear-gradient(to bottom, #cc0001 0 33.33%, #fff 33.33% 66.66%, #0b4ea2 66.66% 100%);
}

.header-utils {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
    justify-content: flex-end;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 1002;
    position: relative;
}

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #dc3545;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.currency-flag {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.flag-icon {
    width: 20px;
    height: 14px;
    background: linear-gradient(to bottom, #FF0000 50%, #FFFFFF 50%);
    border: 1px solid #eee;
}

.mobile-toggle {
    display: none;
    z-index: 1002;
    cursor: pointer;
    position: relative;
}

/* --- HERO --- */
.hero {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--header-height));
    min-height: 500px;
    background-color: #000;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.shop-btn {
    background-color: var(--btn-bg);
    color: var(--btn-text);
    padding: 16px 40px;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), background-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-block;
}

.shop-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    background-color: #000;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 80px 40px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.icon-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.icon-placeholder {
    height: 32px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    min-width: 50px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.icon-placeholder:hover {
    background-color: #fff;
    color: #000;
}

/* --- COMING SOON --- */
.timer-container {
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 8px;
    display: inline-flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.timer-item {
    text-align: center;
    min-width: 60px;
}

.timer-value {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    display: block;
    line-height: 1.1;
}

.timer-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }

    .header {
        padding: 0 20px;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        transform: translateY(-100%);
        z-index: 1001;
        gap: 30px;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .header-utils {
        gap: 15px;
    }

    .lang-switcher-dropdown {
        margin-right: 0;
    }

    .lang-switcher-toggle {
        min-width: 82px;
        height: 32px;
        padding: 0 8px;
        font-size: 0.68rem;
    }

    .currency-flag span {
        display: none;
    }

    /* Adjust grids to stack */
    .catalog-wrapper,
    .checkout-layout,
    .product-detail-layout {
        /* New class we'll add */
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .filter-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }

    .hero-h1 {
        /* New class for h1 in hero */
        font-size: 2.5rem !important;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 500px;
        height: auto;
    }

    .hero-overlay {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .footer {
        padding-top: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }

    .timer-container {
        gap: 15px;
        padding: 20px;
        width: 100%;
    }

    .timer-value {
        font-size: 2rem;
    }

    /* Cart Table Responsive */
    .cart-items {
        grid-template-columns: 1fr !important;
    }

    .cart-table-header {
        display: none !important;
    }

    /* We will add this class */
    .cart-item-row {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        position: relative;
        padding-bottom: 20px;
        margin-bottom: 20px;
        border-bottom: 1px solid #eee;
    }

    .cart-item-row>div {
        text-align: left !important;
        justify-content: flex-start !important;
    }

    .cart-header-grid {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .shop-btn {
        padding: 14px 25px;
        font-size: 0.8rem;
        width: 100%;
        text-align: center;
    }

    .container {
        padding: 0 15px;
    }

    .product-grid {
        grid-template-columns: 1fr !important;
    }

    /* Force 1 column on very small */
    .header {
        padding: 0 15px;
    }
}

.address-select-style {
    border: 0px !important;
    padding: 0px !important;
}