@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #121212;
    --bg-card: #1E1E1E;
    --bg-header: #0A0A0A;
    --color-accent: #FF5A1F;
    --color-accent-hover: #FF743F;
    --text-white: #FFFFFF;
    --text-grey: #A0A0A0;
    --text-light-grey: #CCCCCC;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .heading-font {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: var(--text-white);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

/* Header & Navbar */
header {
    background-color: var(--bg-header) !important;
    border-bottom: 2px solid #222;
}

.top-header {
    background-color: #000 !important;
    font-size: 0.85rem;
    color: var(--text-grey);
    border-bottom: 1px solid #1A1A1A;
}

.top-header a {
    color: var(--text-grey);
}

.top-header a:hover {
    color: var(--color-accent);
}

.main-nav {
    gap: 0.35rem;
}

.nav-link {
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 1.02rem;
    color: var(--text-white) !important;
    letter-spacing: 0.5px;
    padding: 8px 14px !important;
    position: relative;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-accent) !important;
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
}

/* Accent Buttons */
.btn-accent {
    background-color: var(--color-accent);
    color: var(--text-white);
    border: none;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 10px 24px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-accent:hover {
    background-color: var(--color-accent-hover);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 90, 31, 0.4);
}

.btn-outline-accent {
    background-color: transparent;
    color: var(--text-white);
    border: 2px solid var(--color-accent);
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 8px 22px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-outline-accent:hover {
    background-color: var(--color-accent);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 90, 31, 0.3);
}

/* Product Card */
.product-card {
    background-color: var(--bg-card);
    border: 1px solid #2C2C2C;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
    box-shadow: 0 10px 25px rgba(255, 90, 31, 0.15);
}

.product-img-wrapper {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background-color: #181818;
}

.product-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: var(--text-white);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.wishlist-btn:hover {
    background: var(--color-accent);
    color: white;
    transform: scale(1.1);
}

.wishlist-btn.active {
    color: #ff3b30;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-size: 1.15rem;
    color: var(--text-white);
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.3;
}

.rating-stars {
    color: #FFCC00;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.product-price-block {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.product-price {
    font-family: 'Oswald', sans-serif;
    font-size: 1.25rem;
    color: var(--color-accent);
    font-weight: 700;
}

.product-old-price {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    color: var(--text-grey);
    text-decoration: line-through;
}

/* Category Grid Item */
.category-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    padding-top: 120%;
    display: block;
}

.category-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.1) 60%);
    transition: background 0.3s;
}

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

.category-title-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    margin: 0;
    color: var(--text-white);
    font-size: 1.8rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
}

/* Brand Grid */
.brand-item {
    background: var(--bg-card);
    border: 1px solid #2A2A2A;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    transition: all 0.3s;
}

.brand-item img {
    max-height: 45px;
    max-width: 85%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.65;
    transition: all 0.3s;
}

.brand-item:hover {
    border-color: var(--color-accent);
    box-shadow: 0 5px 15px rgba(255, 90, 31, 0.1);
}

.brand-item:hover img {
    opacity: 1;
}

/* Footer Section */
footer {
    background-color: var(--bg-header) !important;
    color: var(--text-grey);
    border-top: 4px solid var(--color-accent);
    padding: 60px 0 20px 0;
    font-size: 0.95rem;
}

footer h5 {
    color: var(--text-white);
    margin-bottom: 25px;
}

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

footer ul li {
    margin-bottom: 12px;
}

footer ul li a {
    color: var(--text-grey);
}

footer ul li a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.newsletter-form .form-control {
    background-color: #1A1A1A;
    border: 1px solid #333;
    color: var(--text-white);
    border-radius: 4px 0 0 4px;
}

.newsletter-form .form-control:focus {
    box-shadow: none;
    border-color: var(--color-accent);
    background-color: #222;
    color: var(--text-white);
}

.newsletter-form .btn {
    border-radius: 0 4px 4px 0;
}

/* Form Styling */
.form-dark .form-control, .form-dark .form-select {
    background-color: #1E1E1E;
    border: 1px solid #3A3A3A;
    color: white;
    padding: 10px 15px;
}

.form-dark .form-control:focus, .form-dark .form-select:focus {
    background-color: #252525;
    border-color: var(--color-accent);
    color: white;
    box-shadow: 0 0 5px rgba(255, 90, 31, 0.5);
}

.form-dark label {
    color: var(--text-grey);
    margin-bottom: 5px;
    font-weight: 500;
}

/* Order Checkout Modal - overlay canh giữa màn hình */
.gh-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.gh-modal-box {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    margin: auto;
}

.gh-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #0F0F0F;
}
::-webkit-scrollbar-thumb {
    background: #2D2D2D;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* Mobile brand quick-filter bar: cuộn ngang mượt, không lộ thanh cuộn to, không bóp chữ */
.brand-scroll-mobile {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.brand-scroll-mobile::-webkit-scrollbar {
    display: none;
    height: 0;
}
.brand-scroll-mobile .d-flex {
    flex-wrap: nowrap;
}
.brand-scroll-mobile .btn {
    flex: 0 0 auto;
}

/* Responsive Overrides */
@media (max-width: 991px) {
    .nav-link {
        font-size: 1rem;
        padding: 8px 10px !important;
    }
}

@media (max-width: 768px) {
    .category-title-overlay {
        font-size: 1.4rem;
    }
}