/* Base Styles */
:root {
    --primary-blue: #1a5f7a;
    --secondary-blue: #2d8da3;
    --accent-green: #57cc99;
    --light-blue: #e3f2fd;
    --dark-blue: #0a3d62;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}
 /* TOP MARQUEE BAR - CSS ONLY */
.top-marquee-bar {
    position: relative;
    width: 100%;
    background: linear-gradient(90deg, #1a5f7a 0%, #2a7fa0 50%, #1a5f7a 100%);
    color: white;
    overflow: hidden;
    height: 35px;
    display: flex;
    align-items: center;
    z-index: 1000;
}

/* MERGED & FIXED */
.marquee-container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    contain: layout paint;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    width: max-content;
    min-width: 200%;
    flex-shrink: 0;

    /* 🔒 DEFINE ONCE */
    --marquee-speed: 25s;
    animation: seamlessMarquee var(--marquee-speed) linear infinite;

    transform: translate3d(0,0,0);
    will-change: transform;
    backface-visibility: hidden;
}

/* KEYFRAMES */
@keyframes seamlessMarquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 0 12px;
    flex-shrink: 0;
}

/* Remove gaps */
.marquee-item + .marquee-item {
    margin-left: 0;
    padding-left: 0;
}

/* 📱 RESPONSIVE — ONLY VARIABLES & FONT SIZE */
@media (max-width: 768px) {
    .top-marquee-bar { height: 32px; }
    .marquee-track {
        font-size: 13px;
        --marquee-speed: 15s;
    }
    .marquee-item { padding: 0 10px; }
}

@media (max-width: 450px) {
    .top-marquee-bar { height: 30px; }
    .marquee-track {
        font-size: 12px;
        --marquee-speed: 12s;
    }
    .marquee-item { padding: 0 8px; }
}
/*
@media (max-width: 318px) {
    .top-marquee-bar { height: 28px; }
    .marquee-track {
        font-size: 11px;
        --marquee-speed: 10s;
    }
    .marquee-item { padding: 0 6px; }
}

/* Pause on hover */
.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

/* Touch pause (mobile) */
@media (hover: none) and (pointer: coarse) {
    .marquee-container:active .marquee-track {
        animation-play-state: paused;
    }
}


h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
}

.btn:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-green {
    background-color: var(--accent-green);
}

.btn-green:hover {
    background-color: #38b2ac;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: 80px 0;
}






/* Educational Resources Styles */
.resource-tags {
    display: flex;
    gap: 8px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.resource-tag {
    background: #e3f2fd;
    color: #1565c0;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.resource-download-info {
    margin: 10px 0;
    color: #666;
    font-size: 14px;
}

.resource-download-info i {
    margin-right: 5px;
    color: #4caf50;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    max-width: 350px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-content {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification p {
    margin: 0;
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0 0 0 10px;
    font-size: 16px;
}

.notification-close:hover {
    color: #666;
}

.notification-success {
    border-left: 4px solid #4caf50;
}

.notification-error {
    border-left: 4px solid #f44336;
}

.notification-info {
    border-left: 4px solid #2196f3;
}

/* Header & Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    flex-wrap: nowrap;
}

.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px;
    width: 50px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}

.logo-text h1 {
    margin-bottom: 2px;
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    line-height: 1.1;
}

.logo-text p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

nav {
    flex-shrink: 1;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-blue);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
    padding-left: 20px;
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background-color: var(--accent-green);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    max-width: 700px;
    margin: 15px auto 0;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Page Hero */
.page-hero {
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--white);
}

.page-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background-color: var(--light-gray);
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    height: 240px;
    background: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.service-icon img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* About Section */
.about-section {
    padding: 80px 0;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-img {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
}

.about-content {
    flex: 1;
}

/* Stats Section */
.stats {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 60px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent-green);
}

.stat-label {
    font-size: 1.2rem;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background-color: var(--light-blue);
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 4rem;
    color: var(--accent-green);
    position: absolute;
    top: 10px;
    left: 20px;
    opacity: 0.3;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}

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

.author-info h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.author-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Call to Action */
.cta {
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    color: var(--primary-blue);
    text-align: center;
}

