/* 
 * Multi Super 
 * Global Stylesheet
 * Everything You Need, Close to Home
 */

/* 1. Imports & Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@600;700;800&display=swap');
@import url('https://fonts.cdnfonts.com/css/cooper-black');

/* 2. Variables & Tokens */
:root {
    /* Brand Colors */
    --color-primary: #D32F2F;
    --color-primary-dark: #B71C1C;
    --color-primary-light: #FFEBEE;
    --color-accent: #212121;
    --color-accent-dark: #000000;

    /* Semantic Colors */
    --color-text: #1C1C1C;
    --color-text-muted: #6B7280;
    --color-border: #E5E7EB;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F9FAFB;

    /* Status Colors */
    --color-success: #16A34A;
    --color-error: #DC2626;
    --color-warning: #F59E0B;
    --color-info: #2563EB;

    /* Typography */
    --font-heading: 'Cooper Black', 'Poppins', serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --radius: 10px;
    --radius-lg: 16px;
    --container-max: 1280px;
    --navbar-height: 70px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Animation */
    --transition: all 0.2s ease;
}

/* 3. Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0px;
    /* Space for fixed header */
}

/* Removed duplicate .site-header blocks, logic consolidated natively below */

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

ul {
    list-style: none;
}

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

/* 4. Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* 5. Layout Utilities */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 64px 0;
}

.section-sm {
    padding: 40px 0;
}

.flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

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

.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 16px;
}

.gap-3 {
    gap: 24px;
}

.w-full {
    width: 100%;
}

.text-center {
    text-align: center;
}

.bg-alt {
    position: relative;
    background: #f4f4f4;
    overflow: hidden;
}

/* 3D Ridge Grid Pattern for Backgrounds and Containers */
.industrial-grid-light {
    position: relative;
    background-color: #f8f9fa;
    background-image: 
        repeating-linear-gradient(45deg, rgba(0,0,0,0.01) 0px, rgba(0,0,0,0.01) 1px, transparent 1px, transparent 20px),
        repeating-linear-gradient(-45deg, rgba(0,0,0,0.01) 0px, rgba(0,0,0,0.01) 1px, transparent 1px, transparent 20px);
}

.card-3d-industrial {
    position: relative;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 
        0 10px 20px rgba(0,0,0,0.05),
        inset 0 0 0 1px rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.card-3d-industrial:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.stock-item-3d {
    transition: background 0.2s;
}

.stock-item-3d:hover {
    background: rgba(229, 29, 32, 0.05);
}

.ticker-wrap {
    background: #1a1a1a;
    color: #fff;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
    border-bottom: 4px solid #e51d20;
}

.hidden {
    display: none !important;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* 6. Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    gap: 8px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
}

.btn-dark {
    background-color: var(--color-accent);
    color: white;
}

.btn-dark:hover {
    background-color: var(--color-accent-dark);
}

.btn-outline {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--color-primary-light);
}

.btn-secondary {
    background-color: var(--color-bg-alt);
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-muted);
}

.btn-ghost:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--color-text);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.125rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── AUTH STYLES ──────────────────────────────────── */
.login-main {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 16px;
    background: #F9F9F9;
}

.login-page-wrap {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.09);
}

.login-logo {
    font-family: 'Cooper Black', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1;
}

.login-logo .logo-multi {
    color: #D32F2F;
}

.login-logo .logo-super {
    color: #212121;
}

.login-tabs {
    display: flex;
    border-bottom: 2px solid #F0F0F0;
    margin-bottom: 24px;
}

.login-tab {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #9E9E9E;
    cursor: pointer;
    transition: all 0.15s;
}

.login-tab.active {
    color: #D32F2F;
    border-bottom-color: #D32F2F;
}

.login-hint {
    font-size: 0.85rem;
    color: #757575;
    margin-bottom: 20px;
}

.phone-row {
    display: flex;
    align-items: center;
}

.phone-prefix {
    background: #F5F5F5;
    border: 1px solid #E0E0E0;
    border-right: none;
    padding: 11px 12px;
    font-size: 0.88rem;
    color: #424242;
    border-radius: 8px 0 0 8px;
    white-space: nowrap;
}

.phone-row .form-input {
    border-radius: 0 8px 8px 0;
}

.auth-error {
    background: #FFEBEE;
    border: 1px solid #FFCDD2;
    color: #C62828;
    font-size: 0.85rem;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 14px;
}

.auth-success-wrap {
    text-align: center;
    padding: 20px 0 8px;
}

.auth-success-icon {
    width: 48px;
    height: 48px;
    background: #E8F5E9;
    color: #2E7D32;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.auth-success-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

.login-help {
    text-align: center;
    margin-top: 18px;
    font-size: 0.82rem;
}

.login-help a {
    color: #D32F2F;
    text-decoration: none;
}

.login-help a:hover {
    text-decoration: underline;
}

.register-note {
    font-size: 0.78rem;
    color: #9E9E9E;
    text-align: center;
    margin-top: 14px;
    line-height: 1.6;
}

.register-note a {
    color: #D32F2F;
}

/* ── LOYALTY CHECK SECTION ───────────────────────── */
.loyalty-check-section {
    background: #FFEBEE;
    border-top: 1px solid #FFCDD2;
    border-bottom: 1px solid #FFCDD2;
    padding: 24px 0;
}

.loyalty-check-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.loyalty-check-left h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #212121;
    margin-bottom: 4px;
}

