/* =============================================
   FakeEcom - Theme Parapharmacie
   ============================================= */

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

:root {
    /* Couleurs Parapharmacie */
    --pharma-green: #00A651;
    --pharma-green-dark: #008c45;
    --pharma-green-light: #e8f5e9;
    --pharma-blue: #0077b6;
    --pharma-blue-light: #e3f2fd;
    --pharma-teal: #00897b;

    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;

    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    --info: #2196f3;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);

    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
}

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

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

/* =============================================
   Top Bar - Bandeau Parapharmacie
   ============================================= */

.top-bar {
    background: linear-gradient(90deg, var(--pharma-green) 0%, var(--pharma-teal) 100%);
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 500;
    overflow: hidden;
}

.top-bar-marquee {
    display: flex;
    align-items: center;
    height: 38px;
    overflow: hidden;
}

.top-bar-marquee-track {
    display: flex;
    animation: marquee 35s linear infinite;
    white-space: nowrap;
}

.top-bar-marquee-track:hover {
    animation-play-state: paused;
}

.top-bar-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 50px;
}

.top-bar-marquee-item svg {
    width: 18px;
    height: 18px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-25%); }
}

/* =============================================
   Header - Style Pharmacie Pro
   ============================================= */

.header {
    background: var(--white);
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-main {
    border-bottom: 1px solid var(--gray-200);
}

.header-main .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo img {
    height: 45px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--pharma-green);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--pharma-green);
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 800px;
    display: flex;
    height: 48px;
    border: 1px solid var(--pharma-green);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
}

.search-category-wrapper {
    position: relative;
    display: none;
    border-right: 1px solid var(--gray-200);
}

@media (min-width: 768px) {
    .search-category-wrapper {
        display: block;
    }
}

.search-category {
    height: 100%;
    padding: 0 36px 0 16px;
    border: none;
    background: var(--gray-50);
    font-size: 0.9rem;
    color: var(--gray-700);
    cursor: pointer;
    appearance: none;
    min-width: 160px;
}

.search-category:focus {
    outline: none;
    background: var(--gray-100);
}

.search-category-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--gray-500);
    pointer-events: none;
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}

.search-bar {
    position: relative;
}

.search-icon {
    width: 20px;
    height: 20px;
    color: var(--gray-400);
    margin-left: 16px;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    height: 100%;
    padding: 0 16px 0 12px;
    border: none;
    font-size: 0.95rem;
    outline: none;
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    display: none;
    position: absolute;
    z-index: 9999;
    width: 100%;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 400px;
    overflow-y: auto;
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--gray-100);
}

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

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: var(--pharma-green-light);
}

.autocomplete-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: var(--gray-100);
}

.autocomplete-text {
    flex: 1;
    min-width: 0;
}

.autocomplete-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-800);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-name strong {
    color: var(--pharma-green);
}

.autocomplete-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pharma-green);
    margin-top: 2px;
}

