/*
Theme Name: Nubiara
Theme URI: https://nubiara.com
Author: Nubiara Team
Author URI: https://nubiara.com
Description: Thème WordPress premium pour la boutique Nubiara - Bonnets Bandana lifestyle. Optimisé pour WooCommerce, mobile-first et conversion TikTok/Instagram.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nubiara
Tags: e-commerce, woocommerce, lifestyle, fashion, mobile-first

Nubiara Premium E-commerce Theme
*/

/* ========================================
   RESET & BASE STYLES
======================================== */

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

:root {
    /* Brand Colors */
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --dark: #2D3436;
    --light: #FFFFFF;
    --gray-light: #F8F9FA;
    --gray-medium: #DFE6E9;
    --gray-dark: #636E72;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-heading: 'Poppins', var(--font-primary);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

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

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TYPOGRAPHY
======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--dark);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* ========================================
   LAYOUT & CONTAINERS
======================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xxl) 0;
}

.section-sm {
    padding: var(--spacing-xl) 0;
}

/* ========================================
   HEADER & NAVIGATION
======================================== */

.site-header {
    background: var(--light);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-normal);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.site-branding {
    flex-shrink: 0;
    max-width: 300px;
}

.site-logo {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    transition: var(--transition-normal);
}

/* Logo Image */
.site-logo .logo-image {
    height: 45px;
    max-width: 200px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

/* Logo Text */
.site-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    transition: color var(--transition-normal);
    white-space: nowrap;
}

.site-logo:hover {
    color: var(--primary-color);
}

.site-logo:hover .logo-image {
    transform: scale(1.05);
}

.site-logo:hover .logo-text {
    color: var(--primary-color);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.main-navigation a {
    color: var(--dark);
    font-weight: 500;
    padding: var(--spacing-xs) 0;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-fast);
}

.main-navigation a:hover::after,
.main-navigation a.current::after {
    width: 100%;
}

/* Header Cart Icon */
.header-cart {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.header-cart a {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--gray-light);
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition-fast);
}

.header-cart a:hover {
    background: var(--primary-color);
    color: var(--light);
}

.cart-count {
    background: var(--primary-color);
    color: var(--light);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    min-width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

/* 🎯 Animation synchronisation header */
.cart-count.cart-bounce {
    animation: headerCartBounce 0.6s ease;
}

@keyframes headerCartBounce {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.4); }
    50% { transform: scale(1.2); }
    70% { transform: scale(1.3); }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

/* ========================================
   BUTTONS
======================================== */

.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-primary);
}

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

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

.btn-secondary {
    background: transparent;
    color: var(--dark);
    border-color: var(--dark);
}

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

.btn-large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.125rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ========================================
   HERO SECTION
======================================== */

.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--gray-light) 0%, var(--light) 100%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
}

.hero-text h1 {
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.8s ease;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--gray-dark);
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-image {
    position: relative;
    animation: fadeInRight 1s ease 0.3s backwards;
}

/* Carrousel Hero */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Navigation carrousel */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid white;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.carousel-nav:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.15);
}

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

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

/* Indicateurs carrousel */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background: white;
    border-color: var(--primary-color);
    transform: scale(1.2);
}

/* Responsive carrousel */
@media (max-width: 768px) {
    /* Logo responsive */
    .site-branding {
        max-width: 250px;
    }
    
    .site-logo .logo-image {
        height: 35px;
        max-width: 150px;
    }
    
    .site-logo .logo-text {
        font-size: 1.2rem;
    }
    
    /* Offres grid responsive */
    .offers-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .hero-section {
        min-height: auto;
        padding: 40px 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .hero-carousel {
        height: 450px;
        max-height: 60vh;
    }
    
    .carousel-nav {
        width: 45px;
        height: 45px;
        background: rgba(0, 0, 0, 0.7);
    }
    
    .carousel-nav.prev {
        left: 10px;
    }
    
    .carousel-nav.next {
        right: 10px;
    }
    
    .carousel-indicators {
        bottom: 15px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    /* Logo mobile très petit */
    .site-branding {
        max-width: 200px;
    }
    
    .site-logo .logo-image {
        height: 30px;
        max-width: 120px;
    }
    
    .site-logo .logo-text {
        font-size: 1rem;
    }
    
    .hero-carousel {
        height: 400px;
        max-height: 50vh;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .carousel-nav svg {
        width: 20px;
        height: 20px;
    }
}

/* ========================================
   OFFERS SECTION
======================================== */

.offers-section {
    background: var(--light);
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.offer-card {
    background: var(--gray-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    transition: var(--transition-normal);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition-normal);
}

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

.offer-card:hover::before {
    transform: scaleX(1);
}

.offer-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.offer-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.offer-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: var(--spacing-md) 0;
}

.offer-price-old {
    font-size: 1.5rem;
    color: var(--gray-dark);
    text-decoration: line-through;
    display: block;
    margin-bottom: var(--spacing-xs);
}

.offer-features {
    list-style: none;
    text-align: left;
    margin: var(--spacing-lg) 0;
}

.offer-features li {
    padding: var(--spacing-xs) 0;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.offer-features li::before {
    content: '✓';
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.25rem;
}

/* ========================================
   PRODUCT STYLES (WooCommerce)
======================================== */

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    list-style: none;
}

.product {
    background: var(--light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

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

/* Cartes produits personnalisées */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
}

.product-card img {
    transition: transform 0.3s ease;
}

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

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.product-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: var(--primary-color);
    color: var(--light);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    z-index: 10;
}

.product-content {
    padding: var(--spacing-md);
}

.product-title {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
}

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

.add-to-cart {
    width: 100%;
}

/* ========================================
   SINGLE PRODUCT PAGE
======================================== */

.single-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    margin: var(--spacing-xxl) 0;
}

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

.product-main-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.product-main-image img {
    width: 100%;
    height: auto;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
}

.product-thumbnail {
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-fast);
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: var(--primary-color);
}

.product-thumbnail img {
    width: 100%;
    height: auto;
}

.product-info h1 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.product-price-single {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: var(--spacing-md) 0;
}

.product-description {
    margin: var(--spacing-lg) 0;
    line-height: 1.8;
}

.product-meta {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-lg);
    background: var(--gray-light);
    border-radius: var(--radius-md);
}

