/* ============================================
   COMPREHENSIVE COLOR SYSTEM
   Following 60-30-10 Rule & Best Practices
   ============================================ */

:root {

    /* ========================================
       60% - DOMINANT COLORS (Backgrounds)
       ======================================== */
    --color-dominant: #fff; /* Primary white background */
    --color-dominant-alt: #f9f7f3; /* Light beige - secondary background */
    --color-dominant-tertiary: #f8f9fa; /* Light gray - subtle backgrounds */

    /* ========================================
       30% - SECONDARY COLORS (Supporting)
       ======================================== */
    --color-secondary: #f5f2ed; /* Warm beige gradient */
    --color-secondary-light: #fafafa; /* Very light gray */
    --color-secondary-border: #e9ecef; /* Light borders */
    --color-secondary-border-light: #eee; /* Lighter borders */
    --color-secondary-border-dark: #ddd; /* Medium borders */
    --color-secondary-text: #666; /* Secondary text */
    --color-secondary-text-light: #999; /* Muted text */
    --color-secondary-text-dark: #6c757d; /* Darker muted text */

    /* ========================================
       10% - ACCENT COLORS (Highlights, CTAs)
       ======================================== */
    --color-accent: #ea8b2c; /* Primary orange */
    --color-accent-hover: #d17a1f; /* Darker orange on hover */
    --color-accent-light: #ff9a3e; /* Light orange for gradients */
    --color-accent-lighter: #f39c12; /* Alternative light orange */
    --color-accent-bg: rgb(234 139 44 / 10%); /* Light orange background */
    --color-accent-bg-light: rgb(234 139 44 / 8%); /* Very light orange bg */
    --color-accent-bg-medium: rgb(234 139 44 / 15%); /* Medium orange bg */
    --color-accent-shadow: rgb(234 139 44 / 30%); /* Orange shadow */
    --color-accent-shadow-light: rgb(234 139 44 / 25%); /* Light orange shadow */
    --color-accent-shadow-medium: rgb(234 139 44 / 40%); /* Medium orange shadow */

    /* ========================================
       SEMANTIC COLORS (Status, Feedback)
       ======================================== */
    --color-success: #28a745; /* Success/Green */
    --color-success-bg: rgb(40 167 69 / 10%);
    --color-success-text: #155724;
    --color-success-border: #28a745;
    --color-danger: #dc3545; /* Error/Red */
    --color-danger-bg: rgb(220 53 69 / 10%);
    --color-danger-bg-light: #fff5f5;
    --color-danger-text: #721c24;
    --color-danger-border: #dc3545;
    --color-warning: #ffc107; /* Warning/Yellow */
    --color-warning-bg: rgb(255 193 7 / 10%);
    --color-warning-text: #856404;
    --color-warning-border: #ffc107;
    --color-info: #17a2b8; /* Info/Blue */
    --color-info-bg: rgb(23 162 184 / 10%);
    --color-info-text: #0c5460;
    --color-info-border: #17a2b8;

    /* ========================================
       TEXT COLORS
       ======================================== */
    --text-primary: #333; /* Primary text (dark) */
    --text-secondary: #666; /* Secondary text */
    --text-muted: #999; /* Muted text */
    --text-muted-dark: #6c757d; /* Darker muted text */
    --text-light: #adb5bd; /* Very light text */
    --text-white: #fff; /* White text */
    --text-on-accent: #fff; /* Text on accent background */

    /* ========================================
       BACKGROUND COLORS
       ======================================== */
    --bg-primary: #fff; /* Primary white */
    --bg-secondary: #f9f7f3; /* Light beige */
    --bg-tertiary: #f8f9fa; /* Light gray */
    --bg-quaternary: #f5f5f5; /* Medium light gray */
    --bg-quinary: #f0f0f0; /* Slightly darker gray */
    --bg-overlay: rgb(0 0 0 / 40%); /* Dark overlay */
    --bg-overlay-light: rgb(0 0 0 / 10%); /* Light overlay */
    --bg-overlay-white: rgb(255 255 255 / 90%); /* White overlay */
    --bg-overlay-white-light: rgb(255 255 255 / 15%); /* Very light white overlay */

    /* ========================================
       BORDER COLORS
       ======================================== */
    --border-light: #eee; /* Lightest border */
    --border-medium: #e9ecef; /* Medium border */
    --border-dark: #ddd; /* Darker border */
    --border-darker: #ccc; /* Darkest light border */
    --border-accent: var(--color-accent); /* Accent border */
    --border-focus: var(--color-accent); /* Focus border */

    /* ========================================
       SHADOW COLORS
       ======================================== */
    --shadow-sm: rgb(0 0 0 / 5%); /* Small shadow */
    --shadow-md: rgb(0 0 0 / 8%); /* Medium shadow */
    --shadow-lg: rgb(0 0 0 / 10%); /* Large shadow */
    --shadow-xl: rgb(0 0 0 / 15%); /* Extra large shadow */
    --shadow-accent: var(--color-accent-shadow); /* Accent shadow */

    /* ========================================
       LEGACY SUPPORT (Backward Compatibility)
       ======================================== */
    --orange: var(--color-accent);
    --light-beige: var(--color-dominant-alt);
    --white: var(--color-dominant);
    --dark: var(--text-primary);
    --gray: var(--text-secondary);
    --light-gray: var(--color-dominant-tertiary);
}

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

