/* Ultra-Compact Product Grid v14 - Final Banner Polish */

.featured-layout-wrapper .row {
    align-items: stretch !important;
}

.product-thumb {
    border: 1px solid #eee;
    padding: 0;
    background: #fff;
    margin-bottom: 10px;
    width: 100%;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    transition: all 0.2s;
    border-radius: 4px;
    overflow: hidden;
    text-align: center;
}

.product-thumb:hover {
    border-color: #fdad00;
}

.product-thumb .image {
    margin-bottom: 0;
    line-height: 0;
    background: #fdfdfd;
}

.product-thumb .image img {
    width: 100% !important;
    height: 200px !important; 
    object-fit: cover;
    display: block;
}

.product-thumb .content {
    padding: 10px 8px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-thumb h4 a {
    color: #111 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    height: 38px !important; 
    margin-bottom: 5px !important;
}

.product-thumb .price {
    color: #D4282D !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-top: auto !important;
}

/* Big Banner */
.big-thumb-container {
    height: 100%;
}
.big-thumb-container img {
    width: 100% !important;
    height: 100% !important;
    min-height: 570px; /* Aligns with 2 rows of items */
    object-fit: cover;
    display: block;
}

.featured-layout-wrapper .g-2 {
    --bs-gutter-x: 10px;
    --bs-gutter-y: 10px;
}

/* Main Menu Customization */
.main-menu-container,
.main-menu-container #menu,
.main-menu-container .navbar-collapse {
    background: #ffffff !important;
    background-color: #ffffff !important;
    box-shadow: none;
    border-top: 1px solid #e8e8e8 !important;
    border-bottom: 1px solid #e8e8e8 !important;
}
#menu .navbar-nav {
    width: 100%;
    justify-content: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex-direction: row !important;
}
#menu .navbar-collapse {
    justify-content: center !important;
    display: flex !important;
}
#menu .nav-item {
    padding-left: 0 !important;
}
#menu .nav-link,
#menu .nav-link:visited {
    color: #222222 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: 0;
    text-transform: none !important;
    padding: 12px 20px !important;
    transition: color 0.2s;
    background: transparent !important;
}
#menu .nav-link:hover,
#menu .nav-link:focus,
#menu .nav-link.active {
    color: #fdad00 !important;
    background: transparent !important;
}
#menu .dropdown-menu {
    border-radius: 0 0 4px 4px;
    border: 1px solid #e8e8e8;
    border-top: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 0;
    background: #ffffff;
}
#menu .dropdown-item {
    color: #333333 !important;
    font-size: 13px;
    padding: 9px 20px;
    transition: background 0.15s, color 0.15s;
}
#menu .dropdown-item:hover {
    background: #f7f7f7 !important;
    color: #fdad00 !important;
}
.navbar-toggler {
    border: 1px solid #eee;
    padding: 5px 10px;
}
/* Ensure toggler is hidden on desktop */
@media (min-width: 992px) {
    .navbar-toggler {
        display: none !important;
    }
}

/* Standardized Floor Sections */
.floor-section {
    background: #fdfdfd;
    padding-bottom: 20px;
}
.featured-layout-wrapper .col.d-flex {
    display: flex !important;
}
.product-thumb {
    width: 100% !important;
    background: #fff;
    border: 1px solid #f0f0f0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.product-thumb:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: #fdad00;
    transform: translateY(-3px);
}
.product-thumb .image img {
    height: 220px !important;
    object-fit: contain !important;
    padding: 10px;
    background: #fff;
}
.product-thumb h4 a {
    height: 40px !important;
    font-size: 13px !important;
    line-height: 20px !important;
    overflow: hidden;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}
.big-thumb-container img {
    transition: transform 0.5s;
}
.big-thumb-container:hover img {
    transform: scale(1.05);
}

/* Sidebar Module Polish */
.sidebar-module {
    margin-bottom: 30px;
}
.sidebar-title {
    border-bottom: 2px solid #fdad00 !important;
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
}
.sidebar-title h3 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #333;
    padding-bottom: 8px;
    margin: 0;
}
.sidebar-product-list .text-danger {
    color: #e62e04 !important;
    font-size: 15px !important;
}
.sidebar-product-list a {
    transition: color 0.2s;
}
.sidebar-product-list a:hover {
    color: #fdad00 !important;
}

