:root {
    --primary-color: #000000;
    --secondary-color: #ffffff;
    --accent-color: #ff0000;
    --text-color: #111111;
    --text-muted: #666666;
    --bg-light: #f5f5f5;
    --border-color: #e5e5e5;
    --container-width: 1200px;
    --header-height: 100px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background: #333;
}

.btn-white {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.btn-white:hover {
    background: #eee;
}

.btn-black {
    background: #000;
    color: #fff;
}

.btn-full {
    width: 100%;
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: white;
}

.top-bar {
    background: var(--bg-light);
    padding: 8px 0;
    font-size: 0.75rem;
}

.top-bar-links {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.navbar {
    height: 90px;
    border-bottom: 1px solid #222;
    display: flex;
    align-items: center;
    background: #000;
    color: white;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -1px;
    color: white;
}

.brand-logo {
    height: 65px;
    width: auto;
    object-fit: contain;
    display: block;
}

.brand-logo-footer {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 10px 0;
    position: relative;
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    padding: 8px 15px;
    border-radius: 4px;
}

.search-box input {
    border: none;
    background: transparent;
    margin-left: 10px;
    outline: none;
    width: 150px;
    font-size: 0.85rem;
}

.action-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Main Content */
main {
    margin-top: 106px;
    /* top-bar + navbar */
}

/* Hero */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.flag-text {
    background: linear-gradient(135deg,
            #FF9933 0%,
            #FF9933 35%,
            #FFFFFF 35%,
            #FFFFFF 65%,
            #128807 65%,
            #128807 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
    filter: url(#paint-stroke) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    font-weight: 900;
    text-transform: uppercase;
    transform: rotate(-1deg);
    padding: 5px 15px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Categories */
.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin: 60px 0 30px;
    text-align: center;
    text-transform: uppercase;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-card {
    height: 450px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.category-overlay {
    position: relative;
    z-index: 2;
    color: white;
    width: 100%;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    transition: var(--transition);
}

.category-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.category-card:hover::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    position: relative;
    cursor: pointer;
}

.product-image {
    aspect-ratio: 4/5;
    min-height: 350px;
    background-color: #f0f0f0;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-price {
    font-weight: 700;
    color: var(--text-color);
}

.quick-add {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px;
    text-align: center;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.8rem;
}

.product-card:hover .quick-add {
    bottom: 0;
}

/* Footer */
#main-footer {
    background: #000;
    color: white;
    padding: 80px 0 0;
    margin-top: 100px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-brand p {
    margin-top: 20px;
    color: #ccc;
    max-width: 350px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.link-group h4 {
    text-transform: uppercase;
    font-family: var(--font-heading);
    margin-bottom: 20px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.link-group ul li {
    margin-bottom: 12px;
}

.link-group ul li a {
    color: #bbb;
    font-size: 0.9rem;
}

.link-group ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding: 30px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #888;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #888;
    transition: var(--transition);
}

.social-links a:hover {
    color: white;
}

/* Sidebar & Cart */
.sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: white;
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    right: 0;
}

.sidebar-header {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.close-sidebar {
    background: none;
    border: none;
    cursor: pointer;
}

#cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-muted);
    margin-top: 50px;
}

.sidebar-footer {
    padding: 25px;
    border-top: 1px solid var(--border-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
}

#overlay.active {
    display: block;
}

/* Responsive */
@media (max-width: 992px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}