/* ==========================================================================
   Tabouret Arcade - Premium E-commerce Style
   ========================================================================== */

/* CSS Variables */
:root {
    --primary-color: #ff006e;
    --primary-dark: #d90062;
    --secondary-color: #00d9ff;
    --dark-bg: #0a0e27;
    --darker-bg: #050811;
    --light-text: #ffffff;
    --gray-text: #a8b2d1;
    --border-color: #1e2749;
    --success-color: #00ff88;
    --warning-color: #ffbe0b;
    --error-color: #ff006e;
    
    --container-width: 1200px;
    --transition-speed: 0.3s;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), #00a8cc);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--light-text);
    background-color: var(--darker-bg);
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--dark-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(10, 14, 39, 0.95);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.logo .tagline {
    font-size: 0.75rem;
    color: var(--gray-text);
    display: block;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    transition: color var(--transition-speed);
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark-bg), var(--darker-bg));
}

.hero-carousel {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

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

/* Hero slide background image (LCP optimized) */
.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-slide:nth-child(1) {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.3), rgba(0, 217, 255, 0.2)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%230a0e27" width="1200" height="600"/></svg>');
}

.hero-slide:nth-child(2) {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.3), rgba(255, 190, 11, 0.2)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23050811" width="1200" height="600"/></svg>');
}

.hero-slide:nth-child(3) {
    background: linear-gradient(135deg, rgba(255, 190, 11, 0.3), rgba(255, 0, 110, 0.2)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%230a0e27" width="1200" height="600"/></svg>');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 17, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.cta-button {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-speed);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 0, 110, 0.4);
}

.cta-button-secondary {
    display: inline-block;
    background: transparent;
    color: white;
    border: 2px solid var(--primary-color);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all var(--transition-speed);
}

.cta-button-secondary:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 0, 110, 0.4);
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    width: 50px;
    height: 50px;
    font-size: 2rem;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-speed);
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

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

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.carousel-dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

/* USP Section */
.usp-section {
    padding: 5rem 0;
    background: var(--dark-bg);
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.usp-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all var(--transition-speed);
}

.usp-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.2);
}

.usp-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.usp-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.usp-card p {
    color: var(--gray-text);
    font-size: 0.95rem;
}

/* Intro Section */
.intro-section {
    padding: 5rem 0;
    background: var(--darker-bg);
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
}

.intro-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.intro-content h3 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.intro-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-text);
    margin-bottom: 1.5rem;
}

.intro-content strong {
    color: var(--light-text);
}

.intro-list {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.intro-list li {
    font-size: 1.05rem;
    color: var(--gray-text);
    margin-bottom: 0.75rem;
}

.delivery-info {
    background: rgba(255, 190, 11, 0.1);
    border-left: 4px solid var(--warning-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

/* Products Section */
.products-section {
    padding: 5rem 0;
    background: var(--dark-bg);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-text);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Search Bar */
.search-bar-container {
    max-width: 500px;
    margin: 0 auto 2rem;
    position: relative;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-color);
    transition: all var(--transition-speed);
}

.search-input::placeholder {
    color: var(--gray-text);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.search-icon {
    position: absolute;
    right: 1.5rem;
    font-size: 1.2rem;
    pointer-events: none;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: none;
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
}

.search-dropdown.active {
    display: block;
}

.search-dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all var(--transition-speed);
    border-bottom: 1px solid var(--border-color);
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item:hover {
    background: rgba(255, 0, 110, 0.15);
}

.search-dropdown-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    margin-right: 1rem;
}

.search-dropdown-info {
    flex: 1;
}

.search-dropdown-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.search-dropdown-price {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.search-no-results {
    padding: 1rem;
    text-align: center;
    color: var(--gray-text);
}

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

.product-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-speed);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.3);
}

.product-card h3 {
    font-size: 1.3rem;
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--light-text);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: 0 1.5rem 1.5rem;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--gray-text);
    font-size: 1.2rem;
}

/* Product Detail Page */
.breadcrumb {
    background: var(--dark-bg);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb a {
    color: var(--gray-text);
    transition: color var(--transition-speed);
}

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

.separator {
    margin: 0 0.5rem;
    color: var(--gray-text);
}

.product-page {
    padding: 3rem 0;
    min-height: 60vh;
}

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

.product-gallery {
    position: sticky;
    top: 100px;
}

.product-main-image {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.product-thumbnails {
    display: flex;
    gap: 1rem;
}

.product-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-speed);
}

.product-thumb:hover {
    border-color: var(--primary-color);
}

.product-info {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.product-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.product-price {
    margin-bottom: 1rem;
}

.product-price .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
}

.product-price .shipping {
    font-size: 0.9rem;
    color: var(--gray-text);
    display: block;
    margin-top: 0.5rem;
}

