/* ==========================================================================
   PREMIUM ONLINE STORE - HOME PAGE STYLES
   ========================================================================== */

/* --- Variables & Core Utilities --- */
:root {
    --primary-color: #2563eb;
    --primary-light: #eff6ff;
    --primary-dark: #1e40af;
    --secondary-color: #f97316;
    --accent-color: #10b981;
    --bg-color: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --white: #ffffff;
    --border-color: #e2e8f0;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --gradient-secondary: linear-gradient(135deg, #f97316 0%, #ea580c 100%);

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 40px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 15px 35px -5px rgba(37, 99, 235, 0.25);
    --shadow-glow-sec: 0 15px 35px -5px rgba(249, 115, 22, 0.25);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 9999px;
}

/* Base Body settings - optional if set in reset.css, but enforcing typography */
body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* --- Section Headers & Typography --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    margin-bottom: 56px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: var(--shadow-sm);
}

.section-header h2,
.section-title h2,
.about-content h2 {
    font-size: 38px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 16px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.section-header p,
.section-title p {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.7;
}

.see-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition-fast);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    background: transparent;
    border: 2px solid transparent;
}

.see-all:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    gap: 12px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    /* Modern gradient background */
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding: 0;
    color: var(--text-main);
}

/* Optional dark overlay for depth */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(8px);
    z-index: 1;
}

.hero .container {
    max-width: 1280px;
    margin: auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 32px;
    min-height: 500px;
}

.hero-main {
    background: rgba(255,255,255,0.85);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    position: relative;
    z-index: 2;
    min-height: 500px; /* ensure visible area */
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
    height: 100%;
    flex: 1;
}

.hero-left {
    flex: 1;
    z-index: 2;
}

.hero-right {
    flex: 1;
    position: relative;
    z-index: 2; /* above overlay */
}

.hero-right img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-lg);
    animation: heroImgFadeIn 1.2s ease-out forwards;
    opacity: 0;
    transform: translateX(30px);
    display: block;
}

@keyframes heroImgFadeIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.heroSwiper {
    padding: 0 40px;
}
btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    background: transparent;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition-fast);
    border: none;
    text-transform: uppercase;
    border-bottom: 2px solid #1a1a1a;
}

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

.hero-nav-prev,
.hero-nav-next {
    color: #cbd5e1 !important;
    width: 50px;
    height: 50px;
    background: transparent;
    transition: var(--transition-fast);
}

.hero-nav-prev:hover,
.hero-nav-next:hover {
    color: #94a3b8 !important;
}

.hero-nav-prev::after,
.hero-nav-next::after {
    font-size: 32px;
    font-weight: bold;
}

.heroSwiper {
    padding: 0 40px;
}

.hero-right {
    position: relative;
    z-index: 2; /* above ::before overlay */
}

.categorySwiper .swiper-slide {
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 0;
}

/* Center the card inside each slide */
.categorySwiper .swiper-slide .category-card {
    margin: 0 auto;
    text-align: center;
}

/* Ensure cards have a consistent width for nicer layout */
.categorySwiper .swiper-slide .category-card {
    width: 140px;
    max-width: 100%;
    text-align: center;
}

.heroSwiper {
    flex: 1; /* fill remaining space in .hero-main */
    width: 100%;
    height: 100%;
}

.heroSwiper .swiper-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Pagination positioning */
.categorySwiper .swiper-pagination {
    bottom: 5px !important;
}

.hero-right img {
    width: 100%;
    max-width: 400px;
    object-fit: contain;
}

