/* ==========================================================================
   MAHARASHTRA CAD CAM — MASTER STYLESHEET
   Design Language: Modern B2B Industrial with Pure White Background (#FFFFFF)
   ========================================================================== */

:root {
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-subtle: #f1f5f9;
    --border-color: #e2e8f0;
    --border-dark: #cbd5e1;

    --text-primary: #0f172a;    /* Charcoal/Dark Navy */
    --text-secondary: #475569;  /* Slate */
    --text-muted: #64748b;      /* Muted Slate */

    --primary-navy: #0a2540;    /* Deep Industrial Navy */
    --primary-blue: #0284c7;    /* Focus & Link Blue */
    --accent-orange: #c04b16;   /* Industrial Action Orange (Get Quote/Add to Cart) */
    --accent-orange-hover: #a33c0e;
    
    --success-green: #16a34a;
    --danger-red: #dc2626;
    --warning-yellow: #ca8a04;

    --font-base: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --container-max: 1240px;
}

/* ---------------- CSS RESET & BASE ---------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-base);
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-primary);
    background-color: var(--bg-white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main {
    flex: 1 0 auto;
    background-color: var(--bg-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-navy);
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

a:hover {
    color: var(--accent-orange);
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

ul, ol {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

/* ---------------- TYPOGRAPHY ---------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
}

h1 { font-size: 2.25rem; letter-spacing: -0.02em; }
h2 { font-size: 1.85rem; letter-spacing: -0.015em; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.15rem; }

p {
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
}

.section-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
}

.section-header {
    margin-bottom: 2.25rem;
}

.section-title {
    font-size: 1.95rem;
    color: var(--primary-navy);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background-color: var(--accent-orange);
    border-radius: 2px;
}

.section-title.center {
    text-align: center;
}

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 650px;
    margin-top: 0.5rem;
}

/* ---------------- BUTTONS & UTILITIES ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-align: center;
    line-height: 1.2;
}

.btn-sm {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 0.85rem 1.85rem;
    font-size: 1.05rem;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-orange-hover);
    color: #ffffff;
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--primary-navy);
    border-color: var(--border-dark);
}

.btn-secondary:hover {
    background-color: var(--bg-subtle);
    border-color: var(--primary-navy);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-navy);
    border-color: var(--border-dark);
}

.btn-outline:hover {
    background-color: var(--bg-subtle);
    border-color: var(--primary-navy);
    color: var(--primary-navy);
}

.btn-whatsapp {
    background-color: #25D366;
    color: #ffffff;
}

.btn-whatsapp:hover {
    background-color: #1eb956;
    color: #ffffff;
}

.btn-whatsapp-outline {
    background-color: #ffffff;
    color: #128C7E;
    border-color: #25D366;
}

.btn-whatsapp-outline:hover {
    background-color: #f0fdf4;
    color: #075E54;
}

.text-danger { color: var(--danger-red); }
.text-success { color: var(--success-green); }
.text-muted { color: var(--text-muted); }
.bg-light { background-color: var(--bg-light); }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.85rem; }
.mb-4 { margin-bottom: 1.25rem; }
.mt-3 { margin-top: 0.85rem; }
.d-none { display: none !important; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }

/* ---------------- HEADER & NAVIGATION ---------------- */
.site-header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-white);
}

.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand-link {
    display: block;
    color: inherit;
}

.brand-logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--primary-navy);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    border-radius: var(--radius-sm);
    border-bottom: 3px solid var(--accent-orange);
    letter-spacing: -0.02em;
}

.brand-logo-mark.small {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-navy);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

.header-trust-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trust-pill {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

.trustseal-badge {
    background-color: #ca8a04;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
    border-radius: 2px;
}

.payment-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success-green);
}

.header-action-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-top-call {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    color: var(--primary-navy);
    background-color: var(--bg-white);
    transition: all 0.15s ease;
}

.btn-top-call:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.call-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.call-number {
    font-weight: 700;
    font-size: 0.88rem;
}

