/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Colors - Modern Orange & Dark Theme */
    --primary-orange: #FF9900;
    --primary-dark: #131921;
    --primary-light: #232F3E;
    
    /* Secondary Colors */
    --accent-blue: #146EB4;
    --accent-teal: #007185;
    --accent-green: #067D62;
    
    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #F7F8F9;
    --gray-100: #EAEDED;
    --gray-200: #D5D9D9;
    --gray-300: #C7CBCC;
    --gray-400: #879196;
    --gray-500: #565959;
    --gray-600: #3F4447;
    --gray-700: #2C3338;
    --gray-800: #1F2426;
    --gray-900: #0F1111;
    
    /* Status Colors */
    --success: #067D62;
    --warning: #F59E0B;
    --error: #DC2626;
    --info: #146EB4;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 5px rgba(15, 17, 17, 0.15);
    --shadow-lg: 0 4px 8px rgba(15, 17, 17, 0.1);
    --shadow-xl: 0 8px 16px rgba(15, 17, 17, 0.15);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Transitions */
    --transition: all 0.2s ease;
}

body {
    font-family: "Amazon Ember", Arial, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==================== HEADER & NAVIGATION ==================== */
.header-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.header-sticky nav {
    background: var(--primary-dark);
    border-bottom: 1px solid var(--gray-800);
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.nav-link:hover {
    border-color: var(--white);
    color: var(--primary-orange);
}

/* Logo Styling */
.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.5px;
}

.logo-text .accent {
    color: var(--primary-orange);
}

.logo-icon {
    background: var(--primary-orange);
    border-radius: var(--radius-md);
    padding: 6px;
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary-orange);
    color: var(--primary-dark);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.cart-icon-link {
    position: relative;
    padding: 8px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: var(--transition);
}

.cart-icon-link:hover {
    border-color: var(--white);
}

.cart-icon-link svg {
    color: var(--white);
}

/* Mobile Menu */
#mobileMenuBtn {
    color: var(--white);
    padding: 8px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: var(--transition);
}

#mobileMenuBtn:hover {
    border-color: var(--white);
}

#mobileMenu {
    background: var(--primary-light);
    border-top: 1px solid var(--gray-700);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--gray-800) 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-section p {
    font-size: 20px;
    color: var(--gray-200);
    margin-bottom: 32px;
}

.hero-badge {
    display: inline-block;
    background: var(--primary-orange);
    color: var(--primary-dark);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    background: var(--primary-orange);
    color: var(--primary-dark);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: #FFA724;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-900);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    border: 1px solid var(--gray-300);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.btn-success {
    background: var(--success);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-success:hover {
    background: #055F4B;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background: var(--error);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-danger:hover {
    background: #B91C1C;
}

/* ==================== BRAND SECTIONS ==================== */
.brand-section {
    margin-bottom: 48px;
}

.brand-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-orange);
}

.brand-logo {
    height: 40px;
    object-fit: contain;
}

.brand-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
}

/* ==================== PRODUCT GRID ==================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-200);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
}

.product-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: var(--white);
    padding: 16px;
}

.product-card .p-4 {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-card p {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-card .text-2xl {
    font-size: 24px;
    font-weight: 700;
    color: var(--error);
}

/* ==================== CART ITEMS ==================== */
.cart-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 16px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.cart-item:hover {
    box-shadow: var(--shadow-md);
}

.cart-item-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: var(--gray-50);
    padding: 8px;
}

/* ==================== QUANTITY CONTROLS ==================== */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-100);
    padding: 4px;
    border-radius: var(--radius-md);
}

.quantity-btn {
    background: var(--white);
    border: 1px solid var(--gray-300);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--gray-900);
}

.quantity-btn:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    padding: 8px;
    font-weight: 600;
    background: var(--white);
    font-size: 14px;
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray-900);
    font-size: 14px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 14px;
    transition: var(--transition);
    background: var(--white);
    color: var(--gray-900);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(0, 113, 133, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

/* ==================== FILTERS ==================== */
.filter-section {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    border: 1px solid var(--gray-200);
}

.filter-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    color: var(--gray-900);
}

.filter-btn:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.filter-btn.active {
    background: var(--primary-orange);
    color: var(--primary-dark);
    border-color: var(--primary-orange);
}

/* ==================== EMPTY STATES ==================== */
.empty-state {
    text-align: center;
    padding: 60px 32px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.empty-state svg {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    opacity: 0.3;
    color: var(--gray-400);
}

.empty-state h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--gray-600);
    font-size: 16px;
}

/* ==================== SUCCESS MESSAGES ==================== */
.success-message {
    background: #D1FAE5;
    border: 2px solid var(--success);
    color: #065F46;
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--primary-dark);
    color: var(--gray-200);
    margin-top: 60px;
    border-top: 1px solid var(--gray-800);
}

footer h3 {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

footer a {
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

footer a:hover {
    color: var(--primary-orange);
}

/* ==================== ORDER SUMMARY ==================== */
.order-summary-box {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    position: sticky;
    top: 100px;
}

.order-summary-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--gray-900);
}

/* ==================== LEGAL CONTENT ==================== */
.legal-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    max-width: 900px;
    margin: 32px auto;
    border: 1px solid var(--gray-200);
}

.legal-content h1 {
    color: var(--gray-900);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.legal-content h2 {
    color: var(--gray-900);
    font-size: 24px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 16px;
}

.legal-content p {
    margin-bottom: 16px;
    color: var(--gray-700);
    line-height: 1.7;
}

.legal-content ul {
    margin-left: 32px;
    margin-bottom: 16px;
    color: var(--gray-700);
}

.legal-content li {
    margin-bottom: 8px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 32px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item-image {
        width: 100%;
        height: 200px;
    }
    
    .brand-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .legal-content {
        padding: 24px;
    }
}

/* ==================== UTILITIES ==================== */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

.gap-4 {
    gap: 16px;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.3s ease;
}

/* ==================== NOTIFICATION ==================== */
.notification {
    position: fixed;
    top: 80px;
    right: 16px;
    background: var(--success);
    color: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    font-weight: 600;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}