/* Fix White Space Gaps */
.main-menu-container {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
#common-home .container {
    padding-top: 0 !important;
}
#content {
    padding-top: 0 !important;
}
\n
/* Restore Pure White Background & Contrast Service Bar */
body, #content, #common-home {
    background-color: #ffffff !important;
}

.floor-section {
    background-color: #ffffff !important;
    padding-bottom: 30px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}



/* Page Container Spacing */
#common-home .container {
    max-width: 1300px !important;
}\n
/* Definitive Service Feature Bar (Original Site Parameters) */
.service-feature-bar {
    background-color: #EEEEEE !important;
    border-top: 1px solid #DDDDDD !important;
    border-bottom: 1px solid #DDDDDD !important;
    margin-top: 40px !important;
    margin-bottom: 40px !important;
}
.service-feature-bar h5 {
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
}
.service-feature-bar p {
    color: #000000 !important;
    font-size: 12px !important;
}
.service-feature-bar .feature-icon i {
    color: #fdad00 !important; /* Kept theme orange for icons */
}
@media (min-width: 768px) {
    .service-feature-bar .border-start-md {
        border-left: 1px solid #CCCCCC !important;
    }
}

/* Coupon Section (tlwlstore Style) */
.coupon-section {
    padding: 20px 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}
.coupon-wrapper {
    display: flex;
    gap: 15px;
    padding: 10px 0;
}
.coupon-card {
    display: flex;
    min-width: 380px;
    height: 100px;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: relative;
    border: 1px solid #f0f0f0;
}
.coupon-left {
    background: #F66F43;
    width: 125px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
}
.coupon-left .amount {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.1;
}
.coupon-left .condition {
    font-size: 11px;
    margin-top: 4px;
    opacity: 0.9;
}
.coupon-left::after, .coupon-left::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    right: -6px;
    z-index: 2;
}
.coupon-left::before { top: -6px; }
.coupon-left::after { bottom: -6px; }

.coupon-right {
    flex: 1;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
}
.coupon-title {
    font-weight: 700;
    color: #333;
    font-size: 14px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}
.coupon-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.coupon-desc {
    color: #999;
    font-size: 11px;
}
.btn-collect {
    background: #1B90FF;
    color: white !important;
    border: none;
    padding: 5px 15px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s;
}
.btn-collect:hover {
    background: #0076e4;
}

/* Section Title Polish */
.coupon-section-title {
    margin-bottom: 15px;
    padding-left: 5px;
}
.coupon-section-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    border-left: 4px solid #F66F43;
    padding-left: 12px;
}

/* ============================================================
   MOBILE RESPONSIVE - Full Adaptive Design
   ============================================================ */

/* --- Offcanvas Nav --- */
#mobile-nav-offcanvas .offcanvas-nav-item:hover,
#mobile-nav-offcanvas .offcanvas-nav-item:active {
    background: #fff8ee;
    color: #fdad00 !important;
}
#mobile-nav-offcanvas .offcanvas-nav-item {
    font-size: 15px;
    font-weight: 500;
}

