@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
    /* Color Palette */
    --color-bg: #F9F7F2;
    /* Warm Beige */
    --color-text-main: #2C2C2C;
    /* Soft Black */
    --color-text-light: #666666;
    --color-primary: #9D8BB0;
    /* Muted Lavender */
    --color-primary-dark: #5D4E75;
    /* Deep Purple */
    --color-accent: #D4AF37;
    /* Metallic Gold */
    --color-accent-hover: #C5A028;
    --color-white: #FFFFFF;
    --color-glass: rgba(255, 255, 255, 0.85);

    /* Shadows */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.1);

    /* Utility Classes */
    .force-ltr {
        direction: ltr !important;
        unicode-bidi: embed;
        text-align: left;
        /* Optional: aligns text to left if desired, but direction is key */
    }

    /* Typography */
    --font-serif: 'Playfair Display',
    serif;
    --font-sans: 'Lato',
    sans-serif;
    --font-arabic: 'Tajawal',
    sans-serif;
}

/* RTL Support */
[dir="rtl"] {
    font-family: var(--font-arabic);
    text-align: right;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6 {
    font-family: var(--font-arabic);
}

[dir="rtl"] .nav-icons {
    order: 2;
    /* Keep icons on left in RTL (visually right because of flex row-reverse?) No, standard LTR flex. */
}

/* Language Switcher */
.lang-switch {
    background: none;
    border: 1px solid var(--color-text-main);
    padding: 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    margin-left: 20px;
    transition: all 0.3s ease;
}

[dir="rtl"] .lang-switch {
    margin-left: 0;
    margin-right: 20px;
}

.lang-switch:hover {
    background: var(--color-text-main);
    color: var(--color-white);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.text-italic {
    font-style: italic;
}

.section {
    padding: 80px 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--color-accent);
    margin: 15px auto 30px;
}

/* Typing Animation Cursor */
.typing-animate::after {
    content: '|';
    color: var(--color-accent);
    animation: blink 1s infinite;
    margin-left: 5px;
    font-weight: 300;
}

[dir="rtl"] .typing-animate::after {
    margin-left: 0;
    margin-right: 5px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.85rem;
    border: none;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
}

.glass-btn.btn-outline {
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-primary-dark);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-soft);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary-dark);
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-main);
    position: relative;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--color-primary-dark);
}

.nav-links .nav-btn {
    color: var(--color-white) !important;
    padding: 10px 25px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary-dark);
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    background: url('../assets/hero.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(45, 36, 36, 0.3), rgba(45, 36, 36, 0.1));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    max-width: 800px;
}

.hero-subtitle {
    display: block;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: var(--color-accent-light);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--color-white);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Highlights */
.highlights {
    background-color: var(--color-white);
}

.tagline {
    display: block;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.card {
    padding: 40px 30px;
    text-align: center;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-accent-light);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--color-accent);
    font-size: 1.5rem;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Footer */
.footer {
    background-color: #26212B;
    /* Darker Theme */
    color: #DDD;
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    filter: brightness(0) invert(1);
    height: 40px;
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--color-accent);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: #999;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        flex-direction: column;
        padding: 30px;
        box-shadow: var(--shadow-soft);
        clip-path: circle(0% at 100% 0);
        transition: all 0.5s ease;
    }

    .nav-links.active {
        clip-path: circle(150% at 100% 0);
    }

    .mobile-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }
}


/* Page Header */
.page-header {
    background-color: var(--color-primary);
    padding: 120px 0 60px;
    text-align: center;
    color: var(--color-white);
    margin-bottom: 60px;
}

.page-header h1 {
    color: var(--color-white);
    font-size: 3rem;
}

/* Products */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

/* Redesigned Product Card */
.product-card {
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-soft);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.product-image {
    height: 320px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    padding: 25px 20px;
    text-align: center;
    background: var(--color-white);
    position: relative;
    z-index: 2;
}

.product-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--color-primary-dark);
}

.product-price {
    color: var(--color-text-light);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: block;
}

.btn-add-to-cart {
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(93, 78, 117, 0.3);
}

.btn-add-to-cart:hover {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(93, 78, 117, 0.4);
}