/* Test rule to verify CSS is loading */

body::before {
    content: "CSS LOADED SUCCESSFULLY!";
    position: fixed;
    top: 10px;
    right: 10px;
    background: var(--color-success);
    color: var(--text-white);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 10000;
    display: none;
}

body {
    font-family: Poppins, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
    padding-top: 100px; /* Adjust based on consistent navbar height */
}

/* Hero/Carousel and Services (merged from css2) */

.carousel-item {
    height: 100vh;
    min-height: 600px;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--bg-overlay);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-white);
    max-width: 600px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 3px 12px rgb(0 0 0 / 35%);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgb(0 0 0 / 35%);
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-overlay-white-light);
    border-radius: 50%;
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgb(255 255 255 / 35%);
} /* Keep rgba for hover effect */

.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--text-white);
    background: transparent;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.carousel-indicators [data-bs-target].active {
    background: var(--orange);
    border-color: var(--orange);
}

.customize-section-enhanced {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--color-dominant-alt) 0%, var(--color-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.customize-section-enhanced::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--color-accent-bg) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {

    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}

.customize-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.customize-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: var(--text-white);
    font-size: 2.5rem;
    animation: pulse 2s infinite;
    box-shadow: 0 10px 40px var(--color-accent-shadow);
}

@keyframes pulse {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

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

.customize-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.customize-content p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 40px;
}

.btn-customize-enhanced {
    font-size: 1.25rem;
    padding: 18px 40px;
    border-radius: 60px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    border: none;
    color: var(--text-white);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px var(--color-accent-shadow);
    position: relative;
    overflow: hidden;
}

.btn-customize-enhanced::before {
    content: "";
    position: absolute;
    inset: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 20%), transparent);
    transition: left 0.5s;
}

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

.btn-customize-enhanced:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--color-accent-shadow-medium);
    color: var(--text-white);
}

.info-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

/* Ensure equal height cards in info section */

.info-section .row {
    display: flex;
    flex-wrap: wrap;
}

.info-section .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.info-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.info-card-enhanced {
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow-lg);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.featured-section {
    padding-bottom: 20px;
}

/* Ensure equal height cards in featured sections */

.featured-section .row {
    display: flex;
    flex-wrap: wrap;
}

.featured-section .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.featured-section .product-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

/* Ensure all product cards have equal height */
.row.g-4 > [class*="col-"] > .product-card-link,
.row.g-4 > [class*="col-"] > .info-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

.info-card-enhanced:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px var(--color-accent-shadow-light);
}

.info-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.info-card-enhanced:hover .info-image img {
    transform: scale(1.1);
}

.info-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: rgb(234 139 44 / 90%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
}

.info-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.info-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark);
}

.info-content p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
    flex-grow: 1;
}

.info-features {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.info-features span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--gray);
    background: var(--light-beige);
    padding: 5px 12px;
    border-radius: 20px;
}

.info-features i {
    color: var(--orange);
}

.learn-more-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--orange);
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.info-card-enhanced:hover .learn-more-btn {
    transform: translateX(10px);
}

.learn-more-btn i {
    transition: transform 0.3s ease;
}

.info-card-enhanced:hover .learn-more-btn i {
    transform: translateX(5px);
}

/* Gallery Section (merged from css2) */

.gallery-section-compact {
    padding: 110px 0;
    background: var(--light-beige);
}

.gallery-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.gallery-marquee-track {
    display: flex;
    width: fit-content;
    animation: galleryMarquee 60s linear infinite;
    will-change: transform;
}

.gallery-marquee-track:hover {
    animation-play-state: paused;
}

.gallery-marquee-slide {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    min-width: 200px;
    margin-right: 16px;
}

.gallery-marquee-slide:hover {
    transform: scale(1.05);
}

.gallery-marquee-slide img {
    height: 200px;
    width: auto;
    min-width: 200px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgb(0 0 0 / 8%);
    object-fit: cover;
    display: block;
}

/* Infinite scroll animation */
@keyframes galleryMarquee {

    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (width <= 768px) {

    .gallery-marquee-slide img {
        height: 150px;
        min-width: 150px;
    }

    .gallery-marquee-slide {
        min-width: 150px;
    }

    .gallery-marquee-track {
        animation-duration: 40s; /* Faster on mobile */
    }
}

#galleryMainSwiper .swiper-slide img {
    object-fit: cover;
    max-height: 70vh;
}

