/* =============================================
   TECHSHOP — Modern Clean (GearVN-inspired)
   ============================================= */

:root {
    --bg-page: #f5f5f7;
    --bg-white: #ffffff;
    --text-main: #1d1d1f;
    --text-sub: #86868b;
    --text-muted: #a1a1a6;
    --accent: #0084ff;
    --accent-hover: #0066cc;
    --price-sale: #0084ff;
    --nav-height: 56px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-pill: 99px;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.08);
    --max-width: 1280px;
    --container-pad: 16px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-main);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* ---- Header ---- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

/* Tầng 1: Site Header Main (Sky Blue) */
.site-header-main {
    background: var(--accent);
    color: #ffffff;
    height: 64px;
    display: flex;
    align-items: center;
}

.header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 100%;
    width: 100%;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

@media (min-width: 1024px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.site-header.is-menu-open .nav-toggle-bar:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.site-header.is-menu-open .nav-toggle-bar:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.logo-icon {
    width: 22px;
    height: 22px;
}

/* Search Bar Form */
.header-search-form {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 440px;
    height: 38px;
}

.header-search-input {
    width: 100%;
    height: 100%;
    padding: 0 45px 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
}

.header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.header-search-input:focus {
    background: #ffffff;
    color: var(--text-main);
    border-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.header-search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.header-search-btn svg {
    width: 18px;
    height: 18px;
}

.header-search-input:focus+.header-search-btn {
    color: var(--text-main);
}

.header-search-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.header-action-item:hover {
    opacity: 0.9;
}

.action-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: #ffffff;
    fill: none;
}

.action-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-align: left;
}

.header-action-item .label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.75);
}

.header-action-item .value {
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}

/* Dropdown Menu Overrides in Header */
.account-menu-wrapper,
.user-profile-nav {
    position: relative;
}

.profile-trigger-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
    fill: none;
    flex-shrink: 0;
}

.account-dropdown,
.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 240px;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.account-menu-wrapper:hover .account-dropdown,
.user-profile-nav:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-dropdown-greeting,
.user-dropdown-greeting {
    margin: 0 0 12px;
    font-size: 13px;
    color: #86868b;
    text-align: left;
}

.user-dropdown-greeting {
    font-weight: 600;
    color: #333333;
    border-bottom: 1px solid #f5f5f7;
    padding-bottom: 6px;
}

.account-dropdown-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-login,
.btn-register {
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    text-align: center;
    border: none;
    width: 100%;
    cursor: pointer;
}

.btn-login {
    background: var(--accent);
    color: #fff;
}

.btn-login:hover {
    background: var(--accent-hover);
}

.btn-register {
    background: #fff;
    color: var(--text-main);
    border: 1px solid #e5e5e5;
}

.btn-register:hover {
    background: #f5f5f7;
}

.user-dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-dropdown-menu li a {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: #555555;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: left;
}

.user-dropdown-menu li a:hover {
    color: var(--text-main);
    background: #f5f5f7;
}

.user-dropdown-menu li a.btn-logout {
    color: #ff4d4d;
    font-weight: 600;
}

.user-dropdown-menu li a.btn-logout:hover {
    color: #d32f2f;
    background: #fff5f5;
}

