/* ================================================
   HOME PAGE MODERN DESIGN
   ================================================ */

:root {
    --primary-color: #feee00;
    --secondary-color: #1a1a1a;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --border-color: #e8e8e8;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================
   HERO BANNER SLIDER
   ================================================ */
.hero-banner-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
    position: relative;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hero-slider .owl-item img {
    border-radius: var(--radius-lg);
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.hero-slider .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% - 40px);
    left: 20px;
    display: flex;
    justify-content: space-between;
    padding: 0;
    pointer-events: none;
    z-index: 10;
}

.hero-slider .owl-nav button {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0 !important;
    color: #1a1a1a !important;
    pointer-events: all;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: none;
    padding: 0;
    position: relative;
}

.hero-slider .owl-nav button:hover {
    background: var(--primary-color) !important;
    color: #1a1a1a !important;
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(254, 238, 0, 0.5);
}

.hero-slider .owl-nav button span {
    display: none !important;
    font-size: 0 !important;
    visibility: hidden !important;
}

.hero-slider .owl-nav button:before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 18px;
    color: #1a1a1a;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.hero-slider .owl-nav .owl-prev:before {
    content: "\f054";
}

.hero-slider .owl-nav .owl-next:before {
    content: "\f053";
}

.hero-slider .owl-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.hero-slider .owl-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: var(--transition);
}

.hero-slider .owl-dot.active {
    width: 30px;
    border-radius: 5px;
    background: var(--primary-color);
}

/* ================================================
   FOOTER BANNER SLIDER
   ================================================ */
.footer-banner-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
    position: relative;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.footer-banner-slider .owl-item img {
    border-radius: var(--radius-lg);
    width: 100%;
    height: 450px;
    object-fit: contain;
}

.footer-banner-slider .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% - 40px);
    left: 20px;
    display: flex;
    justify-content: space-between;
    padding: 0;
    pointer-events: none;
    z-index: 10;
}

.footer-banner-slider .owl-nav button {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0 !important;
    color: #1a1a1a !important;
    pointer-events: all;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: none;
    padding: 0;
    position: relative;
}

.footer-banner-slider .owl-nav button:hover {
    background: var(--primary-color) !important;
    color: #1a1a1a !important;
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(254, 238, 0, 0.5);
}

.footer-banner-slider .owl-nav button span {
    display: none !important;
    font-size: 0 !important;
    visibility: hidden !important;
}

.footer-banner-slider .owl-nav button:before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 18px;
    color: #1a1a1a;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.footer-banner-slider .owl-nav .owl-prev:before {
    content: "\f053";
}

.footer-banner-slider .owl-nav .owl-next:before {
    content: "\f054";
}

.footer-banner-slider .owl-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.footer-banner-slider .owl-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition: var(--transition);
}

.footer-banner-slider .owl-dot.active {
    width: 30px;
    border-radius: 5px;
    background: var(--primary-color);
}

/* ================================================
   SECTION STYLING
   ================================================ */
.home-section {
    margin-bottom: 60px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.home-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.home-section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    position: relative;
    padding-left: 20px;
}

.home-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), #ffd700);
    border-radius: 3px;
}

.home-section-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin: 5px 0 0 20px;
}

.home-section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-light);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border: 2px solid transparent;
}

[data-theme="dark"] .home-section-link {
    background: var(--dark-bg-light);
    color: var(--dark-text-dark);
}

.home-section-link:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
    text-decoration: none;
    transform: translateX(5px);
}

.home-section-link i {
    transition: var(--transition);
}

.home-section-link:hover i {
    transform: translateX(3px);
}

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

/* ================================================
   CATEGORY SECTION
   ================================================ */
.home-category-slider-wrapper {
    position: relative;
    margin-top: 20px;
}

.home-category-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 20px;
    visibility: visible !important;
}

