/* ==========================================
   Maxnor Shop - Global Theme Stylesheet
   Matching Maxnor IT Design System
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+Bengali:wght@400;500;600;700;800&display=swap');

/* === CSS Variables === */
:root {
    --primary: #0284c7;
    --primary-light: #0ea5e9;
    --primary-dark: #0369a1;
    --navy: #0f172a;
    --navy-light: #1e293b;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --text-dark: #0f172a;
    --text-body: #475569;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Noto Sans Bengali', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body, input, button, select, textarea {
    font-family: var(--font-primary);
}

body {
    background: var(--bg-light);
    color: var(--text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Top Info Bar === */
.top-bar {
    background: var(--navy);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.8rem;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar a {
    color: var(--white);
    opacity: 0.85;
}

.top-bar a:hover {
    opacity: 1;
    color: var(--primary-light);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.top-bar-left span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-bar-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--white) !important;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    opacity: 0.95;
}

.top-bar-phone i {
    font-size: 0.75rem;
    color: var(--primary-light);
}

.top-bar-phone:hover {
    opacity: 1;
    color: var(--primary-light) !important;
}

.top-bar-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-bar-social a {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 0.75rem;
    transition: var(--transition);
    text-decoration: none;
}

.top-bar-social a:hover {
    background: var(--primary);
    transform: translateY(-2px);
    color: var(--white);
}

/* === Navbar === */
.navbar {
    background: var(--white);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--navy);
}

.nav-brand .brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
}

.nav-brand .brand-logo-img {
    height: 52px;
    width: auto;
    max-height: 56px;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

.nav-brand span.highlight {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-menu a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    background: rgba(2, 132, 199, 0.06);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-track-nav {
    display: none; /* Hidden on desktop, shown only on mobile */
}

.hotline {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
    color: inherit;
}

.hotline-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(14, 165, 233, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

.hotline-text {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.hotline-text strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    z-index: 1002;
    position: relative;
}

.menu-toggle span {
    width: 22px;
    height: 2.5px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
    display: block;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* === Hero Section === */
.hero {
    background: #ffffff;
    padding: 75px 0 75px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(255, 140, 50, 0.16) 0%, rgba(255, 180, 110, 0.08) 45%, rgba(255, 255, 255, 0) 72%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    display: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 8px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff3e8;
    color: var(--primary);
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 22px;
    border: 1px solid #fed7aa;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #0ea5e9;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero h1 {
    font-size: 2.85rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.25;
    margin-bottom: 20px;
    text-align: left;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #0369a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-body);
    max-width: 540px;
    margin: 0 0 32px 0;
    line-height: 1.8;
    text-align: left;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 88%;
    height: 88%;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.18) 0%, rgba(249, 115, 22, 0.12) 50%, transparent 75%);
    filter: blur(35px);
    border-radius: 30px;
    z-index: 0;
    pointer-events: none;
}

.hero-image img {
    width: 100%;
    max-width: 480px;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(2, 132, 199, 0.12);
    position: relative;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    display: block;
}

.hero-image:hover img {
    transform: translateY(-6px);
    box-shadow: 0 28px 55px -15px rgba(2, 132, 199, 0.22), 0 0 0 1px rgba(2, 132, 199, 0.2);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.4);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #ffffff;
    color: var(--navy);
    border: 2px solid var(--navy);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(2, 132, 199, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* === Section Headers === */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(2, 132, 199, 0.08);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    border: 1px solid rgba(2, 132, 199, 0.15);
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.section-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* === Filter & Search Bar === */
.filter-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.filter-bar select,
.filter-bar input {
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 0.9rem;
    font-family: var(--font-primary);
    background: var(--white);
    color: var(--text-dark);
    outline: none;
    transition: var(--transition);
    min-width: 200px;
}

.filter-bar select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 13px 13px;
    padding-right: 44px;
    cursor: pointer;
}

.filter-bar select::-ms-expand {
    display: none;
}

.filter-bar select:focus,
.filter-bar input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.1);
}

/* === Products Grid === */
.products-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.products-header-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 16px;
}