/* Thumbs strip */

#galleryThumbsSwiper {
    padding: 8px 0 16px;
}

#galleryThumbsSwiper .swiper-slide {
    width: auto;
    flex: 0 0 auto;
}

#galleryThumbsSwiper .swiper-slide img {
    height: 76px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgb(0 0 0 / 8%);
    opacity: 0.9;
    transition:
        opacity 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

#galleryThumbsSwiper .swiper-slide-thumb-active img {
    opacity: 1;
    box-shadow: 0 6px 16px rgb(0 0 0 / 12%);
    transform: translateY(-2px);
}

.gallery-see-all-link {
    position: absolute;
    top: -32px;
    right: 0;
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.gallery-see-all-link:hover {
    text-decoration: underline;
}

/* Custom Swiper buttons - white circular with subtle hover shadow */

.swiper-button-prev,
.swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: var(--bg-primary);
    border-radius: 50%;
    border: none;
    color: var(--color-accent);
    z-index: 10;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 16px var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    box-shadow: 0 10px 20px var(--color-accent-shadow-light);
    transform: translateY(-50%) scale(1.05);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    display: none; /* hide default arrow so our icon shows */
}

.swiper-button-prev {
    left: 14px;
}

.swiper-button-next {
    right: 14px;
}

@media (width <= 768px) {

    .swiper-button-prev,
    .swiper-button-next {
        width: 46px;
        height: 46px;
    }

    .swiper-button-prev {
        left: 10px;
    }

    .swiper-button-next {
        right: 10px;
    }
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    border-radius: 3px;
    box-shadow: 0 2px 8px var(--color-accent-shadow);
}

.gallery-featured {
    margin-top: 40px;
}

.gallery-item-large,
.gallery-item-medium,
.gallery-item-small,
.gallery-item-grid {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item-large {
    aspect-ratio: 4/5;
}

.gallery-item-medium {
    aspect-ratio: 16/9;
}

.gallery-item-small,
.gallery-item-grid {
    aspect-ratio: 1;
}

.gallery-item-large:hover,
.gallery-item-medium:hover,
.gallery-item-small:hover,
.gallery-item-grid:hover {
    transform: scale(1.05);
}

.gallery-item-large img,
.gallery-item-medium img,
.gallery-item-small img,
.gallery-item-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgb(234 139 44 / 80%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item-large:hover .gallery-overlay,
.gallery-item-medium:hover .gallery-overlay,
.gallery-item-small:hover .gallery-overlay,
.gallery-item-grid:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--text-white);
    font-size: 2rem;
    margin-bottom: 10px;
}

.gallery-overlay .gallery-info {
    text-align: center;
    color: var(--text-white);
}

.text-orange {
    color: var(--orange) !important;
}

.btn-orange {
    background-color: var(--orange);
    border-color: var(--orange);
    color: var(--text-white);
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-orange:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--color-accent-shadow);
}

.btn-outline-orange {
    border-color: var(--orange);
    color: var(--color-accent);
    font-weight: 500;
    padding: 10px 25px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-orange:hover {
    background-color: var(--orange);
    border-color: var(--orange);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* Navbar Styles */

.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: rgb(255 255 255 / 95%);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgb(0 0 0 / 10%);
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    border-bottom: 1px solid rgb(0 0 0 / 5%);
    height: auto;
    min-height: 80px;
}

/* ---------------------------------------------
   Homepage: Offers slider and product cards
   (merged from css2 and enhanced)
---------------------------------------------- */

/* Offers Section */

.offers-section {
    padding: 110px 0;
    background: var(--bg-primary);
}

.offers-slider-container {
    position: relative;
}

.offers-slider {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 20px 0;
}

.offers-track {
    display: flex;
    gap: 30px;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 0 60px;
}

.offer-card {
    flex: 0 0 300px;
    background: var(--bg-primary);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow-lg);
    transition: all 0.3s ease;
}

.offer-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.offer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px var(--color-accent-shadow-light);
}

.offer-image {
    height: 220px;
    overflow: hidden;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-content {
    padding: 25px;
}

.offer-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark);
}

.offer-content p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.offer-price .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--orange);
}

.slider-btn-enhanced {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(255 255 255 / 90%);
    backdrop-filter: blur(10px);
    border: none;
    color: var(--orange);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 5px 20px rgb(0 0 0 / 10%);
    font-size: 1.2rem;
}

.slider-btn-enhanced:hover {
    background: var(--orange);
    color: var(--text-white);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 8px 30px var(--color-accent-shadow);
}

.slider-btn-enhanced.prev {
    left: 10px;
}

.slider-btn-enhanced.next {
    right: 10px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--orange);
    transform: scale(1.2);
}

.dot:hover {
    background: var(--orange);
    opacity: 0.7;
}

