/* ==============================================
   GenSolSolutions - Main Stylesheet
   ============================================== */

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

:root {
    --primary:    #1A2230;
    --accent:     #FFB800;
    --accent-dark:#E6A500;
    --bg:         #f8fafc;
    --white:      #ffffff;
    --gray-100:   #f3f4f6;
    --gray-200:   #e5e7eb;
    --gray-400:   #9ca3af;
    --gray-500:   #6b7280;
    --gray-600:   #4b5563;
    --green:      #10b981;
    --red:        #ef4444;
    --blue:       #3b82f6;
    --radius:     12px;
    --radius-lg:  20px;
    --shadow:     0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
    --shadow-lg:  0 20px 25px -5px rgba(0,0,0,.1), 0 10px 10px -5px rgba(0,0,0,.04);
    --transition: all 0.25s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--primary);
    line-height: 1.6;
}

/* ─── Layout ─────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

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

/* ─── Typography ─────────────────────────── */
h1,h2,h3,h4,h5 { font-weight: 700; line-height: 1.2; }

/* ─── Navbar ─────────────────────────────── */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 800;
}

.navbar-logo .logo-icon {
    width: 38px;
    height: 38px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.navbar-logo .logo-text-dark { color: var(--primary); }
.navbar-logo .logo-text-accent { color: var(--accent); }

.navbar-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.navbar-links a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    transition: var(--transition);
}

.navbar-links a:hover,
.navbar-links a.active { color: var(--primary); font-weight: 700; }

.navbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-search-btn {
    width: 36px; height: 36px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--white);
    color: var(--gray-500);
    transition: var(--transition);
    text-decoration: none;
}
.navbar-search-btn:hover { border-color: var(--primary); color: var(--primary); }

.btn-nav-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}
.btn-nav-cta:hover { background: #2d3a4e; transform: translateY(-1px); }

/* ─── Buttons ─────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: #2d3a4e; transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-accent { background: var(--accent); color: var(--primary); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-outline-white {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.4);
    color: var(--white);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn-green { background: #25D366; color: var(--white); }
.btn-green:hover { background: #1da851; }

.btn-sm { padding: 0.45rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1rem; border-radius: 12px; }
.btn-full { width: 100%; justify-content: center; }

/* ─── Cards ──────────────────────────────── */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-body { padding: 1.5rem; }

/* ─── Forms ──────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--primary); }

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: inherit;
    background: var(--gray-100);
    color: var(--primary);
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(255,184,0,0.15);
}
.form-control::placeholder { color: var(--gray-400); }

select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ─── Alerts ─────────────────────────────── */
.alert {
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.alert-success { background: #d1fae5; border: 1px solid #6ee7b7; color: #065f46; }
.alert-error   { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }
.alert-info    { background: #dbeafe; border: 1px solid #93c5fd; color: #1e3a8a; }
.alert-warning { background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; }

/* ─── Hero - Split Layout (Home) ─────────── */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    padding: 4rem 0 3rem;
}
@media (max-width: 768px) {
    .hero-split { grid-template-columns: 1fr; padding: 2rem 0; }
    .hero-split-image { order: -1; }
}

.hero-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    border: 1px solid #fcd34d;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}
.hero-title .accent { color: var(--accent); }

.hero-subtitle {
    color: var(--gray-500);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 440px;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-image-wrap {
    position: relative;
}
.hero-image-wrap img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ─── Hero Banner (Generators/Solar) ────── */
.hero-banner {
    position: relative;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,34,48,0.92) 0%, rgba(26,34,48,0.75) 100%);
    z-index: 1;
}

.hero-banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-banner-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 1.5rem;
}

.hero-banner-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.hero-banner-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 0.75rem;
}

.hero-banner-sub {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ─── Section Headers ────────────────────── */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.section-header h2 { font-size: 1.6rem; }
.section-header p  { color: var(--gray-500); font-size: 0.9rem; margin-top: 0.25rem; }

/* ─── Product Cards ──────────────────────── */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card-img {
    position: relative;
    height: 200px;
    background: var(--gray-100);
    overflow: hidden;
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.05); }

