﻿/* ============================================
   SIAKA UNIFORMS - PROFESSIONAL CSS
   Brand Colors: Blue #1565C0, Gold #c9a03d, Red #c62828
   ============================================ */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary - Blue (dominant) */
    --navy: #1565C0;
    --navy-light: #1976D2;
    --navy-dark: #0D47A1;
    /* Secondary - Gold */
    --gold: #c9a03d;
    --gold-light: #e8c46a;
    --gold-dark: #a07d2e;
    /* Accent - Red */
    --red: #c62828;
    --red-light: #ef5350;
    --red-dark: #8b0000;
    /* Neutrals */
    --white: #ffffff;
    --gray-dark: #2c2c2c;
    --gray: #5a5a5a;
    --gray-light: #f0f0f0;
    --off-white: #fafafa;
    --success: #2e7d32;
    --danger: #c62828;
    --warning: #e65100;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
}

body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    background: var(--off-white);
    color: var(--gray-dark);
    line-height: 1.5;
}

h1, h2, h3, h4 {
    font-weight: 500;
    letter-spacing: -0.3px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--gold);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

    .nav-menu a {
        text-decoration: none;
        color: var(--gray-dark);
        font-weight: 500;
        font-size: 0.95rem;
        transition: color 0.2s;
        letter-spacing: 0.3px;
    }

        .nav-menu a:hover,
        .nav-menu a.active {
            color: var(--gold);
        }

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 25px;
    overflow: hidden;
    background: var(--gray-light);
    transition: border 0.2s;
}

    .search-bar:focus-within {
        border-color: var(--navy);
    }

    .search-bar input {
        border: none;
        background: transparent;
        padding: 0.45rem 1rem;
        font-size: 0.85rem;
        width: 200px;
        outline: none;
        color: var(--gray-dark);
    }

    .search-bar button {
        background: none;
        border: none;
        padding: 0.45rem 0.75rem;
        cursor: pointer;
        font-size: 1rem;
        color: var(--navy);
    }

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--navy);
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -15px;
    background: var(--gold);
    color: var(--navy);
    border-radius: 50%;
    padding: 2px 7px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 3px solid var(--gold);
}

    .hero h1 {
        font-size: 2.8rem;
        font-weight: 500;
        margin-bottom: 1rem;
        letter-spacing: -0.5px;
    }

    .hero p {
        font-size: 1.1rem;
        max-width: 650px;
        margin: 0 auto 2rem;
        opacity: 0.9;
    }

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-badge {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* ============================================
   CATEGORY BAR (Main Tabs)
   ============================================ */
.category-bar {
    background: var(--white);
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    border-bottom: 1px solid #e0e0e0;
}

.category-btn {
    padding: 0.5rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid transparent;
}

    .category-btn:hover {
        color: var(--navy);
    }

    .category-btn.active {
        color: var(--navy);
        border-bottom: 2px solid var(--navy);
    }

/* ============================================
   SUB CATEGORY BAR
   ============================================ */
.sub-category-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.sub-btn {
    padding: 0.4rem 1.2rem;
    border: 2px solid var(--navy);
    background: transparent;
    color: var(--navy);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 20px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .sub-btn:hover {
        background: var(--navy);
        color: var(--white);
    }

    .sub-btn.active {
        background: var(--gold);
        color: var(--navy);
        border-color: var(--gold);
    }

/* ============================================
   SEARCH RESULTS
   ============================================ */
.search-results-section {
    display: none;
    max-width: 1280px;
    margin: 2rem auto;
    padding: 0 2rem;
}

    .search-results-section.visible {
        display: block;
    }

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-section {
    max-width: 1280px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--navy);
    font-weight: 500;
    letter-spacing: -0.5px;
    border-left: 4px solid var(--gold);
    padding-left: 1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card {
    background: var(--white);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #ececec;
    display: flex;
    flex-direction: column;
    position: relative;
}

    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-hover);
    }

