/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

:root {
    --primary: #3a86ff;
    --primary-dark: #2667cc;
    --secondary: #ff006e;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --success: #38b000;
    --warning: #ffbe0b;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --radius: 10px;
    --transition: all 0.3s ease;
    --navbar-height: 70px;
    --mobile-search-height: 60px;
}

body {
    background-color: #f5f7fb;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Preloader Styles --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px auto;
}

.loader-text {
    font-weight: 700;
    color: var(--dark);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.loader-text span {
    color: var(--primary);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide Scrollbar when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Product Image Slider Styles */
.product-slider-container {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

.product-main-image {
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    background-color: #eee;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-main-image img:hover {
    transform: scale(1.05);
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 0;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    opacity: 0.7;
    background-color: #eee;
}

.product-thumbnail:hover {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-thumbnail.active {
    border-color: var(--primary);
    opacity: 1;
    box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none;
}

.slider-nav button {
    pointer-events: all;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slider-nav button:hover {
    background-color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Product Detail Modal */
.product-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1100;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-detail-modal.active {
    display: flex;
    opacity: 1;
}

.product-detail-content {
    background-color: white;
    border-radius: var(--radius);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.product-detail-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    color: var(--dark);
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-detail-close:hover {
    background-color: var(--primary);
    color: white;
}

.product-detail-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

@media (max-width: 768px) {
    .product-detail-body {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .product-main-image {
        height: 300px;
    }
    
    .product-thumbnail {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    .product-main-image {
        height: 250px;
    }
    
    .product-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .slider-nav button {
        width: 35px;
        height: 35px;
    }
}

.product-detail-info h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.product-detail-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.product-detail-description {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.product-detail-specs {
    margin-bottom: 30px;
}

.product-detail-specs h3 {
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 1.3rem;
}

.product-detail-specs ul {
    list-style: none;
    padding-left: 0;
}

.product-detail-specs li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.product-detail-specs li i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 0.9rem;
}

.product-detail-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.product-detail-actions .btn-add-to-cart,
.product-detail-actions .btn-buy-now {
    flex: 1;
    min-width: 200px;
    padding: 16px 25px;
    font-size: 1.1rem;
}

/* Payment Method Styles */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    background-color: white;
}

.payment-method:hover {
    border-color: var(--primary);
    background-color: #f8fafd;
}

.payment-method.active {
    border-color: var(--primary);
    background-color: #f0f5ff;
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.1);
}

.payment-method-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.payment-method-icon.credit {
    background: linear-gradient(135deg, #3a86ff, #2667cc);
}

.payment-method-icon.paypal {
    background: linear-gradient(135deg, #003087, #009cde);
}

.payment-method-icon.cod {
    background: linear-gradient(135deg, #38b000, #2d9100);
}

.payment-method-info h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.payment-method-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* PayPal Container */
.paypal-container {
    display: none;
    margin-top: 20px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: var(--radius);
    border: 1px solid #e0e0e0;
}

.paypal-container.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.paypal-button {
    background-color: #003087;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    margin-top: 15px;
}

.paypal-button:hover {
    background-color: #002a75;
    transform: translateY(-2px);
}

/* Order Confirmation Modal */
.order-confirmation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1200;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.order-confirmation-modal.active {
    display: flex;
    opacity: 1;
}

.order-confirmation-content {
    background-color: white;
    border-radius: var(--radius);
    width: 100%;
    max-width: 500px;
    padding: 40px;
    text-align: center;
    position: relative;
    animation: slideUp 0.4s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.order-confirmation-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--success);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 25px;
}

.order-confirmation-content h2 {
    margin-bottom: 15px;
    color: var(--dark);
}

.order-confirmation-content p {
    color: var(--gray);
    margin-bottom: 25px;
    line-height: 1.7;
}

.order-confirmation-number {
    background-color: #f8f9fa;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 30px;
    display: inline-block;
}

/* Container and Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Mobile Search Bar (outside navbar) */
.mobile-external-search {
    display: none;
    position: sticky;
    top: var(--navbar-height);
    z-index: 999;
    background: white;
    padding: 12px 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #eee;
}

.mobile-external-search .search-wrapper {
    position: relative;
    width: 100%;
}

.mobile-external-search .search-input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    font-size: 1rem;
    background-color: #f8f9fa;
    transition: var(--transition);
    outline: none;
}

.mobile-external-search .search-input:focus {
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.15);
}

.mobile-external-search .search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 1.1rem;
}

/* Modern Desktop Navigation */
.navbar {
    background-color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--navbar-height);
    display: flex;
    align-items: center;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo Section */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    order: 2;
}

/* Hamburger moved to left corner */
.mobile-menu-btn {
    order: 1;
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background-color: #f8f9fa;
}

.logo-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(58, 134, 255, 0.3);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.logo-text span {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Desktop Navigation Links */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0 40px;
    flex: 1;
    justify-content: center;
    order: 3;
}

.nav-item {
    list-style: none;
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    padding: 24px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link.active {
    color: var(--primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 3px 3px 0 0;
}

/* Desktop Search Bar */
.navbar-search {
    flex: 1;
    max-width: 400px;
    position: relative;
    order: 4;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    font-size: 0.95rem;
    background-color: #f8f9fa;
    transition: var(--transition);
    outline: none;
}

.search-input:focus {
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.15);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 1rem;
}

/* Desktop Cart & User Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
    order: 5;
}

.nav-action {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
    background-color: #f8f9fa;
}

.nav-action:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(58, 134, 255, 0.2);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--secondary);
    color: white;
    font-size: 0.7rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    border: 2px solid white;
}

.user-dropdown {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.user-avatar:hover {
    transform: scale(1.05);
}

/* Mobile Navigation Menu */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 320px;
    height: 100%;
    background-color: white;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border-bottom: 1px solid #eee;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-nav-close:hover {
    background-color: #f8f9fa;
}

.mobile-nav-links {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: var(--transition);
    border-left: 4px solid transparent;
    font-size: 1rem;
    position: relative;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    background-color: rgba(58, 134, 255, 0.08);
    color: var(--primary);
    border-left-color: var(--primary);
}

.mobile-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.mobile-nav-footer {
    padding: 25px;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
}

.mobile-search {
    margin-bottom: 20px;
}

.mobile-search-input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    font-size: 0.95rem;
    background-color: white;
}

.mobile-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* Main Content Sections */
.section {
    display: none;
    padding: 60px 0;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section.active {
    display: block;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: var(--dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* --- UPDATED: Hero Slider Section (FULL WIDTH) --- */
.hero {
    padding: 0;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    height: 600px; 
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background: #000;
    width: 100%; 
}

.hero-slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
    color: white;
    transform: translateY(20px);
    transition: transform 0.8s ease, opacity 0.8s ease;
    opacity: 0;
}

.hero-slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
}

.hero h1 {
    font-size: 4rem; 
    margin-bottom: 20px;
    color: white;
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 4;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-dot.active {
    background-color: white;
    transform: scale(1.3);
    border-color: rgba(0,0,0,0.1);
}

.cta-button {
    background: linear-gradient(to right, var(--secondary), #ff4d9e);
    color: white;
    border: none;
    padding: 18px 50px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 0, 110, 0.5);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--secondary);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
    letter-spacing: 0.5px;
}

.product-image {
    height: 220px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    background-color: #eee;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
}

.product-description {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-add-to-cart, .btn-buy-now {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.btn-add-to-cart {
    background-color: #f0f5ff;
    color: var(--primary);
    border: 1px solid rgba(58, 134, 255, 0.2);
}

.btn-add-to-cart:hover {
    background-color: var(--primary);
    color: white;
}

.btn-buy-now {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
}

.btn-buy-now:hover {
    background: linear-gradient(to right, var(--primary-dark), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
}

/* Cart Section */
.cart-container {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 40px;
}

.cart-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 0.5fr;
    padding: 25px;
    background-color: #f8f9fa;
    font-weight: 700;
    border-bottom: 1px solid #e9ecef;
    color: var(--dark);
    font-size: 0.95rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 0.5fr;
    padding: 25px;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    background-color: #eee;
}

.cart-item-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-item-title {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 1.05rem;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.quantity-btn:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.quantity {
    font-weight: 700;
    min-width: 30px;
    text-align: center;
    font-size: 1.1rem;
}

.remove-item {
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-item:hover {
    color: var(--secondary);
    background-color: rgba(255, 0, 110, 0.1);
}

.cart-footer {
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
}

.cart-total {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
}

.cart-total span {
    color: var(--primary);
    margin-left: 10px;
}

.cart-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 14px 30px;
    border-radius: var(--radius);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(58, 134, 255, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--dark);
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background-color: #f8f9fa;
}

/* Checkout Section */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.checkout-form {
    background-color: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.order-summary {
    background-color: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    align-self: start;
}

.order-summary-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    font-weight: 700;
    color: var(--dark);
}

.order-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.order-item:last-child {
    border-bottom: none;
}

.order-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #eee;
}

.order-total span {
    color: var(--primary);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 80px 0 40px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

/* Empty Cart State */
.empty-cart {
    text-align: center;
    padding: 80px 20px;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.empty-cart i {
    font-size: 5rem;
    color: #e9ecef;
    margin-bottom: 25px;
}

.empty-cart h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--dark);
    font-weight: 700;
}

.empty-cart p {
    color: var(--gray);
    max-width: 500px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--success);
    color: white;
    padding: 18px 25px;
    border-radius: var(--radius);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 10;
    display: none;
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-top: none;
}

.search-suggestions.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.search-suggestion-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-suggestion-item:hover {
    background-color: #f8f9fa;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-icon {
    color: var(--primary);
    font-size: 1rem;
}

/* Responsive Styles - OPTIMIZED FOR IPAD MINI (768px) */
@media (min-width: 992px) {
    .mobile-nav, .overlay {
        display: none !important;
    }
    
    .navbar-nav {
        display: flex;
    }
}

@media (max-width: 991px) {
    .mobile-external-search {
        display: block;
    }
    
    .navbar {
        height: 70px;
    }
    
    .navbar-container {
        padding: 0 15px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .navbar-nav, .navbar-search {
        display: none;
    }
    
    .navbar-actions {
        margin-left: 0;
        order: 3;
    }
    
    .logo-text {
        font-size: 1.6rem;
    }
    
    .navbar-brand {
        order: 2;
        flex: 1;
        justify-content: center;
    }
    
    .hero {
        padding: 0;
        height: 450px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cart-header, .cart-item {
        grid-template-columns: 2fr 1fr 0.5fr;
        font-size: 0.9rem;
        padding: 20px 15px;
    }
    
    .cart-header div:nth-child(3),
    .cart-header div:nth-child(4),
    .cart-item div:nth-child(3),
    .cart-item div:nth-child(4) {
        display: none;
    }
    
    .cart-item-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cart-item-image {
        width: 70px;
        height: 70px;
    }
    
    .footer-content {
        gap: 40px;
    }
    
    main.container {
        padding-top: 0;
    }
    
    .product-detail-body {
        padding: 20px;
    }
    
    .product-detail-info h1 {
        font-size: 1.8rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cart-footer {
        flex-direction: column;
        gap: 25px;
        align-items: stretch;
    }
    
    .cart-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .mobile-nav {
        width: 85%;
    }
    
    .checkout-form, .order-summary {
        padding: 30px;
    }
    
    .payment-method {
        padding: 15px;
    }
    
    .product-detail-actions .btn-add-to-cart,
    .product-detail-actions .btn-buy-now {
        min-width: 100%;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.6rem;
    }
    
    .hero {
        height: 400px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .cta-button {
        padding: 16px 35px;
        width: 100%;
        justify-content: center;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-header, .cart-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cart-header div {
        display: none;
    }
    
    .cart-header div:first-child {
        display: block;
        text-align: center;
        font-size: 1.2rem;
    }
    
    .cart-item {
        border-bottom: 2px solid #f0f0f0;
    }
    
    .cart-item-info {
        flex-direction: row;
        align-items: center;
    }
    
    .quantity-control {
        justify-content: center;
    }
    
    .remove-item {
        justify-self: center;
    }
    
    .checkout-form, .order-summary {
        padding: 25px;
    }
    
    .mobile-external-search {
        padding: 10px 15px;
    }
    
    .product-detail-body {
        padding: 15px;
    }
    
    .order-confirmation-content {
        padding: 30px 20px;
    }
}