/* Global mobile-only styles for all pages (scoped by body.is-mobile) */

/*******************
 Base and layout
*******************/
.is-mobile .container {
    padding-left: 12px;
    padding-right: 12px;
}

.is-mobile .row.g-3 {
    --bs-gutter-x: .5rem;
    --bs-gutter-y: .5rem;
}

.is-mobile .row.g-4 {
    --bs-gutter-x: .75rem;
    --bs-gutter-y: .75rem;
}

/* Trim large global spacers on mobile */
.is-mobile .my-5 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

.is-mobile .mt-5 {
    margin-top: 1.25rem !important;
}

.is-mobile .mb-5 {
    margin-bottom: 1.25rem !important;
}

.is-mobile .py-4 {
    padding-top: .75rem !important;
    padding-bottom: .75rem !important;
}

.is-mobile .py-5 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/*******************
 Breadcrumb
*******************/
.is-mobile .breadcrumb {
    padding: 6px 0 !important;
    margin: 0 !important;
    font-size: .9rem;
    background: #f8fafc;
}

.is-mobile .breadcrumb .breadcrumb-item+.breadcrumb-item::before {
    padding-right: .35rem;
}

/*******************
 Product page (product.php)
*******************/
.is-mobile .product-gallery {
    position: static;
    top: auto;
}

.is-mobile .main-image {
    height: 260px;
    border-radius: 10px;
}

.is-mobile .thumbnail-images {
    gap: 8px;
    margin-top: 10px;
}

.is-mobile .thumbnail {
    width: 64px;
    height: 64px;
}

.is-mobile .product-info {
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 10px;
}

.is-mobile .product-title {
    font-size: 1.4rem;
    margin: 0 0 .25rem 0;
    line-height: 1.15;
}

.is-mobile .product-price {
    font-size: 1.35rem;
    margin: 0 0 .5rem 0;
}

.is-mobile .product-price .unit {
    font-size: .85em;
    margin-left: 4px;
    color: #6b7280;
}

.is-mobile .quick-specs .spec-item i {
    font-size: 1.1rem;
}

.is-mobile .quick-specs .spec-item strong {
    font-size: .95rem;
}

.is-mobile .quick-specs .spec-item span {
    font-size: .9rem;
}

/*******************
 Tabs, tables, lists
*******************/
.is-mobile .nav-tabs .nav-link {
    padding: .35rem .5rem;
    font-size: .9rem;
}

.is-mobile .tab-content {
    padding: .75rem !important;
}

.is-mobile table {
    font-size: .9rem;
}

.is-mobile .specifications-table h3 {
    font-size: 1rem;
    padding: 8px 10px;
}

/*******************
 Cards and badges
*******************/
.is-mobile .card {
    border-radius: 10px;
}

.is-mobile .badge,
.is-mobile .rounded-pill {
    font-size: .8rem;
}

/*******************
 Utilities
*******************/
.is-mobile .text-small {
    font-size: .85rem;
}

.is-mobile .text-muted {
    color: #6b7280 !important;
}

/* Keep header search minimal on mobile */
.is-mobile header.site-header .form-control.form-control-sm {
    height: 30px;
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .25);
    color: #fff;
}

.is-mobile header.site-header .form-control.form-control-sm::placeholder {
    color: rgba(255, 255, 255, .8);
}

/*******************
 Products listing (products.php)
*******************/
/* Match mobile homepage compact scale */
.is-mobile .hero-section {
    padding: 12px 0;
}

.is-mobile .hero-section h1 {
    font-size: 1.2rem;
    line-height: 1;
    margin-bottom: 0;
}

.is-mobile .hero-section .lead {
    font-size: .85rem;
    opacity: .95;
}

/* Results header */
.is-mobile .results-header {
    padding: .5rem .6rem;
    font-size: .9rem;
}

.is-mobile .results-header .view-toggle .btn {
    padding: .35rem .5rem;
}

/* Product cards */
.is-mobile .product-card {
    border-radius: 10px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, .06);
}

.is-mobile .product-image {
    height: 120px;
}

.is-mobile .product-title {
    font-size: .95rem;
    margin-bottom: 0;
    line-height: 1.2;
}

.is-mobile .product-category {
    font-size: .8rem;
    color: #6b7280;
}

.is-mobile .product-price {
    font-size: .95rem;
    font-weight: 700;
    color: #111827;
}

.is-mobile .btn-view-product {
    padding: .35rem .5rem;
    border-radius: 8px;
    font-size: .8rem;
}

/* Filters: keep sidebar readable on mobile; offcanvas covers small screens */
.is-mobile .filter-sidebar {
    position: static;
    top: auto;
    padding: .75rem;
    border-radius: 10px;
}

/* Toolbar: non-sticky on mobile per request */
.is-mobile .mobile-toolbar {
    position: static;
    top: auto;
    z-index: auto;
}

/* Product card content padding to match mobile-home */
.is-mobile .product-info {
    padding: 10px;
}