.autocomplete-loading,
.autocomplete-no-results,
.autocomplete-error {
    padding: 16px;
    text-align: center;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.autocomplete-error {
    color: var(--danger);
}

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

@media (min-width: 768px) {
    .search-icon {
        color: var(--gray-500);
    }
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 8px;
}

.header-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    color: var(--gray-700);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.header-action-btn:hover {
    background: var(--pharma-green-light);
    color: var(--pharma-green);
}

.header-action-btn svg {
    width: 24px;
    height: 24px;
}

.header-action-label {
    font-size: 0.7rem;
    font-weight: 500;
    display: none;
}

@media (min-width: 768px) {
    .header-action-label {
        display: block;
    }
}

/* Categories Navigation */
.categories-nav {
    background: #FFF;
}

.categories-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.categories-list::-webkit-scrollbar {
    display: none;
}

.category-link {
    display: block;
    padding: 12px 20px;
    color: #000;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.category-link:hover {
    background: rgb(0, 154, 98);
    color: #fff;
}

.category-link-promo {
    background: var(--danger);
}

.category-link-promo:hover {
    background: #d32f2f;
}

/* =============================================
   Container
   ============================================= */

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

@media (max-width: 768px) {
    .product-page-wrapper .container {
        padding: 0;
    }
    
    .product-page-wrapper .product-thumbnails {
        padding: 0 15px;
    }
    
    .product-page-wrapper .similar-products {
        padding-left: 15px;
        padding-right: 15px;
        background-color: #fff;
    }

    .similar-products {
        margin-top: 0px;
    }

    .product-page-wrapper {
        padding-bottom: 0px;
    }

    .product-page-wrapper .product-info-inner {
        margin: 0px;
        border: 0px;
        border-radius: 0px;
    }

    .product-image-main {
        border: 0px;
    }
    
}

.main {
    min-height: calc(100vh - 200px);
    padding: 0;
}

/* =============================================
   Hero - Parapharmacie
   ============================================= */

.hero {
    background: linear-gradient(135deg, var(--pharma-green) 0%, var(--pharma-teal) 50%, var(--pharma-blue) 100%);
    color: var(--white);
    padding: 50px 30px;
    border-radius: 0;
    margin: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

@media (min-width: 768px) {
    .hero {
        padding: 70px 40px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 24px;
}

/* Hero Badges */
.hero-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-badge svg {
    width: 20px;
    height: 20px;
}

/* =============================================
   Trust Section - Pharmacie
   ============================================= */

.trust-section {
    background: var(--white);
    padding: 30px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.trust-icon {
    width: 48px;
    height: 48px;
    background: var(--pharma-green-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pharma-green);
}

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

.trust-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-800);
}

.trust-text {
    font-size: 0.8rem;
    color: var(--gray-600);
}

/* =============================================
   Categories Bar (chips style)
   ============================================= */

.categories-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.category-chip {
    padding: 10px 20px;
    background: var(--white);
    border: 2px solid var(--pharma-green);
    border-radius: 50px;
    color: var(--pharma-green);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.category-chip:hover {
    background: var(--pharma-green);
    color: var(--white);
}

/* =============================================
   Section Titles
   ============================================= */

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 28px;
    background: var(--pharma-green);
    border-radius: 2px;
}

.products-section,
.featured-section,
.similar-products {
    margin-bottom: 50px;
    padding-top: 36px;
}

.products-section h2,
.featured-section h2,
.similar-products h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 24px;
    padding-left: 16px;
    border-left: 4px solid var(--pharma-green);
}

.home-intro {
    color: var(--gray-600);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 28px;
}

/* ========================================
   PAGES LEGALES
======================================== */
.legal-page {
    padding: 40px 0 60px;
}

.legal-page h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--pharma-green);
}

.legal-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--gray-200);
}

.legal-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 35px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 25px 0 12px;
}

.legal-content p {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 15px;
}

.legal-content ul,
.legal-content ol {
    margin: 15px 0 20px 20px;
    color: var(--gray-700);
}

.legal-content li {
    line-height: 1.7;
    margin-bottom: 8px;
    padding-left: 5px;
}

.legal-content ul li::marker {
    color: var(--pharma-green);
}

.legal-content strong {
    color: var(--gray-900);
    font-weight: 600;
}

.legal-content a {
    color: var(--pharma-green);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--pharma-green-dark);
}

.company-info {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-radius: var(--radius);
    border-left: 4px solid var(--pharma-green);
}

.company-info h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 15px;
    padding: 0;
    border: none;
}

.company-info p {
    margin-bottom: 8px;
    color: var(--gray-700);
}

.company-info a {
    color: var(--pharma-green);
    font-weight: 500;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 25px 20px;
    }

    .legal-page h1 {
        font-size: 1.5rem;
    }

    .legal-content h2 {
        font-size: 1.2rem;
    }

    .company-info {
        padding: 20px;
    }
}

/* =============================================
   Products Grid - Parapharmacie Pro
   ============================================= */

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Product Card - Clean Pharma Style */
.product-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: border-color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--pharma-green);
    box-shadow: 0 4px 20px rgba(0, 166, 81, 0.1);
}

.product-card-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.product-card-image {
    display: block;
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--gray-50);
}

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

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

.product-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--pharma-green);
    color: var(--white);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

.product-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-category {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pharma-green);
    margin-bottom: 6px;
}

.product-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 0px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-title a {
    color: var(--gray-800);
    transition: color 0.2s;
}

.product-card-title a:hover {
    color: var(--pharma-green);
}

.product-card-summary {
    font-size: 0.75rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-desc {
    font-size: 0.8rem;
    color: var(--gray-500);
    line-height: 1.5;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--gray-100);
}

.product-card-pricing {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.product-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
}