.products-count {
    font-size: 0.88rem;
    font-weight: 700;
    color: #475569;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* === Product Card (Reference Style) === */
.product-card {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    padding: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

/* Clickable card link */
.product-card-link {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-decoration: none;
    color: inherit;
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.35s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.03);
}

.product-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
    z-index: 2;
    line-height: 1;
}

.product-info {
    padding: 10px 2px 6px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.7rem;
    font-weight: 700;
    color: #0284c7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    display: block;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.product-card-link:hover .product-title {
    color: #0284c7;
}

.product-price-box {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: auto;
    margin-bottom: 12px;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0284c7;
}

.product-regular-price {
    font-size: 0.82rem;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 4px;
}

.badge-stockout {
    background: #64748b !important;
    box-shadow: 0 2px 6px rgba(100, 116, 139, 0.35) !important;
}

.product-action-box {
    margin-top: auto;
    width: 100%;
}

.btn-buy-now,
.btn-order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 12px;
    background: #0284c7;
    color: #ffffff;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2);
}

.btn-buy-now:hover,
.btn-order:hover {
    background: #0369a1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
    color: #ffffff;
}

.btn-buy-now.btn-stock-out {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* === Loading Spinner === */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 1rem;
}

/* === Benefits Section === */
.benefits-section {
    padding: 80px 0;
    background: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.benefit-card {
    text-align: center;
    padding: 32px 24px;
    border-radius: var(--radius);
    background: var(--bg-light);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.1), rgba(14, 165, 233, 0.08));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.4rem;
    color: var(--primary);
}

.benefit-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.benefit-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* === Footer === */
.footer {
    background: var(--white);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 24px;
}

.footer-brand h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand .footer-brand-logo {
    display: inline-block;
    margin-bottom: 14px;
    text-decoration: none;
}

.footer-brand .footer-logo-img {
    height: 60px;
    width: auto;
    max-height: 68px;
    max-width: 240px;
    object-fit: contain;
    display: block;
}

.footer-brand h3 span {
    color: var(--primary);
}

.footer-brand p {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.92rem;
    color: #334155;
    font-weight: 500;
    line-height: 1.6;
}

.footer-contact-item i {
    color: var(--primary);
    margin-top: 4px;
    width: 18px;
    font-size: 1rem;
    flex-shrink: 0;
}

.footer h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.92rem;
    color: #334155;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #334155;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-3px);
}

/* --- Pay With / SSLCommerz Payment Strip (Matches Reference Website) --- */
.footer-payments {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    margin-top: 32px;
    border-top: 1px solid var(--border);
}

.footer-payments-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    padding-right: 20px;
    border-right: 1px solid var(--border);
}

.footer-payments-image {
    flex: 1;
    min-width: 220px;
}

.footer-payments-image img {
    width: 100%;
    height: auto;
    max-width: 960px;
    border-radius: 8px;
    display: block;
}

.footer-bottom {
    padding: 20px 0 10px;
    text-align: center;
    font-size: 0.88rem;
    color: #64748b;
    border-top: 1px solid var(--border);
}

.footer-bottom a {
    color: var(--primary);
    font-weight: 600;
}

/* === WhatsApp Float Widget === */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.6rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4), 0 0 0 10px rgba(37, 211, 102, 0.1); }
    100% { box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4), 0 0 0 20px rgba(37, 211, 102, 0); }
}

/* === Toast Notifications === */
.toast {
    position: fixed;
    bottom: 90px;
    right: 24px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text-dark);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 340px;
}

.toast.show {
    transform: translateX(0);
}

.toast-error {
    border-left: 4px solid #ef4444;
}

.toast-error i {
    color: #ef4444;
}

.toast-success {
    border-left: 4px solid #22c55e;
}

.toast-success i {
    color: #22c55e;
}

.toast-info {
    border-left: 4px solid var(--primary);
}

.toast-info i {
    color: var(--primary);
}

/* === Responsive === */

