:root {
    --primary-color: #4A90E2;
    --secondary-color: #FADADD;
    --accent-color: #F3E5AB;
    --navy-color: #1A237E;
    --bg-light: #F8FAFC;
    --text-main: #2D3748;
    --text-muted: #718096;
    --white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --font-main: 'Outfit', sans-serif;
    --curve-height: 80px;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    /* Fluid Typography */
    --fs-h1: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    --fs-h2: clamp(2rem, 4vw + 1rem, 3rem);
    --fs-h3: clamp(1.5rem, 3vw + 0.5rem, 2rem);
    --fs-p: clamp(1rem, 1vw + 0.5rem, 1.125rem);

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background: var(--bg-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animations */
@keyframes wave {
    0% {
        transform: translateX(0);
    }

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

    100% {
        transform: translateX(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

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

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

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

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

@keyframes pulse {

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

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

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--navy-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: var(--white);
}

.loader-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: pulse 2s infinite ease-in-out;
}

.loader-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Layout Helpers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.vcard-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: transparent;
}

.vcard-header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.5rem 0;
}

/* Hero Section - Consolidated & Refined to avoid overlap */
.hero-section {
    position: relative;
    padding: clamp(6rem, 12vh, 12rem) 0 clamp(10rem, 20vh, 15rem);
    background: linear-gradient(-45deg, #FADADD, #E0F2FE, #F3E5AB, #FFFFFF);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    text-align: center;
    overflow: hidden;
}

.hero-section .container {
    position: relative;
    z-index: 20;
    /* Keep content above curve */
}

.hero-curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-curve svg {
    fill: var(--bg-light);
}

/* Cards & Components */
.card-main {
    background: var(--white);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid transparent;
}

.card-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5);
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color);
}

.bg-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

/* Company Details Icons */
.icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-icon,
.phone-icon {
    background: var(--secondary-color);
    color: var(--navy-color);
}

.whatsapp-icon {
    background: #25D366;
    color: white;
}

.profile-img-header {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary-color);
}

.promo-card {
    background: linear-gradient(135deg, var(--white), var(--bg-light));
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Section Curves & Symmetry */
.section-with-curve {
    position: relative;
    padding-bottom: 8rem;
}

.services-section {
    z-index: 13;
    position: relative;
}

.section-curve-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 10;
}

.section-curve-bottom svg {
    fill: var(--bg-light);
}

.alternate-section {
    background: var(--bg-light) !important;
}

.alternate-section .section-curve-bottom svg {
    fill: var(--white);
}

/* Typography Overrides */
h1 {
    font-size: var(--fs-h1);
    line-height: 1.1;
}

h2 {
    font-size: var(--fs-h2);
    line-height: 1.2;
}

p {
    font-size: var(--fs-p);
}

/* Responsive Grid/Flex Fixes */
.grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Main Content Spacing for Fixed Header */
.main-content.internal-main {
    padding-top: 130px;
    /* Strong clearance for breadcrumbs */
    min-height: 60vh;
}

/* Improved Card interaction */
.card-main {
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Mobile Nav Enhancements */
.mobile-nav-overlay {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.85) !important;
    z-index: 2000;
    /* Extremely high to cover everything */
}

.mobile-nav-content {
    border: 1px solid var(--secondary-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Button Refinement */
.btn-primary {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
}

a.btn.btn-outline-dark {
    padding-top: 15px;
}

.btn-outline-dark {
    border: 2px solid var(--navy-color);
    color: var(--navy-color);
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-dark:hover {
    background: var(--navy-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Sticky Action Bar for Mobile */
.sticky-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    z-index: 999;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .hero-section .hero-content {
        padding: 0 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    .hero-section {
        padding: 5rem 0 3rem;
    }

    .card-main {
        padding: 1.5rem;
    }

    .section-header h2 {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }

    .section-header p {
        font-size: 1.1rem;
    }
}

.section-header h2 {
    font-size: var(--fs-h2);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* Modal Base Overlay */
.purchase-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.purchase-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    width: 100%;
    max-width: 500px;
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    transform: translateY(-30px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.purchase-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header-custom {
    background: var(--bg-light);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem;
}

.product-summary-box {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 15px;
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.product-summary-box img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
}

/* Search Specific */
.search-input-wrapper input {
    border: 2px solid rgba(0, 0, 0, 0.05);
    background: var(--bg-light);
    transition: var(--transition);
}

.search-input-wrapper input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
    background: var(--white);
}

.search-results-list {
    max-height: 450px;
    overflow-y: auto;
    margin-top: 1rem;
    scrollbar-width: thin;
}

.search-results-list::-webkit-scrollbar {
    width: 6px;
}

.search-results-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* List Group Enhancements */
.list-group-item-action {
    border-radius: 15px !important;
    margin-bottom: 5px;
    transition: var(--transition);
}

.list-group-item-action:hover {
    background: var(--bg-light);
    transform: translateX(5px);
}

/* Quantity Control */
.quantity-control .qty-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Business Hours Modal (Bottom Sheet Style) */
.business-hours-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2100;
    display: none;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.business-hours-overlay.active {
    display: flex;
    opacity: 1;
}

.business-hours-content {
    width: 100%;
    background: var(--white);
    border-radius: 30px 30px 0 0;
    padding: 2.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 80vh;
    overflow-y: auto;
}

.business-hours-overlay.active .business-hours-content {
    transform: translateY(0);
}

.business-hour-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

/* Product Card Improvements */
.product-card {
    background: var(--white);
    border-radius: 20px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.product-image img {
    border-radius: 15px;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3);
}

/* Form Controls */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.heroSwiper {
    padding-bottom: 50px;
}

.hero-product-card {
    transition: var(--transition);
    background: var(--white);
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.hero-product-card:hover {
    transform: translateY(-10px) rotate(2deg);
}

.hero-image-wrapper {
    height: 350px;
    background: var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hero-image-wrapper img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 576px) {
    .hero-image-wrapper {
        height: 250px;
    }
}

.service-card-large {
    transition: var(--transition);
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: var(--white);
}

.service-card-large:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.service-image img {
    object-fit: cover;
}

@media (max-width: 576px) {
    .service-image {
        height: 200px !important;
    }
}

/* Offer Card Components */
.ribbon {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--primary-color);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.coupon-code {
    border: 2px dashed var(--secondary-color);
    color: var(--navy-color);
    font-weight: 700;
    font-style: italic;
    letter-spacing: 1px;
}