/* Category Slider Navigation */
.category-slider .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% + 80px);
    left: -40px;
    display: flex;
    justify-content: space-between;
    padding: 0;
    pointer-events: none;
    z-index: 10;
}

.category-slider .owl-nav button {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0 !important;
    color: #1a1a1a !important;
    pointer-events: all;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: none;
    padding: 0;
    position: relative;
}

.category-slider .owl-nav button:hover {
    background: var(--primary-color) !important;
    color: #1a1a1a !important;
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(254, 238, 0, 0.5);
}

.category-slider .owl-nav button span {
    display: none !important;
    font-size: 0 !important;
    visibility: hidden !important;
}

.category-slider .owl-nav button:before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 18px;
    color: #1a1a1a;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.category-slider .owl-nav .owl-prev:before {
    content: "\f053";
}

.category-slider .owl-nav .owl-next:before {
    content: "\f054";
}

.home-category-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 25px 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.home-category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    text-decoration: none;
}

.home-category-card__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-light), #e8e8e8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.home-category-card:hover .home-category-card__icon {
    background: linear-gradient(135deg, var(--primary-color), #ffd700);
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(254, 238, 0, 0.4);
}

.home-category-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-category-card:hover .home-category-card__icon img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.home-category-card__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
    text-align: center;
    width: 100%;
}

/* ================================================
   FLASH DEALS / FEATURED PRODUCTS
   ================================================ */
.flash-deals-wrapper {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-radius: var(--radius-lg);
    padding: 30px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.flash-deal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.flash-deal-title {
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.flash-deal-timer {
    display: flex;
    gap: 10px;
    align-items: center;
}

.timer-item {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    text-align: center;
    min-width: 60px;
}

.timer-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.timer-label {
    display: block;
    font-size: 11px;
    opacity: 0.9;
    margin-top: 4px;
    text-transform: uppercase;
}

/* ================================================
   PRODUCT CARDS
   ================================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    position: relative;
}

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

.product-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--bg-light);
}

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

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.product-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
    border: none;
}

.product-wishlist:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.product-card-content {
    padding: 20px;
}

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

.product-card-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.product-card-title a:hover {
    color: var(--primary-color);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.product-rating .stars {
    display: flex;
    gap: 2px;
    color: #ffa502;
}

.product-rating .count {
    font-size: 13px;
    color: var(--text-light);
}

.product-price-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.product-price-old {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-price-current {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
}

.product-seller-badge {
    margin-top: 10px;
}

.product-seller-badge img {
    height: 20px;
    width: auto;
}

/* ================================================
   PROMOTIONAL BANNERS
   ================================================ */
.promo-banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.promo-banner-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    display: block;
    text-decoration: none;
}

.promo-banner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.promo-banner-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

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

/* ================================================
   DEAL OF THE DAY
   ================================================ */
.deal-of-day-wrapper {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: 40px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.deal-of-day-wrapper::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 50%;
}

/* ================================================
   BEST SELLING / TOP RATED
   ================================================ */
.best-selling-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.best-selling-item {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    gap: 15px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    text-decoration: none;
}

.best-selling-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    text-decoration: none;
}

.best-selling-image {
    flex-shrink: 0;
}

.best-selling-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.best-selling-details {
    flex: 1;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .hero-slider .owl-item img {
        height: 350px;
    }

    .section-title {
        font-size: 24px;
    }

    .home-category-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .hero-slider .owl-item img {
        height: 280px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .section-title {
        font-size: 20px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .home-category-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }

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

    .best-selling-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-slider .owl-item img {
        height: 220px;
    }

    .home-section {
        margin-bottom: 40px;
    }

    .promo-banner-grid {
        grid-template-columns: 1fr;
    }

    .timer-item {
        min-width: 50px;
        padding: 8px 10px;
    }

    .timer-value {
        font-size: 20px;
    }
}

/* ================================================
   ANIMATION UTILITIES
   ================================================ */
.animate-on-scroll {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================
   LOADING STATE
   ================================================ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
