:root {
    --bg-cream: #fdfcf0;
    --primary-brown: #3d2b1f;
    --gold: #d4af37;
    --gold-light: #f4e3a4;
    --text-muted: #6b5a4d;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(61, 43, 31, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-cream);
    color: var(--primary-brown);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Header */
.header {
    background: rgba(253, 252, 240, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-icon {
    width: 24px;
    height: 24px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background-color: #bfa030;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--white);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gold-light);
    color: var(--primary-brown);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
    font-weight: 700;
    color: var(--primary-brown);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-image {
    position: relative;
}

.image-gradient {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold);
    border-radius: 20px;
    z-index: -1;
}

.main-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* Product Showcase Section */
.product-showcase {
    padding: 60px 0;
    background: var(--white);
    border-radius: 40px;
    margin: 40px auto;
    box-shadow: var(--shadow);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

/* Gallery Swiper */
.gallery-container {
    position: relative;
    width: 100%;
}

.gallery-swiper {
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--gold-light);
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.gallery-track img {
    width: 100%;
    max-height: 600px;
    flex-shrink: 0;
    object-fit: contain;
    background-color: var(--white);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
}

.gallery-btn {
    width: 40px;
    height: 40px;
    background: rgba(253, 252, 240, 0.8);
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: var(--transition);
}

.gallery-btn:hover {
    background: var(--gold);
    color: var(--white);
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.dot {
    width: 10px;
    height: 10px;
    background: var(--gold-light);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: var(--gold);
    width: 25px;
    border-radius: 10px;
}

/* Product Info */
.product-title {
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.price-section {
    margin: 25px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.price-now {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-brown);
}

.price-before {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-features {
    margin-bottom: 35px;
    background: var(--bg-cream);
    padding: 20px;
    border-radius: 15px;
}

.p-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.p-feature:last-child {
    margin-bottom: 0;
}

.check-icon {
    width: 20px;
    height: 20px;
    color: #27ae60;
}

.btn-block {
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 968px) {
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Dynamic Products Grid */
.products-section {
    padding: 80px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15);
}

.product-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

.product-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-brown);
}

.product-card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-bottom: 15px;
}

.product-card-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
}

.btn-select-product {
    width: 100%;
}

/* Features */
.features {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.section-title .lang-fr {
    font-style: italic;
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--gold);
    margin-bottom: 16px;
    display: block;
}

/* Testimonials */
.testimonials {
    padding: 40px 0;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 30px;
    margin: 20px auto;
}

.testimonials-carousel-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    padding: 10px 0;
}

.testimonials-track {
    display: flex;
    gap: 30px;
    cursor: grab;
    transition: transform 0.5s ease-out;
}

.testimonials-track:active {
    cursor: grabbing;
}

.testimonial-slide {
    flex: 0 0 calc(33.333% - 20px);
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Soft shadows */
    overflow: hidden;
    transition: var(--transition);
    user-select: none;
}

.testimonial-slide img {
    width: 100%;
    height: 320px;
    /* Constrain max vertical height */
    object-fit: contain;
    /* Fit screenshot without cropping */
    background-color: var(--white);
    display: block;
    pointer-events: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: var(--white);
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--gold);
    color: var(--white);
}

.prev-btn {
    right: -10px;
}

.next-btn {
    left: -10px;
}

@media (max-width: 968px) {
    .testimonial-slide {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 576px) {
    .testimonial-slide {
        flex: 0 0 calc(100% - 30px);
    }
}

/* Checkout Section */
.checkout-section {
    padding: 80px 0;
}

.checkout-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gold-light);
}

.checkout-header {
    text-align: center;
    margin-bottom: 30px;
}

.checkout-header h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--primary-brown);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-brown);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Custom Selection UI */
.selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.color-options,
.size-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.color-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.color-circle.active {
    border-color: var(--primary-brown);
    transform: scale(1.1);
}

.size-pill {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 50px;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: var(--transition);
}

.size-pill.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

/* Vibrating/Glowing Submit Button */
.btn-checkout {
    width: 100%;
    padding: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    animation: vibrate 0.3s ease-in-out infinite alternate, glow 2s infinite;
    background: linear-gradient(135deg, var(--gold), #bfa030);
}

@keyframes vibrate {
    0% {
        transform: rotate(-0.5deg);
    }

    100% {
        transform: rotate(0.5deg);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
    }

    50% {
        box-shadow: 0 0 25px rgba(212, 175, 55, 0.8);
    }

    100% {
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
    }
}

.customer {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
}

.customer strong {
    color: var(--gold);
}


.customer span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(61, 43, 31, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    padding: 50px;
    border-radius: 30px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: var(--shadow);
    border: 2px solid var(--gold);
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-icon {
    color: #27ae60;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.modal-content h2 {
    font-size: 2rem;
    color: var(--primary-brown);
    margin-bottom: 15px;
}

.modal-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

#close-modal {
    width: 100%;
    font-size: 1.1rem;
    font-weight: 700;
}


.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-cream);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

/* Bilingual content */
.lang-fr {
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 8px;
    display: block;
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: var(--primary-brown);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 24px;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 24px;
    color: var(--gold);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a:hover {
    color: var(--gold);
    padding-right: 5px;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons i {
    cursor: pointer;
    transition: var(--transition);
}

.social-icons i:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #999;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        margin: 0 auto 40px;
    }

    .hero-actions {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}