/* ============================================================
   FSTFASHION REDESIGN - Modern Minimalist Theme
   Color: #A70B0B (Merah Tua) & White
   ============================================================ */

/* --- Global Redesign --- */
.main-content {
    gap: 2rem !important;
    padding-top: 1.5rem !important;
    padding-bottom: 2rem !important;
}

/* --- Section Headers --- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #A70B0B;
}

.section-header .section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #222;
    margin: 0;
    letter-spacing: -0.3px;
}

.section-header .section-link {
    font-size: 0.8125rem;
    color: #A70B0B;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.section-header .section-link:hover {
    color: #7d0808;
    gap: 6px;
}

/* --- Card Redesign --- */
.card-modern {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.card-modern:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: #e8e8e8;
}

/* --- Product Card Redesign --- */
.product-card-modern {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.product-card-modern:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
    border-color: #e8e8e8;
}

.product-card-modern .product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: #fafafa;
}

.product-card-modern .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-card-modern .product-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

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

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

.product-card-modern .product-actions .action-btn:hover {
    background: #A70B0B;
    color: #fff;
}

.product-card-modern .product-info {
    padding: 12px 14px 14px;
}

.product-card-modern .product-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    min-height: 2.1em;
}

.product-card-modern .product-price {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.product-card-modern .product-price .current-price {
    font-size: 1rem;
    font-weight: 700;
    color: #A70B0B;
}

.product-card-modern .product-price .old-price {
    font-size: 0.75rem;
    color: #999;
    text-decoration: line-through;
}

.product-card-modern .product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.product-card-modern .product-rating .stars {
    color: #f59e0b;
    font-size: 0.75rem;
}

.product-card-modern .product-rating .rating-count {
    font-size: 0.6875rem;
    color: #999;
}

.product-card-modern .product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #A70B0B;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* --- Main Banner Redesign --- */
.banner-modern .banner-card {
    border-radius: 16px;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.banner-modern .banner-slider {
    border-radius: 12px;
    overflow: hidden;
}

.banner-modern .banner-slider .swiper-slide img {
    width: 100%;
    aspect-ratio: 2.2/1;
    object-fit: cover;
}

.banner-modern .banner-thumbnails {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.banner-modern .banner-thumbnails img {
    border-radius: 8px;
    width: 100%;
    aspect-ratio: 2/1;
    object-fit: cover;
}

/* --- Swiper Navigation Smaller Inside --- */
.swiper-button-next,
.swiper-button-prev {
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
    transition: all 0.2s ease !important;
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #333 !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18) !important;
    transform: scale(1.05);
}

.swiper-button-next {
    right: 12px !important;
}

.swiper-button-prev {
    left: 12px !important;
}

/* Brand section - less distracting */
.products_aside_brands {
    max-height: 200px;
    overflow-y: auto;
}

.products_aside_brands::-webkit-scrollbar {
    width: 4px;
}

.products_aside_brands::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

/* Make brand images in header smaller */
header .sub_menu li a {
    font-size: 0.8125rem !important;
    padding: 4px 12px !important;
}

/* Brand images in product detail sidebar */
.products_aside_brands a {
    font-size: 0.8125rem;
}

.products_aside_brands .badge {
    font-size: 0.625rem;
}

/* --- Category Grid Redesign --- */
.category-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.category-item-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.category-item-modern:hover {
    border-color: #A70B0B;
    box-shadow: 0 4px 16px rgba(167, 11, 11, 0.1);
    transform: translateY(-2px);
}

.category-item-modern .category-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.category-item-modern:hover .category-icon {
    background: #A70B0B;
    color: #fff;
}

.category-item-modern .category-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #444;
    text-align: center;
    line-height: 1.2;
}

/* --- Flash Deal Redesign --- */
.flash-deal-modern {
    background: linear-gradient(135deg, #A70B0B 0%, #7d0808 100%);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.flash-deal-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.flash-deal-modern .flash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

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

.flash-deal-modern .flash-title h3 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.flash-deal-modern .flash-timer .timer-box {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 6px 10px;
    text-align: center;
    min-width: 44px;
}

.flash-deal-modern .flash-timer .timer-box .num {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    display: block;
    line-height: 1;
}

.flash-deal-modern .flash-timer .timer-box .label {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    font-weight: 600;
}

.flash-deal-modern .flash-timer .timer-sep {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 700;
    font-size: 1.125rem;
}

/* --- Featured Deals Redesign --- */
.featured-deal-modern {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.featured-deal-modern .featured-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.featured-deal-modern .featured-header h3 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.featured-deal-modern .featured-header a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8125rem;
    text-decoration: none;
    font-weight: 600;
}

/* --- Recommended Products Tabs --- */
.tabs-modern {
    display: flex;
    gap: 4px;
    background: #f5f5f5;
    border-radius: 10px;
    padding: 4px;
}

.tabs-modern .tab-btn {
    padding: 8px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tabs-modern .tab-btn.active {
    background: #fff;
    color: #A70B0B;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tabs-modern .tab-btn:hover:not(.active) {
    color: #333;
}

/* --- Deal of the Day Redesign --- */
.deal-day-modern {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    min-height: 300px;
}

.deal-day-modern .deal-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #fafafa;
}

.deal-day-modern .deal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deal-day-modern .deal-image .deal-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #A70B0B;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deal-day-modern .deal-info {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.deal-day-modern .deal-info .deal-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #A70B0B;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.deal-day-modern .deal-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 8px;
}

.deal-day-modern .deal-info .deal-desc {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
}

.deal-day-modern .deal-info .deal-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: #A70B0B;
    margin-bottom: 16px;
}

.deal-day-modern .deal-info .deal-price .old {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 8px;
}

.deal-day-modern .deal-info .deal-timer {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.deal-day-modern .deal-info .deal-timer .tm-box {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 8px 14px;
    text-align: center;
    min-width: 50px;
}

.deal-day-modern .deal-info .deal-timer .tm-box .num {
    font-size: 1.25rem;
    font-weight: 800;
    color: #222;
    display: block;
    line-height: 1;
}

.deal-day-modern .deal-info .deal-timer .tm-box .lbl {
    font-size: 0.625rem;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
}

.deal-day-modern .deal-info .shop-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #A70B0B;
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    align-self: flex-start;
    border: none;
    cursor: pointer;
}

.deal-day-modern .deal-info .shop-now-btn:hover {
    background: #7d0808;
    gap: 12px;
}

/* --- CTA Banner Redesign --- */
.cta-modern {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    min-height: 250px;
    display: flex;
    align-items: center;
}

.cta-modern .cta-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-modern .cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(167, 11, 11, 0.9) 0%, rgba(167, 11, 11, 0.4) 100%);
}