/* Stock Badge */
.stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

    .stock-badge.low {
        background: var(--danger);
        color: white;
    }

    .stock-badge.out {
        background: var(--gray);
        color: white;
    }

.product-image {
    width: 100%;
    height: 200px;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    cursor: pointer;
    overflow: hidden;
}

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-dark);
    cursor: pointer;
}

    .product-title:hover {
        color: var(--navy);
    }

.product-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.4rem;
}

.product-category {
    color: var(--gray);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.product-stock {
    font-size: 0.75rem;
    color: var(--success);
    margin-bottom: 0.75rem;
}

    .product-stock.low-stock {
        color: var(--danger);
        font-weight: 600;
    }

/* Size Selector */
.size-selector {
    margin-bottom: 0.75rem;
}

    .size-selector label {
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--gray);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        display: block;
        margin-bottom: 0.4rem;
    }

.size-options {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.size-btn {
    padding: 0.25rem 0.6rem;
    border: 1px solid #ddd;
    background: var(--white);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: 3px;
    min-width: 32px;
    text-align: center;
}

    .size-btn:hover {
        border-color: var(--navy);
        color: var(--navy);
    }

    .size-btn.selected {
        background: var(--navy);
        color: var(--white);
        border-color: var(--navy);
    }

    .size-btn.unavailable {
        opacity: 0.35;
        cursor: not-allowed;
        text-decoration: line-through;
    }

.add-to-cart-btn {
    width: 100%;
    padding: 0.7rem;
    background: var(--navy);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
}

    .add-to-cart-btn:hover {
        background: var(--gold);
        color: var(--navy);
    }

    .add-to-cart-btn:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

/* ============================================
   PRODUCT DETAIL MODAL
   ============================================ */
.product-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 4000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

    .product-detail-modal.open {
        display: flex;
    }

.product-detail-content {
    background: var(--white);
    max-width: 750px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border-top: 4px solid var(--navy);
    position: relative;
}

.product-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #eee;
}

    .product-detail-header h2 {
        font-size: 1.2rem;
        color: var(--navy);
    }

.close-detail {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

.product-detail-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.product-detail-image {
    height: 300px;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
}

    .product-detail-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.product-detail-info {
    padding: 1.5rem;
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.product-detail-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray);
    margin-bottom: 1rem;
}

.product-detail-description {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.product-detail-stock {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.product-detail-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 1rem;
}

    .product-detail-footer .add-to-cart-btn {
        flex: 1;
        padding: 0.85rem;
    }

/* ============================================
   CART SIDEBAR
   ============================================ */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    height: 100%;
    background: var(--white);
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .cart-sidebar.open {
        right: 0;
    }

.cart-header {
    padding: 1.25rem;
    background: var(--navy);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .cart-header h2 {
        font-size: 1.2rem;
        font-weight: 500;
        margin: 0;
    }

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.8;
}

    .close-cart:hover {
        opacity: 1;
    }

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #ececec;
    gap: 0.5rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 500;
    font-size: 0.9rem;
}

.cart-item-size {
    font-size: 0.75rem;
    color: var(--gray);
    margin-top: 2px;
}