.product-card-price-old {
    font-size: 0.8rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

.product-card-btn {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(90deg, var(--pharma-green) 0%, var(--pharma-teal) 100%);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.product-card-btn svg {
    width: 18px;
    height: 18px;
}

/* Product Card - Ratings */
.product-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 3px 0;
    font-size: 0.8rem;
}

.product-card-rating .stars-filled {
    display: flex;
    gap: 1px;
}

.product-card-rating .star-icon {
    color: #fbbf24;
    font-size: 0.95rem;
    line-height: 1;
}

.product-card-rating .rating-value {
    font-weight: 600;
    color: var(--gray-700);
}

/* Product Card - Badge Variants */
.product-card-badge.badge-bestseller {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.product-card-badge.badge-new {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.product-card-badge.badge-discount {
    background: var(--pharma-red, #ef4444);
    color: white;
}

/* Product Card - Social Proof */
.product-card-social-proof {
    margin-top: auto;
    padding-top: 8px;
}

.product-card-social-proof .sales-count {
    font-size: 0.7rem;
    color: var(--pharma-green);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-card-social-proof .sales-count::before {
    content: "\\2713";
    font-weight: bold;
}

/* Sort Dropdown */
.sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.sort-bar .results-count {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.sort-bar .sort-select {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-bar .sort-select label {
    font-size: 0.85rem;
    color: var(--gray-600);
    white-space: nowrap;
}

.sort-bar .sort-select {
    position: relative;
}

.sort-bar .sort-select select {
    padding: 8px 35px 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    background-color: white;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    min-width: 160px;
}

.sort-bar .sort-select::after {
    content: "▼";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #333;
    pointer-events: none;
}

.sort-bar .sort-select select:focus {
    outline: none;
    border-color: var(--pharma-green);
}

/* Legacy support */
.price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pharma-green);
}

.price-old {
    font-size: 0.9rem;
    color: var(--gray-500);
    text-decoration: line-through;
}

.price-large {
    font-size: 1.75rem;
}

/* =============================================
   Buttons - Parapharmacie
   ============================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--pharma-green-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--pharma-green);
    border: 2px solid var(--pharma-green);
}

.btn-outline:hover {
    background: var(--pharma-green);
    color: var(--white);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-cart {
    width: 100%;
    background: var(--pharma-green);
    color: var(--white);
    padding: 12px;
    border-radius: var(--radius);
    font-weight: 600;
}

.btn-cart:hover {
    background: var(--pharma-green-dark);
    color: var(--white);
}

/* =============================================
   Breadcrumb
   ============================================= */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.breadcrumb a {
    color: #00a651;
    font-weight: 700;
}

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

.breadcrumb svg {
    width: 16px;
    height: 16px;
    color: var(--gray-400);
}

/* =============================================
   Product Page - Pharmacie Pro
   ============================================= */

.product-page-wrapper {
    background: var(--gray-50);
    padding-bottom: 0px;
}

.product-page-wrapper .breadcrumb {
    padding: 20px 0;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (min-width: 1024px) {
    .product-layout {
        grid-template-columns: 1fr 1fr;
        gap: 13px;
    }
}

/* Product Media */
.product-media {
    position: relative;
}

.product-image-main {
    position: relative;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.product-image-main img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
}

.product-discount-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--pharma-green);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    z-index: 2;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    padding: 10px;
}

.thumb {
    width: 70px;
    height: 70px;
    padding: 4px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.2s;
}

.thumb:hover,
.thumb.active {
    border-color: var(--pharma-green);
}

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

/* Thumbnails en bas à gauche sur mobile */
@media (max-width: 767px) {
    .product-layout {
        margin-bottom: 0px;
    }

    .product-media {
        position: relative;
    }

    .product-image-main {
        position: relative;
        border: 0px;
        border-radius: 0px;
    }

    .product-thumbnails {
        position: absolute;
        bottom: 12px;
        left: 12px;
        margin-top: 0;
        gap: 8px;
        z-index: 3;
        padding: 0;
    }

    .product-thumbnails .thumb {
        width: 60px;
        height: 60px;
        padding: 3px;
        background: var(--white);
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        border: 2px solid var(--white);
    }

    .product-thumbnails .thumb.active {
        border-color: var(--pharma-green);
    }
}

/* Product Info */
.product-info {
    position: relative;
}

@media (min-width: 768px) {
    .product-info {
        position: sticky;
        top: 100px;
        height: fit-content;
    }
}

.product-info-inner {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 24px;
}

@media (min-width: 768px) {
    .product-info-inner {
        padding: 30px;
    }
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.product-ref {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-stock {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    font-weight: 700;
}

.product-stock.in-stock {
    color: var(--pharma-green);
}

.product-stock.low-stock {
    color: #dc3545;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
    margin: 0 0 12px 0;
}

@media (min-width: 768px) {
    .product-title {
        font-size: 1.5rem;
    }
}

/* Product Page - Social Proof avec étoiles */
.product-social-proof {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    padding: 3px 14px;
    border-radius: 50px;
    border: 1px solid #a2dfc1;
}

.product-social-proof .stars-filled {
    display: flex;
    gap: 2px;
}

.product-social-proof .star-icon {
    color: #fbbf24;
    font-size: 1rem;
    line-height: 1;
}

.product-social-proof .rating-value {
    font-weight: 700;
    color: #000;
    font-size: 0.8rem;
}

.product-social-proof .separator {
    color: #000;
}

.product-social-proof .sales-info {
    font-size: 0.8rem;
    color: #000;
    font-weight: 600;
}

.product-excerpt,
.product-summary {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.85;
    margin: 14px 0 14px 0;
}

.product-excerpt p,
.product-summary p {
    margin-bottom: 18px;
}

.product-excerpt strong,
.product-summary strong {
    color: var(--gray-900);
    font-weight: 600;
}

.product-excerpt .check,
.product-summary .check {
    color: #22c55e;
    font-weight: bold;
}

.product-excerpt ul,
.product-summary ul {
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.product-excerpt ul li,
.product-summary ul li {
    position: relative;
    padding: 12px 0 12px 35px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 1.05rem;
    line-height: 1.6;
}

.product-excerpt ul li:last-child,
.product-summary ul li:last-child {
    border-bottom: none;
}

.product-excerpt ul li::before,
.product-summary ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 12px;
    width: 24px;
    height: 24px;
    background: #dcfce7;
    color: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
}


/* Packs - Style Siwakecom */
.product-packs {
    margin-bottom: 24px;
}

.packs-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 12px;
}

.packs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pack-item {
    position: relative;
    border: 1px solid #D4AF37;
    background-color: rgba(212, 175, 55, 0.05);
    border-radius: var(--radius);
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.pack-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pack-item:hover {
    border-color: #D4AF37;
    background-color: rgba(212, 175, 55, 0.1);
}

.pack-item.selected {
    border-width: 2px;
    border-color: var(--pharma-green);
    background-color: rgba(0, 166, 81, 0.05);
}

.pack-item.pack-promo {
    border-color: #D4AF37;
}

.pack-item.pack-promo .pack-option-qty {
    background-color: rgba(212, 175, 55, 0.15);
    color: #B8960C;
}

/* Pack Content Layout */
.pack-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.pack-option-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

/* Checkbox Indicator */
.pack-option-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.pack-option-check svg {
    width: 12px;
    height: 12px;
    color: transparent;
}

.pack-item.selected .pack-option-check {
    background-color: var(--pharma-green);
    border-color: var(--pharma-green-dark);
}

.pack-item.selected .pack-option-check svg {
    color: var(--white);
}

/* Quantity Badge */
.pack-option-qty {
    width: 38px;
    height: 38px;
    background-color: rgba(0, 166, 81, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8125rem;
    color: var(--pharma-green-dark);
    flex-shrink: 0;
}

/* Pack Thumbnail Image */
.pack-option-image {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.pack-option-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(0, 166, 81, 0.2);
}

.pack-item.selected .pack-option-image img {
    border-color: var(--pharma-green);
}

/* Pack Info */
.pack-option-info {
    flex: 1;
    min-width: 0;
}

.pack-option-info h4 {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.8125rem;
    line-height: 1.3;
    margin: 0 0 2px 0;
}

.pack-option-info p {
    font-size: 0.6875rem;
    color: var(--pharma-green);
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 3px;
}

.pack-option-info p svg {
    width: 14px;
    height: 14px;
}

/* Pricing */
.pack-option-prices {
    text-align: right;
    flex-shrink: 0;
}

.pack-option-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pharma-green-dark);
    white-space: nowrap;
}

.pack-item.pack-promo .pack-option-price {
    color: #B8960C;
}

.pack-option-old-price {
    font-size: 0.625rem;
    color: var(--gray-400);
    text-decoration: line-through;
}

/* Discount Badge */
.pack-badge {
    position: absolute;
    top: -8px;
    left: 12px;
    background-color: #D4AF37;
    color: var(--white);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    z-index: 1;
}

/* Economy Tag */
.pack-economy {
    display: inline-block;
    font-size: 0.6875rem;
    color: var(--pharma-green);
    font-weight: 600;
    margin-top: 2px;
}

/* Legacy support */
.pack-qty {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-800);
    min-width: 80px;
}

.pack-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--pharma-green);
}

/* Buy Button */
.btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(90deg, var(--pharma-green) 0%, var(--pharma-teal) 100%);
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s;
}

.btn-buy:hover {
    background: linear-gradient(90deg, var(--pharma-green) 0%, var(--pharma-teal) 100%);
    color: var(--white);
}

/* Pricing */
.product-pricing {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 5px 20px;
    margin-bottom: 24px;
    margin-top: 24px;
}

.pricing-main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.product-price {
    font-size: 2.0rem;
    font-weight: 600;
    color: var(--pharma-green);
    letter-spacing: -0.5px;
}

.product-price-old {
    font-size: 1.1rem;
    color: var(--gray-400);
    text-decoration: line-through;
    font-weight: 500;
}

.price-discount-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.pricing-savings {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #86efac;
    color: #16a34a;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-savings svg {
    flex-shrink: 0;
}

.redirect-notice {
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin: 10px 0 0 0;
}

/* Guarantees */
.product-guarantees {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-100);
}