/* Product Card (used by featured trips/circuits grids) */

.product-card {
    background: var(--bg-primary);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-md);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgb(234 139 44 / 15%);
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .card-image img {
    transform: scale(1.06);
}

/* Card overlay and badges */

.card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px;
    pointer-events: none;
}

.overlay-buttons {
    display: flex;
    gap: 10px;
    color: var(--text-white);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.product-card:hover .overlay-buttons {
    opacity: 1;
}

.discount-badge,
.featured-badge {
    pointer-events: auto;
}

.featured-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #ffd400, #ffae00);
    color: var(--text-primary);
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
} /* Brand yellow gradient kept for visibility */

.discount-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #ff4d4f;
    color: var(--text-white);
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
}

.card-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    min-height: 0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--orange);
}

.rating .stars {
    display: inline-flex;
    gap: 2px;
}

.rating .stars .filled {
    color: var(--orange);
}

.rating .stars .half-filled {
    color: var(--orange);
    opacity: 0.6;
}

.rating .rating-text {
    color: var(--gray);
    font-size: 0.9rem;
}

.duration {
    color: var(--gray);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-description {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
    /* Limit description to 3 lines with ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 4.8em; /* 3 lines * 1.6 line-height */
    flex-grow: 0;
}

.card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-section {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.original-price {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 0.95rem;
}

.current-price {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1.25rem;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-buttons .btn {
    padding: 8px 16px;
}

/* Testimonials */

.testimonials-section {
    padding: 90px 0;
    background: var(--bg-primary);
}

.testimonial-card {
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--shadow-md);
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.testimonial-header {
    display: flex;
    gap: 12px;
    align-items: center;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 auto;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-name {
    margin: 0;
    font-weight: 600;
    color: var(--dark);
}

.testimonial-location,
.testimonial-date {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.testimonial-rating {
    color: var(--color-accent);
    display: flex;
    gap: 2px;
}

.testimonial-content {
    color: var(--dark);
    line-height: 1.7;
}

/* Responsive tweaks for slider/cards */
@media (width <= 992px) {

    .offers-track {
        padding: 0 40px;
        gap: 24px;
    }

    .offer-card {
        flex-basis: 280px;
    }
}

@media (width <= 576px) {

    .offers-track {
        padding: 0 20px;
        gap: 16px;
    }

    .slider-btn-enhanced {
        width: 46px;
        height: 46px;
        font-size: 1rem;
    }

    .card-image {
        height: 190px;
    }
}

.navbar.scrolled {
    background: rgb(255 255 255 / 98%) !important;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 25px rgb(0 0 0 / 15%);
    border-bottom: 1px solid rgb(0 0 0 / 8%);
}

.navbar-brand {
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: 2rem;
}

.navbar-brand img {
    height: 80px;
    margin-right: 10px;
    transition: height 0.3s ease;
    filter: drop-shadow(0 2px 4px rgb(0 0 0 / 10%));
    max-width: 100%;
    object-fit: contain;
}

.navbar.scrolled .navbar-brand img {
    height: 80px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar-nav .nav-item {
    margin: 0 5px;
}

.navbar-nav .nav-link {
    color: var(--dark) !important;
    font-weight: 600;
    margin: 0 5px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover {
    color: var(--orange) !important;
    background-color: rgb(234 139 44 / 10%);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: var(--orange) !important;
    background-color: rgb(234 139 44 / 15%);
    font-weight: 700;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--orange);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-nav .nav-link i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    color: var(--dark);
    border-radius: 8px;
    transition: all 0.2s ease;
    background: transparent;
}

.navbar-toggler:hover {
    background-color: var(--light-beige);
    transform: scale(1.05);
}

.navbar-toggler:focus {
    box-shadow: none;
    background-color: var(--light-beige);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(51, 51, 51, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5em;
    height: 1.5em;
}

/* Navbar collapse */

.navbar-collapse {
    flex-grow: 1;
    justify-content: space-between;
}

/* Right side elements */

.navbar .d-flex {
    align-items: center;
    gap: 1rem;
}

/* Dropdown styling */

.dropdown-toggle {
    color: var(--dark) !important;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-toggle:hover {
    color: var(--orange) !important;
    background-color: var(--light-beige);
    border-color: rgb(234 139 44 / 20%);
    transform: translateY(-1px);
}

.dropdown-toggle:focus {
    box-shadow: none;
    outline: none;
}

.dropdown-toggle::after {
    margin-left: 0.5rem;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

.dropdown-menu {
    box-shadow: 0 10px 30px rgb(0 0 0 / 15%);
    border-radius: 12px;
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    min-width: 200px;
    background: var(--bg-primary);
    border: 1px solid rgb(0 0 0 / 5%);
    animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {

    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.dropdown-item {
    color: var(--dark) !important;
    background: white !important;
    padding: 0.75rem 1.25rem;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--light-beige) !important;
    color: var(--orange) !important;
    transform: translateX(5px);
}

.dropdown-item.active {
    background-color: var(--orange) !important;
    color: white !important;
    font-weight: 600;
}

.dropdown-item:active {
    background-color: var(--orange) !important;
    color: white !important;
}

/* Enhanced currency dropdown styling for better contrast */

.dropdown-item[data-currency] {
    color: var(--dark) !important;
    background: white !important;
    position: relative;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.dropdown-item[data-currency]:hover {
    background-color: var(--light-beige) !important;
    color: var(--orange) !important;
    border-color: rgb(234 139 44 / 20%);
    transform: translateX(5px);
}

.dropdown-item[data-currency].active {
    background-color: var(--orange) !important;
    color: white !important;
    font-weight: 600;
    border-color: var(--orange);
    box-shadow: 0 2px 8px rgb(234 139 44 / 30%);
}

.dropdown-item[data-currency].active .currency-symbol {
    color: white !important;
    background: transparent !important;
    text-shadow: 0 1px 2px rgb(0 0 0 / 10%);
}

/* Enhanced language dropdown styling */

.dropdown-item[data-lang] {
    color: var(--dark) !important;
    background: white !important;
    position: relative;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.dropdown-item[data-lang]:hover {
    background-color: var(--light-beige) !important;
    color: var(--orange) !important;
    border-color: rgb(234 139 44 / 20%);
    transform: translateX(5px);
}

.dropdown-item[data-lang].active {
    background-color: var(--orange) !important;
    color: white !important;
    font-weight: 600;
    border-color: var(--orange);
    box-shadow: 0 2px 8px rgb(234 139 44 / 30%);
}

/* Language and currency switchers */

.btn-link {
    color: var(--dark) !important;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    background: transparent;
}

.btn-link:hover {
    color: var(--orange) !important;
    background-color: var(--light-beige);
    border-color: rgb(234 139 44 / 20%);
    transform: translateY(-1px);
}

.btn-link:focus {
    box-shadow: none;
    outline: none;
}

/* Currency symbol enhanced styling */

.currency-symbol {
    display: inline-block;
    width: 20px;
    text-align: center;
    font-weight: 600;
    color: var(--color-accent);
    margin-right: 8px;
    background: transparent;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    line-height: 1;
    padding: 2px 0;
}

.dropdown-item[data-currency]:hover .currency-symbol {
    color: var(--color-accent);
    transform: scale(1.1);
}

.dropdown-item[data-currency].active .currency-symbol {
    color: white !important;
    transform: scale(1.1);
    text-shadow: 0 1px 2px rgb(0 0 0 / 20%);
}

/* Ensure proper spacing and alignment */

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Mobile Bottom Navigation */

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid rgb(0 0 0 / 10%);
    padding: 0.5rem 0;
    z-index: 999;
    display: none;
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gray);
    font-size: 0.8rem;
    padding: 0.5rem;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0 0.25rem;
}

.mobile-bottom-nav .nav-item:hover,
.mobile-bottom-nav .nav-item.active {
    color: var(--color-accent);
    background-color: rgb(234 139 44 / 10%);
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.mobile-bottom-nav .nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Show mobile navigation on small screens - match navbar breakpoint */
@media (width <= 991.98px) {

    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        flex-direction: column;
    }

    body {
        padding-bottom: 80px;
    }
}

/* Responsive navbar adjustments */
@media (width <= 991.98px) {

    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-brand img {
        height: 60px;
    }

    .navbar.scrolled .navbar-brand img {
        height: 60px;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 1rem;
    }

    .navbar-nav .nav-item {
        margin: 0;
        width: 100%;
    }

    .navbar-nav .nav-link {
        margin: 0;
        padding: 1rem;
        border-radius: 8px;
        text-align: center;
        justify-content: center;
    }

    .navbar .d-flex {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: center;
    }

    .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        margin-top: 0.5rem;
        box-shadow: none;
        border: 1px solid rgb(0 0 0 / 10%);
    }

    .navbar-collapse {
        background: rgb(255 255 255 / 98%);
        border-radius: 12px;
        padding: 1rem;
        margin-top: 1rem;
        box-shadow: 0 10px 30px rgb(0 0 0 / 10%);
    }

    .d-flex.align-items-center {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.5rem;
    }

    .dropdown {
        margin: 0.25rem 0;
    }

    .btn-link {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
    }

    .btn-orange {
        width: 100%;
        margin-top: 0.5rem;
    }
}

@media (width <= 767.98px) {

    .navbar-brand img {
        height: 60px;
    }

    .navbar.scrolled .navbar-brand img {
        height: 60px;
    }

    body {
        padding-top: 90px;
    }
}

/* Smooth scroll behavior */

html {
    scroll-behavior: smooth;
}

/* Ensure proper z-index stacking */

.navbar {
    z-index: 1030;
}

.dropdown-menu {
    z-index: 1031;
}

/* Body scroll lock when mobile navbar is open */

.body-lock-scroll {
    overflow: hidden;
    height: 100%;
    touch-action: none;
}

/* Footer */

.footer {
    background: var(--light-beige);
    color: var(--dark);
    padding: 60px 0 20px;
    position: relative;
    border-top: 1px solid var(--border-dark);
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgb(234 139 44 / 50%), transparent);
}

.footer-section h5 {
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--color-accent);
}

.contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: var(--gray);
}

.contact-info i {
    margin-right: 10px;
    width: 20px;
    color: var(--color-accent);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--orange);
    color: var(--text-white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--color-accent-hover);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    margin-top: 40px;
    padding-top: 20px;
    color: var(--gray);
}

/* Back to Top Button */

.back-to-top {
    position: fixed;
    bottom: 90px; /* keep above mobile bottom nav */
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--orange);
    color: var(--text-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgb(234 139 44 / 30%);
}

.back-to-top:hover {
    background: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgb(234 139 44 / 40%);
}

.back-to-top.show {
    display: flex;
}

/* Loading Indicator */

.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(255 255 255 / 90%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--light-beige);
    border-top: 4px solid var(--orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {

    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Page Header Styles */

.page-header {
    padding: 120px 0 60px;
    background: var(--light-beige);
    margin-top: 0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

.header-features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-primary);
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgb(0 0 0 / 10%);
    font-weight: 500;
    color: var(--dark);
}

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

.header-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgb(0 0 0 / 10%);
}

.header-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.header-image:hover img {
    transform: scale(1.05);
}

/* Breadcrumb Navigation */

.breadcrumb-nav {
    margin-bottom: 30px;
}

.breadcrumb-nav a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: var(--color-accent-hover);
}

.breadcrumb-nav span {
    color: var(--gray);
}

/* Form Styles */

.form-label {
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 8px;
    display: block;
}

.form-control,
.form-select {
    border: 2px solid var(--border-light);
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
    background: var(--bg-primary);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 0.2rem rgb(234 139 44 / 25%);
    outline: none;
}

/* Multi-step Form Styles */

.multi-step-form {
    padding: 80px 0;
    background: var(--bg-primary);
}

.step-card {
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgb(0 0 0 / 10%);
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.step-header {
    padding: 25px 30px;
    background: var(--light-beige);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-light);
}

.step-header:hover {
    background: var(--color-secondary); /* Warm beige hover state */
}

.step-header.collapsed {
    background: var(--bg-primary);
}

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.step-icon {
    margin-left: auto;
    color: var(--gray);
    transition: transform 0.3s ease;
}

.step-header.collapsed .step-icon {
    transform: rotate(0deg);
}

.step-header:not(.collapsed) .step-icon {
    transform: rotate(180deg);
}

.step-body {
    padding: 30px;
}

/* Responsive Design */
@media (width <= 768px) {

    .page-header {
        padding: 100px 0 40px;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1.1rem;
    }

    .header-features {
        flex-direction: column;
        gap: 15px;
    }

    .feature-item {
        width: 100%;
        justify-content: center;
    }

    .step-header {
        padding: 20px;
    }

    .step-body {
        padding: 20px;
    }

    .step-title {
        font-size: 1.1rem;
    }
}

@media (width <= 576px) {

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

    .page-subtitle {
        font-size: 1rem;
    }

    .step-header {
        padding: 15px;
    }

    .step-body {
        padding: 15px;
    }
}

/* Additional navbar consistency fixes */

.navbar {
    font-family: Poppins, sans-serif;
    font-weight: 500;
}

/* Ensure navbar elements are properly aligned */

.navbar .navbar-nav {
    flex-grow: 1;
    justify-content: center;
}

.navbar .navbar-nav .nav-item {
    position: relative;
}

.navbar .navbar-nav .nav-link {
    position: relative;
    overflow: hidden;
}

/* Active state indicator */

.navbar .navbar-nav .nav-link.active::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--orange);
    border-radius: 2px;
}

/* Hover effects */

.navbar .navbar-nav .nav-link:hover::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--orange);
    border-radius: 2px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {

    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* Dropdown improvements */

.navbar .dropdown-menu {
    margin-top: 0.5rem;
    border: 1px solid rgb(0 0 0 / 8%);
    box-shadow: 0 8px 25px rgb(0 0 0 / 12%);
}

.navbar .dropdown-item {
    border-radius: 0;
    margin: 0;
    padding: 0.75rem 1.25rem;
}

.navbar .dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.navbar .dropdown-item:last-child {
    border-radius: 0 0 12px 12px;
}

.navbar .dropdown-item:only-child {
    border-radius: 12px;
}

/* Currency and language switcher improvements */

.navbar .btn-link {
    font-size: 0.95rem;
    font-weight: 600;
    min-width: 80px;
    justify-content: center;
}

.navbar .btn-link i {
    font-size: 1rem;
    margin-right: 0.25rem;
}

/* Ensure proper spacing between navbar elements */

.navbar .d-flex > * {
    margin: 0 0.25rem;
}

.navbar .d-flex > *:first-child {
    margin-left: 0;
}

.navbar .d-flex > *:last-child {
    margin-right: 0;
}

/* Logo improvements */

.navbar-brand {
    min-width: 200px;
    justify-content: flex-start;
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgb(0 0 0 / 15%));
}

/* Mobile navbar improvements */
@media (width <= 991.98px) {

    .navbar .navbar-nav {
        justify-content: flex-start;
        text-align: left;
    }

    .navbar .navbar-nav .nav-link {
        justify-content: flex-start;
        text-align: left;
        padding: 1rem 1.5rem;
        border-radius: 8px;
        margin: 0.25rem 0;
    }

    .navbar .navbar-nav .nav-link:hover {
        background-color: rgb(234 139 44 / 10%);
        transform: translateX(5px);
    }

    .navbar .navbar-nav .nav-link.active {
        background-color: rgb(234 139 44 / 15%);
        border-left: 4px solid var(--orange);
        padding-left: calc(1.5rem - 4px);
    }

    .navbar .d-flex {
        align-items: stretch;
        width: 100%;
    }

    .navbar .dropdown {
        width: 100%;
    }

    .navbar .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 1rem 1.5rem;
        border-radius: 8px;
        border: 1px solid rgb(0 0 0 / 10%);
        background: rgb(0 0 0 / 2%);
    }

    .navbar .dropdown-menu {
        margin-top: 0.25rem;
        border-radius: 8px;
        border: 1px solid rgb(0 0 0 / 10%);
        background: var(--bg-primary);
    }

    .navbar .dropdown-item {
        padding: 1rem 1.5rem;
        border-radius: 0;
    }

    .navbar .dropdown-item:first-child {
        border-radius: 8px 8px 0 0;
    }

    .navbar .dropdown-item:last-child {
        border-radius: 0 0 8px 8px;
    }

    /* Full-screen scrollable panel when navbar is open on mobile */

    #mainNavbar .navbar-collapse.show {
        position: fixed;
        inset: 0;
        background: rgb(255 255 255 / 98%);
        padding: 90px 16px 16px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1040;
    }

    /* Keep toggler above overlay */

    #mainNavbar .navbar-toggler {
        z-index: 1050;
    }

    /* Ensure combined Lang/Currency dropdown scrolls within panel */

    .combined-settings-menu {
        max-height: calc(100vh - 180px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Ensure navbar is always on top */

.navbar {
    z-index: 1030;
}

/* Fix for any potential Bootstrap conflicts */

.navbar.navbar-expand-lg .navbar-collapse {
    flex-basis: auto;
}

.navbar.navbar-expand-lg .navbar-nav {
    flex-direction: row;
}

@media (width <= 991.98px) {

    .navbar.navbar-expand-lg .navbar-nav {
        flex-direction: column;
    }
}

/* Minimalist Navbar Actions Design */

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-action-item {
    position: relative;
}

/* Icon-focused buttons for language and currency */

.navbar-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 10px;
    transition: all 0.25s ease;
    border: none !important;
    background: transparent;
    min-width: auto;
}

.combined-settings-btn .icon-duo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.combined-settings-btn .icon-stack {
    position: relative;
    width: 24px;
    height: 24px;
    display: inline-block;
}

.combined-settings-btn .icon-stack .base-icon {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.25rem;
    color: var(--dark);
}

.combined-settings-btn .icon-stack .overlay-icon {
    position: absolute;
    right: -4px;
    bottom: -4px;
    font-size: 0.8rem;
    color: var(--color-accent);
}

.combined-settings-btn:hover .icon-stack .base-icon {
    color: var(--orange);
}

.combined-settings-btn .navbar-icon {
    font-size: 1.25rem;
}

.combined-settings-menu {
    min-width: 320px;
    max-width: min(92vw, 680px);
}

.combined-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: start;
}