.product-stock {
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.product-stock.in-stock {
    background: rgba(0, 255, 136, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.product-stock.out-of-stock {
    background: rgba(255, 0, 110, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

.product-description {
    line-height: 1.8;
    color: var(--gray-text);
    margin-bottom: 2rem;
}

.product-features h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.product-features ul {
    list-style: none;
    margin-bottom: 2rem;
}

.product-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--gray-text);
}

.product-features li:last-child {
    border-bottom: none;
}

.buy-button {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    color: white;
    border-radius: 12px;
    transition: all var(--transition-speed);
    box-shadow: var(--shadow-md);
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.buy-button.disabled {
    background: var(--border-color);
    cursor: not-allowed;
}

.secure-payment {
    text-align: center;
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Related Products */
.related-products {
    padding: 3rem 0;
    background: var(--darker-bg);
}

/* Trust Section */
.trust-section {
    padding: 3rem 0;
    background: var(--dark-bg);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.trust-item {
    text-align: center;
    padding: 1.5rem;
}

.trust-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.trust-item p {
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--dark-bg), var(--darker-bg));
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--gray-text);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Contact Page */
.contact-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--gray-text);
    font-size: 1.1rem;
}

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

.contact-info h2,
.contact-form-wrapper h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item strong {
    display: block;
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.contact-item p,
.contact-item a {
    color: var(--gray-text);
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-form {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--light-text);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-speed);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 8px;
    transition: all var(--transition-speed);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.form-note {
    font-size: 0.85rem;
    color: var(--gray-text);
    margin-top: 0.5rem;
}

.form-result {
    margin-top: 1.5rem;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-info {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--secondary-color);
    color: var(--gray-text);
}

.alert hr {
    margin: 1rem 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

.faq-section {
    margin-top: 4rem;
}

.faq-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--light-text);
}

.faq-item p {
    color: var(--gray-text);
    line-height: 1.6;
}

/* Legal Pages */
.legal-page {
    padding: 3rem 0;
    min-height: 70vh;
}

.legal-page h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.legal-section h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--light-text);
}

