/* 
  DELAVEN 
  Premium Luxury E-commerce Theme 'Pearl Black'
*/

:root {
    color-scheme: only light;
    --bg-color: #f8f6f4;
    --card-bg: #ffffff;
    --text-primary: #1e1d1b;
    --text-secondary: #65615a;
    --border-color: #e5e0d8;
    --accent-color: #cda87c;
    --btn-primary: #1e1d1b;
    --btn-primary-hover: #000000;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    background-color: var(--bg-color) !important;
    color: var(--text-primary) !important;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Force light theme variables over aggressive browser dark modes */
        --bg-color: #f8f6f4;
        --card-bg: #ffffff;
        --text-primary: #1e1d1b;
        --text-secondary: #65615a;
        --border-color: #e5e0d8;
        --accent-color: #cda87c;
        --btn-primary: #1e1d1b;
        --btn-primary-hover: #000000;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

/* NAV */
nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 5%;
    background: rgba(248, 246, 244, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 224, 216, 0.6);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition);
}

nav .logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    text-transform: uppercase;
}

nav .desktop-links {
    display: flex;
    align-items: center;
}

nav .desktop-links a {
    margin: 0 18px;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    position: relative;
}

nav .desktop-links a:hover {
    color: var(--text-primary);
}

nav .desktop-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--accent-color);
    transition: width var(--transition);
}

nav .desktop-links a:hover::after {
    width: 100%;
}

/* Language Link Custom Styling (Inside Desktop Links) */
nav .desktop-links div a::after {
    display: none;
}

nav .desktop-links div a {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

/* LANGUAGE SWITCHER */
.lang-switcher {
    display: inline-flex;
    gap: 12px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid #ddd;
    font-size: 0.9rem;
}

[dir="rtl"] .lang-switcher {
    margin-left: 0;
    margin-right: 20px;
    padding-left: 0;
    padding-right: 20px;
    border-left: none;
    border-right: 1px solid #ddd;
}

.lang-link {
    color: #888;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.lang-link.active {
    font-weight: bold;
    color: #000;
}

.mobile-menu-divider {
    margin: 16px 0;
    border: none;
    border-top: 1px solid #eaeaea;
}

.mobile-lang-switcher {
    display: flex;
    gap: 16px;
}

.mobile-lang-switcher .lang-link {
    font-family: var(--font-body);
    font-size: 1rem;
}

/* MOBILE MENU BTN */
.mobile-menu-btn {
    display: none;
    background: transparent;
    color: var(--text-primary);
    border: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* MOBILE MENU OVERLAY */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(248, 246, 244, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.close-menu-btn {
    position: absolute;
    top: 30px;
    right: 5%;
    background: transparent;
    color: var(--text-primary);
    border: none;
    cursor: pointer;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 25px;
}

.mobile-menu-content a {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-primary);
    text-transform: uppercase;
    transition: transform var(--transition);
}

.mobile-menu-content a:hover {
    transform: translateY(-2px);
    color: var(--accent-color);
}

/* HERO */
.hero {
    text-align: center;
    padding: 0 20px;
    height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 7rem;
    font-weight: 300;
    font-family: var(--font-body);
    /* Modern, clean sans-serif */
    letter-spacing: 0.25em;
    margin: 0;
    margin-left: 0.25em;
    color: var(--text-primary);
    text-transform: uppercase;
    animation: futuristicReveal 2.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--accent-color);
    box-shadow: 0 0 12px var(--accent-color);
    animation: drawLine 2s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
    opacity: 0.7;
}

@keyframes futuristicReveal {
    0% {
        opacity: 0;
        filter: blur(20px);
        transform: scale(1.15) translateY(30px);
        letter-spacing: 0.4em;
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1) translateY(0);
        letter-spacing: 0.25em;
    }
}

@keyframes drawLine {
    to {
        width: 140px;
    }
}

/* SHOP SECTION */
.shop {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 5%;
}

.shop h2 {
    font-size: 2.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* CATEGORY FILTER */
.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.category-filter a {
    padding: 8px 24px;
    border: 1px solid var(--border-color);
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    transition: all var(--transition);
}

.category-filter a.active,
.category-filter a:hover {
    background: var(--text-primary);
    color: #fff;
    border-color: var(--text-primary);
}

/* PRODUCT GRID */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

/* PRODUCT CARD */
.product-card {
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    background: #f1f1f1;
    overflow: hidden;
}

.card-slider .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.card-slider .slide.active {
    opacity: 1;
    z-index: 1;
}

.card-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

.product-card:hover .card-slider img {
    transform: scale(1.05);
    /* Zoom in on product hover */
}

/* SALE BADGE */
.sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--text-primary);
    color: #fff;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
    border-radius: 2px;
}

[dir="rtl"] .sale-badge {
    left: auto;
    right: 15px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity var(--transition);
}

.product-card:hover .slider-btn {
    opacity: 1;
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}



.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 3;
}

.dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: all 0.3s;
}

.dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* CARD INFO */
.card-info {
    padding: 24px;
    text-align: center;
}

.card-info h3 {
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--text-primary);
    /* No underline on hover */
}

.card-info .price {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.card-info .price .sale {
    color: #b91c1c;
    font-weight: 600;
    margin-right: 8px;
}

.card-info .price .original {
    text-decoration: line-through;
    opacity: 0.6;
    font-size: 0.95em;
}

[dir="rtl"] .card-info .price .sale {
    margin-right: 0;
    margin-left: 8px;
}

/* BUTTONS */
.btn,
.btn-primary,
.order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--btn-primary);
    color: #fff;
    padding: 16px 36px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    border-radius: 2px;
    transition: all var(--transition);
    width: auto;
}

