/* ===========================================
   TISHH 3D - Styles CSS
   Design moderne et responsive
   =========================================== */

/* Reset et variables CSS */
:root {
--primary-color: #1e40af;
--primary-dark: #1e3a8a;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===========================================
   Layout et conteneurs
   =========================================== */

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

.section {
    padding: 4rem 0;
}

.about {
    padding: 5rem 0 4rem;
}

.section:nth-child(even) {
    background-color: var(--bg-white);
}

/* ===========================================
   Header et Navigation
   =========================================== */

.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(30, 64, 175, 0.1);
}

.nav {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 1rem;
    margin-right: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-cube {
    width: 32px;
    height: 32px;
    position: relative;
    transform-style: preserve-3d;
    animation: nav-rotate 12s infinite linear;
}

.nav-cube-face {
    position: absolute;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(37, 99, 235, 0.4);
    background: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.nav-cube-face.front { transform: translateZ(16px); }
.nav-cube-face.back { transform: translateZ(-16px) rotateY(180deg); }
.nav-cube-face.left { transform: rotateY(-90deg) translateZ(16px); }
.nav-cube-face.right { transform: rotateY(90deg) translateZ(16px); }
.nav-cube-face.top { transform: rotateX(90deg) translateZ(16px); }
.nav-cube-face.bottom { transform: rotateX(-90deg) translateZ(16px); }

@keyframes nav-rotate {
    0% { transform: rotateX(0) rotateY(0); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.nav-brand a {
    text-decoration: none;
    color: inherit;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition);
}

/* ===========================================
   Hero Section
   =========================================== */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 8rem 0;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.375rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    max-width: 600px;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-3d-preview {
    width: 300px;
    height: 300px;
    perspective: 1000px;
}

/* Animation 3D cube simple */
.cube-3d {
    width: 150px;
    height: 150px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 8s infinite linear;
    margin: 0 auto;
}

.face {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.face.front { transform: translateZ(75px); }
.face.back { transform: translateZ(-75px) rotateY(180deg); }
.face.left { transform: rotateY(-90deg) translateZ(75px); }
.face.right { transform: rotateY(90deg) translateZ(75px); }
.face.top { transform: rotateX(90deg) translateZ(75px); }
.face.bottom { transform: rotateX(-90deg) translateZ(75px); }

@keyframes rotate {
    0% { transform: rotateX(0) rotateY(0); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

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

/* ===========================================
   About Section
   =========================================== */

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    animation: fadeInUp 1s ease-out;
}

.about-text {
    width: 100%;
    max-width: 700px;
}

.about-text h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--text-dark);
    line-height: 1.2;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.1s both;
}

.about-lead {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.about-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.about-transition {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 2.5rem 0 2rem;
    position: relative;
    display: inline-block;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.about-transition::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 2px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0 3.5rem;
    width: 100%;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.feature {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.03) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.feature:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.feature:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    color: white;
    transition: transform 0.3s ease;
}

.feature:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    position: relative;
    z-index: 2;
}

.feature p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-light);
    position: relative;
    z-index: 2;
}

.about-cta {
    margin-top: 1rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.image-placeholder {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--border-color) 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--text-light);
    font-size: 1.125rem;
    text-align: center;
}

/* ===========================================
   Buttons
   =========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Boutons secondary sur fonds clairs */
.btn-secondary.btn-secondary-light {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    backdrop-filter: none;
}

.btn-secondary.btn-secondary-light:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* ===========================================
   Products
   =========================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

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

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--border-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.favorite-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 12;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(248, 113, 113, 0.25);
    background: radial-gradient(circle at 30% 20%, #ffffff 0%, #fee2e2 45%, #fecaca 100%);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.15rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
    color: #fb7185;
}

.favorite-btn:hover {
    transform: translateY(-1px) scale(1.04);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.32);
}