.guarantee {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.guarantee svg {
    width: 24px;
    height: 24px;
    color: var(--pharma-green);
    flex-shrink: 0;
}

.guarantee div {
    display: flex;
    flex-direction: column;
}

.guarantee strong {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-800);
}

.guarantee span {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Description Section */
.product-description {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden;
}

.description-tabs {
    display: flex;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.description-tab {
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-600);
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.description-tab.active {
    color: var(--pharma-green);
    background: var(--white);
    border-bottom: 2px solid var(--pharma-green);
    margin-bottom: -1px;
}

.description-tab:hover:not(.active) {
    color: var(--gray-900);
    background: var(--gray-100);
}

.product-description .description-text {
    padding: 30px;
}

@media (min-width: 768px) {
    .product-description .description-text {
        padding: 40px 50px;
    }
}

.product-description h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 35px 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-description h2:first-of-type {
    margin-top: 0;
}

.product-description h2::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--pharma-green);
    border-radius: 2px;
}

.description-text {
    font-size: 1.05rem;
    color: var(--gray-700);
    line-height: 1.85;
}

.description-text p {
    margin-bottom: 18px;
}

.description-text strong {
    color: var(--gray-900);
    font-weight: 600;
}

.description-text ul {
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.description-text ul li {
    position: relative;
    padding: 12px 0 12px 35px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 1.05rem;
    line-height: 1.6;
}

.description-text ul li:last-child {
    border-bottom: none;
}

.description-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 12px;
    width: 24px;
    height: 24px;
    background: #dcfce7;
    color: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
}

