/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0066FF;
    --primary-blue-dark: #0052CC;
    --carbon-black: #0A0A0A;
    --titanium-gray: #2E2E2E;
    --signal-white: #FFFFFF;
    --accent-green: #00FF9A;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --red-500: #EF4444;
    --green-500: #10B981;
    --orange-500: #F59E0B;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--carbon-black);
    background: var(--signal-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1 { font-size: 2.5rem; font-weight: 600; line-height: 1.2; }
h2 { font-size: 2rem; font-weight: 600; line-height: 1.3; }
h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.4; }
h4 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
p { font-size: 1rem; font-weight: 400; line-height: 1.5; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--signal-white);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background: var(--primary-blue-dark);
    border-color: var(--primary-blue-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--signal-white);
}

.btn-white {
    background: var(--signal-white);
    color: var(--primary-blue);
}

.btn-white:hover {
    background: var(--gray-100);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    font-size: 20px;
    color: var(--carbon-black);
    position: relative;
}

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--signal-white);
    border-bottom: 1px solid var(--gray-200);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    background: var(--primary-blue);
    padding: 8px;
    border-radius: 8px;
    color: var(--signal-white);
    font-size: 24px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--carbon-black);
}

.logo-subtitle {
    font-size: 12px;
    color: var(--titanium-gray);
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a {
    color: var(--carbon-black);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--primary-blue);
}

.desktop-nav {
    display: none;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--gray-200);
}

.mobile-nav.active {
    display: flex;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-blue);
    color: var(--signal-white);
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: block;
}

/* ===== CART SIDEBAR ===== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 60;
    display: none;
}

.cart-overlay.active {
    display: block;
}

.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: var(--signal-white);
    z-index: 70;
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
}

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

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
}

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

.empty-cart {
    text-align: center;
    color: var(--gray-600);
    padding: 40px 20px;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
}

.cart-item-image {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
}

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

.cart-item-name {
    font-size: 14px;
    color: var(--carbon-black);
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--primary-blue);
    font-size: 14px;
    margin-bottom: 8px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--gray-300);
    background: var(--signal-white);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.qty-btn:hover {
    background: var(--gray-100);
}

.remove-btn {
    background: transparent;
    border: none;
    color: var(--red-500);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 12px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--gray-200);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 18px;
}

.total-amount {
    color: var(--primary-blue);
    font-weight: 600;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--carbon-black) 0%, var(--titanium-gray) 50%, var(--carbon-black) 100%);
    color: var(--signal-white);
    padding: 120px 0;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1696150874769-ea4f30453c2c?w=1200');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-text {
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-item i {
    color: var(--accent-green);
    font-size: 24px;
}

/* ===== SECTIONS ===== */
.why-section,
.products-section,
.warranty-section {
    padding: 80px 0;
}

.why-section {
    background: var(--signal-white);
}

.products-section {
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    color: var(--titanium-gray);
    font-size: 1.125rem;
}

/* ===== FEATURES GRID ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 32px;
    background: var(--signal-white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--signal-white);
    font-size: 32px;
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--titanium-gray);
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.product-card {
    background: var(--signal-white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: var(--gray-100);
}

.product-content {
    padding: 24px;
}

.product-category {
    font-size: 14px;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.product-name {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.product-description {
    color: var(--titanium-gray);
    font-size: 14px;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 1.5rem;
    color: var(--carbon-black);
}

.add-to-cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== WHOLESALE CTA ===== */
.wholesale-cta {
    background: var(--primary-blue);
    color: var(--signal-white);
    padding: 80px 0;
    text-align: center;
}

.wholesale-cta h2 {
    margin-bottom: 16px;
}

.wholesale-cta p {
    font-size: 1.125rem;
    margin-bottom: 32px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.wholesale-cta .btn-outline {
    color: var(--signal-white);
    border-color: var(--signal-white);
}

.wholesale-cta .btn-outline:hover {
    background: var(--signal-white);
    color: var(--primary-blue);
}

/* ===== WARRANTY SECTION ===== */
.warranty-section {
    background: var(--signal-white);
}

.warranty-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.warranty-icon {
    font-size: 64px;
    color: var(--primary-blue);
    margin-bottom: 24px;
}

.warranty-content h2 {
    margin-bottom: 16px;
}

.warranty-content p {
    font-size: 1.125rem;
    color: var(--titanium-gray);
    margin-bottom: 32px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--carbon-black);
    color: var(--signal-white);
    padding: 48px 0 24px;
}

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

.footer-column h4 {
    margin-bottom: 16px;
    font-size: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-blue);
}

.footer-column i {
    margin-right: 8px;
    color: var(--accent-green);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
}

.footer-certifications {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
}

@media (max-width: 767px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-badges {
        flex-direction: column;
        gap: 16px;
    }
    
    .products-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
