/* ==========================================================================
   Mobile UI/UX Stylesheet for phucvuongprint (Codepencil Theme)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. General Mobile Base & Layout Reset
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 70px !important; /* Extra space for sticky bottom nav */
    }

    /* Prevent body scroll when drawer or search overlay is open */
    body.cpc-drawer-open,
    body.cpc-search-open {
        overflow: hidden !important;
        touch-action: none;
    }
}

/* --------------------------------------------------------------------------
   2. Mobile Header Bar Controls
   -------------------------------------------------------------------------- */
.cpc-mobile-header-bar {
    display: none;
}

@media (max-width: 991px) {
    /* Hide WP Admin Bar on mobile viewports for clean sticky header */
    #wpadminbar {
        display: none !important;
    }

    html, body {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* Hide desktop-only header components on mobile/tablet */
    .header-top,
    .header-banner,
    .header-bottom,
    .header-main-banner,
    .header-main .site-title,
    .header-main .header-actions {
        display: none !important;
    }

    .site-header {
        position: sticky !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 99999 !important;
        background: #ffffff !important;
        box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08) !important;
        overflow: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }

    body.admin-bar .site-header {
        top: 0 !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .header-main {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        z-index: 99999 !important;
        background: #ffffff !important;
        box-shadow: none !important;
        padding: 8px 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .header-commitments {
        display: none !important;
    }

    .header-main .container,
    .header-main__inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        gap: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
        position: relative !important;
        overflow: visible !important;
    }

    /* Show mobile header structure */
    .cpc-mobile-header-bar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 8px !important;
        box-sizing: border-box !important;
    }

    .cpc-mobile-header-left {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex: 1 !important;
        min-width: 0 !important;
        max-width: calc(100% - 48px) !important;
        overflow: hidden !important;
    }

    /* Hamburger menu toggle button */
    .cpc-mobile-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 38px !important;
        height: 38px !important;
        border-radius: 8px !important;
        border: 1px solid #e2e8f0 !important;
        background: #f8fafc !important;
        color: #0f172a !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
    }

    .cpc-mobile-toggle:active {
        background: #e2e8f0 !important;
        transform: scale(0.95) !important;
    }

    .cpc-mobile-toggle .material-symbols-outlined {
        font-size: 22px !important;
    }

    /* Mobile Logo */
    .cpc-mobile-logo {
        display: flex !important;
        align-items: center !important;
        max-height: 38px !important;
        text-decoration: none !important;
        color: #0f172a !important;
        min-width: 0 !important;
        max-width: 145px !important;
        overflow: hidden !important;
    }

    .cpc-mobile-logo img,
    .cpc-mobile-logo .site-logo,
    .cpc-mobile-logo .custom-logo,
    .cpc-mobile-logo a img {
        max-height: 34px !important;
        height: 34px !important;
        max-width: 140px !important;
        width: auto !important;
        object-fit: contain !important;
        display: block !important;
    }

    .cpc-mobile-logo-text {
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
        overflow: hidden !important;
    }

    /* Mobile Header Action Icons */
    .cpc-mobile-header-actions {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
    }

    .cpc-mobile-action-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid #e2e8f0;
        background: #ffffff;
        color: #1e293b;
        position: relative;
        text-decoration: none;
        cursor: pointer;
        transition: all 0.2s ease;
        padding: 0;
    }

    .cpc-mobile-action-btn:active {
        background: #f1f5f9;
        transform: scale(0.95);
    }

    .cpc-mobile-action-btn .material-symbols-outlined {
        font-size: 22px;
    }

    .cpc-mobile-action-btn .badge-count {
        position: absolute;
        top: -4px;
        right: -4px;
        background: #e21736;
        color: #ffffff;
        font-size: 11px;
        font-weight: 700;
        min-width: 18px;
        height: 18px;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        box-shadow: 0 2px 4px rgba(226, 23, 54, 0.3);
    }

}

/* --------------------------------------------------------------------------
   Mobile Full Overlay Search Box & Backdrop
   -------------------------------------------------------------------------- */