.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-side-banner {
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

.side-banner-text {
    flex: 1;
}

.side-tag {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.hero-side-banner h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.hero-side-banner p {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px 0;
}

.side-explore {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 2px;
    transition: var(--transition-fast);
}

.side-explore:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.hero-side-banner img {
    width: 120px;
    height: auto;
    object-fit: contain;
}

@keyframes heroFloat {

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

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

.heroSwiper .swiper-pagination {
    bottom: 20px;
}

.heroSwiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #cbd5e1;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.heroSwiper .swiper-pagination-bullet-active {
    width: 30px;
    border-radius: 10px;
    background: var(--primary-color);
    opacity: 1;
}

/* ==========================================================================
   TRUST BADGES SECTION
   ========================================================================== */
.trust-badges {
    padding: 30px 24px;
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    margin: 20px auto 60px auto;
    max-width: 1280px;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .badges-grid {
        grid-template-columns: 1fr;
    }
}

.badge-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 10px;
    border-right: 1px solid #e2e8f0;
}

.badge-item:last-child {
    border-right: none;
}

.badge-item i {
    font-size: 32px;
    color: #475569;
}

.badge-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.badge-item p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* ==========================================================================
   FLASH SALE
   ========================================================================== */
.flash-sale {
    padding: 120px 0 90px 0;
    background: var(--white);
    position: relative;
}

.flash-sale::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.flash-sale-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 24px 32px;
    background: var(--gradient-hero);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.fsh-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.fsh-title {
    color: #ef4444;
    /* Vibrant Red */
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fsh-title i {
    animation: flashPulse 1.5s infinite;
}

@keyframes flashPulse {

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

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

.fsh-timer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fsh-box {
    background: #ef4444;
    color: var(--white);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 18px;
    min-width: 44px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.fsh-colon {
    font-weight: 800;
    font-size: 22px;
    color: #ef4444;
}

.fsh-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.fsh-see-all {
    color: #ef4444;
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition-fast);
}

.fsh-see-all:hover {
    color: #b91c1c;
    text-decoration: underline;
}

/* Prevent swiper slides from forcing huge heights on cards */
.flashSwiper .swiper-slide,
.productSwiper .swiper-slide {
    height: auto;
}

.flash-nav {
    display: flex;
    gap: 12px;
}

.flash-prev,
.flash-next {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    color: var(--text-main);
    font-size: 18px;
}

.flash-prev:hover,
.flash-next:hover {
    background: #ef4444;
    color: var(--white);
    border-color: #ef4444;
    transform: scale(1.1);
}

/* Flash Card */
.flash-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: var(--transition-smooth);
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
    text-decoration: none;
    color: inherit;
}

.flash-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
    border-color: #cbd5e1;
}

/* Out-of-stock styling */
.out-of-stock {
    background-color: #f0f0f0 !important;
    /* Silver card background */
}

.out-of-stock .flash-image img {
    filter: blur(4px);
}

.out-of-stock .flash-card::after {
    content: "HABIS";
    position: absolute;
    top: 8px;
    left: 8px;
    background: #d32f2f;
    color: #fff;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 12px;
    z-index: 3;
}


.flash-image {
    height: 180px;
    position: relative;
    overflow: hidden;
    background: var(--white);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flash-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition-smooth);
}

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

.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--white);
    color: #ef4444;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 11px;
    z-index: 2;
    border: 1px solid #ef4444;
}

.flash-body {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.flash-body .category {
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.flash-body h3 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.flash-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.flash-price .discounted-price {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.flash-price .original-price {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
}

.flash-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 700;
    transition: var(--transition-fast);
    text-decoration: none;
    margin-top: 16px;
}

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

/* ==========================================================================
   CATEGORY SECTION
   ========================================================================== */
.category-home {
    position: relative;
    padding: 80px 24px 60px 24px;
    max-width: 1280px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f9fafb, #ffffff);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.simple-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
}

.simple-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.see-all-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.see-all-link:hover {
    color: var(--primary-color);
}

.categorySwiper {
    display: block; /* container no longer grid */
    max-width: 1280px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.categorySwiper .swiper-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto; /* scroll on overflow */
    padding: 0 10px;
}

/* Each slide is a fixed‑width card; adjust as needed */
.categorySwiper .swiper-slide {
    flex: 0 0 240px; /* 240 px card width */
    display: flex;
    justify-content: center;
}

.categorySwiper .swiper-pagination {
    bottom: 0px !important;
}

/* Hide legacy grid layout when using Swiper */
.category-grid {
    display: none !important;
}

    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 0;
}

/* Ensure slides are auto-sized and centered */
.categorySwiper .swiper-slide {
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 0;
}

/* Category card styling */
.categorySwiper .swiper-slide .category-card {
    width: 100%;
    max-width: none;
    background: #f1f5f9;
    border: none;
    border-radius: var(--radius-sm);
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.categorySwiper .swiper-slide .category-card:hover {
    background: #e2e8f0;
    transform: translateY(-4px);
}

.category-card:hover {
    transform: translateY(-6px) scale(1.04);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.category-image {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

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

.category-text h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
    transition: color var(--transition-fast);
}

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

.search-form {
    order: 3;
    /* ensure it appears after icons on flex line */
    position: relative;
    z-index: 5;
    margin-top: 4px;
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}

.header.scrolled .search-form {
    display: none;
}

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

/* Navigation arrows for category slider */
.category-nav {
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
    /* allow clicks only on arrows */
    z-index: 10;
}

.category-prev, .category-next {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition-fast);
    pointer-events: auto;
    box-shadow: var(--shadow-md);
}

.category-prev:hover, .category-next:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--white);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
}

