/* 
 * AMAC Sport Theme Main Stylesheet - Pixel Perfect Match
 */

:root {
    --amac-green: #7cb82f;
    --amac-green-hover: #6ca527;
    --amac-dark: #1a1a1a;
    --amac-dark-header: #151515;
    --amac-light-bg: #f6f6f6;
    --text-dark: #222222;
    --text-muted: #666666;
    --border-color: #e5e5e5;
    --font-family: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--amac-green);
}

/* ===================================
   Header (Neat & Clean - 100% No Line Break)
   =================================== */
.site-header {
    background-color: var(--amac-dark-header);
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    padding: 8px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap !important;
}

.logo-text {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--amac-green);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    white-space: nowrap !important;
    flex-shrink: 0;
}

/* Compact Nav Menu */
.header-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.header-nav .navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav .nav-link {
    font-weight: 700;
    font-size: 0.8rem;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    padding: 4px 6px !important;
    white-space: nowrap !important; /* ABSOLUTELY NO LINE BREAKS */
    position: relative;
    display: inline-block;
}

.header-nav .nav-link:hover,
.header-nav .nav-item.active .nav-link {
    color: var(--amac-green) !important;
}

.header-nav .nav-item.active .nav-link::after,
.header-nav .nav-link:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--amac-green);
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap !important;
    flex-shrink: 0;
}

.header-icon-link {
    color: var(--amac-green);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.header-icon-link:hover {
    background: rgba(124, 184, 47, 0.15);
    color: #ffffff;
}

.cart-count-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--amac-green);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================================
   Hero Slider
   =================================== */
.hero-section {
    position: relative;
    background: #000;
}

.hero-slide {
    height: 500px;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 650px;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title span {
    color: var(--amac-green);
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 24px;
    color: #dddddd;
}

.hero-btn {
    display: inline-block;
    background: var(--amac-green);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 12px 30px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(124, 184, 47, 0.4);
}

.hero-btn:hover {
    background: #ffffff;
    color: var(--amac-dark);
}

/* ===================================
   Sport Circles & Today Prompt
   =================================== */
.sport-icons-section {
    padding: 40px 0 20px;
    background-color: var(--amac-light-bg);
}

.sport-circles {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 25px;
}

.sport-circle-item {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: var(--amac-green);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 6px 15px rgba(124, 184, 47, 0.3);
    transition: all 0.3s ease;
}

.sport-circle-item:hover {
    transform: translateY(-5px) scale(1.08);
    background-color: var(--amac-dark);
    color: var(--amac-green);
}

.section-headline-green {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--amac-green);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 28px;
}

/* 4 Big Category Banners */
.four-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 40px;
}

.four-cat-card {
    position: relative;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    background: #cccccc;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

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

/* Uniform Category Banner Wrap across all Homepage Sections */
.cat-banner-wrap {
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background-color: #222;
}

.cat-banner-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.cat-banner-wrap:hover img {
    transform: scale(1.05);
}


.four-cat-card:hover img {
    transform: scale(1.08);
}

.four-cat-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.four-cat-card:hover .four-cat-overlay {
    background: rgba(124, 184, 47, 0.75);
}

.four-cat-title {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    padding: 0 10px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* ===================================
   Product Grids & Bestsellers
   =================================== */
.section-padding {
    padding: 40px 0;
}

.products-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.amac-product-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.amac-product-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    transform: translateY(-4px);
    border-color: var(--amac-green);
}

.amac-card-img-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8f8f8;
}

.amac-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ribbon Ribbon "BÁN CHẠY" */
.ribbon-banchay {
    position: absolute;
    top: 15px;
    right: -30px;
    background: #e30613;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 30px;
    transform: rotate(45deg);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 2;
}

.amac-card-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.amac-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--text-dark);
    height: 2.6em;
    overflow: hidden;
    line-height: 1.3;
}

.amac-card-price {
    font-size: 1rem;
    font-weight: 800;
    color: #e30613;
}

.amac-card-btn {
    margin-top: 8px;
    background: var(--amac-green);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

.amac-card-btn:hover {
    background: var(--amac-dark);
}

/* Quick View Hover Overlay on Product Image */
.amac-card-img-wrap {
    position: relative;
    overflow: hidden;
}

.btn-quick-view-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    white-space: nowrap;
}

.amac-card-img-wrap:hover .btn-quick-view-overlay,
.amac-product-card:hover .btn-quick-view-overlay {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.btn-quick-view-overlay:hover {
    background: var(--amac-green);
    color: #ffffff;
}

/* Custom CTA Team Banner */
.cta-team-banner {
    background: linear-gradient(135deg, #151515 0%, #2a2a2a 100%);
    border-radius: 16px;
    padding: 40px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* ===================================
   Product Detail Page (Exact Match)
   =================================== */
.product-detail-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 15px;
}

.numbered-feature-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.numbered-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--amac-green);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.88rem;
    flex-shrink: 0;
}

.btn-zalo-big {
    background-color: var(--amac-green);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 14px 24px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(124, 184, 47, 0.3);
}

.btn-zalo-big:hover {
    background-color: var(--amac-dark);
    color: #ffffff;
}

/* Blog Cards */
.blog-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}

/* ===================================
   AMAC Green Footer
   =================================== */
.amac-footer {
    background-color: var(--amac-green);
    color: #ffffff;
    padding: 50px 0 0;
    font-size: 0.92rem;
}

.amac-footer h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 20px;
}


/* ===================================
   Blog & News Page Styling
   =================================== */
.blog-hero-section {
    background: linear-gradient(135deg, #111111 0%, #1e2e12 60%, #86d10f 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.blog-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(134, 209, 15, 0.15), transparent 50%);
    pointer-events: none;
}

.blog-card-custom {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
}

.transition-zoom {
    transition: transform 0.5s ease;
}

.blog-card-custom:hover .transition-zoom {
    transform: scale(1.06);
}

.hover-green:hover {
    color: var(--amac-green) !important;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.extra-small {
    font-size: 0.78rem;
}

/* Hide Swiper Pagination Bullets */
.swiper-pagination,
.swiper-pagination-clickable,
.swiper-pagination-bullets,
.swiper-pagination-horizontal {
    display: none !important;
}

.amac-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.amac-footer ul li {
    margin-bottom: 8px;
}

.amac-footer ul li a:hover {
    opacity: 1;
    text-decoration: underline;
}

.amac-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1050;
}

.floating-circle-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.btn-zalo { background-color: #0084ff; }
.btn-phone { background-color: #25d366; }
.btn-top { background-color: var(--amac-dark); }

/* Responsive */
@media (max-width: 1200px) {
    .products-grid-5 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .four-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .products-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-slide {
        height: 380px;
    }
    .hero-title {
        font-size: 2.2rem;
    }
}
