/* ============================================================
   MOBILE DRAWER — ACCORDION SUBMENU STYLES
   ============================================================ */

/* Submenus hidden by default on mobile */
.mobile-submenu {
    display: none;
    padding-left: 14px;
    margin-top: 6px;
    border-left: 2px solid rgba(255, 255, 255, 0.15);
    gap: 8px;
}

.mobile-submenu.open {
    display: flex;
    flex-direction: column;
}

/* Parent item with submenu — add toggle arrow */
.mobile-menu-links>li>a.has-submenu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-links>li>a.has-submenu::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    opacity: 0.7;
    transition: transform 0.25s ease;
}

.mobile-menu-links>li>a.has-submenu.open::after {
    transform: rotate(180deg);
}

/* Drawer logo clean display */
.mobile-nav-drawer .drawer-header .logo-area img {
    height: 48px !important;
    width: auto !important;
    display: block !important;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2)) !important;
}

/* Drawer scroll */
.mobile-nav-drawer {
    overflow-y: auto;
}

.mobile-menu-links {
    overflow-y: visible;
    padding-bottom: 10px;
}

/* ============================================================
   CUMACCS — COMPREHENSIVE MOBILE RESPONSIVE CSS
   mobile.css — loaded after style.css on all pages
   Only layout/spacing fixes — no content or design changes
   ============================================================ */

