:root {
    --primary: #4c3734;
    --primary-light: #8f7f72;
    --accent: #e8b86d;
    --accent-secondary: #f4d19b;
    --bg-main: #fefcf9;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-glass-dark: rgba(26, 26, 46, 0.95);
    --text-muted: #7a7a8c;
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(232, 184, 109, 0.3);
    --transition-smooth: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --gradient-warm: linear-gradient(135deg, #e8b86d 0%, #f4d19b 100%);
    --gradient-dark: linear-gradient(135deg, #4c3734 0%, #8f7f72 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-main);
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(232, 184, 109, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

/* RTL Font Support */
body[dir="rtl"] {
    font-family: 'Cairo', sans-serif;
}

/* --- Animated Background Particles --- */
.floating-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.float-item {
    position: absolute;
    opacity: 0.12;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
    animation: floatComplex 20s infinite ease-in-out;
    transition: opacity 0.5s ease;
}

.float-item:hover {
    opacity: 0.25;
}

.f-1 {
    top: 8%;
    left: 8%;
    width: 100px;
    animation-duration: 22s;
    animation-delay: 0s;
}

.f-2 {
    top: 65%;
    left: 88%;
    width: 120px;
    animation-duration: 28s;
    animation-delay: -5s;
}

.f-3 {
    top: 85%;
    left: 12%;
    width: 90px;
    animation-duration: 20s;
    animation-delay: -2s;
}

.f-4 {
    top: 15%;
    left: 75%;
    width: 140px;
    animation-duration: 25s;
    animation-delay: -8s;
}

.f-5 {
    top: 45%;
    left: 45%;
    width: 70px;
    animation-duration: 32s;
    animation-delay: -10s;
}

.f-6 {
    top: 30%;
    left: 25%;
    width: 60px;
    animation-duration: 18s;
    animation-delay: -3s;
}

.f-7 {
    top: 75%;
    left: 65%;
    width: 80px;
    animation-duration: 24s;
    animation-delay: -7s;
}

@keyframes floatComplex {

    0%,
    100% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
    }

    25% {
        transform: translateY(-30px) translateX(20px) rotate(10deg) scale(1.05);
    }

    50% {
        transform: translateY(-50px) translateX(-10px) rotate(-5deg) scale(0.95);
    }

    75% {
        transform: translateY(-20px) translateX(-30px) rotate(15deg) scale(1.02);
    }
}

/* --- Glassmorphic Header --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-glass);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-soft);
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 3px;
    background: var(--gradient-dark);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.logo img {
    height: 40px;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-warm);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.logo:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-btn {
    background: var(--gradient-dark);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.cart-btn:hover::before {
    left: 100%;
}

.cart-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.cart-btn:active {
    transform: scale(0.98);
}

#cart-count {
    background: var(--accent);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.menu-trigger {
    font-size: 1.4rem;
    cursor: pointer;
    padding: 10px;
    border-radius: 12px;
    transition: var(--transition-smooth);
    position: relative;
}

.menu-trigger:hover {
    background: rgba(232, 184, 109, 0.15);
    transform: rotate(90deg);
}

/* --- Hero Banner --- */
.hero-banner {
    padding: 60px 5% 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 12px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.2s;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Category Tabs with Animated Indicator --- */
.category-container {
    padding: 20px 5% 40px;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

.category-tabs {
    display: inline-flex;
    gap: 8px;
    background: white;
    padding: 8px;
    border-radius: 60px;
    box-shadow: var(--shadow-medium);
    position: relative;
    border: 1px solid rgba(232, 184, 109, 0.2);
}

.cat-btn {
    border: none;
    background: transparent;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
    color: var(--text-muted);
}

.cat-btn:hover:not(.active) {
    color: var(--primary);
    background: rgba(232, 184, 109, 0.1);
}

.cat-btn.active {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.tab-indicator {
    position: absolute;
    height: calc(100% - 16px);
    background: var(--gradient-dark);
    border-radius: 50px;
    top: 8px;
    transition: var(--transition-bounce);
    z-index: 1;
    box-shadow: var(--shadow-soft);
    pointer-events: none;
}

/* --- Product Grid with Stagger Animation --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    padding: 20px 5% 120px;
    position: relative;
    z-index: 5;
}

.product-card {
    background: white;
    border-radius: 28px;
    padding: 28px;
    text-align: center;
    border: 1px solid rgba(232, 184, 109, 0.15);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    animation: cardReveal 0.6s ease forwards;
    z-index: 1;
    box-shadow: var(--shadow-medium);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-warm);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.product-card:hover::before {
    opacity: 0.05;
}

.product-card:hover {
    transform: translateY(-16px) scale(1.02);
    box-shadow: var(--shadow-glow), var(--shadow-medium);
    border-color: var(--accent);
}

.product-card>* {
    position: relative;
    z-index: 1;
}

@keyframes cardReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.product-card:nth-child(2) {
    animation-delay: 0.2s;
}

.product-card:nth-child(3) {
    animation-delay: 0.3s;
}

.product-card:nth-child(4) {
    animation-delay: 0.4s;
}

.product-card:nth-child(5) {
    animation-delay: 0.5s;
}

.product-card:nth-child(6) {
    animation-delay: 0.6s;
}

.img-box {
    /* width: 180px; */
    height: 230px;
    margin: 0 auto 20px;
    border-radius: 10%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(232, 184, 109, 0.2);
    transition: var(--transition-smooth);
}

/* .img-box::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    background: var(--gradient-warm) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
} */

.product-card:hover .img-box::after {
    opacity: 1;
}

.product-card:hover .img-box {
    transform: scale(1.08) rotate(3deg);
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .img-box img {
    transform: scale(1.1);
}

.product-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.product-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.product-price::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: priceDot 1.5s infinite;
}

@keyframes priceDot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.add-btn {
    width: 100%;
    padding: 14px 24px;
    margin-top: 20px;
    border: none;
    background: var(--gradient-dark);
    color: white;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.add-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.add-btn:hover::before {
    width: 300%;
    height: 300%;
}

.add-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 26, 46, 0.3);
}

.add-btn:active {
    transform: scale(0.96);
}

.add-btn i {
    margin-inline-end: 8px;
    transition: transform 0.3s ease;
}

.add-btn:hover i {
    transform: scale(1.2);
}

/* --- Modern Drawer with Spring Animation --- */
.drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 380px;
    max-width: 90%;
    background: white;
    z-index: 1000;
    padding: 32px;
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.3s ease, visibility 0.5s;
    opacity: 0;
    visibility: hidden;
    border-radius: 28px 0 0 28px;
}

body[dir="rtl"] .drawer {
    border-radius: 0 28px 28px 0;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.15);
}

.drawer.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) !important;
}