.legal-section p,
.legal-section li {
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-section strong {
    color: var(--light-text);
}

.legal-section a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.legal-section a:hover {
    color: var(--primary-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

.data-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-text);
    font-weight: 600;
}

.data-table td {
    color: var(--gray-text);
}

.legal-update {
    text-align: center;
    color: var(--gray-text);
    font-style: italic;
    margin: 2rem 0;
}

.legal-note {
    background: rgba(255, 190, 11, 0.1);
    border: 2px solid var(--warning-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 3rem;
}

.legal-note strong {
    color: var(--warning-color);
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
}

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

.footer-col h4 {
    color: var(--light-text);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-col p,
.footer-col li {
    color: var(--gray-text);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* Admin Panel - Hidden by default */
.admin-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: var(--dark-bg);
    border-left: 2px solid var(--primary-color);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
    transition: right 0.4s ease;
}

.admin-panel.active {
    right: 0;
}

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

.admin-close {
    background: var(--error-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
}

.admin-content {
    padding: 1.5rem;
}

.admin-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.admin-btn {
    flex: 1;
    padding: 0.75rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.product-list-admin {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-item-admin {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}

.product-item-admin.inactive {
    opacity: 0.5;
}

.product-edit {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.product-edit.active {
    display: block;
}

.admin-form-group {
    margin-bottom: 1rem;
}

.admin-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-text);
}

.admin-form-group input {
    width: 100%;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--light-text);
}

.admin-btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 0.5rem;
}

.admin-btn-edit {
    background: var(--secondary-color);
    color: var(--dark-bg);
}

.admin-btn-toggle {
    background: var(--warning-color);
    color: var(--dark-bg);
}

.admin-btn-save {
    background: var(--success-color);
    color: var(--dark-bg);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        height: 300px;
    }

    .hero-slide {
        background-size: cover;
        background-position: center center;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .nav-menu {
        gap: 0.5rem;
        font-size: 0.85rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .product-card {
        display: flex;
        flex-direction: column;
    }

    .product-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: contain;
        background: #fff;
    }

    .product-card h3 {
        font-size: 0.95rem;
        padding: 0.75rem 0.75rem 0.25rem;
    }

    .product-price {
        font-size: 1rem;
        padding: 0 0.75rem 0.75rem;
    }

    .product-card-actions {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 0.75rem 0.75rem;
    }

    .btn-add-to-cart,
    .btn-view-product {
        font-size: 0.75rem;
        padding: 0.5rem;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-gallery {
        position: static;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
    
    .admin-panel {
        width: 100%;
        right: -100%;
    }

    /* USP Grid - 2 colonnes sur mobile */
    .usp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .usp-card {
        padding: 1rem;
    }

    .usp-icon {
        font-size: 2rem;
    }

    .usp-card h3 {
        font-size: 0.9rem;
    }

    .usp-card p {
        font-size: 0.75rem;
    }

    /* Logo - Fix étirement sur mobile */
    .logo img {
        height: 50px !important;
        width: auto !important;
        object-fit: contain;
    }

    /* Barre de recherche mobile - Fix dropdown */
    .search-bar-container {
        position: relative;
        z-index: 100;
        margin-bottom: 1rem;
    }

    .search-bar {
        position: relative;
    }

    .search-input {
        font-size: 16px; /* Empêche le zoom automatique iOS */
        padding: 0.75rem 2.5rem 0.75rem 1rem;
    }

    .search-dropdown {
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        right: 0;
        z-index: 1000;
        max-height: 60vh;
        background: var(--darker-bg);
        border: 1px solid var(--primary-color);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    }

    .search-dropdown.active {
        display: block !important;
    }

    .search-dropdown-item {
        padding: 0.5rem 0.75rem;
    }

    .search-dropdown-img {
        width: 40px;
        height: 40px;
    }

    .search-dropdown-name {
        font-size: 0.85rem;
    }

    .search-dropdown-price {
        font-size: 0.8rem;
    }

    .section-subtitle {
        display: none;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
}

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

.product-card,
.usp-card {
    animation: fadeIn 0.6s ease forwards;
}

/* Loading States */
.loading-product {
    text-align: center;
    padding: 4rem;
}

.error {
    text-align: center;
    color: var(--error-color);
    padding: 3rem;
    font-size: 1.2rem;
}

/* ==========================================================================
   BADGE RUPTURE DE STOCK - Diagonal Overlay
   ========================================================================== */

.product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.stock-badge-rupture {
    position: absolute;
    top: 15px;
    left: -35px;
    background: #ff006e;
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 40px;
    transform: rotate(-45deg);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 0, 110, 0.4);
}

/* Badge sur les cartes produits */
.product-card {
    position: relative;
}

.product-card .product-image {
    position: relative;
}

.product-card.out-of-stock .product-image::before {
    content: "RUPTURE DE STOCK";
    position: absolute;
    top: 15px;
    left: -35px;
    background: #ff006e;
    color: white;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 40px;
    transform: rotate(-45deg);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 0, 110, 0.4);
}

.product-card.out-of-stock {
    opacity: 0.8;
}

/* Badge sur page produit */
.product-main-image {
    position: relative;
}

.product-page .out-of-stock-badge {
    position: absolute;
    top: 20px;
    left: -40px;
    background: #ff006e;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 50px;
    transform: rotate(-45deg);
    z-index: 10;
    box-shadow: 0 3px 10px rgba(255, 0, 110, 0.5);
}

/* ==========================================================================
   ADVANCED ADMIN PANEL STYLES
   ========================================================================== */

/* Panel Overlay & Container */
.admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-panel.active {
    display: block;
    opacity: 1;
}

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

.admin-container {
    position: relative;
    width: 95%;
    max-width: 1400px;
    height: 90vh;
    margin: 5vh auto;
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Admin Header */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #0f1433, #1a1f4a);
    border-bottom: 2px solid var(--primary-color);
}

.admin-header h2 {
    font-size: 1.5rem;
    color: var(--light-text);
    margin: 0;
}

.admin-close {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.admin-close:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: rotate(90deg);
}

/* Toolbar */
.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--darker-bg);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-toolbar-left,
.admin-toolbar-right {
    position: relative; /* CRITIQUE pour position: absolute du menu */
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Buttons */
.admin-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.admin-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 110, 0.4);
}

.admin-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    border-color: var(--border-color);
}

.admin-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--secondary-color);
}

.admin-btn-success {
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    color: var(--dark-bg);
    font-size: 1rem;
}

.admin-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.4);
}

.admin-btn-bulk {
    background: var(--gradient-secondary);
    color: white;
}

.admin-btn-bulk:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.4);
}

.admin-btn-bulk:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.admin-btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.admin-btn-icon:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.admin-btn-icon.danger:hover {
    background: var(--error-color);
}

/* Checkbox */
.admin-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    color: var(--gray-text);
    font-size: 0.9rem;
}

.admin-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* Bulk Actions Menu */
.bulk-actions-menu {
    position: absolute;
    top: 100%;
    right: 2rem;
    margin-top: 0.5rem;
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 100;
    min-width: 200px;
}

.bulk-actions-menu button {
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    color: var(--light-text);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.bulk-actions-menu button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

.bulk-actions-menu button.danger:hover {
    background: rgba(255, 0, 110, 0.2);
    color: var(--error-color);
}

/* Content Area */
.admin-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background: var(--darker-bg);
}

.admin-content::-webkit-scrollbar {
    width: 10px;
}

.admin-content::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

.admin-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

