/**
 * Fashionkart Theme - Enterprise Premium Edition
 * Amazon/Flipkart Style with Premium Animations
 * Uses admin-configured CSS variables from app.blade.php
 */

/* ========================================
   PREMIUM ANIMATIONS & KEYFRAMES
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px var(--primary); }
    50% { box-shadow: 0 0 20px var(--primary), 0 0 30px var(--primary); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes countdownPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Premium Loading Skeleton */
.fk-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 4px;
}

/* Scroll Reveal Animation Classes */
.fk-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fk-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.fk-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fk-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.fk-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fk-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   STICKY HEADER STYLES
   ======================================== */
.fk-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--primary);
    transition: all 0.3s ease;
}

.fk-header.scrolled {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.fk-header-top {
    background: var(--soft-dark);
    padding: 6px 0;
    font-size: 12px;
    color: #fff;
}

.fk-header-main {
    background: var(--primary);
    padding: 10px 0;
}

.fk-header-bottom {
    background: var(--hov-primary);
    padding: 8px 0;
}

/* Logo */
.fk-logo img {
    max-height: 40px;
    filter: brightness(0) invert(1);
}

/* Search Bar - Amazon Style */
.fk-search-wrapper {
    flex: 1;
    max-width: 700px;
    margin: 0 20px;
}

.fk-search-form {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    height: 44px;
}

.fk-search-category {
    background: #f3f3f3;
    border: none;
    padding: 0 12px;
    font-size: 13px;
    color: #555;
    border-right: 1px solid #ddd;
    min-width: 120px;
    cursor: pointer;
}

.fk-search-category:focus {
    outline: none;
}

.fk-search-input {
    flex: 1;
    border: none;
    padding: 0 15px;
    font-size: 14px;
}

.fk-search-input:focus {
    outline: none;
}

.fk-search-btn {
    background: var(--secondary-base);
    border: none;
    padding: 0 18px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
}

.fk-search-btn:hover {
    background: var(--hov-secondary-base);
}

/* Header Icons */
.fk-header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.fk-header-icon {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    transition: opacity 0.2s;
}

.fk-header-icon:hover {
    opacity: 0.85;
    color: #fff;
    text-decoration: none;
}

.fk-header-icon i {
    font-size: 22px;
}

.fk-header-icon .fk-icon-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.fk-header-icon .fk-icon-text small {
    font-size: 11px;
    opacity: 0.8;
}

.fk-header-icon .fk-icon-text span {
    font-weight: 600;
}

/* Cart Badge */
.fk-cart-badge {
    position: relative;
}

.fk-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary-base);
    color: #333;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Delivery Location - Flipkart Style */
.fk-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}

.fk-location:hover {
    background: rgba(255,255,255,0.1);
}

.fk-location i {
    font-size: 18px;
}

.fk-location-text small {
    display: block;
    opacity: 0.8;
    font-size: 11px;
}

.fk-location-text span {
    font-weight: 600;
}

/* ========================================
   MEGA MENU STYLES
   ======================================== */
.fk-mega-menu {
    position: relative;
}

.fk-menu-trigger {
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.fk-menu-trigger:hover {
    background: rgba(255,255,255,0.1);
}

.fk-menu-trigger i {
    font-size: 18px;
}

.fk-mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 900px;
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.fk-mega-menu:hover .fk-mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fk-mega-content {
    display: flex;
    min-height: 400px;
}

.fk-mega-categories {
    width: 250px;
    background: #f7f7f7;
    border-right: 1px solid #eee;
    padding: 15px 0;
}

.fk-mega-cat-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.fk-mega-cat-item:hover {
    background: #fff;
    color: var(--primary);
    text-decoration: none;
}

.fk-mega-cat-item i {
    margin-right: 12px;
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.fk-mega-cat-item .arrow {
    margin-left: auto;
    opacity: 0.5;
}

.fk-mega-subcats {
    flex: 1;
    padding: 20px 25px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    align-content: start;
}

.fk-mega-subcat-group h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--soft-primary);
}

