/* ═══════════════════════════════════════════════════════════════
   Rightway Manufacturer's — Master CSS
   Structure:
   1. CSS Variables
   2. Reset & Base
   3. Typography
   4. Buttons
   5. Forms
   6. Cards
   7. Tables
   8. Badges
   9. Alerts
   10. Navbar
   11. Footer
   12. Grid System
   13. Utilities
   14. Admin Sidebar Layout
   15. Inventory Page
   16. Order Details Page
   17. Auth Pages (Login / Register)
   18. Product Create Page
   19. Responsive (Mobile + Tablet)
   20. Print
═══════════════════════════════════════════════════════════════ */


/* ── 1. CSS Variables ──────────────────────────────────────── */
:root {
    --primary:       #1e3a5f;
    --primary-light: #2c5282;
    --primary-dark:  #0d1b2a;
    --accent:        #d4af37;
    --accent-light:  #f4d03f;
    --accent-dark:   #b8860b;
    --white:         #ffffff;
    --light-gray:    #f4f6f9;
    --border-color:  #e0e6ed;
    --text-dark:     #1a1a2e;
    --text-mid:      #444;
    --text-light:    #777;
    --success:       #22c55e;
    --success-dark:  #16a34a;
    --danger:        #ef4444;
    --danger-dark:   #dc2626;
    --warning:       #f59e0b;
    --warning-dark:  #d97706;
    --info:          #0ea5e9;
    --shadow-sm:     0 1px 4px rgba(0,0,0,0.07);
    --shadow:        0 2px 12px rgba(0,0,0,0.10);
    --shadow-lg:     0 8px 32px rgba(0,0,0,0.14);
    --shadow-xl:     0 16px 48px rgba(0,0,0,0.20);
    --golden-glow:   0 0 0 3px rgba(212,175,55,0.25);
    --border-radius: 10px;
    --radius-sm:     6px;
    --radius-lg:     14px;
    --transition:    all 0.22s ease;
}


/* ── 2. Reset & Base ───────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--light-gray);
    color: var(--text-dark);
    line-height: 1.65;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }


/* ── 3. Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.65rem); }
h4 { font-size: 1.35rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 0.95rem; }

p { margin-bottom: 0.75rem; color: var(--text-mid); }


/* ── 4. Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.6rem 1.4rem;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--primary-dark);
    border-color: var(--accent);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    box-shadow: var(--golden-glow), var(--shadow);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-secondary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-success  { background: var(--success);  color: #fff; border-color: var(--success); }
.btn-success:hover  { background: var(--success-dark); border-color: var(--success-dark); transform: translateY(-1px); }

.btn-danger   { background: var(--danger);   color: #fff; border-color: var(--danger); }
.btn-danger:hover   { background: var(--danger-dark); border-color: var(--danger-dark); transform: translateY(-1px); }

.btn-warning  { background: var(--warning);  color: var(--text-dark); border-color: var(--warning); }
.btn-warning:hover  { background: var(--warning-dark); color: #fff; border-color: var(--warning-dark); transform: translateY(-1px); }

.btn-info     { background: var(--info);     color: #fff; border-color: var(--info); }
.btn-info:hover     { opacity: 0.88; transform: translateY(-1px); }

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
}

.btn-sm { padding: 0.38rem 0.9rem; font-size: 0.8rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn:disabled, .btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
}


/* ── 5. Forms ──────────────────────────────────────────────── */
.form-group  { margin-bottom: 1.15rem; }

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
}

.form-control {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-family: inherit;
    color: var(--text-dark);
    background: #fff;
    transition: var(--transition);
    appearance: none;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--golden-glow);
    background: #fffef8;
}
.form-control::placeholder { color: #b0b0b0; }

textarea.form-control { resize: vertical; min-height: 90px; }

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23777' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.2rem;
    cursor: pointer;
}


/* ── 6. Cards ──────────────────────────────────────────────── */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 1.25rem;
}
.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: rgba(212,175,55,0.4);
}

.card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: 2px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-header i { color: var(--accent); }

.card-body   { padding: 1.5rem; }
.card-footer {
    background: var(--light-gray);
    padding: 0.85rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Static card (no hover lift — e.g. stat cards) */
.card-static:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}