.admin-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Product List */
.product-list-admin {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Product Item */
.product-item-admin {
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-item-admin:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 0, 110, 0.2);
}

.product-item-admin.selected {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, var(--dark-bg), rgba(0, 217, 255, 0.05));
}

.product-item-admin.inactive {
    opacity: 0.6;
}

/* Product Item Header */
.product-item-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
}

.product-item-image {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.product-item-image .stock-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--error-color);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    text-align: center;
    padding: 2px 0;
}

.product-item-info {
    flex: 1;
}

.product-item-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.product-item-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.product-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
}

.product-stock {
    color: var(--success-color);
}

.product-stock.out-of-stock {
    color: var(--error-color);
}

.product-stock.low-stock {
    color: var(--warning-color);
}

.product-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-status.active {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success-color);
}

.product-status.inactive {
    background: rgba(255, 0, 110, 0.2);
    color: var(--error-color);
}

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

/* Edit Form */
.product-edit-form {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border-color);
}

.edit-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-section.full-width {
    grid-column: 1 / -1;
}

.form-section h4 {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--gray-text);
    font-size: 0.85rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--light-text);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.form-group small {
    color: var(--gray-text);
    font-size: 0.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

/* Image Manager */
.image-manager {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.gallery-item.main-image {
    border-color: var(--secondary-color);
    box-shadow: 0 0 16px rgba(0, 217, 255, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--secondary-color);
    color: var(--dark-bg);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.gallery-set-main,
.gallery-delete {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.gallery-set-main:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.gallery-delete:hover {
    background: var(--error-color);
    transform: scale(1.1);
}

.no-images {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--gray-text);
    padding: 2rem;
}

.image-upload {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Footer */
.admin-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #0f1433, #1a1f4a);
    border-top: 2px solid var(--primary-color);
}

.admin-footer-info {
    color: var(--gray-text);
    font-size: 0.85rem;
}

/* Save Container & Progress Bar */
.admin-save-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.save-progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    min-width: 250px;
}

.save-progress-bar {
    width: 0%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: width 0.3s ease;
    flex: 1;
}

.save-progress-text {
    color: var(--light-text);
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Loading & Empty States */
.loading-state,
.empty-state,
.error-state {
    text-align: center;
    padding: 4rem 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.empty-state p {
    color: var(--gray-text);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.error-state p {
    color: var(--error-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Notifications */
.admin-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    background: var(--dark-bg);
    border: 2px solid var(--success-color);
    border-radius: 8px;
    color: var(--light-text);
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}

.admin-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.admin-notification.error {
    border-color: var(--error-color);
}

/* Responsive Admin Panel */
@media (max-width: 768px) {
    .admin-container {
        width: 100%;
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-toolbar-left,
    .admin-toolbar-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .edit-form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .product-item-header {
        flex-wrap: wrap;
    }
    
    .product-item-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .admin-footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ==========================================================================
   UX IMPROVEMENTS - Product Cards Actions & Quantity Selectors
   ========================================================================== */

/* Product Card Actions */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card-link {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    padding-top: 0;
}

.product-qty-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-label {
    font-size: 0.85rem;
    color: var(--gray-text);
    font-weight: 600;
}

.qty-select {
    padding: 0.4rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--light-text);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
}

.qty-select:hover,
.qty-select:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.qty-select option {
    background: #fff;
    color: #1a1a2e;
}

.btn-add-to-cart {
    width: 100%;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-view-product {
    width: 100%;
    padding: 0.65rem 1rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.85rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-view-product:hover {
    border-color: var(--secondary-color);
    background: rgba(0, 217, 255, 0.1);
    color: var(--secondary-color);
}

.out-of-stock-notice {
    color: var(--error-color);
    font-size: 0.85rem;
    text-align: center;
    font-weight: 600;
    margin: 0;
}

/* Quantity Selector on Product Page */
.product-quantity-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.quantity-selector-product {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--light-text);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.qty-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.qty-btn:active {
    transform: scale(0.95);
}

#product-qty {
    width: 70px;
    height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--light-text);
    font-size: 1rem;
    font-weight: 600;
}

.stock-indicator {
    color: var(--gray-text);
    font-size: 0.85rem;
    font-style: italic;
}

/* ==========================================================================
   CHECKOUT PAGE
   ========================================================================== */

.checkout-page {
    min-height: 60vh;
    padding: 3rem 0;
}

.checkout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.product-checkout-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.product-checkout-image {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

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

.product-checkout-details {
    flex: 1;
}

.product-checkout-details h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.product-checkout-details .product-price {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#qty-input {
    width: 70px;
    height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--light-text);
    font-size: 1rem;
    font-weight: 600;
}

.product-features-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.product-features-mini span {
    font-size: 0.8rem;
    color: var(--gray-text);
    padding: 0.3rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.checkout-summary {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.checkout-summary h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-line:last-child {
    border-bottom: none;
}

.summary-total {
    font-size: 1.2rem;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid var(--primary-color);
}

.checkout-info {
    margin-bottom: 2rem;
}

.info-box {
    padding: 1.5rem;
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 12px;
}

.info-box h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.info-box ul {
    list-style: none;
}

.info-box ul li {
    padding: 0.4rem 0;
    color: var(--gray-text);
}

/* Postal Code Validation */
.postal-code-validation {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.postal-code-validation label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--light-text);
}

.postal-code-validation input {
    width: 100%;
    max-width: 200px;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    letter-spacing: 2px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--light-text);
    transition: all 0.3s ease;
}

.postal-code-validation input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.2);
}

.postal-code-validation input.error {
    border-color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}

.postal-code-validation input.success {
    border-color: #2ed573;
    background: rgba(46, 213, 115, 0.1);
}

.postal-code-error {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 71, 87, 0.15);
    border: 1px solid rgba(255, 71, 87, 0.4);
    border-radius: 8px;
    color: #ff6b7a;
    font-size: 0.9rem;
}

.postal-code-success {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(46, 213, 115, 0.15);
    border: 1px solid rgba(46, 213, 115, 0.4);
    border-radius: 8px;
    color: #2ed573;
    font-size: 0.9rem;
}

.checkout-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--light-text);
    border: none;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 0, 110, 0.3);
}

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

.btn-secondary {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--light-text);
}