.fk-mega-subcat-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fk-mega-subcat-group ul li {
    margin-bottom: 8px;
}

.fk-mega-subcat-group ul li a {
    color: #666;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.fk-mega-subcat-group ul li a:hover {
    color: var(--primary);
}

/* Header Nav Links */
.fk-nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 20px;
}

.fk-nav-link {
    color: #fff;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
    border-radius: 2px;
}

.fk-nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
}

/* ========================================
   CATEGORY GRID STYLES
   ======================================== */
.fk-category-grid {
    padding: 25px 0;
    background: #fff;
}

.fk-category-grid-inner {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 15px;
}

.fk-category-item {
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s;
}

.fk-category-item:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: var(--primary);
}

.fk-category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s, transform 0.3s;
}

.fk-category-item:hover .fk-category-icon {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transform: scale(1.05);
}

.fk-category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fk-category-name {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    max-height: 32px;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    text-align: center;
    padding: 0 2px;
}

/* ========================================
   FULLY RESPONSIVE CATEGORY GRID
   All Device Breakpoints
   ======================================== */

/* XXL Devices (1400px and up) */
@media (min-width: 1400px) {
    .fk-category-grid-inner {
        grid-template-columns: repeat(10, 1fr);
        gap: 20px;
    }
    .fk-category-icon {
        width: 90px;
        height: 90px;
    }
    .fk-category-name {
        font-size: 13px;
    }
}

/* XL Devices (1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .fk-category-grid-inner {
        grid-template-columns: repeat(8, 1fr);
        gap: 18px;
    }
    .fk-category-icon {
        width: 85px;
        height: 85px;
    }
    .fk-category-name {
        font-size: 12px;
    }
}

/* Large Devices (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .fk-category-grid-inner {
        grid-template-columns: repeat(7, 1fr);
        gap: 15px;
    }
    .fk-category-icon {
        width: 75px;
        height: 75px;
    }
    .fk-category-name {
        font-size: 12px;
    }
}

/* Medium Devices (768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .fk-category-grid {
        padding: 20px 0;
    }
    .fk-category-grid-inner {
        grid-template-columns: repeat(6, 1fr);
        gap: 12px;
    }
    .fk-category-icon {
        width: 70px;
        height: 70px;
    }
    .fk-category-name {
        font-size: 11px;
    }
}

/* Small Devices (576px to 767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .fk-category-grid {
        padding: 15px 0;
    }
    .fk-category-grid-inner {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
    }
    .fk-category-icon {
        width: 60px;
        height: 60px;
    }
    .fk-category-name {
        font-size: 11px;
        max-height: 28px;
    }
}

/* Extra Small Devices (up to 575px) */
@media (max-width: 575.98px) {
    .fk-category-grid {
        padding: 12px 0;
    }
    .fk-category-grid-inner {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        padding: 0 5px;
    }
    .fk-category-item {
        padding: 5px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .fk-category-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 6px;
    }
    .fk-category-name {
        font-size: 10px;
        line-height: 1.3;
        max-height: 28px;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        word-wrap: break-word;
        word-break: break-word;
        width: 100%;
        text-align: center;
        padding: 0;
    }
}