.combined-col {
    min-width: 0;
}

.combined-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: var(--orange);
    font-size: 1rem;
    padding: 6px 8px;
}

.combined-header i {
    color: var(--orange);
}

.combined-col .dropdown-item {
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
}

.combined-col .dropdown-item img {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
}

@media (width <= 480px) {

    .combined-settings-menu {
        max-width: 96vw;
        min-width: 0;
    }

    .combined-menu-grid {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/* Larger avatar per request */

.user-avatar-icon {
    font-size: 2.1rem;
}

.navbar-icon-btn:hover {
    background-color: rgb(234 139 44 / 8%);
    color: var(--orange) !important;
    transform: translateY(-1px);
}

.icon-with-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    min-width: 48px;
}

.navbar-icon {
    font-size: 1.35rem;
    color: var(--dark);
    line-height: 1;
    transition: color 0.25s ease;
}

.navbar-icon-btn:hover .navbar-icon {
    color: var(--color-accent);
}

.navbar-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1;
}

/* User Avatar Button */

.user-dropdown {
    position: relative;
}

.user-avatar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.25s ease;
    border: none !important;
    background: transparent;
    min-width: auto;
}

.user-avatar-btn:hover {
    background-color: rgb(234 139 44 / 8%);
    transform: scale(1.03);
}