.product-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    text-transform: uppercase;
}
.badge-instock    { background: #d1fae5; color: #065f46; }
.badge-bestseller { background: var(--accent); color: var(--primary); }
.badge-toprated   { background: #dbeafe; color: #1e3a8a; }

.product-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.product-card-desc {
    font-size: 0.8rem;
    color: var(--gray-500);
    flex: 1;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
}

.btn-add-quote {
    width: 34px; height: 34px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}
.btn-add-quote:hover { background: var(--accent); color: var(--primary); transform: scale(1.1); }

/* ─── Catalog Controls ───────────────────── */
.catalog-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.catalog-controls .btn-outline {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ─── Floating Quotation Button ──────────── */
.floating-quote {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
}

.floating-quote a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.8rem 1.4rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 8px 24px rgba(26,34,48,0.4);
    transition: var(--transition);
    position: relative;
}
.floating-quote a:hover { background: #2d3a4e; transform: translateY(-3px); }

.floating-quote-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--red);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── CTA Sections ───────────────────────── */
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; }
@media (max-width: 640px) { .cta-grid { grid-template-columns: 1fr; } }

.cta-card {
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.cta-card-dark {
    background: var(--primary);
    color: var(--white);
}
.cta-card-accent {
    background: var(--accent);
    color: var(--primary);
}

.cta-card h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.cta-card p  { font-size: 0.875rem; opacity: 0.85; margin-bottom: 1.25rem; line-height: 1.6; }

.cta-card-icon {
    position: absolute;
    right: 1.5rem;
    bottom: 1rem;
    font-size: 5rem;
    opacity: 0.08;
    line-height: 1;
}

/* ─── Auth Page ──────────────────────────── */
.auth-wrap {
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    overflow: hidden;
    width: 100%;
    max-width: 900px;
}
@media (max-width: 640px) { .auth-card { grid-template-columns: 1fr; } }

.auth-panel-left {
    background: var(--primary);
    color: var(--white);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.auth-panel-left h2 { font-size: 1.8rem; margin-bottom: 0.75rem; }
.auth-panel-left p  { color: rgba(255,255,255,0.7); font-size: 0.9rem; line-height: 1.7; margin-bottom: 1.75rem; }

.auth-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
    font-size: 0.875rem;
}
.auth-feature-icon {
    width: 36px; height: 36px;
    background: rgba(255,184,0,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.auth-panel-right { padding: 3rem 2.5rem; }

.auth-tabs {
    display: flex;
    gap: 0.25rem;
    background: var(--gray-100);
    border-radius: 10px;
    padding: 0.3rem;
    margin-bottom: 2rem;
}
.auth-tab {
    flex: 1;
    padding: 0.6rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
    color: var(--gray-500);
}
.auth-tab.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow);
}

.input-icon-wrap {
    position: relative;
}
.input-icon-wrap .form-control { padding-left: 2.75rem; }
.input-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 0.95rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.social-login { display: flex; gap: 1rem; margin-top: 1rem; }
.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}
.social-btn:hover { border-color: var(--primary); background: var(--gray-100); }

/* ─── Quotation Page ─────────────────────── */
.quotation-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 900px) { .quotation-grid { grid-template-columns: 1fr; } }

.quote-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--gray-200);
}
.quote-item-row:last-child { border-bottom: none; }

.quote-remove {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    transition: var(--transition);
}
.quote-remove:hover { background: #fee2e2; color: var(--red); }

/* ─── Product Detail ─────────────────────── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--gray-400);
    margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--gray-400); text-decoration: none; transition: var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--gray-600); font-weight: 500; }

.product-gallery { display: grid; gap: 0.75rem; }
.product-gallery-main {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}
.product-gallery-thumbs { display: flex; gap: 0.75rem; }
.product-gallery-thumbs img {
    width: 80px; height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.product-gallery-thumbs img.active,
.product-gallery-thumbs img:hover { border-color: var(--accent); }

.product-stars { color: var(--accent); letter-spacing: 0.05em; }

.product-spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 1.25rem 0; }
.spec-card {
    background: var(--gray-100);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.spec-icon {
    width: 32px; height: 32px;
    background: rgba(255,184,0,0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.9rem;
    flex-shrink: 0;
}
.spec-label { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-400); }
.spec-value { font-size: 0.9rem; font-weight: 700; }

.qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    overflow: hidden;
    width: fit-content;
}
.qty-btn {
    width: 38px; height: 42px;
    border: none;
    background: var(--gray-100);
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: var(--transition);
    color: var(--primary);
}
.qty-btn:hover { background: var(--gray-200); }
.qty-input {
    width: 50px; height: 42px;
    border: none;
    border-left: 1.5px solid var(--gray-200);
    border-right: 1.5px solid var(--gray-200);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
}

/* ─── Dashboard ──────────────────────────── */
.dashboard-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
    padding: 2rem 0;
}
@media (max-width: 900px) { .dashboard-layout { grid-template-columns: 1fr; } }