.cart-item-price {
    color: var(--navy);
    font-weight: 600;
    font-size: 0.85rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .cart-item-quantity button {
        width: 28px;
        height: 28px;
        border: 1px solid #ddd;
        background: var(--white);
        cursor: pointer;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.cart-item-remove {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 0.25rem;
    transition: color 0.2s;
}

    .cart-item-remove:hover {
        color: var(--danger);
    }

.cart-footer {
    padding: 1.25rem;
    border-top: 1px solid #ececec;
}

.cart-total {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: right;
    margin-bottom: 1rem;
    color: var(--navy);
}

.checkout-btn {
    width: 100%;
    padding: 0.85rem;
    background: var(--gold);
    color: var(--navy);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s;
}

    .checkout-btn:hover {
        background: var(--gold-dark);
    }

/* ============================================
   MODAL (Checkout)
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    max-width: 480px;
    width: 90%;
    border-top: 4px solid var(--gold);
}

    .modal-content h3 {
        margin-bottom: 1.5rem;
        color: var(--navy);
        font-weight: 500;
    }

    .modal-content input,
    .modal-content select {
        width: 100%;
        padding: 12px;
        margin: 8px 0;
        border: 1px solid #ddd;
        font-size: 0.9rem;
        font-family: inherit;
    }

        .modal-content input:focus,
        .modal-content select:focus {
            outline: none;
            border-color: var(--navy);
        }

.modal-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

    .modal-buttons button {
        flex: 1;
        padding: 12px;
        border: none;
        cursor: pointer;
        font-weight: 500;
        font-family: inherit;
    }

/* Order Confirmation */
.order-confirmation {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.order-confirmation-content {
    background: var(--white);
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    border-top: 4px solid var(--success);
    text-align: center;
}

    .order-confirmation-content .check-icon {
        font-size: 3.5rem;
        margin-bottom: 1rem;
    }

    .order-confirmation-content h2 {
        color: var(--success);
        margin-bottom: 0.5rem;
    }

    .order-confirmation-content p {
        color: var(--gray);
        margin-bottom: 0.5rem;
        font-size: 0.95rem;
    }

.order-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin: 1rem 0;
}

.order-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.85rem;
    text-align: left;
}

    .order-summary-table td {
        padding: 0.4rem 0.5rem;
        border-bottom: 1px solid #eee;
    }

        .order-summary-table td:last-child {
            text-align: right;
            font-weight: 600;
        }

.order-confirm-btn {
    margin-top: 1.5rem;
    padding: 0.85rem 2rem;
    background: var(--navy);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   WHATSAPP BUTTON
   ============================================ */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    cursor: pointer;
    z-index: 1500;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .whatsapp-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(37,211,102,0.5);
    }

    .whatsapp-btn svg {
        width: 30px;
        height: 30px;
        fill: white;
    }

.whatsapp-tooltip {
    position: absolute;
    right: 65px;
    background: var(--gray-dark);
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
}

/* ============================================
   ABOUT US PAGE
   ============================================ */
.about-hero {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 3px solid var(--gold);
}

    .about-hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .about-hero p {
        max-width: 600px;
        margin: 0 auto;
        opacity: 0.9;
    }

.about-section {
    max-width: 1280px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.about-text h2 {
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 1rem;
    border-left: 4px solid var(--gold);
    padding-left: 1rem;
}

.about-text p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-image-box {
    background: var(--gray-light);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-card {
    background: var(--white);
    padding: 1.5rem;
    border-top: 3px solid var(--navy);
    box-shadow: var(--shadow);
    text-align: center;
}

    .value-card .icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .value-card h3 {
        color: var(--navy);
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }

    .value-card p {
        color: var(--gray);
        font-size: 0.85rem;
        line-height: 1.6;
    }

.team-section {
    background: var(--gray-light);
    padding: 3rem 2rem;
    margin-top: 3rem;
    text-align: center;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-info-card {
    background: var(--white);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
}

    .contact-info-card .icon {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .contact-info-card h4 {
        color: var(--navy);
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .contact-info-card p {
        color: var(--gray);
        font-size: 0.9rem;
    }

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background: var(--navy-dark);
    color: var(--white);
    padding: 2.5rem 2rem 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gold);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-section p,
.footer-section a {
    font-size: 0.85rem;
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 0.25rem;
    display: block;
    color: white;
    text-decoration: none;
}

    .footer-section a:hover {
        opacity: 1;
        color: var(--gold);
    }

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.75rem;
    opacity: 0.6;
}

/* ============================================
   ADMIN LOGIN
   ============================================ */
.login-container {
    max-width: 380px;
    margin: 100px auto;
    background: var(--white);
    padding: 2rem;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--gold);
}

    .login-container h2 {
        text-align: center;
        margin-bottom: 2rem;
        color: var(--navy);
        font-weight: 500;
    }

    .login-container input {
        width: 100%;
        padding: 12px;
        margin: 10px 0;
        border: 1px solid #ddd;
        font-family: inherit;
    }

        .login-container input:focus {
            outline: none;
            border-color: var(--navy);
        }

    .login-container button {
        width: 100%;
        padding: 12px;
        background: var(--navy);
        color: var(--white);
        border: none;
        cursor: pointer;
        font-weight: 500;
        margin-top: 1rem;
        font-family: inherit;
    }

        .login-container button:hover {
            background: var(--gold);
            color: var(--navy);
        }

/* ============================================
   ADMIN TABLE
   ============================================ */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    font-size: 0.85rem;
}

    .admin-table th,
    .admin-table td {
        border: 1px solid #e0e0e0;
        padding: 10px 12px;
        text-align: left;
    }

    .admin-table th {
        background: var(--navy);
        color: var(--white);
        font-weight: 500;
    }

    .admin-table tr:hover {
        background: #f9f9f9;
    }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .search-bar input {
        width: 140px;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .hero h1 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .category-bar {
        gap: 0.25rem;
        padding: 0.5rem 1rem;
    }

    .category-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .product-detail-body {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .whatsapp-btn {
        bottom: 1rem;
        right: 1rem;
    }
}
/* ============================================
   THREE-COLOR ADDITIONS
   ============================================ */

/* Hero - three color border */
.hero {
    border-bottom: 4px solid transparent;
    border-image: linear-gradient(90deg, #0D47A1, #c9a03d, #c62828) 1;
}

/* Hero badges - use all three colors */
.hero-badge:nth-child(1) {
    background: rgba(13,71,161,0.6);
    border-color: rgba(255,255,255,0.4);
}

.hero-badge:nth-child(2) {
    background: rgba(198,40,40,0.5);
    border-color: rgba(255,255,255,0.4);
}

.hero-badge:nth-child(3) {
    background: rgba(201,160,61,0.5);
    border-color: rgba(255,255,255,0.4);
}

.hero-badge:nth-child(4) {
    background: rgba(13,71,161,0.4);
    border-color: rgba(255,255,255,0.4);
}

/* Header - three color bottom border */
.main-header {
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #1565C0, #c9a03d, #c62828) 1;
}

/* Section title - gold left border stays */
.section-title {
    border-left: 4px solid var(--gold);
}

/* Category active - red underline */
.category-btn.active {
    color: var(--red);
    border-bottom: 2px solid var(--red);
}

/* Sub buttons - red active state */
.sub-btn.active {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

/* Checkout button - red */
.checkout-btn {
    background: var(--red);
    color: white;
}

    .checkout-btn:hover {
        background: var(--red-dark);
    }

/* Add to cart hover - gold */
.add-to-cart-btn:hover {
    background: var(--gold);
    color: var(--navy);
}

/* Footer - three color top border */
.main-footer {
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, #1565C0, #c9a03d, #c62828) 1;
}

/* Cart header - use gold accent */
.cart-count {
    background: var(--red);
    color: white;
}

/* Value cards - alternating colors */
.value-card:nth-child(1) {
    border-top-color: var(--navy);
}

.value-card:nth-child(2) {
    border-top-color: var(--gold);
}

.value-card:nth-child(3) {
    border-top-color: var(--red);
}

.value-card:nth-child(4) {
    border-top-color: var(--navy);
}

/* About hero - three color border */
.about-hero {
    border-bottom: 4px solid transparent;
    border-image: linear-gradient(90deg, #0D47A1, #c9a03d, #c62828) 1;
}

/* Order confirmation - gold border */
.order-confirmation-content {
    border-top: 4px solid var(--gold);
}

/* Product detail modal - red border */
.product-detail-content {
    border-top-color: var(--red);
}

/* Login container - gold border */
.login-container {
    border-top-color: var(--gold);
}

/* Modal content - red border */
.modal-content {
    border-top-color: var(--red);
}

/* Place order button */
#checkout-modal .modal-buttons button:last-child {
    background: var(--red) !important;
    color: white !important;
}

/* Nav active link */
.nav-menu a.active {
    color: var(--red);
}

/* Logo text color */
.logo span {
    color: var(--navy);
}

/* WhatsApp tooltip */
.whatsapp-btn {
    box-shadow: 0 4px 16px rgba(37,211,102,0.5);
}

/* Size selected state */
.size-btn.selected {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

/* Stock badge - already red, keep */
.stock-badge.low {
    background: var(--red);
}

/* Three color divider utility */
.color-divider {
    height: 3px;
    background: linear-gradient(90deg, var(--navy), var(--gold), var(--red));
    margin: 2rem 0;
    border: none;
}
/* ============================================
   HERO BADGES - CLICKABLE
   ============================================ */
.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-badge {
    padding: 0.6rem 1.4rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s ease;
    letter-spacing: 0.3px;
    border: 2px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.12);
    color: white;
    position: relative;
    overflow: hidden;
}

    .hero-badge::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: var(--red);
        transform: scaleX(0);
        transition: transform 0.25s ease;
    }

    .hero-badge:hover {
        background: var(--gold);
        border-color: var(--gold);
        color: var(--navy-dark);
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(201,160,61,0.4);
    }

        .hero-badge:hover::before {
            transform: scaleX(1);
        }

    .hero-badge:active {
        transform: translateY(-1px);
    }

/* ============================================
   REFINED COLOR BALANCE
   ============================================ */

/* Red as accent lines - not dominant */
.main-header {
    border-bottom: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-bottom: 3px solid var(--navy);
}

/* Thin red line under logo area */
.nav-container::after {
    display: none;
}

/* Gold for section titles */
.section-title {
    border-left: 4px solid var(--gold);
    color: var(--navy);
}

/* Red accent on product card top on hover */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
    z-index: 2;
}

.product-card:hover::before {
    transform: scaleX(1);
}

/* Active nav - gold underline */
.nav-menu a.active {
    color: var(--gold);
    position: relative;
}

    .nav-menu a.active::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--gold);
    }

/* Category active - navy with gold underline */
.category-btn.active {
    color: var(--navy);
    border-bottom: 2px solid var(--gold);
}

/* Sub btn active - navy bg gold text */
.sub-btn.active {
    background: var(--navy);
    color: var(--gold);
    border-color: var(--navy);
}

/* Cart count - gold */
.cart-count {
    background: var(--gold);
    color: var(--navy-dark);
}

/* Checkout btn - navy with gold text */
.checkout-btn {
    background: var(--navy);
    color: var(--gold);
    font-weight: 700;
}

    .checkout-btn:hover {
        background: var(--navy-dark);
        color: var(--gold-light);
    }

/* Add to cart - navy default */
.add-to-cart-btn {
    background: var(--navy);
    color: white;
    position: relative;
    overflow: hidden;
}

    .add-to-cart-btn::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--red);
    }

    .add-to-cart-btn:hover {
        background: var(--gold);
        color: var(--navy-dark);
        font-weight: 700;
    }

