/* ==============================================================
   File: wwwroot/css/site.css
   Mô tả: Bộ CSS chính cho giao diện Khách hàng SportShop.
   - Bố cục cố định Header (fixed-top) & Footer (sticky flexbox bottom)
   - Hệ màu đồng nhất với khu vực Quản trị (Dark Teal + Mint Emerald)
   - Thiết kế hiện đại cho Trang chủ, thẻ Môn thể thao, thẻ Sản phẩm
   Tác giả: Minh
   ============================================================== */

:root {
    --sp-dark: #0f242c;
    --sp-dark-2: #16333e;
    --sp-mint: #10b981;
    --sp-mint-bright: #34d399;
    --sp-mint-soft: #eaf7f1;
    --sp-amber: #f59e0b;
    --sp-bg: #f4f7f9;
    --sp-surface: #ffffff;
    --sp-border: #e5ecf0;
    --sp-text: #16242c;
    --sp-muted: #64748b;
    --sp-header-height: 70px;
}

html {
    font-size: 15px;
    height: 100%;
    scroll-behavior: smooth;
}

body.site-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--sp-bg);
    color: var(--sp-text);
    padding-top: var(--sp-header-height);
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

/* Đẩy footer luôn nằm ở đáy màn hình dù nội dung ngắn */
.site-main-wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 0 auto;
}

/* ==============================================================
   HEADER CỐ ĐỊNH TRÊN CÙNG
   ============================================================== */
.site-header {
    height: var(--sp-header-height);
    background-color: var(--sp-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(15, 36, 44, 0.22);
    z-index: 1030;
}

.site-navbar {
    min-height: var(--sp-header-height);
    background-color: var(--sp-dark);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

@media (max-width: 991.98px) {
    .site-navbar .navbar-collapse {
        background-color: var(--sp-dark);
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    }
}

.site-brand {
    font-weight: 800;
    letter-spacing: 0.04em;
    font-size: 1.25rem;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--sp-mint) 0%, #059669 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.05rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.brand-text {
    color: #ffffff;
}

.brand-accent {
    color: var(--sp-mint-bright);
}

.site-navbar .nav-link {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.site-navbar .nav-link-admin {
    color: var(--sp-mint-bright) !important;
    background-color: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.site-navbar .nav-link-admin:hover {
    background-color: rgba(16, 185, 129, 0.26);
    color: #ffffff !important;
}

.site-dropdown {
    border: 1px solid var(--sp-border);
    border-radius: 12px;
    padding: 0.4rem;
    box-shadow: 0 12px 32px rgba(15, 36, 44, 0.16);
}

.site-dropdown .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
    font-size: 0.92rem;
}

.site-dropdown .dropdown-item:hover {
    background-color: var(--sp-mint-soft);
    color: #047857;
}

.header-search-form {
    min-width: 215px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.header-search-input {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    padding-left: 0.85rem;
    box-shadow: none !important;
}

.header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.58);
}

.header-search-btn {
    background-color: var(--sp-mint);
    color: #fff;
    border-radius: 999px;
    padding: 0.28rem 0.9rem;
    font-weight: 600;
    border: none;
}

.header-search-btn:hover {
    background-color: #059669;
    color: #fff;
}

.header-user-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.8rem 0.3rem 0.35rem;
}

.header-user-btn:hover,
.header-user-btn:focus {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.user-avatar-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--sp-mint);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.header-cart-btn {
    background-color: var(--sp-amber);
    color: #111827;
    border: none;
    border-radius: 999px;
    padding: 0.38rem 0.8rem;
    font-weight: 600;
}

.header-cart-btn:hover {
    background-color: #d97706;
    color: #ffffff;
}

.header-login-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    padding: 0.35rem 0.95rem;
    font-weight: 500;
}

.header-login-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.header-register-btn {
    background-color: var(--sp-mint);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 0.35rem 1rem;
    font-weight: 600;
}

.header-register-btn:hover {
    background-color: #059669;
    color: #ffffff;
}

/* ==============================================================
   FOOTER CỐ ĐỊNH Ở ĐÁY TRANG
   ============================================================== */
.site-footer {
    flex-shrink: 0;
    background-color: var(--sp-dark);
    color: #cbd5e1;
    border-top: 3px solid var(--sp-mint);
}

.footer-desc {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.65;
}