.btn-secondary:hover {
    border-color: var(--secondary-color);
    background: rgba(0, 217, 255, 0.1);
}

.checkout-secure {
    text-align: center;
    padding: 1rem;
    color: var(--gray-text);
    font-size: 0.85rem;
}

.checkout-secure svg {
    vertical-align: middle;
    margin-right: 0.3rem;
}

.checkout-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.trust-badges {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.trust-badges h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.trust-badge {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-badge:last-child {
    border-bottom: none;
}

.badge-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.badge-content h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.badge-content p {
    font-size: 0.8rem;
    color: var(--gray-text);
    margin: 0;
}

.contact-box {
    padding: 1.5rem;
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 12px;
    text-align: center;
}

.contact-box h4 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.contact-box p {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.btn-outline {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    color: var(--secondary-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--dark-bg);
}

/* ==========================================================================
   SUCCESS PAGE
   ========================================================================== */

.success-page {
    min-height: 70vh;
    padding: 3rem 0;
}

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

.success-icon {
    margin: 0 auto 2rem;
}

.success-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--success-color), #00cc77);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-message {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 3rem;
}

.success-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.detail-box {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.detail-box h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.detail-box p {
    color: var(--gray-text);
    line-height: 1.6;
}

.steps-list {
    list-style: none;
    counter-reset: step-counter;
}

.steps-list li {
    counter-increment: step-counter;
    padding: 0.75rem 0 0.75rem 2.5rem;
    position: relative;
    color: var(--gray-text);
    line-height: 1.6;
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.btn-tertiary {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--gray-text);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-tertiary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.success-reassurance {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.reassurance-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.reassurance-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.reassurance-text strong {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.reassurance-text p {
    font-size: 0.75rem;
    color: var(--gray-text);
    margin: 0;
}

/* ==========================================================================
   CANCEL PAGE
   ========================================================================== */

.cancel-page {
    min-height: 70vh;
    padding: 3rem 0;
}

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

.cancel-icon {
    margin: 0 auto 2rem;
}

.cancel-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--warning-color);
}

.cancel-message {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 3rem;
}

.cancel-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.cancel-options {
    list-style: none;
    padding-left: 0;
}

.cancel-options li {
    padding: 0.5rem 0;
    color: var(--gray-text);
}

details {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

details:last-child {
    border-bottom: none;
}

summary {
    cursor: pointer;
    padding: 0.5rem 0;
    color: var(--light-text);
    font-weight: 600;
    user-select: none;
}

summary:hover {
    color: var(--secondary-color);
}

details p {
    padding: 0.75rem 0 0 1rem;
    color: var(--gray-text);
    margin: 0;
}

.cancel-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 2rem auto;
}

.cancel-reassurance {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.cancel-reassurance h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.reassurance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
    
    .checkout-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .product-checkout-card {
        flex-direction: column;
    }
    
    .product-checkout-image {
        width: 100%;
        height: 200px;
    }
    
    .checkout-actions {
        flex-direction: column;
    }
    
    .success-reassurance,
    .reassurance-grid {
        grid-template-columns: 1fr;
    }
    
    .product-quantity-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .cancel-actions {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .checkout-title,
    .success-title,
    .cancel-title {
        font-size: 1.8rem;
    }
    
    .product-card-actions {
        padding: 0.75rem;
    }
    
    .btn-add-to-cart,
    .btn-view-product {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   CART BADGE IN HEADER (NEW)
   ========================================================================== */

.cart-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 0, 110, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.cart-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 110, 0.4);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--error-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    min-width: 20px;
    height: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 0, 110, 0.6);
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Mobile: hide text, show only icon */
@media (max-width: 768px) {
    .cart-text {
        display: none;
    }
    
    .cart-link {
        padding: 0.5rem;
        min-width: 45px;
        justify-content: center;
    }
}

/* ==========================================================================
   NOTIFICATION TOASTS (NEW)
   ========================================================================== */

.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--dark-bg);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.notification-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-icon {
    font-size: 1.5rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.notification-message {
    color: var(--light-text);
    font-weight: 600;
    font-size: 0.95rem;
}

.notification-success {
    border-color: var(--success-color);
}

.notification-success .notification-icon {
    background: var(--success-color);
    color: var(--dark-bg);
}

.notification-error {
    border-color: var(--error-color);
}

.notification-error .notification-icon {
    background: var(--error-color);
    color: white;
}

.notification-warning {
    border-color: var(--warning-color);
}

.notification-warning .notification-icon {
    background: var(--warning-color);
    color: var(--dark-bg);
}

.notification-info {
    border-color: var(--secondary-color);
}

.notification-info .notification-icon {
    background: var(--secondary-color);
    color: var(--dark-bg);
}

@media (max-width: 768px) {
    .notification-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }
}

/* ==========================================================================
   CART PAGE - MULTI-PRODUCTS (NEW)
   ========================================================================== */

.cart-items-container {
    margin-bottom: 2rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.cart-item:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

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

.cart-item-name {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.cart-item-price {
    font-size: 1rem;
    color: var(--gray-text);
    margin: 0;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-input {
    width: 60px;
    height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--light-text);
    font-size: 1rem;
    font-weight: 600;
}

.qty-minus,
.qty-plus {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--light-text);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.qty-minus:hover,
.qty-plus:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.cart-item-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 100px;
    text-align: right;
}

.cart-item-remove {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 0, 110, 0.1);
    border: 1px solid var(--error-color);
    border-radius: 8px;
    color: var(--error-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    background: var(--error-color);
    color: white;
    transform: scale(1.1);
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
}

.empty-cart p {
    font-size: 1.5rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    /* Grille 2 colonnes pour le panier mobile */
    .cart-items-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .cart-item {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .cart-item-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: contain;
        background: #fff;
        justify-self: center;
    }

    .cart-item-info {
        text-align: center;
    }

    .cart-item-name {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    .cart-item-price {
        font-size: 0.8rem;
    }

    .cart-item-quantity {
        justify-content: center;
    }

    .qty-input {
        width: 40px;
        height: 32px;
        font-size: 0.85rem;
    }

    .qty-minus,
    .qty-plus {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .cart-item-total {
        text-align: center;
        font-size: 1rem;
        min-width: auto;
    }

    .cart-item-remove {
        align-self: center;
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    /* Panier vide - pleine largeur */
    .empty-cart {
        grid-column: 1 / -1;
    }
}

/* ==========================================================================
   PRODUCT DETAIL - ENHANCED GALLERY (NEW)
   ========================================================================== */

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.thumbnail:hover {
    border-color: var(--secondary-color);
    opacity: 0.9;
}

.thumbnail.active {
    border-color: var(--primary-color);
    opacity: 1;
}

.product-stock-ok {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    margin: 1rem 0;
    display: inline-block;
}

.product-stock-out {
    background: rgba(255, 0, 110, 0.1);
    border: 1px solid var(--error-color);
    color: var(--error-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    margin: 1rem 0;
    display: inline-block;
}

.restock-notice {
    color: var(--gray-text);
    font-style: italic;
    margin-top: 0.5rem;
}

.product-quantity-selector {
    margin: 1.5rem 0;
}

.product-quantity-selector label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray-text);
    font-weight: 600;
}

.btn-large {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 1rem;
}

.product-price-large {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 1rem 0;
}

.shipping-info {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   STOCK BADGE ON CARDS (NEW)
   ========================================================================== */

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.stock-badge-rupture {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--error-color);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255, 0, 110, 0.5);
}

.product-card.out-of-stock {
    opacity: 0.7;
}

.product-card.out-of-stock:hover {
    opacity: 0.85;
}

/* ==========================================================================
   ADMIN PANEL - BULK ACTIONS (NEW)
   ========================================================================== */

.bulk-actions-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--dark-bg);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    min-width: 200px;
    overflow: hidden;
}

.bulk-actions-menu button {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    text-align: left;
    background: transparent;
    color: var(--light-text);
    border: none;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.bulk-actions-menu button:last-child {
    border-bottom: none;
}

.bulk-actions-menu button:hover {
    background: rgba(255, 255, 255, 0.05);
}

.bulk-actions-menu button.danger {
    color: var(--error-color);
}

.bulk-actions-menu button.danger:hover {
    background: rgba(255, 0, 110, 0.2);
}

/* ==========================================================================
   ADMIN BULK ACTIONS MODAL v2.1 - ROBUSTE
   ========================================================================== */

/* Modale bulk actions - ADMIN ONLY */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000; /* Au-dessus de tout */
    animation: fadeIn 0.2s ease;
}

.admin-modal.active {
    display: flex !important;
}

.admin-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.admin-modal-content {
    position: relative;
    background: var(--dark-bg);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    z-index: 1;
}

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

.admin-modal-header h3 {
    margin: 0;
    color: var(--light-text);
}

.admin-modal-close {
    background: transparent;
    border: none;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: all 0.2s ease;
}

.admin-modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.admin-modal-body {
    padding: 1rem;
}

.bulk-action-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bulk-action-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.bulk-action-item.danger:hover {
    background: rgba(255, 0, 110, 0.1);
    border-color: var(--error-color);
}

.bulk-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.bulk-action-item strong {
    display: block;
    color: var(--light-text);
    margin-bottom: 0.25rem;
}

.bulk-action-item small {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Responsive modal */
@media (max-width: 768px) {
    .admin-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .bulk-action-item {
        padding: 0.75rem;
    }
    
    .bulk-icon {
        font-size: 1.5rem;
    }
}

/* Product selection checkbox */
.product-select-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 10;
}

/* ==========================================================================
   IMAGE PLACEHOLDER & FALLBACKS (NEW)
   ========================================================================== */

.product-image-placeholder {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--border-color);
    color: var(--gray-text);
    font-size: 0.9rem;
    text-align: center;
    padding: 2rem;
    border-radius: 12px 12px 0 0;
}

/* ==========================================================================
   UTILITY CLASSES (NEW)
   ========================================================================== */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden {
    display: none !important;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 0.8s linear infinite;
}

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

/* ==========================================================================
   BANNER ADMIN PANEL STYLES
   ========================================================================== */

/* Banner Admin Panel Container */
.banner-admin-panel .admin-container {
    max-width: 900px;
}

/* Banner List */
.banners-list-admin {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
}

/* Banner Item */
.banner-item-admin {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.banner-item-admin:hover {
    border-color: var(--primary-color);
}

.banner-item-admin.inactive {
    opacity: 0.6;
}

.banner-item-admin.dragging {
    opacity: 0.5;
    transform: scale(0.98);
}

.banner-item-admin.drag-over {
    border-color: var(--secondary-color);
    background: rgba(0, 217, 255, 0.1);
}

/* Banner Item Header */
.banner-item-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

/* Drag Handle */
.banner-drag-handle {
    cursor: grab;
    padding: 0.5rem;
    font-size: 1.2rem;
    color: var(--gray-text);
    user-select: none;
}

.banner-drag-handle:active {
    cursor: grabbing;
}

/* Banner Preview */
.banner-item-preview {
    width: 160px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: var(--border-color);
}

.banner-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.2), rgba(0, 217, 255, 0.2));
    color: var(--light-text);
    text-align: center;
    padding: 0.5rem;
}

