/* ============================================
   LUNEYE - Main Stylesheet V2.0
   Ajouts: Modal produit, galerie 4 images, bouton essayer
   ============================================ */

:root {
    --primary-red: #E31C25;
    --dark-red: #B71518;
    --light-red: #FF4D5A;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --gray: #888888;
    --dark: #1A1A1A;
    --black: #000000;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-red: 0 10px 30px rgba(227,28,37,0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--white);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--light-gray); }
::-webkit-scrollbar-thumb { background: var(--primary-red); border-radius: 4px; }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-red);
    text-decoration: none;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: var(--transition);
}

.nav-links a:hover { color: var(--primary-red); }
.nav-links a:hover::after { width: 100%; }

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

.nav-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--dark);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.nav-btn:hover { color: var(--primary-red); }

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-red);
    color: white;
    font-size: 11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.mobile-menu { display: none; font-size: 24px; cursor: pointer; }

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background: var(--primary-red);
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    font-size: 15px;
}

.btn-primary:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

.btn-outline {
    background: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
    padding: 10px 26px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    font-size: 15px;
}

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

.btn-small { padding: 8px 20px; font-size: 13px; }

/* ============================================
   HERO SLIDER
   ============================================ */
.hero {
    margin-top: 75px;
    position: relative;
    height: 90vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(227,28,37,0.85) 0%, rgba(0,0,0,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text { max-width: 600px; color: white; }

.hero-text h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text h1 span { color: #FFD700; }

.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-images { display: flex; gap: 20px; }

.hero-img-box {
    width: 280px;
    height: 380px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: rotate(-3deg);
    transition: transform 0.5s;
}

.hero-img-box:nth-child(2) {
    transform: rotate(3deg);
    margin-top: 40px;
}

.hero-img-box:hover {
    transform: rotate(0deg) scale(1.05);
}

.hero-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: white;
    color: var(--primary-red);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* ============================================
   FEATURES BAR
   ============================================ */
.features-bar {
    background: var(--white);
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.features-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 0 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 15px;
    transition: var(--transition);
}

.feature-item:hover { background: var(--light-gray); }

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
}

.feature-text p {
    font-size: 13px;
    color: var(--gray);
}

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 80px 0; }

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

.section-header h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-header h2 span { color: var(--primary-red); }

.section-header p {
    color: var(--gray);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    margin: 15px auto;
    border-radius: 2px;
}

/* ============================================
   PRODUCTS
   ============================================ */
.products-section { background: var(--light-gray); }

.category-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    padding: 0 30px;
}