.loyalty-check-left p {
    font-size: 0.85rem;
    color: #757575;
}

.loyalty-input-row {
    display: flex;
    align-items: center;
    gap: 0;
}

.loyalty-input-row .phone-prefix {
    border-radius: 8px 0 0 8px;
}

.loyalty-input-row .form-input {
    border-radius: 0;
    width: 160px;
}

.loyalty-input-row .btn {
    border-radius: 0 8px 8px 0;
    white-space: nowrap;
}

.loyalty-new-link {
    font-size: 0.8rem;
    color: #9E9E9E;
    margin-top: 8px;
}

.loyalty-new-link a {
    color: #D32F2F;
    font-weight: 600;
}

.loyalty-found {
    text-align: center;
    padding: 16px;
}

.loyalty-found-icon {
    width: 40px;
    height: 40px;
    background: #E8F5E9;
    color: #2E7D32;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.loyalty-found p {
    font-size: 0.9rem;
    color: #212121;
    margin-bottom: 14px;
}

.loyalty-found-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── HEADER DROPDOWN ─────────────────────────────── */
.header-user-menu {
    position: relative;
}

.header-user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1.5px solid #D32F2F;
    border-radius: 8px;
    padding: 7px 13px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #D32F2F;
    transition: background 0.15s;
}

.header-user-trigger:hover {
    background: #FFEBEE;
}

.user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #D32F2F;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.header-user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    min-width: 200px;
    z-index: 3000;
    overflow: hidden;
}

.header-user-dropdown.open {
    display: block;
}

.dropdown-user-info {
    padding: 14px 16px 10px;
    border-bottom: 1px solid #F5F5F5;
}

.dropdown-user-info strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #212121;
}

.dropdown-user-info span {
    font-size: 0.78rem;
    color: #9E9E9E;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 0.87rem;
    color: #212121;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s;
}

.dropdown-item:hover {
    background: #FFEBEE;
    color: #D32F2F;
}

.dropdown-divider {
    height: 1px;
    background: #F5F5F5;
    margin: 4px 0;
}

.dropdown-logout {
    color: #D32F2F;
    font-weight: 600;
}


/* 7. Site Header — CONTAINER / STRIP STYLE ─────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #b71c1c; /* Deep red base */
    
    /* Strong 3D Deep Ridges and Lighting Container Texture */
    background-image: 
        repeating-linear-gradient(
            90deg,
            rgba(0,0,0,0.3) 0px,
            rgba(0,0,0,0.1) 12px,
            rgba(255,255,255,0.2) 12px,
            rgba(255,255,255,0.05) 24px,
            rgba(0,0,0,0.0) 24px,
            rgba(0,0,0,0.0) 64px
        ),
        linear-gradient(to bottom, rgba(255,255,255,0.15) 0%, rgba(0,0,0,0.4) 100%);
        
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3);
    border-bottom: 4px solid #7f0000;
}

/* Industrial Rivets on the container */
.site-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle, rgba(0,0,0,0.5) 2.5px, transparent 3.5px),
        radial-gradient(circle, rgba(255,255,255,0.15) 2.5px, transparent 3.5px);
    background-size: 64px 45px;
    background-position: 9px 8px, 10px 9px;
    opacity: 0.9;
    pointer-events: none;
    z-index: 0;
}

/* Making sure inner content is above the rivets */
.site-header .header-main, 
.site-header .nav-main {
    position: relative;
    z-index: 2;
}

/* Container top edge — corrugated metal look */
.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: repeating-linear-gradient(90deg,
            #ff4040 0px,
            #ff4040 8px,
            #a00000 8px,
            #a00000 16px);
    z-index: 1;
    box-shadow: inset 0 -1px 2px rgba(0,0,0,0.4);
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

.site-header.header-visible {
    transform: translateY(0);
}

/* Mobile Toggle Hamburger */
.header-toggle-btn {
    position: fixed;
    top: 14px;
    right: 18px;
    z-index: 1100;
    width: 44px;
    height: 44px;
    border-radius: 6px; /* Industrial squared look */
    background: #D32F2F;
    color: #fff;
    border: 2px solid #b71c1c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.header-toggle-btn:hover {
    background: #B71C1C;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Row 2: Main Header */
.header-main {
    background: transparent;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
}

.site-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.9rem;
    text-decoration: none;
    line-height: 1;
    flex-shrink: 0;
}

/* Logo colors on container header */
.site-header .logo-multi,
.site-header .site-logo img {
    filter: brightness(1.1);
}

.logo-multi {
    color: #D32F2F;
}

.logo-super {
    color: #212121;
}

/* Search bar — glass morphism on container */
.header-search {
    flex: 1;
    max-width: 560px;
    margin: 0 auto;
}

.search-wrap {
    display: flex;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
}

.search-wrap:focus-within {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.1);
}

.search-wrap input {
    flex: 1;
    padding: 11px 16px;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: transparent;
    color: #fff;
}

.search-wrap input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.search-wrap button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding: 11px 22px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-wrap button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
}

/* Branch Selector Pills */
.header-branch-pills {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 50px;
}

.branch-pill {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    line-height: 1;
}