.banner-preview-placeholder span {
    font-weight: 600;
    font-size: 0.8rem;
}

.banner-preview-placeholder small {
    font-size: 0.7rem;
    color: var(--gray-text);
}

/* Banner Item Info */
.banner-item-info {
    flex: 1;
    min-width: 0;
}

.banner-item-info h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.banner-item-info h3 small {
    font-weight: normal;
    color: var(--gray-text);
}

.banner-description {
    font-size: 0.85rem;
    color: var(--gray-text);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.banner-item-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
}

.banner-order {
    color: var(--secondary-color);
}

.banner-status.active {
    color: var(--success-color);
}

.banner-status.inactive {
    color: var(--error-color);
}

/* Banner Item Actions */
.banner-item-actions {
    display: flex;
    gap: 0.5rem;
}

/* Banner Edit Form */
.banner-edit-form {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
}

.banner-edit-grid {
    grid-template-columns: 1fr 1fr;
}

/* Banner Image Manager */
.banner-image-manager {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.banner-image-preview {
    width: 300px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--border-color);
    position: relative;
    flex-shrink: 0;
}

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

.banner-image-preview .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-text);
    font-size: 0.9rem;
}

.remove-image-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 0, 110, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-image-btn:hover {
    background: var(--error-color);
}

.banner-image-upload {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.banner-image-upload small {
    color: var(--gray-text);
    font-size: 0.8rem;
}

/* Form Help Text */
.form-help {
    font-size: 0.85rem;
    color: var(--gray-text);
    margin-bottom: 1rem;
}

/* Admin Info in Toolbar */
.admin-info {
    font-size: 0.85rem;
    color: var(--gray-text);
}

/* ==========================================================================
   PRODUCT DRAG & DROP STYLES
   ========================================================================== */

.product-item-admin {
    transition: all 0.3s ease;
}

.product-item-admin.dragging {
    opacity: 0.5;
    transform: scale(0.98);
}

.product-item-admin.drag-over {
    border-color: var(--secondary-color);
    background: rgba(0, 217, 255, 0.1);
}

.product-drag-handle {
    cursor: grab;
    padding: 0.5rem;
    font-size: 1.2rem;
    color: var(--gray-text);
    user-select: none;
    margin-right: 0.5rem;
}

.product-drag-handle:active {
    cursor: grabbing;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS FOR BANNER ADMIN
   ========================================================================== */

@media (max-width: 768px) {
    .banner-item-header {
        flex-wrap: wrap;
    }

    .banner-item-preview {
        width: 120px;
        height: 60px;
    }

    .banner-edit-grid {
        grid-template-columns: 1fr;
    }

    .banner-image-manager {
        flex-direction: column;
    }

    .banner-image-preview {
        width: 100%;
        height: 120px;
    }
}

/* ==========================================================================
   FAQ SECTION (SEO)
   ========================================================================== */

.faq-section {
    padding: 4rem 0;
    background: var(--darker-bg);
}

.faq-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--light-text);
    text-align: center;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all var(--transition-speed);
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-item summary {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--light-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform var(--transition-speed);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 1.5rem 1.25rem;
    color: var(--gray-text);
    line-height: 1.7;
}

/* ==========================================================================
   GUIDE PAGE (SEO CONTENT)
   ========================================================================== */

.guide-page {
    padding: 3rem 0;
    background: var(--darker-bg);
}

.guide-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.guide-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.guide-intro {
    font-size: 1.2rem;
    color: var(--gray-text);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Table of Contents */
.guide-toc {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.guide-toc h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.guide-toc ol {
    list-style: decimal;
    margin-left: 1.5rem;
}

.guide-toc li {
    margin-bottom: 0.5rem;
}

.guide-toc a {
    color: var(--gray-text);
    transition: color var(--transition-speed);
}

.guide-toc a:hover {
    color: var(--primary-color);
}

/* Guide Sections */
.guide-section {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.guide-section:last-of-type {
    border-bottom: none;
}

.guide-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
    padding-top: 1rem;
}

.guide-section h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.guide-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-text);
    margin-bottom: 1.5rem;
}

.guide-section ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.guide-section ul li {
    font-size: 1.05rem;
    color: var(--gray-text);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.guide-section strong {
    color: var(--light-text);
}

/* Comparison Table */
.comparison-table {
    overflow-x: auto;
    margin: 2rem 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--dark-bg);
    font-weight: 600;
    color: var(--light-text);
}

.comparison-table td {
    color: var(--gray-text);
}

.comparison-table td strong {
    color: var(--success-color);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Guide Products Grid */
.guide-products {
    margin: 2rem 0;
}

/* Guide Conclusion */
.guide-conclusion {
    background: rgba(255, 0, 110, 0.05);
    border: 1px solid var(--primary-color);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 3rem;
}

.guide-conclusion h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.guide-conclusion p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-text);
    margin-bottom: 1rem;
}

