/*
Theme Name: BuyLanka
Theme URI: https://buylanka.lk
Author: BuyLanka Developer
Author URI: https://asanka.buylanka.lk
Description: A lightweight, mobile-first multi-vendor and service provider marketplace theme featuring a WhatsApp Catalog grid, user management, single service detail views, and custom templates.
Version: 1.1.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: buylanka
Tags: marketplace, e-commerce, grid-layout, custom-templates, multi-vendor, responsive
*/

/* ==========================================================================
   1. Root Variables & Reset
   ========================================================================== */
:root {
    --brand-orange: #F15A24;
    --brand-orange-hover: #D9480F;
    --brand-truck-dark: #2D3142;
    --brand-dark-hover: #1E202C;
    --whatsapp-green: #25D366;
    --brand-border: #e2e8f0;
    --brand-gray-dark: #2d3142;
    --brand-brown-light: #f1f5f9;
    --offer-badge-red: #e11d48;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    background: #f7f9fa; 
    color: #222; 
}

a { 
    color: var(--brand-orange); 
}

a:hover { 
    color: var(--brand-orange-hover); 
}
/* ==========================================================================
   2. Global Buttons & Primary Action Components (Including Add Listing Button)
   ========================================================================== */
.btn-primary,
.register-btn,
.search-btn,
.add-listing-btn,
input[type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background-color: var(--brand-orange) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 24px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    text-align: center !important;
    transition: background-color 0.2s ease, transform 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(241, 90, 36, 0.2) !important;
}

.btn-primary:hover,
.register-btn:hover,
.search-btn:hover,
.add-listing-btn:hover,
input[type="submit"]:hover {
    background-color: var(--brand-orange-hover) !important;
    transform: translateY(-2px);
    color: #ffffff !important;
    text-decoration: none !important;
}

.login-btn,
.btn-secondary {
    background-color: #F1F5F9 !important;
    color: var(--brand-truck-dark) !important;
}

.login-btn:hover,
.btn-secondary:hover {
    background-color: #E2E8F0 !important;
}

/* Mobile responsive handling for the header add button */
@media (max-width: 768px) {
    .add-listing-btn {
        width: 38px !important;
        height: 38px !important;
        padding: 0 !important;
        border-radius: 50% !important;
    }
    .add-listing-btn .btn-text { 
        display: none !important; 
    }
    .add-listing-btn i { 
        margin: 0 !important; 
    }

}
/* ==========================================================================
   Mobile Product Image & Detail Container Layout Updates
   ========================================================================== */
