:root {
    --primary-color: #662400;
    --secondary-color: #FFF4E1;
    --accent-color: #FFF4E1;
    --dark-color: #3C2A1E;
    --light-color: #FFF8F0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background: var(--primary-color);
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    position: relative;
    height: 50px;
    width: 160px;
}

.logo-img {
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 2000;
}

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

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
}

nav ul li {
    margin-left: 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

nav ul li a.active {
    background-color: var(--accent-color);
    color: var(--dark-color) !important;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
}

.cart-icon:hover {
    color: var(--accent-color);
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--accent-color);
    color: var(--dark-color);
    font-size: 0.7rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pulsation animation for the Discover button */
@keyframes pulse {
    0% {
        transform: scale(0.7);
        box-shadow: 0 0 0 0 rgba(212, 167, 106, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(212, 167, 106, 0);
    }

    100% {
        transform: scale(0.7);
        box-shadow: 0 0 0 0 rgba(212, 167, 106, 0);
    }
}

/* Hero Section */
.hero {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 30px;
    margin: 0;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--dark-color);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.hero .btn {
    animation: pulse 2s infinite;
    position: relative;
    overflow: hidden;
}

.hero .btn:hover {
    animation: none;
    /* Stop pulsation on hover */
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(212, 167, 106, 0.4);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Products Section */
.products {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--primary-color);
    display: inline-block;
}

.section-title h2:after {
    content: '';
    display: block;
    width: 50%;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto;
}

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

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

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-img {
    height: 180px;
    overflow: hidden;
}

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

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

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.product-desc {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 12px;
    line-height: 1.4;
}

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.format-selector {
    display: flex;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.format-option {
    flex: 1;
    text-align: center;
    padding: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.8rem;
}

.format-option.active {
    background-color: var(--primary-color);
    color: white;
}

.add-to-cart {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.9rem;
}

.add-to-cart:hover {
    background-color: var(--dark-color);
}

/* Cart */
.cart-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: flex-end;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
}

.cart-overlay.show {
    visibility: visible;
    opacity: 1;
}

.cart {
    width: 100%;
    max-width: 500px;
    background-color: var(--light-color);
    height: 100%;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.accordion-body {
    padding: 20px 25px;
    color: #555;
    background-color: white;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Parallax Sections Custom Styling */
.history-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: background-position 0.1s ease-out;
}

.parallax-cta {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

/* Mobile responsive fallback to prevent visual glitches on touch screens */
@media (max-width: 991px) {

    .hero,
    .history-section,
    .parallax-cta {
        background-attachment: scroll !important;
        background-position: center center !important;
    }
}

.cart-overlay.show .cart {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

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

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
    min-height: 0;
}

.cart-footer {
    flex-shrink: 0;
    padding-top: 16px;
    border-top: 1px solid #e0d0c0;
    margin-top: 12px;
}

/* Scrollbar premium pour les items du panier */
.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-track {
    background: transparent;
}

.cart-items::-webkit-scrollbar-thumb {
    background-color: rgba(102, 36, 0, 0.15);
    border-radius: 10px;
}

.cart-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--primary-color);
    position: relative;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 12px;
}

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

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

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.cart-item-details {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.quantity-btn {
    background: var(--accent-color);
    border: 1px solid var(--primary-color);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.quantity-value {
    margin: 0 8px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.remove-item {
    color: #ff6b6b;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    position: absolute;
    top: 5px;
    right: 5px;
}

.cart-total {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: right;
}

.cart-total span {
    color: var(--primary-color);
}

.checkout-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

.whatsapp-btn {
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.whatsapp-btn:hover {
    background-color: #3C2A1E;
}

/* Floating button */
.floating-order-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.floating-order-btn:hover {
    transform: scale(1.1);
    background-color: var(--dark-color);
}

.floating-order-btn i {
    font-size: 1.2rem;
}

.floating-order-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent-color);
    color: var(--dark-color);
    font-size: 0.7rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0 15px;
    text-align: center;
}

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

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    margin-bottom: 8px;
    display: block;
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

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

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .logo {
        height: 40px;
        width: 100px;
    }

    .logo-img {
        width: 100px;
        height: 100px;
        position: absolute;
        top: 50%;
        left: 0;
        transform: translateY(-50%);
        z-index: 2000;
    }

    nav ul {
        margin-top: 0;
        flex-wrap: nowrap;
    }

    nav ul li {
        margin: 0 0 0 10px;
    }

    nav ul li a {
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .cart-icon {
        font-size: 0.9rem;
    }

    .cart-count {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
        top: -8px;
        right: -8px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        gap: 15px;
    }

    .product-img {
        height: 140px;
    }

    .product-info {
        padding: 12px;
    }

    .product-title {
        font-size: 1rem;
    }

    .product-desc {
        font-size: 0.8rem;
    }

    .format-option {
        font-size: 0.75rem;
        padding: 5px;
    }

    .cart {
        padding: 15px;
        max-width: 100%;
    }

    .cart-header h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.2rem;
    }

    nav ul li {
        margin-left: 8px;
    }

    nav ul li a {
        font-size: 0.75rem;
    }

    .hero {
        height: 100vh;
    }

    .section-title h2 {
        font-size: 1.7rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        gap: 25px;
    }

    .product-img {
        height: 180px;
    }

    .product-info {
        padding: 12px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none !important;
}

.preloader-logo {
    width: 180px;
    height: auto;
    animation: logo-zoom 1.5s ease-out forwards;
    opacity: 0;
}

@keyframes logo-zoom {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1.3);
        opacity: 1;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 340px) {
    nav ul li:nth-child(3) {
        display: none;
    }

    nav ul li:nth-child(4) {
        display: none;
    }
}

/* Dedicated Cart Page CSS */
.cart-page-item {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.cart-page-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.cart-page-item-img {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
}

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

.cart-page-item-details {
    flex: 1;
    padding-right: 30px;
}

.cart-page-item-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 4px;
}

.cart-page-item-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 6px;
}

.cart-page-item-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
}

.cart-page-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.cart-page-item-delete {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #ff6b6b;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    transition: var(--transition);
}

.cart-page-item-delete:hover {
    color: #fa5252;
    transform: scale(1.15);
}

.checkout-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-color);
}

.checkout-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.empty-cart-view {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.empty-cart-view i {
    font-size: 4.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-cart-view p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #666;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.checkout-total-row span:last-child {
    color: var(--primary-color);
}

@media (max-width: 576px) {
    .cart-page-item {
        flex-direction: row;
        align-items: flex-start;
        padding: 10px;
    }

    .cart-page-item-img {
        width: 70px;
        height: 70px;
        margin-right: 12px;
    }

    .cart-page-item-title {
        font-size: 0.95rem;
    }

    .cart-page-item-details {
        padding-right: 20px;
    }
}

/* FAQ Accordion Custom Styling */
.accordion-item {
    border-color: #eee !important;
    border-radius: 12px !important;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.accordion-button {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600 !important;
    color: var(--dark-color) !important;
    background-color: white !important;
    border: none !important;
    box-shadow: none !important;
    padding: 20px 25px;
    transition: var(--transition);
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color) !important;
    background-color: var(--secondary-color) !important;
}

.accordion-button::after {
    filter: sepia(100%) saturate(1000%) hue-rotate(340deg);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(102, 36, 0, 0.1) !important;
    border-color: var(--primary-color) !important;
}

.accordion-body {
    padding: 20px 25px;
    color: #555;
    background-color: white;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Fix Tailwind - Bootstrap Accordion Collapse Conflict */
.accordion-collapse.collapse {
    visibility: visible !important;
}