/* ── 7. Tables ─────────────────────────────────────────────── */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    font-size: 0.85rem;
}
.table thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
}
.table th {
    padding: 0.5rem 0.75rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f0f2f5;
    vertical-align: middle;
    color: var(--text-mid);
}
.table tbody tr {
    transition: background 0.15s;
}
.table tbody tr:hover {
    background-color: #f8faff;
}
.table tbody tr:last-child td { border-bottom: none; }

.table-sm .table td,
.table-sm .table th {
    padding: 0.4rem 0.6rem;
}

.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }


/* ── 8. Badges ─────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.badge-primary { background: var(--primary);      color: #fff; }
.badge-success { background: var(--success);      color: #fff; }
.badge-danger  { background: var(--danger);       color: #fff; }
.badge-warning { background: var(--warning);      color: var(--text-dark); }
.badge-info    { background: var(--info);         color: #fff; }
.badge-accent  { background: var(--accent);       color: var(--primary-dark); }
.badge-light   { background: #e8edf2;             color: var(--primary); }


/* ── 9. Alerts ─────────────────────────────────────────────── */
.alert {
    padding: 0.85rem 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border-left: 4px solid;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
}
.alert-success { background: #dcfce7; border-color: var(--success);  color: #14532d; }
.alert-danger  { background: #fee2e2; border-color: var(--danger);   color: #7f1d1d; }
.alert-warning { background: #fef3c7; border-color: var(--warning);  color: #78350f; }
.alert-info    { background: #e0f2fe; border-color: var(--info);     color: #0c4a6e; }


/* ── 10. Navbar ────────────────────────────────────────────── */
.navbar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 0 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    position: sticky;
    top: 0;
    z-index: 900;
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}
.navbar-brand {
    color: var(--accent) !important;
    font-size: 1.35rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: var(--transition);
}
.navbar-brand:hover { color: var(--accent-light) !important; }

.navbar-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem;
}
.nav-link {
    color: rgba(255,255,255,0.82) !important;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}
.nav-link:hover {
    color: var(--accent) !important;
    background: rgba(255,255,255,0.08);
}
.nav-link.active {
    color: var(--accent) !important;
    background: rgba(212,175,55,0.12);
}


/* ── 11. Footer ────────────────────────────────────────────── */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.75);
    padding: 1.5rem 2rem;
    text-align: center;
    font-size: 0.85rem;
    margin-top: auto;
}
.footer p { color: rgba(255,255,255,0.75); margin: 0; }


/* ── 12. Grid System ───────────────────────────────────────── */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.col       { flex: 1; }
.col-1     { flex: 0 0 8.333%; }
.col-2     { flex: 0 0 16.667%; }
.col-3     { flex: 0 0 25%; }
.col-4     { flex: 0 0 33.333%; }
.col-6     { flex: 0 0 50%; }
.col-8     { flex: 0 0 66.667%; }
.col-12    { flex: 0 0 100%; }

/* Responsive columns - use grid for 2-column layout */
.row.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 992px) {
    .row.two-col {
        grid-template-columns: 1fr;
    }
}

/* Two-col product create layout */
.col-md-6 { flex: 0 0 50%; }
@media (max-width: 768px) {
    .col-md-6 { flex: 0 0 100%; }
}

/* Card deck (3:2) */
.card-deck {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 1.5rem;
    align-items: start;
}
.card-deck .card-col4,
.card-deck .card-col { display: flex; flex-direction: column; }


/* ── 13. Utilities ─────────────────────────────────────────── */
.text-center   { text-align: center; }
.text-right    { text-align: right; }
.text-left     { text-align: left; }
.text-primary  { color: var(--primary)  !important; }
.text-accent   { color: var(--accent)   !important; }
.text-success  { color: var(--success)  !important; }
.text-danger   { color: var(--danger)   !important; }
.text-warning  { color: var(--warning)  !important; }
.text-muted    { color: var(--text-light) !important; }

.d-flex               { display: flex; }
.d-grid               { display: grid; }
.d-none               { display: none; }
.align-items-center   { align-items: center; }
.align-items-end      { align-items: flex-end; }
.justify-content-between { justify-content: space-between; }
.justify-content-center  { justify-content: center; }
.flex-wrap            { flex-wrap: wrap; }
.gap-1  { gap: 0.5rem; }
.gap-2  { gap: 1rem; }
.gap-3  { gap: 1.5rem; }

