/* ========================================
   HOMEPAGE STYLES - index.php
   Extracted from inline <style> block
   ======================================== */

/* Base Styles & Variables */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #ffc107;
    --dark-color: #212529;
    --primary-rgb: 13, 110, 253;
}

body {
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
}

.text-gradient-gold {
    background: linear-gradient(to right, #FFD700, #FDB931);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-glass {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-xl {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Hero Visual Card 3D */
.hero-visual-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-visual-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* Components */
.icon-box-md {
    width: 60px;
    height: 60px;
}

.bg-light-pattern {
    background-color: #f8f9fa;
    background-image: linear-gradient(#e9ecef 1px, transparent 1px), linear-gradient(90deg, #e9ecef 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center center;
}

/* Steps */
.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 4px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.icon-circle-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.process-line {
    position: absolute;
    top: 60px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: #dee2e6;
    z-index: 1;
    border-top: 2px dashed #adb5bd;
}

/* Cards */
.hover-card {
    transition: all 0.3s ease;
    border-radius: 16px !important;
    overflow: hidden;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
}

.hover-up {
    transition: transform 0.3s ease;
}

.hover-up:hover {
    transform: translateY(-10px);
}

.hover-scale:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* Animations */
.animated-fade-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.animated-fade-down {
    animation: fadeInDown 0.8s ease forwards;
    opacity: 0;
    transform: translateY(-20px);
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Campaign Cards */
.bg-soft-primary {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
}

/* Blog Cards */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card .card-img-top {
    transition: transform 0.5s ease;
}

.blog-card:hover .card-img-top {
    transform: scale(1.1);
}

/* Category Strip */
.category-strip-item {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-strip-item:hover {
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.category-strip-item .icon-circle {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.category-strip-item:hover .icon-circle {
    transform: scale(1.1);
}

.ls-2 {
    letter-spacing: 2px;
}

.grayscale-hover {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.grayscale-hover:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.opacity-05 {
    opacity: 0.05 !important;
}

.header-line {
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* New Product Sections */
.new-pulse {
    animation: pulseNew 2s ease-in-out infinite;
}

@keyframes pulseNew {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 0 12px rgba(255, 193, 7, 0.4);
    }
}

.favorite-card {
    border-left: 3px solid transparent !important;
    transition: all 0.3s ease;
}

.favorite-card:hover {
    border-left-color: #dc3545 !important;
}

.budget-card {
    border-bottom: 3px solid transparent !important;
    transition: all 0.3s ease;
}

.budget-card:hover {
    border-bottom-color: #198754 !important;
}

.category-tab-btn {
    transition: all 0.3s ease;
}

.category-tab-btn:hover {
    transform: translateY(-2px);
}

.category-tab-panel {
    animation: fadeInPanel 0.4s ease forwards;
}

.z-index-1 {
    z-index: 1;
}

.z-index-2 {
    z-index: 2;
}

.ls-1 {
    letter-spacing: 1px;
}

/* ========== FLASH DEALS SECTION ========== */
.flash-deals-section {
    background: #1a1a2e;
    overflow: hidden;
}

.flash-deals-header {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 50%, #ff6b35 100%);
    padding: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.flash-deals-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.flash-deals-header::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: 10%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.flash-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #FFD700;
    animation: flashPulse 2s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

@keyframes flashPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 215, 0, 0);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
}

/* Countdown */
.flash-countdown {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.countdown-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 600;
}

.countdown-box {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    min-width: 36px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-separator {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
    font-size: 1.1rem;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Deals Body */
.flash-deals-body {
    padding: 2rem 0 2.5rem;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}

/* Scroll Wrapper */
.flash-scroll-wrapper {
    position: relative;
}

.flash-scroll-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 0.5rem 0;
}

.flash-scroll-container::-webkit-scrollbar {
    display: none;
}

/* Scroll Buttons */
.flash-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
}

.flash-scroll-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.flash-scroll-left {
    left: -15px;
}

.flash-scroll-right {
    right: -15px;
}

/* Campaign Card */
.flash-deal-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
}

.flash-card-inner {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.flash-card-inner:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 65, 108, 0.25);
}

/* Discount Ribbon */
.flash-ribbon {
    position: absolute;
    top: 12px;
    left: -5px;
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: #fff;
    padding: 0.3rem 0.9rem 0.3rem 0.7rem;
    border-radius: 0 8px 8px 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 3px 10px rgba(255, 65, 108, 0.4);
}

.flash-ribbon::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    border-left: 5px solid transparent;
    border-top: 5px solid #c0392b;
}

.flash-ribbon span {
    font-weight: 800;
    font-size: 1rem;
}

.flash-ribbon small {
    font-size: 0.6rem;
    opacity: 0.9;
    font-weight: 600;
}

/* Image */
.flash-card-image {
    width: 100%;
    aspect-ratio: 1;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
}

.flash-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.flash-card-inner:hover .flash-card-image img {
    transform: scale(1.08);
}

/* Content */
.flash-card-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.flash-card-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: #2d3436;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.flash-card-desc {
    font-size: 0.72rem;
    color: #636e72;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Price */
.flash-price-area {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.flash-old-price {
    font-size: 0.78rem;
    color: #b2bec3;
    text-decoration: line-through;
    font-weight: 500;
}

.flash-new-price {
    font-size: 1.15rem;
    color: #ff4b2b;
    font-weight: 800;
}

/* Badges */
.flash-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.flash-rule-badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 600;
    white-space: nowrap;
}

.flash-stock-badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    background: #e3f2fd;
    color: #1565c0;
    font-weight: 600;
    white-space: nowrap;
}

/* Urgency / Progress */
.flash-urgency {
    margin-top: auto;
}

.flash-progress-bar {
    height: 5px;
    background: #ecf0f1;
    border-radius: 3px;
    overflow: hidden;
}

.flash-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.flash-urgency-text {
    font-size: 0.65rem;
    color: #e74c3c;
    font-weight: 600;
    margin-top: 0.2rem;
    display: block;
}

/* CTA */
.flash-card-cta {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #ecf0f1;
    transition: all 0.3s ease;
}

.flash-card-cta span {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ff4b2b;
    transition: all 0.3s ease;
}

.flash-card-inner:hover .flash-card-cta {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
}

.flash-card-inner:hover .flash-card-cta span {
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .flash-deal-card {
        flex: 0 0 200px;
    }

    .flash-deals-header h2 {
        font-size: 1.2rem !important;
    }

    .countdown-box {
        font-size: 0.9rem;
        padding: 0.2rem 0.35rem;
        min-width: 30px;
    }

    .flash-ribbon span {
        font-size: 0.85rem;
    }
}

/* ========== VITRIN TABS ========== */
.vitrin-tab-panel {
    animation: fadeInPanel 0.4s ease forwards;
}

.vitrin-tab-btn {
    transition: all 0.3s ease;
}

.vitrin-tab-btn:hover {
    transform: translateY(-2px);
}

.vitrin-tab-btn.active {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========== BACK TO TOP ========== */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: #fff;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.5);
}

@media (max-width: 991px) {
    #backToTop {
        bottom: 100px;
        right: 15px;
        width: 42px;
        height: 42px;
    }
}

/* ========== LAZY LOADING ========== */
@keyframes fadeInPanel {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lazy-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.lazy-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== SOCIAL PROOF COUNTERS ========== */
.counter-up {
    font-variant-numeric: tabular-nums;
}

/* ========== ANNOUNCEMENT BAR ========== */
#announcement-bar {
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ========== PRODUCT CARD HOVER OVERLAY ========== */
.product-card {
    position: relative;
}

.product-card .card-hover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    padding: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 5;
    display: flex;
    justify-content: center;
    border-radius: 0 0 16px 16px;
}

.product-card:hover .card-hover-overlay {
    opacity: 1;
    transform: translateY(0);
}

.product-card .btn-quick-add {
    background: #fff;
    color: #0d6efd;
    border: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.product-card .btn-quick-add:hover {
    background: var(--primary-color, #0d6efd);
    color: #fff;
    transform: scale(1.05);
}

/* Mobile: show mini add button */
@media (max-width: 768px) {
    .product-card .card-hover-overlay {
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
        padding: 0.5rem;
    }

    .product-card .btn-quick-add {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}

/* ========== MIN ORDER BADGE ========== */
.min-order-badge {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f0f4ff;
    color: #4361ee;
    font-weight: 600;
}

/* ========== SKELETON LOADING ========== */
.skeleton-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.skeleton-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-card .skeleton-image {
    width: 100%;
    aspect-ratio: 1;
    background: #f0f0f0;
}

.skeleton-card .skeleton-text {
    height: 14px;
    margin-bottom: 8px;
}

.skeleton-card .skeleton-text-short {
    height: 12px;
    width: 60%;
}

.skeleton-card .skeleton-price {
    height: 20px;
    width: 40%;
    margin-top: 12px;
}

/* ========== STICKY CTA BAR ========== */
.sticky-cta-bar {
    position: fixed;
    bottom: -80px;
    left: 0;
    right: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 12px 0;
    transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-cta-bar.visible {
    bottom: 0;
}

@media (max-width: 991px) {
    .sticky-cta-bar {
        bottom: -80px !important;
        display: none !important;
    }
}

/* ========== BLOG READING TIME ========== */
.blog-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

/* ========== WHOLESALER RATING ========== */
.wholesaler-rating {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #f59e0b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wholesaler-logo-card:hover .wholesaler-rating {
    opacity: 1;
}