/* Homepage Specific Styles - Black & White Minimalism */

/* Navigation - Clean & Functional */
nav {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--accent-white);
    font-family: var(--font-heading);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-btn {
    padding: 0.7rem 1.8rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-btn-outline {
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
}

.nav-btn-outline:hover {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn-primary {
    background: var(--accent-white);
    color: var(--text-inverse) !important;
    font-weight: 600;
}

.nav-btn-primary:hover {
    background: var(--accent-light-gray);
    transform: translateY(-1px);
}

/* Hero Section - Bold Typography */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 85vh;
    padding: 2rem 0 6rem 0;
    position: relative;
}

.hero-content {
    flex: 1;
    padding-right: 4rem;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.05;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    color: var(--accent-white);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 540px;
    line-height: 1.7;
    font-weight: 400;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.hero-image {
    flex: 1;
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-strong);
    border: 1px solid var(--border-subtle);
}

/* Features Section */
.features {
    padding: 8rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-white);
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-medium);
    transform: translateY(-4px);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
    flex-grow: 1;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-white);
    margin: 1rem 0 2rem 0;
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
}

/* Footer */
footer {
    padding: 6rem 0 3rem 0;
    border-top: 1px solid var(--border-subtle);
    margin-top: 4rem;
    background: var(--bg-subtle);
}

.trust-features {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border-subtle);
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    margin-right: 2rem;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* Products Section */
.products-section {
    padding: 8rem 0;
    background: var(--bg-subtle);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-medium);
    box-shadow: var(--shadow-medium);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #0a0a0a;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-quick-view {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    text-transform: uppercase;
}

.btn-quick-view:hover {
    background: var(--accent-white);
    color: var(--text-inverse);
    border-color: var(--accent-white);
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
    min-height: 2.5rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-white);
    font-family: var(--font-heading);
}

.btn-add-cart {
    padding: 0.6rem 1.2rem;
    background: var(--accent-white);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-inverse);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.btn-add-cart:hover {
    background: var(--accent-light-gray);
    transform: translateY(-1px);
}

.view-more-container {
    text-align: center;
}

/* Cart Button in Nav */
.cart-btn {
    position: relative;
    padding: 0.7rem 1rem !important;
    background: transparent !important;
    border: 1px solid var(--border-medium) !important;
    border-radius: var(--radius-sm) !important;
}

.cart-btn:hover {
    border-color: var(--border-strong) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-white);
    color: var(--text-inverse);
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
}

/* Cart Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.cart-modal {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-header h2 {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: var(--text-primary);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.empty-cart {
    text-align: center;
    color: var(--text-secondary);
    padding: 3rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--text-primary);
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-quantity button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
}

.cart-item-quantity button:hover {
    background: var(--accent-white);
    color: var(--text-inverse);
    border-color: transparent;
}

.cart-item-remove {
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    opacity: 0.7;
}

.cart-item-remove:hover {
    opacity: 1;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cart-total span:last-child {
    color: var(--accent-white);
}

.btn-checkout {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

/* Notifications */
.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 2000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-color: #22c55e;
}

.notification-success i {
    color: #22c55e;
}

.notification-error {
    border-color: #ef4444;
}

.notification-error i {
    color: #ef4444;
}

.notification-warning {
    border-color: #f59e0b;
}

.notification-warning i {
    color: #f59e0b;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    /* Mobile Navigation */
    .navbar {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 999;
        border-left: 1px solid var(--border-subtle);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-subtle);
        font-size: 1rem;
    }

    .nav-links a.nav-btn {
        width: 100%;
        text-align: center;
        margin-top: 1rem;
    }

    /* Mobile Overlay */
    .mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 998;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mobile-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Close button in mobile menu */
    .nav-links::before {
        content: '×';
        position: absolute;
        top: 1.5rem;
        right: 2rem;
        font-size: 2.5rem;
        color: var(--text-primary);
        cursor: pointer;
        line-height: 1;
    }

    /* Hero Section Mobile */
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
        /* Increased to clear fixed header */
        min-height: auto;
        padding-bottom: 4rem;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }

    /* Show Hero Image on Mobile */
    .hero-image {
        display: block;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
        max-width: 100%;
    }

    .cta-group {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-group .btn {
        width: 100%;
    }

    /* Products Grid Mobile */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Section Padding Mobile */
    .features,
    .products-section {
        padding: 4rem 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    /* Cards Mobile */
    .card {
        padding: 2rem;
    }

    /* Container Mobile */
    .container {
        padding: 0 1.5rem;
    }

    /* Footer Mobile */
    footer {
        padding: 4rem 0 2rem;
    }

    .trust-features {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links a {
        margin-right: 0;
    }

    /* Notification Mobile */
    .notification {
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
    }
}