/* Similar Products */
.similar-products h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 20px 0;
    padding-left: 12px;
    border-left: 4px solid var(--pharma-green);
}

/* Product Gallery */
.product-gallery {
    position: relative;
}

@media (min-width: 768px) {
    .product-gallery {
        position: sticky;
        top: 180px;
        height: fit-content;
    }
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    background: var(--pharma-green);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    text-transform: uppercase;
}

.main-image {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
}

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

.badge-large {
    font-size: 0.9rem;
    padding: 8px 16px;
}

/* Gallery Arrows */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.gallery-arrow:hover {
    border-color: var(--pharma-green);
    color: var(--pharma-green);
}

.gallery-arrow svg {
    width: 20px;
    height: 20px;
}

.gallery-arrow-prev { left: 12px; }
.gallery-arrow-next { right: 12px; }

.gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
}

/* Thumbnails */
.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    border: 2px solid var(--gray-200);
    transition: all 0.2s;
}

.thumb:hover,
.thumb.active {
    border-color: var(--pharma-green);
}

/* Mobile/Desktop Headers */
.product-header-mobile {
    display: block;
    margin-top: 16px;
}

@media (min-width: 768px) {
    .product-header-mobile {
        display: none;
    }
}

.product-header-desktop {
    display: none;
}

@media (min-width: 768px) {
    .product-header-desktop {
        display: block;
    }
}

