:root {
    --primary: #C78F7B;
    --primary-dark: #A56E5C;
    --secondary: #EAD7D1;
    --accent: #F8F3F0;
    --dark: #1F1A18;
    --dark-soft: #2C2522;
    --light: #FEFCFA;
    --text-muted: #8A817C;
}

* {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--light);
    color: var(--dark);
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
}

body.dark {
    background-color: var(--dark);
    color: var(--accent);
}

body.dark .bg-light {
    background-color: var(--dark) !important;
}

body.dark .bg-white {
    background-color: var(--dark-soft) !important;
}

body.dark .text-dark {
    color: var(--accent) !important;
}

body.dark .text-gray-600,
body.dark .text-gray-700,
body.dark .text-gray-800 {
    color: #D8D0CB !important;
}

body.dark .bg-accent {
    background-color: var(--dark-soft) !important;
}

body.dark .border-gray-200 {
    border-color: #3D3531 !important;
}

.font-heading {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.glass-navbar {
    background: rgba(254, 252, 250, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(199, 143, 123, 0.15);
    transition: all 0.4s ease;
}

body.dark .glass-navbar {
    background: rgba(31, 26, 24, 0.82);
    border-bottom: 1px solid rgba(199, 143, 123, 0.2);
}

.glass-navbar.scrolled {
    background: rgba(254, 252, 250, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

body.dark .glass-navbar.scrolled {
    background: rgba(31, 26, 24, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* =========================
   BUTTONS
========================= */

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    display: inline-block;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(199, 143, 123, 0.35);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    padding: 0.8rem 2rem;
    border-radius: 999px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    display: inline-block;
    cursor: pointer;
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(199, 143, 123, 0.3);
}

/* =========================
   CARDS
========================= */

.card-luxury {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    border: 1px solid rgba(199, 143, 123, 0.12);
    cursor: pointer;
}

body.dark .card-luxury {
    background: var(--dark-soft);
    border-color: rgba(199, 143, 123, 0.2);
}

.card-luxury:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(199, 143, 123, 0.18);
    border-color: rgba(199, 143, 123, 0.4);
}

.card-luxury img {
    transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}

.card-luxury:hover img {
    transform: scale(1.08);
}

/* =========================
   SECTIONS
========================= */

.section-padding {
    padding: 6rem 1rem;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 8rem 2rem;
    }
}

/* =========================
   SHADOWS
========================= */

.shadow-gold {
    box-shadow: 0 10px 40px rgba(199, 143, 123, 0.2);
}

.shadow-gold-lg {
    box-shadow: 0 25px 60px rgba(199, 143, 123, 0.3);
}

/* =========================
   PRELOADER
========================= */

#preloader {
    position: fixed;
    inset: 0;
    background: var(--light);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

body.dark #preloader {
    background: var(--dark);
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-bottle {
    width: 60px;
    height: 90px;
    border: 3px solid var(--primary);
    border-radius: 12px 12px 4px 4px;
    position: relative;
    animation: float 2s ease-in-out infinite;
    background: linear-gradient(180deg,
            rgba(199, 143, 123, 0.1) 0%,
            rgba(199, 143, 123, 0.3) 100%);
}

.loader-bottle::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border: 3px solid var(--primary);
    border-radius: 50%;
    background: var(--light);
}

body.dark .loader-bottle::before {
    background: var(--dark);
}

.loader-bottle::after {
    content: '';
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 12px;
    background: var(--primary);
    border-radius: 4px 4px 0 0;
}

/* =========================
   FLOAT ANIMATION
========================= */

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* =========================
   SCROLL TO TOP
========================= */

#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(199, 143, 123, 0.35);
}

#scrollToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(199, 143, 123, 0.5);
}

/* =========================
   HERO
========================= */

.hero-parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: url('145528.jpg');
}

@media (max-width: 768px) {
    .hero-parallax {
        background-attachment: scroll;
    }
}

/* =========================
   IMAGE ZOOM
========================= */

.image-zoom-container {
    overflow: hidden;
    border-radius: 18px;
}

.image-zoom-container img {
    transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}

.image-zoom-container:hover img {
    transform: scale(1.08);
}

/* =========================
   GLOW
========================= */

.glow-hover {
    transition: box-shadow 0.5s ease;
}

.glow-hover:hover {
    box-shadow: 0 0 50px rgba(199, 143, 123, 0.4);
}

/* =========================
   TESTIMONIAL
========================= */

.testimonial-card {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid rgba(199, 143, 123, 0.15);
    transition: all 0.5s ease;
}

body.dark .testimonial-card {
    background: var(--dark-soft);
}

.testimonial-card:hover {
    border-color: rgba(199, 143, 123, 0.45);
    box-shadow: 0 20px 50px rgba(199, 143, 123, 0.15);
}

/* =========================
   WISHLIST
========================= */