.favorite-btn.is-favorite {
    background: radial-gradient(circle at 30% 20%, #ffffff 0%, #fecaca 45%, #fb7185 100%);
    color: #be123c;
    border-color: rgba(248, 113, 113, 0.6);
    transform: translateY(-1px) scale(1.06);
}

.favorite-btn-detail {
    position: static;
    margin-left: 0.75rem;
}

.product-header-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

@keyframes favorite-pop {
    0% { transform: scale(0.8); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.favorite-btn.is-favorite {
    animation: favorite-pop 0.2s ease-out;
}

.subscribe-modal .modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.subscribe-modal .modal-header h3 {
    color: inherit;
}

.subscribe-modal .modal-body {
    padding-top: 1.75rem;
}

.subscribe-modal .subscribe-text {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1.75rem;
    position: relative;
    z-index: 2;
}

.product-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.product-description {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: -0.4px;
    background: rgba(30, 64, 175, 0.05);
    padding: 0.5rem 0;
    border-radius: 4px;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-disabled {
    background: #d1d5db;
    color: #6b7280;
    border: 2px solid #d1d5db;
    cursor: not-allowed;
    opacity: 0.6;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-disabled:hover {
    background: #d1d5db;
    border-color: #d1d5db;
    transform: none;
    box-shadow: none;
}

/* Stock badge sur les cartes produit */
.stock-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    z-index: 10;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.4px;
}

.stock-badge.in-stock {
    background-color: rgba(34, 197, 94, 0.95);
    color: white;
}

.stock-badge.low-stock {
    background-color: rgba(245, 158, 11, 0.95);
    color: white;
}

.stock-badge.critical-stock {
    background-color: rgba(239, 68, 68, 0.95);
    color: white;
    animation: pulse-critical 1.5s infinite;
}

.stock-badge.out-of-stock {
    background-color: rgba(107, 114, 128, 0.95);
    color: white;
}

/* Animation pour stock critique (1 seul) */
@keyframes pulse-critical {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.05); }
}

/* Effets visuels pour les cartes en rupture */
.product-card.out-of-stock {
    opacity: 0.65;
}

.product-card.low-stock {
    opacity: 0.92;
}

.product-card.critical-stock {
    opacity: 0.98;
}

.product-image.out-of-stock {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.product-image.out-of-stock::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    z-index: 2;
}

/* Promotion price styles sur les cartes */
.product-price-promo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.product-price-strikethrough {
    font-size: 1.1rem;
    color: #94a3b8;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: #ef4444;
    font-weight: 600;
}

.product-price-promo-container .product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ef4444;
}

.promo-badge-card {
    display: inline-block;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.35rem 0.65rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* ===========================================
   Page Header
   =========================================== */

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* ===========================================
   Shop Filters
   =========================================== */

.shop-filters {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 500;
    color: var(--text-dark);
}

.filter-group select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-white);
    font-size: 0.875rem;
}

/* ===========================================
   Product Detail
   =========================================== */

.product-detail {
    padding: 4rem 0;
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: 2rem;
}

.product-main-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--border-color) 100%);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.product-main-image:hover {
    transform: scale(1.02);
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-main-image:hover img {
    transform: scale(1.08);
}

.product-details h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.product-price-large {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    margin-top: 0.5rem;
    letter-spacing: -0.4px;
    background: rgba(30, 64, 175, 0.06);
    padding: 1rem;
    border-radius: 8px;
    display: inline-block;
}

/* Prix avec promotion */
.product-price-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.product-price-original {
    display: flex;
    align-items: center;
}

.product-price-original .strikethrough {
    font-size: 1.5rem;
    color: #94a3b8;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: #ef4444;
    font-weight: 600;
}

.product-price-promo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.promo-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #dc2626;
    letter-spacing: -0.4px;
}