.guide-conclusion p:last-child {
    margin-bottom: 0;
}

.guide-conclusion a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ==========================================================================
   RELATED PRODUCTS SECTION
   ========================================================================== */

.related-products {
    padding: 4rem 0;
    background: var(--dark-bg);
}

.related-products h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--light-text);
}

.related-products .products-grid {
    margin-bottom: 2rem;
}

/* ==========================================================================
   PRODUCT FEATURES LIST
   ========================================================================== */

.product-features-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
}

.product-features-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--gray-text);
    border-bottom: 1px solid var(--border-color);
}

.product-features-list li:last-child {
    border-bottom: none;
}

.product-features-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.product-features-list strong {
    color: var(--light-text);
}

/* ==========================================================================
   RESPONSIVE GUIDE & FAQ
   ========================================================================== */

@media (max-width: 768px) {
    .guide-header h1 {
        font-size: 1.8rem;
    }

    .guide-intro {
        font-size: 1rem;
    }

    .guide-section h2 {
        font-size: 1.5rem;
    }

    .guide-section h3 {
        font-size: 1.2rem;
    }

    .guide-toc {
        padding: 1.5rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .faq-item summary {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .faq-item p {
        padding: 0 1rem 1rem;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .header,
    .footer,
    .cta-section,
    .cart-link,
    .product-actions,
    .carousel-btn,
    .carousel-dots {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .product-detail {
        grid-template-columns: 1fr;
    }

    a {
        color: inherit;
        text-decoration: underline;
    }
}

/* END OF NEW STYLES */