.call-sub {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.header-mobile-cart,
.header-mobile-menu {
    display: none;
}

/* ---------------- MAIN NAVIGATION BAR ---------------- */
.main-nav-bar {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 0.4rem 0;
}

.main-nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.desktop-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.nav-link:hover, .nav-item.active .nav-link {
    color: var(--accent-orange);
    background-color: var(--bg-light);
}

.dropdown-chevron {
    transition: transform 0.2s ease;
}

.nav-item:hover .dropdown-chevron {
    transform: rotate(180deg);
}

.badge-store {
    background-color: var(--accent-orange);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Mega / Flyout Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 320px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem;
    display: none;
    z-index: 1000;
}

.nav-item:hover .nav-dropdown {
    display: block;
}

.dropdown-header-banner {
    padding: 0.5rem 0.75rem;
    background-color: var(--bg-light);
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
}

.dropdown-header-banner strong {
    font-size: 0.85rem;
    color: var(--primary-navy);
}

.dropdown-header-banner span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.dropdown-grid {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.dropdown-item {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.15s ease;
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--accent-orange);
}

.dropdown-item.view-all-link {
    border-top: 1px solid var(--border-color);
    margin-top: 0.35rem;
    padding-top: 0.65rem;
    color: var(--accent-orange);
}

/* Header Search Form */
.nav-search-form {
    flex: 1;
    max-width: 380px;
}

.search-input-group {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: var(--bg-white);
    transition: border-color 0.15s ease;
}

.search-input-group:focus-within {
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 2px rgba(10, 37, 64, 0.1);
}

.search-input-group input {
    flex: 1;
    border: none;
    padding: 0.55rem 0.85rem;
    font-size: 0.88rem;
    outline: none;
    color: var(--text-primary);
    background: transparent;
}

.search-input-group button {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    border: none;
    background-color: var(--primary-navy);
    color: #ffffff;
    padding: 0.55rem 0.95rem;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.search-input-group button:hover {
    background-color: var(--accent-orange);
}

/* Header Right Actions */
.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.btn-cart-nav {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    color: var(--primary-navy);
    background-color: var(--bg-white);
    font-weight: 600;
    font-size: 0.85rem;
    position: relative;
    transition: all 0.15s ease;
}

.header-action-buttons .header-mobile-cart {
    display: none;
}

.btn-cart-nav:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-orange);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.btn-whatsapp-nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    background-color: #25D366;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease;
}

.btn-whatsapp-nav:hover {
    background-color: #1eb956;
    color: #ffffff;
}

/* Hamburger button (Mobile only) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 7px;
}

.hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--primary-navy);
    border-radius: 1px;
}

/* ---------------- MOBILE NAVIGATION DRAWER ---------------- */
/* STRICT REQUIREMENT: NO BOTTOM NAVBAR! Slide-in header drawer only */
.mobile-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-navigation-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background-color: var(--bg-white);
    border-right: 1px solid var(--border-dark);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
}

body.drawer-open {
    overflow: hidden;
}

body.drawer-open .mobile-drawer-backdrop {
    opacity: 1;
    visibility: visible;
}

body.drawer-open .mobile-navigation-drawer {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.drawer-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.drawer-brand-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary-navy);
}

.btn-drawer-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.35rem;
    border-radius: var(--radius-sm);
}

.btn-drawer-close:hover {
    color: var(--primary-navy);
    background-color: var(--bg-subtle);
}

.drawer-search {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.drawer-search-form {
    display: flex;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.drawer-search-form input {
    flex: 1;
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    outline: none;
}

.drawer-search-form button {
    border: none;
    background-color: var(--primary-navy);
    color: #ffffff;
    padding: 0.5rem 0.85rem;
    cursor: pointer;
}

.drawer-nav {
    flex: 1;
    padding: 1rem 1.25rem;
    overflow-y: auto;
}

.drawer-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.drawer-section-heading {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent-orange);
    padding: 0.75rem 0.5rem 0.25rem;
}

.drawer-link {
    display: block;
    padding: 0.65rem 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    transition: background 0.15s ease;
}

.drawer-link:hover, .drawer-link.active {
    background-color: var(--bg-light);
    color: var(--accent-orange);
}

.drawer-sublink {
    display: block;
    padding: 0.45rem 0.75rem 0.45rem 1.5rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    position: relative;
}

.drawer-sublink::before {
    content: "•";
    position: absolute;
    left: 0.75rem;
    color: var(--text-muted);
}

.drawer-sublink:hover {
    color: var(--accent-orange);
    background-color: var(--bg-light);
}

.drawer-footer {
    padding: 1.15rem 1.25rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

.drawer-call-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background-color: var(--primary-navy);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.65rem;
}

.drawer-trust-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

/* ---------------- HERO SECTION (WHITE INDUSTRIAL THEME) ---------------- */
.hero-section {
    background-color: var(--bg-white);
    padding: 1.5rem 0 3rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 2.65rem;
    font-weight: 800;
    color: var(--primary-navy);
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.highlight-item svg {
    color: var(--success-green);
    flex-shrink: 0;
}

.hero-visual-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
}

.hero-product-preview {
    padding: 1.5rem;
    text-align: center;
    background-color: var(--bg-white);
}

.hero-product-img {
    max-height: 280px;
    margin: 0 auto 1rem;
    object-fit: contain;
}

.hero-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
}

