/* Modern Pharma Platform Styles */

:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --secondary: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --light: #F9FAFB;
    --dark: #111827;
    --gray: #6B7280;
}

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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

img {
    max-width: 100%;
    height: auto;
}

/* Navbar Enhancements */
.navbar {
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover {
    color: var(--primary) !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Product Cards - CSS Grid */
.product-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    min-height: 350px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    padding: 1rem;
}

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

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffc107;
    color: #000;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.product-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s;
    border-radius: 8px;
}

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

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.product-name {
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    font-size: 0.95rem;
}

.product-category {
    font-size: 0.8rem;
    color: #666;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
}

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(79, 70, 229, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--secondary), #059669);
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.3);
}

.btn-outline-danger {
    border: 2px solid var(--danger);
    color: var(--danger);
}

.btn-outline-danger:hover {
    background: var(--danger);
    transform: scale(1.05);
}

/* Badges */
.badge {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
}

.bg-primary {
    background: var(--primary) !important;
}

.bg-danger {
    background: var(--danger) !important;
}

.bg-warning {
    background: var(--warning) !important;
    color: white !important;
}

/* Price Display */
.text-success {
    color: var(--secondary) !important;
    font-weight: 700;
}

/* Responsive Grid System - CSS Grid */
.responsive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

.responsive-grid-blog {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

.grid-item {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.grid-item a {
    display: block;
    height: 100%;
    text-decoration: none;
}

/* Category Cards */
.category-card {
    background: white;
    border-radius: 12px;
    padding: 0;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.1);
}

.category-icon {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

.category-icon i {
    font-size: 4rem;
    color: white;
}

.category-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.2rem;
    line-height: 1.2;
    min-height: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-count {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.4rem;
}

/* Cart & Wishlist */
.cart-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.cart-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Forms */
.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #E5E7EB;
    padding: 0.75rem 1rem;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Search Bar */
.search-wrapper {
    position: relative;
}

.search-wrapper input {
    padding-right: 3rem;
}

.search-wrapper button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
}



/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(79, 70, 229, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1F2937, #111827);
}

footer a {
    transition: all 0.3s;
}

footer a:hover {
    color: var(--primary) !important;
    transform: translateX(5px);
}

/* Footer Links Spacing - Minimal Gap */
.footer-links {
    margin-bottom: 0;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 0.15rem;
    line-height: 1.2;
    padding: 0;
}

.footer-links li:last-child {
    margin-bottom: 0;
}

.footer-contact {
    margin-bottom: 0;
    padding-left: 0;
}

.footer-contact li {
    margin-bottom: 0.15rem;
    line-height: 1.2;
    padding: 0;
}

.footer-contact li:last-child {
    margin-bottom: 0;
}

/* Mobile Footer Links */
.footer-mobile-links {
    margin-bottom: 0;
    padding-left: 0;
}

.footer-mobile-links li {
    margin-bottom: 0;
    line-height: 1.5;
    padding: 0;
}

.footer-mobile-links li:last-child {
    margin-bottom: 0;
}

.footer-mobile-links a {
    display: block;
    padding: 0.25rem 0;
    font-size: 0.85rem;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 1rem 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '›';
    font-size: 1.2rem;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s;
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
}

/* Alert Messages */
.alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: #065F46;
}

/* Modal */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 2px solid #F3F4F6;
    padding: 1.5rem;
}