.cpc-search-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99990 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cpc-search-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 991px) {
    /* Mobile Search Bar expands cleanly inside header-main, covering header-commitments */
    .header-search {
        display: none !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        background: #ffffff !important;
        z-index: 10000 !important;
        padding: 10px 0 12px 0 !important;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
        border-top: 1px solid #f1f5f9 !important;
        margin: 6px 0 0 0 !important;
        width: 100% !important;
    }

    .header-search.is-active {
        display: block !important;
        animation: cpc-slideDownCover 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes cpc-slideDownCover {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .header-search .cpc-search-wrapper {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        background: #f1f5f9 !important;
        border: 1.5px solid #cbd5e1 !important;
        border-radius: 999px !important;
        height: 42px !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .header-search .cpc-search-wrapper:focus-within {
        border-color: #e21736 !important;
        background: #ffffff !important;
        box-shadow: 0 0 0 3px rgba(226, 23, 54, 0.12) !important;
    }

    /* Magnifying glass icon centered on left */
    .header-search .cpc-search-icon {
        position: absolute !important;
        left: 14px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #64748b !important;
        pointer-events: none !important;
        z-index: 2 !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 20px !important;
        height: 20px !important;
    }

    .header-search .cpc-search-icon svg {
        fill: #64748b !important;
        width: 20px !important;
        height: 20px !important;
        display: block !important;
    }

    /* Search Input Field with generous spacing between icon and placeholder */
    .header-search .cpc-search-field {
        background: transparent !important;
        border: none !important;
        outline: none !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        color: #0f172a !important;
        width: 100% !important;
        height: 100% !important;
        line-height: 42px !important;
        padding-left: 48px !important;
        padding-right: 40px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        box-sizing: border-box !important;
        box-shadow: none !important;
    }

    /* Clear icon centered on right */
    .header-search .cpc-search-clear {
        position: absolute !important;
        right: 10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        background: transparent !important;
        border: none !important;
        color: #94a3b8 !important;
        padding: 4px !important;
        cursor: pointer !important;
        z-index: 2 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Hide submit button, divider, barcode buttons on mobile */
    .header-search .cpc-search-submit-btn,
    .header-search .cpc-search-divider,
    .header-search .cpc-search-qr-btn,
    .header-search .cpc-search-barcode-btn {
        display: none !important;
    }

    .header-search .cpc-search-results {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: #ffffff !important;
        border-radius: 0 0 16px 16px !important;
        box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25) !important;
        max-height: calc(80vh - 80px) !important;
        overflow-y: auto !important;
        margin-top: 6px !important;
        border: 1px solid #cbd5e1 !important;
        z-index: 100000 !important;
    }
}

/* --------------------------------------------------------------------------
   3. Mobile Off-Canvas Navigation Drawer
   -------------------------------------------------------------------------- */
.cpc-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cpc-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.cpc-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: #ffffff;
    z-index: 999999;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cpc-mobile-drawer.is-open {
    transform: translateX(0);
}

/* Drawer Header */
.cpc-drawer-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 20px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cpc-drawer-user {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
}

.cpc-drawer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e21736;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(226, 23, 54, 0.3);
}

.cpc-drawer-user-info {
    display: flex;
    flex-direction: column;
}

.cpc-drawer-user-name {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
}

.cpc-drawer-user-sub {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.cpc-drawer-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cpc-drawer-close:hover,
.cpc-drawer-close:active {
    background: rgba(255, 255, 255, 0.2);
}

/* Drawer Navigation List */
.cpc-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
    -webkit-overflow-scrolling: touch;
}

.cpc-drawer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cpc-drawer-nav li {
    border-bottom: 1px solid #f1f5f9;
}

.cpc-drawer-nav li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    color: #1e293b;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.cpc-drawer-nav li a:hover,
.cpc-drawer-nav li a:active {
    background: #f8fafc;
    color: #e21736;
}

.cpc-drawer-nav-item-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cpc-drawer-nav-item-content .material-symbols-outlined {
    font-size: 20px;
    color: #64748b;
}

.cpc-drawer-nav li a:hover .material-symbols-outlined {
    color: #e21736;
}

/* Submenu inside Drawer */
.cpc-drawer-nav li.has-children > .cpc-drawer-link-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cpc-drawer-arrow {
    padding: 14px 20px;
    color: #94a3b8;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.cpc-drawer-nav li.is-expanded > .cpc-drawer-link-wrapper .cpc-drawer-arrow {
    transform: rotate(180deg);
    color: #e21736;
}

.cpc-drawer-sub-menu {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f8fafc;
}

.cpc-drawer-sub-menu li a {
    padding-left: 52px;
    font-size: 13.5px;
    color: #475569;
}

/* Drawer Footer */
.cpc-drawer-footer {
    padding: 16px;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cpc-drawer-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
}

.cpc-drawer-contact-btn--hotline {
    background: #e21736;
    color: #ffffff;
}

.cpc-drawer-contact-btn--zalo {
    background: #0068ff;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   4. Mobile Sticky Bottom Navigation Bar
   -------------------------------------------------------------------------- */
.cpc-mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .cpc-mobile-bottom-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 62px !important;
        background: rgba(255, 255, 255, 0.96) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border-top: 1px solid rgba(226, 232, 240, 0.8) !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06) !important;
        z-index: 99995 !important;
        align-items: center !important;
        justify-content: space-around !important;
        padding: 0 4px !important;
        padding-bottom: env(safe-area-inset-bottom, 0) !important;
        box-sizing: border-box !important;
    }

    .cpc-bottom-nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 !important;
        height: 100% !important;
        color: #64748b !important;
        text-decoration: none !important;
        font-size: 10.5px !important;
        font-weight: 500 !important;
        position: relative !important;
        transition: color 0.15s ease !important;
        padding: 4px 0 !important;
        box-sizing: border-box !important;
    }

    .cpc-bottom-nav-item .material-symbols-outlined {
        font-size: 23px !important;
        margin-bottom: 2px !important;
        transition: transform 0.15s ease !important;
    }

    .cpc-bottom-nav-item:active .material-symbols-outlined {
        transform: scale(0.88) !important;
    }

    .cpc-bottom-nav-item.is-active {
        color: #e21736 !important;
        font-weight: 700 !important;
    }

    .cpc-bottom-nav-item.is-active .material-symbols-outlined {
        font-variation-settings: 'FILL' 1 !important;
        color: #e21736 !important;
    }

    .cpc-bottom-nav-item .badge-count {
        position: absolute;
        top: 2px;
        right: calc(50% - 18px);
        background: #e21736;
        color: #ffffff;
        font-size: 10px;
        font-weight: 700;
        min-width: 16px;
        height: 16px;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 3px;
        box-shadow: 0 2px 4px rgba(226, 23, 54, 0.4);
    }
}

