:root {
    --primary-background-color: #FFFFFF;
    --secondary-background-color: #e2dad4;
    --primary-color: #3A5A40;
    --secondary-color: #A3B18A;
    --accent-color: #D4A373;
    --font-title: 'Playfair Display', serif;
    --border-radius: 8px;
    --transition: all 0.3s ease-in-out;
}

/* --- Navbar Actions --- */
.navbar-actions {
    display: flex;
    align-items: center;
    position: relative;
}
.navbar-menu{
    display: flex;
    align-items: center;
}
.navbar-actions{
    margin-right: 1rem;
}
.retour-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), #c49660);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(212, 163, 115, 0.3);
    border: 2px solid transparent;
}

.retour-button:hover {
    background: white;
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 163, 115, 0.4);
}
/* --- Back Arrow for Mobile --- */
.back-arrow {
    display: none;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    border: none ;
    border-radius: 15%;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(58, 90, 64, 0.3);
    position: relative;
    z-index: 1000;
    margin-right: 1rem;
}

.back-arrow:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}
.back-arrow::before {
    content: "←";
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sr-only {
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  border:0;
}

/* --- Products Page Specific Styles --- */
.products-detail-section {
    padding-top: 120px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #f8f6f2 0%, var(--secondary-background-color) 100%);
}

.back-to-home {
    text-align: center;
    margin: 4rem 0 0.5rem;
}

/* --- Enhanced Product Cards --- */
.product-card {
    width: 75%;
    margin: 0 auto 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #f0f4f8);
    border: 3px solid transparent;
    box-shadow: 
        0 10px 30px rgba(58, 90, 64, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent-color);
}

.product-card.active {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    background: var(--primary-background-color);
}

.product-card.active::before {
    opacity: 1;
}

.product-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    padding: 1.5rem 1.5rem 0;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.product-card p {
    color: #666;
    font-style: italic;
}

/* --- Accordion Styles --- */
.product-detail {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--primary-background-color);
    border-top: 2px solid var(--primary-color);
}

.product-detail:not(.hidden) {
    max-height: 3000px;
}

.product-detail.hidden {
    max-height: 0;
}

/* --- Product Content --- */
.product-content {
    padding: 2.5rem;
    animation: fadeInContent 0.8s ease-out;
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    text-align: justify;
    background: var(--secondary-background-color);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
}

/* --- Enhanced Image Carousel --- */
.product-images-carousel {
    position: relative;
    margin-bottom: 2.5rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-slide .image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1rem;
    font-style: italic;
    text-align: center;
    font-weight: 500;
}

/* --- Enhanced Carousel Controls --- */

.carousel-btn:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(58, 90, 64, 0.4);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

/* --- Enhanced Carousel Indicators --- */

/* --- Auto-play Progress Indicator --- */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--accent-color);
    transition: width 0.1s linear;
    z-index: 5;
}

/* --- Product Extra Info --- */
.product-extra-info {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 
        0 5px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.product-extra-info li {
    padding: 1rem 0;
    border-bottom: 1px solid #e8f5e1;
    font-size: 1rem;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 3rem;
}

.product-extra-info li:last-child {
    border-bottom: none;
}

.product-extra-info li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.3rem;
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(58, 90, 64, 0.1);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Special Note --- */
.product-special-note {
    background: linear-gradient(135deg, var(--primary-color), #2a4a30);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    font-weight: 600;
    margin-top: 2rem;
    box-shadow: 0 10px 25px rgba(58, 90, 64, 0.3);
    position: relative;
    overflow: hidden;
}

.product-special-note::before {
    content: "💡";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-size: 1.2rem;
}

/* --- Animations --- */
@keyframes fadeInContent {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes autoplayProgress {
    from { width: 0%; }
    to { width: 100%; }
}

/* --- Responsive Design --- */
@media (max-width: 840px) {
    .retour-button {
        display: none; /* Hide on mobile, will be in hamburger menu */
    }
    
    .back-arrow {
        display: block; /* Show arrow on mobile */
    }
}

@media (max-width: 768px) {
    .product-card {
        width: 90%;
    }
    
    .product-content {
        padding: 2rem;
    }
    
    .carousel-container {
        height: 250px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
    
    .product-description {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .back-arrow {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}