﻿.banner {
    height: 62vh;
    min-height: 420px;
    background:
        linear-gradient(90deg, rgba(8, 8, 10, 0.86) 0%, rgba(8, 8, 10, 0.56) 45%, rgba(8, 8, 10, 0.42) 100%),
        url('/static/index/images/home-banner-retro.jpg') center center / cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 2rem;
    gap: 1rem;
    border-bottom: 2px solid #ff8c00;
}

.banner h1 {
    font-size: 3rem;
    color: #ff8c00;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 600px;
}

.banner-search {
    width: min(640px, 100%);
    display: flex;
    align-items: center;
    align-self: center;
    gap: 0.75rem;
    padding: 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.banner-search-input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 1.1rem;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #111827;
    font-size: 1rem;
    outline: none;
}

.banner-search-input::placeholder {
    color: #6b7280;
}

.banner-search-btn {
    flex-shrink: 0;
    height: 52px;
    padding: 0 1.4rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8c00 0%, #ff5a1f 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.banner-search-btn:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(255, 102, 0, 0.3);
}

.container {
    max-width: 1480px;
    padding: 0 1.5rem;
}

.home-section {
    padding-bottom: 0.5rem;
}

.section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin: 2rem 0 1.3rem;
    padding-bottom: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-heading-copy {
    position: relative;
    max-width: 760px;
    padding-left: 1.1rem;
}

.section-heading-copy::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.3rem;
    bottom: 0.2rem;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffb347 0%, #ff5a1f 100%);
    box-shadow: 0 0 18px rgba(255, 140, 0, 0.28);
}

.section-kicker {
    display: inline-block;
    margin-bottom: 0.35rem;
    color: #ffb45c;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.6rem, 2vw, 2.1rem);
    line-height: 1.12;
}

.section-desc {
    margin: 0.45rem 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.95rem;
    line-height: 1.7;
}

.section-more-link {
    color: #ffb45c;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.2s ease, transform 0.2s ease;
}

.section-more-link:hover {
    color: #ffffff;
    transform: translateX(2px);
}

.store-grid,
.product-grid,
.ranking-grid,
.deal-grid {
    display: grid;
    justify-content: flex-start;
    gap: 1rem;
    width: 100%;
    padding: 0 0 2rem;
    margin: 0;
}

.store-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.product-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.ranking-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.deal-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.store-card,
.product-card,
.ranking-card,
.deal-card {
    background-color: #1a1a1a;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    justify-self: start;
}

.store-card:hover,
.product-card:hover,
.ranking-card:hover,
.deal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.store-card {
    max-width: 272px;
    text-align: center;
    padding-bottom: 0.75rem;
}

.product-card {
    max-width: 262px;
    padding-bottom: 0.75rem;
}

.ranking-card {
    max-width: 272px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #201a17 0%, #161616 100%);
    border: 1px solid rgba(255, 140, 0, 0.14);
}

.ranking-card-link,
.deal-card-link {
    color: inherit;
}

.deal-card {
    max-width: 272px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #171717 0%, #111111 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.product-card-link {
    cursor: pointer;
}

.store-card .card-img,
.product-card .card-img {
    width: 100%;
    background: linear-gradient(45deg, #2a2a2a 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff8c00;
}

.store-card .card-img {
    height: 160px;
    font-size: 3.2rem;
}

.product-card .card-img {
    height: 172px;
    font-size: 3.2rem;
}

.ranking-card-image,
.deal-card-image {
    height: 166px;
    overflow: hidden;
}

.ranking-card-body,
.deal-card-body {
    padding: 0.8rem 0.8rem 0.85rem;
}

.ranking-card-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 140, 0, 0.12);
    color: #ffb45c;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}

.ranking-card h3,
.deal-card h3 {
    margin: 0;
    color: #ffffff;
    line-height: 1.42;
    font-size: 0.92rem;
}

.deal-card-artist {
    margin: 0.38rem 0 0;
    color: #b5b5b5;
    font-size: 0.8rem;
}

.deal-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #d4d4d4;
    font-size: 0.8rem;
}

.deal-card-meta strong {
    color: #ff8c00;
    font-size: 0.94rem;
}

@media (min-width: 1280px) {
    .ranking-grid,
    .deal-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .ranking-card,
    .deal-card {
        max-width: none;
        width: 100%;
    }

    .ranking-card-image,
    .deal-card-image {
        height: 152px;
    }

    .ranking-card-body,
    .deal-card-body {
        padding: 0.72rem 0.72rem 0.78rem;
    }

    .ranking-card h3,
    .deal-card h3 {
        font-size: 0.86rem;
        line-height: 1.35;
    }

    .deal-card-artist,
    .deal-card-meta {
        font-size: 0.76rem;
    }

    .deal-card-meta strong {
        font-size: 0.88rem;
    }
}

.ranking-card-empty,
.deal-card-empty {
    min-height: 160px;
    display: flex;
    align-items: center;
}

.store-card h3 {
    margin: 0.75rem 0 0.5rem;
    font-size: 0.94rem;
}

.product-info {
    padding: 0 0.8rem;
}

.product-info h4 {
    margin: 0.38rem 0 0.28rem;
    font-size: 0.86rem;
}

.product-info p,
.store-card p {
    color: #cccccc;
    font-size: 0.78rem;
    margin-bottom: 0.32rem;
}

.price {
    font-size: 0.92rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 0.55rem;
}

.product-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 0.8rem;
}

.add-to-cart {
    background-color: #ff4500;
    color: #ffffff;
    border: none;
    padding: 0.4rem 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.74rem;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: #ff6347;
}

.favorite-btn {
    background: none;
    border: none;
    color: #cccccc;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.favorite-btn.active {
    color: #ff4500;
}

@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }

    .banner {
        height: 32vh;
        min-height: 320px;
        padding: 0 1rem;
    }

    .banner h1 {
        font-size: 2rem;
    }

    .banner p {
        font-size: 1rem;
    }

    .banner-search {
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 0.7rem;
        padding: 0.75rem;
        border-radius: 20px;
        max-width: 100%;
    }

    .banner-search-input,
    .banner-search-btn {
        height: 58px;
        font-size: 1rem;
    }

    .banner-search-input {
        flex: 1;
        min-width: 0;
        padding: 0 1rem;
    }

    .banner-search-btn {
        flex: 0 0 104px;
        padding: 0 1.1rem;
        font-weight: 600;
    }

    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.5rem;
        margin: 1.5rem 0 1rem;
    }

    .section-heading-copy {
        padding-left: 0.9rem;
    }

    .store-grid,
    .product-grid,
    .ranking-grid,
    .deal-grid {
        gap: 1rem;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .store-card .card-img {
        height: 150px;
        font-size: 3rem;
    }

    .product-card .card-img,
    .ranking-card-image,
    .deal-card-image {
        height: 180px;
        font-size: 3rem;
    }

    .product-card .card-img {
        height: 148px;
    }

    .product-card {
        max-width: none;
        width: 100%;
        padding-bottom: 0.8rem;
    }

    .product-info {
        padding: 0.9rem 0.85rem 0 0.85rem;
    }

    .product-info h4,
    .product-info p {
        font-size: 0.88rem;
    }

    .product-info .price {
        font-size: 1rem;
    }

    .product-actions {
        padding: 0 0.85rem;
    }

    .product-actions .add-to-cart {
        min-height: 38px;
        font-size: 0.88rem;
        justify-content: center;
        text-align: center;
    }

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

    .section-desc {
        font-size: 0.88rem;
        line-height: 1.65;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .banner h1 {
        font-size: 2.5rem;
    }

    .store-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .ranking-grid,
    .deal-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}