.branch-pill:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.branch-pill.active {
    background: #fff;
    color: var(--color-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Auth buttons on container header */
.site-header .btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    background: transparent;
}

.site-header .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
}

.site-header .btn-primary.btn-sm {
    background: #fff;
    color: #C62828;
    border-color: #fff;
    font-weight: 700;
}

.site-header .btn-primary.btn-sm:hover {
    background: #FFEBEE;
}

/* Nav login button on container */
.site-header .nav-login-btn {
    background: #fff;
    color: #C62828;
    border-color: #fff;
    font-weight: 700;
}

.site-header .nav-login-btn:hover {
    background: #FFEBEE;
}

.btn-account {
    border-color: #fff;
    color: #fff;
}

.btn-account:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.points-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 5px 14px;
    border-radius: 50px;
    display: none;
}

/* User avatar on container header */
.site-header .user-avatar {
    background: #fff;
    color: #C62828;
}

.site-header .nav-user-btn span {
    color: #fff;
}

.site-header .nav-user-btn i {
    color: rgba(255, 255, 255, 0.7);
}

.hamburger {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
}

/* Row 3: Header Nav — dark industrial bar */
.header-nav {
    background: #1a1a1a;
    border-bottom: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.header-nav .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.nav-link {
    padding: 12px 17px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: var(--transition);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: #ff5252;
    border-bottom-color: #ff5252;
    background: rgba(255, 82, 82, 0.08);
}

/* 8. Footer (New 4-zone structure) */

/* Zone 1: Newsletter */
.footer-newsletter {
    background: var(--color-primary);
    /* The red color */
    padding: 36px 0;
    position: relative;
    overflow: hidden;
}

.footer-newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.footer-newsletter .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.newsletter-text h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: white;
    margin: 0 0 6px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.newsletter-text p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.newsletter-form {
    display: flex;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.newsletter-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px 0 0 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    color: var(--color-text);
}

.newsletter-input:focus {
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.newsletter-btn {
    background: #111;
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 26px;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background: #333;
}

/* Zone 2: Main Footer */
.footer-main {
    background: #FAFAFA;
    padding: 60px 0 40px 0;
    border-bottom: 1px solid #E0E0E0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 2.5fr;
    gap: 40px;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.footer-brand .footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.logo-multi {
    color: var(--color-primary);
}

.logo-super {
    color: #111;
}

.footer-tagline {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

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

.social-btn {
    width: 40px;
    height: 40px;
    border: 1.5px solid #E0E0E0;
    background: white;
    color: #555;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: var(--color-primary);
    color: white;
    background: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(211, 47, 47, 0.25);
}

.footer-heading {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.05rem;
    color: #111;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-links-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links-col a {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #555;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

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

.footer-contact-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 14px;
    line-height: 1.4;
}

.footer-contact-item span:first-child {
    font-size: 1.1rem;
}

/* 6-Branch Grid */
.footer-branches-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 480px) {
    .footer-branches-grid {
        grid-template-columns: 1fr;
    }
}

.footer-branch-box {
    background: white;
    border: 1px solid #EAEAEA;
    border-radius: 8px;
    padding: 12px;
    transition: var(--transition);
}

.footer-branch-box:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.footer-branch-box strong {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: #111;
    display: block;
    margin-bottom: 4px;
}

.footer-branch-box p {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Zone 3: Footer Bottom */
.footer-bottom {
    background: #212121;
    padding: 14px 0;
}

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

.footer-bottom p {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 16px;
}

.footer-legal a {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    transition: var(--transition);
}

.footer-legal a:hover {
    color: white;
}

/* 8.5 UI Components */
.no-card-box {
    background: linear-gradient(135deg, rgba(26, 107, 58, 0.05) 0%, rgba(26, 107, 58, 0.15) 100%);
    border: 1px solid rgba(26, 107, 58, 0.2);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    margin-top: 30px;
}

.no-card-box i {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.no-card-box h4 {
    color: var(--color-text);
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
}

.no-card-box p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

/* 9. Scroll to top & Toast */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
    box-shadow: var(--shadow-md);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    padding: 16px 24px;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease forwards;
}

.toast.success {
    border-left: 4px solid var(--color-success);
}

.toast.error {
    border-left: 4px solid var(--color-error);
}

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

.toast.warning {
    border-left: 4px solid var(--color-warning);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 10. Offer Card */
.offer-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

@media (max-width: 1100px) {
    .hot-offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hot-offers-grid {
        grid-template-columns: 1fr;
    }
}

.offer-image-box {
    height: 140px;
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 3rem;
}

.offer-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--color-accent);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
}

.offer-details {
    padding: 20px;
}

.original-price {
    text-decoration: line-through;
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.offer-price {
    color: var(--color-primary);
    font-size: 1.25rem;
    font-weight: 700;
}

.offer-branch-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 12px;
}

.offer-branches .branch-pill,
.offer-branch-tags .branch-tag {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border: none;
}

/* 11. Rate Card & Calculator */
.rate-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
}

.rate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.rate-item:last-child {
    border-bottom: none;
}

.rate-name {
    font-weight: 600;
}

.rate-price {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
}

.rate-unit {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-left: 4px;
}

.rate-change {
    margin-left: 12px;
    font-size: 0.875rem;
}

.rate-change.up {
    color: var(--color-error);
}

.rate-change.down {
    color: var(--color-success);
}

.rate-change.same {
    color: var(--color-text-muted);
}

.calc-box {
    background: white;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.calc-input {
    margin-bottom: 24px;
}

.calc-result {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary);
    font-weight: 800;
    margin-top: 16px;
}

/* 12. Stock Status */
.stock-badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.stock-badge.in-stock {
    background: #DCFCE7;
    color: var(--color-success);
}

.stock-badge.low-stock {
    background: #FEF3C7;
    color: var(--color-warning);
}

.stock-badge.out-stock {
    background: #FEE2E2;
    color: var(--color-error);
}

.stock-badge.unknown {
    background: #F3F4F6;
    color: var(--color-text-muted);
}

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

@media (max-width: 768px) {
    .stock-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stock-branch-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px;
}

.stock-branch-name {
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.stock-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* 13. Loyalty Card */
.loyalty-card-wrap {
    max-width: 380px;
    margin: 0 auto;
}

.loyalty-card {
    aspect-ratio: 1.586 / 1;
    background: linear-gradient(135deg, #B71C1C, #D32F2F, #EF5350);
    border-radius: var(--radius-lg);
    padding: 30px;
    color: white;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-lg);
}

.card-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
}

.card-chip {
    width: 50px;
    height: 40px;
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    border-radius: 6px;
    margin-bottom: 10px;
}

.points-display {
    text-align: center;
}

.points-value {
    font-size: 2.5rem;
    font-weight: 800;
}

.points-label {
    opacity: 0.8;
}

.card-number {
    font-family: monospace;
    letter-spacing: 4px;
    font-size: 1.1rem;
}

.card-footer-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.9;
}

/* 14. Branch Card */
.branch-card {
    background: white;
    box-shadow: var(--shadow-md);
    border-left: 6px solid var(--color-primary);
    border-radius: var(--radius);
    padding: 32px;
}

.branch-badge {
    display: inline-block;
    background: var(--color-accent);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 50px;
    font-size: 0.75rem;
    margin-right: 6px;
    margin-bottom: 6px;
}

.branch-hours {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.branch-hours td {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}

/* 15. Forms & UI Components */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 107, 58, 0.1);
}