.user-avatar-container {
    position: relative;
}

.user-avatar-icon {
    font-size: 1.85rem;
    color: var(--dark);
    line-height: 1;
    transition: color 0.25s ease;
}

.user-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Keep spacing consistent when avatar grows */

.user-avatar-btn {
    padding: 0.25rem 0.35rem;
}

.navbar .navbar-actions {
    gap: 0.75rem;
}

.navbar .btn.nav-cta {
    margin-left: 0.25rem;
}

/* Avatar inside dropdown header */

.user-avatar-menu-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-avatar-btn:hover .user-avatar-icon {
    color: var(--orange);
}

/* User Dropdown Menu */

.user-dropdown-menu {
    margin-top: 0.5rem;
    border: 1px solid rgb(0 0 0 / 8%);
    box-shadow: 0 8px 25px rgb(0 0 0 / 12%);
    border-radius: 12px;
    min-width: 220px;
    padding: 0.5rem 0;
}

.user-dropdown-menu .dropdown-header {
    padding: 0.75rem 1.25rem 0.5rem;
    margin-bottom: 0;
    font-size: 0.875rem;
    background: transparent;
    border: none;
}

.user-info {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--dark);
}

.user-info i {
    font-size: 1.5rem;
    color: var(--color-accent);
}

/* Remove dropdown toggle arrow for cleaner look */

