/* Global Styles & Reset - Patika Inspired V2 */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #2E7D32;
    /* Deep Forest Green */
    --primary-dark: #1B5E20;
    --primary-light: #4CAF50;
    --primary-soft: #E8F5E9;
    --secondary-color: #FFA000;
    /* Warm Gold */
    --text-main: #212121;
    --text-secondary: #757575;
    --bg-body: #FFFFFF;
    --bg-light: #F7F9F7;
    /* Very subtle green tint */
    --border-color: #EEEEEE;

    --font-main: 'Jost', sans-serif;

    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 50px;
}

body {
    background-color: var(--bg-body);
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.7;
    letter-spacing: 0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

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

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

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

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

/* Patika Running Text (Marquee) */
.top-bar {
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.8rem;
    padding: 12px 0;
    font-weight: 600;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.marquee-container {
    display: inline-block;
    animation: marquee 30s linear infinite;
    padding-left: 100%;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

.marquee-item {
    display: inline-block;
    margin-right: 50px;
}

.marquee-item i {
    color: var(--secondary-color);
    margin-right: 8px;
}

/* Header & Nav */
.main-header {
    background: #fff;
    padding: 1.8rem 0;
    /* Slightly more space */
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1002;
}

.navbar-brand {
    display: inline-block;
    padding: 0;
    margin: 0;
}

.navbar-brand img {
    max-height: 120px !important;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    /* Frameless: no background, no border, no shadow */
}

@media (max-width: 768px) {
    .main-header {
        padding: 1rem 0;
    }

    .navbar-brand img {
        max-height: 75px !important;
    }
}

/* Sticky Header logic */
.main-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0 !important;
    animation: slideDown 0.4s ease;
}

.main-header.sticky .navbar-brand img {
    max-height: 60px !important;
}

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

    to {
        transform: translateY(0);
    }
}

.search-container {
    display: flex;
    align-items: center;
    position: relative;
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(46, 125, 50, 0.1);
}

.search-container .form-control {
    background: transparent;
    border: none !important;
    padding-left: 55px;
    height: 55px;
    font-size: 0.95rem;
    box-shadow: none !important;
}

.search-icon-inside {
    position: absolute;
    left: 20px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.search-btn-inside {
    background: #222;
    /* Patika's Contrast Dark */
    color: #fff;
    font-weight: 700;
    padding: 0 35px;
    height: 55px;
    border: none;
    text-transform: uppercase;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.search-btn-inside:hover {
    background: var(--primary-color);
}

.main-nav .nav-link {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #333 !important;
    padding: 1.25rem 1.2rem !important;
    position: relative;
    letter-spacing: 1.2px;
    transition: all 0.3s ease;
}

.main-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 0;
    height: 4px;
    background-color: var(--secondary-color);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav .nav-link:hover::before,
.main-nav .nav-link.active::before {
    width: 100%;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Carousel Controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--white);
    background-size: 50%, 50%;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    filter: invert(1) grayscale(100) brightness(200%);
    /* Make arrow dark */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0;
    transition: opacity 0.3s;
}

.hero-section:hover .carousel-control-prev,
.hero-section:hover .carousel-control-next {
    opacity: 1;
}



/* Product Cards */
.product-item .card {
    border: 1px solid #eee;
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #fff;
    overflow: hidden;
    position: relative;
}

.product-item .card:hover {
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
    transform: translateY(-10px);
    border-color: transparent;
}

.product-item .card-img-wrapper {
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #f9f9f9;
    transition: background 0.3s;
}

.product-item .card:hover .card-img-wrapper {
    background: #fff;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.btn-add-cart {
    width: 100%;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    font-weight: 700;
    padding: 0.8rem;
    border-radius: var(--radius-xl);
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-item .card:hover .btn-add-cart {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

.main-nav .navbar-toggler {
    border: none;
    padding: 0.5rem;
}

@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        border-radius: 0 0 8px 8px;
        box-shadow: var(--shadow-card);
        /* Changed from --shadow-md */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 1000;
    }

    .navbar-nav .nav-link {
        margin-left: 0;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
}

/* Buttons */
.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(46, 125, 50, 0.3);
    /* Updated rgba values */
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(46, 125, 50, 0.4);
    /* Updated rgba values */
}

.btn-warning {
    background-color: var(--secondary-color) !important;
    /* Changed from --accent-color */
    color: var(--white) !important;
    box-shadow: 0 4px 6px rgba(252, 163, 17, 0.3);
    /* Updated rgba values */
}

.btn-warning:hover {
    background-color: #e0900f !important;
    /* Darker Gold */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(252, 163, 17, 0.4);
    /* Updated rgba values */
}

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

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

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

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

/* Hero Slider - Boxed & Rounded */
.hero-section {
    margin: 20px auto;
    border-radius: var(--radius-lg);
    max-width: 1400px;
    height: 550px;
    position: relative;
    width: 100%;
}

.carousel-inner,
.carousel-item {
    height: 550px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
    width: 100%;
    transition: transform 10s linear;
    /* Ken Burns duration */
}

.carousel-item.active img {
    transform: scale(1.15);
    /* Continuous zoom */
}

/* Centered Overlay for Centered Content */
.hero-overlay {
    background: rgba(0, 0, 0, 0.5);
    /* Semi-transparent dark overlay */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

/* Logo styling is handled in the Header & Nav section (line 122) */

@media (max-width: 768px) {
    .main-header .row {
        flex-direction: column;
        text-align: center;
    }
}

.hero-logo-center {
    max-height: 120px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
    background: #fff;
    padding: 8px;
    display: inline-block;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-logo-center:hover {
    transform: scale(1.1) rotate(5deg);
    border-color: var(--secondary-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .hero-logo-center {
        max-height: 80px;
        padding: 5px;
        border-width: 3px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
    /* Added to override previous */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    /* Added to override previous */
}

.hero-content p {
    font-size: 1.25rem;
    /* Added to override previous */
    color: rgba(255, 255, 255, 0.9);
    /* Added to override previous */
    margin-bottom: 2rem;
    /* Added to override previous */
    font-weight: 300;
    /* Added to override previous */
}

.hero-content .btn {
    padding: 0.8rem 2.5rem;
    /* Added to override previous */
    font-weight: 600;
    /* Added to override previous */
    border-radius: 50px;
    /* Added to override previous */
    text-transform: uppercase;
    /* Added to override previous */
    letter-spacing: 1px;
    /* Added to override previous */
}

.hero-content .btn-primary {
    background-color: var(--primary-color);
    /* Added to override previous */
    border-color: var(--primary-color);
    /* Added to override previous */
}

.hero-content .btn-primary:hover {
    background-color: var(--primary-light);
    /* Added to override previous */
    transform: translateY(-2px);
    /* Added to override previous */
}

@media (min-width: 992px) {
    .hero-section .carousel-inner {
        border-radius: var(--radius-lg);
        overflow: hidden;
    }

    .hero-section {
        padding: 0 15px;
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 991px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .row.g-4 {
        justify-content: center;
        --bs-gutter-x: 1rem;
    }
}

/* Sections */
section {
    padding: 5rem 0;
}

@media (max-width: 991px) {
    section {
        padding: 3rem 0;
    }
}

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

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    /* Changed from #f0f0f0 */
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    box-shadow: none;
}

.card:hover {
    box-shadow: var(--shadow-hover);
    /* Changed from --shadow-lg */
    border-color: transparent;
    transform: translateY(-5px);
}

.card-img-top {
    height: 250px;
    object-fit: contain;
    padding: 1.5rem;
    background-color: var(--white);
    transition: transform 0.3s ease;
}

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

.card-body {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em;
}

.card-text {
    color: var(--text-secondary);
    /* Changed from --text-light */
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.card-price {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    display: block;
}

.card-btn {
    width: 100%;
    margin-top: 1rem;
    border-radius: 50px;
    background-color: var(--bg-light);
    color: var(--text-main);
    /* Changed from --text-dark */
    font-weight: 600;
    border: 1px solid var(--border-color);
    /* Changed from #e0e0e0 */
    padding: 0.6rem 1.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

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

.badge-category {
    font-size: 0.75rem;
    color: var(--text-secondary);
    /* Changed from --text-light */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.25rem;
}

/* Inner Page Header */
header.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
    padding: 6rem 0 4rem;
    margin-top: 0;
    margin-bottom: 0;
}

/* Category Circle Cards */
.section-title-premium {
    font-size: 2.2rem;
    /* Changed from 2rem */
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    /* Changed from 3rem */
    position: relative;
    display: inline-block;
    color: var(--text-main);
}

.section-title-premium::after {
    display: none;
}

/* Advanced Category Circles - Patika Style */
.category-card {
    text-align: center;
    display: block;
    text-decoration: none !important;
    padding: 10px;
    background: transparent;
    transition: all 0.3s ease;
}

.category-icon-wrapper {
    width: 140px;
    height: 140px;
    background: #fff;
    border: 5px solid #f8f9f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.category-card:hover .category-icon-wrapper {
    background: var(--primary-color);
    border-color: var(--secondary-color);
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 15px 35px rgba(46, 125, 50, 0.2);
}

.category-icon-wrapper i {
    font-size: 3rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
}

.category-card:hover i {
    color: #fff;
    transform: scale(1.1);
}

.category-card h6 {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    margin-top: 10px;
    transition: color 0.3s;
}

.category-card:hover h6 {
    color: var(--primary-color);
}

/* Patika Animated Banner Section */
.parallax-banner {
    position: relative;
    height: 450px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    margin: 80px 0;
    overflow: hidden;
}

.parallax-overlay {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.banner-box {
    background: rgba(46, 125, 50, 0.9);
    padding: 50px;
    color: #fff;
    border-radius: 0 50px 50px 0;
    max-width: 600px;
    position: relative;
    z-index: 2;
    transform: translateX(-100%);
    transition: transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.parallax-banner.active .banner-box {
    transform: translateX(0);
}

.banner-box h2 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: #fff;
}

.banner-box p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.banner-btn {
    background: var(--secondary-color);
    color: #000;
    font-weight: 800;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

/* Rain Animation Styles */
.rain-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.rain-drop {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.4);
    width: 1px;
    height: 15px;
    bottom: 100%;
    animation: rain linear infinite;
}

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

    100% {
        transform: translateY(500px);
    }
}

.banner-box {
    position: relative;
    z-index: 5 !important;
}

/* Modern Features Bar */
.features-bar {
    background: #fff;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    padding: 60px 0;
    margin-top: -30px;
    position: relative;
    z-index: 5;
}

.feature-item {
    text-align: center;
    padding: 0 20px;
    transition: all 0.3s ease;
}

.feature-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.feature-item:hover i {
    transform: translateY(-10px) rotateY(15deg);
}

.feature-item h6 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.feature-item small {
    font-size: 0.9rem;
    color: #777;
    font-weight: 500;
}

/* Trendyol Banner */
.trendyol-section {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFFFFF 100%),
        url('https://www.transparenttextures.com/patterns/graphy.png');
    border-radius: var(--radius-lg);
    padding: 60px;
    position: relative;
    overflow: hidden;
    border: 1px solid #FFE082;
}

/* Animations & Utilities */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.bg-primary-soft {
    background-color: var(--primary-soft);
}

.opacity-10 {
    opacity: 0.1;
}

.ls-tight {
    letter-spacing: -0.025em;
}

.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

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

/* Premium Section Title */
.section-title-premium {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

/* Partners Section */
.partners-section {
    padding: 4rem 0;
    background-color: var(--white);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.partner-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4rem;
}

.partner-logo-container img {
    max-height: 50px;
    /* Smaller, cleaner */
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s;
}

.partner-logo-container img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Newsletter */
.newsletter-section {
    background: var(--primary-color);
    color: #fff;
    padding: 60px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 4rem auto -60px auto;
    max-width: 1200px;
    position: relative;
    overflow: hidden;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(46, 125, 50, 0.3);
}

.newsletter-form .form-control {
    height: 60px;
    border-radius: 50px;
    border: none;
    padding-left: 30px;
    font-size: 1rem;
}

.newsletter-form .btn {
    height: 60px;
    border-radius: 50px;
    padding: 0 40px;
    background: var(--secondary-color);
    color: var(--text-main);
    font-weight: 700;
    margin-left: -50px;
    z-index: 5;
    border: none;
}

.newsletter-form .btn:hover {
    background: #FFB300;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    color: #000;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--secondary-color);
    z-index: 2000;
    transition: width 0.1s;
}

/* Animated Title Underline */
.section-title-premium::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--secondary-color);
    transition: width 0.8s ease;
}

.section-title-premium.active::after {
    width: 100px;
}

/* Floating Buttons */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    left: 30px;
    /* Left side like Patika */
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20ba5c;
    transform: scale(1.1) rotate(15deg);
    color: #fff;
}

footer {
    background: #F9F9F9;
    color: var(--text-secondary);
    padding-top: 100px;
    /* Space for newsletter overlap */
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
}

footer h5 {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

footer a {
    color: var(--text-secondary);
}

footer a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

footer .social-icon-btn {
    width: 40px;
    height: 40px;
    background: #fff;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: all 0.3s;
}

footer .social-icon-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    background: #F1F1F1;
    padding: 25px 0;
    margin-top: 50px;
    border-top: 1px solid #E0E0E0;
    color: #888;
}

/* Bootstrap Overrides */
.text-primary {
    color: var(--primary-color) !important;
}

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

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 50px;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.badge {
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.5em 1em;
}

/* Mobile Responsiveness */
@media (max-width: 991px) {
    .hero-section {
        margin-top: 0;
    }

    .hero-overlay {
        background: rgba(0, 0, 0, 0.4);
        padding: 2rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .category-card {
        margin-bottom: 15px;
    }

    .newsletter-section {
        margin: 2rem 15px;
        padding: 40px 20px;
    }

    .newsletter-form .btn {
        margin-left: 0;
        width: 100%;
        margin-top: 10px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    footer {
        padding-top: 40px;
    }
}

/* Inner Page Header */
header.bg-primary {
    padding: 7rem 0 3rem !important;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    color: #fff !important;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
    border-radius: 0 0 50px 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

header.bg-primary h1,
header.bg-primary p {
    position: relative;
    z-index: 1;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

header.bg-primary h1 {
    font-weight: 800;
    letter-spacing: -1px;
}

/* Sidebar Styling */
.sidebar-header-premium {
    background: var(--primary-color);
    color: #fff;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.sidebar-header-premium h5 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.list-group-flush .list-group-item {
    border-left: 3px solid transparent;
    padding: 1rem 1.25rem;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.2s;
}

.list-group-flush .list-group-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 1.5rem;
}

.list-group-item.active {
    background-color: var(--primary-soft) !important;
    border-color: transparent !important;
    color: var(--primary-color) !important;
    border-left-color: var(--primary-color) !important;
    font-weight: 700;
}

/* Pagination */
.page-link {
    color: var(--text-main);
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    margin: 0 3px;
    font-weight: 600;
    transition: all 0.3s;
}

.page-link:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.page-item.active .page-link {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

/* Ensure consistent card borders and shadows */
.card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

/* Hero Floating Category Items */
.glass-card {
    background: rgba(255, 255, 255, 0.45);
    /* Increased Transparency */
    backdrop-filter: blur(20px);
    /* Increased Blur for frosted glass effect */
    border: 1px solid rgba(255, 255, 255, 0.7);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 220px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* Softer initial shadow */
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.95);
    /* Nearly opaque on hover */
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
    border-color: rgba(255, 255, 255, 1);
}

.glass-card .text-muted {
    color: rgba(0, 0, 0, 0.8) !important;
    /* Make subtitle more readable on glass */
}

.icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.pointer-events-none {
    pointer-events: none;
}

.pointer-events-auto {
    pointer-events: auto;
}

/* Final Polish & UX Enhancements */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-up.active {
    opacity: 1;
    transform: translateY(0);
}

.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.6s;
    z-index: -1;
}

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

@media (max-width: 576px) {
    .section-title-premium {
        font-size: 1.8rem;
    }

    .hero-content h1 {
        font-size: 1.8rem !important;
    }

    .product-item {
        padding: 0 5px;
    }

    .card-title {
        font-size: 0.85rem;
    }

    .card-price {
        font-size: 1rem;
    }

    .btn-add-cart {
        font-size: 0.7rem;
        padding: 0.6rem;
    }
}

/* Mobile Nav Enhancement */
.main-nav .navbar-toggler:focus {
    box-shadow: none;
}

.main-nav .navbar-collapse {
    border: none;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}