.product-meta-item {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid var(--gray-medium);
}

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

/* Color Selection */
.product-variants {
    margin: var(--spacing-lg) 0;
}

.variant-label {
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    display: block;
}

.color-swatches {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.color-swatch {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition-fast);
    position: relative;
}

.color-swatch:hover,
.color-swatch.selected {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.color-swatch::after {
    content: attr(data-color);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transition: var(--transition-fast);
}

.color-swatch:hover::after {
    opacity: 1;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.quantity-input {
    display: flex;
    align-items: center;
    border: 2px solid var(--gray-medium);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.quantity-btn {
    background: var(--gray-light);
    border: none;
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 700;
    transition: var(--transition-fast);
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: var(--light);
}

.quantity-number {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

/* Add to Cart Button */
.single-add-to-cart {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.single-add-to-cart .btn {
    flex: 1;
    min-width: 200px;
}

/* ========================================
   CART & CHECKOUT
======================================== */

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-xl) 0;
}

.cart-table th,
.cart-table td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--gray-medium);
}

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

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.cart-item-title {
    font-weight: 600;
}

.cart-totals {
    max-width: 400px;
    margin-left: auto;
    background: var(--gray-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--gray-medium);
}

.cart-total-row.total {
    font-size: 1.5rem;
    font-weight: 700;
    border-top: 2px solid var(--dark);
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-md);
}

/* ========================================
   FOOTER
======================================== */

.site-footer {
    background: var(--dark);
    color: var(--gray-medium);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
    margin-top: var(--spacing-xxl);
}

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

.footer-section h3 {
    color: var(--light);
    margin-bottom: var(--spacing-md);
}

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

.footer-section li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    color: var(--gray-medium);
}