.cta h2 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    color: var(--white);
    font-size: 1.8rem;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    margin: 15px 0;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--accent-green);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact p i {
    color: var(--accent-green);
    margin-top: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Treatments Page */
.treatment-categories {
    background-color: var(--light-gray);
    padding: 60px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-blue);
}

.category-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--accent-green);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.treatment-detail {
    padding: 80px 0;
}

.treatment-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.treatment-description {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
}

.treatment-procedures {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.procedure-list {
    list-style: none;
}

.procedure-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--medium-gray);
    display: flex;
    align-items: center;
    gap: 10px;
}

.procedure-list li i {
    color: var(--accent-green);
}

/* Resources Page */
.resources-section {
    padding: 80px 0;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.resource-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.resource-card:hover {
    transform: translateY(-5px);
}

.resource-img {
    height: 200px;
    overflow: hidden;
}

.resource-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.resource-card:hover .resource-img img {
    transform: scale(1.05);
}

.resource-content {
    padding: 25px;
}

.resource-meta {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
    margin-top: 15px;
}

.resource-link:hover {
    color: var(--accent-green);
    gap: 10px;
}

.faq-section {
    background-color: var(--light-gray);
    padding: 80px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-answer.active {
    padding: 20px;
    max-height: 500px;
}

/* Appointment Page */
.appointment-section {
    padding: 80px 0;
}

.appointment-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.appointment-info {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 8px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.info-icon {
    background-color: var(--primary-blue);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.appointment-form-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* Resources Navigation */
.resources-nav {
    background-color: var(--light-gray);
    padding: 20px 0;
    position: sticky;
    top: 75px;
    z-index: 999;
}

.resources-nav-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.resource-nav-link {
    padding: 10px 20px;
    background-color: var(--white);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    gap: 8px;
}

.resource-nav-link:hover,
.resource-nav-link.active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.resource-nav-link.cart-link {
    background-color: var(--accent-green);
    color: white;
    border-color: var(--accent-green);
}

.resource-nav-link.cart-link:hover {
    background-color: #38b2ac;
}

.cart-count {
    background-color: #e63946;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Products Store */
.products-store {
    padding: 80px 0;
}

.product-categories {
    margin-bottom: 40px;
}

.categories-container {
    display: flex;
   /* justify-content: center;  */
    flex-wrap: wrap;
    gap: 10px;
    display: flex;
    overflow-x: auto;  
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.category-btn {
    padding: 10px 20px;
    background-color: var(--white);
    border: 2px solid var(--medium-gray);
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.category-btn:hover,
.category-btn.active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e63946;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.product-badge:nth-child(2) {
    top: 40px;
    background-color: var(--accent-green);
}

.product-img {
    height: 200px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-content {
    padding: 20px;
}

.product-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    height: 60px;
    overflow: hidden;
}

.product-description {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
    height: 60px;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.current-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-blue);
}

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

.discount {
    background-color: #ffebee;
    color: #e63946;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.product-rating i {
    color: #ffc107;
}

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

.product-card .btn {
    width: 100%;
    padding: 10px;
    font-size: 0.9rem;
}

/* Chat Button */
.chat-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--primary-blue);
    border: none;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    color: var(--dark-blue);
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 6px 20px var(--primary-blue);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-btn:hover {
    background: var(--primary-blue);
    transform: scale(1.1);
    box-shadow: 0 8px 25px var(--primary-blue);
}

.chat-btn.rotate {
    transform: rotate(180deg) scale(1.1);
}

/* Chat Panel */
.chat-panel {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 340px;
    max-height: 450px;
    background: #80a5ea;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 999;
    border: 1px solid var(--medium-gray);
}

.chat-panel.active {
    display: flex;
    animation: chatSlideUp 0.3s ease;
}

@keyframes chatSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    padding: 20px;
    font-size: 18px;
    font-weight: 700;
    position: relative;
}

.chat-header span {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-top: 5px;
    font-weight: 500;
}

.chat-content {
    padding: 15px 20px;
    background: #e8f5e9;
    flex: 1;
    overflow-y: auto;
}

.chat-section {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin: 12px 0;
    padding: 15px 18px;
    transition: transform 0.3s ease;
}

.chat-section:hover {
    transform: translateY(-2px);
}

.chat-section h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: var(--primary-blue);
    font-weight: 600;
}

.chat-section p {
    margin: 8px 0;
    color: var(--text-dark);
    font-size: 14px;
}

.faq-item {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 10px;
    padding: 12px 15px;
    margin: 8px 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--medium-gray);
}

.faq-item:hover {
    background: var(--light-gray);
    transform: translateX(5px);
    border-color: var(--primary-blue);
}

.faq-item .icon {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--white);
    font-size: 14px;
    line-height: 28px;
    text-align: center;
    margin-right: 12px;
    font-weight: 600;
}

.faq-item .text {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.icon.e { background: var(--accent-green); }
.icon.p { background: var(--secondary-blue); }
.icon.o { background: var(--primary-blue); }

.chat-msg {
    margin: 10px 0;
    padding: 10px 14px;
    border-radius: 10px;
    max-width: 80%;
    font-size: 14px;
    line-height: 1.4;
}

.chat-msg.user {
    background: var(--light-gray);
    align-self: flex-end;
    margin-left: auto;
    color: var(--text-dark);
}

.chat-msg.bot {
    background: var(--primary-blue);
    color: var(--white);
    align-self: flex-start;
}


@media only screen and (max-width: 359px) {

    /* Chat Button */
    .chat-btn {
        width: 48px;
        height: 48px;
        font-size: 21px;
        bottom: 14px;
        right: 14px;
    }

    /* Chat Panel */
    .chat-panel {
        width: calc(100% - 20px);
        right: 10px;
        bottom: 70px;
        max-height: 62vh;   /* ↓ reduced from 75vh */
        border-radius: 10px;
    }

    .chat-header {
        padding: 10px 12px; /* ↓ tighter header */
        font-size: 14px;
    }

    .chat-header span {
        font-size: 11px;
    }

    .chat-content {
        padding: 10px; /* ↓ */
    }

    .chat-section {
        padding: 10px;
        margin: 8px 0;
    }

    .chat-section h3 {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .chat-section p,
    .faq-item .text,
    .chat-msg {
        font-size: 12.5px;
    }

    .chat-msg {
        padding: 8px 10px; /* ↓ bubble height */
    }
}


/* Emergency Banner */
.emergency-banner {
    background: linear-gradient(135deg, #e63946, #ff6b6b);
    color: white;
    padding: 20px 0;
}

.emergency-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.emergency-icon {
    font-size: 2.5rem;
}

.emergency-text {
    flex: 1;
}

.emergency-text h3 {
    color: white;
    margin-bottom: 5px;
}

.emergency-text p {
    margin-bottom: 0;
    opacity: 0.9;
}

.emergency-contact .btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Map Section */
.map-section {
    padding: 80px 0;
}

.map-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.map-embed {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.location-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.location-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-blue);
}

.location-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.location-card h3 i {
    color: var(--primary-blue);
}

/* Contact Methods */
.contact-methods {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.method-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 15px;
    border: 2px solid var(--medium-gray);
    border-radius: 4px;
    transition: var(--transition);
}

.method-option:hover {
    border-color: var(--primary-blue);
}

.method-option input[type="radio"] {
    margin: 0;
}

.method-option span {
    font-weight: 500;
}

/* Quick Contact Options */
.contact-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-option {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    border-top: 4px solid var(--primary-blue);
}

.contact-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-option-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: white;
}

.contact-option-icon.phone {
    background-color: var(--primary-blue);
}

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

.contact-option-icon.email {
    background-color: var(--accent-green);
}

.contact-option-icon.appointment {
    background-color: #6c5ce7;
}

.contact-option h3 {
    margin-bottom: 10px;
    color: var(--dark-blue);
}

.contact-option p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.contact-number {
    display: inline-block;
    background-color: var(--light-gray);
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 600;
    color: var(--primary-blue);
}

/* Shopping Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: flex-end;
}

.cart-modal.active {
    display: flex;
}

.cart-modal-content {
    background-color: var(--white);
    width: 100%;
    max-width: 450px;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.cart-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--medium-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-modal-header h3 {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.cart-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.cart-empty i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--medium-gray);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--medium-gray);
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.cart-item-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 10px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-btn {
    width: 25px;
    height: 25px;
    border: 1px solid var(--medium-gray);
    background: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: 1px solid var(--medium-gray);
    border-radius: 4px;
    padding: 2px;
}

.remove-item {
    background: none;
    border: none;
    color: #e63946;
    cursor: pointer;
    font-size: 0.9rem;
}

.cart-modal-footer {
    padding: 20px;
    border-top: 1px solid var(--medium-gray);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.cart-total-amount {
    color: var(--primary-blue);
}

.cart-actions {
    display: flex;
    gap: 10px;
}

.cart-actions .btn {
    flex: 1;
}

/* Checkout Modal */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.checkout-modal.active {
    display: flex;
}

.checkout-modal-content {
    background-color: var(--white);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.checkout-modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--medium-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-checkout {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.checkout-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.checkout-steps {
    margin-bottom: 20px;
}

.checkout-step {
    display: none;
}

.checkout-step.active {
    display: block;
}

.checkout-step h4 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-blue);
}

.order-summary {
    background-color: var(--light-gray);
    padding: 20px;
    border-radius: 8px;
}

.order-items {
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--medium-gray);
}

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

.order-item-name {
    flex: 1;
}

.order-item-quantity {
    margin: 0 15px;
    color: var(--text-light);
}

.order-item-price {
    font-weight: 600;
    color: var(--primary-blue);
}

.order-totals {
    border-top: 2px solid var(--medium-gray);
    padding-top: 15px;
}

.order-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.order-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-blue);
    border-top: 2px solid var(--medium-gray);
    padding-top: 10px;
    margin-top: 10px;
}