/* Very Small Devices (up to 375px) */
@media (max-width: 375px) {
    .fk-category-grid-inner {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .fk-category-icon {
        width: 50px;
        height: 50px;
    }
    .fk-category-name {
        font-size: 9px;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .fk-category-grid {
        padding: 10px 0;
    }
    .fk-category-icon {
        width: 50px;
        height: 50px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .fk-category-item {
        min-height: 90px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .fk-category-item:active {
        transform: scale(0.95);
    }
    
    .fk-category-item:hover {
        transform: none;
    }
}

/* ========================================
   PRODUCT CARD - AMAZON STYLE
   ======================================== */
.fk-product-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.fk-product-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.fk-product-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #f8f8f8;
}

.fk-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.4s ease;
}

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

/* Product Badges */
.fk-product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.fk-badge {
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 2px;
}

.fk-badge-discount {
    background: var(--primary);
    color: #fff;
}

.fk-badge-new {
    background: #00c853;
    color: #fff;
}

.fk-badge-bestseller {
    background: var(--secondary-base);
    color: #333;
}

.fk-badge-featured {
    background: #2196f3;
    color: #fff;
}

/* Quick Actions */
.fk-product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 2;
}

.fk-product-card:hover .fk-product-actions {
    opacity: 1;
    transform: translateX(0);
}

.fk-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

.fk-action-btn:hover {
    background: var(--primary);
    color: #fff;
}

.fk-action-btn i {
    font-size: 16px;
}

/* Add to Cart Button */
.fk-add-to-cart {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transform: translateY(100%);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.fk-product-card:hover .fk-add-to-cart {
    transform: translateY(0);
}

.fk-add-to-cart:hover {
    background: var(--hov-primary);
}

/* Product Info */
.fk-product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fk-product-brand {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.fk-product-title {
    font-size: 14px;
    font-weight: 400;
    color: #333;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.fk-product-title a {
    color: inherit;
    text-decoration: none;
}

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

/* Rating */
.fk-product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.fk-stars {
    display: flex;
    gap: 2px;
}

.fk-stars i {
    font-size: 12px;
    color: #ffc107;
}

.fk-stars i.empty {
    color: #ddd;
}

.fk-rating-count {
    font-size: 12px;
    color: #007185;
}

/* Price */
.fk-product-price {
    margin-top: auto;
}

.fk-price-current {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.fk-price-original {
    font-size: 13px;
    color: #888;
    text-decoration: line-through;
    margin-left: 8px;
}

.fk-price-discount {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    margin-left: 8px;
}

/* Delivery Info */
.fk-delivery-info {
    margin-top: 8px;
    font-size: 12px;
    color: #555;
}

.fk-delivery-info i {
    color: var(--primary);
    margin-right: 5px;
}

.fk-free-delivery {
    color: #00a650;
    font-weight: 500;
}

/* ========================================
   DEAL CAROUSEL STYLES
   ======================================== */
.fk-deals-section {
    background: #fff;
    padding: 20px 0;
    margin-bottom: 15px;
}

.fk-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 15px;
}

.fk-section-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fk-section-title i {
    color: var(--secondary-base);
}

.fk-countdown {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--primary);
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
}

.fk-countdown-item {
    text-align: center;
    padding: 0 8px;
}

.fk-countdown-item span {
    display: block;
    font-size: 18px;
    font-weight: 700;
}

.fk-countdown-item small {
    font-size: 10px;
    opacity: 0.8;
}

.fk-view-all {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.fk-view-all:hover {
    color: var(--hov-primary);
    text-decoration: none;
}

/* Deal Card */
.fk-deal-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
}

.fk-deal-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.fk-deal-image {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

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

.fk-deal-title {
    font-size: 13px;
    color: #333;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.fk-deal-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.fk-deal-price .current {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

.fk-deal-price .original {
    font-size: 13px;
    color: #888;
    text-decoration: line-through;
}

.fk-deal-discount-bar {
    margin-top: 10px;
    background: #f0f0f0;
    border-radius: 10px;
    height: 6px;
    overflow: hidden;
}

.fk-deal-discount-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary-base));
    border-radius: 10px;
}

.fk-deal-stock {
    font-size: 11px;
    color: #666;
    margin-top: 5px;
}

/* ========================================
   HERO SLIDER SECTION
   ======================================== */
.fk-hero-section {
    padding: 15px 0;
    background: #f1f3f6;
}

.fk-hero-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 15px;
}

.fk-hero-slider {
    border-radius: 4px;
    overflow: hidden;
}

