/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    padding: 20px 0;
    background-color: var(--onos-body-bg);
}

.hero-carousel {
    border-radius: var(--onos-radius-lg);
    overflow: hidden;
    box-shadow: var(--onos-shadow);
}

.hero-slide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 60px;
    min-height: 360px;
    position: relative;
    overflow: hidden;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    max-width: 60%;
}

.hero-tag {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.hero-slide-content h2 {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-slide-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    margin-bottom: 20px;
}

.btn-hero {
    font-weight: 600;
    padding: 10px 24px;
    border-radius: var(--onos-radius);
    font-size: 0.9rem;
    transition: var(--onos-transition);
}

.btn-hero:hover {
    transform: translateX(4px);
}

.hero-slide-img {
    position: absolute;
    right: 40px;
    bottom: 20px;
    color: white;
    z-index: 1;
}

/* Carousel Controls */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
    width: 44px;
    height: 44px;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    opacity: 0;
    transition: var(--onos-transition);
}

.hero-carousel:hover .carousel-control-prev,
.hero-carousel:hover .carousel-control-next {
    opacity: 1;
}

.hero-carousel .carousel-control-prev {
    left: 16px;
}

.hero-carousel .carousel-control-next {
    right: 16px;
}

.hero-carousel .carousel-indicators {
    margin-bottom: 16px;
}

.hero-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 4px;
    border: none;
    opacity: 0.5;
}

.hero-carousel .carousel-indicators button.active {
    opacity: 1;
    width: 28px;
    border-radius: 5px;
}

/* Side Banners */
.side-banner {
    flex: 1;
    border-radius: var(--onos-radius-lg);
    padding: 24px 20px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--onos-shadow);
    transition: var(--onos-transition);
    overflow: hidden;
    position: relative;
}

.side-banner:hover {
    transform: translateY(-2px);
    box-shadow: var(--onos-shadow-hover);
}

.side-banner-tag {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    width: fit-content;
}

.side-banner h5 {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.side-banner-link {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.side-banner-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   Categories Section
   ============================================ */
.categories-section {
    padding: 40px 0 20px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 16px;
    background-color: var(--onos-card-bg);
    border: 1px solid var(--onos-border);
    border-radius: var(--onos-radius-lg);
    transition: var(--onos-transition);
    color: var(--onos-text-dark);
    height: 100%;
}

.category-card:hover {
    border-color: var(--onos-primary);
    box-shadow: var(--onos-shadow-hover);
    transform: translateY(-4px);
    color: var(--onos-text-dark);
}

.category-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--onos-primary);
    border-radius: 50%;
    margin-bottom: 12px;
    font-size: 1.6rem;
    transition: var(--onos-transition);
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-card h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 4px;
}

.category-count {
    font-size: 0.8rem;
    color: var(--onos-text-muted);
}

/* ============================================
   Products Section
   ============================================ */
.products-section {
    padding: 30px 0;
}

/* ============================================
   Promotional Banner
   ============================================ */
.promo-section {
    padding: 20px 0 30px;
}