.checkout-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.checkout-navigation .btn {
    min-width: 120px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-container {
        flex-direction: column;
    }
    
    .hero h1,
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .appointment-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
    
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
    
    .emergency-content {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-options-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .cart-modal-content {
        max-width: 100%;
    }
    
    .checkout-modal-content {
        max-height: 100vh;
        border-radius: 0;
    }
    
    .checkout-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .checkout-navigation .btn {
        width: 100%;
    }
}

/* Mobile 318px - 380px Responsive */
@media (max-width: 380px) {
    /* Container fixes */
    .container {
        padding: 0 10px !important;
    }
    
    /* Header fixes */
    .header-container {
        padding: 8px 0 !important;
    }
    
    .logo img {
        height: 35px !important;
        width: 35px !important;
    }
    
    .logo-text h1 {
        font-size: 0.9rem !important;
        line-height: 1.1 !important;
        margin-bottom: 0 !important;
    }
    
    /* Page Hero fixes */
    .page-hero {
        padding: 40px 0 !important;
    }
    
    .page-hero h1 {
        font-size: 1.4rem !important;
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
        padding: 0 5px !important;
    }
    
    .page-hero p {
        font-size: 0.85rem !important;
        line-height: 1.3 !important;
        padding: 0 5px !important;
    }
    
    /* Section Title fixes */
    .section-title {
        margin-bottom: 30px !important;
    }
    
    .section-title h2 {
        font-size: 1.3rem !important;
        padding-bottom: 8px !important;
    }
    
    .section-title p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        padding: 0 5px !important;
        margin-top: 8px !important;
    }
    
    /* Treatment Categories fixes */
    .treatment-categories {
        padding: 30px 0 !important;
    }
    
    .categories-grid {
        gap: 12px !important;
        padding: 0 5px !important;
    }
    
    .category-card {
        padding: 15px !important;
        margin: 0 !important;
    }
    
    .category-card h3 {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
    }
    
    .category-card p {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0 !important;
    }
    
    /* Treatment Detail fixes */
    .treatment-detail {
        padding: 30px 0 !important;
    }
    
    .treatment-info {
        gap: 20px !important;
        padding: 0 !important;
    }
    
    .treatment-description,
    .treatment-procedures {
        padding: 20px 15px !important;
        margin: 0 !important;
        border-radius: 6px !important;
    }
    
    .treatment-description h3,
    .treatment-procedures h3 {
        font-size: 1.1rem !important;
        margin-bottom: 12px !important;
    }
    
    .treatment-description h4 {
        font-size: 1rem !important;
        margin: 15px 0 8px 0 !important;
    }
    
    /* Paragraph fixes */
    .treatment-description p,
    .treatment-description li,
    .procedure-list li {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        margin-bottom: 8px !important;
    }
    
    /* Lists fixes */
    .treatment-description ul {
        padding-left: 18px !important;
        margin: 10px 0 !important;
    }
    
    .treatment-description ul li {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 6px !important;
    }
    
    /* Procedure list fixes */
    .procedure-list {
        padding-left: 0 !important;
    }
    
    .procedure-list li {
        padding: 8px 0 !important;
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
        align-items: flex-start !important;
    }
    
    .procedure-list li i {
        font-size: 0.7rem !important;
        margin-top: 3px !important;
    }
    
    .procedure-list li strong {
        font-size: 0.8rem !important;
    }
    
    /* CTA Section fixes */
    .cta {
        padding: 40px 0 !important;
    }
    
    .cta h2 {
        font-size: 1.3rem !important;
        margin-bottom: 15px !important;
        padding: 0 5px !important;
    }
    
    .cta p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        margin-bottom: 20px !important;
        padding: 0 5px !important;
    }
    
    .cta-buttons {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .cta-buttons .btn {
        width: 100% !important;
        max-width: 280px !important;
        padding: 12px !important;
        font-size: 0.9rem !important;
    }
    
    /* Footer fixes */
    .footer-container {
        gap: 25px !important;
        padding: 0 10px !important;
    }
    
    .footer-links ul li a,
    .footer-contact p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
    
    .copyright p {
        font-size: 0.7rem !important;
        line-height: 1.3 !important;
        padding: 0 10px !important;
    }
    
    /* Chat button fixes */
    .chat-btn {
        bottom: 15px !important;
        right: 15px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
    }
    
    .chat-panel {
        bottom: 70px !important;
        right: 10px !important;
        width: 300px !important;
        max-width: calc(100vw - 20px) !important;
    }
    
    /* Resources Navigation fixes */
    .resources-nav {
        padding: 10px 0 !important;
        top: 56px !important;
    }
    
    .resources-nav-container {
        flex-direction: column;
        padding: 0 15px;
    }
    
    .resource-nav-link {
        justify-content: center;
        text-align: center;
        padding: 8px 12px !important;
        font-size: 0.85rem !important;
        font-weight: 500 !important;
        white-space: nowrap;
    }
    
    /* Appointment Page fixes */
    .appointment-section {
        padding: 40px 0;
    }
    
    .appointment-container {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 0 15px;
    }
    
    .appointment-info {
        padding: 25px 20px;
        border-radius: 10px;
        order: 2;
    }
    
    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }
    
    .info-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .info-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .info-content h3 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }
    
    .info-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .appointment-form-container {
        padding: 25px 20px;
        border-radius: 10px;
        order: 1;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 6px;
        font-weight: 600;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px 14px;
        font-size: 0.95rem;
        border-radius: 6px;
        border: 1px solid var(--medium-gray);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .form-group textarea {
        min-height: 120px;
        resize: vertical;
        line-height: 1.5;
    }
    
    .appointment-form-container .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
        font-weight: 600;
        margin-top: 10px;
    }
}