/* Size selected - gold */
.size-btn.selected {
    background: var(--gold);
    color: var(--navy-dark);
    border-color: var(--gold);
    font-weight: 700;
}

/* Footer */
.main-footer {
    background: var(--navy-dark);
    border-top: 4px solid var(--gold);
}

/* Hero gradient border bottom */
.hero {
    border-bottom: none;
    position: relative;
}

    .hero::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, var(--navy-dark), var(--gold) 50%, var(--red));
    }

/* Value cards - first blue, second gold, third red, fourth blue */
.value-card:nth-child(1) {
    border-top: 3px solid var(--navy);
}

.value-card:nth-child(2) {
    border-top: 3px solid var(--gold);
}

.value-card:nth-child(3) {
    border-top: 3px solid var(--red);
}

.value-card:nth-child(4) {
    border-top: 3px solid var(--navy);
}

/* Red only on low stock and badges - makes sense */
.stock-badge.low {
    background: var(--red);
}

.product-stock.low-stock {
    color: var(--red);
}

/* Modal borders */
.modal-content {
    border-top: 4px solid var(--gold);
}

.product-detail-content {
    border-top: 4px solid var(--navy);
}

.order-confirmation-content {
    border-top: 4px solid var(--gold);
}

.login-container {
    border-top: 4px solid var(--gold);
}