.form-error {
    color: var(--color-error);
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
}

.form-error.show {
    display: block;
}

.tabs-nav {
    display: flex;
    gap: 32px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 32px;
}

.tab-btn {
    padding: 12px 0;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    color: var(--color-text-muted);
    position: relative;
}

.tab-btn.active {
    color: var(--color-primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 16. Alert & Notice */
.alert-banner {
    padding: 16px 20px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
}

.alert-warning {
    background: #FEF3C7;
    color: #92400E;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
}

.section-title {
    position: relative;
    padding-bottom: 16px;
    margin-bottom: 32px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 2px;
}

.page-hero {
    background: linear-gradient(135deg, #C62828 0%, #D32F2F 50%, #E53935 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

/* 17. Animations */
.anim {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim.visible {
    opacity: 1;
    transform: translateY(0);
}

.anim-delay-1 {
    transition-delay: 0.1s;
}

.anim-delay-2 {
    transition-delay: 0.2s;
}

.anim-delay-3 {
    transition-delay: 0.3s;
}

.anim-delay-4 {
    transition-delay: 0.4s;
}

/* 18. Stats */
.stats-section {
    background: var(--color-primary);
    color: white;
    padding: 64px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 19. Media Queries */
@media (max-width: 992px) {
    .navbar-inner {
        padding: 0 15px;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 600px) {
    .section {
        padding: 48px 0;
    }

    .stat-number {
        font-size: 2rem;
    }

    .page-hero {
        padding: 60px 0;
    }
}

/* 20. Stock Status Grid Row */
.points-table {
    width: 100%;
    border-collapse: collapse;
}

.points-row {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}

.points-earned {
    color: var(--color-success);
    font-weight: 700;
}

.points-spent {
    color: var(--color-accent);
    font-weight: 700;
}

/* Tier Badges */
.tier-badge {
    padding: 4px 16px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.tier-badge.bronze {
    background: #FDE6D2;
    color: #CD7F32;
}

.tier-badge.silver {
    background: #F3F4F6;
    color: #71717A;
}

.tier-badge.gold {
    background: #FEF3C7;
    color: #D97706;
}

.tier-badge.platinum {
    background: #E5E7EB;
    color: #374151;
}

/* Pamphlet Box */
.pamphlet-box {
    max-width: 560px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.pamphlet-preview {
    height: 120px;
    background: #fdfdfd;
    border: 1px dashed var(--color-border);
    margin: 20px auto;
    width: 180px;
    border-radius: 4px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pamphlet-line {
    height: 8px;
    background: #f1f1f1;
    border-radius: 2px;
}

.pamphlet-form {
    display: flex;
    gap: 12px;
}

@media (max-width: 500px) {
    .pamphlet-form {
        flex-direction: column;
    }
}

/* --- PROMPT 2 UPDATES --- */

/* PART A - Font & Heading Styles */
.site-logo,
.section-title,
.offer-title,
.product-dir-name,
.nav-link,
.loyalty-card .card-points,
.footer-heading,
.category-title,
.stat-number {
    font-family: var(--font-heading) !important;
}

/* Red Underline for Section Titles */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 2px;
}

/* PART B - Footer 2-Column Grid */
.footer-col ul,
.footer-col .quick-links {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px 20px !important;
}

/* PART E - Social Media Support */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
}

/* --- CATEGORY GRID STYLES --- */
.category-section {
    padding: 60px 0;
    background: white;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px 24px;
    margin-top: 30px;
}

.category-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.category-circle:hover .circle-img {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.circle-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1.5px solid #E0E0E0;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.circle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.circle-emoji {
    font-size: 3rem;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.circle-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #212121;
    text-align: center;
    max-width: 90px;
}

@media (max-width: 900px) {
    .category-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 600px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .circle-img {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 400px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .circle-img {
        width: 76px;
        height: 76px;
    }
}

/* --- CHATBOT MALEE STYLES --- */
.chatbot-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px; /* Moved to right for premium feel */
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #e51d20, #b31619);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(229, 29, 32, 0.4),
                inset 0 2px 5px rgba(255, 255, 255, 0.3);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.chatbot-trigger img.bot-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.chatbot-trigger:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(229, 29, 32, 0.5),
                inset 0 2px 8px rgba(255, 255, 255, 0.4);
}

.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    border: 1px solid var(--color-border);
}

/* Industrial Grid & Rivet Aesthetics */
.bg-industrial-ridges {
    background-color: #f8f9fa;
    background-image: 
        repeating-linear-gradient(90deg, transparent, transparent 38px, rgba(0,0,0,0.03) 38px, rgba(0,0,0,0.03) 40px),
        repeating-linear-gradient(0deg, transparent, transparent 38px, rgba(0,0,0,0.03) 38px, rgba(0,0,0,0.03) 40px);
    position: relative;
}

.bg-industrial-ridges::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, #ccc 2px, transparent 2px);
    background-size: 40px 40px;
    background-position: 19px 19px;
    opacity: 0.3;
    pointer-events: none;
}

.chatbot-header {
    background: var(--color-primary);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f0f2f5;
}

.chat-msg-wrapper {
    display: flex;
    gap: 10px;
    max-width: 85%;
}

.chat-msg-wrapper.bot {
    align-self: flex-start;
}

.chat-msg-wrapper.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}

.chat-msg {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.chat-msg.bot {
    background: white;
    color: #333;
    border-top-left-radius: 2px;
}

.chat-msg.user {
    background: linear-gradient(135deg, #e51d20, #b31619);
    color: white;
    border-top-right-radius: 2px;
}
}

.chatbot-input {
    padding: 15px;
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 10px;
}

.chatbot-input input {
    flex: 1;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.9rem;
    outline: none;
}

.chatbot-input button {
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chatbot-input button:hover {
    background: var(--color-primary-dark, #cc0000);
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.quick-replies button {
    background: white;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.quick-replies button:hover {
    background: var(--color-primary);
    color: white;
}

.chatbot-input button {
    background: var(--color-primary);
    color: white;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
}

/* --- DESKTOP NOTICE --- */
.desktop-notice {
    display: none;
    background: #FFF3E0;
    color: #E65100;
    padding: 8px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    border-bottom: 1px solid #FFE0B2;
}

@media (max-width: 1024px) {
    .desktop-notice {
        display: block;
    }
}

/* --- PRODUCT & SORT BAR STYLES --- */
.sort-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.sort-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 20px;
    transition: var(--transition);
}

.sort-btn.active {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.product-directory-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-dir-image {
    position: relative;
    overflow: hidden;
}

.product-dir-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-directory-card:hover .product-dir-image img {
    transform: scale(1.1);
}

.product-dir-links {
    margin-top: auto;
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid var(--color-border);
}

/* ==========================================
   PREMIUM OFFER CARDS
   ========================================== */
.offer-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

/* Badge Wrap & Elements */
.offer-badge-wrap {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
}

.offer-save-badge {
    background: var(--accent);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    font-family: var(--font-heading);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: badgePulse 2s infinite;
}

.hot-tag {
    background: #FF5722;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.3);
}

/* Image Section */
.offer-image {
    width: 100%;
    height: 200px;
    background: #F9FAFB;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.offer-card:hover .offer-image img {
    transform: scale(1.1);
}

.offer-cat-pill {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Details Section */
.offer-details {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.offer-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-text);
    margin: 0;
    line-height: 1.3;
}

.offer-unit {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    background: var(--color-bg-alt);
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.offer-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

/* Pricing Panel */
.offer-pricing-panel {
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, #fff 100%);
    padding: 16px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--color-border);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.offer-pricing-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
}

.price-main {
    display: flex;
    flex-direction: column;
}

.price-current {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-primary);
    line-height: 1;
}

.price-was {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
    margin-top: 4px;
}

.price-discount-tag {
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 8px;
}

/* Footer & Validity */
.offer-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed var(--color-border);
}

.offer-valid {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.offer-valid i {
    color: var(--accent);
}

/* Horizontal Variant */
.offer-card-horizontal {
    flex-direction: row;
    min-height: 220px;
}

.offer-card-horizontal .offer-image {
    width: 240px;
    height: 100%;
    flex-shrink: 0;
}

.offer-card-horizontal .offer-details {
    padding: 24px 32px;
}

.offer-card-horizontal .offer-title {
    font-size: 1.4rem;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }
}

@media (max-width: 768px) {
    .offer-card-horizontal {
        flex-direction: column;
    }

    .offer-card-horizontal .offer-image {
        width: 100%;
        height: 180px;
    }
}

/* --- MOBILE RESPONSIVENESS & TOUCH TARGETS --- */

/* Chatbot Position */
.chatbot-trigger {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: transform 0.3s ease;
}

.chatbot-trigger:hover {
    transform: scale(1.1);
}

.chatbot-window {
    position: fixed;
    bottom: 6rem;
    left: 2rem;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: none;
    /* Controlled by JS */
    flex-direction: column;
    z-index: 10000;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Mobile Breakpoints */
@media (max-width: 992px) {
    .header-nav {
        display: none;
        /* Toggle via JS */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }

    .header-nav.active {
        display: flex;
    }

    .header-nav .nav-link {
        padding: 1.2rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .hamburger {
        display: block !important;
        background: none;
        border: none;
        font-size: 1.5rem;
        padding: 10px;
        min-height: 44px;
        min-width: 44px;
        cursor: pointer;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .categories-grid {
        display: flex;
        overflow-x: auto;
        gap: 1.5rem;
        padding-bottom: 1rem;
        scrollbar-width: none;
    }

    .categories-grid::-webkit-scrollbar {
        display: none;
    }

    .category-circle {
        flex-shrink: 0;
        width: 100px;
        height: 100px;
    }

    /* Touch Target Optimization */
    .btn,
    button,
    .nav-link,
    .sort-btn,
    .filter-btn {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Desktop Notice */
.desktop-notice {
    background: var(--color-accent);
    color: white;
    text-align: center;
    padding: 0.8rem;
    font-size: 0.85rem;
    font-weight: 500;
    display: none;
}

@media (max-width: 1024px) {
    .desktop-notice {
        display: block;
    }
}

/* ==========================================
   PAGE LOADER
   ========================================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    animation: loaderPulse 1.2s ease-in-out infinite;
}

.loader-multi {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: #D32F2F;
}

.loader-super {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    color: #212121;
}

.loader-bar-wrap {
    width: 200px;
    height: 4px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #D32F2F, #FF5252);
    border-radius: 4px;
    animation: loaderProgress 1.8s ease-in-out forwards;
}

@keyframes loaderPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.85;
    }
}

@keyframes loaderProgress {
    0% {
        width: 0%;
    }

    50% {
        width: 60%;
    }

    100% {
        width: 100%;
    }
}

/* ==========================================
   HOT OFFERS SLIDER
   ========================================== */
.offer-slider-wrap {
    position: relative;
    overflow: hidden;
    padding: 0 48px;
}

.offer-slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

.offer-slider-track .offer-card {
    min-width: 280px;
    flex: 0 0 280px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #E0E0E0;
    background: white;
    color: #212121;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.slider-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.slider-btn.slider-prev {
    left: 0;
}

.slider-btn.slider-next {
    right: 0;
}

.offer-slider-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}

.offer-slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #E0E0E0;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.offer-slider-dots .dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

.offer-image {
    height: 180px;
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ==========================================
   GREY LOGO FALLBACK FOR MISSING IMAGES
   ========================================== */
.ms-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F5F5F5;
}

.ms-logo-fallback img {
    width: 120px;
    height: auto;
    filter: grayscale(1) brightness(1.2);
    opacity: 0.35;
}

/* ==========================================
   FOOTER BRANCH DETAILS
   ========================================== */
.footer-branches-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.footer-branch-box {
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
    padding: 12px;
    border-radius: 8px;
    transition: var(--transition);
}

.footer-branch-box:hover {
    border-color: var(--color-primary);
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.footer-branch-box strong {
    display: block;
    color: var(--color-primary);
    font-size: 0.85rem;
    margin-bottom: 4px;
    font-family: var(--font-heading);
}

.footer-branch-box p {
    font-size: 0.75rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* ==========================================
   RESPONSIVE: BRANCH PILLS + SLIDER
   ========================================== */
/* REMOVED: .header-branch-pills removed from HTML */

@media (max-width: 768px) {
    .offer-slider-wrap {
        padding: 0 10px;
    }

    .slider-btn {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .offer-slider-track .offer-card {
        min-width: 240px;
        flex: 0 0 240px;
    }

    .chatbot-trigger {
        bottom: 1.2rem;
        left: 1.2rem;
    }

    .chatbot-window {
        right: 1rem;
        bottom: 5rem;
        width: calc(100vw - 2rem);
        height: 400px;
    }
}

/* ==========================================
   LOGIN PAGE
   ========================================== */
.login-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-box {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    margin: 40px auto;
}

.login-box h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--color-text);
}

.login-box .login-subtitle {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.login-phone-group {
    display: flex;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s ease;
    margin-bottom: 20px;
}

.login-phone-group:focus-within {
    border-color: var(--color-primary);
}

.login-phone-group .prefix {
    padding: 12px 14px;
    background: #F9FAFB;
    border-right: 1px solid var(--color-border);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
}

.login-phone-group input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 1rem;
}

.login-box .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    margin-bottom: 16px;
}

.login-box .login-help {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.login-box .login-help a {
    color: var(--color-primary);
    font-weight: 600;
}

/* ==========================================
   CATEGORY GRID (index.html)
   ========================================== */
.categories-section {
    padding: 60px 0;
    background: #fff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 30px;
    margin-top: 40px;
    justify-items: center;
}

.category-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.category-circle:hover {
    transform: translateY(-5px);
}

.category-img-wrap {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    background: #f8f9fa;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: var(--transition);
}

.category-circle:hover .category-img-wrap {
    border-color: var(--color-primary);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.15);
}

.category-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    text-align: center;
}

.category-circle:hover .category-label {
    color: var(--color-primary);
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .category-img-wrap {
        width: 80px;
        height: 80px;
    }
}

/* --- Account Dropdown System --- */
.header-account-wrap {
    position: relative;
    display: flex;
    align-items: center;

}

.header-account-wrap .nav-login-btn {
    display: flex;
    /* Default display for guest */
}

.header-account-wrap.logged-in .nav-login-btn {
    display: none;

}

.header-account-wrap .nav-user-btn {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 6px 18px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(229, 29, 32, 0.2);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    color: #212121;
    font-weight: 600;
}

.header-account-wrap.logged-in .nav-user-btn {
    display: flex;
    background: rgba(255, 255, 255, 0.9); /* More solid for visibility against header */
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-user-btn .user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #e51d20, #b31619);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(229, 29, 32, 0.3);
}

.nav-user-btn #nav-user-name {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    color: #333;
}

.header-account-wrap .nav-user-btn:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.header-account-wrap .nav-user-btn:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary);

}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;

}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 240px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);

}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 1px solid rgba(0, 0, 0, 0.05);

}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.2s ease;

}

.dropdown-link:hover {
    background: #fef2f2;
    color: var(--color-primary);

}

.dropdown-link i {
    width: 20px;
    font-size: 1.1rem;

}

.dropdown-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 8px 0;

}

.dropdown-link.logout {
    color: #dc2626;

}

.dropdown-link.logout:hover {
    background: #fff1f2;

}

/* --- Login & Register Tabs --- */
.login-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 30px;
}

.login-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.login-tab:hover {
    color: var(--color-primary);
}

.login-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.login-form-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.login-form-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

/* --- Authentication UI States --- */
.header-account-wrap .nav-user-btn,
.header-account-wrap .user-dropdown {
    display: none;
}

.header-account-wrap.logged-in .nav-user-btn {
    display: flex;
    /* Or whatever layout was intended, usually flex for avatar+name */
    align-items: center;
    cursor: pointer;
}

.header-account-wrap.logged-in .nav-login-btn {
    display: none;
}

/* Show dropdown only when active */
.header-account-wrap.logged-in .user-dropdown.active {
    display: block;
}

/* 30. New Animations & Transitions */
.hero-slide {
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
    position: absolute;
    inset: 0;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

@keyframes waveHand {
    0% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(18deg);
    }

    20% {
        transform: rotate(-8deg);
    }

    30% {
        transform: rotate(18deg);
    }

    40% {
        transform: rotate(-4deg);
    }

    50% {
        transform: rotate(12deg);
    }

    60% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

/* 31. Branches Map Pills */
.map-pill {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1.5px solid #E0E0E0;
    background: #fff;
    color: #424242;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.map-pill:hover {
    border-color: #D32F2F;
    color: #D32F2F;
}

.map-pill.active {
    background: #D32F2F;
    border-color: #D32F2F;
    color: #fff;
}

form input:focus,
form select:focus,
.calc-box input:focus,
.calc-box select:focus {
    outline: none;
    border: 2px solid var(--color-primary) !important;
}

/* Responsive Helper Classes for Typography and Hero Grid */
.welcome-subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: clamp(1rem, 4vw, 1.25rem);
    margin-bottom: 15px;
    opacity: 0.9;
    text-align: center;
    font-weight: 700;
}

.hero-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 900px) {
    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }
}