.fk-hero-banners {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fk-hero-banner {
    flex: 1;
    border-radius: 4px;
    overflow: hidden;
}

.fk-hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 991px) {
    .fk-hero-grid {
        grid-template-columns: 1fr;
    }
    .fk-hero-banners {
        flex-direction: row;
    }
}

@media (max-width: 575px) {
    .fk-hero-banners {
        display: none;
    }
}

/* ========================================
   RECENTLY VIEWED SECTION
   ======================================== */
.fk-recently-viewed {
    background: #fff;
    padding: 25px 0;
    margin-top: 20px;
    border-top: 1px solid #eee;
}

.fk-recently-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.fk-recently-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.fk-recently-clear {
    color: var(--primary);
    font-size: 13px;
    cursor: pointer;
}

.fk-recently-products {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
}

.fk-recently-item {
    flex: 0 0 150px;
    text-align: center;
}

.fk-recently-item img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
}

.fk-recently-item-title {
    font-size: 12px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fk-recently-item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 5px;
}

/* ========================================
   BANNER STRIP
   ======================================== */
.fk-banner-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 15px 0;
}

.fk-banner-item {
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s;
}

.fk-banner-item:hover {
    transform: scale(1.02);
}

.fk-banner-item img {
    width: 100%;
    height: auto;
}