/* Place order button - red (action) */
.modal-buttons button:last-child {
    background: var(--red) !important;
    color: white !important;
}

/* ============================================
   FINAL COLOR REFINEMENTS
   ============================================ */

/* Section divider lines - bright gold */
.products-section {
    border-top: 2px solid #e8b84b;
}

/* Section title left border - bright gold */
.section-title {
    border-left: 5px solid #e8b84b;
}

/* Hero gradient bottom line - bright gold */
.hero::after {
    background: linear-gradient(90deg, #e8b84b, #c9a03d, #e8b84b);
}

/* Category bar bottom border - bright gold */
.category-bar {
    border-bottom: 2px solid #e8b84b;
}

/* Sub category buttons - gold colored, red on hover */
.sub-btn {
    border: 2px solid #e8b84b;
    color: #a07d2e;
    background: rgba(232,184,75,0.08);
}

    .sub-btn:hover {
        background: var(--red);
        color: white;
        border-color: var(--red);
    }

    .sub-btn.active {
        background: #e8b84b;
        color: var(--navy-dark);
        border-color: #e8b84b;
        font-weight: 700;
    }

/* Main category buttons - gold colored, red on hover */
.category-btn {
    color: #a07d2e;
    border-bottom: 2px solid transparent;
}

    .category-btn:hover {
        color: var(--red);
        border-bottom: 2px solid var(--red);
    }

    .category-btn.active {
        color: #a07d2e;
        border-bottom: 3px solid #e8b84b;
        font-weight: 600;
    }

/* Header bottom line - bright gold */
.main-header {
    border-bottom: 3px solid #e8b84b;
}

/* Footer top line - bright gold */
.main-footer {
    border-top: 3px solid #e8b84b;
}

/* Product card top line on hover - bright gold */
.product-card::before {
    background: #e8b84b;
}

/* Add to cart - gold border, red on hover */
.add-to-cart-btn {
    border-bottom: 3px solid #e8b84b;
}

    .add-to-cart-btn:hover {
        background: var(--red);
        color: white;
    }

/* Checkout button - gold bg, red on hover */
.checkout-btn {
    background: #e8b84b;
    color: var(--navy-dark);
    font-weight: 700;
}

    .checkout-btn:hover {
        background: var(--red);
        color: white;
    }

/* Size btn - gold border */
.size-btn {
    border: 1px solid #e8b84b;
    color: #a07d2e;
}

    .size-btn:hover {
        border-color: var(--red);
        color: var(--red);
    }

    .size-btn.selected {
        background: #e8b84b;
        color: var(--navy-dark);
        border-color: #e8b84b;
        font-weight: 700;
    }

/* About page value card borders */
.value-card:nth-child(1) {
    border-top: 3px solid #e8b84b;
}

.value-card:nth-child(2) {
    border-top: 3px solid var(--red);
}

.value-card:nth-child(3) {
    border-top: 3px solid #e8b84b;
}

.value-card:nth-child(4) {
    border-top: 3px solid var(--red);
}

/* Modal borders - gold */
.modal-content {
    border-top: 4px solid #e8b84b;
}

.login-container {
    border-top: 4px solid #e8b84b;
}

.order-confirmation-content {
    border-top: 4px solid #e8b84b;
}

/* Place order - red (action) */
.modal-buttons button:last-child {
    background: var(--red) !important;
    color: white !important;
}

/* Cart count badge - gold */
.cart-count {
    background: #e8b84b;
    color: var(--navy-dark);
    font-weight: 800;
}

/* Hero badges - gold by default, red on hover */
.hero-badge {
    background: #e8b84b !important;
    color: #0D47A1 !important;
    border-color: #e8b84b !important;
    font-weight: 600;
}

    .hero-badge:hover {
        background: #c62828 !important;
        color: white !important;
        border-color: #c62828 !important;
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(198,40,40,0.35);
    }

/* All buttons - blue default, gold on hover */
.add-to-cart-btn {
    background: #1565C0 !important;
    color: white !important;
    border-bottom: 3px solid #e8b84b !important;
}

    .add-to-cart-btn:hover {
        background: #e8b84b !important;
        color: #0D47A1 !important;
    }

.checkout-btn {
    background: #1565C0 !important;
    color: white !important;
}

    .checkout-btn:hover {
        background: #e8b84b !important;
        color: #0D47A1 !important;
    }

.category-btn {
    color: #1565C0 !important;
}

    .category-btn:hover {
        color: #e8b84b !important;
        border-bottom: 2px solid #e8b84b !important;
    }

    .category-btn.active {
        color: #1565C0 !important;
        border-bottom: 3px solid #e8b84b !important;
    }

.sub-btn {
    border: 2px solid #1565C0 !important;
    color: #1565C0 !important;
    background: transparent !important;
}

    .sub-btn:hover {
        background: #e8b84b !important;
        color: #0D47A1 !important;
        border-color: #e8b84b !important;
    }

    .sub-btn.active {
        background: #1565C0 !important;
        color: white !important;
        border-color: #1565C0 !important;
    }

.size-btn {
    border: 1px solid #1565C0 !important;
    color: #1565C0 !important;
}

    .size-btn:hover {
        background: #e8b84b !important;
        color: #0D47A1 !important;
        border-color: #e8b84b !important;
    }

    .size-btn.selected {
        background: #1565C0 !important;
        color: white !important;
        border-color: #1565C0 !important;
    }

.modal-buttons button:first-child {
    background: #999 !important;
    color: white !important;
}

.modal-buttons button:last-child {
    background: #1565C0 !important;
    color: white !important;
}

    .modal-buttons button:last-child:hover {
        background: #e8b84b !important;
        color: #0D47A1 !important;
    }

.order-confirm-btn {
    background: #1565C0 !important;
    color: white !important;
}

    .order-confirm-btn:hover {
        background: #e8b84b !important;
        color: #0D47A1 !important;
    }

.login-container button {
    background: #1565C0 !important;
    color: white !important;
}

    .login-container button:hover {
        background: #e8b84b !important;
        color: #0D47A1 !important;
    }

/* ================= POLISH: ROUNDED CORNERS SITE-WIDE ================= */
.product-card, .modal-content, .cart-sidebar, .order-confirmation-content,
.product-detail-content, .category-btn, .sub-btn, .size-btn,
.add-to-cart-btn, .checkout-btn, .order-confirm-btn, .hero-badge,
.search-bar, .search-bar input, .search-bar button,
input, textarea, select, button, .stock-badge {
    border-radius: 10px !important;
}

.product-card {
    overflow: hidden;
}

.product-image {
    border-radius: 10px 10px 0 0 !important;
}

.logo img {
    border-radius: 50% !important;
}

/* ================= POLISH: CENTERED FOOTER ================= */
.footer-content {
    text-align: center !important;
}

    .footer-content .footer-section {
        text-align: center !important;
    }

.footer-section p, .footer-section a {
    justify-content: center !important;
    display: block;
}

/* Footer QR sizing */
#footer-qr img, #footer-qr canvas {
    display: block;
    width: 90px !important;
    height: 90px !important;
    border-radius: 6px;
    margin: 0 auto;
}