.footer-section a:hover {
    color: var(--light);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   ANIMATIONS
======================================== */

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@media (max-width: 968px) {
    .hero-content,
    .single-product-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .main-navigation {
        display: none;
    }
    
    .main-navigation.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--light);
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .products {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 640px) {
    :root {
        --spacing-xxl: 2rem;
        --spacing-xl: 1.5rem;
    }
    
    .hero-section {
        min-height: 60vh;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
    }
    
    .products {
        grid-template-columns: 1fr;
    }
    
    .cart-table {
        font-size: 0.875rem;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
}

/* ========================================
   UTILITY CLASSES
======================================== */

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

.text-primary {
    color: var(--primary-color);
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.hidden {
    display: none !important;
}

.visible-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hidden-mobile {
        display: none !important;
    }
    
    .visible-mobile {
        display: block;
    }
}

/* ========================================
   NOUVELLE PAGE BOUTIQUE - VARIANTES + GALERIE
======================================== */

/* Barre d'offres sticky */
.sticky-offers-bar {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Grid des variantes */
.variants-grid {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Cartes variantes */
.variant-card {
    animation: fadeIn 0.5s ease-out backwards;
}

.variant-card:nth-child(1) { animation-delay: 0.1s; }
.variant-card:nth-child(2) { animation-delay: 0.15s; }
.variant-card:nth-child(3) { animation-delay: 0.2s; }
.variant-card:nth-child(4) { animation-delay: 0.25s; }
.variant-card:nth-child(5) { animation-delay: 0.3s; }
.variant-card:nth-child(6) { animation-delay: 0.35s; }
.variant-card:nth-child(7) { animation-delay: 0.4s; }
.variant-card:nth-child(8) { animation-delay: 0.45s; }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Galerie lifestyle */
.lifestyle-gallery {
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.gallery-item {
    position: relative;
    animation: zoomIn 0.5s ease-out backwards;
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.15s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }
.gallery-item:nth-child(4) { animation-delay: 0.25s; }
.gallery-item:nth-child(5) { animation-delay: 0.3s; }
.gallery-item:nth-child(6) { animation-delay: 0.35s; }
.gallery-item:nth-child(7) { animation-delay: 0.4s; }
.gallery-item:nth-child(8) { animation-delay: 0.45s; }

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   RESPONSIVE - PAGE BOUTIQUE
======================================== */

/* Tablettes */
@media (max-width: 968px) {
    .sticky-offers-bar .container > div {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .variants-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
        gap: 20px !important;
    }
    
    .lifestyle-gallery {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
        gap: 15px !important;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .sticky-offers-bar {
        font-size: 0.9rem;
    }
    
    .sticky-offers-bar .container {
        padding: 10px 15px !important;
    }
    
    .shop-header h1 {
        font-size: 1.8rem !important;
    }
    
    .shop-header p {
        font-size: 1rem !important;
    }
    
    .variants-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    
    .variant-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .lifestyle-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .gallery-item {
        aspect-ratio: 1 !important;
    }
    
    .why-nubiara-section {
        padding: 40px 20px !important;
    }
    
    .why-nubiara-section > div {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .final-cta h2 {
        font-size: 1.5rem !important;
    }
    
    .final-cta p {
        font-size: 1rem !important;
    }
}

/* Très petit mobile */
@media (max-width: 400px) {
    .sticky-offers-bar {
        font-size: 0.8rem;
    }
    
    .lifestyle-gallery {
        grid-template-columns: 1fr !important;
    }
}

/* ========================================
   MINI PANIER FLOTTANT + NOTIFICATIONS
======================================== */

/* Mini Panier Flottant */
.nubiara-mini-cart {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 280px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nubiara-mini-cart:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

.mini-cart-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.mini-cart-header .cart-icon {
    font-size: 1.5rem;
}

.mini-cart-header .cart-title {
    font-size: 1.1rem;
}

.mini-cart-body {
    padding: 20px;
}

.cart-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.cart-total-amount {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.cart-message {
    background: linear-gradient(135deg, #FFF9E6, #FFE6E6);
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #D97706;
    text-align: center;
    margin-top: 10px;
    animation: pulse 1.5s ease-in-out infinite;
}

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

.mini-cart-actions {
    padding: 15px 20px;
    background: var(--gray-light);
    display: flex;
    gap: 10px;
}

.mini-cart-actions a {
    flex: 1;
    padding: 12px 15px;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-view-cart {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-view-cart:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-checkout {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-checkout:hover {
    background: #FF5252;
    border-color: #FF5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Animation d'ajout au panier */
.nubiara-mini-cart.cart-updated {
    animation: cartBounce 0.6s ease;
}

@keyframes cartBounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-10px); }
    50% { transform: translateY(-5px); }
    75% { transform: translateY(-7px); }
}

/* Notifications Toast */
#nubiara-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.nubiara-toast {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    max-width: 400px;
    font-weight: 600;
    animation: slideInRight 0.3s ease;
    pointer-events: auto;
}

.toast-success {
    border-left: 4px solid #10B981;
    color: #065F46;
}

.toast-error {
    border-left: 4px solid #EF4444;
    color: #991B1B;
}

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

/* Bouton "Ajouté" avec succès */
.nubiara-add-to-cart.added-success {
    background: #10B981 !important;
    animation: successPulse 0.5s ease;
}

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

/* Responsive Mobile */
@media (max-width: 640px) {
    .nubiara-mini-cart {
        width: calc(100% - 40px);
        max-width: 320px;
        bottom: 15px;
        right: 20px;
    }
    
    .mini-cart-header {
        padding: 12px 15px;
    }
    
    .mini-cart-body {
        padding: 15px;
    }
    
    .mini-cart-actions {
        padding: 12px 15px;
        flex-direction: column;
    }
    
    .mini-cart-actions a {
        width: 100%;
    }
    
    #nubiara-toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .nubiara-toast {
        min-width: auto;
        max-width: 100%;
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .nubiara-mini-cart {
        width: calc(100% - 30px);
        bottom: 10px;
        right: 15px;
    }
    
    .mini-cart-header {
        font-size: 0.95rem;
    }
    
    .cart-total {
        font-size: 1rem;
    }
    
    .cart-message {
        font-size: 0.85rem;
    }
}