.navbar-icon-btn::after,
.user-avatar-btn::after {
    display: none;
}

/* Responsive Design */
@media (width <= 991.98px) {

    .navbar-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        align-items: stretch;
    }

    .navbar-action-item {
        width: 100%;
    }

    .navbar-icon-btn {
        width: 100%;
        padding: 1rem;
        flex-direction: row;
        justify-content: flex-start;
        border: 1px solid rgb(0 0 0 / 10%);
        border-radius: 8px;
    }

    .icon-with-label {
        flex-direction: row;
        gap: 0.75rem;
        align-items: center;
    }

    .navbar-icon {
        font-size: 1.5rem;
    }

    .navbar-label {
        font-size: 0.875rem;
        text-transform: none;
        letter-spacing: normal;
    }

    .user-avatar-btn {
        width: 100%;
        padding: 1rem;
        border-radius: 8px;
        border: 1px solid rgb(0 0 0 / 10%);
        justify-content: flex-start;
        gap: 0.75rem;
    }

    .user-avatar-btn::after {
        display: block;
        margin-left: auto;
    }

    .dropdown-menu {
        width: 100%;
        position: static !important;
        transform: none !important;
        margin-top: 0.25rem;
        border-radius: 8px;
    }
}

@media (width <= 767.98px) {

    .navbar-actions {
        gap: 0.25rem;
    }

    .navbar-icon-btn,
    .user-avatar-btn {
        padding: 0.75rem;
    }
}