@media (max-width: 767px) {
    .fk-banner-strip {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   PRODUCT SECTION STYLES
   ======================================== */
.fk-product-section {
    background: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.fk-product-section .fk-section-header {
    padding: 0;
    border-bottom: 2px solid var(--soft-primary);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 991px) {
    .fk-search-wrapper {
        order: 3;
        max-width: 100%;
        margin: 10px 0 0;
        width: 100%;
    }
    
    .fk-header-main .container {
        flex-wrap: wrap;
    }
    
    .fk-mega-dropdown {
        width: 100%;
        left: 0;
        right: 0;
    }
    
    .fk-mega-content {
        flex-direction: column;
    }
    
    .fk-mega-categories {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .fk-mega-subcats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .fk-header-icon .fk-icon-text {
        display: none;
    }
    
    .fk-location-text {
        display: none;
    }
    
    .fk-nav-links {
        display: none;
    }
    
    .fk-search-category {
        display: none;
    }
    
    .fk-section-title {
        font-size: 18px;
    }
    
    .fk-product-card {
        margin-bottom: 15px;
    }
}

@media (max-width: 575px) {
    .fk-search-form {
        height: 40px;
    }
    
    .fk-header-icons {
        gap: 15px;
    }
    
    .fk-mega-subcats {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.fk-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.fk-bg-gray {
    background: #f1f3f6;
}

.fk-shadow {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.fk-rounded {
    border-radius: 4px;
}

/* Carousel Arrow Styles */
.fk-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.fk-carousel-nav:hover {
    background: var(--primary);
    color: #fff;
}

.fk-carousel-prev {
    left: -20px;
}

.fk-carousel-next {
    right: -20px;
}

/* Section Divider */
.fk-divider {
    height: 10px;
    background: #f1f3f6;
}

/* ========================================
   ENTERPRISE PREMIUM COMPONENTS
   ======================================== */

/* Premium Section Headers */
.fk-premium-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-bottom: 3px solid var(--primary);
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.fk-premium-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: var(--primary);
}

.fk-premium-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fk-premium-header h2 i {
    color: var(--primary);
    font-size: 28px;
}

.fk-premium-header .fk-timer {
    display: flex;
    gap: 8px;
}

.fk-premium-header .fk-timer-block {
    background: var(--primary);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    min-width: 55px;
}

.fk-premium-header .fk-timer-block span {
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.fk-premium-header .fk-timer-block small {
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Premium Product Grid */
.fk-premium-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 25px;
    background: #fff;
}

@media (max-width: 1199px) {
    .fk-premium-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .fk-premium-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 15px;
    }
}

@media (max-width: 767px) {
    .fk-premium-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }
}

/* Premium Banner Carousel */
.fk-banner-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.fk-banner-carousel .carousel-item {
    transition: transform 0.6s ease-in-out;
}

.fk-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}

.fk-banner-overlay h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.fk-banner-overlay p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.fk-banner-btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s;
}

.fk-banner-btn:hover {
    background: var(--hov-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* Premium Offer Badges */
.fk-offer-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 5;
}

.fk-offer-badge span {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

/* Premium Quick View Modal */
.fk-quick-view {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.fk-quick-view.active {
    opacity: 1;
    visibility: visible;
}

.fk-quick-view-content {
    background: #fff;
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideDown 0.3s ease;
}

/* Premium Trust Badges */
.fk-trust-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 30px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.fk-trust-badge {
    text-align: center;
    transition: transform 0.3s;
}

.fk-trust-badge:hover {
    transform: translateY(-5px);
}

.fk-trust-badge i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.fk-trust-badge h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.fk-trust-badge p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

@media (max-width: 767px) {
    .fk-trust-badges {
        flex-wrap: wrap;
        gap: 20px;
    }
    .fk-trust-badge {
        flex: 0 0 45%;
    }
}

/* Premium Newsletter Section */
.fk-newsletter {
    background: linear-gradient(135deg, var(--primary) 0%, var(--hov-primary) 100%);
    padding: 50px 0;
    text-align: center;
    color: #fff;
}

.fk-newsletter h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.fk-newsletter p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.fk-newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.fk-newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 30px;
    font-size: 14px;
}

.fk-newsletter-form button {
    padding: 15px 30px;
    background: #fff;
    color: var(--primary);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.fk-newsletter-form button:hover {
    background: var(--secondary-base);
    transform: scale(1.05);
}

@media (max-width: 575px) {
    .fk-newsletter-form {
        flex-direction: column;
    }
}

/* Premium Floating Cart Button */
.fk-floating-cart {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s;
    animation: float 3s infinite ease-in-out;
}

.fk-floating-cart:hover {
    transform: scale(1.1);
    background: var(--hov-primary);
}

.fk-floating-cart i {
    font-size: 24px;
}

.fk-floating-cart .count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--secondary-base);
    color: #333;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Premium Scroll to Top */
.fk-scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.fk-scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.fk-scroll-top:hover {
    background: var(--hov-primary);
    transform: translateY(-5px);
}

/* Premium Category Cards */
.fk-category-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.fk-category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fk-category-card:hover img {
    transform: scale(1.15);
}

.fk-category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, rgba(0,0,0,0.8));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #fff;
}

.fk-category-card-overlay h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.fk-category-card-overlay p {
    font-size: 13px;
    opacity: 0.8;
    margin: 0;
}

/* Premium Deal Timer */
.fk-deal-timer {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.fk-deal-timer-item {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    min-width: 60px;
}

.fk-deal-timer-item .number {
    font-size: 24px;
    font-weight: 700;
    display: block;
    animation: countdownPulse 1s infinite;
}

.fk-deal-timer-item .label {
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.7;
}

/* Premium Testimonial Slider */
.fk-testimonial {
    background: #f8f9fa;
    padding: 60px 0;
}

.fk-testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    margin: 0 15px;
}

.fk-testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--primary);
}

.fk-testimonial-card p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.fk-testimonial-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.fk-testimonial-card .stars {
    color: #ffc107;
}

/* Premium Price Tag */
.fk-premium-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.fk-premium-price .current {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.fk-premium-price .original {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.fk-premium-price .discount {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

/* Premium Loading States */
.fk-loading {
    position: relative;
    overflow: hidden;
}

.fk-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: shimmer 1.5s infinite;
}

/* Premium Tab Navigation */
.fk-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 25px;
    gap: 5px;
    overflow-x: auto;
}

.fk-tab {
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: all 0.3s;
}

.fk-tab:hover {
    color: var(--primary);
}

.fk-tab.active {
    color: var(--primary);
}

.fk-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

/* Premium Notification Toast */
.fk-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
}

.fk-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.fk-toast.success {
    background: #4caf50;
}

.fk-toast.error {
    background: #f44336;
}

.fk-toast i {
    font-size: 20px;
}

/* Premium Breadcrumb */
.fk-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    font-size: 13px;
}