.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;   }
.me-1 { margin-right: 0.5rem; }  .me-2 { margin-right: 1rem;   }
.ms-1 { margin-left: 0.5rem;  }  .ms-2 { margin-left: 1rem;    }
.p-1  { padding: 0.5rem; }  .p-2 { padding: 1rem; }
.p-3  { padding: 1.5rem; }  .p-4 { padding: 2rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pe-3 { padding-right: 1rem; }
.ps-3 { padding-left: 1rem; }

.w-100 { width: 100%; }
.fw-bold   { font-weight: 700; }
.fw-medium { font-weight: 500; }
.fs-sm     { font-size: 0.82rem; }
.rounded   { border-radius: var(--border-radius); }
.shadow    { box-shadow: var(--shadow); }


/* ── 14. Admin Sidebar Layout ──────────────────────────────── */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background: var(--light-gray);
}

/* Sidebar shell */
.admin-sidebar {
    width: 250px;
    background: linear-gradient(180deg, #12122a 0%, #0d1b2a 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.28s cubic-bezier(0.4,0,0.2,1);
    z-index: 1000;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }

/* Sidebar header */
.sidebar-header {
    padding: 1.25rem 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
}
.sidebar-logo i {
    font-size: 1.3rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: var(--transition);
}
.sidebar-logo span { transition: opacity 0.2s; }

/* Sidebar nav */
.sidebar-nav {
    flex: 1;
    padding: 0.75rem 0;
    overflow-y: auto;
    overflow-x: hidden;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0.72rem 1.1rem;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    border-radius: 0;
    cursor: pointer;
    background: none;
    border-top: none;
    border-right: none;
    border-bottom: none;
    width: 100%;
    text-align: left;
}
.sidebar-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    transition: color 0.2s;
}
.sidebar-link span { transition: opacity 0.2s; }

.sidebar-link:hover {
    background: rgba(255,255,255,0.07);
    color: #fff;
    border-left-color: rgba(212,175,55,0.5);
}
.sidebar-link:hover i { color: var(--accent); }

.sidebar-link.active {
    background: rgba(212,175,55,0.14);
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 600;
}
.sidebar-link.active i { color: var(--accent); }

.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 0.6rem 1rem;
}

/* Sidebar footer */
.sidebar-footer {
    padding: 0.85rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.logout-btn {
    width: 100%;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}
.logout-btn:hover {
    color: #fc8181;
    background: rgba(239,68,68,0.1);
}

/* Main content area */
.admin-main {
    flex: 1;
    margin-left: 250px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: margin-left 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* Collapsed sidebar */
.admin-layout.sidebar-collapsed .admin-sidebar { width: 64px; }
.admin-layout.sidebar-collapsed .sidebar-logo span,
.admin-layout.sidebar-collapsed .sidebar-link span { opacity: 0; width: 0; overflow: hidden; }
.admin-layout.sidebar-collapsed .admin-main { margin-left: 64px; }

/* Topbar */
.admin-topbar {
    background: #fff;
    padding: 0.75rem 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 0 var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 62px;
}
.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}
.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.15rem;
    cursor: pointer;
    color: var(--text-mid);
    padding: 0.4rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    flex-shrink: 0;
}
.sidebar-toggle:hover { background: var(--light-gray); color: var(--primary); }

.page-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}
.user-info {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-mid);
    font-size: 0.87rem;
    font-weight: 500;
}
.user-info i { font-size: 1.4rem; color: var(--accent); }

/* Admin content */
.admin-content {
    flex: 1;
    padding: 1.75rem 2rem;
    overflow-y: auto;
}


/* ── 15. Inventory Page ────────────────────────────────────── */
.inventory-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.inventory-title    { font-size: 1.7rem; font-weight: 800; color: var(--primary); margin: 0 0 0.15rem 0; }
.inventory-subtitle { color: var(--text-light); margin: 0; font-size: 0.875rem; }

