@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Primary Teal Theme */
    --primary-color: #008c99; /* Teal */
    --primary-dark: #006d77;
    --primary-light: #e0f7f9;
    
    /* Neutral Colors */
    --bg-color: #ffffff;
    --text-color: #333333;
    --text-muted: #666666;
    --border-color: #eeeeee;
    
    /* Font */
    --font-main: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.5; /* Slightly tighter */
    font-size: 14px; /* Standard professional size */
    font-weight: 400;
    overflow-x: clip; /* Changed from hidden to clip to support position: sticky */
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Visibility Handling */
.mobile-only, .mobile-toggle, .nav-overlay {
    display: none !important;
}

.nav-links-wrapper, .sidebar-content {
    display: contents; /* Allows desktop menu to function normally */
}

/* Header Styles */

header {
    display: contents;
}

.top-header {
    background-color: var(--primary-color);
    padding: 10px 0;
    font-size: 14px;
    color: #ffffff;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-header-info {
    display: flex;
    gap: 20px;
    color: #ffffff;
    font-weight: 400;
}

.top-header-info span {
    display: flex;
    align-items: center;
}

.top-header-info .separator {
    color: rgba(255, 255, 255, 0.3);
}

.top-header-links {
    display: flex;
    gap: 20px;
}

.top-header-links a {
    color: #ffffff;
    font-weight: 500;
    transition: 0.3s opacity;
}

.top-header-links a:hover {
    opacity: 0.8;
}

.top-header .red-text {
    color: #ffffff;
    font-weight: 700;
    margin-left: 5px;
}


/* Middle Header Styles */
.middle-header {
    padding: 10px 0;
    background-color: #fff;
}

.flex-row {
    display: flex;
    align-items: center;
    gap: 30px;
}

.categories-btn {
    background-color: #000;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    min-width: 200px;
    white-space: nowrap;
}

.categories-btn:hover {
    background-color: var(--primary-color);
}

.categories-dropdown {
    position: relative;
    z-index: 1001;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    background-color: #fff;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s ease;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.categories-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-list li {
    border-bottom: 1px solid #f8f9fa;
    transition: 0.2s;
}

.dropdown-list li:last-child {
    border-bottom: none;
}

.dropdown-list li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.dropdown-list li a:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
    padding-left: 25px;
}

.dropdown-footer {
    background-color: #000;
    padding: 12px 20px;
}

.dropdown-footer a {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-footer a:hover {
    color: var(--primary-color);
}

.search-bar-group {
    display: flex;
    flex: 1;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    overflow: hidden;
    background-color: #fff;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--text-color);
}

.category-select-wrapper {
    border-left: 1px solid #ddd;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.category-select {
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--text-muted);
    background: transparent;
    cursor: pointer;
    padding-right: 20px;
}

.search-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    font-size: 18px;
    transition: 0.3s;
}

.search-btn:hover {
    background-color: var(--primary-dark);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .container {
        padding: 0 2px;
    }
    .flex-row {
        gap: 15px;
    }
    .categories-btn {
        min-width: 160px;
        padding: 12px 15px;
    }
}