.fk-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.fk-breadcrumb a:hover {
    color: var(--primary);
}

.fk-breadcrumb span {
    color: #999;
}

/* Premium Filter Sidebar */
.fk-filter-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.fk-filter-section h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fk-filter-section h4 i {
    cursor: pointer;
    transition: transform 0.3s;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .fk-product-card,
    .fk-category-grid,
    .fk-recently-viewed {
        /* Auto dark mode styles can be added here */
    }
}

/* High DPI/Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .fk-product-image img,
    .fk-category-icon img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .fk-floating-cart,
    .fk-scroll-top,
    .fk-product-actions {
        display: none !important;
    }
}

/* ========================================
   COMPREHENSIVE HOMEPAGE RESPONSIVE STYLES
   All Device Breakpoints - Mobile First
   ======================================== */

/* Home Banner Area - Fully Responsive */
@media (max-width: 991.98px) {
    .home-banner-area {
        margin-bottom: 15px;
    }
    
    .home-banner-area .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .home-slider {
        width: 100% !important;
        margin-top: 0;
    }
}

@media (max-width: 767.98px) {
    .home-banner-area .container {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .home-slider img {
        border-radius: 6px;
    }
}

/* Flash Deal Section - Responsive */
@media (max-width: 1199.98px) {
    #flash_deal .row {
        margin-left: -8px;
        margin-right: -8px;
    }
    
    #flash_deal .row > * {
        padding-left: 8px;
        padding-right: 8px;
    }
}

@media (max-width: 991.98px) {
    #flash_deal .flash-deals-baner {
        margin-bottom: 15px;
    }
    
    #flash_deal .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    #flash_deal {
        margin-bottom: 12px;
        margin-top: 12px;
    }
    
    #flash_deal .container {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    #flash_deal h3 {
        font-size: 14px !important;
        margin-bottom: 10px;
    }
    
    #flash_deal .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    #flash_deal .text-dark {
        margin-top: 8px;
        font-size: 10px;
    }
    
    #flash_deal .text-dark a {
        font-size: 9px !important;
        margin-right: 8px;
    }
    
    #flash_deal .border-left {
        border-left: none !important;
        padding-left: 0 !important;
        margin-top: 5px;
    }
}

/* Featured Categories - Responsive */
@media (max-width: 991.98px) {
    .mobile-category-slider {
        border: none !important;
    }
    
    .category-slide {
        border: 1px solid #e0e0e0 !important;
        margin-bottom: 10px;
    }
}

@media (max-width: 767.98px) {
    .category-slide {
        padding: 10px !important;
    }
    
    .category-slide img {
        width: 100px !important;
        height: auto;
    }
    
    .category-slide h6 {
        font-size: 12px !important;
    }
    
    .category-children-container p {
        font-size: 11px !important;
        margin-top: 4px !important;
    }
}