@media (max-width: 767.98px) {

    body { padding-bottom: 60px; }

    /* Breadcrumb horizontal scroll */
    .breadcrumb {
        flex-wrap: nowrap;
        overflow-x: auto;
        font-size: 12px;
        padding: 6px 0;
        scrollbar-width: none;
    }
    .breadcrumb::-webkit-scrollbar { display: none; }
    .breadcrumb-item { white-space: nowrap; }

    .container { padding-left: 10px; padding-right: 10px; }

    /* --- Product Detail Page --- */
    #product-info .row.mb-3 { flex-direction: column; }
    #product-info .col-sm {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }
    #product-info .image.magnific-popup { text-align: center; }
    #product-info .image.magnific-popup > a img {
        width: 100% !important;
        height: auto !important;
        max-height: 320px;
        object-fit: contain;
        border-radius: 6px;
    }
    /* Thumbnail strip: horizontal scroll */
    #product-info .image.magnific-popup > div {
        display: flex;
        overflow-x: auto;
        gap: 6px;
        padding: 8px 0;
        scrollbar-width: none;
    }
    #product-info .image.magnific-popup > div::-webkit-scrollbar { display: none; }
    #product-info .image.magnific-popup > div a img {
        width: 64px !important;
        height: 64px !important;
        object-fit: cover;
        flex-shrink: 0;
        border-radius: 4px;
    }

    #product-info h1 { font-size: 18px; margin-top: 12px; }
    #product-info .price-new { font-size: 22px; }
    #product-info .price-old { font-size: 14px; }
    #button-cart, #button-buynow { flex: 1; min-width: 0; }

    /* Fixed bottom buy bar on product page */
    .mobile-cart-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1040;
        background: #fff;
        border-top: 1px solid #eee;
        padding: 8px 12px;
        display: flex;
        gap: 10px;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    .mobile-cart-bar .btn {
        flex: 1;
        font-size: 15px;
        font-weight: 600;
        padding: 10px 0;
        border-radius: 6px;
    }

    /* --- Category / Listing Page --- */
    #product-category h1 { font-size: 18px; }
    #product-list.row { --bs-gutter-x: 8px; --bs-gutter-y: 8px; }
    #product-list .col { padding: 0 4px; }
    .col-6:has(#input-limit) { display: none; }

    /* Product card on mobile */
    .product-thumb .image img { height: 140px !important; }
    .product-thumb h4 a { font-size: 12px !important; }
    .product-thumb .price { font-size: 13px !important; }
    .product-thumb .content { padding: 6px 5px !important; }

    /* --- Homepage featured grid --- */
    .featured-layout-wrapper .col-md-3,
    .featured-layout-wrapper .col-md-9 {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }

    /* --- Bottom Tab Nav --- */
    .mobile-bottom-nav { padding-bottom: env(safe-area-inset-bottom); }
    .mobile-bottom-nav a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        color: #888;
        text-decoration: none;
        padding: 6px 0;
        transition: color 0.2s;
    }
    .mobile-bottom-nav a i { font-size: 18px; margin-bottom: 2px; }
    .mobile-bottom-nav a.active,
    .mobile-bottom-nav a:hover { color: #fdad00; }

    /* --- Checkout --- */
    #checkout-checkout .col-sm-6 { flex: 0 0 100%; max-width: 100%; }
    .table-responsive { font-size: 13px; }

    /* --- Footer --- */
    footer .row > div { margin-bottom: 20px; }
    footer { padding-top: 24px !important; }

    .alert { font-size: 13px; margin: 6px; }
}

/* Tablet 768-991px */
@media (min-width: 768px) and (max-width: 991.98px) {
    #product-list.row { --bs-gutter-x: 10px; }
    .product-thumb .image img { height: 170px !important; }
    #product-info h1 { font-size: 20px; }
}

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

/* Fix footer position so service bar is visible above it */
footer {
  position: relative !important;
  bottom: auto !important;
  background-color: transparent !important;
  padding-top: 0 !important;
  border: none !important;
}
.footer-service-bar {
  background: #fff !important;
  border-top: 1px solid #e0e0e0 !important;
  border-bottom: none !important;
}

/* Service bar standalone styles */
.footer-service-bar {
  background: #fff;
  padding: 30px 0;
  border-top: 1px solid #e8e8e8;
  border-bottom: 1px solid #e8e8e8;
}

/* CACHE BUST OVERRIDES */
#content, #column-left, #column-right {
  padding-bottom: 20px !important;
}
#container {
  min-height: auto !important;
  margin-bottom: 0 !important;
}


/* PayPal button compact */
#paypal_form {
    margin-top: 8px;
}
#paypal_button .paypal-button-container {
    min-height: 35px !important;
}

/* Force FontAwesome 6 icons to display */
[class^="fa-"], [class*=" fa-"] {
    font-family: "Font Awesome 6 Free" !important;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}
.fa-solid, .fas {
    font-weight: 900 !important;
}
.fa-regular, .far {
    font-weight: 400 !important;
}
.fa-brands, .fab {
    font-family: "Font Awesome 6 Brands" !important;
}