body[dir="ltr"] .drawer-right {
    right: 0;
    transform: translateX(110%);
}

body[dir="rtl"] .drawer-right {
    left: 0;
    right: auto;
    transform: translateX(-110%);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(232, 184, 109, 0.2);
}

.drawer-header span {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient-dark);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.close-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: rgba(232, 184, 109, 0.1);
    color: var(--primary);
    transition: var(--transition-smooth);
    font-size: 1rem;
}

.close-btn:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

/* Overlay with Blur */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* --- Premium Language Toggle --- */
.lang-toggle {
    display: flex;
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    border-radius: 16px;
    position: relative;
    cursor: pointer;
    margin-top: 24px;
    overflow: hidden;
    height: 56px;
    padding: 6px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.06);
}

.toggle-bg {
    position: absolute;
    top: 6px;
    bottom: 6px;
    width: calc(50% - 6px);
    background: var(--gradient-dark);
    border-radius: 12px;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-soft);
    pointer-events: none;
}

body[dir="ltr"] .toggle-bg {
    left: 6px;
}

body[dir="ltr"] .lang-toggle[data-active="ar"] .toggle-bg {
    left: calc(50%);
}

body[dir="rtl"] .toggle-bg {
    right: 6px;
}

body[dir="rtl"] .lang-toggle[data-active="ar"] .toggle-bg {
    right: calc(50%);
}

.lang-opt {
    flex: 1;
    z-index: 2;
    display: grid;
    place-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    border-radius: 12px;
}

.lang-opt.active {
    color: white;
}

.lang-opt:hover:not(.active) {
    color: var(--primary);
}

/* --- Settings Menu Items --- */
.settings-menu {
    margin-top: 40px;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 16px;
    border-radius: 16px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--primary);
}

.settings-item:hover {
    background: rgba(232, 184, 109, 0.1);
    transform: translateX(8px);
}

body[dir="rtl"] .settings-item:hover {
    transform: translateX(-8px);
}

.settings-item i {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: var(--gradient-warm);
    border-radius: 12px;
    color: var(--primary);
    font-size: 1rem;
}

.settings-item span {
    font-weight: 500;
}

/* --- Cart Items Styling --- */
.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.cart-empty i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    margin-bottom: 12px;
    background: rgba(248, 248, 248, 0.8);
    border-radius: 16px;
    align-items: center;
    transition: var(--transition-smooth);
    animation: slideInRight 0.4s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item:hover {
    background: rgba(232, 184, 109, 0.1);
    transform: scale(1.02);
}

.cart-item img {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--accent);
    font-weight: 700;
}

/* --- Cart Footer --- */
.cart-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 2px solid rgba(232, 184, 109, 0.2);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(232, 184, 109, 0.1);
    border-radius: 16px;
}

.checkout-btn {
    width: 100%;
    padding: 18px;
    border: none;
    background: var(--gradient-warm);
    color: var(--primary);
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(232, 184, 109, 0.4);
}

.checkout-btn:active {
    transform: scale(0.98);
}

