/* Hero Banner Responsive Container */
.hero-banner-section {
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
}

/* Carousel Container */
.hero-banner-carousel {
    display: flex;
    width: 100%;
    height: auto;
    aspect-ratio: 1200 / 350;
    position: relative;
    overflow: hidden;
}

/* Individual Slides */
.hero-banner-slide {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.hero-banner-slide.active {
    opacity: 1;
}

/* Overlay for better text contrast */
.hero-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

/* Banner Content */
.hero-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: slideInDown 0.6s ease-out;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: slideInUp 0.6s ease-out 0.2s both;
}

/* Hero Banner Button */
.hero-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: none;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    animation: slideInUp 0.6s ease-out 0.4s both;
}

.hero-banner-btn:hover {
    background: linear-gradient(135deg, #ee5a6f 0%, #e34455 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.hero-banner-btn i {
    transition: transform 0.3s ease;
}

.hero-banner-btn:hover i {
    transform: translateX(3px);
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border: none;
    background: rgba(255, 255, 255, 0.7);
    color: #333;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */

.products-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    margin: 0;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-radius: 2px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.product-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Product Image */
.product-image-wrapper {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-link {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #f0f0f0;
    transition: transform 0.3s ease;
}

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

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

.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.3;
    height: 2.6em; /* 2 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.product-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #ff6b6b;
}

.product-title:hover {
    -webkit-line-clamp: unset;
    overflow: visible;
    height: auto;
}

/* Product Price */
.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.price-new {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ff6b6b;
}

.price-old {
    font-size: 0.85rem;
    color: #999;
    text-decoration: line-through;
}

/* Product Actions */
.product-actions {
    margin-top: auto;
}

.add-to-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, #ee5a6f 0%, #e34455 100%);
    transform: translateY(-2px);
}

.add-to-cart-btn i {
    font-size: 1rem;
}

/* ============================================
   PREMIUM PRODUCTS SECTION
   ============================================ */

.premium-products-section {
    padding: 60px 0;
    background-color: white;
}

.premium-section-banner {
    width: 100%;
    height: 200px;
    margin-bottom: 40px;
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e9e9e9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.banner-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f0f0f0;
    border-top: 4px solid #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.banner-loader p {
    color: #999;
    font-size: 0.95rem;
    margin: 0;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.banner-image.loaded {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    .hero-banner-carousel {
        aspect-ratio: 1200 / 350;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .premium-section-banner {
        height: 180px;
    }
}

/* Medium Tablets (769px - 800px) */
@media (max-width: 800px) {
    /* Hero Banner becomes full link */
    .hero-banner-section {
        cursor: pointer;
    }

    .hero-banner-carousel {
        aspect-ratio: 1200 / 350;
    }

    .hero-banner-content {
        display: none;
    }

    .carousel-btn {
        display: none;
    }

    .carousel-indicators {
        display: none;
    }

    .hero-banner-slide {
        cursor: pointer;
    }

    .hero-banner-slide.active {
        cursor: pointer;
    }

    /* Products Grid - 2 columns */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .product-image-wrapper {
        height: 200px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-title::after {
        width: 60px;
    }

    .premium-section-banner {
        height: 160px;
        margin-bottom: 30px;
    }
}

/* Small Tablets & Mobile (480px - 767px) */
@media (max-width: 767px) {
    .hero-banner-carousel {
        aspect-ratio: 1200 / 350;
    }

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

    .product-image-wrapper {
        height: 180px;
    }

    .product-info {
        padding: 12px;
    }

    .product-title {
        font-size: 0.85rem;
        height: 2.4em;
    }

    .price-new {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .products-section {
        padding: 40px 0;
    }

    .premium-section-banner {
        height: 140px;
        margin-bottom: 25px;
    }

    .loader-spinner {
        width: 40px;
        height: 40px;
    }
}

/* Mobile (below 480px) */
@media (max-width: 480px) {
    .hero-banner-carousel {
        aspect-ratio: 1200 / 350;
    }

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

    .product-image-wrapper {
        height: 150px;
    }

    .product-info {
        padding: 10px;
    }

    .product-title {
        font-size: 0.8rem;
        height: 2.4em;
    }

    .product-price {
        font-size: 0.85rem;
    }

    .price-new {
        font-size: 0.95rem;
    }

    .add-to-cart-btn {
        padding: 8px;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .section-header {
        margin-bottom: 25px;
    }

    .products-section {
        padding: 30px 0;
    }

    .premium-products-section {
        padding: 30px 0;
    }

    .container {
        padding: 0 10px;
    }

    .premium-section-banner {
        height: 120px;
        margin-bottom: 20px;
    }

    .loader-spinner {
        width: 35px;
        height: 35px;
    }

    .banner-loader p {
        font-size: 0.85rem;
    }
}