/* --- Tablet & Small Desktop --- */
@media (max-width: 1024px) {
    .hero-grid {
        gap: 32px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-image img {
        max-width: 440px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-menu a {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* --- Tablet Portrait & Large Mobile --- */
@media (max-width: 768px) {
    .hero {
        padding: 48px 0 40px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .hero-content {
        align-items: center;
        text-align: center;
    }

    .hero h1 {
        font-size: 1.85rem;
        text-align: center;
    }

    .hero p {
        font-size: 0.95rem;
        text-align: center;
        margin: 0 auto 24px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: 2;
    }

    .hero-image img {
        max-width: 400px;
        border-radius: 16px;
    }

    .top-bar {
        display: none;
    }

    /* Navbar fix */
    .navbar .container {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 16px;
    }

    .nav-brand {
        font-size: 1.1rem;
        flex-shrink: 0;
    }

    .nav-brand .brand-icon {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    .nav-brand .brand-logo-img {
        height: 42px;
        width: auto;
        max-width: 160px;
    }

    .menu-toggle {
        display: flex;
        order: 3;
    }

    /* Nav right - compact on mobile */
    .nav-right {
        order: 2;
        gap: 8px;
        margin-left: auto;
        margin-right: 8px;
    }

    .btn-track-nav {
        display: inline-flex !important;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        background: rgba(2, 132, 199, 0.08);
        color: var(--primary);
        border: 1px solid rgba(2, 132, 199, 0.25);
        border-radius: 8px;
        font-size: 0.8rem;
        font-weight: 600;
        transition: var(--transition);
        text-decoration: none;
        white-space: nowrap;
    }

    .btn-track-nav:hover,
    .btn-track-nav:active {
        background: var(--primary);
        color: var(--white);
        border-color: var(--primary);
    }

    .hotline {
        display: none;
    }

    /* Mobile Sidebar Menu - slides from right, covers 50% */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 60%;
        min-width: 220px;
        max-width: 320px;
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        padding: 75px 16px 32px;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        overflow-y: auto;
        gap: 4px;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu a {
        width: 100%;
        padding: 12px 14px;
        border-radius: 10px;
        font-size: 0.88rem;
        font-weight: 600;
        color: var(--text-dark);
        display: flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
    }

    .nav-menu a i {
        font-size: 0.85rem;
        width: 18px;
        text-align: center;
        flex-shrink: 0;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background: rgba(2, 132, 199, 0.08);
        color: var(--primary);
    }

    /* Close button area inside sidebar */
    .nav-menu::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: var(--bg-light);
        border-bottom: 1px solid var(--border);
    }

    /* Hero */
    .hero {
        padding: 50px 0;
    }

    .hero h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 0.9rem;
        line-height: 1.7;
        padding: 0 10px;
    }

    .hero-badge {
        font-size: 0.65rem;
        padding: 6px 14px;
        letter-spacing: 0.5px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 12px;
        width: 100%;
        max-width: 440px;
        margin: 0 auto;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        flex: 1;
        min-width: 0;
        padding: 12px 14px;
        font-size: 0.84rem;
        font-weight: 700;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
        border-radius: 50px;
    }

    /* Section headers */
    .section-header h2 {
        font-size: 1.4rem;
    }

    .section-header p {
        font-size: 0.85rem;
        padding: 0 10px;
    }

    /* Products: 2 per row on mobile (Reference Image 2) */
    .products-section {
        padding: 40px 0;
    }

    .products-header-bar {
        margin-bottom: 12px;
    }

    .products-count {
        font-size: 0.8rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .product-card {
        padding: 8px 8px 10px 8px;
        border-radius: 12px;
    }

    .product-image {
        border-radius: 8px;
    }

    .product-badge {
        font-size: 0.6rem;
        padding: 2px 6px;
        top: 6px;
        right: 6px;
        border-radius: 4px;
    }

    .product-info {
        padding: 6px 1px 4px;
    }

    .product-category {
        font-size: 0.62rem;
        margin-bottom: 2px;
    }

    .product-title {
        font-size: 0.82rem;
        margin-bottom: 6px;
        line-height: 1.25;
    }

    .product-price-box {
        margin-bottom: 8px;
    }

    .product-price {
        font-size: 0.95rem;
    }

    .btn-buy-now,
    .btn-order {
        padding: 7px 4px;
        font-size: 0.76rem;
        border-radius: 6px;
        gap: 4px;
    }

    .filter-bar {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 0;
        width: 100%;
        margin-bottom: 24px;
    }

    .filter-bar select,
    .filter-bar input {
        min-width: 0;
        border-radius: 50px;
    }

    .filter-bar select {
        flex: 0 0 45%;
        max-width: 48%;
        padding: 9px 30px 9px 12px;
        font-size: 0.8rem;
        background-position: right 12px center;
        background-size: 11px 11px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .filter-bar input {
        flex: 1;
        padding: 9px 12px;
        font-size: 0.8rem;
    }

    /* Benefits */
    .benefits-section {
        padding: 50px 0;
    }

    .benefits-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .benefit-card {
        padding: 24px 16px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer {
        padding: 40px 0 0;
    }

    .footer-payments {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 20px 0;
    }

    .footer-payments-label {
        border-right: none;
        padding-right: 0;
    }

    .footer-payments-image {
        width: 100%;
        padding: 0;
    }

    /* Toast on mobile */
    .toast {
        right: 12px;
        left: 12px;
        max-width: none;
        bottom: 80px;
    }
}

/* --- Small Mobile --- */
@media (max-width: 480px) {
    .navbar .container {
        padding: 8px 12px;
    }

    .nav-brand {
        font-size: 1rem;
        gap: 6px;
    }

    .nav-brand .brand-icon {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .nav-brand .brand-logo-img {
        height: 36px;
        width: auto;
        max-width: 140px;
    }

    .btn-track-nav {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    .hero {
        padding: 36px 0 28px;
    }

    .hero h1 {
        font-size: 1.4rem;
    }

    .hero p {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }

    .hero-badge {
        font-size: 0.65rem;
        padding: 5px 12px;
        margin-bottom: 16px;
    }

    .hero-image img {
        max-width: 320px;
        border-radius: 14px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: row;
        width: 100%;
        gap: 10px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        flex: 1;
        min-width: 0;
        width: auto;
        padding: 11px 8px;
        font-size: 0.78rem;
        font-weight: 700;
        gap: 5px;
    }

    .filter-bar {
        gap: 6px;
        margin-bottom: 20px;
    }

    .filter-bar select {
        flex: 0 0 44%;
        max-width: 46%;
        padding: 8px 28px 8px 10px;
        font-size: 0.78rem;
        background-position: right 10px center;
        background-size: 10px 10px;
    }

    .filter-bar input {
        padding: 8px 10px;
        font-size: 0.78rem;
    }

    .products-header-bar {
        margin-bottom: 10px;
    }

    .products-count {
        font-size: 0.78rem;
    }

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

    .product-card {
        padding: 7px 7px 9px 7px;
        border-radius: 10px;
    }

    .product-image {
        border-radius: 6px;
    }

    .product-title {
        font-size: 0.78rem;
        margin-bottom: 4px;
    }

    .product-price {
        font-size: 0.9rem;
    }

    .btn-buy-now,
    .btn-order {
        padding: 6px 3px;
        font-size: 0.74rem;
        border-radius: 6px;
    }

    .section-header h2 {
        font-size: 1.25rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .benefit-card {
        padding: 20px 16px;
    }

    .benefit-icon {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    .footer-brand p {
        font-size: 0.8rem;
    }

    .whatsapp-float {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
        bottom: 16px;
        right: 16px;
    }

    .container {
        padding: 0 14px;
    }
}

/* --- Very Small Mobile (320px) --- */
@media (max-width: 360px) {
    .nav-brand .brand-logo-img {
        height: 32px;
        width: auto;
        max-width: 120px;
    }

    .nav-brand {
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 1.2rem;
    }

    .hero p {
        font-size: 0.78rem;
    }

    .hero-buttons {
        gap: 6px;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        padding: 9px 4px;
        font-size: 0.72rem;
        gap: 3px;
    }

    .filter-bar {
        gap: 5px;
        margin-bottom: 16px;
    }

    .filter-bar select {
        padding: 7px 22px 7px 8px;
        font-size: 0.72rem;
        background-position: right 7px center;
        background-size: 9px 9px;
    }

    .filter-bar input {
        padding: 7px 8px;
        font-size: 0.72rem;
    }

    .section-header h2 {
        font-size: 1.1rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }

    .product-card {
        padding: 6px 6px 8px 6px;
    }

    .product-title {
        font-size: 0.74rem;
    }

    .product-price {
        font-size: 0.85rem;
    }

    .btn-buy-now,
    .btn-order {
        padding: 5px 2px;
        font-size: 0.7rem;
    }
}

