:root {
    /* Palette */
    --primary-color: #111111;
    --secondary-color: #b39169;
    --secondary-dark: #8c704f;
    --accent-bg: #fdfdfd;
    --surface-color: #ffffff;
    --text-main: #2b2b2b;
    --text-light: #6c757d;
    --border-color: #f0f0f0;

    /* Radii & Shadows */
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.06);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 2.5px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-dark);
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--accent-bg);
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Layout & Typography --- */
.main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.main-title {
    font-weight: 900;
    font-size: 1.75rem;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.product-subtitle {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.lead-text {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* --- Gallery (Updated for Pro Layout) --- */
.gallery-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: #fff;
}

.gallery-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-container::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    height: 500px;
    /* Default height */
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}

/* Scroll Dots */
.scroll-indication {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transition: 0.3s;
}

.scroll-dot.active {
    background: #fff;
    transform: scale(1.4);
}

/* Sticky Sidebar on Desktop */
@media (min-width: 992px) {
    .sticky-gallery {
        position: sticky;
        top: 100px;
        z-index: 10;
    }

    .gallery-item {
        height: 600px;
    }

    /* Taller on desktop */
    .main-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .gallery-item {
        height: 400px;
    }

    /* Optmized for Mobile */
    .main-wrapper {
        padding-top: 1rem;
    }
}

/* --- Navbar --- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
    padding: 0.8rem 0;
    transition: all 0.3s ease;
    animation: slideDown 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.navbar-brand span {
    color: var(--secondary-color);
}

.nav-btn {
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    transition: 0.3s;
}

.nav-btn:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.nav-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
}

/* --- Contact Button (Premium) --- */
.btn-contact {
    background: rgba(117, 114, 114, 0.05);
    color: var(--primary-color);
    border: 1px solid #e5e5e5;
    padding: 0.6rem 1.5rem;
    font-weight: 700;
    border-radius: 50px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    backdrop-filter: blur(4px);
}

.btn-contact:hover {
    border-color: #111;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(179, 145, 105, 0.15);
    /* Gold shadow */
}

/* --- Pricing Card (Pro Style) --- */
.pricing-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
    overflow: hidden;
}

.pricing-card.active {
    border: 2px solid var(--secondary-color);
    background: linear-gradient(160deg, #fffcf9 0%, #fff 100%);
    box-shadow: 0 10px 30px rgba(179, 145, 105, 0.15);
}

.price-tag {
    font-family: 'Tajawal';
    font-weight: 800;
    font-size: 2.5rem;
    color: var(--primary-color);
    line-height: 1;
}

.price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 0.75rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
}

.feature-item i {
    color: var(--secondary-color);
}

/* --- Form Elements --- */
.form-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.form-control,
.form-select {
    background: #fcfcfc;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-family: 'Tajawal';
    font-weight: 500;
    height: auto;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(179, 145, 105, 0.1);
}

/* Delivery Cards */
.delivery-card {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    transition: 0.2s;
}

.delivery-card:hover {
    background: #f9f9f9;
}

.delivery-card.selected {
    background: #fffbf5;
    border-color: var(--secondary-color);
}

.delivery-price {
    font-family: 'Tajawal';
    font-weight: 800;
    color: #27ae60;
}

/* Submit Button */
.btn-submit {
    background: var(--secondary-color);
    color: white;
    width: 100%;
    padding: 1rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    border: none;
    box-shadow: 0 8px 25px rgba(179, 145, 105, 0.3);
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-submit:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

/* --- Footer --- */
.footer {
    background: #1f1f1f;
    color: #aaa;
    padding: 1.75rem 0;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.social-link:hover {
    background: var(--secondary-color);
    color: #000;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(197, 164, 126, 0.2);
}

/* Animation */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pro Staggered Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for children (programmatically added or via css) */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Shimmer Loading Effect --- */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.img-loading {
    background: #f0f0f0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    /* Ensure visibility */
    opacity: 1;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Home Grid Styles (Enhanced) --- */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Luxury Card Design */
.home-card {
    background: #e3e3e3;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    /* Increased shadow */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.home-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    /* Stronger hover shadow */
    border-color: var(--secondary-color);
}

/* 1. Base Wrapper (Static State - What it looks like AFTER loading) */
.home-card-img-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 100%;

    /* Static background color for transparent images */
    background-color: #f1f1f1;

    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transition: background 0.3s ease;
}

/* 2. Shimmer State (Animation - Only when 'shimmer' class exists) */
.home-card-img-wrapper.shimmer {
    background: #f0f0f0;
    background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
}

/* 3. Image Styles (Keep as is) */
.home-card-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease, opacity 0.4s ease-in-out;
    opacity: 1;
}

/* 4. Loading Image (Hidden) */
.home-card-img.img-loading {
    opacity: 0;
}

/* 5. Keyframes */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.home-card-body {
    padding: 1.5rem;
    text-align: center;
    background: #fff;
    position: relative;
    z-index: 2;
}

.home-card h3 {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.home-card .price {
    color: var(--secondary-color);
    font-weight: 800;
    font-family: 'Tajawal';
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Badge */
.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 80px 0 60px;
    text-align: center;
    overflow: hidden;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #111 30%, #444 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #666;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
}

.hero-decoration {
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 20px auto 30px;
    border-radius: 10px;
}

/* Section Header (Pro Style - Side Border) */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
    position: relative;
    padding-right: 18px;
    /* Space for the border */
}

.section-title::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70%;
    width: 5px;
    background: var(--secondary-color);
    border-radius: 4px;
}

/* App Loader */
.app-loader {
    width: 100%;
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Responsive Typography --- */
@media (max-width: 768px) {
    .main-wrapper {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 500px) {
    .hero-title {
        font-size: 1.6rem;
        /* Optimized for small screens */
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .home-card h3 {
        font-size: 1rem;
    }

    .price {
        font-size: 1.1rem !important;
    }

    .pricing-card {
        padding: 1rem;
    }

    .price-tag {
        font-size: 2rem;
    }
}


/* --- Premium Toast Notification (Refined) --- */
.swal2-popup.premium-toast {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    padding: 0.75rem 1rem !important;
    border: 1px solid #e0e0e0 !important;
    border-right: 5px solid var(--secondary-color) !important;
    background: #fff !important;
}

.swal2-timer-progress-bar.premium-toast-progress {
    background: var(--secondary-color) !important;
    opacity: 0.5 !important;
}

.swal2-icon {
    transform: scale(0.9) !important;
    font-weight: bold !important;
    border-width: 3px !important;
}

/* Make Icon Lines Thicker (Bolder Look) */
.swal2-icon.swal2-success .swal2-success-line-tip,
.swal2-icon.swal2-success .swal2-success-line-long {
    height: 6px !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-width: 5px !important;
}

.swal2-icon.swal2-error .swal2-x-mark-line-left,
.swal2-icon.swal2-error .swal2-x-mark-line-right {
    height: 6px !important;
}

.swal2-title {
    font-family: 'Tajawal', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    color: #222 !important;
    padding: 0 0.5rem !important;
}