/* Social Proof */
.product-social-proof {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    padding: 3px 14px;
    border-radius: 50px;
    border: 1px solid #a2dfc1;
}

.social-proof-stars {
    display: flex;
    gap: 2px;
}

.social-proof-stars .star {
    width: 18px;
    height: 18px;
    color: #ffc107;
}

.social-proof-count {
    font-size: 0.875rem;
    color: var(--gray-700);
    font-weight: 600;
}

.social-proof-separator {
    color: var(--gray-400);
}

.social-proof-text {
    font-size: 0.875rem;
    color: var(--pharma-green);
    font-weight: 500;
}

/* Product Title */
.product-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 12px 0;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .product-page-title {
        font-size: 1.75rem;
    }
}

@media (min-width: 1024px) {
    .product-page-title {
        font-size: 2rem;
    }
}

/* Product Details */
.product-details {
    display: flex;
    flex-direction: column;
}

/* Short Description */
.product-short-desc {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border-left: 4px solid var(--pharma-green);
}

/* Features List */
.product-features {
    margin-bottom: 20px;
}

.product-features ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--gray-700);
}

.product-features li svg {
    width: 22px;
    height: 22px;
    color: var(--pharma-green);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Price Box */
.product-price-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, var(--pharma-green-light) 0%, var(--pharma-blue-light) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--pharma-green);
}

.discount-badge {
    background: var(--danger);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Pack Options */
.pack-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.pack-options-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.pack-option {
    position: relative;
    border: 2px solid var(--gray-200);
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.pack-option:hover {
    border-color: var(--pharma-green);
}

.pack-option.selected {
    border-color: var(--pharma-green);
    background: var(--pharma-green-light);
}

.pack-option.pack-popular {
    border-color: var(--pharma-blue);
    background: var(--pharma-blue-light);
}

.pack-option input[type="radio"] {
    display: none;
}

.pack-option-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pack-option-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pack-option-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--gray-300);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pack-option-check svg {
    width: 14px;
    height: 14px;
    color: transparent;
}

.pack-option.selected .pack-option-check {
    background: var(--pharma-green);
    border-color: var(--pharma-green);
}

.pack-option.selected .pack-option-check svg {
    color: var(--white);
}

.pack-option-qty {
    width: 44px;
    height: 44px;
    background: var(--pharma-green);
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.pack-option-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0 0 4px 0;
}

.pack-option-info p {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin: 0;
}

.pack-option-prices {
    text-align: right;
}

.pack-option-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pharma-green);
}

.pack-option-old {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-decoration: line-through;
}

.pack-badge {
    position: absolute;
    top: -10px;
    left: 16px;
    background: var(--danger);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
}

.pack-popular-tag {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--pharma-blue);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
}

/* Add to Cart Bar */
.add-to-cart-bar {
    width: 100%;
    background: var(--pharma-green);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 56px;
}

@media (min-width: 768px) {
    .add-to-cart-bar {
        height: 64px;
    }
}

.qty-btn {
    width: 48px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-btn:hover {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.qty-btn svg {
    width: 20px;
    height: 20px;
}

.qty-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qty-label {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
}

.qty-input {
    width: 36px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
    background: transparent;
    border: none;
    outline: none;
}

.cart-divider {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.3);
    margin: 0 12px;
}

.add-to-cart-btn {
    flex: 1;
    height: 100%;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.add-to-cart-btn:hover {
    background: rgba(0,0,0,0.1);
}

.add-to-cart-btn svg {
    width: 22px;
    height: 22px;
}

.add-to-cart-separator {
    opacity: 0.6;
}

.add-to-cart-price {
    font-size: 1.1rem;
}

/* Affiliate Notice */
.affiliate-notice {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--gray-500);
    text-align: center;
}

/* Reassurance Tags */
.reassurance-tags {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.reassurance-tag {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.reassurance-tag svg {
    width: 24px;
    height: 24px;
    color: var(--pharma-green);
}

.reassurance-tag-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-800);
}

.reassurance-tag-text {
    font-size: 0.7rem;
    color: var(--gray-500);
}

/* =============================================
   Full Width Description Section
   ============================================= */

.product-full-width {
    margin-top: 40px;
}

.product-description-full {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .product-description-full {
        padding: 40px;
    }
}

.product-description-full h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--pharma-green);
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-description-full h3 svg {
    width: 24px;
    height: 24px;
    color: var(--pharma-green);
}