/* =====================
   MOBILE RESPONSIVE
   ===================== */
@media (max-width: 768px) {

    /* Header */
    .site-header {
        padding: 0;
    }

    .header-main .container {
        flex-wrap: wrap;
        padding: 10px 16px;
        gap: 10px;
    }

    .header-search {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
    }

    .header-search input {
        width: 100%;
        font-size: 0.85rem;
    }

    .header-actions {
        gap: 8px;
    }

    .header-actions .btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .header-nav {
        display: none;
    }

    /* Nav — mobile burger menu */
    .nav-mobile-open .header-nav {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 80vw;
        max-width: 300px;
        height: 100vh;
        background: #1a1a1a;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
        z-index: 2000;
        padding: 80px 24px 24px;
        overflow-y: auto;
    }

    .nav-mobile-open .header-nav .container {
        flex-direction: column;
        gap: 0;
    }

    .nav-mobile-open .header-nav .nav-link {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid #F5F5F5;
        font-size: 1rem;
    }

    /* Hero */
    .page-hero {
        min-height: auto !important;
        padding: 80px 20px 40px !important;
    }

    .hero-split {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 20px;
    }

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

    .hero-split p {
        font-size: 0.92rem !important;
        max-width: 100% !important;
    }

    .hero-split .flex {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-split .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    #hero-offer-card,
    .offer-card {
        max-width: 90vw;
    }

    /* Category grid */
    .category-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px;
        padding: 0 16px;
    }

    .category-img-wrap,
    .category-circle {
        width: 80px;
        height: 80px;
    }

    .category-label {
        font-size: 0.75rem;
    }

    /* Welcome section */
    .welcome-subtitle {
        font-size: 1rem !important;
    }

    /* Offers slider */
    .offers-slider,
    .offers-scroll {
        gap: 14px;
        padding: 12px 16px 20px;
    }

    .offer-card {
        min-width: 220px !important;
        max-width: 240px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 32px;
        padding: 32px 20px;
    }

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

    .footer-newsletter .container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-form input,
    .newsletter-form button,
    .newsletter-input,
    .newsletter-btn {
        width: 100%;
        border-radius: 10px;
    }

    /* Sections general */
    .section-container,
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Rate calculator */
    .rate-calculator,
    .calc-box {
        margin: 24px 16px;
        padding: 24px 20px;
    }

    .rate-calc-row {
        flex-direction: column;
        gap: 16px;
    }

    /* Branch cards */
    .branches-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
        padding: 0 16px;
    }

    /* Login page */
    .login-container {
        padding: 24px 16px;
    }

    .login-box {
        margin: 20px 16px !important;
    }

    /* Account page */
    .account-grid {
        grid-template-columns: 1fr;
    }

    /* Chatbot */
    #malee-trigger {
        left: 12px;
        bottom: 12px;
    }

    #malee-window {
        width: calc(100vw - 24px) !important;
        max-width: 360px;
        left: 12px !important;
    }

    /* Scroll to top */
    #scroll-top-btn {
        right: 12px;
        bottom: 12px;
    }

    /* Branch filter toggle */
    #branch-filter-toggle {
        top: auto;
        bottom: 80px;
    }

    /* Tables */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Maps */
    .branch-map-search {
        max-width: 100%;
    }

    #map-branch-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }

    /* Page hero text */
    .page-hero h1 {
        font-size: 2rem !important;
    }

    .page-hero p {
        font-size: 0.9rem !important;
    }

    /* Pamphlet page */
    .pamphlet-grid {
        grid-template-columns: 1fr !important;
    }

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

    /* Stock page */
    .stock-grid {
        grid-template-columns: 1fr !important;
    }

    /* Search results */
    #results-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
}

