/* ============================================================
   PYTADO — MASTER RESPONSIVE CSS
   Sửa toàn bộ giao diện mobile & tablet
   Breakpoints: 1024px (tablet), 768px (mobile), 480px (small)
   ============================================================ */

/* ---- Reset & Box Sizing ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    -webkit-text-size-adjust: 100%;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* ============================================================
   GLOBAL UTILITY — áp dụng cho mọi trang
   ============================================================ */
.inner,
.hero-container,
.cart-container,
.detail-container,
.pay-container,
.anime-container,
.anime-breadcrumbs,
.footer-main-inner,
.footer-features-inner {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
    width: 100%;
}

/* ============================================================
   HEADER — Sửa khoảng cách & layout trên mobile
   ============================================================ */
@media (max-width: 1024px) {
    .site-header {
        height: var(--header-height, 120px) !important;
    }

    .header-container {
        padding: 0 16px !important;
        gap: 10px 0 !important;
    }

    /* Logo nhỏ hơn trên tablet */
    .logo-main {
        font-size: 18px !important;
        letter-spacing: 2px !important;
    }

    .logo-sub {
        font-size: 9px !important;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 110px !important;
    }

    .site-header {
        height: 110px !important;
    }

    .logo-main {
        font-size: 16px !important;
    }

    .search-wrap {
        height: 38px !important;
    }
}

/* ============================================================
   HERO SECTION — Trang chủ
   ============================================================ */
@media (max-width: 992px) {
    .hero-section {
        padding: 50px 0 60px !important;
        min-height: 50vh !important;
        background-position: center center !important;
    }

    .hero-bg-overlay {
        background: linear-gradient(to bottom,
                rgba(5, 5, 5, 0.7) 0%,
                rgba(5, 5, 5, 0.85) 100%) !important;
    }

    .hero-container {
        padding: 0 16px !important;
        justify-content: center !important;
    }

    .hero-content {
        text-align: center !important;
        align-items: center !important;
        max-width: 100% !important;
        padding: 0 8px !important;
    }

    .hero-title {
        font-size: clamp(26px, 4.5vw, 42px) !important;
        letter-spacing: 1.5px !important;
        line-height: 1.1 !important;
        margin-bottom: 16px !important;
    }

    .metal-line {
        white-space: nowrap !important;
        font-size: clamp(26px, 4.5vw, 42px) !important;
    }

    .hero-desc {
        font-size: 14px !important;
        text-align: center !important;
        max-width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 24px !important;
    }

    .hero-btns {
        flex-direction: column !important;
        width: 100% !important;
        max-width: 320px !important;
        gap: 10px !important;
        display: flex !important;
    }

    .btn-primary,
    .btn-outline {
        width: 100% !important;
        justify-content: center !important;
    }


}