.product-description-full .description-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-700);
    columns: 1;
}

@media (min-width: 1024px) {
    .product-description-full .description-content {
        columns: 2;
        column-gap: 40px;
    }
}

.product-description-full .description-content p {
    margin-bottom: 16px;
}

/* =============================================
   Reviews Section - Full Width
   ============================================= */

.reviews-section-full {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .reviews-section-full {
        padding: 40px;
    }
}

.reviews-section-full h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviews-section-full h3 svg {
    width: 24px;
    height: 24px;
    color: var(--pharma-green);
}

.reviews-count {
    font-weight: 400;
    color: var(--gray-500);
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--pharma-green-light);
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
}

.reviews-average {
    display: flex;
    align-items: baseline;
}

.average-score {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--pharma-green);
}

.average-max {
    font-size: 1.25rem;
    color: var(--gray-500);
}

.reviews-stars-large {
    display: flex;
    gap: 4px;
}

.reviews-stars-large .star {
    width: 28px;
    height: 28px;
    color: var(--gray-300);
}

.reviews-stars-large .star.star-filled {
    color: #ffc107;
}

.reviews-text {
    font-size: 0.95rem;
    color: var(--gray-600);
}

.reviews-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .reviews-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .reviews-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.review-card {
    padding: 20px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--pharma-green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.review-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-800);
}

.review-verified {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--pharma-green);
    font-weight: 500;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.star-sm {
    width: 16px;
    height: 16px;
    color: var(--gray-300);
}

.star-sm.star-filled {
    color: #ffc107;
}

.review-text {
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.6;
    margin-bottom: 8px;
}

.review-date {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* Stars */
.star {
    color: var(--gray-300);
}

.star.star-filled {
    color: #ffc107;
}

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

.similar-products {
    margin-top: 40px;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 30px;
}

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

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-info {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.pagination-numbers {
    display: flex;
    gap: 6px;
}

.pagination-number {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.pagination-number:hover {
    border-color: var(--pharma-green);
    color: var(--pharma-green);
}

.pagination-number.active {
    background: var(--pharma-green);
    border-color: var(--pharma-green);
    color: var(--white);
}

/* Search Page */
.search-page {
    padding: 40px 0;
}

.search-header {
    margin-bottom: 30px;
}

.search-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.search-count {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.search-error {
    padding: 20px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius);
    color: #dc2626;
    margin-bottom: 20px;
}

/* =============================================
   Footer - Parapharmacie
   ============================================= */

.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 50px 0 30px;
    margin-top: 60px;
}

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

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--pharma-green);
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.7;
}

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

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--gray-400);
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

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

.disclaimer {
    margin-top: 12px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* =============================================
   Reassurance Section (Bottom)
   ============================================= */

.reassurance-section {
    margin-top: 50px;
    padding: 40px;
    background: linear-gradient(135deg, var(--pharma-green) 0%, var(--pharma-teal) 100%);
    border-radius: var(--radius-xl);
}

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

@media (min-width: 768px) {
    .reassurance-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.reassurance-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.reassurance-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reassurance-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.reassurance-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reassurance-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
}

.reassurance-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
}

/* =============================================
   No Results
   ============================================= */

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-600);
}

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