.promo-banner {
    background: linear-gradient(135deg, #0d6efd 0%, #0a3d91 100%);
    border-radius: var(--onos-radius-lg);
    padding: 50px;
    color: white;
    position: relative;
    overflow: hidden;
}

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

.promo-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.promo-tag {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.promo-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.promo-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    max-width: 500px;
    position: relative;
    z-index: 1;
}

.btn-promo {
    font-weight: 600;
    padding: 10px 28px;
    border-radius: var(--onos-radius);
    position: relative;
    z-index: 1;
    transition: var(--onos-transition);
}

.btn-promo:hover {
    transform: translateX(4px);
}

.promo-icon {
    font-size: 10rem;
    opacity: 0.1;
}

/* ============================================
   Responsive
   ============================================ */

/* Small desktops / tablets landscape */
@media (max-width: 992px) {
    .hero-slide {
        padding: 30px;
        min-height: 280px;
    }

    .hero-slide-content {
        max-width: 80%;
    }

    .hero-slide-content h2 {
        font-size: 1.5rem;
    }

    .promo-banner {
        padding: 30px;
    }

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

    .categories-section {
        padding: 28px 0 16px;
    }

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

/* Tablets portrait */
@media (max-width: 768px) {
    .hero-section {
        padding: 12px 0;
    }

    .hero-slide {
        padding: 24px;
        min-height: 240px;
    }

    .hero-slide-content {
        max-width: 90%;
    }

    .hero-slide-content h2 {
        font-size: 1.35rem;
    }

    .hero-slide-content p {
        font-size: 0.9rem;
        margin-bottom: 14px;
    }

    .hero-tag {
        font-size: 0.7rem;
        padding: 3px 10px;
        margin-bottom: 10px;
    }

    .btn-hero {
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    .hero-carousel .carousel-control-prev,
    .hero-carousel .carousel-control-next {
        width: 36px;
        height: 36px;
        opacity: 1;
    }

    .hero-carousel .carousel-control-prev {
        left: 10px;
    }

    .hero-carousel .carousel-control-next {
        right: 10px;
    }

    .categories-section {
        padding: 24px 0 12px;
    }

    .category-card {
        padding: 20px 12px;
    }

    .category-icon {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .category-card h5 {
        font-size: 0.88rem;
    }

    .category-count {
        font-size: 0.72rem;
    }

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

    .promo-section {
        padding: 12px 0 20px;
    }

    .promo-banner {
        padding: 28px 24px;
    }

    .promo-tag {
        font-size: 0.72rem;
        margin-bottom: 8px;
    }

    .promo-title {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }

    .promo-text {
        font-size: 0.88rem;
        margin-bottom: 14px;
    }

    .btn-promo {
        padding: 8px 20px;
        font-size: 0.88rem;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .hero-section {
        padding: 8px 0;
    }

    .hero-slide {
        padding: 20px 16px;
        min-height: 200px;
    }

    .hero-slide-content {
        max-width: 100%;
    }

    .hero-slide-content h2 {
        font-size: 1.15rem;
        margin-bottom: 6px;
    }

    .hero-slide-content p {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }

    .hero-tag {
        font-size: 0.65rem;
        padding: 2px 8px;
        margin-bottom: 8px;
    }

    .btn-hero {
        padding: 7px 14px;
        font-size: 0.78rem;
    }

    .hero-slide-img {
        display: none;
    }

    .hero-carousel .carousel-indicators {
        margin-bottom: 10px;
    }

    .hero-carousel .carousel-indicators button {
        width: 8px;
        height: 8px;
    }

    .hero-carousel .carousel-indicators button.active {
        width: 22px;
    }

    .categories-section {
        padding: 20px 0 10px;
    }

    .category-card {
        padding: 16px 8px;
        border-radius: var(--onos-radius);
    }

    .category-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        margin-bottom: 6px;
    }

    .category-card h5 {
        font-size: 0.78rem;
        margin-bottom: 2px;
    }

    .category-count {
        font-size: 0.65rem;
    }

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

    .promo-section {
        padding: 8px 0 16px;
    }

    .promo-banner {
        padding: 20px 16px;
        border-radius: var(--onos-radius);
    }

    .promo-tag {
        font-size: 0.68rem;
        padding: 3px 10px;
    }

    .promo-title {
        font-size: 1.15rem;
    }

    .promo-text {
        font-size: 0.82rem;
    }

    .btn-promo {
        padding: 7px 16px;
        font-size: 0.82rem;
    }

    .promo-icon {
        font-size: 6rem;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .hero-slide {
        padding: 16px 12px;
        min-height: 170px;
    }

    .hero-slide-content h2 {
        font-size: 1rem;
    }

    .category-card {
        padding: 12px 6px;
    }

    .category-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .category-card h5 {
        font-size: 0.72rem;
    }

    .promo-banner {
        padding: 16px 12px;
    }

    .promo-title {
        font-size: 1rem;
    }
}