/* Tầng 2: Site Header Sub (White navigation bar) */
.site-header-sub {
    background: var(--bg-white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    height: 44px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.header-sub-inner {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links {
    display: none;
    gap: 28px;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
}

.nav-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-sub);
    transition: color 0.2s;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.is-current {
    color: var(--accent);
}

.nav-cta {
    padding: 8px 18px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    transition: background 0.2s;
}

.nav-cta:hover {
    background: var(--accent-hover);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay.hidden {
    display: none;
}

.auth-modal {
    width: 450px;
    background: var(--bg-white);
    border-radius: 12px;
    padding: 30px;
    position: relative;
}

.auth-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.auth-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.auth-modal-close {
    font-size: 24px;
    color: var(--text-muted);
}

.auth-modal-switch {
    display: block;
    text-align: right;
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 15px;
}

.auth-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.auth-input:focus {
    border-color: var(--accent);
    outline: none;
}

.auth-btn-primary {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 10px;
}

.auth-social-divider {
    text-align: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-social-buttons {
    display: flex;
    gap: 10px;
}

.auth-btn-social {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.auth-btn-social:hover {
    opacity: 0.9;
    color: #fff;
}

.auth-btn-social.google {
    background: #ea4335;
}

.auth-btn-social.facebook {
    background: #3b5998;
}

.auth-modal-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
}

.switch-to-login,
.switch-to-register {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
}

.mobile-nav {
    background: var(--bg-white);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-nav[hidden] {
    display: none;
}

.mobile-nav-inner {
    padding: 16px var(--container-pad) 24px;
}

.mobile-nav-link {
    display: block;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-cta {
    display: block;
    margin-top: 16px;
    text-align: center;
    padding: 14px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-pill);
}

/* ---- Home blocks ---- */

.home-page {
    padding-bottom: 40px;
}

.home-block {
    padding: 16px 0;
}

.block-panel {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-card);
}

/* Khối 1: Hero & Mega Menu */

.hero-mega-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    align-items: stretch;
}

.mega-menu {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 16px 0;
    box-shadow: var(--shadow-card);
}

.mega-menu-title {
    margin: 0 0 8px;
    padding: 0 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-sub);
}

.mega-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    transition: background 0.2s, color 0.2s;
}

.mega-menu-item:hover,
.mega-menu-item.is-active {
    background: var(--bg-page);
    color: var(--accent);
}

.mega-arrow {
    color: var(--text-muted);
    font-size: 16px;
}

.hero-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.hero-slider {
    position: relative;
    background: #0b0f19;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    min-height: 320px;
    color: #ffffff;
}

/* Subtle tech-grid overlay */
.hero-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 1;
}

.hero-slide {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 32px;
    align-items: center;
    min-height: 320px;
    position: relative;
    z-index: 2;
}

.hero-slide.is-active {
    display: grid;
}

/* Dynamic Mesh Gradients for each slide */
.hero-slide:nth-child(1) {
    background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(244, 63, 94, 0.2) 0%, transparent 50%),
        #0b0f19;
}