/* Stats grid */
.inventory-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.stat-card {
    background: #fff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.1rem 1.3rem;
    display: flex;
    flex-direction: column;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-card-warning { border-left-color: var(--warning); }
.stat-card-danger  { border-left-color: var(--danger); }
.stat-card-success { border-left-color: var(--success); }

.stat-number { font-size: 1.85rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label  { font-size: 0.73rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.3rem; }

/* Filter form */
.inventory-filter-form { display: flex; gap: 0.65rem; align-items: center; flex-wrap: wrap; }
.inventory-filter-form .form-control { flex: 1; min-width: 140px; }

/* Inventory table */
.inventory-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.inventory-table thead th {
    background: #f0f3f8;
    padding: 0.8rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}
.inventory-table tbody tr { border-bottom: 1px solid #f0f2f5; transition: background 0.15s; }
.inventory-table tbody tr:hover { background: #f5f8ff; }
.inventory-table tbody tr.row-inactive { opacity: 0.5; }
.inventory-table td { padding: 0.75rem 1rem; vertical-align: middle; color: var(--text-mid); }

/* Product cell */
.product-cell { display: flex; align-items: center; gap: 0.7rem; }
.product-thumb {
    width: 40px; height: 40px;
    object-fit: cover; border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-color); flex-shrink: 0;
    transition: var(--transition);
}
.product-thumb:hover { transform: scale(1.1); box-shadow: var(--shadow); }
.product-thumb-placeholder {
    width: 40px; height: 40px;
    background: #eef1ff; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
    border: 1.5px solid #dde5ff;
}
.product-name  { font-weight: 600; color: var(--text-dark); max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-brand { font-size: 0.76rem; color: var(--text-light); margin-top: 1px; }
.part-number   { font-family: 'Consolas', monospace; font-size: 0.8rem; background: #f0f2f5; padding: 2px 8px; border-radius: 4px; color: #555; }

/* Stock badges */
.stock-badge     { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.73rem; font-weight: 700; white-space: nowrap; }
.stock-badge.in  { background: #dcfce7; color: var(--success-dark); }
.stock-badge.low { background: #fef3c7; color: var(--warning-dark); }
.stock-badge.out { background: #fee2e2; color: var(--danger-dark); }
.qty-value       { font-weight: 800; font-size: 0.95rem; color: var(--primary); }

/* Action buttons */
.action-buttons { display: flex; gap: 0.35rem; align-items: center; }
.action-btn {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 5px 10px; border-radius: var(--radius-sm);
    font-size: 0.76rem; font-weight: 600; cursor: pointer;
    border: 1.5px solid transparent; text-decoration: none;
    white-space: nowrap; transition: var(--transition);
    background: none; line-height: 1.4;
}
.action-view   { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.action-view:hover  { background: #2563eb; color: #fff; border-color: #2563eb; transform: translateY(-1px); }
.action-edit   { background: #fffbeb; color: var(--warning-dark); border-color: #fde68a; }
.action-edit:hover  { background: var(--warning-dark); color: #fff; border-color: var(--warning-dark); transform: translateY(-1px); }
.action-delete { background: #fef2f2; color: var(--danger-dark); border-color: #fecaca; font-family: inherit; }
.action-delete:hover { background: var(--danger-dark); color: #fff; border-color: var(--danger-dark); transform: translateY(-1px); }

/* Inline edit inputs */
.inv-input   { padding: 4px 7px !important; font-size: 0.82rem !important; height: auto !important; min-width: 68px; }
.inv-actions { display: flex; gap: 5px; align-items: center; }
.inv-btn {
    width: 30px; height: 30px; border: none; border-radius: var(--radius-sm);
    cursor: pointer; font-size: 0.82rem; display: inline-flex;
    align-items: center; justify-content: center;
    transition: opacity 0.15s, transform 0.12s;
    padding: 0;
}
.inv-btn:hover { opacity: 0.85; transform: scale(1.1); }
.inv-save { background: #dcfce7; border: 1.5px solid #86efac; color: var(--success-dark); }
.inv-del  { background: #fee2e2; border: 1.5px solid #fca5a5; color: var(--danger-dark); }

/* Empty state */
.inventory-empty      { text-align: center; padding: 4rem 2rem; color: var(--text-light); }
.inventory-empty-icon { font-size: 2.8rem; margin-bottom: 1rem; opacity: 0.5; }
.inventory-empty h3   { color: var(--text-mid); margin-bottom: 0.5rem; }

/* Pagination */
.inventory-pagination { display: flex; justify-content: center; gap: 0.4rem; padding: 1.25rem; flex-wrap: wrap; }
.page-btn {
    display: inline-block; padding: 6px 13px; border-radius: var(--radius-sm);
    font-size: 0.83rem; font-weight: 600; color: #2563eb;
    border: 1.5px solid #bfdbfe; background: #fff;
    text-decoration: none; transition: var(--transition);
}
.page-btn:hover, .page-btn.active { background: #2563eb; color: #fff; border-color: #2563eb; transform: translateY(-1px); }


/* ── 16. Order Details Page ────────────────────────────────── */
.od-wrapper { max-width: 960px; margin: 1.75rem auto; padding: 0 1rem; }

.od-topbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.75rem;
}
.od-back-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--primary); font-weight: 600; font-size: 0.875rem;
    text-decoration: none; padding: 6px 14px;
    border: 1.5px solid var(--primary); border-radius: var(--radius-sm);
    transition: var(--transition);
}
.od-back-link:hover { background: var(--primary); color: #fff; }
.od-action-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.od-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 15px; border-radius: var(--radius-sm);
    font-size: 0.82rem; font-weight: 600; cursor: pointer;
    border: none; text-decoration: none;
    transition: var(--transition); white-space: nowrap;
}
.od-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.od-btn-primary   { background: var(--accent); color: var(--primary-dark); }
.od-btn-primary:hover   { background: var(--accent-dark); }
.od-btn-secondary { background: var(--primary); color: #fff; }
.od-btn-secondary:hover { background: var(--primary-dark); }
.od-btn-success   { background: #25d366; color: #fff; }
.od-btn-success:hover   { background: #1da851; }
.od-btn-accept    { background: var(--success); color: #fff; font-size: 0.88rem; padding: 8px 18px; }
.od-btn-accept:hover    { background: var(--success-dark); }

.od-paper-select {
    padding: 7px 12px; border-radius: var(--radius-sm);
    font-size: 0.82rem; font-weight: 600;
    border: 1.5px solid var(--primary); background: var(--white);
    color: var(--primary); cursor: pointer; transition: var(--transition);
}
.od-paper-select:focus { outline: none; border-color: var(--accent); box-shadow: var(--golden-glow); }

.od-invoice-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--border-radius);
    padding: 1.65rem 1.85rem;
    color: #fff; display: flex;
    justify-content: space-between; align-items: flex-start;
    margin-bottom: 1.25rem; flex-wrap: wrap; gap: 1rem;
}
.od-company-name    { font-size: 1.3rem; font-weight: 800; color: var(--accent); letter-spacing: 0.02em; }
.od-company-tagline { font-size: 0.76rem; color: rgba(255,255,255,0.6); margin-top: 3px; }
.od-invoice-meta    { text-align: right; }
.od-invoice-number  { font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.od-invoice-date    { font-size: 0.8rem; color: rgba(255,255,255,0.65); margin-top: 3px; }

.od-status-pill      { display: inline-block; padding: 3px 13px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 6px; }
.od-status-pending   { background: var(--warning);  color: #333; }
.od-status-confirmed { background: var(--info);     color: #fff; }
.od-status-delivered { background: var(--success);  color: #fff; }
.od-status-cancelled { background: var(--danger);   color: #fff; }

.od-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; margin-bottom: 1.25rem; }
.od-info-card        { background: #fff; border: 1.5px solid var(--border-color); border-radius: var(--border-radius); overflow: hidden; }
.od-info-card-header { background: #f4f6f9; border-bottom: 1.5px solid var(--border-color); padding: 0.6rem 1rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--primary); }
.od-info-card-body   { padding: 0.9rem 1rem; }

.od-info-row         { display: flex; gap: 0.5rem; padding: 4px 0; border-bottom: 1px dashed #eef0f3; font-size: 0.87rem; }
.od-info-row:last-child { border-bottom: none; }
.od-info-label       { color: var(--text-light); min-width: 80px; flex-shrink: 0; font-size: 0.78rem; }
.od-info-value       { color: var(--text-dark); font-weight: 600; }

.od-total-row           { background: #fffbeb; border-radius: var(--radius-sm); padding: 5px 10px; margin-top: 4px; }
.od-total-row .od-info-label { color: #666; }
.od-total-row .od-info-value { color: var(--primary); font-size: 0.95rem; }

.od-nettotal-row           { background: var(--primary); border-radius: var(--radius-sm); padding: 7px 10px; margin-top: 6px; }
.od-nettotal-row .od-info-label { color: rgba(255,255,255,0.65); }
.od-nettotal-row .od-info-value { color: var(--accent); font-size: 1rem; }

.od-items-card        { background: #fff; border: 1.5px solid var(--border-color); border-radius: var(--border-radius); overflow: hidden; margin-bottom: 1.25rem; }
.od-items-card-header { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); padding: 0.75rem 1.2rem; color: var(--accent); font-weight: 700; font-size: 0.88rem; letter-spacing: 0.03em; text-transform: uppercase; }

.od-items-table           { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.od-items-table thead th  { background: #f4f6f9; padding: 0.65rem 1rem; text-align: left; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: #555; border-bottom: 1.5px solid var(--border-color); }
.od-items-table tbody tr  { border-bottom: 1px solid #f5f5f5; transition: background 0.15s; }
.od-items-table tbody tr:hover { background: #f8faff; }
.od-items-table td        { padding: 0.8rem 1rem; vertical-align: middle; color: var(--text-mid); }
.od-items-table tfoot td  { padding: 0.6rem 1rem; font-weight: 700; background: #f4f6f9; border-top: 1.5px solid var(--border-color); color: var(--primary); }
.od-tfoot-net td          { background: var(--primary) !important; color: var(--accent) !important; }

.od-product-cell        { display: flex; align-items: center; gap: 0.7rem; }
.od-product-img         { width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius-sm); border: 1.5px solid var(--border-color); flex-shrink: 0; }
.od-product-placeholder { width: 44px; height: 44px; background: #eef1ff; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; border: 1.5px solid #dde5ff; }
.od-product-name        { font-weight: 600; color: var(--text-dark); }
.od-variant-tag         { display: inline-block; margin-top: 2px; font-size: 0.7rem; background: #eef1ff; color: #4a6cba; padding: 2px 8px; border-radius: 12px; border: 1px solid #dde5ff; }
.od-sno                 { color: #bbb; font-size: 0.78rem; font-weight: 700; }
.od-price               { font-weight: 600; color: var(--primary); }
.od-qty-badge           { display: inline-block; background: #eef1ff; color: var(--primary); font-weight: 700; padding: 3px 10px; border-radius: 12px; font-size: 0.83rem; }
.od-amount              { font-weight: 700; color: var(--text-dark); }

.od-remarks      { background: #fffbeb; border: 1.5px solid #fde68a; border-radius: var(--radius-sm); padding: 0.8rem 1rem; font-size: 0.875rem; color: #78350f; margin-bottom: 1.25rem; display: flex; gap: 0.5rem; align-items: flex-start; }
.od-remarks-icon { font-size: 0.95rem; margin-top: 2px; flex-shrink: 0; }

.od-share-dropdown { position: relative; display: inline-block; }
.od-share-menu     { display: none; position: absolute; top: calc(100% + 6px); right: 0; background: #fff; border: 1.5px solid var(--border-color); border-radius: var(--border-radius); box-shadow: var(--shadow-lg); z-index: 200; min-width: 160px; overflow: hidden; }
.od-share-menu.open { display: block; animation: fadeInDown 0.18s ease; }
@keyframes fadeInDown { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:translateY(0); } }
.od-share-item     { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 0.84rem; font-weight: 600; color: #333; text-decoration: none; cursor: pointer; border: none; background: none; width: 100%; text-align: left; transition: background 0.15s; }
.od-share-item:hover    { background: var(--light-gray); }
.od-share-item-wp { color: #25d366; }
.od-share-item-em { color: var(--info); }


/* ── 17. Auth Pages ────────────────────────────────────────── */
.login-container {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 2rem;
}
.login-card {
    background: #fff; padding: 2.5rem 2.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 440px; width: 100%;
    border-top: 4px solid var(--accent);
    animation: fadeInUp 0.3s ease;
}
@keyframes fadeInUp { from { opacity:0; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
.login-title     { color: var(--primary); text-align: center; margin-bottom: 1.75rem; font-size: 1.6rem; font-weight: 800; }
.login-footer    { text-align: center; margin-top: 1.4rem; padding-top: 1.25rem; border-top: 1px solid var(--border-color); font-size: 0.88rem; color: var(--text-light); }
.login-footer a  { color: var(--accent-dark); text-decoration: none; font-weight: 600; }
.login-footer a:hover { text-decoration: underline; }

.registration-container    { min-height: 100vh; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); padding: 2rem; display: flex; align-items: flex-start; justify-content: center; }
.registration-left         { max-width: 580px; width: 100%; background: #fff; padding: 2.25rem 2.5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl); border-top: 4px solid var(--accent); margin: auto; }
.registration-section-title{ color: var(--primary); text-align: center; margin-bottom: 1.75rem; font-size: 1.55rem; font-weight: 800; }

.checkbox-label { display: flex; align-items: center; gap: 0.5rem; color: var(--primary); font-weight: 600; font-size: 0.88rem; }
.checkbox-group { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
.checkbox-item  { display: flex; align-items: center; gap: 0.45rem; }
.checkbox-item input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--primary); }
.checkbox-item label { color: var(--text-mid); font-size: 0.875rem; cursor: pointer; }


/* ── 18. Product Create Page ───────────────────────────────── */
.col-md-6 { padding: 0; }
.col-md-6:first-child { padding-right: 0.75rem; }
.col-md-6:last-child  { padding-left:  0.75rem; }


/* ── 19. Responsive ────────────────────────────────────────── */

/* Tablet */
@media (min-width: 769px) and (max-width: 1200px) {
    .container { padding: 0 2rem; }
    .inventory-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Products Grid Responsive */
@media (max-width: 1200px) {
    /* products page grid */
    [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 992px) {
    [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Base */
    .container { padding: 0 0.85rem; }
    h1 { font-size: 1.45rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.1rem; }

    /* Navbar */
    .navbar { padding: 0 0.85rem; }
    .navbar-brand { font-size: 1.1rem; }
    .nav-link { padding: 0.38rem 0.5rem; font-size: 0.82rem; }

    /* Grid */
    .col-1, .col-2, .col-3, .col-4, .col-6, .col-8 { flex: 0 0 100%; }
    .col-md-6:first-child, .col-md-6:last-child { padding: 0; }
    .col-md-6 { margin-bottom: 1rem; }
    .card-deck { grid-template-columns: 1fr; }

    /* Admin sidebar — icon-only on mobile */
    .admin-sidebar { width: 60px; }
    .sidebar-logo span, .sidebar-link span { opacity: 0; width: 0; overflow: hidden; }
    .admin-main { margin-left: 60px; }
    .admin-content { padding: 1rem; }
    .admin-topbar { padding: 0.65rem 1rem; }
    .page-title { font-size: 1rem; }

    /* Admin collapsed = hidden on mobile */
    .admin-layout.sidebar-collapsed .admin-sidebar { width: 0; overflow: hidden; }
    .admin-layout.sidebar-collapsed .admin-main { margin-left: 0; }

    /* Inventory */
    .inventory-stats { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .inventory-header { flex-direction: column; align-items: flex-start; }
    .inventory-filter-form { flex-direction: column; }
    .inventory-filter-form .form-control { width: 100%; }
    .action-buttons { flex-direction: column; gap: 0.3rem; }
    .product-name { max-width: 130px; }

    /* Order Details */
    .od-info-grid { grid-template-columns: 1fr; }
    .od-invoice-header { flex-direction: column; }
    .od-invoice-meta { text-align: left; }
    .od-topbar { flex-direction: column; align-items: flex-start; }

    /* Auth */
    .login-card { padding: 1.75rem 1.4rem; }
    .registration-left { padding: 1.5rem 1.25rem; }
    .checkbox-group { grid-template-columns: 1fr; }
}

/* Very small screens */
@media (max-width: 400px) {
    .inventory-stats { grid-template-columns: 1fr; }
    .od-action-group { flex-direction: column; width: 100%; }
    .od-btn { width: 100%; justify-content: center; }
}


/* ── 21. Home Page ───────────────────────────────────────────── */
/* Hero Section */
.hero-section {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.hero-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    background-size: cover;
    background-position: center;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    background: rgba(13, 27, 42, 0.7);
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-content {
    color: var(--white);
    max-width: 700px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.hero-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.hero-btn:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

/* Categories Section */
.categories-section {
    padding: 4rem 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-mid);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.category-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.category-desc {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.5;
}

/* Featured Products Section */
.featured-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 200px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-placeholder {
    font-size: 4rem;
}

.product-info {
    padding: 1.25rem;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-brand {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 1rem;
}

.product-btn {
    display: block;
    padding: 0.75rem 1rem;
    background: var(--primary);
    color: var(--white);
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-btn:hover {
    background: var(--primary-dark);
}

.section-footer {
    text-align: center;
}

.view-all-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Why Choose Us Section */
.why-us-section {
    padding: 4rem 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.cta-content {
    text-align: center;
    color: var(--white);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--accent);
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.cta-btn:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

/* Home Page Responsive */
@media (max-width: 1024px) {
    .categories-grid,
    .products-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .categories-grid,
    .products-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }
}


/* ── 22. About Page ─────────────────────────────────────────── */
/* About Header */
.about-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 3rem 0;
    text-align: center;
    color: var(--white);
}

.about-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.about-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Latest Video Section */
.latest-video-section {
    padding: 4rem 0;
    background: var(--white);
}

.latest-video-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

.latest-video-info {
    padding: 2rem;
}

.video-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.latest-video-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.latest-video-description {
    font-size: 1.1rem;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.latest-video-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.video-date {
    font-size: 0.9rem;
    color: var(--text-light);
}

.latest-video-player {
    padding: 2rem;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: var(--light-gray);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Videos Section */
.videos-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.video-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: var(--light-gray);
    overflow: hidden;
}

.video-iframe-small {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-player-small {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder-small {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.video-info {
    padding: 1.25rem;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-description {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Company Info Section */
.company-info-section {
    padding: 4rem 0;
    background: var(--white);
}

.company-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.company-info-card {
    text-align: center;
    padding: 2rem;
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.info-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.info-description {
    font-size: 0.95rem;
    color: var(--text-mid);
    line-height: 1.5;
}

/* About Page Responsive */
@media (max-width: 1024px) {
    .latest-video-grid {
        grid-template-columns: 1fr;
    }

    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .company-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-title {
        font-size: 2rem;
    }

    .about-subtitle {
        font-size: 1rem;
    }

    .latest-video-title {
        font-size: 1.5rem;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .company-info-grid {
        grid-template-columns: 1fr;
    }
}


/* ── 24. Product Media Container ───────────────────────────── */
.media-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.media-box {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
}

.media-box h5 {
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.video-player-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.video-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ── 25. Print ─────────────────────────────────────────────── */
@media print {
    /* Hide chrome */
    .admin-sidebar, .admin-topbar, .navbar, .footer,
    .od-topbar, .od-action-group, .no-print { display: none !important; }

    /* Reset layout */
    .admin-layout, .admin-main { display: block; margin: 0; }
    .admin-content { padding: 0; }
    .od-wrapper { margin: 0; padding: 0; max-width: 100%; }
    .container { padding: 0; max-width: 100%; }

    body { background: #fff; color: #000; font-size: 10pt; }

    /* Cards */
    .card { border: 1px solid #ccc; box-shadow: none; transform: none; margin-bottom: 8px; }
    .card:hover { transform: none; box-shadow: none; }
    .card-header { background: #1e3a5f !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .card-body { padding: 8px; }

    /* Invoice */
    .od-invoice-header { border-radius: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .od-info-card, .od-items-card { border: 1px solid #ccc; }

    table { font-size: 9pt; width: 100%; }
    th, td { padding: 4px 6px; border: 1px solid #ccc; }
    thead { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

    h1, h4, h5 { font-size: 12pt; margin: 4px 0; }
    p { font-size: 9pt; margin: 2px 0; }
    img { display: none; }
    a { color: #000; text-decoration: none; }
}

@page { size: A4; margin: 10mm; }

/* Bootstrap-Free Carousel */
.carousel { position: relative; overflow: hidden; }
.carousel-inner { display: flex; transition: transform 0.6s ease; }
.carousel-item {
    min-width: 100%;
    flex-shrink: 0;
    display: block;         /* override Bootstrap's d-none behavior */
}
/* hide Bootstrap's active class logic — we use transform instead */
.carousel-item.active { display: block; }

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    border: none; color: white;
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
    transition: background 0.2s;
}
.carousel-control-prev:hover,
.carousel-control-next:hover { background: rgba(0,0,0,0.65); }
.carousel-control-prev { left: 16px; }
.carousel-control-next { right: 16px; }

.carousel-control-prev-icon::after { content: "‹"; font-size: 1.5rem; }
.carousel-control-next-icon::after { content: "›"; font-size: 1.5rem; }
/* Custom Carousel Button Positioning */
.banner-bottom-right-btn {
    position: absolute !important;
    bottom: 30px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    z-index: 10;
}
/* ── WhatsApp Float Button ─────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 120px;
    right: 20px;
    width: 58px;
    height: 58px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}
.whatsapp-float:hover {
    background: #1da851;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}