/* --------------------------------------------------------------------------
   5. Mobile Floating Action Buttons (Removed)
   -------------------------------------------------------------------------- */
.cpc-mobile-float-actions {
    display: none !important;
}

@media (max-width: 768px) {
    .cpc-mobile-float-actions {
        display: none !important;
    }
}

@keyframes cpc-pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* --------------------------------------------------------------------------
   6. Touch-Friendly Product Grid 2-Column Optimization on Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Product grid on home & archive pages */
    .products-grid,
    .cpc-products-grid,
    .product-section .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* Product Card Optimization */
    .product-card,
    .cpc-product-card {
        border-radius: 10px !important;
        padding: 8px !important;
        background: #ffffff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .product-card .product-title,
    .cpc-product-card .title {
        font-size: 13px !important;
        line-height: 1.35 !important;
        margin-bottom: 6px !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 35px;
    }

    .product-card .product-price,
    .cpc-product-card .price {
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #e21736 !important;
    }

    .product-card .btn-quick-add,
    .cpc-product-card .cpc-add-to-cart-btn {
        padding: 8px 10px !important;
        font-size: 12px !important;
        border-radius: 6px !important;
        min-height: 38px;
    }

    /* Horizontal scroll for commitments bar on mobile */
    .header-commitments .container {
        padding: 4px 12px;
        gap: 12px;
    }

    .header-commitments .commitment-item {
        font-size: 12px;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .products-grid,
    .cpc-products-grid,
    .product-section .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .cpc-footer,
    .cpc-footer__inner {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .cpc-footer__grid {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .cpc-footer__inner {
        padding: 24px 14px 80px !important;
    }
}

/* --------------------------------------------------------------------------
   7. Homepage (Trang chủ) Mobile Responsive Design Overhauls
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .home-page {
        margin-top: 10px !important;
    }

    .home-layout-container {
        flex-direction: column !important;
        gap: 0 !important;
    }

    /* Hide static left sidebar on mobile (categories are available in mobile menu & home categories) */
    .home-left-column {
        display: none !important;
        width: 100% !important;
    }

    .home-main-content {
        width: 100% !important;
        flex: none !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .slider-home { order: 1; }
    .home-services { order: 2; margin-top: 16px !important; }
    .home-categories { order: 3; margin-top: 24px !important; }
    .sale-product { order: 4; }
    .new-products { order: 5; }
    .best-products { order: 6; }

    /* Hero Slider on Mobile */
    .home-hero {
        flex-direction: column !important;
        margin-bottom: 16px !important;
    }

    .home-hero .hero-slide {
        flex: 0 0 100% !important;
    }

    .home-hero .nav {
        width: 32px !important;
        height: 32px !important;
    }

    .home-hero .nav svg {
        width: 20px !important;
        height: 20px !important;
    }

    /* Category Grid on Mobile - Modern 4-column App Layout for Danh mục */
    .home-categories .categories-grid,
    .categories-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 12px 6px !important;
    }

    .category-card {
        padding: 6px 4px !important;
        border-radius: 10px !important;
        border: none !important;
        background: transparent !important;
    }

    .category-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .category-image {
        height: 52px !important;
        width: 52px !important;
        margin: 0 auto 6px !important;
        border-radius: 50% !important;
        background: #f1f5f9 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .category-name {
        font-size: 11.5px !important;
        font-weight: 500 !important;
        line-height: 1.2 !important;
        color: #1e293b !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .category-count {
        display: none !important; /* Hide category count to keep 4-column grid clean */
    }

    /* Dịch vụ Grid 2 on Mobile (2 Columns) */
    .home-services .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .home-services .category-card {
        padding: 10px 8px !important;
        border-radius: 12px !important;
        border: 1px solid #e2e8f0 !important;
        background: #ffffff !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    }

    .home-services .category-card:hover {
        border-color: #2563eb !important;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1) !important;
    }

    .home-services .category-image {
        height: 70px !important;
        width: 100% !important;
        margin: 0 0 8px 0 !important;
        border-radius: 8px !important;
        background: #f8fafc !important;
        box-shadow: none !important;
    }

    .home-services .category-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 8px !important;
    }

    .home-services .category-name {
        font-size: 13px !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        color: #0f172a !important;
        margin-bottom: 3px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .home-services .category-count {
        display: inline-block !important;
        font-size: 11.5px !important;
        color: #64748b !important;
        font-weight: 500 !important;
    }

    /* Product Section Headers */
    .sale-product h2,
    .new-products h2,
    .best-products h2,
    .home-categories h2,
    .home-services h2 {
        font-size: 17px !important;
        font-weight: 700 !important;
        margin-bottom: 14px !important;
        position: relative;
        padding-left: 12px;
        color: #0f172a !important;
    }

    .sale-product h2::before,
    .new-products h2::before,
    .best-products h2::before,
    .home-categories h2::before,
    .home-services h2::before {
        content: '';
        position: absolute;
        left: 0;
        top: 2px;
        bottom: 2px;
        width: 4px;
        background: #e21736;
        border-radius: 4px;
    }

    /* Product Grid 2-Column layout for Homepage Sections */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* Mobile Offcanvas for categories */
    .offcanvas-content {
        width: 88% !important;
        max-width: 360px !important;
    }

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

/* --------------------------------------------------------------------------
   8. Mobile Product Archive Off-Canvas Filter
   -------------------------------------------------------------------------- */
.cpc-mobile-filter-bar {
    display: none;
}

.cpc-filter-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cpc-filter-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 991px) {
    /* Hide clunky desktop sort block in grid header on mobile */
    .cpc-grid-header .cpc-sort {
        display: none !important;
    }

    .cpc-grid-header {
        margin-bottom: 12px !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .cpc-grid-header .entry-title {
        font-size: 16px !important;
    }

    /* Mobile Archive Toolbar Action Bar (Sticky 100vw Full Width Background) */
    .cpc-mobile-filter-bar {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        margin-top: 0 !important;
        margin-bottom: 14px !important;
        position: sticky !important;
        top: 52px !important;
        z-index: 990 !important;
        background: #ffffff !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        padding: 8px 12px !important;
        border-bottom: 1px solid #e2e8f0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
    }

    .cpc-mobile-filter-trigger {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        padding: 8px 12px !important;
        height: 38px !important;
        border-radius: 8px !important;
        border: 1px solid #cbd5e1 !important;
        background: #ffffff !important;
        color: #0f172a !important;
        font-weight: 600 !important;
        font-size: 13px !important;
        cursor: pointer !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
        flex-shrink: 0 !important;
    }

    .cpc-mobile-filter-trigger:active {
        background: #f8fafc !important;
        transform: scale(0.97) !important;
    }

    .cpc-mobile-filter-trigger .badge-count {
        background: #e21736 !important;
        color: #ffffff !important;
        font-size: 11px !important;
        border-radius: 999px !important;
        padding: 1px 6px !important;
        font-weight: 700 !important;
    }

    .cpc-mobile-sort-wrap {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex: 1 !important;
        justify-content: flex-end !important;
    }

    .cpc-mobile-select-box {
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 8px !important;
        height: 38px !important;
        padding: 0 8px 0 28px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
        max-width: 170px !important;
        flex: 1 !important;
    }

    .cpc-mobile-select-box .select-icon {
        position: absolute !important;
        left: 6px !important;
        font-size: 18px !important;
        color: #64748b !important;
        pointer-events: none !important;
    }

    .cpc-sort-select-mobile {
        width: 100% !important;
        height: 100% !important;
        border: none !important;
        background: transparent !important;
        font-size: 12.5px !important;
        font-weight: 600 !important;
        color: #0f172a !important;
        padding: 0 !important;
        cursor: pointer !important;
        outline: none !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }

    .cpc-mobile-onsale-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 38px !important;
        padding: 0 10px !important;
        border-radius: 8px !important;
        border: 1px solid #cbd5e1 !important;
        background: #ffffff !important;
        color: #475569 !important;
        font-size: 12.5px !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        flex-shrink: 0 !important;
        transition: all 0.2s ease !important;
        user-select: none !important;
        margin: 0 !important;
    }

    .cpc-mobile-onsale-btn.is-active {
        background: #ffe4e6 !important;
        border-color: #e21736 !important;
        color: #e21736 !important;
    }

    .cpc-products-layout {
        grid-template-columns: 1fr !important;
    }

    /* Off-Canvas Filter Drawer on Mobile (Left Side) */
    .cpc-products-filter {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        right: auto !important;
        width: 320px !important;
        max-width: 85vw !important;
        background: #ffffff !important;
        z-index: 999999 !important;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15) !important;
        overflow-y: auto !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 20px 16px 80px 16px !important;
    }

    .cpc-products-filter.is-mobile-open {
        transform: translateX(0) !important;
    }

    .cpc-mobile-filter-close-btn {
        display: flex !important;
        background: transparent;
        border: none;
        color: #64748b;
        cursor: pointer;
        padding: 4px;
        align-items: center;
        justify-content: center;
    }

    .cpc-mobile-filter-close-btn:hover {
        color: #e21736;
    }
}

/* --------------------------------------------------------------------------
   9. Mobile Single Product Page UI/UX Optimization
   -------------------------------------------------------------------------- */
.cpc-mobile-single-purchase-bar {
    display: none;
}

@media (max-width: 991px) {
    /* 1. Layout Stack for Single Product */
    .single-product .product-summary {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        margin-bottom: 24px !important;
    }

    .single-product .product-left-column,
    .single-product .product-info,
    .single-product .product-sidebar-wrapper {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        position: relative !important;
        top: auto !important;
    }

    .product-info-card,
    .product-left-column,
    .product-sidebar-wrapper {
        padding: 16px !important;
        border-radius: 12px !important;
    }

    /* 2. Gallery Slider on Mobile */
    .cpc-product-gallery-slider {
        margin-bottom: 10px !important;
    }

    .cpc-gallery-main {
        height: 280px !important;
        max-height: 70vw !important;
        border-radius: 10px !important;
    }

    .cpc-gallery-thumbs {
        gap: 6px !important;
        margin-top: 8px !important;
    }

    .cpc-gallery-thumb {
        width: 52px !important;
        height: 52px !important;
        border-radius: 6px !important;
    }

    /* 3. Product Title & Price on Mobile */
    .single-product .product-title {
        font-size: 18px !important;
        line-height: 1.35 !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        margin-bottom: 8px !important;
    }

    .single-product .product-price {
        font-size: 22px !important;
        font-weight: 800 !important;
        color: #e21736 !important;
    }

    .single-product .product-price .price ins {
        font-size: 22px !important;
        font-weight: 800 !important;
        color: #e21736 !important;
    }

    .single-product .product-price .price del {
        font-size: 13px !important;
    }

    /* 4. Variation Swatches on Mobile */
    .cpc-variation-options {
        gap: 6px !important;
    }

    .cpc-variation-option {
        padding: 8px 12px !important;
        min-width: 60px !important;
        border-radius: 8px !important;
        font-size: 13px !important;
    }

    .cpc-variation-option--rich {
        padding: 6px 10px !important;
    }

    .cpc-option-image {
        width: 32px !important;
        height: 32px !important;
    }

    /* 5. Sticky Mobile Single Product Purchase Action Bar */
    .cpc-mobile-single-purchase-bar {
        position: fixed !important;
        bottom: 56px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 99990 !important;
        background: #ffffff !important;
        padding: 8px 12px !important;
        box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.12) !important;
        border-top: 1px solid #e2e8f0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .cpc-mobile-purchase-call {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 42px !important;
        height: 42px !important;
        border-radius: 8px !important;
        background: #f1f5f9 !important;
        border: 1px solid #cbd5e1 !important;
        color: #0f172a !important;
        flex-shrink: 0 !important;
        text-decoration: none !important;
    }

    .cpc-mobile-purchase-addcart {
        flex: 1 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        height: 42px !important;
        border-radius: 8px !important;
        background: #fff0f2 !important;
        border: 1px solid #fecaca !important;
        color: #e21736 !important;
        font-weight: 700 !important;
        font-size: 13px !important;
        cursor: pointer !important;
        text-decoration: none !important;
    }

    .cpc-mobile-purchase-buynow {
        flex: 1.2 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        height: 42px !important;
        border-radius: 8px !important;
        background: #e21736 !important;
        border: none !important;
        color: #ffffff !important;
        font-weight: 700 !important;
        font-size: 13px !important;
        cursor: pointer !important;
        text-decoration: none !important;
        box-shadow: 0 3px 8px rgba(226, 23, 54, 0.3) !important;
    }

    /* Extra padding at page bottom for single product page */
    body.single-product {
        padding-bottom: 115px !important;
    }
}

/* --------------------------------------------------------------------------
   10. Off-Canvas Left 2-Column Categories & Services Drawer
   -------------------------------------------------------------------------- */
.cpc-categories-offcanvas-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cpc-categories-offcanvas-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.cpc-categories-offcanvas-drawer {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 360px;
    max-width: 90vw;
    background: #ffffff;
    z-index: 999999;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
}

.cpc-categories-offcanvas-backdrop.is-open .cpc-categories-offcanvas-drawer {
    transform: translateX(0);
    visibility: visible !important;
}

.cpc-categories-offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.cpc-offcanvas-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.cpc-offcanvas-title .material-symbols-outlined {
    color: #e21736;
    font-size: 22px;
}

.cpc-categories-offcanvas-close {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
}

.cpc-categories-offcanvas-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px 60px 12px;
}