@media (max-width: 575.98px) {
    .category-slide {
        padding: 8px !important;
    }
    
    .category-slide .d-sm-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .category-slide img {
        width: 80px !important;
        margin: 0 auto 8px;
    }
    
    .category-slide .px-2 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Banner Sections - Responsive */
@media (max-width: 991.98px) {
    .home-banner-1 .carousel-box {
        padding: 0 8px;
    }
}

@media (max-width: 767.98px) {
    .home-banner-1,
    .aiz-carousel[data-sm-items] {
        padding: 0 5px;
    }
    
    .home-banner-1 .carousel-box {
        padding: 0 5px;
    }
    
    .home-banner-1 img {
        border-radius: 6px;
    }
}

@media (max-width: 575.98px) {
    .home-banner-1 {
        padding: 0;
    }
    
    .home-banner-1 .carousel-box {
        padding: 0 3px;
    }
}

/* Coupon Section - Responsive */
@media (max-width: 1199.98px) {
    .row.py-3.py-md-5 .col-xl-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .row.py-3.py-md-5 .col-xl-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 15px;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .row.py-3.py-md-5 {
        padding: 15px 10px !important;
    }
    
    .row.py-3.py-md-5 .col-2 {
        flex: 0 0 60px;
        max-width: 60px;
    }
    
    .row.py-3.py-md-5 .col-10 {
        flex: 0 0 calc(100% - 60px);
        max-width: calc(100% - 60px);
    }
    
    .row.py-3.py-md-5 svg {
        width: 50px !important;
        height: 45px !important;
    }
    
    .row.py-3.py-md-5 h5 {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }
    
    .row.py-3.py-md-5 .fs-15 {
        font-size: 12px !important;
    }
}

@media (max-width: 575.98px) {
    .row.py-3.py-md-5 {
        padding: 12px 8px !important;
    }
    
    .row.py-3.py-md-5 .col-2 {
        flex: 0 0 50px;
        max-width: 50px;
    }
    
    .row.py-3.py-md-5 .col-10 {
        flex: 0 0 calc(100% - 50px);
        max-width: calc(100% - 50px);
    }
    
    .row.py-3.py-md-5 svg {
        width: 40px !important;
        height: 35px !important;
    }
    
    .row.py-3.py-md-5 h5 {
        font-size: 14px !important;
        margin-bottom: 6px !important;
    }
    
    .row.py-3.py-md-5 .fs-15 {
        font-size: 11px !important;
    }
    
    .row.py-3.py-md-5 .btn {
        font-size: 11px !important;
        padding: 6px 12px !important;
    }
}

/* Top Sellers - Responsive */
@media (max-width: 991.98px) {
    .size-100px.size-md-120px {
        width: 90px !important;
        height: 90px !important;
    }
}

@media (max-width: 767.98px) {
    .size-100px.size-md-120px {
        width: 80px !important;
        height: 80px !important;
    }
    
    .fs-14 {
        font-size: 12px !important;
    }
    
    .h-40px {
        height: 32px !important;
    }
}

@media (max-width: 575.98px) {
    .size-100px.size-md-120px {
        width: 70px !important;
        height: 70px !important;
    }
    
    .absolute-top-right {
        top: -5px;
        right: -5px;
    }
    
    .absolute-top-right svg {
        width: 18px !important;
        height: 18px !important;
    }
}

/* Top Brands - Responsive */
@media (max-width: 767.98px) {
    .row-cols-3 .col {
        padding: 10px 5px !important;
    }
    
    .row-cols-3 img {
        height: 70px !important;
    }
    
    .row-cols-3 p {
        font-size: 11px !important;
        margin-top: 6px !important;
    }
}

@media (max-width: 575.98px) {
    .row-cols-3 .col {
        padding: 8px 4px !important;
    }
    
    .row-cols-3 img {
        height: 60px !important;
        padding: 8px !important;
    }
    
    .row-cols-3 p {
        font-size: 10px !important;
        margin-top: 4px !important;
    }
}

/* Classified Products - Responsive */
@media (max-width: 767.98px) {
    .classified-slider {
        padding: 10px !important;
    }
    
    .classified-slider .w-100px {
        width: 90px !important;
        flex-shrink: 0;
    }
    
    .classified-slider h3 {
        font-size: 12px !important;
    }
}

@media (max-width: 575.98px) {
    .classified-slider {
        padding: 8px !important;
    }
    
    .classified-slider .w-100px {
        width: 80px !important;
    }
    
    .classified-slider h3 {
        font-size: 11px !important;
        margin-bottom: 4px !important;
    }
    
    .classified-slider .fs-12 {
        font-size: 10px !important;
    }
    
    .classified-slider .fs-13 {
        font-size: 11px !important;
    }
}

/* Section Headers - Responsive */
@media (max-width: 767.98px) {
    section .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    section h3 {
        margin-bottom: 10px !important;
    }
    
    section .d-flex a {
        margin-top: 5px;
    }
}

/* Container Responsive Padding */
@media (max-width: 575.98px) {
    .container {
        padding-left: 8px;
        padding-right: 8px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Carousel Arrows - Mobile Optimization */
@media (max-width: 767.98px) {
    .aiz-carousel .slick-arrow {
        width: 30px;
        height: 30px;
        z-index: 10;
    }
    
    .aiz-carousel .slick-prev {
        left: 5px;
    }
    
    .aiz-carousel .slick-next {
        right: 5px;
    }
}

/* Text Responsiveness */
@media (max-width: 575.98px) {
    .fs-20 { font-size: 16px !important; }
    .fs-18 { font-size: 14px !important; }
    .fs-16 { font-size: 13px !important; }
    .fs-15 { font-size: 12px !important; }
    .fs-14 { font-size: 11px !important; }
    .fs-13 { font-size: 10px !important; }
    .fs-12 { font-size: 9px !important; }
    .fs-11 { font-size: 8px !important; }
    .fs-10 { font-size: 8px !important; }
}

/* Button Responsiveness */
@media (max-width: 767.98px) {
    .btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .btn-sm {
        padding: 8px 14px;
        font-size: 12px;
    }
}

@media (max-width: 575.98px) {
    .btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .btn-sm {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* Grid System Fixes */
@media (max-width: 575.98px) {
    .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .row > * {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .gutters-5 {
        margin-left: -2.5px;
        margin-right: -2.5px;
    }
    
    .gutters-5 > * {
        padding-left: 2.5px;
        padding-right: 2.5px;
    }
    
    .gutters-16 {
        margin-left: -8px;
        margin-right: -8px;
    }
    
    .gutters-16 > * {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* Spacing Adjustments for Mobile */
@media (max-width: 767.98px) {
    .mb-3 { margin-bottom: 15px !important; }
    .mb-2 { margin-bottom: 12px !important; }
    .mb-md-3 { margin-bottom: 15px !important; }
    .mt-3 { margin-top: 15px !important; }
    .mt-2 { margin-top: 12px !important; }
    .mt-md-3 { margin-top: 15px !important; }
    .py-3 { padding-top: 15px !important; padding-bottom: 15px !important; }
    .py-md-5 { padding-top: 20px !important; padding-bottom: 20px !important; }
    .px-3 { padding-left: 12px !important; padding-right: 12px !important; }
}

@media (max-width: 575.98px) {
    .mb-3 { margin-bottom: 12px !important; }
    .mb-2 { margin-bottom: 10px !important; }
    .mb-md-3 { margin-bottom: 12px !important; }
    .mt-3 { margin-top: 12px !important; }
    .mt-2 { margin-top: 10px !important; }
    .mt-md-3 { margin-top: 12px !important; }
    .py-3 { padding-top: 12px !important; padding-bottom: 12px !important; }
    .py-md-5 { padding-top: 15px !important; padding-bottom: 15px !important; }
    .px-3 { padding-left: 8px !important; padding-right: 8px !important; }
}

/* Overflow and Scrolling */
@media (max-width: 991.98px) {
    .overflow-hidden {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .overflow-hidden::-webkit-scrollbar {
        height: 4px;
    }
    
    .overflow-hidden::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 2px;
    }
}

/* Image Optimization */
@media (max-width: 767.98px) {
    img {
        max-width: 100%;
        height: auto;
    }
    
    .lazyload {
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .lazyloaded {
        opacity: 1;
    }
}

/* Accessibility Improvements */
@media (max-width: 767.98px) {
    a, button {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Performance Optimizations */
@media (max-width: 767.98px) {
    .has-transition {
        will-change: transform;
    }
    
    .hov-scale-img:hover {
        transform: scale(1.02);
    }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 767.98px) {
        .home-slider,
        .aiz-carousel {
            -webkit-overflow-scrolling: touch;
        }
    }
}