/* Ensure navbar doesn't overflow */

.navbar .container {
    overflow: hidden;
}

.navbar-nav {
    flex: 1;
    min-width: 0;
}

.navbar-actions {
    flex-shrink: 0;
    min-width: 0;
}

/* Dropdown menu enhancements */

.dropdown-menu {
    border: 1px solid rgb(0 0 0 / 8%);
    box-shadow: 0 8px 25px rgb(0 0 0 / 12%);
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
}

.dropdown-item {
    border-bottom: 1px solid rgb(0 0 0 / 5%);
    transition: all 0.2s ease;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--light-beige) !important;
    color: var(--orange) !important;
    transform: translateX(5px);
}

.dropdown-item.active {
    background-color: var(--orange) !important;
    color: white !important;
    font-weight: 600;
    position: relative;
}

.dropdown-item.active::after {
    content: "✓";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-white);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Ensure proper contrast for all dropdown states */

.dropdown-item:not(.active) {
    color: var(--dark) !important;
    background: white !important;
}

.dropdown-item:not(.active):hover {
    background-color: var(--light-beige) !important;
    color: var(--orange) !important;
}

/* Focus states for accessibility */

.dropdown-item:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgb(234 139 44 / 25%);
}

.dropdown-item.active:focus {
    box-shadow: 0 0 0 2px rgb(255 255 255 / 50%);
}