/* 2-Column Grid Layout */
.cpc-cat-serv-2cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cpc-col-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid #e21736;
}

.cpc-col-title .material-symbols-outlined {
    font-size: 18px;
    color: #e21736;
}

.cpc-cat-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cpc-categories-offcanvas-body .cpc-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cpc-categories-offcanvas-body .cpc-cat-item:hover,
.cpc-categories-offcanvas-body .cpc-cat-item:active {
    background: #fff0f2;
    border-color: #fecaca;
}

.cpc-cat-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.cpc-cat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cpc-cat-thumb .material-symbols-outlined {
    color: #64748b;
    font-size: 22px;
}

.cpc-cat-name {
    font-size: 11.5px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.cpc-cat-count {
    font-size: 10px;
    color: #64748b;
    margin-top: 2px;
}

/* --------------------------------------------------------------------------
   11. Mobile Cart & Checkout Pages UI/UX Overhaul
   -------------------------------------------------------------------------- */
@media (max-width: 899px) {
    /* --- CART PAGE MOBILE STYLING --- */
    .page-cart .cart-wrap {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        width: 100% !important;
    }

    .page-cart .cart-left,
    .page-cart .cart-summary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-cart .cart-card {
        border: 1px solid #cbd5e1 !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    }

    .page-cart .cpc-cart-head-flex {
        padding: 12px 14px !important;
        background: #f8fafc !important;
        border-bottom: 1px solid #e2e8f0 !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .page-cart .cart-card__selected-count {
        font-size: 13.5px !important;
        font-weight: 600 !important;
        color: #0f172a !important;
    }

    .page-cart .cart-card__tools {
        gap: 10px !important;
    }

    .page-cart .cpc-cart-remove-all {
        font-size: 13px !important;
        padding: 0 !important;
    }

    .page-cart .cpc-cart-remove-all .material-icons {
        font-size: 18px !important;
    }

    .page-cart .cart-tools-divider {
        margin: 0 4px !important;
        height: 18px !important;
    }

    .page-cart .cpc-select-all {
        font-size: 13px !important;
    }

    /* Cart Item Card Structure 2 Rows on Mobile */
    .page-cart .cart-item {
        padding: 14px 12px !important;
        border-top: 1px solid #f1f5f9 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-cart .cart-item__actions {
        display: grid !important;
        grid-template-columns: 22px 58px 1fr 32px !important;
        grid-template-rows: auto auto !important;
        gap: 8px 10px !important;
        align-items: center !important;
        width: 100% !important;
    }

    .page-cart .cart-item__actions .cart-item__select {
        grid-column: 1 !important;
        grid-row: 1 !important;
        justify-self: start !important;
    }

    .page-cart .cart-item__actions .cart-item__thumb {
        grid-column: 2 !important;
        grid-row: 1 !important;
        width: 58px !important;
        height: 58px !important;
        border-radius: 8px !important;
        border: 1px solid #cbd5e1 !important;
    }

    .page-cart .cart-item__actions .cart-item__info {
        grid-column: 3 !important;
        grid-row: 1 !important;
        min-width: 0 !important;
        padding-right: 4px !important;
    }

    .page-cart .cart-item__actions .cart-item__title {
        font-size: 13.5px !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        margin: 0 !important;
    }

    .page-cart .cart-item__actions .cart-item__title a {
        color: #0f172a !important;
        text-decoration: none !important;
    }

    .page-cart .cart-item__actions .cart-remove {
        grid-column: 4 !important;
        grid-row: 1 !important;
        align-self: start !important;
        justify-self: end !important;
    }

    .page-cart .cart-item__actions .cart-remove a {
        color: #94a3b8 !important;
        width: 28px !important;
        height: 28px !important;
    }

    .page-cart .cart-item__actions .cart-item__meta {
        grid-column: 2 / span 2 !important;
        grid-row: 2 !important;
        font-weight: 700 !important;
        color: #e21736 !important;
        font-size: 15px !important;
    }

    .page-cart .cart-item__actions .qty {
        grid-column: 4 !important;
        grid-row: 2 !important;
        justify-self: end !important;
        height: 32px !important;
        border-radius: 6px !important;
        border: 1px solid #cbd5e1 !important;
    }

    .page-cart .cart-item__actions .qty button {
        padding: 4px 8px !important;
        font-size: 14px !important;
    }

    .page-cart .cart-item__actions .qty input {
        width: 36px !important;
        height: 32px !important;
        font-size: 13px !important;
    }

    .page-cart .cart-item__actions .cart-item__subtotal {
        display: none !important;
    }

    .page-cart .cart-summary {
        border-radius: 12px !important;
        border: 1px solid #cbd5e1 !important;
        padding: 16px !important;
        background: #ffffff !important;
        box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06) !important;
    }

    .page-cart .cart-summary .btn-buy {
        height: 46px !important;
        line-height: 46px !important;
        padding: 0 !important;
        font-size: 15px !important;
        border-radius: 10px !important;
        background: #e21736 !important;
        box-shadow: 0 4px 12px rgba(226, 23, 54, 0.25) !important;
    }

    /* --- CHECKOUT PAGE MOBILE COMPACT STYLING --- */
    .page-checkout,
    .page-checkout *,
    .page-checkout *::before,
    .page-checkout *::after {
        box-sizing: border-box !important;
    }

    main.page-checkout {
        padding-left: 8px !important;
        padding-right: 8px !important;
        padding-top: 10px !important;
        padding-bottom: 80px !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .page-checkout .checkout-wrap,
    .page-checkout .checkout-left,
    .page-checkout .checkout-summary,
    .page-checkout .checkout-section,
    .page-checkout .checkout-form {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .page-checkout .checkout-address-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-checkout .entry-title {
        font-size: 18px !important;
        font-weight: 700 !important;
        margin-bottom: 10px !important;
    }

    .page-checkout .checkout-wrap {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .page-checkout .checkout-left,
    .page-checkout .checkout-summary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-checkout .checkout-form {
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .page-checkout .checkout-section {
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 10px !important;
        padding: 12px 10px !important;
        margin-bottom: 10px !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
    }

    .page-checkout .checkout-section h2 {
        font-size: 15px !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        margin-bottom: 10px !important;
    }

    .page-checkout .form-row--3col,
    .page-checkout .form-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin-bottom: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-checkout .form-group {
        margin-bottom: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-checkout .form-group label {
        font-size: 12.5px !important;
        font-weight: 600 !important;
        color: #334155 !important;
        margin-bottom: 3px !important;
        display: block !important;
    }

    .page-checkout input[type="text"],
    .page-checkout input[type="tel"],
    .page-checkout input[type="email"],
    .page-checkout select,
    .page-checkout textarea {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 40px !important;
        padding: 6px 10px !important;
        border: 1.5px solid #cbd5e1 !important;
        border-radius: 8px !important;
        font-size: 13.5px !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
    }

    .page-checkout #saved-addresses-list {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-checkout .select2-container,
    .page-checkout .select2-dropdown,
    .page-checkout .select2-selection,
    .page-checkout .select2-selection__rendered {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-checkout .select2-container--default .select2-selection--single {
        height: 40px !important;
        border: 1.5px solid #cbd5e1 !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Shipping & Payment Method Cards on Mobile */
    .page-checkout .shipping-method,
    .page-checkout .payment-method {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 10px !important;
        border: 1.5px solid #cbd5e1 !important;
        border-radius: 8px !important;
        background: #f8fafc !important;
        margin-bottom: 6px !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-checkout .shipping-label,
    .page-checkout .payment-label,
    .page-checkout .payment-text,
    .page-checkout .shipping-text {
        flex: 1 !important;
        min-width: 0 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    .page-checkout .shipping-method input:checked ~ .shipping-label,
    .page-checkout .payment-method input:checked ~ .payment-label {
        color: #0f172a !important;
    }

    .page-checkout .checkout-summary {
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 10px !important;
        padding: 12px 10px !important;
        box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06) !important;
    }

    .page-checkout .order-item {
        padding: 8px 0 !important;
        gap: 8px !important;
    }

    .page-checkout .checkout-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 14px !important;
        border-top: 1px solid #f1f5f9 !important;
        padding-top: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-checkout #checkout-submit {
        width: 100% !important;
        max-width: 100% !important;
        height: 48px !important;
        background: #e21736 !important;
        border-radius: 10px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        border: none !important;
        box-shadow: 0 4px 14px rgba(226, 23, 54, 0.3) !important;
        cursor: pointer !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    .page-checkout .btn-back-cart,
    .page-checkout .checkout-actions .button.btn-back-cart,
    .page-checkout .checkout-actions a {
        width: 100% !important;
        max-width: 100% !important;
        height: 46px !important;
        min-height: 46px !important;
        line-height: 46px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #f1f5f9 !important;
        border: 1.5px solid #cbd5e1 !important;
        color: #334155 !important;
        border-radius: 10px !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        padding: 0 16px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
}