.hero-slide:nth-child(2) {
    background: radial-gradient(circle at 85% 75%, rgba(6, 182, 212, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 15% 25%, rgba(16, 185, 129, 0.25) 0%, transparent 50%),
        #0a1120;
}

.hero-slide:nth-child(3) {
    background: radial-gradient(circle at 75% 25%, rgba(245, 158, 11, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 25% 75%, rgba(239, 68, 68, 0.25) 0%, transparent 50%),
        #0f0d1a;
}

.hero-slide-tag {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: #38bdf8;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 8px rgba(56, 189, 248, 0.3);
}

.hero-slide-title {
    margin: 0 0 10px;
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #ffffff;
    background: linear-gradient(to right, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-slide-desc {
    margin: 0 0 24px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

.hero-slide .btn-primary {
    background: linear-gradient(135deg, #38bdf8, #0084ff);
    box-shadow: 0 4px 14px rgba(0, 132, 255, 0.3);
    transition: all 0.3s ease;
    border: none;
}

.hero-slide .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 132, 255, 0.5);
    background: linear-gradient(135deg, #0084ff, #0066cc);
}

.hero-slide-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide-visual img {
    max-height: 240px;
    object-fit: contain;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide:hover .hero-slide-visual img {
    transform: translateY(-6px) scale(1.02);
}

.hero-slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.hero-dot.is-active {
    background: #38bdf8;
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
}

/* Modern Slider Arrows */
.hero-prev,
.hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: #ffffff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
}

.hero-prev {
    left: 16px;
}

.hero-next {
    right: 16px;
}

.hero-slider:hover .hero-prev,
.hero-slider:hover .hero-next {
    opacity: 1;
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
    color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}


.sub-banners {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.sub-banner {
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sub-banner:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.sub-banner-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.sub-banner-sub {
    font-size: 11px;
    color: var(--text-sub);
}

.sub-banner-flash {
    background: linear-gradient(135deg, #fff5f5, #ffffff);
}

.sub-banner-flash .sub-banner-title {
    color: var(--accent);
}

.sub-banner-monitor {
    background: linear-gradient(135deg, #f0f4ff, #ffffff);
}

.sub-banner-mouse {
    background: linear-gradient(135deg, #f5f5f7, #ffffff);
}

.sub-banner-headphone {
    background: linear-gradient(135deg, #f0fff4, #ffffff);
}

.btn-primary {
    display: inline-flex;
    padding: 10px 24px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

/* Khối 2: Quick Access */

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
}

.quick-access-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 8px;
    border-radius: var(--radius-sm);
    transition: background 0.2s, transform 0.2s;
}

.quick-access-item:hover {
    background: var(--bg-page);
    transform: translateY(-2px);
}

.quick-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    transition: background 0.2s, color 0.2s;
}

.quick-access-item:hover .quick-icon {
    background: var(--accent);
    color: #fff;
}

.quick-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease-in-out;
}

.quick-access-item:hover .quick-icon svg {
    transform: scale(1.1);
}

.quick-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-sub);
    text-align: center;
}

/* Khối 3: Product Showcases */

.product-showcase {
    padding: 8px 0;
}

.showcase-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.showcase-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.showcase-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.filter-tag {
    padding: 6px 14px;
    background: var(--bg-page);
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-sub);
    letter-spacing: 0.02em;
    transition: background 0.2s, color 0.2s;
}

.filter-tag:hover {
    background: var(--text-main);
    color: #fff;
}

.btn-view-all {
    margin-left: auto;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    border: 1px solid rgba(215, 0, 24, 0.25);
    border-radius: var(--radius-pill);
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.btn-view-all:hover {
    background: var(--accent);
    color: #fff;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

/* ---- Product Card ---- */

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    padding: 12px;
    transition: box-shadow 0.3s, transform 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
}

.product-card-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--bg-page);
}

.product-card-img img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.product-card:hover .product-card-img img {
    transform: scale(1.04);
}

.product-card-badge {
    margin: 0 0 6px;
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-name {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.product-card-pricing {
    margin-bottom: 8px;
}

.price-row-old {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.price-original {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-discount {
    font-size: 11px;
    font-weight: 700;
    color: var(--price-sale);
}

.price-sale {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--price-sale);
    letter-spacing: -0.01em;
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-sub);
}

.rating-star {
    color: #f5a623;
    font-size: 12px;
}

.rating-value {
    font-weight: 600;
    color: var(--text-main);
}

/* ---- Catalog / Filter page ---- */

.page-hero {
    padding: 32px var(--container-pad) 24px;
    text-align: center;
}

.page-title {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-subtitle {
    margin: 0;
    font-size: 14px;
    color: var(--text-sub);
}

.shop-layout {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--container-pad) 48px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.sidebar {
    width: 200px;
    flex-shrink: 0;
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow-card);
    position: sticky;
    top: calc(var(--nav-height) + 16px);
}

.filter-title {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-sub);
}

.filter-group+.filter-group {
    margin-top: 20px;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.filter-item a {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-sub);
    border-radius: var(--radius-sm);
    transition: background 0.2s, color 0.2s;
}

.filter-item a:hover {
    background: var(--bg-page);
    color: var(--text-main);
}

.filter-item.is-active a {
    background: var(--bg-page);
    color: var(--accent);
    font-weight: 600;
}

.product-section {
    flex: 1;
    min-width: 0;
}

.showcase-grid-catalog {
    grid-template-columns: repeat(4, 1fr);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white);
    border-radius: var(--radius);
}

.empty-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
}

.empty-desc {
    margin: 0 0 16px;
    color: var(--text-sub);
}

.link-arrow {
    color: var(--accent);
    font-weight: 600;
}

/* ---- Footer ---- */

.site-footer {
    background: #1d1d1f;
    color: #f5f5f7;
    padding: 48px var(--container-pad) 24px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-size: 18px;
    font-weight: 700;
}

.footer-tagline {
    margin: 8px 0 0;
    font-size: 13px;
    color: #86868b;
}

.footer-social-connect {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-social-connect .connect-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.footer-social-connect .social-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-social-connect .social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.footer-social-connect .social-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.footer-social-connect .social-icon:hover {
    transform: translateY(-3px) scale(1.08);
}

.footer-social-connect .social-icon.facebook {
    background: #1877f2;
}

.footer-social-connect .social-icon.facebook:hover {
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.footer-social-connect .social-icon.tiktok {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-social-connect .social-icon.tiktok:hover {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.footer-social-connect .social-icon.youtube {
    background: #ff0000;
}

.footer-social-connect .social-icon.youtube:hover {
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

.footer-social-connect .social-icon.zalo {
    background: #0084ff;
    text-decoration: none;
}

.footer-social-connect .social-icon.zalo .zalo-text {
    font-size: 9px;
    font-weight: 900;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: -0.5px;
    text-transform: lowercase;
    margin-top: -1px;
}

.footer-social-connect .social-icon.zalo:hover {
    box-shadow: 0 4px 12px rgba(0, 132, 255, 0.4);
}

.footer-social-connect .social-icon.community {
    background: #00b2a9;
}

.footer-social-connect .social-icon.community:hover {
    box-shadow: 0 4px 12px rgba(0, 178, 169, 0.4);
}

.subscribe-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
}

.subscribe-desc {
    margin: 0 0 16px;
    font-size: 13px;
    color: #86868b;
}

.subscribe-form {
    display: flex;
    gap: 8px;
    max-width: 400px;
}

.subscribe-input {
    flex: 1;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: var(--radius-pill);
    color: #fff;
    font-size: 13px;
    outline: none;
}

.subscribe-input::placeholder {
    color: #86868b;
}

.subscribe-btn {
    padding: 12px 20px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.footer-links {
    display: flex;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-col h4 {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #86868b;
}

.footer-col a {
    display: block;
    padding: 4px 0;
    font-size: 13px;
    color: #86868b;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom p {
    margin: 0;
    font-size: 12px;
    color: #86868b;
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 1200px) {
    .showcase-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .quick-access-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .hero-mega-grid {
        grid-template-columns: 1fr;
    }

    .mega-menu {
        display: none;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 24px;
    }

    .hero-slide-visual {
        order: -1;
    }

    .hero-slide-visual img {
        max-height: 180px;
        margin: 0 auto;
    }

    .sub-banners {
        grid-template-columns: repeat(2, 1fr);
    }

    .showcase-grid,
    .showcase-grid-catalog {
        grid-template-columns: repeat(3, 1fr);
    }

    .header-action-item.hotline,
    .header-action-item.showroom,
    .header-action-item.lookup {
        display: none;
    }

    .header-actions {
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .logo-text {
        display: none;
    }

    .header-search-form {
        display: none;
    }

    .showcase-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-view-all {
        margin-left: 0;
    }

    .showcase-grid,
    .showcase-grid-catalog {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-access-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .shop-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
    }

    .filter-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .subscribe-form {
        flex-direction: column;
        max-width: 100%;
    }

    .product-card-img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .sub-banners {
        grid-template-columns: 1fr;
    }

    .quick-access-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .quick-icon {
        width: 44px;
        height: 44px;
        font-size: 11px;
    }

    .quick-label {
        font-size: 11px;
    }
}

/* =============================================
   Product Filter Sidebar - Modern Clean Style
   ============================================= */
.filter-sidebar {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: fit-content;
}

.shop-layout .filter-sidebar {
    width: 240px;
    flex-shrink: 0;
}

.sidebar-title {
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-sub);
}

.filter-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.filter-item:hover,
.filter-item.active {
    background: #f5f5f7;
    color: var(--accent);
}

.filter-item.active {
    font-weight: 700;
}

.filter-item .icon {
    font-size: 16px;
    display: inline-block;
    width: 20px;
    text-align: center;
}

.brand-filter-group {
    margin-top: 24px;
    border-top: 1px solid #f5f5f7;
    padding-top: 20px;
}

@media (max-width: 768px) {
    .shop-layout .filter-sidebar {
        width: 100%;
        position: static;
    }

    .filter-sidebar .filter-items-wrapper {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .filter-sidebar .filter-item {
        padding: 8px 12px;
        background: var(--bg-page);
    }
}

/* Hero Slider Navigation Arrows - Premium Glassmorphic style */
.hero-prev,
.hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--text-main);
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
}

.hero-prev {
    left: 20px;
    padding-right: 2px;
    /* optical alignment */
}

.hero-next {
    right: 20px;
    padding-left: 2px;
    /* optical alignment */
}

.hero-slider:hover .hero-prev,
.hero-slider:hover .hero-next {
    opacity: 1;
    visibility: visible;
}

.hero-prev:hover,
.hero-next:hover {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(215, 0, 24, 0.3);
    border-color: var(--accent);
}

.hero-prev:active,
.hero-next:active {
    transform: translateY(-50%) scale(0.95);
}

/* Adjust layout rules to ensure slider wrapper handles relative placement */
.hero-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* =============================================
   Cart Icon and Badge Styles in Header
   ============================================= */
.cart-nav-item {
    position: relative;
}

.cart-icon-wrapper {
    position: relative;
    padding: 2px;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #0056b3;
    /* aligned with sky blue navbar hover */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

@keyframes pulse-cart {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse-cart 0.4s ease-out;
}

/* =============================================
   Product Detail Page Styles (GearVN inspired)
   ============================================= */
.product-detail-wrapper {
    background: var(--bg-page);
    padding: 32px 0 48px;
    min-height: calc(100vh - var(--nav-height) - 300px);
}

.detail-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.detail-breadcrumb a {
    color: var(--text-sub);
    text-decoration: none;
    transition: color 0.2s;
}

.detail-breadcrumb a:hover {
    color: var(--accent);
}

.detail-breadcrumb .divider {
    color: rgba(0, 0, 0, 0.15);
}

.detail-breadcrumb .current {
    color: var(--text-main);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 40px;
}

/* Left: Gallery Panel with Thumbnails */
.detail-gallery-panel {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.detail-image-box {
    width: 100%;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-white);
}

.detail-main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
}

.detail-image-box:hover .detail-main-img {
    transform: scale(1.03);
}

.detail-thumbnails-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 16px;
}

.thumb-btn {
    width: 70px;
    height: 70px;
    padding: 4px;
    background: var(--bg-white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.thumb-btn img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumb-btn:hover,
.thumb-btn.active {
    border-color: var(--accent);
    box-shadow: 0 4px 10px rgba(0, 132, 255, 0.12);
}

/* Right: Info Panel */
.detail-info-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.detail-header-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    align-items: center;
}

.detail-brand-tag {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: rgba(0, 132, 255, 0.06);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.detail-stock-badge {
    font-size: 11px;
    font-weight: 700;
    color: #2e7d32;
    background: #e8f5e9;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.detail-title {
    font-size: 24px;
    font-weight: 750;
    color: var(--text-main);
    margin: 0 0 10px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.detail-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 18px;
}

.rating-stars {
    color: #f5a623;
    font-size: 14px;
    letter-spacing: 1px;
}

.rating-value {
    font-weight: 700;
    color: var(--text-main);
}

.rating-divider {
    color: rgba(0, 0, 0, 0.15);
}

/* Price Block */
.detail-price-box {
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    width: 100%;
    margin-bottom: 20px;
}

.detail-price-box .price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.detail-price-box .price-current {
    font-size: 28px;
    font-weight: 800;
    color: var(--price-sale);
    letter-spacing: -0.01em;
}

.detail-price-box .price-original {
    font-size: 15px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.detail-price-box .price-discount-tag {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--accent);
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

/* Quantity selector inside detail */
.detail-qty-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 18px;
    width: 100%;
}

.qty-title-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-sub);
}

.qty-picker-container {
    display: inline-flex;
    align-items: center;
    background: var(--bg-page);
    border-radius: var(--radius-pill);
    padding: 3px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.qty-adjust-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.qty-adjust-btn:hover {
    background: var(--bg-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.qty-value-input {
    width: 38px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

/* Action buttons: GearVN Style */
.detail-action-buttons-wrapper {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-bottom: 24px;
}

.btn-detail-buy-now {
    flex: 1 1 70%;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: 0 4px 14px rgba(0, 132, 255, 0.15);
    transition: all 0.2s ease;
}

.btn-detail-buy-now:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-detail-buy-now:active {
    transform: translateY(0);
}

.btn-detail-buy-now .btn-main-text {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.btn-detail-buy-now .btn-sub-text {
    font-size: 10px;
    opacity: 0.9;
    font-weight: 500;
}

.btn-detail-add-cart {
    flex: 1 1 30%;
    background: var(--bg-white);
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.btn-detail-add-cart:hover {
    background: rgba(0, 132, 255, 0.04);
    box-shadow: 0 4px 12px rgba(0, 132, 255, 0.08);
}

.btn-detail-add-cart .btn-cart-text {
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.02em;
}

.btn-detail-buy-now:disabled,
.btn-detail-add-cart:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ĐIỂM NỔI BẬT box */
.detail-highlights-panel {
    width: 100%;
    border: 1px dashed var(--accent);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-card);
}

.highlights-header {
    background: var(--accent);
    color: #fff;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
}

.highlights-body {
    padding: 16px;
}

.highlights-table {
    width: 100%;
    border-collapse: collapse;
}

.highlights-table td {
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-sub);
    vertical-align: top;
    line-height: 1.45;
}

.highlights-table td:first-child {
    width: 130px;
    color: var(--text-main);
}

/* Similar Products Row */
.detail-similar-products-section {
    margin: 40px 0;
}

.section-title-premium {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-main);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 8px;
    margin-bottom: 20px;
    display: inline-block;
    width: 100%;
}

.similar-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

/* Tab Split Grid: Description vs Specs */
.detail-tabs-grid {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 32px;
    align-items: flex-start;
    margin-top: 24px;
}

.tabs-description-panel {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-card);
}

.description-rich-text h2 {
    font-size: 18px;
    font-weight: 750;
    margin: 0 0 16px;
    color: var(--text-main);
}

.description-rich-text h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 24px 0 10px;
    color: var(--text-main);
}

.description-rich-text p {
    font-size: 14px;
    color: var(--text-sub);
    line-height: 1.6;
    margin-bottom: 16px;
}

.detail-rich-quote {
    border-left: 4px solid var(--accent);
    background: #f8f9fa;
    padding: 16px 20px;
    font-style: italic;
    font-weight: 550;
    color: var(--text-main);
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
}

.tabs-specs-panel {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.specs-table-wrapper {
    width: 100%;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 12px 6px;
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.4;
}

.specs-table tr td:first-child {
    width: 120px;
    color: var(--text-main);
    font-weight: 550;
}

/* Responsive detail page */
@media (max-width: 1024px) {
    .similar-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .detail-tabs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .detail-gallery-panel {
        padding: 16px;
    }

    .detail-image-box {
        height: 280px;
    }

    .detail-title {
        font-size: 20px;
    }

    .similar-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-action-buttons-wrapper {
        flex-direction: column;
    }

    .btn-detail-buy-now,
    .btn-detail-add-cart {
        flex: 1 1 100%;
    }
}

.loading-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin-loader 0.8s linear infinite;
}

@keyframes spin-loader {
    to {
        transform: rotate(360deg);
    }
}

/* =============================================
   Toast Notifications
   ============================================= */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom-toast {
    background: #1d1d1f;
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   Cart Page Styles
   ============================================= */
.cart-page-wrapper {
    background: var(--bg-page);
    padding: 40px 0;
    min-height: calc(100vh - var(--nav-height) - 300px);
}

.cart-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.cart-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}

.cart-step.active {
    color: var(--accent);
}

.cart-step.active .step-num {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.cart-step-line {
    flex: 0 0 60px;
    height: 2px;
    background: rgba(0, 0, 0, 0.06);
}

.cart-main-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-main);
}

.cart-alert {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
}

.cart-alert-danger {
    background: #fff5f5;
    color: #e03131;
    border: 1px solid #ffc9c9;
}

/* Cart Grid Layout */
.cart-content-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: flex-start;
}

.cart-items-panel {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.cart-table-wrapper {
    overflow-x: auto;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.cart-table th {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-sub);
    letter-spacing: 0.05em;
}

.cart-table td {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    vertical-align: middle;
}

.cart-table tr:last-child td {
    border-bottom: none;
    padding-bottom: 0;
}

.cart-prod-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-prod-image {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-sm);
    background: var(--bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    flex-shrink: 0;
}

.cart-prod-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.cart-prod-name {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
}

.cart-price-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-price-current {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.cart-price-original {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* Quantity Control Buttons */
.cart-qty-ctrl {
    display: inline-flex;
    align-items: center;
    background: var(--bg-page);
    border-radius: var(--radius-pill);
    padding: 2px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: var(--bg-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.qty-input {
    width: 32px;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-row-total {
    font-size: 14px;
    font-weight: 700;
    color: var(--price-sale);
}

.btn-remove-item {
    border: none;
    background: transparent;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px;
}

.btn-remove-item:hover {
    color: var(--accent);
}

/* Sidebar / Summary Card & Form */
.cart-sidebar-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-summary-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-card);
}

.summary-card-title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 12px;
}

.summary-row-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.total-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-sub);
}

.total-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--price-sale);
}

/* Billing Form */
.checkout-billing-form {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
}

.billing-form-title {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.form-group-billing {
    margin-bottom: 16px;
}

.billing-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-sub);
    margin-bottom: 6px;
}

.billing-input,
.billing-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    color: var(--text-main);
    background: var(--bg-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.billing-input:focus,
.billing-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(215, 0, 24, 0.15);
}

.required-star {
    color: var(--accent);
}

.btn-checkout-submit-action {
    width: 100%;
    padding: 12px 20px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(215, 0, 24, 0.15);
}

.btn-checkout-submit-action:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-checkout-submit-action:active {
    transform: translateY(0);
}

/* Empty Cart State */
.cart-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.cart-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.cart-empty-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.cart-empty-desc {
    color: var(--text-sub);
    margin-bottom: 24px;
}

/* =============================================
   Checkout Success Page Styles
   ============================================= */
.checkout-success-wrapper {
    background: var(--bg-page);
    padding: 60px 0;
    min-height: calc(100vh - var(--nav-height) - 300px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 48px;
    box-shadow: var(--shadow-card);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.success-icon-badge {
    margin-bottom: 24px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 96px;
    height: 96px;
    background: rgba(215, 0, 24, 0.06);
    border-radius: 50%;
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.success-desc {
    font-size: 15px;
    color: var(--text-sub);
    margin-bottom: 24px;
    line-height: 1.5;
}

.order-id-display {
    background: var(--bg-page);
    border: 1px dashed rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--text-main);
    display: inline-block;
    margin-bottom: 24px;
}

.order-code {
    color: var(--accent);
    font-size: 16px;
}

.success-info-details {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 24px;
}

.btn-primary-success {
    display: inline-flex;
    padding: 12px 32px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 12px rgba(215, 0, 24, 0.15);
    transition: all 0.2s ease;
}

.btn-primary-success:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* =============================================
   Responsive Adjustments for Cart
   ============================================= */
@media (max-width: 992px) {
    .cart-content-grid {
        grid-template-columns: 1fr;
    }

    .cart-sidebar-panel {
        order: 0;
    }
}

@media (max-width: 576px) {
    .cart-page-wrapper {
        padding: 20px 0;
    }

    .cart-items-panel {
        padding: 16px;
    }

    .cart-table th:nth-child(2),
    .cart-table td:nth-child(2) {
        display: none;
    }

    .cart-prod-image {
        width: 52px;
        height: 52px;
    }

    .cart-qty-ctrl {
        padding: 0;
    }

    .qty-btn {
        width: 24px;
        height: 24px;
    }

    .qty-input {
        width: 24px;
        font-size: 12px;
    }
}

/* =============================================
   Promo Grid Banners (To Fill Homepage Gap)
   ============================================= */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.promo-item {
    display: flex;
    background: var(--bg-white);
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    min-height: 140px;
    align-items: center;
    justify-content: space-between;
}

.promo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.promo-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
    flex: 1;
    padding-right: 12px;
}

.promo-tag {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.05em;
}

.promo-item h3 {
    font-size: 14px;
    font-weight: 750;
    margin: 0;
    line-height: 1.3;
    color: var(--text-main);
}

.promo-item p {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
}

.btn-promo-action {
    font-size: 11px;
    font-weight: 700;
    color: #0056b3;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.promo-visual {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
    transition: transform 0.3s ease;
}

.promo-item:hover .promo-visual {
    transform: scale(1.08) rotate(2deg);
}

.promo-visual img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Background gradient overlays for each promo type */
.promo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background: linear-gradient(135deg, #0056b3, #d70018);
    z-index: 1;
}

.promo-item.promo-pc::before {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    opacity: 0.04;
}

.promo-item.promo-laptop::before {
    background: linear-gradient(135deg, #10b981, #3b82f6);
    opacity: 0.04;
}

.promo-item.promo-gear::before {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    opacity: 0.04;
}

@media (max-width: 1024px) {
    .promo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .promo-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   Static Info Pages (Contact, Return, Warranty)
   ============================================= */
.info-page-wrapper {
    padding: 40px 0;
    background: var(--bg-page);
    min-height: calc(100vh - 300px);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.info-grid-two-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .info-grid-two-cols {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.info-card {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 32px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: 24px;
}

.info-title {
    font-size: 24px;
    font-weight: 750;
    color: var(--text-main);
    margin: 0 0 8px;
}

.info-subtitle {
    font-size: 14px;
    color: var(--text-sub);
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin: 24px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: var(--accent);
    border-radius: 2px;
}

.info-card p {
    font-size: 13.5px;
    line-height: 1.6;
    color: #4b5563;
    margin: 0 0 16px;
}

.info-list {
    margin: 0 0 20px;
    padding-left: 20px;
    list-style-type: disc;
}

.info-list li {
    font-size: 13.5px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 8px;
}

.info-list li strong {
    color: var(--text-main);
}

.info-contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-item-icon {
    font-size: 20px;
    line-height: 1;
    color: var(--accent);
    padding-top: 2px;
}

.contact-item-details h5 {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 2px;
    color: var(--text-main);
}

.contact-item-details p {
    font-size: 13px;
    margin: 0;
    color: var(--text-sub);
}

.contact-item-details a {
    color: var(--accent);
    font-weight: 600;
}

.contact-item-details a:hover {
    text-decoration: underline;
}

/* Contact Form Styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 576px) {
    .form-group-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 13.5px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    transition: all 0.2s ease;
    background: #ffffff;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.15);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.btn-submit-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--accent);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 132, 255, 0.15);
    align-self: flex-start;
}

.btn-submit-contact:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 132, 255, 0.25);
}

.btn-submit-contact:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.contact-alert {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 16px;
}

.contact-alert.success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.contact-alert.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.contact-alert.hidden {
    display: none;
}

/* Generic Hidden Utility */
.hidden {
    display: none !important;
}

/* 2FA Verification Style */
.login-2fa-container {
    text-align: center;
    padding: 10px 0;
}

.login-2fa-number-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: var(--accent);
    font-size: 36px;
    font-weight: 800;
    width: 90px;
    height: 90px;
    border-radius: 12px;
    border: 3px dashed var(--accent);
    margin: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 132, 255, 0.1);
}

.login-2fa-container p {
    font-size: 13.5px;
    color: var(--text-sub);
    line-height: 1.6;
    margin: 0 0 10px;
}

.login-2fa-container .loading-dots {
    display: inline-block;
    font-weight: bold;
    font-size: 18px;
    margin-top: 10px;
    color: var(--text-muted);
}