.cta-modern .cta-content {
    position: relative;
    z-index: 1;
    padding: 3rem;
    max-width: 500px;
}

.cta-modern .cta-content .cta-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.cta-modern .cta-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.2;
}

.cta-modern .cta-content p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    line-height: 1.5;
}

.cta-modern .cta-content .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #A70B0B;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.cta-modern .cta-content .cta-btn:hover {
    background: #f5f5f5;
    gap: 12px;
}

/* --- Top Rated / Product Slider Redesign --- */
.slider-modern .swiper {
    padding: 4px 2px;
}

.slider-modern .swiper-slide {
    height: auto;
}

/* --- Home Categories Redesign --- */
.home-cat-modern .cat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.home-cat-modern .cat-header .cat-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(167, 11, 11, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A70B0B;
    font-size: 1.125rem;
}

.home-cat-modern .cat-header h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #222;
    margin: 0;
}

/* --- Section Spacing --- */
.section-spacing {
    margin-bottom: 1.5rem;
}

/* Tighter container padding */
.container {
    padding-left: 5% !important;
    padding-right: 5% !important;
}

/* Tighter product grid spacing */
.row.g-3 {
    --bs-gutter-x: 0.75rem !important;
    --bs-gutter-y: 0.75rem !important;
}

/* Reduce card padding */
.product-card-modern .product-info {
    padding: 10px 10px 12px !important;
}

.product-card-modern .product-name {
    font-size: 0.75rem !important;
    margin-bottom: 4px !important;
}

.product-card-modern .product-price .current-price {
    font-size: 0.875rem !important;
}

/* Tighter section header */
.section-header {
    margin-bottom: 0.75rem !important;
    padding-bottom: 0.5rem !important;
}

.section-header .section-title {
    font-size: 1.0625rem !important;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .section-header .section-title {
        font-size: 1.0625rem;
    }

    .deal-day-modern {
        flex-direction: column;
    }

    .deal-day-modern .deal-info {
        padding: 1.25rem;
    }

    .deal-day-modern .deal-info h3 {
        font-size: 1.25rem;
    }

    .cta-modern .cta-content {
        padding: 1.5rem;
    }

    .cta-modern .cta-content h2 {
        font-size: 1.5rem;
    }

    .flash-deal-modern {
        padding: 1rem;
    }

    .flash-deal-modern .flash-title h3 {
        font-size: 1rem;
    }

    .category-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }

    .category-item-modern {
        padding: 12px 6px;
    }

    .category-item-modern .category-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .product-card-modern .product-actions {
        opacity: 1;
        transform: none;
    }

    .product-card-modern .product-actions .action-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .featured-deal-modern {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .main-content {
        gap: 1.25rem !important;
    }

    .section-spacing {
        margin-bottom: 1.25rem;
    }

    .tabs-modern {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tabs-modern .tab-btn {
        padding: 6px 14px;
        font-size: 0.75rem;
        white-space: nowrap;
    }
}

/* --- Recommended Products Swiper --- */
.recommended-swiper {
    padding: 4px 0 8px;
    overflow: hidden;
}
.recommended-swiper .swiper-slide {
    height: auto;
}
.recommended-swiper .swiper-slide > * {
    height: 100%;
}
.recommended-next,
.recommended-prev {
    width: 32px !important;
    height: 32px !important;
    background: #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12) !important;
    color: #333 !important;
}
.recommended-next::after,
.recommended-prev::after {
    font-size: 14px !important;
    font-weight: 700;
}
.recommended-next {
    right: -6px !important;
}
.recommended-prev {
    left: -6px !important;
}
.recommended-swiper:not(.swiper-initialized) {
    display: flex;
    gap: 12px;
    overflow: hidden;
}
.recommended-swiper:not(.swiper-initialized) .swiper-slide {
    flex: 0 0 calc(100% / 2);
    max-width: calc(100% / 2);
}
@media (min-width: 576px) {
    .recommended-swiper:not(.swiper-initialized) .swiper-slide {
        flex: 0 0 calc(100% / 3);
        max-width: calc(100% / 3);
    }
}
@media (min-width: 768px) {
    .recommended-swiper:not(.swiper-initialized) .swiper-slide {
        flex: 0 0 calc(100% / 4);
        max-width: calc(100% / 4);
    }
}
@media (min-width: 992px) {
    .recommended-swiper:not(.swiper-initialized) .swiper-slide {
        flex: 0 0 calc(100% / 5);
        max-width: calc(100% / 5);
    }
}