.footer-heading {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.55rem;
    font-size: 0.92rem;
}

.footer-links a,
.footer-contact a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.18s ease, padding-left 0.18s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--sp-mint-bright);
}

.footer-trust-pill {
    font-size: 0.78rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.12);
    color: var(--sp-mint-bright);
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.footer-partner-label {
    color: #94a3b8;
    letter-spacing: 0.05em;
    font-size: 0.74rem;
}

.footer-ship-logo {
    height: 28px;
    width: auto;
    border-radius: 5px;
    background: #fff;
    padding: 2px;
    object-fit: contain;
}

.footer-bottom {
    background-color: #09171d;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: #94a3b8;
}

/* ==============================================================
   TRANG CHỦ (HOME PAGE)
   ============================================================== */
.home-hero {
    background: radial-gradient(circle at 85% 20%, rgba(16, 185, 129, 0.28), transparent 45%),
                linear-gradient(135deg, #0b1c23 0%, #12303c 55%, #0f242c 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0 4rem;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(52, 211, 153, 0.16);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: var(--sp-mint-bright);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
}

.hero-title {
    font-size: clamp(2.1rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-title .accent {
    color: var(--sp-mint-bright);
}

.hero-subtitle {
    color: rgba(226, 232, 240, 0.82);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 540px;
}

.hero-cta-primary {
    background: linear-gradient(135deg, var(--sp-mint) 0%, #059669 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.85rem 1.75rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-cta-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(16, 185, 129, 0.45);
}

.hero-cta-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
}

.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.hero-stat-box {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

.hero-stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.hero-stat-label {
    font-size: 0.78rem;
    color: #94a3b8;
}

.hero-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.hero-collage-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 175px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.hero-collage-item.offset-down {
    transform: translateY(18px);
}

.hero-collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-collage-item:hover img {
    transform: scale(1.08);
}

.hero-collage-label {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: rgba(15, 36, 44, 0.82);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
}

/* Tiêu đề section */
.section-kicker {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sp-mint);
    margin-bottom: 0.25rem;
}

.section-heading {
    font-weight: 800;
    color: var(--sp-text);
    letter-spacing: -0.015em;
}

/* Thẻ môn thể thao có ảnh nền */
.sport-photo-card {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    height: 165px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(15, 36, 44, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.sport-photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(15, 36, 44, 0.18);
}

.sport-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sport-photo-card:hover img {
    transform: scale(1.08);
}

.sport-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 36, 44, 0.1) 20%, rgba(15, 36, 44, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    color: #fff;
}

.sport-photo-title {
    font-weight: 700;
    font-size: 1.02rem;
    margin: 0;
}

.sport-photo-sub {
    font-size: 0.78rem;
    color: var(--sp-mint-bright);
}

/* Thẻ danh mục nhanh */
.category-pill-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: var(--sp-text);
    transition: all 0.2s ease;
}

.category-pill-card:hover {
    border-color: var(--sp-mint);
    background: var(--sp-mint-soft);
    color: #047857;
    transform: translateY(-2px);
}

/* Thẻ sản phẩm */
.product-card {
    border-radius: 16px !important;
    border: 1px solid var(--sp-border) !important;
    background: var(--sp-surface);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.45) !important;
    box-shadow: 0 14px 30px rgba(15, 36, 44, 0.1) !important;
}

.product-thumb-wrap {
    position: relative;
    height: 215px;
    background: #f1f5f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.product-card:hover .product-thumb-wrap img {
    transform: scale(1.06);
}

.product-stock-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
}

.product-price {
    color: #dc2626;
    font-size: 1.15rem;
    font-weight: 800;
}

.btn-sport-primary {
    background-color: var(--sp-dark);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
    transition: background-color 0.18s ease;
}

.btn-sport-primary:hover {
    background-color: var(--sp-mint);
    color: #ffffff;
}

/* Thẻ cam kết dịch vụ (USP) */
.usp-card {
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.usp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 36, 44, 0.07);
}

.usp-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--sp-mint-soft);
    color: #059669;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 0.9rem;
}

/* Banner kêu gọi hành động cuối trang chủ */
.home-cta-banner {
    background: linear-gradient(125deg, #0f242c 0%, #14404e 100%);
    border-radius: 20px;
    padding: 2.5rem;
    color: #fff;
}