.category-card:hover .category-icon {
    background: var(--white);
    color: var(--primary-color);
    transform: scale(1.05);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.category-card h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.category-card p {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================================================
   MID BANNERS SECTION
   ========================================================================== */
.mid-banners {
    padding: 0 24px 60px 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.mid-banners-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .mid-banners-grid {
        grid-template-columns: 1fr;
    }
}

.mid-banner {
    border-radius: var(--radius-sm);
    padding: 40px;
    display: flex;
    align-items: center;
    background-color: #f1f5f9;
    min-height: 250px;
}

.mid-banner-1 {
    background: #f8f9fa url('https://via.placeholder.com/300?text=Summer') no-repeat right 20px center;
    background-size: contain;
}

.mid-banner-2 {
    background: #e2e8f0 url('https://via.placeholder.com/300?text=Spring') no-repeat right 20px center;
    background-size: contain;
}

.mid-banner-text {
    max-width: 50%;
}

.mb-tag {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.mid-banner-text h3 {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.mid-banner-text p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 20px 0;
}

.mb-explore {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mb-explore:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   PRODUCT SECTION
   ========================================================================== */
.home-product {
    padding: 0 0 60px 0;
    background: var(--white);
}

.top-rated-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

@media (max-width: 1024px) {
    .top-rated-layout {
        grid-template-columns: 1fr;
    }
}

.top-rated-sidebar {
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    padding: 24px;
    height: fit-content;
}

.top-rated-sidebar h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px 0;
    text-transform: uppercase;
}

.top-rated-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.top-rated-sidebar li {
    font-size: 14px;
    color: #475569;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-rated-sidebar li input[type="checkbox"] {
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
}

.top-rated-main {
    min-width: 0;
}

.productSwiper {
    padding-bottom: 40px;
}

.productSwiper .swiper-pagination,
.flashSwiper .swiper-pagination,
.testimonialSwiper .swiper-pagination {
    bottom: 0px !important;
}

.flashSwiper,
.testimonialSwiper {
    padding-bottom: 40px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.product-thumb {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
}

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

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

.new-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--accent-color);
    color: var(--white);
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.stock-badge,
.sold-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    bottom: auto;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 600;
    z-index: 3;
    box-shadow: var(--shadow-glow);
}

.stock-badge {
    background: var(--accent-color);
    color: var(--white);
    padding: 2px 6px;
    font-size: 11px;
    white-space: nowrap;
    max-width: max-content;
    display: inline-block;
    text-align: center;
}

.sold-badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 8px;
    font-size: 12px;
    white-space: nowrap;
}

.product-card .info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card h3 {
    margin: 0 0 12px 0;
    font-size: 17px;
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .price {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.product-card .rating {
    margin-bottom: 16px;
    color: #fbbf24;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-card .rating small {
    color: var(--text-muted);
    font-size: 13px;
    margin-left: 4px;
}

.product-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 46px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    margin-top: 16px;
}

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

.disabled-btn {
    opacity: 0.5;
    cursor: not-allowed;
    background: #e2e8f0;
}

/* ==========================================================================
   NEWSLETTER SECTION
   ========================================================================== */
.newsletter {
    padding: 60px 24px;
    background: #f8f9fa;
}

.newsletter-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--white);
    padding: 60px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 992px) {
    .newsletter-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.nl-content h2 {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px 0;
}

.nl-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.nl-form {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    padding: 8px;
    position: relative;
}

.nl-form i {
    color: #94a3b8;
    font-size: 20px;
    margin-left: 16px;
}

.nl-form input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    outline: none;
    font-size: 16px;
    color: #0f172a;
}

.nl-form button {
    background: #0f172a;
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 24px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}

.nl-form button:hover {
    background: var(--primary-color);
}

.nl-image img {
    max-width: 100%;
    border-radius: var(--radius-md);
}

/* ==========================================================================
   BLOG SECTION
   ========================================================================== */
.blog-home {
    padding: 80px 24px;
    background: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

.blog-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-sm);
}

.blog-img {
    position: relative;
    height: 250px;
}

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

.blog-date {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--white);
    color: #0f172a;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
}

.blog-info {
    padding: 24px;
}

.blog-info h3 {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.blog-info p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.blog-read {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.blog-read:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   BRANDS SECTION
   ========================================================================== */
.brand-logos {
    padding: 40px 24px 80px 24px;
    background: var(--white);
    border-bottom: 1px solid #e2e8f0;
}

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

.brands-grid img {
    filter: grayscale(100%) opacity(60%);
    transition: var(--transition-fast);
    max-height: 40px;
}

.brands-grid img:hover {
    filter: grayscale(0%) opacity(100%);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1200px) {
    .hero-content {
        gap: 40px;
    }

    .hero-left h1 {
        font-size: 52px;
    }

    .stats-grid {
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
    }

    .hero-left {
        padding-right: 0;
    }

    .hero-left p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-action {
        justify-content: center;
    }

    .hero-right {
        margin-top: 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-home {
        margin-top: 40px;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
    }

    .about-floating {
        bottom: 20px;
        right: 20px;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .flash-sale-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .fsh-left {
        flex-wrap: wrap;
        gap: 16px;
    }

    .fsh-timer {
        flex-wrap: wrap;
    }

    .fsh-right {
        width: 100%;
        justify-content: space-between;
    }

    .hero-left h1 {
        font-size: 42px;
    }

    .about-check {
        grid-template-columns: 1fr;
    }

    /* Flash card adjustments for tablet */
    .flash-card {
        min-height: 280px;
    }

    .flash-image {
        height: 140px;
    }
}

@media (max-width: 576px) {

    .productSwiper,
    .flashSwiper,
    .testimonialSwiper {
        padding-bottom: 28px;
    }

    .productSwiper .swiper-pagination,
    .flashSwiper .swiper-pagination,
    .testimonialSwiper .swiper-pagination {
        bottom: 0px !important;
    }

    .product-card {
        min-height: 240px;
        /* reduce card height on mobile */
    }

    .stats-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .hero-action {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    /* Flash card adjustments for mobile */
    .flash-card {
        min-height: 240px;
    }

    .flash-image {
        height: 120px;
    }
}