/* Additional fixes for extra small text */
@media (max-width: 320px) {
    * {
        max-width: 100vw;
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    p, li, span, td, th, label {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }
    
    h1 { font-size: 1.4rem !important; }
    h2 { font-size: 1.2rem !important; }
    h3 { font-size: 1.1rem !important; }
    h4 { font-size: 1rem !important; }
    
    .section-padding {
        padding: 40px 0 !important;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    ul, ol {
        padding-left: 20px !important;
    }
    
    li {
        margin-bottom: 5px !important;
    }
    
    .treatment-description p {
        font-size: 0.82rem !important;
        line-height: 1.5 !important;
        margin-bottom: 12px !important;
        text-align: justify;
        hyphens: auto;
    }
    
    .procedure-list li {
        font-size: 0.78rem !important;
        line-height: 1.4 !important;
        padding: 6px 0 !important;
        display: flex !important;
        flex-wrap: wrap !important;
    }
    
    .procedure-list li i {
        flex-shrink: 0;
        margin-right: 8px;
        margin-top: 3px;
    }
    
    .procedure-list li strong {
        display: block;
        width: 100%;
        margin-bottom: 2px;
    }
}
@media (max-width: 768px) {
    .product-categories {
        position: relative;
        margin-bottom: 30px;
        padding: 0;
        overflow-x: auto; /* Allow horizontal scrolling on parent */
        overflow-y: hidden;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }

    .categories-container {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        
        overflow-x: auto;
        overflow-y: hidden;
        
        padding: 15px 16px; /* ✅ SAFE */
        padding-right: 32px; /* Extra padding for last button visibility */
        margin: 0; /* ❌ REMOVE NEGATIVE MARGINS */
        
        width: max-content; /* Let container expand as needed */
        min-width: 100%; /* But at least fill the viewport */
        box-sizing: border-box;
        
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scroll-snap-type: x proximity; /* ✅ gentle */
        
        scrollbar-width: none;
    }

    .categories-container::-webkit-scrollbar {
        display: none;
    }

    .category-btn {
        flex: 0 0 auto; /* ✅ Don't shrink - THIS IS CRITICAL */
        white-space: nowrap; /* ✅ Keep text on one line */
        
        padding: 10px 20px;
        min-width: max-content;
        
        background-color: var(--white);
        border: 2px solid var(--medium-gray);
        border-radius: 25px;
        
        font-weight: 600;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        
        scroll-snap-align: start; /* ✅ NOT center */
    }

    /* REMOVE THIS DUPLICATE - IT'S CAUSING THE PROBLEM */
    /*
    .category-btn {
        flex-shrink: 0;
        white-space: nowrap;
        min-width: max-content;
        scroll-snap-align: start;
    }
    */

    .category-btn.active {
        background-color: var(--primary-blue);
        color: var(--white);
        border-color: var(--primary-blue);
        box-shadow: 0 4px 12px rgba(26, 95, 122, 0.25);
        transform: scale(1.05);
        z-index: 1;
    }

    .category-btn.active::after {
        content: '';
        position: absolute;
        bottom: -6px;
        left: 50%;
        transform: translateX(-50%);
        width: 70%;
        height: 3px;
        background-color: var(--primary-blue);
        border-radius: 3px;
    }
}
/* Simple version - guaranteed one line */
@media (max-width: 768px) {
    .resources-nav-container {
        display: flex;
        flex-wrap: nowrap; /* Prevent wrapping */
        overflow: hidden; /* Hide any overflow */
        gap: 0.5rem;
    }
    
    .resource-nav-link {
        flex-shrink: 1; /* Allow shrinking */
        min-width: 0; /* Allow shrinking below content width */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.8rem;
        text-align: center;
    }
    
    .cart-link {
        flex-shrink: 0; /* Don't shrink cart */
    }
}
/* Equal width in one line */
@media (max-width: 768px) {
    .resources-nav-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 8px;
        width: 100%;
    }
    
    .resource-nav-link {
        text-align: center;
        padding: 8px 4px;
        font-size: 13px;
    }
}

/* Mobile responsiveness for cart modal */
@media only screen and (max-width: 768px) {
    .cart-modal-content {
        max-width: 100%;
        width: 100%;
    }
    
    .cart-modal-header {
        padding: 15px;
    }
    
    .cart-modal-header h3 {
        font-size: 1.2rem;
    }
    
    .cart-modal-body {
        padding: 15px;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .cart-item-img {
        width: 100%;
        height: 150px;
        max-width: 150px;
        margin: 0 auto;
    }
    
    .cart-item-info {
        width: 100%;
    }
    
    .cart-item-info h4 {
        font-size: 1rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .cart-item-price {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .cart-item-controls {
        width: 100%;
        justify-content: space-between;
    }
}

/* Very small phones */
@media only screen and (max-width: 480px) {
    .cart-modal-content {
        max-width: 100%;
    }
    
    .cart-modal-header {
        padding: 12px;
    }
    
    .cart-modal-header h3 {
        font-size: 1.1rem;
        gap: 8px;
    }
    
    .close-cart {
        font-size: 1.3rem;
    }
    
    .cart-modal-body {
        padding: 12px;
    }
    
    .cart-empty {
        padding: 30px 15px;
    }
    
    .cart-empty i {
        font-size: 2.5rem;
    }
    
    .cart-item-img {
        height: 120px;
        max-width: 120px;
    }
    
    .cart-item-info h4 {
        font-size: 0.95rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .cart-item-price {
        font-size: 1rem;
    }
}

/* If you have a cart modal footer */
@media only screen and (max-width: 768px) {
    .cart-modal-footer {
        padding: 15px;
    }
    
    .cart-total {
        font-size: 1.1rem;
    }
    
    .checkout-btn {
        padding: 14px;
        font-size: 1rem;
    }
}