.hero-card-meta strong {
    display: block;
    font-size: 0.95rem;
    color: var(--primary-navy);
}

.hero-card-meta span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------------- CATEGORY & MACHINERY SECTIONS ---------------- */
.section-padding {
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-white);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-orange);
}

.category-img-wrap {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background-color: var(--bg-white);
}

.category-img {
    max-height: 140px;
    max-width: 100%;
    object-fit: contain;
}

.category-title {
    font-size: 1.05rem;
    color: var(--primary-navy);
    margin-bottom: 0.4rem;
}

.category-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 1rem;
    line-height: 1.45;
}

.category-btn {
    align-self: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-orange);
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
}

.category-card:hover .category-btn {
    background-color: var(--accent-orange);
    color: #ffffff;
    border-color: var(--accent-orange);
}

/* ---------------- PRODUCT CARDS: MACHINERY (NO PRICES) ---------------- */
.machinery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

.machinery-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.machinery-card:hover {
    border-color: var(--border-dark);
    box-shadow: var(--shadow-md);
}

.machinery-card-media {
    height: 220px;
    background-color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.machinery-card-img {
    max-height: 190px;
    max-width: 100%;
    object-fit: contain;
}

.badge-tag {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
}

.machinery-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.machinery-title {
    font-size: 1.15rem;
    color: var(--primary-navy);
    margin-bottom: 0.4rem;
}

.machinery-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    line-height: 1.45;
}