/* ── Tablet: 1024px ────────────────────────────────────────── */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    .nav-area {
        display: none;
    }

    .hamburger-btn {
        display: block;
    }

    .header-main .btn-download {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .mega-menu-grid-products {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-tkc-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-carousel-section {
        padding: 0;
    }

    .welcome-kits-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .about-grid {
        grid-template-columns: 1fr;
    }

    .cta-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .detail-grid-row,
    .detail-grid-row.reversed {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
}

/* ── Mobile: 768px ─────────────────────────────────────────── */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    body {
        overflow-x: hidden;
    }

    .container {
        padding: 0 16px;
    }

    .section-padding {
        padding: 48px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-desc {
        font-size: 0.92rem;
    }

    .section-header {
        margin-bottom: 28px;
    }

    /* Ticker */
    .ticker-wrap {
        font-size: 0.75rem;
        padding: 8px 0;
    }

    /* Header */
    .nav-wrapper {
        padding: 12px 0;
    }

    .nav-area {
        display: none !important;
    }

    .hamburger-btn {
        display: block;
    }

    .header-main .btn-enquire,
    .header-main .btn-download {
        display: none;
    }

    .header-icons {
        gap: 14px;
        font-size: 1rem;
    }

    .logo-area img {
        height: 42px !important;
    }

    /* Mobile Drawer */
    .mobile-nav-drawer {
        width: 290px;
        padding: 24px 20px;
    }

    .mobile-menu-links>li>a {
        font-size: 1rem;
    }

    .mobile-submenu a {
        font-size: 0.85rem;
    }

    /* Hero Carousel */
    .hero-carousel-section {
        padding: 0;
        overflow: hidden;
    }

    .hero-carousel-container {
        aspect-ratio: 1 / 1 !important;
        width: 100% !important;
        min-height: 280px;
        max-height: 520px;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .hero-slide {
        background-size: cover !important;
        background-position: center center !important;
    }

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

    .hero-dots {
        display: flex !important;
        bottom: 12px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        padding: 4px 12px !important;
        gap: 8px !important;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(4px);
        border-radius: 20px;
        z-index: 15;
    }

    /* Service / Welcome Kit hero */
    .welcome-kits-hero-section {
        padding: 40px 0;
    }

    .welcome-kits-hero-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px;
    }

    .hero-title-v3 {
        font-size: 1.8rem !important;
    }

    .hero-desc-v3 {
        font-size: 0.9rem !important;
    }

    .hero-ctas-v3 {
        flex-direction: column !important;
        gap: 12px;
    }

    /* Product grids */
    .products-grid,
    .gifts-grid,
    .collection-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }

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

    #brands-catalog-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 10px !important;
    }

    .product-card-img {
        height: 200px;
    }

    .product-card-title {
        font-size: 1rem;
    }

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

    .product-detail-info h1 {
        font-size: 1.5rem;
    }

    .product-tabs-nav {
        flex-wrap: wrap;
        gap: 8px;
    }

    .carousel-track .product-card {
        min-width: calc((100% - 14px) / 2);
    }

    /* Voucher / Gift cards */
    .voucher-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .voucher-tabs {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .voucher-tab {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-visual {
        max-width: 100%;
    }

    .about-content h2 {
        font-size: 1.75rem;
    }

    /* Solutions / Services */
    .solutions-grid,
    .services-overview-grid {
        grid-template-columns: 1fr;
    }

    .process-flow-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-row-item {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    .service-row-item:nth-child(even) {
        direction: ltr;
    }

    .service-page-hero h1 {
        font-size: 2rem;
    }

    .service-page-hero p {
        font-size: 0.95rem;
    }

    .detail-grid-row,
    .detail-grid-row.reversed {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    /* CTA */
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-form-container {
        padding: 24px;
    }

    .cta-contact-info {
        grid-template-columns: 1fr;
    }

    /* Brands */
    .brands-section {
        padding: 40px 0;
    }

    .brands-track {
        gap: 30px;
    }

    .brand-logo img {
        height: 32px;
    }

    /* Blog */
    .blog-grid-4col {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .blog-card-img-wrap {
        height: 180px;
    }

    /* Occasions / Recipients */
    .occasions-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .recipients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Footer */
    .footer-tkc-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-tkc-bottom-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-tkc-copyright-row {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-selectors-row {
        flex-direction: column;
        gap: 10px;
    }

    footer.footer-tkc {
        padding: 50px 0 24px;
    }

    /* Breadcrumb / page header */
    .breadcrumb {
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-header {
        padding: 48px 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    /* Banners & Category (Home) */
    .banners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .banner-card {
        height: 200px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }

    /* Slider arrows */
    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .slider-arrow.prev {
        left: -10px;
    }

    .slider-arrow.next {
        right: -10px;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .contact-info-grid {
        grid-template-columns: 1fr !important;
    }

    /* Collage */
    .collage-categories-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px;
    }

    .collage-item {
        height: auto !important;
        min-height: 200px;
    }

    .collage-text-card {
        padding: 24px !important;
    }

    .collage-text-card h3 {
        font-size: 1.6rem !important;
    }

    /* Hero stats / ratings */
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .hero-ratings-row {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* ── Small Mobile: 480px ───────────────────────────────────── */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 14px;
    }

    .logo-area img {
        height: 36px !important;
    }

    .header-icons {
        gap: 12px;
        font-size: 0.95rem;
    }

    .nav-wrapper {
        padding: 10px 0;
    }

    /* Hero */
    .hero-carousel-container {
        aspect-ratio: 1 / 1 !important;
        min-height: 280px;
        max-height: 500px;
        border-radius: 0 !important;
    }

    .hero-title-v3 {
        font-size: 1.5rem !important;
    }

    .hero-dots {
        display: flex !important;
        bottom: 12px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }

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

    /* Grids */
    .products-grid,
    .gifts-grid,
    .collection-grid,
    .voucher-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .occasions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .banners-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid-4col {
        grid-template-columns: 1fr;
    }

    .carousel-track .product-card {
        min-width: 100%;
    }

    .recipients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Typography */
    .section-title {
        font-size: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    /* Buttons */
    .btn {
        padding: 10px 18px;
        font-size: 0.82rem;
    }

    .hero-ctas-v3 .btn {
        width: 100%;
        justify-content: center;
    }

    /* Cards */
    .product-card-img {
        height: 160px;
    }

    .voucher-img-wrap {
        height: 120px;
    }

    .voucher-card-body h4 {
        font-size: 0.75rem;
    }

    /* Mobile drawer full-width */
    .mobile-nav-drawer {
        width: 100%;
        right: -100%;
        border-radius: 0;
    }

    /* Footer */
    footer.footer-tkc {
        padding: 40px 0 20px;
    }

    .footer-tkc-copyright-row {
        font-size: 0.7rem;
    }

    /* Form */
    .cta-form-container {
        padding: 18px;
    }

    /* Service */
    .service-page-hero {
        padding: 60px 0 50px;
    }

    .service-page-hero h1 {
        font-size: 1.6rem;
    }

    .section-padding {
        padding: 36px 0;
    }

    /* E-commerce Layout Mobile Fixes */
    .ecommerce-layout {
        flex-direction: column !important;
        gap: 20px !important;
        padding: 20px 10px !important;
    }
    .ecommerce-sidebar {
        width: 100% !important;
        position: relative !important;
        top: 0 !important;
        box-shadow: none !important;
        padding: 15px !important;
        background: #fafafa !important;
        border: 1px solid #eee !important;
    }
    .sidebar-header {
        margin-bottom: 12px !important;
        padding-bottom: 8px !important;
    }
    .category-list {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        gap: 8px !important;
        padding-bottom: 8px !important;
        scrollbar-width: none !important; /* Firefox */
        -ms-overflow-style: none !important; /* IE 10+ */
    }
    .category-list::-webkit-scrollbar {
        display: none !important; /* Safari and Chrome */
    }
    .category-list li {
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
        display: inline-block !important;
    }
    .category-btn {
        padding: 8px 14px !important;
        font-size: 0.85rem !important;
        border-radius: 20px !important;
        background: #fff !important;
        border: 1px solid #ddd !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        width: auto !important;
    }
    .category-btn.active {
        background: var(--primary, #112535) !important;
        color: #fff !important;
        border-color: var(--primary, #112535) !important;
    }
    .category-btn.active .cat-count {
        background: rgba(255, 255, 255, 0.2) !important;
        color: #fff !important;
    }
    .category-btn i {
        margin-right: 0 !important;
    }
}

/* ── Very Small: 360px ─────────────────────────────────────── */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .logo-area img {
        height: 32px !important;
    }

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

    .voucher-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .occasions-grid {
        grid-template-columns: 1fr 1fr;
    }

    .banners-grid {
        grid-template-columns: 1fr;
    }

    .what-we-do-card {
        flex: 0 0 90vw !important;
    }
}

/* What We Do Mobile Rules */
@media (max-width: 768px) {
    .what-we-do-section {
        padding: 45px 0 55px !important;
    }
    .what-we-do-heading {
        font-size: 2.2rem !important;
    }
    .what-we-do-pill-btn {
        padding: 6px 16px !important;
        font-size: 0.82rem !important;
    }
    .what-we-do-card {
        min-width: 270px !important;
        padding: 18px !important;
    }
    .wwd-card-visual {
        height: 140px !important;
    }
}

/* Brands Orbit Mobile Responsive Rules */
@media (max-width: 991px) {
    .brands-orbit-section {
        padding: 60px 0 !important;
    }
    .brands-orbit-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        text-align: center;
    }
    .orbit-content-col {
        padding-left: 0 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .orbit-actions {
        justify-content: center;
    }
    .orbit-container {
        width: 420px;
        height: 420px;
    }
    .orbit-ring-outer { width: 390px; height: 390px; }
    .orbit-ring-mid { width: 280px; height: 280px; }
    .orbit-ring-inner { width: 180px; height: 180px; }
}

@media (max-width: 576px) {
    .brands-orbit-section {
        padding: 45px 0 !important;
    }
    .orbit-container {
        width: 320px !important;
        height: 320px !important;
    }
    .orbit-ring-outer { width: 300px !important; height: 300px !important; }
    .orbit-ring-mid { width: 210px !important; height: 210px !important; }
    .orbit-ring-inner { width: 140px !important; height: 140px !important; }

    .orbit-center-hub {
        width: 85px !important;
        height: 85px !important;
    }
    .hub-logo-container {
        width: 52px !important;
        height: 36px !important;
    }
    .hub-brand-name {
        font-size: 0.62rem !important;
    }
    .node-icon-box {
        width: 42px !important;
        height: 42px !important;
        padding: 6px !important;
    }
    .node-label {
        font-size: 0.58rem !important;
        padding: 1px 5px !important;
        margin-top: 3px !important;
    }
    .orbit-title {
        font-size: 1.65rem !important;
    }
    .orbit-desc {
        font-size: 0.9rem !important;
        margin-bottom: 24px !important;
    }
    .orbit-stats-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        margin-bottom: 24px !important;
    }
    .orbit-stat-card {
        padding: 10px 4px !important;
    }
    .orbit-stat-card .stat-num {
        font-size: 1.2rem !important;
    }
    .orbit-stat-card .stat-label {
        font-size: 0.65rem !important;
    }
    .orbit-actions {
        flex-direction: column;
        width: 100%;
    }
    .orbit-actions .btn {
        width: 100%;
    }

    /* Enhanced Product Cards Mobile Tuning */
    .enhanced-prod-card {
        min-height: 220px !important;
        padding: 14px !important;
    }
    .prod-multi-showcase {
        gap: 8px !important;
        padding: 5px !important;
    }
    .mini-tag {
        font-size: 0.62rem !important;
        padding: 1px 6px !important;
    }

    /* Products Page Mobile Grid & Cards */
    .ecommerce-layout {
        flex-direction: column !important;
        padding: 15px 10px !important;
        gap: 15px !important;
    }
    .ecommerce-sidebar {
        width: 100% !important;
        position: static !important;
        padding: 12px 10px !important;
    }
    .category-list {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 8px !important;
        padding-bottom: 6px !important;
    }
    .category-list li {
        margin-bottom: 0 !important;
        flex-shrink: 0 !important;
    }
    .category-btn {
        padding: 6px 12px !important;
        border-radius: 18px !important;
        font-size: 0.8rem !important;
        white-space: nowrap !important;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .product-card {
        padding: 10px 8px !important;
        border-radius: 10px !important;
    }
    .product-img-box {
        height: 130px !important;
        margin-bottom: 8px !important;
    }
    .product-title {
        font-size: 0.82rem !important;
        min-height: 2.4em !important;
        margin-bottom: 4px !important;
    }
    .product-actions {
        grid-template-columns: 1fr !important;
        gap: 5px !important;
    }
    .btn-view-details, .btn-req-quote {
        padding: 6px 4px !important;
        font-size: 0.72rem !important;
    }

    /* Testimonials Grid Single Column on Mobile */
    .testimonials-grid, .about-testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .testimonial-card-premium {
        padding: 24px 18px !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.04) !important;
    }
}