@media (max-width: 768px) {
    .hero-section {
        padding: 24px 0 28px !important;
        min-height: auto !important;
    }

    .hero-bg-overlay {
        background: rgba(5, 5, 5, 0.8) !important;
    }

    .hero-title {
        font-size: clamp(20px, 7vw, 32px) !important;
        letter-spacing: 1px !important;
        line-height: 1.12 !important;
        margin-bottom: 6px !important;
    }

    .metal-line {
        white-space: nowrap !important;
        font-size: clamp(20px, 7vw, 32px) !important;
    }

    .hero-desc {
        font-size: 11px !important;
        line-height: 1.35 !important;
        max-width: 260px !important;
        margin-bottom: 0 !important;
        text-align: center !important;
    }

    .hero-btns {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 26px !important;
        letter-spacing: 1px !important;
    }

    .metal-line {
        font-size: 26px !important;
    }
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
@media (max-width: 900px) {

    .desktop-hide-nav-link,
    .prod-desktop-hide-nav-link {
        display: none !important;
    }

    .desktop-hide-nav-link {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 15px !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .section-title {
        font-size: 13px !important;
        padding-left: 10px !important;
        white-space: nowrap !important;
    }

    .section-title::before {
        height: 13px !important;
        width: 2.5px !important;
    }

    .desktop-hide-nav-link,
    .prod-desktop-hide-nav-link {
        display: none !important;
    }

    .cat-header-nav,
    .prod-header-nav {
        display: none !important;
    }
}

/* ============================================================
   CATEGORIES SECTION — Trang chủ
   (home.php dùng flex slider, chỉ sửa padding/section)
   ============================================================ */
@media (max-width: 1024px) {
    .categories-section {
        padding: 40px 0 !important;
    }
}

@media (max-width: 600px) {
    .categories-section {
        padding: 28px 0 !important;
    }

    /* cat-action-btn nếu có */
    .cat-action-btn {
        padding: 6px 10px !important;
        font-size: 10px !important;
        gap: 4px !important;
    }
}

/* ============================================================
   PRODUCTS SECTION — Trang chủ
   (home.php dùng flex slider, chỉ sửa padding/section)
   ============================================================ */
@media (max-width: 1024px) {
    .products-section {
        padding: 40px 0 !important;
    }
}

/* ============================================================
   FOOTER
   ============================================================ */
.mobile-bottom-nav,
.cat-mobile-view-all,
.prod-mobile-view-all,
.cart-suggested-mobile-view-all {
    display: none !important;
}

@media (max-width: 1024px) {
    .footer-main-inner {
        gap: 30px !important;
    }
}

@media (max-width: 768px) {
    /* Hide top header cart icon on mobile */
    .site-header .cart-wrap {
        display: none !important;
    }

    /* Adjust scrolled header grid layout when cart is hidden */
    .site-header.scrolled .header-container {
        grid-template-columns: 50px 1fr 50px !important;
        grid-template-areas: "menu logo search" !important;
    }

    .site-header.scrolled .search-wrap {
        justify-self: end !important;
    }

    .footer-features {
        padding: 20px 16px !important;
    }

    .footer-features-inner {
        gap: 16px !important;
        justify-content: flex-start !important;
    }

    .feat-item {
        min-width: calc(50% - 8px) !important;
        flex: none !important;
    }

    .footer-main {
        padding: 36px 16px 28px !important;
    }

    .footer-main-inner {
        flex-direction: column !important;
        gap: 24px !important;
    }

    .footer-brand,
    .footer-col {
        min-width: 100% !important;
        flex: none !important;
    }

    .footer-col-title {
        font-size: 11px !important;
        margin-bottom: 12px !important;
    }

    .footer-links a {
        font-size: 12px !important;
    }

    .footer-contact {
        font-size: 12px !important;
    }

    .footer-bottom {
        padding: 14px 16px !important;
    }

    /* Mobile Bottom Navigation */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 60px !important;
        background: rgba(10, 10, 10, 0.96) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        border-top: 1.5px solid rgba(201, 168, 76, 0.15) !important;
        justify-content: space-around !important;
        align-items: center !important;
        z-index: 9999 !important;
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.8) !important;
        padding-bottom: env(safe-area-inset-bottom, 0) !important;
        box-sizing: border-box !important;
    }

    body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom, 0)) !important;
    }

    .mobile-nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-decoration: none !important;
        color: rgba(255, 255, 255, 0.65) !important;
        font-size: 9.5px !important;
        font-weight: 600 !important;
        transition: all 0.25s ease !important;
        flex: 1 !important;
        height: 100% !important;
        gap: 3px !important;
    }

    .mobile-nav-item svg {
        transition: transform 0.25s ease, stroke 0.25s ease !important;
        stroke: rgba(255, 255, 255, 0.65) !important;
    }

    .mobile-nav-item span {
        transition: color 0.25s ease !important;
        font-size: 9.5px !important;
        line-height: 1 !important;
        margin-bottom: 2px !important;
    }

    .mobile-nav-item.active {
        color: var(--accent-gold, #c9a84c) !important;
    }

    .mobile-nav-item.active svg {
        stroke: var(--accent-gold, #c9a84c) !important;
        transform: translateY(-1px) !important;
    }

    .mobile-nav-item:active svg {
        transform: scale(0.9) translateY(-1px) !important;
    }

    .mobile-nav-icon-wrap {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .mobile-nav-item .cart-count {
        position: absolute !important;
        top: -6px !important;
        right: -10px !important;
        background: #ff3333 !important;
        color: #fff !important;
        border-radius: 50% !important;
        padding: 0 4px !important;
        font-size: 8.5px !important;
        font-weight: 800 !important;
        min-width: 14px !important;
        height: 14px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1 !important;
        border: 1px solid rgba(10, 10, 10, 0.95) !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5) !important;
    }

    /* Centered View All Buttons Replaced Progress Indicators */
    .cat-mobile-view-all,
    .prod-mobile-view-all {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin-top: 22px !important;
        margin-bottom: 8px !important;
    }

    .mobile-view-all-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        font-size: 10.5px !important;
        font-weight: 750 !important;
        color: var(--accent-gold, #c9a84c) !important;
        text-decoration: none !important;
        letter-spacing: 0.8px !important;
        border: 1.5px solid rgba(201, 168, 76, 0.38) !important;
        border-radius: 24px !important;
        padding: 8px 24px !important;
        transition: all 0.25s ease !important;
        white-space: nowrap !important;
        background: rgba(201, 168, 76, 0.05) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    }

    .mobile-view-all-btn:hover {
        background: rgba(201, 168, 76, 0.12) !important;
        border-color: var(--accent-gold-hover, #e5c36a) !important;
        color: var(--accent-gold-hover, #e5c36a) !important;
        transform: translateY(-1px) !important;
    }

    .mobile-view-all-btn:active {
        transform: translateY(1px) !important;
    }
}

@media (max-width: 480px) {
    .feat-item {
        min-width: 100% !important;
    }

    .feat-title {
        font-size: 10px !important;
    }

    .feat-desc {
        font-size: 10px !important;
    }
}

/* ============================================================
   CATEGORY PAGE — Danh mục sản phẩm
   ============================================================ */
@media (max-width: 1024px) {
    .anime-page {
        padding: 20px 0 40px !important;
    }

    .anime-container {
        padding: 0 16px !important;
    }

    .anime-breadcrumbs {
        padding: 0 16px !important;
    }

    .products-section {
        padding: 18px !important;
        border-radius: 12px !important;
    }

    .products-grid-custom,
    .no-sidebar .products-grid-custom {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }
}

@media (max-width: 767px) {
    .anime-container {
        padding: 0 12px !important;
    }

    .products-grid-custom,
    .no-sidebar .products-grid-custom {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    /* Removed fixed height */

    .product-info-custom {
        padding: 10px !important;
    }

    .product-info-custom h3 {
        font-size: 11px !important;
        min-height: 30px !important;
        margin-bottom: 6px !important;
    }

    .product-info-custom .price {
        font-size: 12px !important;
        margin-bottom: 8px !important;
    }

    .product-info-custom .price ins {
        font-size: 12px !important;
    }

    .product-info-custom .price del {
        font-size: 10px !important;
    }

    .btn-detail {
        display: none !important;
    }

    .btn-order {
        height: 30px !important;
        font-size: 10px !important;
    }

    .content-header h1 {
        font-size: 22px !important;
    }

    .products-section {
        padding: 12px !important;
    }
}

@media (max-width: 400px) {

    .products-grid-custom,
    .no-sidebar .products-grid-custom {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }

    /* Removed fixed height */
}

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
@media (max-width: 1024px) {
    .product-detail-page {
        padding: 24px 0 180px !important;
    }

    .detail-container {
        padding: 0 16px !important;
    }

    .product-layout {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    .product-description-layout {
        padding: 24px 20px !important;
    }

    .desc-section-title {
        font-size: 18px !important;
    }
}

@media (max-width: 768px) {
    .product-title {
        font-size: 20px !important;
        line-height: 1.3 !important;
    }

    .current-price ins {
        font-size: 26px !important;
    }

    .current-price del {
        font-size: 15px !important;
    }

    .product-description-layout {
        margin-top: 30px !important;
        padding: 20px 16px !important;
    }

    .desc-section-title {
        font-size: 16px !important;
        letter-spacing: 1px !important;
        padding-bottom: 15px !important;
        margin-bottom: 18px !important;
    }

    .description-content {
        font-size: 13px !important;
    }

    .offer-box {
        padding: 16px !important;
    }

    .offer-header {
        font-size: 13px !important;
    }

    .countdown {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    .countdown-label {
        font-size: 11px !important;
        width: 100% !important;
        text-align: center !important;
    }

    .countdown-block {
        min-width: 40px !important;
        padding: 5px 8px !important;
    }

    .countdown-num {
        font-size: 16px !important;
    }

    .section-title {
        font-size: 18px !important;
    }

    /* Related products grid */
    .related-products-section .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

@media (max-width: 480px) {
    .detail-container {
        padding: 0 12px !important;
    }

    .product-title {
        font-size: 18px !important;
    }

    .current-price ins {
        font-size: 22px !important;
    }

    .product-badges {
        flex-wrap: wrap !important;
    }

    .badge-item {
        min-width: 50% !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-color) !important;
        padding: 8px 4px !important;
        font-size: 9px !important;
    }

    .badge-item:nth-child(odd) {
        border-right: 1px solid var(--border-color) !important;
    }

    .badge-item:last-child,
    .badge-item:nth-last-child(2):nth-child(odd) {
        border-bottom: none !important;
    }

    .mobile-sticky-actions {
        padding: 10px 12px !important;
        gap: 8px !important;
    }

    .add-to-cart-btn {
        font-size: 10px !important;
        padding: 8px !important;
        gap: 5px !important;
    }

    .buy-now-btn {
        font-size: 12px !important;
        padding: 10px !important;
    }
}

/* ============================================================
   CART PAGE
   ============================================================ */
@media (max-width: 1024px) {
    .cart-page {
        padding: 24px 0 !important;
    }

    .cart-container {
        padding: 0 16px !important;
    }

    .cart-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .cart-page-title {
        font-size: 24px !important;
    }
}

@media (max-width: 768px) {
    .cart-page-header {
        padding-bottom: 16px !important;
        margin-bottom: 20px !important;
    }

    .cart-page-title {
        font-size: 20px !important;
        letter-spacing: 1px !important;
    }

    .cart-content {
        padding: 16px !important;
    }

    .cart-table-header {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .cart-container {
        padding: 0 12px !important;
    }

    .cart-page-title {
        font-size: 18px !important;
    }

    .summary-card,
    .commitments-card {
        padding: 18px 14px !important;
        border-radius: 10px !important;
    }

    .checkout-btn,
    .continue-btn {
        padding: 12px !important;
        font-size: 11px !important;
    }

    .product-card {
        flex: 0 0 160px !important;
    }

    .product-card-img {
        height: 140px !important;
    }
}

/* ============================================================
   PAY / CHECKOUT PAGE
   ============================================================ */
@media (max-width: 1024px) {
    .pay-page {
        padding: 20px 0 40px !important;
    }

    .pay-container {
        padding: 0 16px !important;
    }

    .pay-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .pay-sidebar {
        position: static !important;
    }

    .pay-card {
        padding: 20px !important;
        border-radius: 14px !important;
    }
}

@media (max-width: 768px) {
    .pay-card {
        padding: 18px 16px !important;
    }

    .pay-card h2 {
        font-size: 12px !important;
        margin-bottom: 18px !important;
        padding-bottom: 12px !important;
    }

    .input-wrap input {
        padding: 13px 16px !important;
        font-size: 13px !important;
    }

    .payment-item {
        padding: 14px 16px !important;
        gap: 12px !important;
    }

    .payment-item .info h3 {
        font-size: 13px !important;
    }

    .payment-item .info p {
        font-size: 11px !important;
    }

    .order-summary-card {
        padding: 18px !important;
        border-radius: 14px !important;
    }

    .place-order-btn {
        padding: 14px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    .pay-container {
        padding: 0 12px !important;
    }

    .pay-card {
        padding: 16px 14px !important;
    }

    .input-wrap input {
        font-size: 14px !important;
        /* prevent iOS zoom */
    }

    .loc-dropdown {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        border-radius: 16px 16px 0 0 !important;
        max-height: 60vh !important;
    }

    .coupon-modal-content {
        max-width: 100% !important;
        border-radius: 16px 16px 0 0 !important;
    }

    .coupon-modal-overlay.active {
        align-items: flex-end !important;
    }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
@media (max-width: 1024px) {
    .contact-hero {
        padding: 60px 0 40px !important;
    }

    .contact-hero-content .main-heading {
        font-size: 36px !important;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 50px 0 30px !important;
        min-height: auto !important;
    }

    .contact-hero-split {
        flex-direction: column !important;
        gap: 24px !important;
        text-align: center !important;
    }

    .sub-heading {
        justify-content: center !important;
    }

    .contact-hero-content .main-heading {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }

    .contact-hero-content .hero-desc {
        font-size: 13px !important;
        max-width: 100% !important;
        text-align: center !important;
    }

    .hero-actions {
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    .contact-cards {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .contact-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        padding: 16px 18px !important;
        gap: 14px !important;
    }

    .contact-card .card-icon {
        margin-bottom: 0 !important;
    }

    .contact-card .card-info {
        align-items: flex-start !important;
        text-align: left !important;
    }

    .form-wrapper {
        flex-direction: column !important;
    }

    .form-left {
        padding: 30px 20px !important;
    }

    .form-right {
        min-height: 200px !important;
        display: none !important;
        /* ẩn ảnh trên mobile */
    }
}

@media (max-width: 480px) {
    .contact-hero-content .main-heading {
        font-size: 22px !important;
    }

    .contact-hero-content .hero-desc {
        font-size: 12px !important;
    }

    .quick-contact {
        padding: 40px 0 !important;
    }

    .contact-form-section {
        padding: 40px 0 !important;
    }

    .form-left {
        padding: 24px 16px !important;
    }

    .pytado-form input,
    .pytado-form textarea {
        font-size: 14px !important;
        /* prevent iOS zoom */
    }

    .btn-hero {
        width: 100% !important;
        text-align: center !important;
    }
}

/* ============================================================
   DETAIL LIST PAGE (Subcategory)
   ============================================================ */
@media (max-width: 1024px) {
    .cat-detail-hero {
        padding: 40px 0 24px !important;
    }

    .cat-detail-hero-container {
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px !important;
    }

    .cat-detail-hero-logo-box {
        margin: 0 auto !important;
    }

    .cat-detail-stats {
        justify-content: center !important;
    }

    .cat-detail-hero-title {
        font-size: 26px !important;
    }

    .subcat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }
}

@media (max-width: 768px) {
    .cat-detail-hero-logo-box {
        display: none !important;
    }

    .cat-detail-hero-title {
        font-size: 22px !important;
    }

    .cat-detail-hero-desc {
        font-size: 12px !important;
    }

    .subcat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .subcat-card {
        height: 150px !important;
    }

    .subcat-content {
        padding: 12px !important;
    }

    .subcat-title {
        font-size: 11px !important;
    }

    .subcat-btn {
        padding: 4px 10px !important;
        font-size: 10px !important;
    }

    .cat-tabs-container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
}

@media (max-width: 480px) {
    .subcat-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .subcat-card {
        height: 130px !important;
    }
}

/* ============================================================
   SLIDER / CAROUSEL — Nav arrows trên mobile
   ============================================================ */
@media (max-width: 768px) {
    .suggested-controls {
        display: none !important;
    }

    .suggested-title {
        font-size: 14px !important;
        letter-spacing: 0.5px !important;
        margin-bottom: 15px !important;
    }

    .products-slider {
        gap: 12px !important;
        padding: 0 !important;
    }

    .suggested-section .product-card {
        flex: 0 0 45% !important; /* Exactly 2 cards with a nice peek! */
    }

    .suggested-section .product-card-img {
        height: 160px !important;
    }

    .suggested-section .product-card-info {
        padding: 12px 10px 14px !important;
    }

    .suggested-section .product-card-info h3 {
        font-size: 12px !important;
        min-height: 32px !important;
        line-height: 1.4 !important;
        margin-bottom: 4px !important;
    }

    .suggested-section .product-card-info .price {
        font-size: 13px !important;
    }

    /* Centered mobile bottom View All button for Suggested Products */
    .cart-suggested-mobile-view-all {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin-top: 22px !important;
        margin-bottom: 8px !important;
    }
}

/* ============================================================
   CATEGORY NAV SLIDER on mobile (trang danh mục)
   ============================================================ */
@media (max-width: 1024px) {
    .sidebar-list {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .sidebar-list::-webkit-scrollbar {
        display: none !important;
    }
}

/* ============================================================
   BREADCRUMBS — Cỡ chữ và hiển thị trên mobile
   ============================================================ */
@media (max-width: 768px) {
    .breadcrumbs {
        font-size: 12px !important;
        gap: 5px !important;
        flex-wrap: wrap !important;
        margin-bottom: 16px !important;
        display: flex !important;
    }

    .breadcrumbs a,
    .breadcrumbs span {
        font-size: 12px !important;
    }

    .breadcrumbs .current {
        font-size: 12px !important;
    }

    .anime-breadcrumbs-inner {
        font-size: 12px !important;
        flex-wrap: wrap !important;
        gap: 5px !important;
    }

    .anime-breadcrumbs-inner a,
    .anime-breadcrumbs-inner span,
    .anime-breadcrumbs-inner .current {
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .breadcrumbs {
        font-size: 11.5px !important;
    }
    .anime-breadcrumbs-inner {
        font-size: 11.5px !important;
    }
}


/* ============================================================
   PAGINATION
   ============================================================ */
@media (max-width: 480px) {
    .pagination-custom {
        gap: 4px !important;
        margin-top: 20px !important;
    }

    .pagination-custom button {
        height: 32px !important;
        min-width: 32px !important;
        font-size: 12px !important;
        padding: 0 8px !important;
    }
}

/* ============================================================
   HOME PAGE — Swiper / Dots
   ============================================================ */
@media (max-width: 768px) {
    .hero-dots {
        bottom: 16px !important;
        gap: 6px !important;
    }
}

/* ============================================================
   NAV OVERLAY khi mở menu mobile
   ============================================================ */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-overlay.is-visible {
    display: block;
    opacity: 1;
}

/* ============================================================
   BODY — Không thêm padding-top vì header dùng spacer div
   (xem #header-spacer trong header.html)
   ============================================================ */

/* ============================================================
   SMALL TWEAKS — Prevent horizontal overflow
   ============================================================ */
@media (max-width: 480px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Prevent long words overflowing containers */
.product-name,
.product-info-custom h3,
.product-card-info h3,
.product-details h3,
.product-summary-item .info h4,
.product-title {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ============================================================
   TOUCH IMPROVEMENTS
   ============================================================ */
@media (hover: none) and (pointer: coarse) {

    /* Tăng kích thước touch target */
    .nav-item a,
    .sidebar-list li,
    .cat-tab-btn,
    .pagination-custom button {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .icon-btn,
    .hamburger-btn,
    .search-btn {
        min-width: 44px;
        min-height: 44px;
    }

    /* Tắt hover transform trên mobile */
    .product-card:hover,
    .product-card-custom:hover,
    .category-card:hover,
    .contact-card:hover {
        transform: none !important;
    }
}