.btn-add-to-cart::before {
    content: '\f291';
    /* Shopping Basket Icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

/* Forms (Contact / Gift Card) */
.form-container {
    max-width: 600px;
    margin: 0 auto 80px;
    background: var(--color-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-sans);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(157, 139, 176, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* About Page */
.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.split-layout.reversed {
    flex-direction: row-reverse;
}

.split-image {
    flex: 1;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    height: 400px;
    object-fit: cover;
}

.split-content {
    flex: 1;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.info-item {
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    flex-shrink: 0;
}

.map-container {
    height: 300px;
    background-color: #eee;
    border-radius: 20px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
}

@media (max-width: 768px) {

    .split-layout,
    .contact-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .split-layout.reversed {
        flex-direction: column;
    }
}

/* RTL Specific Overrides */
[dir="rtl"] .nav-links a {
    font-family: var(--font-arabic);
    font-weight: 500;
}

[dir="rtl"] .btn {
    font-family: var(--font-arabic);
    letter-spacing: 0;
}

[dir="rtl"] .divider {
    margin-right: auto;
    margin-left: auto;
}

[dir="rtl"] .split-layout {
    flex-direction: row-reverse;
}

[dir="rtl"] .split-layout.reversed {
    flex-direction: row;
}

[dir="rtl"] .contact-grid {
    direction: rtl;
    /* Ensure grid items flow correctly if needed, but grid-template matches source order */
}

[dir="rtl"] .form-label {
    text-align: right;
}

[dir="rtl"] .footer-col h4 {
    text-align: right;
}

[dir="rtl"] .footer-col ul li {
    text-align: right;
}

[dir="rtl"] .footer-col ul li a:hover {
    padding-left: 0;
    padding-right: 5px;
}

[dir="rtl"] .toast {
    border-left: none;
    border-right: 5px solid var(--color-accent);
    transform: translateX(-120%);
    animation: slideInRTL 0.4s forwards;
    left: 30px;
    right: auto;
}

[dir="rtl"] .toast.error {
    border-right-color: #d9534f;
}

@keyframes slideInRTL {
    to {
        transform: translateX(0);
    }
}


/* Shopping Cart Badge */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon {
    position: relative;
    color: var(--color-text-main);
    font-size: 1.2rem;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--color-accent);
    color: var(--color-white);
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Checkout Page */
.cart-items {
    background: var(--color-white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 40px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.cart-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.cart-item-info {
    flex: 1;
}

.cart-item h4 {
    margin-bottom: 5px;
    color: var(--color-text-main);
}

.cart-price {
    color: var(--color-accent);
    font-weight: 700;
}

.cart-summary {
    background: #2C2C2C;
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.summary-total {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--color-accent);
}

.checkout-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.option-card {
    border: 2px solid #ddd;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.option-card.selected {
    border-color: var(--color-primary);
    background-color: rgba(157, 139, 176, 0.1);
}

.option-card i {
    font-size: 2rem;
    color: var(--color-text-light);
    margin-bottom: 10px;
}

.option-card.selected i {
    color: var(--color-primary);
}

/* Custom Toast Notification */
#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toast {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-left: 5px solid var(--color-accent);
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    transform: translateX(120%);
    animation: slideIn 0.4s forwards;
    transition: all 0.4s ease;
}

.toast.hide {
    transform: translateX(120%);
    opacity: 0;
}

.toast-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
}

.toast-message {
    color: var(--color-text-main);
    font-size: 0.95rem;
    font-weight: 500;
}

.toast.error {
    border-left-color: #d9534f;
}

.toast.error .toast-icon {
    color: #d9534f;
}

@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

/* --- V2 Home Page Styles --- */

.v2-body {
    background-color: #fff;
    color: #1a1a1a;
}

.hero-v2 {
    height: 100vh;
    width: 100%;
    position: relative;
    background: url('../assets/hero.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-v2-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Darker, cleaner overlay */
}

.hero-v2-content {
    position: relative;
    z-index: 3;
    color: #fff;
}

.v2-subtitle {
    display: block;
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 300;
}

.v2-title {
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 50px;
}

.btn-v2 {
    display: inline-block;
    padding: 15px 40px;
    border: 1px solid #fff;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: all 0.4s ease;
    background: transparent;
}

.btn-v2:hover {
    background: #fff;
    color: #000;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 2px;
    opacity: 0.7;
}

.scroll-indicator .line {
    width: 1px;
    height: 50px;
    background: #fff;
}

/* V2 Features */
.v2-section {
    padding: 120px 0;
    background: #fff;
}

.v2-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.v2-feature {
    text-align: left;
    padding: 20px;
}

.v2-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 20px;
    opacity: 0.5;
}

.v2-feature h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #000;
    font-weight: 400;
}

.v2-feature p {
    color: #666;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.8;
}

/* Visual Break */
.visual-break {
    height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.visual-break::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.v2-quote {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: #fff;
    font-style: italic;
    font-weight: 300;
}

/* Footer V2 */
.footer-v2 {
    background: #111;
    color: #888;
    padding: 80px 0;
    text-align: center;
}

.footer-v2-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.footer-v2-links {
    display: flex;
    gap: 40px;
}

.footer-v2-links a {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    color: #fff;
}

.footer-v2-links a:hover {
    color: var(--color-accent);
}

.footer-v2-brand img {
    height: 30px;
    margin: 0 auto 15px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

/* RTL Overrides for V2 */
[dir="rtl"] .v2-feature {
    text-align: right;
}

/* Mobile V2 */
@media (max-width: 768px) {
    .v2-title {
        font-size: 3rem;
    }

    .v2-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-v2-links {
        flex-direction: column;
        gap: 20px;
    }
}