@media (max-width: 600px) {
    .product-top-card {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}

@media (max-width: 481px) {
    .product-single-container {
        max-width: 1100px;
        margin: 10px auto;
        padding: 0px 10px !important;
    }

    .product-gallery-box {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f8fafc;
        border-radius: 8px;
        padding: 0px !important;
        height: auto;
        position: relative;
    }

    .product-gallery-box img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* ==========================================================================
   3. Header & Top Bar Navigation
   ========================================================================== */
.top-bar {
    background-color: var(--brand-truck-dark);
    color: #ffffff;
    font-size: 13px;
    padding: 8px 0;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-right {
    display: flex;
    gap: 20px;
}

.top-bar-right a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.top-bar-right a:hover {
    opacity: 0.8;
}

.main-header {
    background: #ffffff;
    padding: 12px 0;
    border-bottom: 1px solid var(--brand-border);
}

.main-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-logo img {
    max-height: 44px;
    width: auto;
    display: block;
}

.header-search {
    flex: 1;
    max-width: 650px;
}

.header-search .search-form {
    display: flex;
    width: 100%;
}

.header-search .search-field {
    flex: 1;
    padding: 9px 14px;
    border: 1px solid #cbd5e1;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-size: 14px;
    outline: none;
    background: #ffffff;
}

.header-search .search-field:focus {
    border-color: var(--brand-truck-dark);
}

.header-search .search-submit {
    background-color: var(--brand-truck-dark) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 9px 20px;
    border-radius: 0 6px 6px 0;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.header-search .search-submit:hover {
    background-color: var(--brand-dark-hover) !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn,
.mobile-nav-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f1f5f9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-truck-dark);
    text-decoration: none;
    font-size: 17px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-nav-toggle {
    display: none;
}

.icon-btn:hover,
.mobile-nav-toggle:hover,
.mobile-nav-toggle.is-active {
    background-color: #e2e8f0;
    color: var(--brand-orange);
}

.icon-btn.cart-btn {
    position: relative !important;
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--brand-orange) !important;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.site-nav {
    background-color: #ffffff;
    border-top: 1px solid var(--brand-border);
    border-bottom: 1px solid var(--brand-border);
}

.site-nav ul,
.site-nav .primary-menu-list {
    list-style: none !important;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

.site-nav li {
    list-style: none !important;
    position: relative;
}

.site-nav a {
    display: block;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-truck-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-nav a:hover,
header .main-navigation a:hover,
header nav a:hover,
.site-nav .current-menu-item > a {
    color: var(--brand-orange) !important;
}

/* ==========================================================================
   4. Hero Banner & "Explore Marketplace" Button Style
   ========================================================================== */
.hero-main-banner.hero-slider {
    flex-grow: 1;
    border-radius: 14px;
    padding: 0 !important;
    color: #fff;
    position: relative;
    overflow: hidden;
    min-height: 320px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.hero-slides-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    box-sizing: border-box;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.6) 30%, rgba(15, 23, 42, 0.2) 60%);
    display: flex;
    align-items: center;
    padding: 0 35px;
}

.hero-banner-text {
    max-width: 520px;
    color: #ffffff;
    z-index: 3;
    margin-top: 60px;
}

.hero-banner-text h1 {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.hero-banner-text p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 22px;
    color: #cbd5e1;
}

/* Explore Marketplace Button Style */
.hero-banner-text .btn-primary {
    display: inline-block;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 700;
    background: #f97316 !important;
    color: #ffffff !important;
    border-radius: 30px !important;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-banner-text .btn-primary:hover {
    background: #ea580c !important;
    transform: translateY(-2px);
}

.hero-slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-slider-dots .dot.active {
    background: var(--brand-orange);
    width: 26px;
    border-radius: 12px;
}

/* ==========================================================================
   5. Marketplace Layout & Blocks
   ========================================================================== */
.buylanka-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

.landing-block { margin-top: 35px; }

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 30px 0 15px;
    color: var(--brand-truck-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

.section-title a {
    font-size: 14px;
    color: var(--brand-orange);
    text-decoration: none;
}

.hero-wrapper { 
    display: flex; 
    gap: 20px; 
    margin-top: 20px; 
    align-items: stretch;
}

.hero-sidebar { 
    width: 280px; 
    background: #fff; 
    border: 1px solid #e2e8f0; 
    border-radius: 8px; 
    flex-shrink: 0; 
    overflow: hidden; 
    height: fit-content; 
}

.hero-sidebar-toggle {
    display: none;
    width: 100%;
    background: #ffffff;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-truck-dark);
    text-align: left;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
}

.hero-sidebar ul.hero-sidebar-menu { list-style: none; margin: 0; padding: 0; }
.hero-sidebar ul.hero-sidebar-menu li { border-bottom: 1px solid #f1f5f9; }
.hero-sidebar ul.hero-sidebar-menu li:last-child { border-bottom: none; }
.hero-sidebar ul.hero-sidebar-menu a { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; color: #333; text-decoration: none; font-size: 14px; font-weight: 500; }
.hero-sidebar ul.hero-sidebar-menu a:hover { background: #fff7f5; color: var(--brand-orange); }

.trust-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.trust-item { 
    font-weight: 600; 
    color: var(--brand-truck-dark); 
    font-size: 13px; 
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.promo-banner {
    background: #5a20df;
    border-radius: 16px;
    color: #fff;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.promo-banner-2 {
    background: linear-gradient(90deg, var(--brand-truck-dark) 0%, #1f2937 100%);
}

.promo-content h2 { font-size: 28px; margin: 0 0 10px; color: #fff; }
.promo-content p { margin-bottom: 20px; opacity: 0.9; }

.btn-white {
    background: #ffffff;
    color: var(--brand-truck-dark);
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
}

.btn-white:hover { background: #f1f5f9; }

.footer-banner-strip {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 24px;
    margin: 40px 0;
    text-align: center;
    color: var(--brand-truck-dark);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.category-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 10px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.category-card:hover {
    border-color: var(--brand-orange) !important;
    transform: translateY(-2px);
    background: #fff;
}

.category-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 10px;
}

.category-card span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-truck-dark);
}

.pagination-wrapper { margin: 40px 0; text-align: center; }
.pagination-wrapper .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.pagination-wrapper .page-numbers.current {
    background: var(--brand-orange);
    color: #fff;
    border-color: var(--brand-orange);
}

/* ==========================================================================
   6. Unified Responsive Product Grid Columns & Breakpoints
   ========================================================================== */
.product-grid,
.catalog-grid,
.card-mini-grid,
.new-card-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
    padding: 15px 0;
}

/* Large Desktop Screens (1240px and below): 6 columns */
@media (max-width: 1240px) {
    .product-grid,
    .catalog-grid,
    .card-mini-grid,
    .new-card-grid {
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 14px;
    }
}

/* Medium Screens / Tablets (1000px and below): 5 columns */
@media (max-width: 1000px) {
    .product-grid,
    .catalog-grid,
    .card-mini-grid,
    .new-card-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 12px;
    }
}

/* Tablet / Smaller Screens (860px and below): 4 columns */
@media (max-width: 860px) {
    .product-grid,
    .catalog-grid,
    .card-mini-grid,
    .new-card-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 10px;
    }
}

/* Small Screens (600px and below): 3 columns */
@media (max-width: 600px) {
    .product-grid,
    .catalog-grid,
    .card-mini-grid,
    .new-card-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px;
    }
}

/* Mobile Screens (450px and below): 2 columns */
@media (max-width: 450px) {
    .product-grid,
    .catalog-grid,
    .card-mini-grid,
    .new-card-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px;
    }

    .product-card h3,
    .catalog-card-title,
    .compact-card-title,
    .trending-card-title,
    .hot-deal-title,
    .card-mini-title-overlay h3 {
        font-size: 0.72rem !important;
    }

    .product-price,
    .catalog-card-price,
    .compact-card-price,
    .trending-card-price,
    .hot-deal-current-price {
        font-size: 0.80rem !important;
    }
}

/* ==========================================================================
   7. Global Title Truncation & Additional Component Styles
   ========================================================================== */
.product-card h3,
.trending-card-title,
.compact-card-title,
.catalog-card-title,
.featured-product-card .featured-card-title-overlay h3,
.hot-deal-title,
.card-mini-title-overlay h3 {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word;
}

.whatsapp-btn { 
    background-color: var(--whatsapp-green, #25D366); 
    color: #ffffff !important; 
    padding: 9px 9px; 
    border-radius: 6px; 
    font-weight: 600; 
    text-align: center; 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 6px; 
    margin-top: auto; 
    font-size: 12px; 
    transition: background-color 0.2s ease;
}

.whatsapp-btn:hover { 
    background-color: #128c7e; 
}

/* General Layout Breakpoints (992px & below) */
@media (max-width: 992px) {
    .hero-sidebar-toggle { display: flex; }
    .hero-sidebar ul.hero-sidebar-menu { display: none; }
    .hero-sidebar.is-open ul.hero-sidebar-menu { display: block; border-top: 1px solid #e2e8f0; }
    .hero-sidebar.is-open .toggle-icon { transform: rotate(180deg); }
    .promo-banner { flex-direction: column; text-align: center; gap: 20px; padding: 25px; }

    .mobile-nav-toggle { display: flex; }
    .site-nav { display: none; width: 100%; background-color: #ffffff; border-bottom: 1px solid var(--brand-border); }
    .site-nav.is-active { display: block; }
    .site-nav ul,
    .site-nav .primary-menu-list { flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 0; }
    .site-nav li { width: 100%; border-bottom: 1px solid #f1f5f9; }
    .site-nav li:last-child { border-bottom: none; }
    .site-nav a { padding: 12px 16px; width: 100%; }
}

@media (max-width: 880px) {
    .top-bar-right { display: none; }
    .top-bar-inner { justify-content: center; text-align: center; }
}

/* Mobile Header, Seller Section & Details Page (768px & below) */
@media (max-width: 768px) {
    .main-header { padding: 10px 0; }
    .main-header-inner { flex-wrap: wrap; gap: 10px; }
    .site-logo { order: 1; }
    .header-actions { order: 2; gap: 8px; }
    .header-search { order: 3; width: 100%; max-width: 100%; margin-top: 4px; }
    .product-top-card { grid-template-columns: 1fr; }

    .add-listing-btn {
        width: 40px;
        height: 40px;
        padding: 0 !important;
        border-radius: 50% !important;
        justify-content: center;
        font-size: 16px;
    }
    .add-listing-btn .btn-text { display: none; }
    .add-listing-btn i { margin: 0; }

    .store-hero-body {
        padding: 12px 12px 12px 12px !important;
    }

    .store-hero-banner {
        width: 100% !important;
        position: relative !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: flex-end !important;
        background-color: #0f172a !important;
    }
}

/* Mobile Screens (1024px & below) */
@media (max-width: 1024px) {
    .cats-circle-grid { justify-content: center; }
}

/* Mobile Screens (900px & below) */
@media (max-width: 900px) {
    .cats-circle-grid { justify-content: center; }
}

/* Mobile Screens (768px & below) */
@media (max-width: 768px) {
    .cats-circle-grid { justify-content: center; }
}
	
/* ==========================================================================
   Mobile Responsiveness for Home Hero Banner (640px & below)
   ========================================================================== */
@media (max-width: 640px) {
    .hero-wrapper {
        flex-direction: column-reverse;
        margin-top: 10px;
    }

    .hero-sidebar {
        width: 100%;
    }

    .hero-main-banner.hero-slider {
        height: 240px !important;
        min-height: 240px !important;
        border-radius: 10px;
    }

    .hero-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
    }

    .hero-slide-overlay {
        padding: 0 16px;
        /*background: linear-gradient(0deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.65) 60%, rgba(15, 23, 42, 0.3) 100%);*/
    }

    .hero-banner-text {
        max-width: 100%;
    }

    .hero-banner-text h1 {
        font-size: 1.15rem;
        margin-bottom: 6px;
        line-height: 1.25;
    }

    .hero-banner-text p {
        font-size: 12px;
        margin-bottom: 12px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-banner-text .btn-primary {
        padding: 6px 16px;
        font-size: 11px;
    }

    .hero-slider-dots {
        bottom: 8px;
    }

    .hero-slider-dots .dot {
        width: 6px;
        height: 6px;
    }

    .hero-slider-dots .dot.active {
        width: 16px;
    }
}

/* Small Mobile Screens (481px) */
@media (max-width: 481px) {
    .product-gallery-box {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f8fafc;
        border-radius: 8px;
        padding: 0px;
        height: auto;
        position: relative;
    }
 
    .action-extra-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 15px;
        border-bottom: 1px solid #f1f5f9;
        margin-bottom: 15px;
    }
    .product-single-container {
        max-width: 1100px;
        margin: 10px auto;
        padding: 0px 10px;
    }
	.trust-bar {
	display: flex;
	justify-content: space-around;
	align-items: center;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	padding: 9px;
	border-radius: 8px;
	margin-top: 20px;
	flex-wrap: wrap;
	gap: 10px;
}
.landing-block {
	margin-top: 20px;
}
}
/* ==========================================================================
   Responsive Product Grid Columns (Descending Order)
   ========================================================================== */

/* Default / Extra Large Desktop Screens (Above 1240px): 7 columns */
.product-grid,
.catalog-grid,
.card-mini-grid,
.new-card-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
    padding: 15px 0;
}

/* Large Desktop Screens (1240px and below): 6 columns */
@media (max-width: 1240px) {
    .product-grid,
    .catalog-grid,
    .card-mini-grid,
    .new-card-grid {
        grid-template-columns: repeat(6, 1fr) !important;
        gap: 14px;
    }
}

/* Medium Screens / Tablets (1000px and below): 5 columns */
@media (max-width: 1000px) {
    .product-grid,
    .catalog-grid,
    .card-mini-grid,
    .new-card-grid {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 12px;
    }
}

/* Tablet / Smaller Screens (860px and below): 4 columns */
@media (max-width: 860px) {
    .product-grid,
    .catalog-grid,
    .card-mini-grid,
    .new-card-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 10px;
    }
}

/* Small Screens (600px and below): 3 columns */
@media (max-width: 600px) {
    .product-grid,
    .catalog-grid,
    .card-mini-grid,
    .new-card-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px;
    }
}

/* Mobile Screens (450px and below): 2 columns */
@media (max-width: 450px) {
    .product-grid,
    .catalog-grid,
    .card-mini-grid,
    .new-card-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px;
    }

    /* Adjusted card typography for narrow mobile displays */
    .product-card h3,
    .catalog-card-title,
    .compact-card-title,
    .trending-card-title,
    .hot-deal-title,
    .card-mini-title-overlay h3 {
        font-size: 0.72rem !important;
    }

    .product-price,
    .catalog-card-price,
    .compact-card-price,
    .trending-card-price,
    .hot-deal-current-price {
        font-size: 0.80rem !important;
    }
}
/* ==========================================================================
   Single Product Detail Page Container & Layout
   ========================================================================== */
.product-single-container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 15px;
}

.product-top-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.product-gallery-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    height: auto;
    position: relative;
}

.product-gallery-box img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.provider-badge {
    color: #10b981;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 8px;
    display: block;
}

.product-detail-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px 0;
}

.product-detail-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0d9488;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-detail-price .old-price {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 400;
}

.product-detail-desc {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.btn-whatsapp-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366;
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 700;
    transition: background 0.2s;
    margin-bottom: 20px;
    cursor: pointer;
}

.btn-whatsapp-large svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
    flex-shrink: 0;
}

.btn-whatsapp-large:hover { background: #1eb956; }

.action-extra-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 20px;
}

.call-box {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #334155;
    text-decoration: none;
    font-weight: 700;
}

.call-icon-svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
    flex-shrink: 0;
    fill: #1e293b;
}

