/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Palette extracted from designs */
    --color-primary: #4A0404;
    /* Deep Burgundy */
    --color-primary-dark: #2F0202;
    --color-accent: #D4AF37;
    /* Gold Text sometimes */
    --color-secondary: #FAFAFA;
    /* Off-white for backgrounds in cards */
    --color-white: #FFFFFF;
    --color-text-dark: #121212;
    --color-text-muted: #666666;
    --color-border: #EAEAEA;
    --color-green: #27ae60;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;

    --radius-sm: 4px;
    --radius-md: 8px;

    --spacing-container: 120px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-primary);
    /* The whole page background is red in some designs, or specific sections */
    color: var(--color-text-dark);
    line-height: 1.5;
}

/* Typography Overrides */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-white);
}

.text-dark h1,
.text-dark h2,
.text-dark h3 {
    color: var(--color-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.8;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 80px 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-primary);
    border: 1px solid var(--color-white);
}

.btn-outline-white {
    background-color: transparent;
    border: 1px solid var(--color-white);
    color: var(--color-white);
}

/* Header / Navbar */
.top-bar {
    background-color: var(--color-primary);
    color: white;
    padding: 10px 0;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flag-icon {
    background: green;
    color: white;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 0.7em;
    margin-left: 8px;
}

.navbar {
    background-color: var(--color-primary);
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-align: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    color: white;
    text-transform: uppercase;
    line-height: 1;
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    display: block;
    margin-top: 4px;
}



.nav-icons {
    display: flex;
    gap: 20px;
    color: white;
}

/* HERO CAROUSEL */
.hero-carousel {
    height: 600px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: var(--color-primary);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    /* Smooth scale grow */
}

.hero-slide:hover img {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(74, 4, 4, 0.6), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 60px;
    z-index: 10;
}

/* PRODUCTS SECTION */
/* ... */

.social-icon {
    width: 18px;
    /* Adjusted size */
    height: 18px;
    fill: white;
    transition: transform 0.3s, fill 0.3s;
}

/* PRODUCTS SECTION */
.products-section {
    background-color: var(--color-primary);
    text-align: center;
    padding-bottom: 120px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 60px;
    color: white;
    font-weight: 400;
}

.product-card {
    background: white;
    padding: 16px;
    text-align: left;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img-wrapper {
    background: #f4f4f4;
    height: 300px;
    margin-bottom: 16px;
    position: relative;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Bags usually need contain or cover depending on crop */
    mix-blend-mode: multiply;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.product-name {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-primary);
    font-weight: 500;
}

.product-price {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.fav-icon {
    color: var(--color-primary);
    font-size: 1.2rem;
    cursor: pointer;
}

/* NEWSLETTER */
.newsletter-section {
    background-color: var(--color-primary);
    /* Creamy white bar */
    padding: 80px 0;
    text-align: center;
    border-bottom: 20px solid var(--color-primary);
    /* To match that thick border look if needed */
}

.newsletter-box {
    background: #FDFDFD;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
}

.newsletter-title {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    max-width: 600px;
    margin: 24px auto 0;
    gap: 16px;
}

.newsletter-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
}

/* CHECKOUT SPECIFIC */
.checkout-page {
    background-color: var(--color-primary);
    min-height: 100vh;
    padding-bottom: 80px;
}

.checkout-header {
    padding: 40px 0;
    text-align: left;
}

.checkout-header h2 {
    font-style: italic;
    font-size: 2.5rem;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

.card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.card-title {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.form-input {
    background: #F8F8F8;
    border: none;
    padding: 16px;
    width: 100%;
    margin-bottom: 20px;
    font-family: var(--font-body);
}

.order-item-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 24px;
}

.item-thumb {
    width: 80px;
    height: 80px;
    background: #f4f4f4;
    border-radius: 4px;
}

.item-details h4 {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.cod-banner {
    background: white;
    padding: 24px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.cod-icon {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CONFIRMATION SPECIFIC */
.conf-page {
    background-color: var(--color-secondary);
    /* Light background for the card area? No, image showing white card on light BG with red borders? */
    background-color: #F9F9F9;
    min-height: 100vh;
}

.conf-header {
    background-color: var(--color-primary);
    padding: 24px 0;
    text-align: center;
}

.conf-card {
    background: white;
    max-width: 600px;
    margin: -40px auto 40px;
    /* Overlap header */
    padding: 60px 40px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.check-circle {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 24px;
}

.order-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    background: #FAFAFA;
    padding: 24px;
    margin: 32px 0;
    text-align: left;
}

.info-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.info-value {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-dark {
    background: var(--color-primary);
    color: white;
    padding: 60px 0;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.9;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: white;
    transition: transform 0.3s, fill 0.3s;
}

.social-icon:hover {
    transform: translateY(-3px);
    fill: var(--color-accent);
}

/* Footer Styling */
.footer-logo {
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    font-size: 0.85rem;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-copyright {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-carousel {
        height: 400px;
        min-height: 300px;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    /* Mobile Footer - Centralized Layout */
    .footer-dark {
        text-align: center;
    }

    .footer-logo {
        margin-bottom: 20px;
    }

    .social-icons {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .footer-links {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
        margin-top: 20px;
        margin-bottom: 0;
    }

    .footer-links a {
        font-size: 0.8rem;
    }

    .footer-copyright {
        margin-top: 20px;
        padding-top: 20px;
    }
}

/* RTL SUPPORT */
/* Language Switcher Button */
#lang-switcher {
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

#lang-switcher:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px);
}

/* RTL Layout Adjustments */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .nav-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .right-icons {
    flex-direction: row-reverse;
}

[dir="rtl"] .newsletter-form {
    flex-direction: row-reverse;
}

[dir="rtl"] .checkout-grid {
    direction: rtl;
}

[dir="rtl"] .order-item-row {
    flex-direction: row-reverse;
}

[dir="rtl"] .product-meta {
    flex-direction: row-reverse;
}

[dir="rtl"] .social-icons {
    flex-direction: row-reverse;
}

[dir="rtl"] .card-title {
    flex-direction: row-reverse;
}

[dir="rtl"] .cod-banner {
    flex-direction: row-reverse;
}

/* Fix footer links in RTL */
[dir="rtl"] footer a {
    margin-left: 0;
    margin-right: 20px;
}

/* Fix form inputs in RTL */
[dir="rtl"] .form-input,
[dir="rtl"] .newsletter-input {
    text-align: right;
}

/* Fix order info grid in RTL */
[dir="rtl"] .order-info-grid>div:nth-child(2) {
    text-align: left;
}

/* Ensure product cards maintain proper layout in RTL */
[dir="rtl"] .product-card {
    text-align: right;
}

/* Fix confirmation page header in RTL */
[dir="rtl"] .conf-header {
    position: relative;
}