/* --- Enhanced Flying Animation --- */
.flying-img {
    position: fixed;
    z-index: 2000;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: flyPop 0.1s ease;
}

@keyframes flyPop {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

/* --- Success Toast --- */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--gradient-dark);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: var(--shadow-medium);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.toast i {
    color: var(--accent);
    font-size: 1.2rem;
}

/* --- Ripple Effect --- */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: rippleAnim 0.6s linear;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* --- Loading Skeleton --- */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
        padding: 20px 4% 100px;
    }

    .category-tabs {
        flex-wrap: wrap;
        gap: 6px;
    }

    .cat-btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .product-card {
        padding: 20px;
    }

    .img-box {
        width: 140px;
        height: 140px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .product-card {
        padding: 16px;
        border-radius: 20px;
    }

    .img-box {
        width: 100px;
        height: 100px;
    }

    .product-name {
        font-size: 0.9rem;
    }

    .add-btn {
        padding: 10px;
        font-size: 0.75rem;
    }
}

/* --- Product Details Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

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

.modal-content {
    background: white;
    width: 900px;
    max-width: 90%;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.9) translateY(40px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
    font-size: 1.1rem;
    color: var(--text-muted);
}

.modal-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    height: 500px;
}

/* Left Column: Gallery */
.modal-gallery {
    flex: 1.2;
    background: #f8f8f8;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide-item.active {
    opacity: 1;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    z-index: 5;
    color: var(--primary);
}

.slider-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slider-dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

/* Right Column: Details */
.modal-details {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-details h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--primary);
    line-height: 1.1;
}

.modal-price {
    font-size: 1.8rem;
    color: var(--accent);
    font-weight: 700;
    display: block;
    margin-bottom: 24px;
}

.modal-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
}

.modal-add-btn {
    padding: 18px;
    background: var(--gradient-dark);
    color: white;
    border: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.modal-add-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.modal-add-btn:active {
    transform: scale(0.98);
}

/* Responsive Modal */
@media (max-width: 900px) {
    .modal-body {
        flex-direction: column;
        height: auto;
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal-gallery {
        height: 300px;
    }

    .modal-details {
        padding: 30px;
    }

    .modal-details h2 {
        font-size: 1.8rem;
    }
}

.home-main {
    padding-top: 20px;
}

.sticky-banner {
    background: var(--gradient-dark);
    color: white;
    text-align: center;
    padding: 12px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 90;
}

.sticky-banner span {
    font-size: 0.95rem;
    opacity: 0.9;
}

.sticky-banner a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    position: relative;
    transition: var(--transition-smooth);
}

.sticky-banner a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.sticky-banner a:hover::after {
    width: 100%;
}

/* Split Section Layout */
.split-section {
    display: flex;
    max-height: 550px;
    height: 550px;
    margin: 40px 5%;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    background: white;
}

.split-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.split-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px;
    background: var(--primary);
    color: white;
    position: relative;
}

.split-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff 0%, #e8ba7a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.split-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.8);
}

.split-image {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.split-section:hover .split-image img {
    transform: scale(1.08);
    /* slight zoom on hover */
}

/* Variations */
.split-section.reverse {
    flex-direction: row-reverse;
}

/* Light Theme Variant (Cream/Gold) */
.split-section.theme-light .split-content {
    background: radial-gradient(circle at top left, #fffbf2 0%, #fff 100%);
}

.split-section.theme-light .split-content h2 {
    background: var(--gradient-dark);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.split-section.theme-light .split-content p {
    color: var(--text-muted);
}

/* Accent Theme Variant (Gold) */
.split-section.theme-accent .split-content {
    background: var(--gradient-warm);
}

.split-section.theme-accent .split-content h2 {
    color: var(--primary);
    -webkit-text-fill-color: var(--primary);
}

.split-section.theme-accent .split-content p {
    color: var(--primary);
    opacity: 0.85;
    font-weight: 500;
}

.cta-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
    overflow: hidden;
    letter-spacing: 0.5px;
}

/* Dark theme button (default) */
.split-content .cta-btn {
    border: 2px solid var(--accent);
    color: var(--accent);
}

.split-content .cta-btn:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(232, 184, 109, 0.2);
}

/* Light theme button */
.theme-light .cta-btn {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.theme-light .cta-btn:hover {
    background: var(--primary);
    color: white;
}

/* Accent theme button */
.theme-accent .cta-btn {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: rgba(255, 255, 255, 0.2);
}

.theme-accent .cta-btn:hover {
    background: var(--primary);
    color: var(--accent);
}

/* Footer Styles */
.main-footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 60px;
    background: white;
}

@media (max-width: 768px) {
    .split-section {
        flex-direction: column-reverse !important;
        margin: 20px;
        min-height: auto;
    }

    .split-image {
        height: 300px;
    }

    .split-content {
        padding: 40px 20px;
    }

    .split-content h2 {
        font-size: 1.8rem;
    }
}