.btn:hover,
.btn-primary:hover,
.order-btn:hover {
    background: var(--btn-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.order-btn {
    width: 100%;
}

/* SINGLE PRODUCT PAGE */
.product-page {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 5%;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.product-images {
    flex: 1.2;
    position: sticky;
    top: 100px;
}

.main-image {
    width: 100%;
    aspect-ratio: 4/5;
    background: #f5f5f5;
    margin-bottom: 16px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-gallery {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.thumb-gallery img {
    width: 85px;
    height: 105px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 2px;
    opacity: 0.7;
    transition: all var(--transition);
}

.thumb-gallery img.active,
.thumb-gallery img:hover {
    opacity: 1;
    border-color: var(--text-primary);
}

.product-details {
    flex: 1;
    padding-top: 10px;
}

.product-details h1 {
    font-size: 2.8rem;
    margin-bottom: 16px;
    font-weight: 400;
}

.product-details .price {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.product-details .price .sale {
    color: #b91c1c;
    font-weight: 600;
    margin-right: 12px;
}

.product-details .price .original {
    text-decoration: line-through;
    opacity: 0.5;
    font-size: 0.9em;
}

[dir="rtl"] .product-details .price .sale {
    margin-right: 0;
    margin-left: 12px;
}

.product-details .description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

/* FORM ELEMENTS */
.form-group {
    margin-bottom: 24px;
}

form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

form input[type="text"],
form input[type="tel"],
form input[type="number"],
form select,
form textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: #fff;
    transition: border-color var(--transition);
    margin-bottom: 20px;
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: var(--text-primary);
}

form textarea {
    min-height: 120px;
    resize: vertical;
}

/* CITY SEARCH DROPDOWN */
.city-search-wrap {
    position: relative;
}

.city-search-wrap input {
    margin-bottom: 0;
    cursor: pointer;
}

.city-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: none;
    max-height: 280px;
    overflow-y: auto;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition);
    box-shadow: var(--shadow-md);
    border-radius: 0 0 4px 4px;
}

.city-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.city-option {
    padding: 14px 20px;
    cursor: pointer;
    font-size: 0.95rem;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.city-option:last-child {
    border-bottom: none;
}

.city-option:hover {
    background: var(--bg-color);
    color: var(--accent-color);
}

.city-option.no-result {
    color: #999;
    cursor: default;
    background: #fff;
}

/* ORDER SUMMARY */
.order-summary {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 4px;
    margin-bottom: 30px;
    margin-top: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 1rem;
    color: var(--text-secondary);
}

.summary-row.total {
    border-top: 1px solid #ddd;
    margin-top: 8px;
    padding-top: 16px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* NOT FOUND & CONFIRMATION */
.not-found,
.confirmation {
    text-align: center;
    padding: 140px 20px;
    min-height: 60vh;
}

.not-found h2,
.confirmation h1 {
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 20px;
}

.not-found .btn,
.confirmation .btn {
    margin-top: 30px;
}

.not-found-msg {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 10px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.confirmation-icon {
    margin-bottom: 24px;
}

.confirmation-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 12px;
}

.confirmation-detail {
    font-size: 1rem;
    color: var(--text-secondary);
    opacity: 0.8;
    margin-top: 8px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ERROR BANNER */
.error-banner {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    border: 1px solid #f87171;
}

/* FIELD ERROR */
.field-error {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: -14px;
    margin-bottom: 14px;
    display: none;
    font-weight: 500;
}

/* TRUST BADGE */
.trust-badge {
    margin-top: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #166534;
    font-size: 0.85rem;
    font-weight: 500;
}

.trust-badge svg {
    flex-shrink: 0;
}

/* WHATSAPP FLOAT */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    /* usually left for LTR, we'll keep it there */
    background-color: #25D366;
    color: #FFF;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform var(--transition);
}

[dir="rtl"] .floating-whatsapp {
    left: auto;
    right: 30px;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* FOOTER */
footer {
    background: transparent;
    padding: 60px 20px 40px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-social {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.footer-social a {
    color: var(--text-secondary);
    transition: all var(--transition);
}

.footer-social a:hover {
    color: var(--text-primary);
    transform: translateY(-3px);
}

.footer-copyright {
    color: #999;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .product-page {
        flex-direction: column;
        gap: 40px;
        margin: 40px auto;
    }

    .product-images {
        position: relative;
        top: 0;
        width: 100%;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 600px) {
    nav {
        padding: 16px 5%;
    }

    nav .desktop-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 0.2em;
        margin-left: 0.2em;
    }

    .shop {
        padding: 50px 5%;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .category-filter a {
        font-size: 0.8rem;
        padding: 6px 18px;
    }
}

/* ANIMATIONS */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* BACK TO TOP BUTTON */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--btn-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: all var(--transition);
}

.back-to-top.visible {
    display: flex;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

[dir="rtl"] .back-to-top {
    right: auto;
    left: 30px;
}

/* WHATSAPP VISIBILITY */
.floating-whatsapp {
    display: none;
}

.floating-whatsapp.wa-show-desktop {
    display: flex;
}

@media (max-width: 1024px) {
    .floating-whatsapp {
        display: none !important;
    }

    .floating-whatsapp.wa-show-tablet {
        display: flex !important;
    }
}

@media (max-width: 600px) {
    .floating-whatsapp {
        display: none !important;
    }

    .floating-whatsapp.wa-show-mobile {
        display: flex !important;
    }
}