.dashboard-sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-profile {
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1rem;
}
.sidebar-avatar {
    width: 64px; height: 64px;
    background: rgba(255,184,0,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0 auto 0.75rem;
}
.sidebar-name  { font-size: 0.95rem; font-weight: 700; }
.sidebar-email { font-size: 0.75rem; color: rgba(255,255,255,0.6); margin-top: 0.2rem; }

.sidebar-nav { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.25rem;
    text-decoration: none;
    color: var(--gray-600);
    font-size: 0.875rem;
    font-weight: 500;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}
.sidebar-nav a:last-child { border-bottom: none; }
.sidebar-nav a:hover, .sidebar-nav a.active {
    background: #fffbeb;
    color: var(--primary);
    font-weight: 700;
}
.sidebar-nav a.active { border-left: 3px solid var(--accent); }

/* ─── Status Stepper ─────────────────────── */
.stepper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    padding: 1rem 0;
}
.stepper::before {
    content: '';
    position: absolute;
    top: 1.75rem;
    left: 0; right: 0;
    height: 2px;
    background: var(--gray-200);
    z-index: 0;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}
.step-circle {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    border: 2px solid transparent;
}
.step.completed .step-circle { background: var(--green); color: var(--white); }
.step.active    .step-circle { background: var(--accent); color: var(--primary); border-color: var(--accent-dark); }
.step-label {
    font-size: 0.68rem;
    font-weight: 500;
    text-align: center;
    color: var(--gray-400);
    max-width: 80px;
    line-height: 1.3;
}
.step.active    .step-label { color: var(--primary); font-weight: 700; }
.step.completed .step-label { color: var(--gray-600); }

/* ─── Quote / Invoice Cards (Dashboard) ──── */
.quote-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 1.25rem;
    overflow: hidden;
}
.quote-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    flex-wrap: wrap;
    gap: 0.75rem;
}
.quote-card-body  { padding: 1.5rem; }
.quote-card-footer {
    padding: 1rem 1.5rem;
    background: var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.status-badge {
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}
.status-sent    { background: #dbeafe; color: #1e40af; }
.status-invoice { background: #fef3c7; color: #92400e; }
.status-approved{ background: #d1fae5; color: #065f46; }
.status-transit { background: #ede9fe; color: #5b21b6; }
.status-delivered{ background: #d1fae5; color: #065f46; }

/* ─── Admin Dashboard ────────────────────── */
.admin-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
    align-items: start;
    padding: 2rem 0;
}
@media (max-width: 900px) { .admin-layout { grid-template-columns: 1fr; } }

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}
@media (max-width: 768px) { .admin-stats { grid-template-columns: repeat(2, 1fr); } }

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: var(--shadow);
}
.stat-label  { font-size: 0.75rem; color: var(--gray-500); font-weight: 500; }
.stat-value  { font-size: 1.8rem; font-weight: 900; margin: 0.15rem 0; }
.stat-change { font-size: 0.75rem; color: var(--green); }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.admin-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    background: var(--gray-100);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    border-bottom: 1px solid var(--gray-200);
}
.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fffbeb; }

/* ─── Invoice Form (in admin) ────────────── */
.invoice-form-wrap {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-top: 0.75rem;
    display: none;
}
.invoice-form-wrap.open { display: block; }
.invoice-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 640px) { .invoice-form-grid { grid-template-columns: 1fr; } }

/* ─── Contact Page ───────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.contact-detail-item:last-child { border-bottom: none; }
.contact-icon-wrap {
    width: 40px; height: 40px;
    background: rgba(255,184,0,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.contact-icon-wrap.accent { background: rgba(255,184,0,0.3); }

/* ─── Footer ─────────────────────────────── */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    padding: 1.5rem 0;
    margin-top: 4rem;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 800;
}
.footer-logo .logo-icon {
    width: 30px; height: 30px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}
.footer-logo .logo-text-dark { color: var(--white); }
.footer-logo .logo-text-accent { color: var(--accent); }

.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.5); }

.footer-social { display: flex; gap: 0.75rem; }
.social-icon {
    width: 34px; height: 34px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}
.social-icon:hover { background: var(--accent); color: var(--primary); border-color: var(--accent); }

/* ─── Utilities ──────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-accent { color: var(--accent); }
.text-muted  { color: var(--gray-500); font-size: 0.875rem; }
.text-sm     { font-size: 0.8rem; }
.font-bold   { font-weight: 700; }
.w-full      { width: 100%; }
.d-none      { display: none; }
.d-flex      { display: flex; }
.gap-1       { gap: 0.5rem; }
.gap-2       { gap: 1rem; }
.mt-1        { margin-top: 0.5rem; }
.mt-2        { margin-top: 1rem; }
.mt-3        { margin-top: 1.5rem; }
.mt-4        { margin-top: 2rem; }
.mb-1        { margin-bottom: 0.5rem; }
.mb-2        { margin-bottom: 1rem; }
.mb-3        { margin-bottom: 1.5rem; }
.mb-4        { margin-bottom: 2rem; }
.p-4         { padding: 1.5rem; }
.py-4        { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.px-4        { padding-left: 1.5rem; padding-right: 1.5rem; }
.flex-wrap   { flex-wrap: wrap; }
.items-center{ align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1      { flex: 1; }
.divider { border: none; border-top: 1px solid var(--gray-200); margin: 1.25rem 0; }

.tag {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--gray-100);
    color: var(--gray-600);
}

/* ═══════════════════════════════════════════════
   MOBILE NAV — Hamburger + Dropdown
   ═══════════════════════════════════════════════ */