.social-btns {
    display: flex;
    gap: 8px;
}

.btn-social-pill {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.btn-social-pill svg {
    width: 12px !important;
    height: 12px !important;
    min-width: 12px;
    min-height: 12px;
}

.seller-options-title {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 12px;
}

.seller-options-grid {
    display: flex;
    gap: 25px;
    align-items: center;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: #334155;
    font-weight: 600;
}

.option-item img,
.option-item svg {
    width: 22px !important;
    height: 22px !important;
    object-fit: contain;
    flex-shrink: 0;
}

.seller-profile-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-top: 30px;
}

.store-hero-banner {
    width: 100%;
    min-height: 250px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background-color: #0f172a;
}

.store-hero-banner .banner-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.banner-overlay-shadow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.5) 60%, rgba(0, 0, 0, 0.15) 100%);
    z-index: 2;
}

.banner-profile-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    width: 100%;
    color: #ffffff;
}

.store-avatar-wrap { flex-shrink: 0; }

.seller-avatar-img {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    background: #ffffff;
}

.store-meta-details { flex-grow: 1; }

.seller-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.seller-title-row h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.verified-check {
    background: #3b82f6;
    color: #ffffff;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
}

.vendor-role-badge {
    color: #2dd4bf;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.vendor-role-badge svg,
.vendor-role-badge i {
    width: 14px !important;
    height: 14px !important;
    flex-shrink: 0;
}

.seller-stats {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-top: 6px;
}

.seller-stats strong { color: #ffffff; }

.seller-bio-text {
    font-size: 0.9rem;
    color: #e2e8f0;
    margin: 8px 0 0 0;
    line-height: 1.4;
    max-width: 800px;
}

.store-hero-body { padding: 16px 24px 24px 24px; }

.filter-pills {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.pill-btn {
    padding: 8px 20px;
    border-radius: 20px;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.88rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.pill-btn.active {
    background: #cbd5e1;
    color: #0f172a;
}

.promo-banner-card { display: none !important; }

.other-products-section { margin-top: 30px; }

.other-products-section h3 {
    font-size: 1.2rem;
    color: #0f172a;
    margin-bottom: 20px;
    font-weight: 700;
}

.products-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.products-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
}

.products-pagination .page-numbers.current {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

.popular-cats-section { margin-top: 40px; }

.cats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cats-header h3 { font-size: 1.1rem; color: #0f172a; margin: 0; }
.cats-header a { color: #64748b; font-size: 0.85rem; text-decoration: none; font-weight: 600; }

.cats-circle-grid {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.cat-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100px;
}

.cat-circle-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 8px;
    border: 1px solid #e2e8f0;
}

.cat-circle-label {
    font-size: 0.8rem;
    color: #475569;
    font-weight: 600;
}