.cat-btn {
    padding: 12px 28px;
    border-radius: 30px;
    border: 2px solid #eee;
    background: white;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.cat-btn.active {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

.cat-btn:hover:not(.active) {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.products-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 30px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
}

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

.product-img {
    height: 250px;
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-img i {
    font-size: 80px;
    color: #ddd;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-red);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(20px);
    transition: var(--transition);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    font-size: 16px;
}

.product-action-btn:hover {
    background: var(--primary-red);
    color: white;
}

.product-info { padding: 20px; }

.product-brand {
    color: var(--primary-red);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-name {
    font-size: 17px;
    font-weight: 600;
    margin: 5px 0;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.price-current {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-red);
}

.price-old {
    font-size: 15px;
    color: var(--gray);
    text-decoration: line-through;
}

.product-rating {
    color: #FFB800;
    font-size: 14px;
    margin-bottom: 15px;
}

.add-to-cart {
    width: 100%;
    padding: 12px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.add-to-cart:hover { background: var(--dark-red); }

/* ============================================
   PRODUCT DETAIL MODAL (NEW V2)
   ============================================ */
.product-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

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

.product-detail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.product-detail-content {
    position: relative;
    background: white;
    border-radius: 30px;
    width: 92%;
    max-width: 1200px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.product-detail-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-close:hover {
    background: var(--primary-red);
    color: white;
    transform: rotate(90deg);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 600px;
}

/* Gallery */
.product-detail-gallery {
    padding: 40px;
    background: var(--light-gray);
    border-radius: 30px 0 0 30px;
}

.gallery-main-container {
    position: relative;
    height: 450px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.gallery-main-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-main-container:hover img {
    transform: scale(1.05);
}

.gallery-zoom-hint {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-main-container:hover .gallery-zoom-hint {
    opacity: 1;
}

.gallery-thumbs-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
}

.gallery-thumbs-row img {
    width: 85px;
    height: 85px;
    border-radius: 12px;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
    background: white;
}

.gallery-thumbs-row img:hover,
.gallery-thumbs-row img.active {
    border-color: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Info */
.product-detail-info {
    padding: 50px;
    display: flex;
    flex-direction: column;
}

.detail-brand {
    color: var(--primary-red);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.detail-name {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.detail-rating {
    color: #FFB800;
    font-size: 16px;
    margin-bottom: 20px;
}

.detail-price-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.detail-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-red);
}

.detail-old-price {
    font-size: 22px;
    color: var(--gray);
    text-decoration: line-through;
}

.detail-badge {
    background: var(--primary-red);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Tabs */
.detail-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 0;
}

.detail-tab {
    padding: 12px 24px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--gray);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    position: relative;
    transition: var(--transition);
}

.detail-tab.active {
    color: var(--primary-red);
}

.detail-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-red);
    border-radius: 3px 3px 0 0;
}

.detail-tab:hover:not(.active) {
    color: var(--dark);
}

.detail-tab-content {
    display: none;
    animation: fadeIn 0.3s;
    margin-bottom: 30px;
}

.detail-tab-content.active {
    display: block;
}

.detail-tab-content p {
    color: #555;
    line-height: 1.8;
    font-size: 15px;
}

.specs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.specs-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #555;
}

.specs-list li i {
    color: #4caf50;
    font-size: 18px;
}

.delivery-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.delivery-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 12px;
}

.delivery-item i {
    width: 45px;
    height: 45px;
    background: var(--primary-red);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.delivery-item strong {
    display: block;
    margin-bottom: 3px;
    color: var(--dark);
}

.delivery-item p {
    margin: 0;
    font-size: 13px;
    color: var(--gray);
}

/* Actions */
.detail-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    width: fit-content;
}

.qty-selector button {
    width: 45px;
    height: 45px;
    border: none;
    background: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.qty-selector button:hover {
    background: var(--light-gray);
}

.qty-selector span {
    width: 50px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

.btn-try-on {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--dark), #333);
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-try-on:hover {
    background: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

.btn-try-on i {
    font-size: 20px;
}

.btn-add-detail {
    width: 100%;
    padding: 16px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-add-detail:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

.detail-stock {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    color: var(--gray);
}

.detail-stock.low {
    color: var(--primary-red);
    font-weight: 600;
}

/* ============================================
   VIRTUAL TRY-ON
   ============================================ */
.tryon-section {
    background: linear-gradient(135deg, var(--dark) 0%, #2a2a2a 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.tryon-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--primary-red);
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.3;
    top: -100px;
    right: -100px;
}

.tryon-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.tryon-text h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
}

.tryon-text h2 span { color: var(--primary-red); }

.tryon-text p {
    font-size: 16px;
    opacity: 0.85;
    line-height: 1.8;
    margin-bottom: 30px;
}

.tryon-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.tryon-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tryon-feature i { color: var(--primary-red); font-size: 20px; }

.tryon-preview {
    background: rgba(255,255,255,0.05);
    border-radius: 30px;
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.camera-preview {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border: 2px dashed rgba(255,255,255,0.2);
}

.camera-preview i { font-size: 60px; color: var(--primary-red); }
.camera-preview p { opacity: 0.7; }

.tryon-btn {
    background: var(--primary-red);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.tryon-btn:hover {
    background: var(--light-red);
    transform: scale(1.05);
}

/* ============================================
   PRESCRIPTION
   ============================================ */
.prescription-section { background: var(--white); }

.prescription-container { max-width: 1400px; margin: 0 auto; padding: 0 30px; }

.prescription-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.pres-tab {
    padding: 15px 35px;
    border-radius: 30px;
    border: 2px solid #eee;
    background: white;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
}

.pres-tab.active {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

.pres-tab:hover:not(.active) {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.pres-content { display: none; }
.pres-content.active { display: block; animation: fadeIn 0.5s; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.scan-area {
    background: var(--light-gray);
    border-radius: 25px;
    padding: 60px;
    text-align: center;
    border: 3px dashed #ddd;
    transition: var(--transition);
    cursor: pointer;
}

.scan-area:hover {
    border-color: var(--primary-red);
    background: #fff5f5;
}

.scan-area i { font-size: 70px; color: var(--primary-red); margin-bottom: 20px; }
.scan-area h3 { font-size: 24px; margin-bottom: 10px; }
.scan-area p { color: var(--gray); margin-bottom: 25px; }

.scan-input { display: none; }

.scan-label {
    background: var(--primary-red);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.scan-label:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
}

.pres-form { max-width: 900px; margin: 0 auto; }

.pres-input-group {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 0 0 15px 15px;
}

.pres-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--gray);
}

.pres-input-group input,
.pres-input-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.pres-input-group input:focus,
.pres-input-group select:focus {
    outline: none;
    border-color: var(--primary-red);
}

.pres-header {
    background: var(--primary-red);
    color: white;
    padding: 15px;
    border-radius: 15px 15px 0 0;
    font-weight: 600;
    text-align: center;
}

/* ============================================
   PAYMENT
   ============================================ */
.payment-section {
    background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
}

.payment-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.payment-card {
    background: white;
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

.payment-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
}

.payment-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-red), var(--light-red));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 35px;
}

.payment-card h3 { font-size: 22px; margin-bottom: 15px; }
.payment-card p { color: var(--gray); font-size: 15px; line-height: 1.7; }

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.pay-method {
    width: 50px;
    height: 35px;
    background: var(--light-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-input {
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.form-input:focus { border-color: var(--primary-red); }

textarea.form-input { resize: vertical; min-height: 120px; }

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--light-gray);
    border-radius: 15px;
    transition: var(--transition);
}

.info-card:hover { transform: translateX(5px); }

.info-icon {
    width: 55px;
    height: 55px;
    background: var(--primary-red);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
}

.info-card h4 { margin-bottom: 5px; }
.info-card p { color: var(--gray); font-size: 14px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand .logo { color: white; margin-bottom: 20px; }
.footer-brand p { opacity: 0.7; line-height: 1.8; margin-bottom: 20px; }

.social-links { display: flex; gap: 15px; }

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
}

.footer-col h4 { font-size: 18px; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}
.footer-col a:hover { color: var(--primary-red); }

.footer-bottom {
    max-width: 1400px;
    margin: 40px auto 0;
    padding: 20px 30px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    opacity: 0.6;
    font-size: 14px;
}

/* ============================================
   CHAT WIDGET
   ============================================ */
.chat-widget { position: fixed; bottom: 30px; right: 30px; z-index: 999; }

.chat-btn {
    width: 65px;
    height: 65px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: var(--shadow-red);
    transition: var(--transition);
    border: none;
}

.chat-btn:hover { transform: scale(1.1) rotate(10deg); }

.chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 500px;
    background: white;
    border-radius: 25px;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-box.active { display: flex; }

.chat-header {
    background: var(--primary-red);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-avatar {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: 20px;
}

.chat-header h4 { font-size: 16px; }
.chat-header p { font-size: 12px; opacity: 0.8; }

.chat-close {
    margin-left: auto;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.chat-msg.bot {
    background: var(--light-gray);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-msg.user {
    background: var(--primary-red);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #eee;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

.chat-input:focus { border-color: var(--primary-red); }

.chat-send {
    width: 45px;
    height: 45px;
    background: var(--primary-red);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.chat-send:hover { background: var(--dark-red); }

/* ============================================
   CART SIDEBAR
   ============================================ */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: white;
    z-index: 1001;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    transition: right 0.4s;
    display: flex;
    flex-direction: column;
}

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

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

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

.cart-header {
    padding: 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header h3 { font-size: 20px; }

.cart-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

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

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 15px;
    margin-bottom: 15px;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #ddd;
    flex-shrink: 0;
}

.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; margin-bottom: 5px; }
.cart-item-price { color: var(--primary-red); font-weight: 700; }

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid #eee;
}

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

.cart-total span:last-child {
    font-weight: 700;
    color: var(--primary-red);
    font-size: 22px;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

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

/* ============================================
   MODALS / BACK OFFICE
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active { display: flex; }

.modal {
    background: white;
    border-radius: 25px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: var(--primary-red);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 { font-size: 24px; }

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    flex-wrap: wrap;
}

.admin-tab {
    padding: 10px 25px;
    border-radius: 20px;
    border: none;
    background: var(--light-gray);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.admin-tab.active {
    background: var(--primary-red);
    color: white;
}

.admin-panel { display: none; }
.admin-panel.active { display: block; animation: fadeIn 0.3s; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: var(--light-gray);
    font-weight: 600;
}

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

.admin-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    margin-right: 5px;
    font-family: 'Poppins', sans-serif;
}

.admin-btn-edit { background: #e3f2fd; color: #1976d2; }
.admin-btn-delete { background: #ffebee; color: #c62828; }

.admin-btn-add {
    background: var(--primary-red);
    color: white;
    padding: 12px 30px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.import-area {
    border: 3px dashed #ddd;
    border-radius: 20px;
    padding: 50px;
    text-align: center;
    background: var(--light-gray);
    cursor: pointer;
    transition: var(--transition);
}

.import-area:hover {
    border-color: var(--primary-red);
    background: #fff5f5;
}

.import-area i { font-size: 50px; color: var(--primary-red); margin-bottom: 15px; }
.import-area h3 { margin-bottom: 10px; }
.import-area p { color: var(--gray); margin-bottom: 20px; }

/* ============================================
   NOTIFICATIONS
   ============================================ */
.notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background: var(--primary-red);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-red);
    transform: translateX(400px);
    transition: transform 0.4s;
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification.show { transform: translateX(0); }

/* ============================================
   LOADING
   ============================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    z-index: 5000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-overlay.hidden { display: none; }

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   SEARCH MODAL
   ============================================ */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}

.search-modal.active { display: flex; }

.search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.search-container {
    position: relative;
    background: white;
    width: 90%;
    max-width: 900px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-height: 80vh;
    overflow-y: auto;
}

.search-header { padding: 25px 30px; border-bottom: 1px solid #eee; }

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--light-gray);
    border-radius: 15px;
    padding: 15px 20px;
}

.search-input-wrapper i { color: var(--gray); font-size: 20px; }

.search-input-wrapper input {
    flex: 1;
    border: none;
    background: none;
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
    outline: none;
}

.search-close {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--gray);
    border-radius: 50%;
    transition: all 0.3s;
}

.search-close:hover { background: var(--light-gray); color: var(--primary-red); }

.search-filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
}

.filter-group select,
.filter-group input {
    padding: 10px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    outline: none;
}

.filter-group select:focus { border-color: var(--primary-red); }

.search-results { padding: 20px 30px; min-height: 200px; }

.search-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.search-empty i { font-size: 50px; margin-bottom: 15px; opacity: 0.3; }

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
}

.search-result-item:hover {
    background: var(--light-gray);
    border-color: var(--primary-red);
}

.search-result-item img {
    width: 60px;
    height: 60px;
    background: var(--light-gray);
    border-radius: 10px;
    object-fit: cover;
}

.search-result-item .info { flex: 1; }
.search-result-item .name { font-weight: 600; margin-bottom: 3px; }
.search-result-item .brand { color: var(--primary-red); font-size: 12px; font-weight: 600; }
.search-result-item .price { font-weight: 700; color: var(--dark); }
.search-count { text-align: center; padding: 10px; color: var(--gray); font-size: 14px; border-bottom: 1px solid #eee; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-content { flex-direction: column; text-align: center; }
    .hero-text h1 { font-size: 40px; }
    .hero-images { margin-top: 30px; }
    .tryon-container { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .payment-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .product-detail-grid { grid-template-columns: 1fr; }
    .product-detail-gallery { border-radius: 30px 30px 0 0; }
    .gallery-main-container { height: 350px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu { display: block; }
    .hero-text h1 { font-size: 32px; }
    .hero-img-box { width: 200px; height: 280px; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .chat-box { width: 90vw; right: -15px; }
    .cart-sidebar { width: 100%; right: -100%; }
    .category-filter { gap: 8px; }
    .cat-btn { padding: 8px 18px; font-size: 12px; }
    .form-row { grid-template-columns: 1fr; }
    .hero { height: auto; min-height: 80vh; padding: 40px 0; }
    .hero-content { flex-direction: column; }
    .hero-images { margin-top: 30px; }
    .product-detail-content { width: 95%; max-height: 95vh; }
    .product-detail-info { padding: 25px; }
    .detail-name { font-size: 24px; }
    .detail-price { font-size: 28px; }
    .gallery-main-container { height: 280px; }
    .gallery-thumbs-row img { width: 65px; height: 65px; }
    .search-filters { grid-template-columns: repeat(2, 1fr); }
    .search-container { width: 95%; }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 28px; }
    .section-header h2 { font-size: 28px; }
    .products-grid { grid-template-columns: 1fr; }
    .payment-grid { grid-template-columns: 1fr; }
    .nav-container { padding: 15px 15px; }
    .section { padding: 50px 0; }
    .detail-name { font-size: 20px; }
    .detail-price { font-size: 24px; }
}