.wishlist-btn {
    transition: all 0.3s ease;
    cursor: pointer;
}

.wishlist-btn:hover {
    transform: scale(1.15);
    color: #e74c3c;
}

.wishlist-btn.active {
    color: #e74c3c;
    fill: #e74c3c;
}

/* =========================
   LIMITED BANNER
========================= */

.limited-banner {
    background: linear-gradient(135deg,
            var(--dark) 0%,
            #3A302B 50%,
            var(--dark) 100%);
    position: relative;
    overflow: hidden;
}

.limited-banner::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle,
            rgba(199, 143, 123, 0.08) 0%,
            transparent 70%);
    animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* =========================
   FORM
========================= */

input,
textarea,
select {
    transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(199, 143, 123, 0.2);
    outline: none;
}

/* =========================
   SELECT
========================= */

select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23C78F7B' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.7rem center;
    background-repeat: no-repeat;
    background-size: 1.4em;
    padding-right: 2.5rem;
    appearance: none;
}

/* =========================
   FAQ
========================= */

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer.open {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.rotate {
    transform: rotate(45deg);
}

/* =========================
   VALUE CARD
========================= */

.value-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(199, 143, 123, 0.12);
    transition: all 0.5s ease;
}

body.dark .value-card {
    background: var(--dark-soft);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(199, 143, 123, 0.15);
    border-color: rgba(199, 143, 123, 0.4);
}

/* =========================
   MOBILE MENU
========================= */

.mobile-menu {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}

/* =========================
   STICKY SHOP BTN
========================= */

.sticky-shop-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 998;
    display: none;
}

@media (max-width: 768px) {
    .sticky-shop-btn {
        display: block;
    }
}

/* custom additional styles */
.progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #C6A16E, #A0784C);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.product-card-mini {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(198, 161, 110, 0.15);
    cursor: pointer;
}

.dark .product-card-mini {
    background: #2A2522;
    border-color: rgba(198, 161, 110, 0.25);
}

.product-card-mini:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(198, 161, 110, 0.15);
}

.horizontal-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}

.horizontal-scroll>* {
    flex: 0 0 auto;
    width: 200px;
    scroll-snap-align: start;
}

@media (min-width: 640px) {
    .horizontal-scroll>* {
        width: 220px;
    }
}

/* Form toggle animation */
.auth-form {
    transition: opacity 0.5s ease, transform 0.5s ease;
    position: absolute;
    width: 100%;
}

.login-form {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.signup-form {
    opacity: 0;
    transform: translateX(30px);
    pointer-events: none;
}

.show-signup .login-form {
    opacity: 0;
    transform: translateX(-30px);
    pointer-events: none;
}

.show-signup .signup-form {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.auth-tab {
    transition: all 0.3s;
}

.auth-tab.active {
    border-bottom: 2px solid #C6A16E !important;
    color: #C6A16E !important;
}

body.dark .auth-tab.active {
    border-bottom-color: #E8D5B5;
    color: #E8D5B5;
}

.social-btn {
    transition: all 0.3s;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #fff;
    border-radius: 24px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    border: 1px solid rgba(198, 161, 110, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

body.dark .modal-content {
    background: #2A2522;
    border-color: rgba(198, 161, 110, 0.4);
}

.star-rating {
    display: flex;
    gap: 4px;
    cursor: pointer;
}

.star-rating i {
    font-size: 1.5rem;
    color: #d1d5db;
    transition: color 0.2s;
}

.star-rating i.active,
.star-rating i.hover {
    color: #f59e0b;
}

.order-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(198, 161, 110, 0.15);
    transition: all 0.4s ease;
}

body.dark .order-card {
    background: #2A2522;
    border-color: rgba(198, 161, 110, 0.25);
}

.order-card:hover {
    border-color: rgba(198, 161, 110, 0.5);
    box-shadow: 0 15px 30px rgba(198, 161, 110, 0.1);
}

.login-form {
    min-height: 654px !important;
}

.signup-form {
    min-height: 790px !important;
}

.header-icon {
    width: 20px;
    height: 20px;
    color: #C6A16E;
}

#scrollToTop {
    width: 45px;
    height: 45px;
}

#collectionsContainer {
    padding-top: 40px !important;
}

.filter .active {
    background-color: #c5a16d;
    color: #fff;
}

.article-content p {
    padding-bottom: 20px;
}

.policy-content p {
    padding-bottom: 20px;
}

.terms-content p {
    padding-bottom: 20px;
}

.article-content h2 {
    padding-bottom: 10px;
    font-weight: bold;
}

.policy-content h2 {
    padding-bottom: 10px;
    font-weight: bold;
}

.terms-content h2 {
    padding-bottom: 10px;
    font-weight: bold;
}

.size-option {
    background-color: #f4eee5;
}

.pd-right .active {
    background-color: #a56e5c;
    color: #fff;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}