.promo-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.product-description-full {
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

/* Stock badge detail page */
.stock-badge-detail {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.stock-badge-detail.in-stock {
    background-color: rgba(34, 197, 94, 0.95);
    color: white;
}

.stock-badge-detail.low-stock {
    background-color: rgba(245, 158, 11, 0.95);
    color: white;
}

.stock-badge-detail.critical-stock {
    background-color: rgba(239, 68, 68, 0.95);
    color: white;
    animation: pulse-critical 1.5s infinite;
}

.stock-badge-detail.out-of-stock {
    background-color: rgba(107, 114, 128, 0.95);
    color: white;
}

.product-meta {
    margin-bottom: 2rem;
}

.product-meta-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.product-meta-item:last-child {
    border-bottom: none;
}

/* Meta secundaria - pequeña en la parte baja */
.product-meta-secondary {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.product-meta-item-secondary {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.product-meta-item-secondary span:first-child {
    font-weight: 600;
}

/* Vinted link */
.vinted-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.vinted-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Purchase section */
.product-purchase-section {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.quantity-control-section {
    flex: 0 0 auto;
}

.quantity-label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quantity-selector-large {
    display: flex;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    background: var(--bg-light);
    border: none;
    padding: 0.75rem 1rem;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.qty-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-input-large {
    border: none;
    padding: 0.75rem 1rem;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    width: 60px;
    background: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
}

/* Trust message */
.product-trust {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 6px;
    border-left: 3px solid rgba(16, 185, 129, 0.5);
}

/* Product notification section */
.product-notification-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.04) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    text-align: center;
}

.product-notification-section .btn {
    width: 100%;
}

/* Button secondary ghost */
.btn-secondary-ghost {
    background: transparent !important;
    color: var(--text-dark) !important;
    border: 2px solid var(--primary-color) !important;
    padding: 0.75rem 1.5rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    border-radius: var(--border-radius);
}

.btn-secondary-ghost:hover {
    background: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2);
}

.product-actions-large {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -3rem;
    right: 0;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===========================================
   Contact Section
   =========================================== */

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2,
.contact-form h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.info-content p {
    color: var(--text-light);
}

/* ===========================================
   CTA Section
   =========================================== */

.cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    color: white;
    font-weight: 800;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    color: white;
    line-height: 1.6;
}

/* ===========================================
   Forms
   =========================================== */

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* ===========================================
   Modal
   =========================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--bg-white);
    margin: 5% auto;
    padding: 0;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
}

.modal-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 2rem;
}