.machinery-specs-snippet {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    margin-bottom: 1.15rem;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.spec-line {
    display: flex;
    justify-content: space-between;
}

.spec-label {
    color: var(--text-muted);
}

.spec-val {
    font-weight: 600;
    color: var(--text-primary);
}

.machinery-card-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.btn-get-quote {
    background-color: var(--accent-orange);
    color: #ffffff;
    font-weight: 600;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s ease;
}

.btn-get-quote:hover {
    background-color: var(--accent-orange-hover);
    color: #ffffff;
}

/* ---------------- PRODUCT CARDS: SPARE PARTS (PRICED / CART) ---------------- */
.spare-parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.spare-part-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.spare-part-card:hover {
    border-color: var(--border-dark);
    box-shadow: var(--shadow-md);
}

.spare-part-media {
    height: 190px;
    background-color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.spare-part-img {
    max-height: 160px;
    max-width: 100%;
    object-fit: contain;
}

.stock-tag {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-sm);
}

.stock-tag.in-stock {
    background-color: #f0fdf4;
    color: var(--success-green);
    border: 1px solid #bbf7d0;
}

.spare-part-body {
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.spare-part-cat {
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: 0.2rem;
}

.spare-part-title {
    font-size: 1.05rem;
    color: var(--primary-navy);
    margin-bottom: 0.4rem;
}

.spare-part-sku {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
}

.spare-part-price-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.spare-part-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-navy);
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.spare-part-price-unit {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.spare-part-orig-price {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.spare-part-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.shop-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.shop-heading {
    flex: 1 1 auto;
    min-width: 0;
}

.shop-heading .section-title {
    font-size: clamp(1.45rem, 4vw, 1.95rem);
}

.shop-sort-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.shop-sort-label {
    flex: 0 0 auto;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.shop-sort-form .shop-sort-select {
    width: auto;
    min-width: 0;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
}

/* ---------------- PRODUCT DETAIL PAGES ---------------- */
.product-detail-section {
    padding: 2.5rem 0 3.5rem;
    background-color: var(--bg-white);
}

.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 3rem;
    align-items: start;
}

.product-gallery-pane {
    position: sticky;
    top: 90px;
}

.product-main-view {
    background-color: var(--bg-white);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.product-main-image {
    max-height: 380px;
    max-width: 100%;
    margin: 0 auto;
    object-fit: contain;
}

.product-info-pane {
    background-color: var(--bg-white);
}

.product-badge-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.product-page-title {
    font-size: 2.15rem;
    color: var(--primary-navy);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.product-price-banner {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.price-main {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary-navy);
}

.price-unit {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Specification Tables (Crisp 2-Column Industrial Standard) */
.specs-table-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.specs-table-header {
    background-color: var(--bg-light);
    padding: 0.75rem 1.15rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-navy);
    border-bottom: 1px solid var(--border-color);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.spec-table th, .spec-table td {
    padding: 0.7rem 1.15rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.spec-table tr:last-child td {
    border-bottom: none;
}

.spec-table th, .spec-table td.spec-key {
    width: 38%;
    background-color: #fafbfc;
    color: var(--text-secondary);
    font-weight: 600;
    border-right: 1px solid var(--border-color);
}

.spec-table td.spec-val {
    color: var(--text-primary);
    font-weight: 500;
}

/* Variants Selector */
.variants-wrapper {
    margin-bottom: 1.5rem;
    padding: 1.15rem;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.variant-group {
    margin-bottom: 1rem;
}

.variant-group:last-child {
    margin-bottom: 0;
}

.variant-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.variant-select {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    background-color: var(--bg-white);
    font-size: 0.9rem;
    color: var(--text-primary);
}

/* Quantity & Action Buttons */
.purchase-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    background-color: var(--bg-white);
    overflow: hidden;
}

.btn-qty {
    width: 38px;
    height: 42px;
    background: transparent;
    border: none;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-qty:hover {
    background-color: var(--bg-subtle);
}

.input-qty {
    width: 48px;
    height: 42px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    outline: none;
}

/* ---------------- CART & CHECKOUT PAGES ---------------- */
.cart-checkout-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 2.5rem;
    align-items: start;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.cart-table th {
    background-color: var(--bg-light);
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-navy);
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.cart-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.cart-product-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-product-thumb {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.25rem;
}

.order-summary-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.summary-title {
    font-size: 1.25rem;
    color: var(--primary-navy);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.65rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.summary-row.total-row {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-navy);
    border-top: 2px solid var(--border-color);
    padding-top: 0.85rem;
    margin-top: 1rem;
}

/* Forms */
.form-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.col-half {
    flex: 1;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    background-color: var(--bg-white);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 2px rgba(10, 37, 64, 0.1);
}

/* Payment Selector Radio Cards */
.payment-methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.payment-method-card {
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    padding: 1rem;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background-color: var(--bg-white);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.payment-method-card:hover, .payment-method-card.selected {
    border-color: var(--primary-navy);
    background-color: var(--bg-light);
}

.payment-method-card input[type="radio"] {
    margin-top: 0.2rem;
}

/* ---------------- MODAL POPUP (ENQUIRY) ---------------- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.modal-backdrop.active {
    display: flex;
}

.modal-dialog {
    width: 100%;
    max-width: 580px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from { transform: translateY(15px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-light);
}

.modal-title {
    font-size: 1.25rem;
    color: var(--primary-navy);
}

.modal-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.btn-modal-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 1.5rem;
}

/* Alert Notification Boxes */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    border: 1px solid transparent;
}

.alert-success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.alert-danger {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

/* ---------------- FOOTER ---------------- */
.site-footer {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.footer-top-strip {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-light);
    padding: 1.25rem 0;
}

.footer-strip-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.strip-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.strip-item svg {
    color: var(--accent-orange);
    flex-shrink: 0;
}

.strip-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--primary-navy);
}

.strip-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-main {
    padding: 3.5rem 1.25rem 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
}

.footer-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.footer-company-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pill-badge {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.footer-col-title {
    font-size: 1.05rem;
    color: var(--primary-navy);
    margin-bottom: 1.15rem;
    position: relative;
    padding-bottom: 0.35rem;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--accent-orange);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.footer-links a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: color 0.15s ease, transform 0.15s ease;
}

.footer-links a:hover {
    color: var(--accent-orange);
    transform: translateX(3px);
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-contact-list svg {
    color: var(--accent-orange);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.footer-bottom-bar {
    border-top: 1px solid var(--border-color);
    padding: 1.25rem 0;
    background-color: var(--bg-white);
}

.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 1.25rem;
}

.footer-bottom-links a {
    color: var(--text-muted);
}

.footer-bottom-links a:hover {
    color: var(--accent-orange);
}

/* ---------------- RESPONSIVE BREAKPOINTS (320px - 1440px) ---------------- */

/* Table Scroll Wrapper Safety */
.cart-items-wrapper,
.table-responsive,
.specs-table-card {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Base Universal Text Wrapping Protection */
h1, h2, h3, h4, h5, h6, p, span, a, button, td, th {
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Tablet & Smaller Desktops (<= 1024px) */
@media (max-width: 1024px) {
    .header-trust-info {
        display: none !important;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-strip-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .cart-checkout-layout {
        grid-template-columns: 1fr;
    }
    .product-detail-layout {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* Mobile & Tablet Portrait (<= 860px) */
@media (max-width: 860px) {
    /* STRICT REQUIREMENT: Mobile Header in a SINGLE ROW */
    .header-top-bar {
        padding: 0.65rem 0;
        border-bottom: 1px solid var(--border-color);
        background-color: var(--bg-white);
    }

    .top-bar-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 0.5rem;
        width: 100%;
    }

    .brand-link {
        display: inline-flex;
        align-items: center;
        min-width: 0;
        flex-shrink: 1;
    }

    .brand-logo-wrap {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        min-width: 0;
    }

    .brand-logo-mark {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
        flex-shrink: 0;
    }

    .brand-text {
        min-width: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .brand-title {
        font-size: clamp(0.95rem, 3.4vw, 1.25rem);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.15;
    }

    .brand-subtitle {
        font-size: 0.6rem;
        letter-spacing: 0.04em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-trust-info {
        display: none !important;
    }

    /* Action Buttons Group on the Right */
    .header-action-buttons {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        flex-shrink: 0;
        margin-left: auto;
    }

    .btn-top-call {
        padding: 0;
        width: 38px;
        height: 38px;
        min-width: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-sm);
        border: 1px solid var(--border-dark);
    }

    .btn-top-call .call-text {
        display: none !important;
    }

    .header-mobile-cart {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        min-width: 38px;
        border: 1px solid var(--border-dark);
        border-radius: var(--radius-sm);
        background: var(--bg-white);
        color: var(--primary-navy);
        position: relative;
        text-decoration: none;
    }

    .header-mobile-cart .cart-badge {
        position: absolute;
        top: -6px;
        right: -6px;
        background: var(--accent-orange);
        color: #ffffff;
        font-size: 0.68rem;
        font-weight: 700;
        border-radius: 999px;
        min-width: 18px;
        height: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }

    /* Menu Button on the Right */
    .header-mobile-menu {
        display: inline-flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        width: 38px;
        height: 38px;
        min-width: 38px;
        padding: 7px;
        border: 1px solid var(--border-dark);
        border-radius: var(--radius-sm);
        background: var(--bg-white);
        cursor: pointer;
    }

    .header-mobile-menu .hamburger-bar {
        width: 100%;
        height: 2px;
        background-color: var(--primary-navy);
        border-radius: 1px;
        display: block;
    }

    /* Hide desktop nav bar completely to maintain clean single-row header */
    .main-nav-bar {
        display: none !important;
    }

    /* Layout Sections Adaptations */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-gallery-pane {
        position: static;
    }

    .catalog-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .shop-section-header {
        align-items: stretch;
        flex-direction: column;
        gap: 1rem;
    }

    .shop-sort-form {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        width: 100%;
    }

    .shop-sort-form .shop-sort-select {
        width: 100%;
    }
}

/* Mobile Screens (<= 580px) */
@media (max-width: 580px) {
    .brand-subtitle {
        display: none !important;
    }

    .hero-title {
        font-size: clamp(1.65rem, 5.5vw, 2.15rem);
    }

    .hero-subtitle {
        font-size: 0.92rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .machinery-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .spare-parts-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-group.col-half {
        width: 100%;
    }

    .payment-methods-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .product-page-title {
        font-size: 1.55rem;
    }

    .product-detail-section .product-price-banner {
        flex-wrap: wrap;
        column-gap: 0.65rem;
        row-gap: 0.35rem;
        padding: 0.75rem 0.9rem;
    }

    .product-detail-section .product-price-banner > span:last-child {
        flex: 0 0 100%;
        margin-left: 0 !important;
        line-height: 1.4;
    }

    .price-main {
        font-size: 1.5rem;
    }

    .product-main-view {
        padding: 1.25rem;
    }

    .product-main-image {
        max-height: 260px;
    }

    .spare-part-actions {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .spare-part-actions .btn {
        width: 100%;
    }

    .cart-product-cell {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .cart-table th,
    .cart-table td {
        padding: 0.65rem 0.5rem;
        font-size: 0.82rem;
    }

    .cart-table .cart-product-thumb {
        width: 48px;
        height: 48px;
    }
}

/* Mobile Screens (<= 480px) */
@media (max-width: 480px) {
    .container {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .header-top-bar {
        padding: 0.5rem 0;
    }

    .top-bar-content {
        gap: 0.35rem;
    }

    .header-action-buttons {
        gap: 0.35rem;
    }

    .btn-top-call,
    .header-mobile-cart,
    .header-mobile-menu {
        width: 36px;
        height: 36px;
        min-width: 36px;
        padding: 6px;
    }

    .brand-logo-mark {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    .brand-title {
        font-size: 1.05rem;
    }

    /* Buttons touch targets */
    .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
        min-height: 44px;
    }

    /* Form inputs touch targets and iOS auto-zoom prevention */
    input[type="text"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    select,
    textarea {
        font-size: 16px !important;
        min-height: 44px;
    }

    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .modal-body {
        padding: 1rem;
    }

    .spec-table th,
    .spec-table td {
        padding: 0.55rem 0.65rem;
        font-size: 0.8rem;
    }
}

/* Mobile Screens (<= 430px & <= 414px) */
@media (max-width: 430px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .brand-title {
        font-size: 0.98rem;
    }

    .top-bar-content {
        gap: 0.25rem;
    }

    .header-action-buttons {
        gap: 0.25rem;
    }

    .btn-top-call,
    .header-mobile-cart,
    .header-mobile-menu {
        width: 35px;
        height: 35px;
        min-width: 35px;
        padding: 5px;
    }
}

/* Mobile Screens (<= 390px & <= 375px) */
@media (max-width: 390px) {
    .brand-title {
        font-size: 0.9rem;
        letter-spacing: -0.02em;
    }

    .btn-top-call,
    .header-mobile-cart,
    .header-mobile-menu {
        width: 34px;
        height: 34px;
        min-width: 34px;
        padding: 5px;
    }

    .container {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .section-title {
        font-size: 1.45rem;
    }
}

/* Ultra-Compact Mobile Screens (<= 360px & <= 320px) */
@media (max-width: 360px) {
    /* Show only the logo if the full brand name causes spacing problems */
    .brand-text {
        display: none !important;
    }

    .brand-logo-mark {
        width: 36px;
        height: 36px;
        font-size: 0.92rem;
    }

    .btn-top-call,
    .header-mobile-cart,
    .header-mobile-menu {
        width: 34px;
        height: 34px;
        min-width: 34px;
        padding: 5px;
    }

    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .spec-table th,
    .spec-table td {
        padding: 0.45rem 0.5rem;
        font-size: 0.76rem;
    }

    .product-page-title {
        font-size: 1.35rem;
    }

    .price-main {
        font-size: 1.35rem;
    }
}

.cart-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}
.cart-continue-btn {
    white-space: nowrap;
}
.cart-footer-note {
    flex: 1 1 200px;
    text-align: right;
}

@media (max-width: 576px) {
    .cart-footer-row {
        flex-direction: column;
        align-items: stretch;
    }
    .cart-continue-btn {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;   /* comfortable tap target */
    }
    .cart-footer-note {
        text-align: center;
        flex: none;
    }
}