@media (max-width: 768px) {
    .top-header-info {
        gap: 10px;
        font-size: 11px;
    }
    .top-header-info .separator {
        display: none;
    }
    .top-header-info span:not(:first-child) {
        display: none; /* Only show email on mobile top header to save space */
    }

    .flex-row {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .categories-btn {
        width: 100%;
        justify-content: center;
    }

    .category-select-wrapper {
        display: none; /* Hide category select on mobile to save space, or make it stack */
    }
}

@media (max-width: 480px) {
    .flex-between {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    .top-header {
        padding: 5px 0;
    }
    .top-header-links {
        gap: 10px;
        font-size: 11px;
    }

    .middle-header {
        padding: 15px 0;
    }
    
    .search-btn {
        padding: 0 15px;
    }
}

/* Main Navigation Styles */
.main-nav {
    background-color: var(--primary-color);
    padding: 8px 0;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}


.main-nav .flex-row {
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.site-logo {
    max-height: 60px;
    max-width: 250px;
    width: auto;
    object-fit: contain;
    display: block;
}


/* Nav Links */
.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links li a {
    font-weight: 500;
    font-size: 14px;
    color: #fff;
    padding: 5px 0;
    transition: 0.3s;
    white-space: nowrap;
}

.nav-links li a.active {
    border-bottom: 2px solid #fff;
}

.nav-links li a:hover {
    opacity: 0.8;
}

/* Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.cart-wrapper {
    position: relative;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--primary-color); /* Changed to Red from Black to match image */
    color: #fff;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}


.shop-now-btn {
    background-color: #fff;
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.shop-now-btn .btn-icon {
    background-color: #000;
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.shop-now-btn:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

/* Hero Info Section Styles */
.hero-info {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0;
    overflow: hidden;
    margin-top: 1px;
}

.hero-info-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-pharmacist {
    flex: 0 0 250px;
}

.hero-pharmacist img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 0 40px;
}

.discount-badge {
    display: flex;
    flex-direction: column;
    text-align: center;
    line-height: 1;
}

.disc-val {
    font-size: 60px;
    font-weight: 800;
}

.disc-label {
    font-size: 24px;
    font-weight: 600;
}

.separator-line {
    width: 2px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.3);
}

.hero-features {
    display: flex;
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-item i {
    font-size: 35px;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-text strong {
    font-size: 18px;
    font-weight: 700;
}

.feature-text span {
    font-size: 16px;
    opacity: 0.9;
}

.hero-slogan {
    background-color: #ffda62; /* Yellowish orange like reference, but we could use a lighter red if you prefer */
    color: var(--primary-color);
    padding: 30px 40px;
    height: 100%;
    display: flex;
    align-items: center;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
}

.slogan-inner {
    font-size: 22px;
    font-weight: 800;
    max-width: 200px;
    line-height: 1.2;
}

/* Responsive UI */
@media (max-width: 1200px) {
    .nav-links {
        display: none;
    }
    .hero-content {
        padding: 0 20px;
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .hero-slogan {
        display: none;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }

    /* Header Row Adjustment */
    .main-nav .flex-row {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }

    .site-logo {
        max-height: 35px; /* Smaller logo for mobile */
    }

    .nav-actions {
        gap: 10px; /* Tighter spacing */
        order: 2;
    }

    .cart-wrapper { font-size: 18px; }
    
    .shop-now-btn {
        padding: 5px 12px;
        font-size: 11px;
    }

    .shop-now-btn .btn-icon {
        display: none; /* Hide icon to save space */
    }

    /* Header Row Adjustment */
    .mobile-toggle {
        display: flex !important; /* Show on mobile */
        order: 3;
        color: #fff;
        font-size: 22px;
        cursor: pointer;
    }

    .mobile-only {
        display: flex !important;
    }

    .nav-overlay {
        display: none; /* Controlled by JS active class */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0,0,0,0.6);
        z-index: 9999;
        backdrop-filter: blur(2px);
    }

    .nav-overlay.active {
        display: block !important;
    }

    /* Functional Sidebar Drawer Menu */
    .nav-links-wrapper {
        display: flex !important;
        position: fixed;
        top: 0;
        left: -100%; /* Start off-screen */
        width: 100%;
        height: 100vh;
        z-index: 10000;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none; /* Allow clicking overlay through wrapper empty space */
    }

    .nav-links-wrapper.active {
        left: 0;
        pointer-events: auto;
    }

    .sidebar-content {
        display: flex !important;
        width: 73%; /* Exactly like reference image */
        max-width: 320px;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        box-shadow: 10px 0 30px rgba(0,0,0,0.2);
    }

    .nav-links {
        width: 100%;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        list-style: none;
    }

    /* Hide Desktop Nav on Mobile */
    .main-nav > .container > .nav-links-wrapper > .nav-links {
        display: none; /* Mobile will use the one inside sidebar-content */
    }
    .sidebar-content .nav-links {
        display: flex;
    }



    /* Close Button on the right of drawer */
    .menu-close {
        position: absolute;
        top: 14px;
        right: 52px; /* Pin to the right of the screen wrapper */
        width: 40px;
        height: 40px;
        background-color: #fff;
        color: #000;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        cursor: pointer;
        opacity: 0;
        visibility: hidden;
        transform: scale(0.5);
        transition: 0.3s;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
        z-index: 10001; /* Above the drawer */
    }

    .nav-links-wrapper.active .menu-close {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }


    .drawer-header {
        padding: 8px 20px;
        border-bottom: 2px solid #f0f0f0;
        background-color: #fff;
        display: flex; /* Added for logo and cart alignment */
        justify-content: space-between;
        align-items: center;
    }

    .drawer-actions .cart-wrapper {
        color: #333; /* Dark color for white background */
        font-size: 20px;
    }

    .drawer-logo {
        max-height: 35px;
        width: auto;
    }


    .nav-links li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid #f0f0f0; /* Gray separator lines from image */
    }

    .nav-links li a {
        display: block;
        padding: 10px 25px; /* Slightly tighter as per reference */
        font-size: 14px;
        color: #000;
        font-weight: 700;
        transition: 0.3s;
    }




    .nav-links li a.active {
        color: var(--primary-color);
        background-color: #f9f9f9;
        border-bottom: 1px solid #f0f0f0;
    }


    /* Menu Overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0,0,0,0.6);
        z-index: 9999;
        backdrop-filter: blur(2px);
    }

    .nav-overlay.active {
        display: block;
    }

    /* Prevent Scroll when menu open */
    body.no-scroll {
        overflow: hidden;
    }


    /* Other Mobile Adjustments */
    .top-header-info { display: none; }
    .hero-info-flex { flex-direction: column; text-align: center; }
    .hero-pharmacist { flex: 0 0 180px; }
    .hero-content { flex-direction: column; padding: 20px 0; }
    .separator-line { width: 60px; height: 1.5px; margin: 10px auto; }
    .hero-features { flex-direction: column; gap: 15px; }
}


/* Hero Slider & Banners Area */
.hero-slider-area {
    padding: 10px 0;
    background-color: #f8f9fa;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 20px;
}

.main-slider {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.slider-item {
    display: flex;
    align-items: center;
    padding: 20px 40px;
    flex: 1;
    position: relative;
    background: linear-gradient(90deg, #fff 50%, #fef2f2 100%); /* Light red tint */
}

.slider-content {
    flex: 1;
    z-index: 2;
}

.slider-content h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-color);
    margin-bottom: 15px;
}

.slider-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    padding: 4px 13px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.slider-image {
    flex: 1;
    text-align: right;
}

.slider-image img {
    max-width: 100%;
    height: auto;
}

/* Trust Bar inside Slider */
.slider-trust-bar {
    background-color: var(--primary-color);
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    color: #fff;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
}

.trust-item i {
    font-size: 20px;
}

/* Sidebar Banners */
.hero-banners {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-banner {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.side-banner.banner-1 { background: linear-gradient(135deg, #fff 0%, #fff0f0 100%); }
.side-banner.banner-2 { background: linear-gradient(135deg, #fff 0%, #fff5f5 100%); }

.banner-text {
    flex: 1;
    z-index: 2;
}

.banner-text h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.banner-text p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.buy-btn {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 2px;
}

.buy-btn:hover {
    color: var(--primary-dark);
}

.side-banner img {
    max-width: 110px;
    height: auto;
}

/* Responsive Slider Adjustments */
@media (max-width: 1200px) {
    .slider-content h1 { font-size: 36px; }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-banners {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .hero-banners, .hero-info {
        display: none;
    }
    .slider-item {
        flex-direction: column;
        text-align: center;
        padding: 6px 0px; /* Reduced vertical padding */
    }
    .slider-content h1 {
        font-size: 28px; /* Reduced font size from desktop */
        margin-bottom: 10px;
    }
    .slider-content p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    .slider-image { 
        text-align: center; 
        margin-top: 10px; /* Reduced margin */
    }
    .slider-image img {
        max-height: 200px; /* Limited height to keep it compact */
        width: auto;
    }
    .slider-trust-bar {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
}

/* Section Titles */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-color);
}

.view-all {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

.timer {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Category Grid */
.category-section {
    padding: 60px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.cat-card {
    background-color: #fff;
    padding: 25px 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(227, 30, 36, 0.1);
}

.cat-icon {
    width: 120px;
    height: 120px;
    background-color: #fff5f5;
    color: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    transition: 0.3s;
    overflow: hidden;
}

.cat-card:hover .cat-icon {
    background-color: var(--primary-color);
    color: #fff;
}

.cat-card span {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-color);
}

/* Product Section */
.products-section {
    padding: 60px 0;
    background-color: #fcfcfc;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: 0.3s;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.prod-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
}

.prod-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 8px;
}

.prod-img img {
    max-height: 100%;
    transition: 0.5s;
}

.product-card:hover .prod-img img {
    transform: scale(1.1);
}

.prod-info {
    text-align: left;
}

.prod-brand {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.prod-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.3;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.prod-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 15px;
}

.curr-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
}

.old-price {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.add-to-cart-btn {
    width: 100%;
    padding: 10px;
    border: 1px solid #eee;
    background-color: #fff;
    color: var(--primary-color);
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Responsive Grid Adjustments */
@media (max-width: 992px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: 1fr; }
}

/* Site Footer */
.site-footer {
    background-color: #1a1a1a;
    color: #eee;
    padding: 40px 0px 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-logo {
    max-width: 200px;
    max-height: 50px;
    width: auto;
    margin-bottom: 20px;
    object-fit: contain;
    display: block;
}


.footer-desc {
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 25px;
    color: #bbb;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 38px;
    height: 38px;
    background-color: #333;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    font-size: 16px;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-col h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li a {
    color: #bbb;
    font-size: 14px;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #bbb;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 16px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #333;
    padding: 25px 0;
    font-size: 13px;
    color: #888;
}

.payment-icons {
    display: flex;
    gap: 20px;
    font-size: 24px;
}

.payment-icons i:hover {
    color: #fff;
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}







/* Compact & Red Best Selling Products Section */
.best-selling-section {
    padding: 40px 0; /* Reduced height from 80px */
    background-color: #ffffff;
}

.best-selling-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px; /* Reduced from 40px */
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.best-selling-section .header-title {
    position: relative;
}

.best-selling-section .header-title h2 {
    font-size: 22px; /* Slightly smaller for compactness */
    font-weight: 800;
    color: #000;
    text-transform: uppercase;
}

.best-selling-section .header-title .title-bar {
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.best-selling-section .slider-controls {
    display: flex;
    gap: 8px;
}

.best-selling-section .ctrl-btn {
    width: 32px;
    height: 32px;
    background-color: var(--primary-color); /* Strict Red */
    color: #fff;
    border: none;
    border-radius: 4px; /* Back to square as per reference */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    font-size: 14px;
}

.best-selling-section .ctrl-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.best-selling-section .product-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.best-selling-section .product-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: 0.3s;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

.best-selling-section .product-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.best-selling-section .item-img-wrapper {
    position: relative;
    background-color: #f7f7f7;
    height: 160px; /* Reduced height from 220px */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.best-selling-section .item-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.best-selling-section .item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: 0.3s;
    z-index: 10;
}

.best-selling-section .product-item:hover .item-overlay {
    opacity: 1;
}

.best-selling-section .overlay-btn {
    width: 38px;
    height: 38px;
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: 0.3s;
}

.best-selling-section .overlay-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.best-selling-section .item-details {
    padding: 10px 5px; /* Compact padding */
    background-color: #fff;
}

.best-selling-section .item-name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.best-selling-section .item-rating {
    color: #ffa800;
    font-size: 11px;
}

.best-selling-section .item-price-bar {
    background-color: #ff8c90; /* Soft bright red/pink bar as per reference image */
    color: #fff;
    padding: 6px;
    font-weight: 700;
    font-size: 13px;
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .best-selling-section .product-grid-6 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 992px) {
    .best-selling-section .product-grid-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .best-selling-section .product-grid-6 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .best-selling-section { padding: 10px 0; }
}

/* Compact 5-Column Slider Best Selling Section */
.best-selling-section .slider-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 5px 0;
}

.best-selling-section .product-slider-track {
    display: flex;
    gap: 15px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.best-selling-section .product-item {
    flex: 0 0 calc(20% - 12px);
    text-align: center;
    border: 2px solid #008c99;
    border-radius: 8px;
    background: #fff;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    height: 271px; /* Further reduced height from 360px */
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.best-selling-section .product-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.best-selling-section .item-img-wrapper {
    height: 140px;
    padding: 0;
    display: block;
    width: 100%;
    flex-shrink: 0;
}

.best-selling-section .item-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.best-selling-section .item-details {
    padding: 10px 8px; /* Compact padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally */
}

.best-selling-section .item-name {
    font-size: 14px;
    font-weight: 700;
    margin-top: 5px;
    margin-bottom: 2px; /* Minimal bottom margin */
    color: #000;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.best-selling-section .item-rating {
    margin-bottom: 0px;
    color: var(--primary-color); /* Red color for stars */
    font-size: 10px;
}

.best-selling-section .item-price {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 2px; /* Reduced space below price */
}

.best-selling-section .select-options-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 8px 0;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
    margin-top: 0px; /* Removed auto margin top */
}

.best-selling-section .select-options-btn:hover {
    background-color: var(--primary-dark);
}

/* Responsive Grid for Slider */
@media (max-width: 1200px) {
    .best-selling-section .product-item { flex: 0 0 calc(25% - 12px); }
}

@media (max-width: 992px) {
    .best-selling-section .product-item { flex: 0 0 calc(33.333% - 10px); }
}

@media (max-width: 768px) {
    .best-selling-section .product-item { 
        flex: 0 0 calc(50% - 10px); 
        height: 240px; /* Reduced from 270px */
        border: 2px solid #008c99;
        border-radius: 8px;
        margin-bottom: 5px;
    }
    .best-selling-section .item-img-wrapper { 
        height: 80px; /* Reduced from 100px */
        background-color: #f9f9f9;
        border-bottom: 1px solid #f0f0f0;
    }
    .best-selling-section .item-details {
        padding: 10px 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .best-selling-section .item-name { 
        font-size: 13px; 
        height: 32px;
        line-height: 1.2;
        margin-bottom: 5px;
    }
    .best-selling-section .item-rating {
        font-size: 10px;
        margin-bottom: 5px;
    }
    .best-selling-section .item-price {
        font-size: 15px;
        margin-bottom: 8px;
        font-weight: 800;
    }
    .best-selling-section .select-options-btn {
        width: 100%;
        padding: 8px 0;
        font-size: 11px;
        border-radius: 6px;
        margin-top: 5px;
    }
    .best-selling-section .slider-container {
        padding: 10px 5px;
    }
    .best-selling-section .product-slider-track {
        gap: 15px;
    }
}

/* Product Detail Styles Moved to product-detail.css */


/* Cart Page Styles */
.cart-page {
    padding: 30px 0;
    background-color: #fff;
}

.cart-notification {
    background-color: #f7fcf3;
    border-top: 3px solid #7eb138; /* Green top border */
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
    color: #333;
}

.cart-notification .success-msg {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-notification i {
    color: #7eb138;
}

.btn-continue {
    background-color: var(--primary-color); /* Red button */
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    transition: 0.3s;
}

.btn-continue:hover {
    background-color: var(--primary-dark);
}

/* Cart Table */
.cart-table-wrapper {
    margin-bottom: 30px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    padding: 15px;
    border-bottom: 2px solid #eee;
    text-align: left;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
}

.cart-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.remove-item {
    color: var(--primary-color);
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
}

.cart-p-thumb {
    width: 60px;
    height: 60px;
    border: 1px solid #eee;
}

.cart-p-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-p-name {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.cart-p-price, .cart-p-subtotal {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary-color);
}

.cart-qty-input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

/* Quantity Selector Component */
.qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: fit-content;
    overflow: hidden;
}

.qty-btn {
    background: #f8f8f8;
    border: none;
    width: 30px;
    height: 35px;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #eee;
    color: var(--primary-color);
}

.qty-input-dynamic {
    width: 40px;
    height: 35px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    outline: none;
}

/* Cart Actions */
.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.coupon-group {
    display: flex;
    gap: 10px;
}

.coupon-input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    width: 200px;
}

.btn-apply-coupon {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
}

.btn-apply-coupon:hover {
    background-color: var(--primary-dark);
}

.btn-update-cart {
    background-color: #eee;
    color: #666;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700;
    cursor: default;
}

/* Cart Totals Section */
.cart-totals-section {
    max-width: 500px;
    margin-left: auto;
    border: 1px solid #eee;
    padding: 25px;
}

.cart-totals-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.total-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.total-row:last-of-type {
    border-bottom: none;
    padding-bottom: 25px;
}

.total-row .label {
    font-weight: 700;
    color: #333;
}

.total-row .value {
    color: var(--primary-color);
    font-weight: 700;
}

.shipping-options {
    text-align: right;
}

.shipping-item {
    margin-bottom: 8px;
    font-size: 13px;
    display: block;
}

.shipping-item input {
    margin-left: 8px;
}

.shipping-item b {
    color: var(--primary-color);
}

.change-address {
    font-size: 12px;
    color: var(--primary-color);
    text-decoration: underline;
    display: block;
    margin-top: 10px;
}

.total-final {
    font-size: 18px;
}

.btn-checkout {
    width: 100%;
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-checkout:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}
}

@media (max-width: 992px) {
    .related-slider .product-item {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .related-slider .product-item {
        flex: 0 0 calc(50% - 10px);
        height: 280px;
    }
    .related-ctrl-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}




/* Global Responsive Fix for Shop Sidebar */
@media (max-width: 992px) {
    .shop-container {
        flex-direction: column;
    }
    .detail-sidebar, .detail-main {
        width: 100% !important;
    }
}

/* Shop Page Styles Redesign */
.shop-page {
    padding: 30px 0;
}

.shop-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.shop-main {
    flex: 1;
}

.shop-header {
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    padding: 10px 15px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.shop-results-info {
    font-size: 15px;
    color: #111;
    font-weight: 800;
}

.shop-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.view-switcher {
    display: flex;
    gap: 5px;
}

.view-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eee;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 16px;
}

.view-btn.active {
    background-color: var(--primary-color); /* Red Active Color to match theme */
}

.view-btn:hover:not(.active) {
    background-color: #ddd;
}

.shop-sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    outline: none;
    cursor: pointer;
    background-color: #fff;
}

.shop-grid, .shop-list {
    display: grid;
    gap: 20px;
    transition: 0.3s ease;
}

.shop-grid {
    grid-template-columns: repeat(4, 1fr);
}

/* Shop List View Implementation */
.shop-list {
    grid-template-columns: 1fr;
}

.shop-list .product-item {
    flex-direction: row;
    text-align: left;
    height: auto;
    align-items: center;
}

.shop-list .item-img-wrapper {
    width: 250px;
    height: 180px;
    flex-shrink: 0;
}

.shop-list .item-details {
    padding: 20px 30px;
    text-align: left;
}

.shop-list .item-name {
    height: auto;
    font-size: 18px;
    margin-bottom: 15px;
}

.shop-list .item-rating {
    margin-bottom: 15px;
}

.shop-list .item-price {
    font-size: 22px;
    margin-bottom: 20px;
}

.shop-list .select-options-btn {
    width: auto;
    padding: 10px 30px;
}

/* Shop Specific Card Styling (Targeting Second Image) */
.product-item {
    background-color: #fff;
    border: 1px solid #ebebeb;
    border-radius: 4px;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    position: relative;
    height: 100%;
}

.product-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.item-img-wrapper {
    width: 100%;
    overflow: hidden;
    background-color: #f7f7f7;
}

.shop-grid .item-img-wrapper { height: 200px; }

.item-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.item-name {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    height: 40px;
    overflow: hidden;
}

.item-rating {
    color: #ff9800;
    font-size: 11px;
    margin-bottom: 10px;
}

.item-price {
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 15px;
}

.select-options-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
    text-transform: uppercase;
}

.select-options-btn:hover {
    background-color: var(--primary-dark);
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #004a44;
    color: #fff;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 3px;
    z-index: 5;
    text-transform: uppercase;
}

/* Responsiveness for Shop Page */
@media (max-width: 1200px) {
    .shop-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .shop-grid { grid-template-columns: repeat(3, 1fr); }
    .shop-container { gap: 40px; }
}

@media (max-width: 768px) {
    .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .shop-list .item-img-wrapper { width: 150px; height: 120px; }
    .shop-list .item-details { padding: 10px; }
    .shop-list .item-name { font-size: 14px; }
}

@media (max-width: 480px) {
    .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .item-name { font-size: 13px; }
    .item-price { font-size: 16px; }
}

/* Generic Content Page Styles */
.content-page {
    padding: 50px 0;
}

.page-banner {
    background-color: #f9f9f9;
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.page-banner h1 {
    font-size: 38px;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.breadcrumbs {
    font-size: 15px;
    color: #334155;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.breadcrumbs .separator {
    color: #cbd5e1;
    font-weight: 400;
}

@media (max-width: 768px) {
    .page-banner {
        padding: 30px 0;
    }
    .page-banner h1 {
        font-size: 26px;
    }
    .breadcrumbs {
        font-size: 13px;
    }
}

.text-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    color: #555;
}

.text-content h2 {
    color: #333;
    margin: 30px 0 15px;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
}

.blog-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.blog-img {
    height: 200px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-info {
    padding: 20px;
}

.blog-date {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.blog-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.read-more {
    color: #333;
    font-weight: 700;
    text-decoration: underline;
    font-size: 14px;
}

@media (max-width: 992px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .blog-grid { grid-template-columns: 1fr; }
}

}


/* --- Promotional Section (Pre-Footer) --- */
.promo-section {
    background: linear-gradient(135deg, #008c99 0%, #006d77 100%);
    padding: 60px 0;
    overflow: hidden;
    margin-top: 40px;
}

.footer-promo-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.promo-content {
    flex: 1;
    color: #fff;
}

.promo-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.promo-title span {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.promo-subtitle {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

.promo-features {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
}

.p-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 14px;
}

.p-feature i {
    font-size: 24px;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    color: #008c99;
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    font-size: 16px;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.promo-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    background: #000;
    color: #fff;
}

.promo-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.floating-doctor {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
    animation: floatDoctor 5s ease-in-out infinite;
}

@keyframes floatDoctor {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Responsive UI (Promo Section) */
@media (max-width: 992px) {
    .footer-promo-grid {
        flex-direction: column;
        text-align: center;
    }
    
    .promo-content {
        order: 2;
    }
    
    .promo-image {
        order: 1;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .promo-title {
        font-size: 32px;
    }
    
    .promo-features {
        justify-content: center;
    }
    
    .promo-subtitle {
        margin: 0 auto 30px;
    }
}

@media (max-width: 576px) {
    .promo-features {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .p-feature {
        width: calc(50% - 15px);
    }
    
    .promo-title {
        font-size: 28px;
    }
}


/* --- Category Showcase Layout --- */
.category-showcase {
    margin: 40px 0;
}

.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.showcase-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: #111;
    border-bottom: 3px solid #008c99;
    padding-bottom: 10px;
    margin-bottom: -2px;
}

.view-all-link {
    font-size: 13px;
    color: #f17070;
    text-decoration: none;
    font-weight: 600;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 240px 300px 1fr;
    border: 1px solid #f0f0f0;
    background: #fff;
}

/* 1. Banner */
.showcase-banner {
    background: #fdf2f2;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid #f0f0f0;
}

.showcase-banner img {
    max-width: 100%;
    margin-top: 20px;
}

/* 2. Hot Products */
.hot-products-box {
    border-right: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.hot-header {
    background: #ff7d80;
    color: #fff;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    padding: 8px;
    letter-spacing: 1px;
}

.hot-card {
    padding: 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hot-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.hot-img img {
    max-height: 100%;
    max-width: 100%;
}

.hot-name {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.hot-card .item-rating {
    color: #ffa800;
    font-size: 12px;
}

/* 3. Small Product Lists */
.showcase-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.showcase-list-col {
    display: flex;
    flex-direction: column;
}

.small-product-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    border-right: 1px solid #f0f0f0;
    transition: 0.3s;
    height: 20%;
}

.showcase-list-col:last-child .small-product-item {
    border-right: none;
}

.small-product-item:last-child {
    border-bottom: none;
}

.small-product-item:hover {
    background: #fafafa;
}

.small-img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background: #f8f8f8;
    border: 1px solid #eee;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.small-img img {
    max-width: 100%;
    max-height: 100%;
}

.small-info {
    flex: 1;
}

.small-name {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.2;
}

.small-price-label {
    font-size: 11px;
    color: #ff7d80;
    font-weight: 600;
}

.small-amt {
    font-size: 13px;
    color: #ff7d80;
}

/* Responsiveness (Showcase) */
@media (max-width: 1200px) {
    .showcase-grid {
        grid-template-columns: 200px 1fr 1.5fr;
    }
}

@media (max-width: 992px) {
    .showcase-grid {
        grid-template-columns: 1fr 1.5fr;
    }
    .showcase-banner {
        display: none; /* Hide doctor banner on tablet to save space */
    }
}

@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }
    .hot-products-box {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }
    .showcase-lists {
        grid-template-columns: 1fr;
    }
    .showcase-list-col .small-product-item {
        border-right: none;
    }
}


/* ==========================================================================
   Best Deals Section
   ========================================================================== */
.best-deals-section {
    padding: 60px 0;
    background-color: #fff;
}

.best-deals-section .flex-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.best-deals-sidebar {
    flex: 0 0 260px;
}

.deals-title {
    font-size: 22px;
    font-weight: 700;
    color: #444;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.deals-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.deals-links {
    list-style: none;
    padding: 0;
margin-left: 43px;
    border-left: 1.5px solid var(--primary-color); /* Theme Red Border */
    /* border-radius: 4px; */
}

.deals-links li {
    border-bottom: 1.5px solid var(--primary-color); /* Theme Red Separator */
}

.deals-links li:last-child {
    border-bottom: none;
}

.deals-links li a {
    display: block;
    padding: 12px 15px;
    color: #000; /* Dark Black */
    font-size: 14
    px;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 700; /* Increased Font Weight */
}

.deals-links li a:hover {
    color: var(--primary-color);
    background-color: #fcfcfc;
    padding-left: 20px;
}

.best-deals-main {
    flex: 1;
}

/* Product Item Layout for Best Deals */
.best-deals-section .product-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.best-deals-section .product-item {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.best-deals-section .product-item:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.best-deals-section .item-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background-color: #f9f9f9;
}

.best-deals-section .item-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
}

.item-hover-actions {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    transition: 0.4s ease;
    z-index: 5;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 15px;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-item:hover .item-hover-actions {
    bottom: 15px;
}

.hover-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid #eee;
    background: #fff;
    color: #444;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.hover-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.best-deals-section .item-details {
    padding: 15px 10px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.best-deals-section .item-name {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
}

.best-deals-section .item-price {
    color: #008c99; /* Solid Red from image */
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 12px;
    margin-top: auto;
}

.best-deals-section .select-options-btn {
    background-color: #008c99; /* Solid Red */
    border: none;
    color: #fff;
    width: 100%;
    padding: 10px;
    font-weight: 700;
    font-size: 11px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.best-deals-section .select-options-btn:hover {
    background-color: #c4191f;
}

/* ==========================================================================
   Featured Slider Section (Matches 'Latest Products' styling structure)
   ========================================================================== */
.featured-slider-section {
    padding: 60px 0;
    background-color: #fff;
}

.featured-product-card {
    border: 1px solid var(--primary-color) !important;
    border-radius: 6px !important;
    overflow: hidden;
    height: auto !important; /* Override compact height */
}

.featured-product-card .item-img-wrapper {
    background-color: #929398 !important; /* Specific dark gray background from image */
    padding: 0;
    margin: 0;
    height: 160px !important; /* Taller image area */
}

.featured-product-card .item-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    padding: 0 !important; /* No padding on image inside gray box */
}

.featured-product-card .item-details {
    padding: 15px !important;
    text-align: center;
}

.featured-product-card .item-name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #000;
}

.featured-product-card .item-rating {
    color: var(--primary-color) !important;
    font-size: 11px;
    margin-bottom: 5px;
}

.featured-product-card .item-price {
    color: var(--primary-color) !important;
    font-weight: 800;
    font-size: 14px !important;
    margin-bottom: 12px;
}

.featured-product-card .select-options-btn {
    background-color: var(--primary-color) !important;
    border-radius: 4px !important;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    padding: 8px 10px !important;
}

.featured-product-card .select-options-btn:hover {
    background-color: #c4191f !important;
}

/* ==========================================================================
   Home Latest Blog Section
   ========================================================================== */
.home-blog-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.home-blog-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.home-blog-section .header-title {
    position: relative;
}

.home-blog-section .header-title h2 {
    font-size: 22px;
    font-weight: 800;
    color: #000;
    text-transform: uppercase;
    margin: 0;
}

.home-blog-section .header-title .title-bar {
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.home-blog-section .slider-controls {
    display: flex;
    gap: 8px;
}

.home-blog-section .ctrl-btn {
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    font-size: 14px;
}

.home-blog-section .ctrl-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.blog-slider-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-top: 30px;
    padding: 10px 0;
}

.blog-slider-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.blog-slider-track .home-blog-card {
    flex: 0 0 calc(33.333% - 20px); /* Exactly 3 cards visible on desktop */
}

.home-blog-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.home-blog-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.blog-card-img {
    width: 100%;
    height: 220px; /* Reduced to balance excerpt */
    overflow: hidden;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.home-blog-card:hover .blog-card-img img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 20px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-read-more {
    display: inline-block;
    background-color: #f04f23; /* Matching the orange-red button in image */
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    transition: 0.3s;
    align-self: flex-start;
    margin-top: auto;
}

.blog-read-more:hover {
    background-color: var(--primary-dark);
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    border-top: 1px solid #f0f0f0;
    background-color: #fcfcfc;
    font-size: 12px;
    color: #666;
}

.blog-card-footer i {
    color: var(--primary-color);
    margin-right: 5px;
}

.blog-category {
    text-align: right;
    max-width: 50%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   Blog Detail Page Refined
   ========================================================================== */
.blog-detail-page {
    padding: 60px 0;
    background-color: #ffffff;
}

.blog-detail-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.blog-detail-main {
    flex: 1;
    max-width: 800px;
}

.blog-sidebar {
    width: 330px;
    flex-shrink: 0;
}

/* Hero Section */
.blog-hero {
    margin-bottom: 25px;
}

.blog-hero img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.blog-tags {
    margin-bottom: 12px;
    display: flex;
    gap: 8px;
}

.blog-tags .tag {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
}

.blog-title {
    font-size: 34px;
    font-weight: 800;
    color: #111;
    margin-bottom: 15px;
    line-height: 1.2;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

.title-separator {
    height: 1px;
    background-color: #eeeeee;
    width: 100%;
    margin-bottom: 25px;
}

.blog-intro {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.blog-content-wrapper p {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
}

.blog-section {
    margin-top: 30px;
}

.blog-section h2 {
    font-size: 26px;
    font-weight: 800;
    color: #111;
    margin-bottom: 15px;
}

.blog-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
    margin-top: 20px;
}

.blog-section ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.blog-section ul li {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 8px;
    list-style-type: disc;
}

.blog-section .inline-link {
    color: #e63946;
    text-decoration: none;
    font-weight: 500;
}

.blog-conclusion h2 {
    font-size: 26px;
    font-weight: 800;
    color: #111;
    margin-top: 40px;
    margin-bottom: 15px;
}

.blog-footer-separator {
    height: 1px;
    background-color: #eeeeee;
    width: 100%;
    margin: 40px 0;
}

/* Related Posts Section */
.related-posts-section h3 {
    font-size: 22px;
    font-weight: 800;
    color: #111;
    margin-bottom: 30px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.related-post-card {
    display: flex;
    gap: 15px;
    align-items: center;
}

.rp-card-img {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 0;
}

.rp-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rp-card-info h4 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
}

.rp-card-info h4 a {
    color: #111;
    text-decoration: none;
}

.rp-card-info .rp-date {
    font-size: 13px;
    color: #888;
}

/* Reply Section */
.reply-section h3 {
    font-size: 24px;
    font-weight: 800;
    color: #111;
    margin-bottom: 10px;
}

.reply-notes {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.reply-form .form-row {
    margin-bottom: 15px;
}

.reply-form textarea,
.reply-form input[type="text"],
.reply-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

.reply-form textarea {
    resize: vertical;
}

.checkbox-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.checkbox-row label {
    font-size: 14px;
    color: #555;
}

.captcha-box {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 320px;
}

.captcha-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #28a745;
}

.captcha-status i {
    font-size: 24px;
}

.captcha-status span {
    font-weight: 600;
    font-size: 15px;
}

.captcha-provider {
    text-align: right;
}

.captcha-provider img {
    width: 80px;
    margin-bottom: 5px;
}

.captcha-links {
    font-size: 11px;
    color: #999;
}

.captcha-links a {
    color: #999;
    text-decoration: none;
}

.post-comment-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
}

.post-comment-btn:hover {
    background-color: #c4191f;
}

/* Sidebar Styling */
.sidebar-widget {
    background-color: #fff;
    padding: 15px 20px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.widget-title {
    font-size: 17px;
    font-weight: 800;
    color: #111;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.search-form {
    display: flex;
}

.search-form input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
}

.search-form button {
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.sidebar-rp-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eee;
    align-items: center;
}

.sidebar-rp-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.s-rp-img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.s-rp-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.s-rp-info h4 {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 3px;
}

.s-rp-info h4 a {
    color: #111;
    text-decoration: none;
    transition: 0.3s;
}

.s-rp-info h4 a:hover {
    color: var(--primary-color);
}

.s-rp-date {
    font-size: 11px;
    color: #999;
}

.sidebar-cat-list li {
    margin-bottom: 12px;
}

.sidebar-cat-list li a {
    display: flex;
    justify-content: space-between;
    color: #444;
    text-decoration: none;
    font-size: 15px;
    transition: 0.2s;
}

.sidebar-cat-list li a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 1100px) {
    .blog-detail-layout {
        flex-direction: column;
    }
    .blog-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive Best Deals */
@media (max-width: 1200px) {
    .best-deals-section .product-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .best-deals-sidebar {
        flex: 0 0 100%;
        margin-bottom: 30px;
    }
    .deals-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .best-deals-section .product-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .deals-links {
        grid-template-columns: 1fr;
    }
    .best-deals-section .product-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* --- Clickable Blog Cards Polish --- */
.home-blog-card, .blog-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.home-blog-card:hover, .blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.blog-card-title a, .blog-title a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.home-blog-card:hover .blog-card-title a, 
.blog-card:hover .blog-title a {
    color: var(--primary-color);
}

.blog-card-img img, .blog-img img {
    transition: transform 0.5s ease;
}
/* --- Shop Categories Section --- */
.shop-category-section {
    padding: 60px 0;
    background-color: #f4f6fc;
}

.cats-title {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 40px;
    color: #111;
    text-transform: uppercase;
}

.cats-slider-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.cats-slider-track {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 15px 5px;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
}

.cats-slider-track::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.c-card-item {
    flex: 0 0 180px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    text-align: center;
    transition: 0.3s;
    overflow: hidden;
}

.c-card-item a {
    text-decoration: none;
    display: block;
    padding: 20px 15px;
}

.c-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.c-card-img {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.c-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.c-card-name {
    display: block;
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

/* Slider Nav Buttons */
.cats-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: 0.3s;
    color: #555;
}

.cats-nav:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.c-prev {
    left: -20px;
}

.c-next {
    right: -20px;
}

@media (max-width: 768px) {
    .c-card-item { flex: 0 0 140px; }
    .c-card-img { height: 90px; }
    .c-prev { left: 5px; }
    .c-next { right: 5px; }
}

.home-blog-card:hover .blog-card-img img, 
.blog-card:hover .blog-img img {
    transform: scale(1.08);
}

/* ==========================================================================
   Premium Hero Slider Section
   ========================================================================== */
.premium-hero-slider {
    position: relative;
    background-color: #fff;
    overflow: hidden;
}

.p-hero-wrapper {
    position: relative;
    height: 550px;
    width: 100%;
}

.p-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
}

.p-slide.active {
    opacity: 1;
    visibility: visible;
}

.p-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.p-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slanted Polygon Overlay */
.p-hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 2;
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
    display: flex;
    align-items: center;
    padding-left: 15%;
    padding-right: 5%;
}

.p-hero-content {
    max-width: 500px;
    color: #fff;
    animation: fadeInRight 0.8s ease-out;
}

.p-sale-tag {
    display: inline-block;
    font-size: 18px;
    color: #ffda79;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.p-sale-tag strong {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
}

.p-hero-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}

.p-hero-desc {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 35px;
    opacity: 0.9;
}

.p-hero-btn {
    display: inline-block;
    background-color: #fff;
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.p-hero-btn:hover {
    background-color: #f1f1f1;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Slider Navigation */
.p-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.p-slider-nav:hover {
    background: #fff;
    color: var(--primary-color);
}

.p-prev { left: 30px; }
.p-next { right: 30px; }

/* --- Bottom Trust Bar --- */
.p-hero-trust-bar {
    background-color: #fff;
    padding: 30px 0;
    border-bottom: 1px solid #f1f1f1;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.p-trust-flex {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.p-trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.p-trust-icon {
    font-size: 32px;
    color: var(--primary-color);
}

.p-trust-info strong {
    display: block;
    font-size: 15px;
    color: #333;
}

.p-trust-info span {
    font-size: 13px;
    color: #777;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 991px) {
    .p-hero-overlay {
        width: 100%;
        clip-path: none;
        background: linear-gradient(to right, rgba(230,57,70,0.9), var(--primary-color));
        padding: 40px 5%;
        justify-content: center;
        text-align: center;
    }
    .p-hero-title { font-size: 48px; }
    .p-trust-flex { flex-wrap: wrap; justify-content: center; gap: 30px; }
}

@media (max-width: 768px) {
    .p-hero-wrapper { height: 450px; }
    .p-hero-title { font-size: 36px; }
    .p-hero-desc { display: none; }
    .p-trust-item { width: 45%; justify-content: center; text-align: left; }
}

@media (max-width: 576px) {
    .p-trust-item { width: 100%; }
}

@media (max-width: 480px) {
    .p-hero-title { font-size: 32px; }
    .p-slider-nav { width: 35px; height: 35px; font-size: 16px; }
    .p-prev { left: 10px; }
    .p-next { right: 10px; }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   Promo Banners Section (Replaced 25% Discount)
   ========================================================================== */
.promo-banners-section {
    padding: 30px 0 50px;
    background-color: #fff;
}

.pb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.pb-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 230px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: 0.3s;
}

.pb-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.pb-card.pb-red {
    background: var(--primary-color);
    color: #fff;
}

.pb-card img {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 45%;
    object-fit: cover;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    transition: 0.5s;
}

.pb-card:hover img {
    transform: scale(1.05);
}

.pb-content {
    position: relative;
    z-index: 2;
    max-width: 60%;
}

.pb-content h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
}

.pb-card:not(.pb-red) .pb-content h3 {
    color: #111;
}

.pb-content p {
    font-size: 15px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.pb-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: 0.3s;
}

.pb-btn:hover {
    background: #c4191f;
}

.pb-btn-white {
    background: #fff;
    color: var(--primary-color);
}

.pb-btn-white:hover {
    background: #f1f1f1;
}

@media (max-width: 991px) {
    .pb-content h3 { font-size: 22px; }
    .pb-card { padding: 30px; height: 200px; }
}

@media (max-width: 768px) {
    .pb-grid { grid-template-columns: 1fr; }
    .pb-card { height: 220px; }
    
    /* Hide All Categories button when mobile menu opens */
    body.no-scroll .categories-dropdown {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
}

/* Latest Blog Slider Styles */
.blog-slider-container {
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.blog-slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.home-blog-card {
    flex: 0 0 calc(33.333% - 13.5px); /* 3 items per view on desktop */
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.home-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.blog-card-img {
    height: 200px;
    width: 100%;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-content {
    padding: 20px;
    flex-grow: 1;
}

.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card-title a {
    color: #333;
    text-decoration: none;
    transition: 0.3s;
}

.blog-card-title a:hover {
    color: var(--primary-color);
}

.blog-card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-read-more {
    font-size: 13px;
    font-weight: 700;
    color: #000; /* Changed to Black */
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-card-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
}

/* MOBILE RESPONSIVE: Show only 1 blog at a time */
@media (max-width: 768px) {
    .home-blog-card {
        flex: 0 0 100% !important; /* Force 100% width */
        max-width: 100%;
        margin-right: 0;
    }
    .blog-slider-track {
        gap: 0 !important; /* Remove gap for perfect alignment */
    }
    .blog-slider-container {
        padding: 10px 0;
    }
}

/* MOBILE RESPONSIVE: Show only 1 product at a time for Featured Section */
@media (max-width: 768px) {
    .featured-slider-section .product-item {
        flex: 0 0 100% !important;
        max-width: 100%;
        margin-right: 0;
    }
    .featured-slider-section .product-slider-track {
        gap: 0 !important;
    }
}

@media (max-width: 480px) {
    .pb-card img { width: 55%; clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%); opacity: 0.7; }
    .pb-content { max-width: 100%; }
    .pb-card.pb-red img { opacity: 0.4; }
}

/* Sidebar Styles - Global Fix */
.shop-container { display: flex !important; gap: 30px !important; align-items: flex-start !important; width: 100% !important; }
.shop-main { flex: 1 !important; min-width: 0; }
.detail-sidebar { width: 300px !important; flex-shrink: 0 !important; display: block !important; }
.coupon-box { background-color: #f9f9f9; border: 1px dashed #999 !important; padding: 20px; border-radius: 4px; text-align: center; margin-bottom: 25px; }
.coupon-box h3 { color: #008c99 !important; font-size: 18px; margin-bottom: 10px; }
.coupon-code-wrapper { display: flex; background-color: #fff; border: 1px solid #ddd; border-radius: 4px; overflow: hidden; }
.code-text { flex: 1; padding: 10px; font-weight: 800; }
.copy-btn { background-color: #000; color: #fff; border: none; padding: 0 15px; font-weight: 700; cursor: pointer; }
.sidebar-categories { border: 1px solid #008c99 !important; padding: 15px; border-radius: 4px; background-color: #fff; }
.sidebar-title { font-size: 16px; font-weight: 800; color: #333; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 5px; }
.category-list { list-style: none; padding: 0; }
.category-list li a { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f0f0f0; color: #333 !important; font-size: 13px; text-decoration: none; }
.cat-thumb { width: 35px; height: 35px; flex-shrink: 0; background: #f8fafc; border-radius: 4px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
@media (max-width: 992px) { .shop-container { flex-direction: column !important; } .detail-sidebar { width: 100% !important; margin-top: 30px; } }

/* Final Shop Mobile Responsive Fix */
@media (max-width: 768px) { .shop-header { flex-direction: column !important; align-items: center !important; gap: 15px !important; } .shop-controls { flex-direction: column !important; width: 100% !important; gap: 10px !important; } .shop-sort-select { width: 100% !important; } .shop-grid { grid-template-columns: 1fr !important; gap: 20px !important; } .shop-list .product-item { flex-direction: column !important; align-items: stretch !important; } .shop-list .item-img-wrapper { width: 100% !important; height: 200px !important; } .shop-list .item-details { text-align: center !important; } .view-switcher { display: none !important; } .shop-results-info { text-align: center !important; } }

/* Shop Page: 2 Cards per Row on Mobile */
@media (max-width: 768px) { .shop-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; } .item-name { font-size: 13px !important; height: 35px !important; } .item-price { font-size: 15px !important; } .select-options-btn { padding: 8px 5px !important; font-size: 11px !important; } }

/* Reduce Card Height Globally and Mobile */
.shop-grid .item-img-wrapper { height: 160px !important; }
.item-details { padding: 10px !important; }
@media (max-width: 768px) { .shop-grid .item-img-wrapper { height: 130px !important; } .item-details { padding: 8px !important; } }

/* Final Compact Card and Image Fix */
.shop-grid .item-img-wrapper { height: 140px !important; padding: 0 !important; margin: 0 !important; background: #fff !important; }
.item-img-wrapper img { object-fit: contain !important; width: 100% !important; height: 100% !important; }
.item-details { padding: 5px 10px !important; gap: 2px !important; }
.item-name { height: auto !important; margin-bottom: 2px !important; font-size: 14px !important; }
.item-price { margin-bottom: 5px !important; }
@media (max-width: 768px) { .shop-grid .item-img-wrapper { height: 110px !important; } .item-name { font-size: 12px !important; } .item-price { font-size: 14px !important; } }

/* Cart Page Mobile Responsive */
@media (max-width: 768px) { .cart-table thead { display: none; } .cart-table td { display: block; text-align: right !important; padding: 10px 15px; border-bottom: 1px solid #eee; position: relative; padding-left: 50% !important; } .cart-table td::before { content: attr(data-label); position: absolute; left: 15px; width: 45%; padding-right: 10px; white-space: nowrap; text-align: left; font-weight: 700; color: #333; } .cart-p-thumb { margin-left: auto; } .cart-actions { flex-direction: column; gap: 15px; } .coupon-group { flex-direction: column; width: 100%; } .coupon-input { width: 100% !important; } .btn-apply-coupon, .btn-update-cart { width: 100%; } .cart-totals-section { max-width: 100%; } }