@media (max-width: 768px) {
    .header-main .container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding: 16px 20px;
    }

    .search-bar {
        order: 3;
        width: 100%;
        max-width: none;
    }

    .logo {
        flex: none;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

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

    .reassurance-tags {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .header-action-btn {
        padding: 8px;
    }
}
@media (max-width: 767px) {
    .mobile-padding-wrapper {
        padding: 0px;
    }

    .mobile-padding-wrapper .product-description,
    .mobile-padding-wrapper .similar-products {
        border-radius: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        margin: 0 !important;
    }

    .mobile-padding-wrapper .similar-products {
        padding: 20px 15px;
        margin-top: 15px !important;
    }

    .product-description .description-text {
        padding: 20px 15px;
    }

    .description-tab {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .product-description h2 {
        font-size: 1.15rem;
        margin: 25px 0 15px 0;
    }

    .product-description h2::before {
        width: 3px;
        height: 20px;
    }

    .description-text {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .description-text ul li {
        padding: 10px 0 10px 30px;
        font-size: 0.95rem;
    }

    .description-text ul li::before {
        width: 20px;
        height: 20px;
        top: 10px;
        font-size: 0.75rem;
    }

    /* Mobile styles for product-excerpt and product-summary */
    .product-excerpt,
    .product-summary {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .product-excerpt p,
    .product-summary p {
        margin-bottom: 14px;
    }

    .product-excerpt ul li,
    .product-summary ul li {
        padding: 10px 0 10px 30px;
        font-size: 0.95rem;
    }

    .product-excerpt ul li::before,
    .product-summary ul li::before {
        width: 20px;
        height: 20px;
        top: 10px;
        font-size: 0.75rem;
    }

    .product-page-wrapper .breadcrumb {
        justify-content: center;
    }
}

/* Header mobile styles */
.mobile-menu-btn,
.mobile-search-btn {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--gray-700);
}

.mobile-search-btn {
    padding: 8px 12px;
}

.mobile-menu-btn svg,
.mobile-search-btn svg {
    width: 24px;
    height: 24px;
}

/* Mobile search container */
.mobile-search-container {
    display: none;
    padding: 15px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.mobile-search-container.active {
    display: block;
}

.mobile-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    padding: 0 15px;
}

.mobile-search-icon {
    color: var(--gray-400);
    flex-shrink: 0;
}

.mobile-search-input {
    flex: 1;
    padding: 12px 0;
    border: none;
    font-size: 16px;
    outline: none;
    cursor: pointer;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    background: white;
    transform: translateX(-100%);
    transition: transform 0.3s;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-menu-logo img {
    height: 32px;
}

.mobile-menu-logo svg {
    color: var(--pharma-green);
}

.mobile-menu-logo span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gray-900);
}

.mobile-menu-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.mobile-menu-nav {
    padding: 20px;
}

.mobile-menu-link {
    display: block;
    padding: 12px 0;
    color: var(--gray-800);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-menu-link:hover {
    color: var(--pharma-green);
}

.mobile-menu-divider {
    margin: 20px 0;
    border: none;
    border-top: 1px solid var(--gray-200);
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-search-btn {
        display: flex;
    }
    
    .search-bar.desktop-search {
        display: none !important;
    }
    
    .desktop-nav {
        display: none !important;
    }
    
    .header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    
    .logo {
        flex: 1;
    }
    
    
    .header-action-label {
        display: none !important;
    }
    
    .header-actions {
        display: flex;
        gap: 4px;
    }

    .header-action-btn {
        padding: 8px;
    }
}

/* =============================================
   Product Page - Image Modal
   ============================================= */

.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
}

.image-modal.show {
    display: flex;
}

.image-modal .modal-content {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.image-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    transition: background 0.2s;
}

.image-modal .modal-close:hover {
    background: rgba(0,0,0,0.8);
}

.product-image-main > img {
    cursor: zoom-in;
}

/* Product Guarantees Responsive */
@media (max-width: 768px) {
    .product-guarantees {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    .product-guarantees .guarantee {
        flex: 1 1 calc(33.333% - 7px);
        min-width: 95px;
    }

    .product-guarantees .guarantee svg {
        width: 20px;
        height: 20px;
    }

    .product-guarantees .guarantee strong {
        font-size: 0.75rem;
    }

    .product-guarantees .guarantee span {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .product-guarantees .guarantee {
        flex: 1 1 calc(50% - 5px);
    }
}

@media (max-width: 360px) {
    .product-guarantees {
        flex-direction: column !important;
    }

    .product-guarantees .guarantee {
        flex: 1 1 100%;
    }
}

/* Sticky CTA Mobile */
.sticky-cta-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 10px 15px;
}

@media (max-width: 768px) {
    .sticky-cta-mobile {
        display: block;
    }

    .product-page-wrapper {
        padding-bottom: 0px;
    }
}

.sticky-cta-content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
}

.sticky-cta-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.sticky-cta-info {
    flex: 1;
    min-width: 0;
}

.sticky-cta-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sticky-cta-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pharma-green);
}

.sticky-cta-btn {
    background: var(--pharma-green);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
}

.sticky-cta-btn:active {
    background: var(--pharma-green-dark);
}