@media (max-width: 480px) {

    .page-hero h1,
    .hero-split h1 {
        font-size: 1.8rem !important;
    }

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

    .offer-card {
        min-width: 200px !important;
    }

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

    .products-grid,
    #results-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ── LOGIN PAGE ─ Premium Consolidated Login/Signup ─── */
.login-container {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
}

.login-box {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D32F2F, #ff5252, #D32F2F);
}

.login-box .login-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 28px;
    gap: 0;
}

.login-box .login-tab {
    flex: 1;
    padding: 12px 8px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: #9E9E9E;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.login-box .login-tab:hover {
    color: #666;
}

.login-box .login-tab.active {
    color: #C62828;
    border-bottom-color: #C62828;
}

.login-form-panel {
    display: none;
}

.login-form-panel.active {
    display: block;
    animation: fadeSlideUp 0.3s ease;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-subtitle {
    font-size: 0.88rem;
    color: #757575;
    margin-bottom: 24px;
    text-align: center;
}

.login-box .form-group {
    margin-bottom: 18px;
}

.login-box .form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #424242;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.login-box .form-group input,
.login-box .form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #E8E8E8;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    background: #FAFAFA;
}

.login-box .form-group input:focus,
.login-box .form-group select:focus {
    border-color: #D32F2F;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.08);
}