.modal-footer {
    border-top: 2px solid #F3F4F6;
    padding: 1.5rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .container, .container-fluid {
        padding-left: 3px;
        padding-right: 3px;
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    /* Tablet - 3 cards per row */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .hero-gradient h1 {
        font-size: 2rem;
    }
    
    /* Product cards - 3 columns on tablet */
    .col-lg-3.col-md-3.col-sm-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .product-card img {
        height: 150px;
    }
    
    /* Category cards - 3 columns on tablet */
    .col-lg-3.col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .category-card {
        padding: 1.5rem 1rem;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
    }
    
    .category-icon i {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    /* Mobile - 2 items per row */
    
    /* Container */
    .container, .container-fluid {
        padding-left: 3px !important;
        padding-right: 3px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Responsive Grid - 2 columns */
    .responsive-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 3px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .responsive-grid-blog {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .grid-item {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Category cards - same structure as product cards */
    .category-card {
        padding: 0 !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .category-icon {
        width: 100% !important;
        height: 130px !important;
        margin: 0 !important;
        border-radius: 12px 12px 0 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .category-icon i {
        font-size: 3rem !important;
    }
    
    .category-name {
        font-size: 0.85rem !important;
        margin-bottom: 0.2rem !important;
        line-height: 1.2 !important;
        min-height: 1.2rem !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .category-count {
        font-size: 0.75rem !important;
        margin-bottom: 0.4rem !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .category-card .btn {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.75rem !important;
        width: 100% !important;
    }
    
    /* Product cards */
    .product-card {
        padding: 0.75rem !important;
        min-height: 270px !important;
    }
    
    .product-image {
        margin-bottom: 0.5rem !important;
    }
    
    .product-image img {
        height: 130px !important;
        width: 100% !important;
        object-fit: cover !important;
    }
    
    .product-name {
        font-size: 0.85rem !important;
        min-height: 2.2rem !important;
    }
    
    .product-category {
        font-size: 0.75rem !important;
    }
    
    .product-price {
        font-size: 0.95rem !important;
    }
    
    .product-card .btn {
        font-size: 0.8rem !important;
        padding: 0.4rem 0.75rem !important;
    }
    
    /* Hero Slider */
    .carousel-inner {
        overflow: hidden !important;
    }
    
    .hero-slide {
        padding: 2rem 0 !important;
        min-height: auto !important;
    }
    
    .hero-slide .container {
        padding: 0 3px !important;
    }
    
    .hero-slide h1 {
        font-size: 1.5rem !important;
    }
    
    .hero-slide p {
        font-size: 0.9rem !important;
    }
    
    .hero-slide .btn {
        font-size: 0.85rem !important;
        padding: 0.5rem 1rem !important;
    }
    
    .hero-slide img {
        max-height: 250px !important;
        object-fit: cover !important;
        margin-top: 1rem !important;
    }
    
    /* Keep Bootstrap grid for other sections */
    .row.g-4 {
        margin-left: -6px !important;
        margin-right: -6px !important;
        row-gap: 12px !important;
    }
    
    .row.g-4 > * {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
    
    /* Services Section - 2 columns on mobile */
    .col-lg-3.col-md-6.col-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    /* Statistics Section - 2 columns on mobile */
    section[style*="linear-gradient"] .col-lg-3.col-md-6.col-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    /* Features Section - 2 columns on mobile */
    .col-md-3.col-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    /* Blog Section - 2 columns on mobile */
    .col-lg-4.col-md-6.col-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    /* Testimonials - Full width on mobile */
    .col-lg-6.col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    /* Typography */
    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.25rem !important; }
    h4 { font-size: 1.1rem !important; }
    h5 { font-size: 1rem !important; }
    h6 { font-size: 0.9rem !important; }
    
    /* Navbar */
    .navbar {
        padding: 0.75rem 3px;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-toggler {
        padding: 0.5rem;
        font-size: 1.2rem;
    }
    
    .navbar-collapse {
        background: white;
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .nav-link {
        padding: 0.75rem 0.5rem;
        border-bottom: 1px solid #F3F4F6;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Top Bar */
    .top-bar {
        font-size: 0.75rem;
        padding: 0.5rem 3px;
    }
    
    .top-bar small {
        font-size: 0.7rem;
    }
    
    /* Hero Section */
    .hero-gradient {
        padding: 2rem 3px;
    }
    
    .hero-gradient h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .hero-gradient p {
        font-size: 0.9rem;
    }
    
    /* Sections padding */
    section {
        padding-left: 3px !important;
        padding-right: 3px !important;
        overflow-x: hidden !important;
    }
    
    section .container,
    section .container-fluid {
        padding-left: 3px !important;
        padding-right: 3px !important;
        max-width: 100% !important;
    }
    
    /* Buttons */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    /* Forms */
    .form-control, .form-select {
        font-size: 0.875rem;
        padding: 0.625rem 0.875rem;
    }
    
    /* Cart Items */
    .cart-item {
        padding: 1rem;
        margin-left: 0;
        margin-right: 0;
    }
    
    .cart-item img {
        max-width: 60px;
    }
    
    /* Footer - Mobile Optimized */
    footer {
        font-size: 0.875rem;
        padding: 1.5rem 10px !important;
    }
    
    footer h6 {
        font-size: 0.95rem !important;
        margin-bottom: 0.75rem !important;
        font-weight: 600 !important;
    }
    
    footer .small {
        font-size: 0.85rem !important;
    }
    
    footer .d-md-none > div {
        margin-bottom: 1.5rem !important;
    }
    
    footer .d-md-none > div:last-of-type {
        margin-bottom: 1rem !important;
    }
    
    footer .footer-mobile-links li {
        margin-bottom: 0 !important;
        line-height: 1.5 !important;
    }
    
    footer .footer-mobile-links a {
        padding: 0.3rem 0 !important;
        display: block !important;
        font-size: 0.85rem !important;
    }
    
    footer .row.g-2 {
        gap: 1rem !important;
    }
    
    footer hr {
        margin: 1.5rem 0 !important;
        opacity: 0.3 !important;
    }
    
    footer .text-center p {
        font-size: 0.8rem !important;
    }
    
    /* Floating Buttons */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 26px;
        bottom: 70px;
        right: 15px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 15px;
        right: 15px;
    }
    
    /* Tables */
    .table {
        font-size: 0.875rem;
    }
    
    .table th, .table td {
        padding: 0.5rem;
    }
    
    /* Badges */
    .badge {
        font-size: 0.7rem;
        padding: 0.375rem 0.625rem;
    }
    
    /* Spacing */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .my-5 {
        margin-top: 2.5rem !important;
        margin-bottom: 2.5rem !important;
    }
}

@media (max-width: 576px) {
    /* Small Mobile - 2 items per row */
    
    /* Container */
    .container, .container-fluid {
        padding-left: 3px !important;
        padding-right: 3px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Responsive Grid - 2 columns */
    .responsive-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 3px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .responsive-grid-blog {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    .grid-item {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Category cards - same structure as product cards */
    .category-card {
        padding: 0 !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .category-icon {
        width: 100% !important;
        height: 115px !important;
        margin: 0 !important;
        border-radius: 12px 12px 0 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .category-icon i {
        font-size: 2.5rem !important;
    }
    
    .category-name {
        font-size: 0.78rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.2rem !important;
        min-height: 1.2rem !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .category-count {
        font-size: 0.68rem !important;
        margin-bottom: 0.4rem !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .category-card .btn {
        font-size: 0.73rem !important;
        padding: 0.35rem 0.65rem !important;
        width: 100% !important;
    }
    
    /* Product cards */
    .product-card {
        padding: 0.6rem !important;
        min-height: 245px !important;
    }
    
    .product-image {
        margin-bottom: 0.5rem !important;
    }
    
    .product-image img {
        height: 115px !important;
        width: 100% !important;
        object-fit: cover !important;
    }
    
    .product-name {
        font-size: 0.78rem !important;
        line-height: 1.3 !important;
        min-height: 2rem !important;
    }
    
    .product-category {
        font-size: 0.68rem !important;
    }
    
    .product-price {
        font-size: 0.9rem !important;
    }
    
    .product-card .btn {
        font-size: 0.73rem !important;
        padding: 0.35rem 0.65rem !important;
    }
    
    /* Hero Slider */
    .hero-slide {
        padding: 1.5rem 0 !important;
    }
    
    .hero-slide h1 {
        font-size: 1.35rem !important;
    }
    
    .hero-slide p {
        font-size: 0.85rem !important;
    }
    
    .hero-slide .btn {
        font-size: 0.8rem !important;
        padding: 0.45rem 0.9rem !important;
    }
    
    .hero-slide img {
        max-height: 220px !important;
    }
    
    /* Keep Bootstrap grid for other sections */
    .row.g-4 {
        margin-left: -6px !important;
        margin-right: -6px !important;
        row-gap: 10px !important;
    }
    
    .row.g-4 > * {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }
    
    /* All 2-column sections */
    .col-lg-3.col-md-6.col-6,
    .col-md-3.col-6,
    .col-lg-4.col-md-6.col-6 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    /* Testimonials - Full width */
    .col-lg-6.col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    
    /* Typography */
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.25rem !important; }
    h3 { font-size: 1.1rem !important; }
    h4 { font-size: 1rem !important; }
    h5 { font-size: 0.9rem !important; }
    h6 { font-size: 0.85rem !important; }
    
    /* Navbar */
    .navbar {
        padding: 0.5rem 3px;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    /* Top Bar */
    .top-bar {
        padding: 0.5rem 3px;
    }
    
    .top-bar .col-md-6:first-child {
        margin-bottom: 0.5rem;
    }
    
    /* Hero Section */
    .hero-gradient {
        padding: 1.5rem 3px;
    }
    
    .hero-gradient h1 {
        font-size: 1.25rem;
    }
    
    .hero-gradient p {
        font-size: 0.85rem;
    }
    
    .hero-gradient .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Sections */
    section {
        padding-left: 3px !important;
        padding-right: 3px !important;
        overflow-x: hidden !important;
    }
    
    section .container,
    section .container-fluid {
        padding-left: 3px !important;
        padding-right: 3px !important;
        max-width: 100% !important;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    /* Buttons */
    .btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }
    
    .btn-lg {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Forms */
    .form-control, .form-select {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Search Bar */
    .navbar .input-group input {
        font-size: 0.8rem;
    }
    
    /* Cart */
    .cart-item {
        padding: 0.75rem;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .cart-item img {
        max-width: 50px;
    }
    
    .cart-item h6 {
        font-size: 0.85rem;
    }
    
    /* Footer - Small Mobile Optimized */
    footer {
        font-size: 0.8rem;
        padding: 1.25rem 8px !important;
    }
    
    footer h6 {
        font-size: 0.9rem !important;
        margin-bottom: 0.6rem !important;
        font-weight: 600 !important;
    }
    
    footer .small {
        font-size: 0.8rem !important;
    }
    
    footer .d-md-none > div {
        margin-bottom: 1.25rem !important;
    }
    
    footer .d-md-none > div:last-of-type {
        margin-bottom: 0.75rem !important;
    }
    
    footer .footer-mobile-links li {
        margin-bottom: 0 !important;
        line-height: 1.5 !important;
    }
    
    footer .footer-mobile-links a {
        padding: 0.28rem 0 !important;
        display: block !important;
        font-size: 0.8rem !important;
    }
    
    footer .row.g-2 {
        gap: 0.75rem !important;
    }
    
    footer hr {
        margin: 1.25rem 0 !important;
        opacity: 0.3 !important;
    }
    
    footer .text-center p {
        font-size: 0.75rem !important;
    }
    
    footer .d-flex.gap-3 {
        gap: 1rem !important;
    }
    
    footer .fs-5 {
        font-size: 1.25rem !important;
    }
    
    /* Floating Buttons */
    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 22px;
        bottom: 60px;
        right: 10px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 10px;
        right: 10px;
    }
    
    /* Modal */
    .modal-dialog {
        margin: 2px;
    }
    
    .modal-content {
        border-radius: 12px;
    }
    
    /* Tables - Stack on mobile */
    .table-responsive {
        font-size: 0.75rem;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Spacing */
    .my-5 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mt-5 {
        margin-top: 2rem !important;
    }
}

/* Extra Small Devices */
@media (max-width: 375px) {
    /* Even smaller margins for very small phones */
    .container, .container-fluid {
        padding-left: 3px !important;
        padding-right: 3px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Responsive Grid - 2 columns */
    .responsive-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 3px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .responsive-grid-blog {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }
    
    .grid-item {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    h1 { font-size: 1.25rem; }
    h2 { font-size: 1.1rem; }
    
    .navbar-brand {
        font-size: 0.9rem;
    }
    
    .btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
    
    /* Category cards - same structure as product cards */
    .category-card {
        padding: 0 !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .category-icon {
        width: 100% !important;
        height: 105px !important;
        margin: 0 !important;
        border-radius: 12px 12px 0 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .category-icon i {
        font-size: 2.2rem !important;
    }
    
    .category-name {
        font-size: 0.73rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.2rem !important;
        min-height: 1.1rem !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .category-count {
        font-size: 0.65rem !important;
        margin-bottom: 0.4rem !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .category-card .btn {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.6rem !important;
        width: 100% !important;
    }
    
    .product-card {
        padding: 0.5rem !important;
        min-height: 225px !important;
    }
    
    .product-image {
        margin-bottom: 0.5rem !important;
    }
    
    .product-image img {
        height: 105px !important;
        width: 100% !important;
        object-fit: cover !important;
    }
    
    .product-name {
        font-size: 0.73rem !important;
        line-height: 1.25 !important;
        min-height: 1.9rem !important;
    }
    
    .product-category {
        font-size: 0.65rem !important;
    }
    
    .product-price {
        font-size: 0.85rem !important;
    }
    
    .product-card .btn {
        font-size: 0.7rem !important;
        padding: 0.3rem 0.6rem !important;
    }
    
    /* Hero Slider */
    .hero-slide h1 {
        font-size: 1.2rem !important;
    }
    
    .hero-slide p {
        font-size: 0.8rem !important;
    }
    
    .hero-slide img {
        max-height: 200px !important;
    }
}

/* Touch-friendly enhancements */
@media (hover: none) and (pointer: coarse) {
    .btn, .nav-link, a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .form-control, .form-select {
        min-height: 44px;
    }
    
    .product-card {
        min-height: 44px;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-gradient {
        padding: 1rem 8px;
    }
    
    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}

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

::-webkit-scrollbar-track {
    background: #F3F4F6;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Top Bar */
.top-bar {
    font-size: 0.875rem;
    background: #1F2937 !important;
}

.top-bar a {
    transition: all 0.3s;
}

.top-bar a:hover {
    color: var(--primary) !important;
    transform: scale(1.2);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-whatsapp {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
    z-index: 999;
    transition: all 0.3s;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
}

/* Feature Icon */
.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

/* Dropdown Menu Enhancement */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.625rem 1rem;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    transform: translateX(5px);
}

.dropdown-header {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dropdown-divider {
    margin: 0.5rem 0;
}

/* Pagination Fix */
.pagination {
    display: flex;
    gap: 0.25rem;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0.5rem 0.75rem;
    line-height: 1;
    font-size: 1rem;
}

.pagination .page-link svg {
    width: 10px !important;
    height: 10px !important;
    max-width: 10px !important;
    max-height: 10px !important;
    min-width: 10px !important;
    min-height: 10px !important;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
}