.order-form {
    max-width: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ===========================================
   Notifications
   =========================================== */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

.notification-content {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.notification.success .notification-content {
    border-left: 4px solid #10b981;
}

.notification.error .notification-content {
    border-left: 4px solid #ef4444;
}

.notification-close {
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-light);
    transition: var(--transition);
}

.notification-close:hover {
    color: var(--text-dark);
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===========================================
   Loading et états
   =========================================== */

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-style: italic;
}

/* ===========================================
   Pagination
   =========================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===========================================
   Footer
   =========================================== */

.footer {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 4rem 0 2rem;
    margin-top: 6rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(30, 64, 175, 0.2), transparent);
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-cube {
    width: 40px;
    height: 40px;
    position: relative;
    transform-style: preserve-3d;
    animation: nav-rotate 15s infinite linear;
    flex-shrink: 0;
}

.footer-cube-face {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(30, 64, 175, 0.3);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.footer-cube-face.front { transform: translateZ(20px); }
.footer-cube-face.back { transform: translateZ(-20px) rotateY(180deg); }
.footer-cube-face.left { transform: rotateY(-90deg) translateZ(20px); }
.footer-cube-face.right { transform: rotateY(90deg) translateZ(20px); }
.footer-cube-face.top { transform: rotateX(90deg) translateZ(20px); }
.footer-cube-face.bottom { transform: rotateX(-90deg) translateZ(20px); }

.footer-logo h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    font-style: italic;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.footer-section h4 {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 1px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-section a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.footer-section a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-section a:hover::before {
    width: 100%;
}

.footer-divider {
    margin: 2rem 0;
}

.divider-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-copyright p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.footer-social p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.heart {
    color: #ef4444;
    font-size: 1rem;
    animation: heartbeat 2s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ===========================================
   Responsive Design
   =========================================== */

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: var(--shadow-md);
    }

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

    .nav-toggle {
        display: flex;
    }

    .hero-container,
    .product-content,
    .contact-content,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content {
        gap: 2rem;
        padding: 0 1rem;
    }

    .about-text h2 {
        font-size: 2.25rem;
    }

    .about-lead {
        font-size: 1.125rem;
    }

    .about-description {
        font-size: 1rem;
    }

    .about-transition {
        font-size: 1.25rem;
    }

    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2.5rem 0 3rem;
    }

    .feature {
        padding: 1.75rem 1.25rem;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1.25rem;
    }

    .feature-icon svg {
        width: 24px;
        height: 24px;
    }

@media (max-width: 1024px) {
    .about-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
}

@media (max-width: 640px) {
    .about-features {
        grid-template-columns: 1fr;
    }
}

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-container {
        gap: 2rem;
        padding: 0 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .nav-cube {
        width: 28px;
        height: 28px;
    }

    .nav-cube-face {
        width: 28px;
        height: 28px;
    }

    .nav-cube-face.front { transform: translateZ(14px); }
    .nav-cube-face.back { transform: translateZ(-14px) rotateY(180deg); }
    .nav-cube-face.left { transform: rotateY(-90deg) translateZ(14px); }
    .nav-cube-face.right { transform: rotateY(90deg) translateZ(14px); }
    .nav-cube-face.top { transform: rotateX(90deg) translateZ(14px); }
    .nav-cube-face.bottom { transform: rotateX(-90deg) translateZ(14px); }

    .shop-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .product-purchase-section {
        flex-direction: column;
        align-items: stretch;
    }

    .product-main-image {
        height: 250px;
    }

    .lightbox-close {
        top: 1rem;
    }

    .section {
        padding: 2rem 0;
    }

    .hero {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        justify-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

@media (max-width: 480px) {
    .footer {
        padding: 3rem 0 2rem;
    }

    .footer-main {
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-cube {
        width: 32px;
        height: 32px;
    }

    .footer-cube-face {
        width: 32px;
        height: 32px;
    }

    .footer-cube-face.front { transform: translateZ(16px); }
    .footer-cube-face.back { transform: translateZ(-16px) rotateY(180deg); }
    .footer-cube-face.left { transform: rotateY(-90deg) translateZ(16px); }
    .footer-cube-face.right { transform: rotateY(90deg) translateZ(16px); }
    .footer-cube-face.top { transform: rotateX(90deg) translateZ(16px); }
    .footer-cube-face.bottom { transform: rotateX(-90deg) translateZ(16px); }
}
/* ===========================================
   Gestion du stock et quantité
   =========================================== */

.stock-status {
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stock-status.in-stock {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.stock-status.low-stock {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.stock-status.out-of-stock {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Sélecteur de quantité */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 150px;
}

.quantity-selector input {
    flex: 1;
    text-align: center;
    font-weight: 500;
    padding: 0.5rem !important;
}

.qty-btn {
    width: 40px;
    height: 40px;
    padding: 0 !important;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.qty-btn:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--bg-light);
}

/* Sélecteur de quantité sur la page produit */
.product-purchase-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.quantity-selector-large {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.25rem;
    background-color: var(--bg-white);
}

.qty-btn-large {
    width: 44px;
    height: 44px;
    padding: 0 !important;
    border: none;
    background-color: transparent;
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn-large:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.qty-input-large {
    width: 60px;
    text-align: center;
    font-weight: 500;
    border: none;
    padding: 0.5rem !important;
    font-size: 1rem;
}

/* Erreur de quantité */
.form-error {
    color: #991b1b;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

/* Bouton désactivé */
.btn-disabled {
    background-color: #9ca3af !important;
    color: white;
    cursor: not-allowed;
    border: 1px solid #9ca3af !important;
}

.btn-disabled:hover {
    background-color: #9ca3af !important;
    transform: none !important;
}