/* Desktop: hide hamburger & mobile menu */
@media (min-width: 769px) {
    .hamburger-btn { display: none !important; }
    .mobile-menu   { display: none !important; }
}

/* Mobile: hide desktop links & desktop-only buttons */
@media (max-width: 768px) {
    .navbar-links  { display: none !important; }
    .desktop-only  { display: none !important; }
}

/* ── Hamburger Button ─────────────────────────── */
.hamburger-btn {
    display: flex;           /* shown on mobile via media query above */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    min-width: 44px;         /* tap target */
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
    /* smooth colour on hover */
    transition: border-color 0.2s ease, background 0.2s ease;
}
.hamburger-btn:hover,
.hamburger-btn.open {
    border-color: var(--primary, #1e3a5f);
    background: #f0f4f8;
}
/* The three bars */
.hamburger-btn .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary, #1e3a5f);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}
/* Animate to X when open */
.hamburger-btn.open .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-btn.open .bar:nth-child(2) { opacity: 0; width: 0; }
.hamburger-btn.open .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Mobile Dropdown Menu ─────────────────────── */
.mobile-menu {
    display: none;           /* hidden by default; .open overrides */
    flex-direction: column;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 0.75rem 1rem 1.25rem;
    gap: 0.25rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
    /* slide-down animation */
    animation: mobileMenuIn 0.22s ease forwards;
}
.mobile-menu.open {
    display: flex;
}
@keyframes mobileMenuIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}
.mobile-menu a:hover,
.mobile-menu a.active {
    background: #f3f4f6;
    color: var(--primary, #1e3a5f);
    font-weight: 700;
}
/* CTA buttons inside mobile menu */
.mobile-menu .mobile-menu-cta {
    background: var(--primary, #1e3a5f) !important;
    color: #ffffff !important;
    font-weight: 600;
    text-align: center;
    margin-top: 0.5rem;
    border-radius: 10px;
}
.mobile-menu .mobile-menu-cta:hover {
    background: #2d3a4e !important;
    color: #ffffff !important;
}

/* ═══════════════════════════════════════════════
   GLOBAL MOBILE IMPROVEMENTS
   ═══════════════════════════════════════════════ */

/* Prevent horizontal overflow on all screens */
html, body { overflow-x: hidden; }

@media (max-width: 768px) {
    /* Container padding */
    .container { padding: 0 1rem; }

    /* Admin product form grid — single column on mobile */
    .admin-stats { grid-template-columns: repeat(2, 1fr) !important; }

    /* Product detail layout stacks */
    .product-gallery-main { border-radius: 14px; }

    /* Hero section text sizing */
    .hero-split h1 { font-size: 2rem !important; }

    /* Admin tabs — scrollable row */
    .admin-tabs-row {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.25rem;
    }

    /* Fix product form grid */
    div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Cards full width */
    .card { border-radius: 12px; }

    /* Buttons full-width in tight spaces */
    .btn-full-mobile { width: 100% !important; }

    /* Product gallery thumbs horizontal scroll */
    .product-gallery-thumbs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap !important;
    }
    .product-gallery-thumbs img { flex-shrink: 0; }

    /* Qty control */
    .qty-control { width: 100%; justify-content: center; }

    /* Admin table horizontal scroll */
    .admin-table { font-size: 0.8rem; }

    /* Quotation grid */
    .quotation-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
    .admin-stats { grid-template-columns: 1fr 1fr !important; }
    .stat-value  { font-size: 1.4rem !important; }
    .hero-split h1 { font-size: 1.6rem !important; }
    .navbar-inner { padding: 0.75rem 1rem; }
}

/* ═══════════════════════════════════════════════
   PRODUCT GALLERY — Multi-image support
   ═══════════════════════════════════════════════ */
.gallery-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.6rem;
    margin-top: 0.75rem;
}
.gallery-thumb-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--gray-200);
    aspect-ratio: 1;
}
.gallery-thumb-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-thumb-item .remove-gallery-img {
    position: absolute;
    top: 3px; right: 3px;
    width: 20px; height: 20px;
    background: rgba(239,68,68,0.9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.gallery-thumb-item.is-primary {
    border-color: var(--accent);
    border-width: 2px;
}
.gallery-thumb-item .set-primary-btn {
    position: absolute;
    bottom: 3px; left: 3px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.6rem;
    padding: 2px 5px;
    cursor: pointer;
    white-space: nowrap;
}

/* Product form grid — single col on mobile */
@media (max-width: 640px) {
    .product-form-grid {
        grid-template-columns: 1fr !important;
    }
}