.login-phone-group {
    display: flex;
    align-items: center;
}

.login-phone-group .prefix {
    background: #f5f5f5;
    border: 2px solid #E8E8E8;
    border-right: none;
    padding: 12px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    border-radius: 10px 0 0 10px;
    white-space: nowrap;
}

.login-phone-group input {
    border-radius: 0 10px 10px 0 !important;
}

.login-box .btn-primary {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-top: 4px;
}

.login-help {
    text-align: center;
    margin-top: 20px;
    font-size: 0.82rem;
    color: #9E9E9E;
}

.login-help a {
    color: #D32F2F;
    font-weight: 600;
}

/* --- Account Dropdown System --- */
.header-account-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.header-account-wrap .nav-login-btn {
    display: flex;
}

.header-account-wrap.logged-in .nav-login-btn {
    display: none;
}

.header-account-wrap .nav-user-btn {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: #f8f9fa;
    color: var(--color-text); /* Ensure visible text */
    border: 1px solid var(--color-border);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-account-wrap.logged-in .nav-user-btn {
    display: flex;
}

.header-account-wrap .nav-user-btn:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 240px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 12px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.dropdown-link:hover {
    background: #fef2f2;
    color: var(--color-primary);
}

.dropdown-link i {
    width: 20px;
    font-size: 1.1rem;
}

.dropdown-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 8px 0;
}

.dropdown-link.logout {
    color: #dc2626;
}

.dropdown-link.logout:hover {
    background: #fff1f2;
}

/* Industrial Header Styling */
.header-nav.bg-industrial-ridges {
    background-color: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.header-nav.bg-industrial-ridges::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.header-nav.bg-industrial-ridges::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,0.06) 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

