/* ============================================================
   TINKERCOM — MAIN STYLESHEET
   ============================================================
   TABLE OF CONTENTS
   ----------------------------------------------------------
   01. CSS Variables (Root)
   02. Global Reset & Base
   03. Global Animations & Transitions
   04. Shared Layout — Header
   05. Shared Layout — Navigation
   06. Shared Layout — Footer
   07. Shared Components — User Dropdown
   08. Shared Components — Search Bar & Live Suggestions
   09. Shared Components — Status Badges
   10. Shared Components — Toast Notification
   11. Shared Components — Buttons
   12. Shared Components — Alerts
   13. Shared Components — Modals
   14. INDEX PAGE
        - Hero Section
        - Shop by Department
        - Top Sellers (v2 Grid)
        - Why Choose Us
        - Customer Reviews
        - Legacy Top Sellers & Ratings
   15. PRODUCT LISTING PAGES (Printers / Accessories / Peripherals / Computer Parts)
        - Filter Bar (legacy)
        - Listing Page Layout (sidebar + main)
        - Left Sidebar
        - Main Content Area
        - Active Filter Tags
        - Product Grid
        - Empty State
        - Legacy Listing Cards (Printers / Accessories / Peripherals)
        - Search Results Page
   16. PRODUCT DETAILS PAGE
   17. CART PAGE
   18. CHECKOUT PAGE (legacy + new)
   19. WISHLIST PAGE
   20. LOGIN PAGE
   21. REGISTER PAGE
   22. SERVICES PAGE
   23. SERVICE BOOKING DETAILS PAGE (services-details.php)
   24. BOOKING SUMMARY PAGE
   25. MY ACCOUNT PAGE
        - Layout & Sidebar
        - Content Cards
        - Forms
        - Address List
        - Tables
        - Order Detail
        - User Account Status Tabs
   26. ACCOUNT INFO PAGE (account-info.php)
   27. ADMIN LAYOUT (all admin pages)
        - Sidebar
        - Main Content & Topbar
        - Stats & Revenue
        - Tables
        - Audit Trail
        - Low Stock Alert
        - Supplier Management
        - Admin Modals
        - Appointments
        - Technicians
        - Revenue Breakdown
        - Setup Pages
        - Three-column Dashboard Row
   28. ORDER CONFIRMED PAGE
   29. RESPONSIVE STYLES
        - ≤ 1100px  (Homepage grids)
        - ≤ 1024px  (Large tablet / small laptop)
        - ≤  900px  (Checkout & Revenue)
        - ≤  768px  (Tablet)
        - ≤  600px  (Setup page)
        - ≤  480px  (Mobile)
        - Admin-specific breakpoints

    30. REVIEW FEATURES    
   ============================================================ */


/* ============================================================
   01. CSS VARIABLES (ROOT)
   ============================================================ */
:root {
    --primary-color:  #0049af;
    --hover-button:   #0a223a;
    --dark-grey-bg:   rgb(177, 176, 176);
    --light-grey-bg:  #e9e7e7;
    --dark-color:     #212F3D;
}


/* ============================================================
   02. GLOBAL RESET & BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Roboto Condensed", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.background {
    background-color: var(--light-grey-bg);
}


/* ============================================================
   03. GLOBAL ANIMATIONS & TRANSITIONS
   ============================================================ */

/* -- Card hover lifts (product / listing cards) -- */
.printers-container,
.peripherals-container,
.accessories-container {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.printers-container:hover,
.peripherals-container:hover,
.accessories-container:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 73, 175, 0.15);
}

/* -- Button transitions -- */
.view,
.buy,
.add-to-cart,
.checkout-btn,
.book-btn,
.atc-btn,
.account-btn,
.btn-primary,
button[type="submit"] {
    transition: background-color 0.2s ease,
                transform 0.15s ease,
                box-shadow 0.2s ease;
}

.view:hover,
.buy:hover,
.checkout-btn:hover,
.book-btn:hover,
.account-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 73, 175, 0.25);
}

.view:active,
.buy:active,
.checkout-btn:active,
.book-btn:active {
    transform: translateY(0px);
    box-shadow: none;
}

/* -- Product image zoom on hover -- */
.prntrs-img,
.peripherals-img,
.accessories-img,
.tp-img,
.category-img,
.search-img {
    overflow: hidden;
    border-radius: 8px;
}

.prntrs-img img,
.peripherals-img img,
.accessories-img img,
.tp-img img,
.category-img img,
.search-img img {
    transition: transform 0.35s ease;
    width: 100%;
}

.prntrs-img:hover img,
.peripherals-img:hover img,
.accessories-img:hover img,
.tp-img:hover img,
.category-img:hover img,
.search-img:hover img {
    transform: scale(1.07);
}

/* -- popIn keyframe (used by modals) -- */
@keyframes popIn {
    from { transform: scale(0.95); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
}

/* -- modalSlideIn keyframe (used by admin modals) -- */
@keyframes modalSlideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

/* -- Stat card pulse (admin low-stock alert) -- */
@keyframes stat-pulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
    50%       { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2); }
}


/* ============================================================
   04. SHARED LAYOUT — HEADER
   ============================================================ */
.home-header {
    background-color: var(--primary-color);
    padding: 10px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 70px;
}

.home-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 400;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-decoration: none;
    color: white;
}

.home-logo a {
    text-decoration: none;
    color: white;
}

.home-logo img {
    height: 40px;
    width: auto;
}

.header-icons {
    margin: auto 40px auto auto;
    display: flex;
    gap: 20px;
}

.header-icons a img {
    width: 30px;
    color: white;
    transition: filter 0.3s ease;
    filter: invert(100%);
}

.header-icons a img:hover {
    filter: invert(0%);
}

/* -- Cart badge on header icon -- */
.cart-icon-wrap {
    position: relative;
    display: inline-flex;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background-color: #e53935;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}


/* ============================================================
   05. SHARED LAYOUT — NAVIGATION
   ============================================================ */
.navigation ul {
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 10px;
}

.navigation a {
    text-decoration: none;
    color: black;
    position: relative;
    transition: color 0.2s ease;
}

/* -- Active underline animation -- */
.navigation a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #1a4bc4;
    transition: width 0.25s ease;
}

.navigation a:hover::after,
.navigation a.active-nav::after {
    width: 100%;
}

/* -- Dropdown mega-menu (Accessories / Peripherals sub-categories) -- */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown > a {
    cursor: pointer;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #dde1ea;
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    z-index: 1000;
    padding: 8px 0;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 18px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown-menu a:hover {
    background: #f0f5ff;
    color: var(--primary-color);
}

/* -- Triangle pointer above nav dropdown -- */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #dde1ea;
}

.nav-dropdown-menu::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid white;
}

/* -- Active nav link highlight (set via $active_nav PHP variable) -- */
/* Usage: add class "active-nav" to the matching <a> in header.php */


/* ============================================================
   06. SHARED LAYOUT — FOOTER
   ============================================================ */
footer {
    margin-top: 60px;
}

/* -- Updated footer grid layout -- */
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 30px;
    padding: 50px 60px;
    background-color: #1a2a3a;
}

/* -- Brand / logo column -- */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-brand img {
    width: 50px;
    height: auto;
}

.footer-brand h3 {
    color: white;
    font-size: 20px;
}

.footer-brand p {
    color: #aab4be;
    font-size: 13px;
    line-height: 1.6;
}

/* -- Link columns (Quick Links / Account / Contact) -- */
.footer-links,
.footer-account,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h3,
.footer-account h3,
.footer-contact h3 {
    color: white;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

.footer-links a,
.footer-account a,
.footer-contact a {
    color: #aab4be;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
    line-height: 1.5;
}

.footer-links a:hover,
.footer-account a:hover,
.footer-contact a:hover {
    color: white;
}

/* -- Footer bottom bar -- */
.footer-bottom {
    background-color: #111e2b;
    text-align: center;
    padding: 14px;
    color: #666;
    font-size: 12px;
}

/* -- Legacy footer (used in pages that include footer.php without the updated layout) --
   NOTE: Duplicate of above — kept for backward compatibility */
.footer-container h3 {
    color: white;
}

.footer-links,
.footer-contact,
.footer-location {
    display: flex;
    flex-direction: column;
    padding: 30px 10px;
    gap: 20px;
}

.footer-links a,
.footer-contact a,
.footer-location a {
    text-decoration: none;
    color: white;
}


/* ============================================================
   07. SHARED COMPONENTS — USER DROPDOWN
   ============================================================ */
.user-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.user-dropdown img {
    width: 30px;
    color: white;
    transition: filter 0.3s ease;
    filter: invert(100%);
}

.user-dropdown img:hover {
    filter: invert(0%);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border: 1px solid #dde1ea;
    border-radius: 8px;
    width: 150px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 999;
    padding: 8px 0;
}

.user-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu p {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: bold;
    color: var(--dark-color);
    margin: 0;
    border-bottom: 1px solid #f0f2f5;
}

.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    color: #c62828;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background-color: #fef0f0;
}


/* ============================================================
   08. SHARED COMPONENTS — SEARCH BAR & LIVE SUGGESTIONS
   ============================================================ */
.search-bar {
    background-color: white;
    border-radius: 10px;
    display: flex;
    width: 60%;
    overflow: hidden;
}

.search-bar input {
    border: none;
    padding: 10px 15px;
    width: 100%;
    font-size: 14px;
    outline: none;
}

.search-bar button {
    padding: 8px 16px;
    background-color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.search-bar img {
    width: 20px;
    padding-top: 5px;
}

/* -- Live search suggestion wrapper -- */
.search-wrapper {
    position: relative !important;
    flex: 1;
}

.search-suggestions {
    position: fixed !important;
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
    z-index: 999999 !important;
    display: none !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    min-width: 300px !important;
}

.search-suggestions.showing {
    display: block !important;
}

.suggestion-item {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    cursor: pointer !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.suggestion-item:hover {
    background: #f5f8ff !important;
}

.suggestion-item img {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain !important;
    margin-right: 12px !important;
}

.suggestion-info {
    flex: 1 !important;
}

.suggestion-name {
    display: block !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #222 !important;
}

.suggestion-cat {
    display: block !important;
    font-size: 12px !important;
    color: #888 !important;
}

.suggestion-price {
    font-weight: bold !important;
    color: #0066cc !important;
    margin-left: auto !important;
}

.suggestion-see-all {
    padding: 12px 16px !important;
    text-align: center !important;
    color: #0066cc !important;
    cursor: pointer !important;
    border-top: 1px solid #f0f0f0 !important;
    font-weight: 500 !important;
}

.suggestion-see-all:hover {
    background: #f5f8ff !important;
}


/* ============================================================
   09. SHARED COMPONENTS — STATUS BADGES
   ============================================================ */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* -- Order / general statuses -- */
.status-badge.pending      { background: #fff3cd; color: #856404; }
.status-badge.confirmed    { background: #eff6ff; color: #1d4ed8; }
.status-badge.processing   { background: #d4edda; color: #e6b634; }
.status-badge.shipped      { background: #d1ecf1; color: #0c5460; }
.status-badge.delivered    { background: #d4edda; color: #155724; }
.status-badge.completed    { background: #f0fdf4; color: #15803d; }
.status-badge.cancelled    { background: #fff1f2; color: #be123c; }

/* -- Appointment-specific statuses -- */
.status-badge.ongoing      { background: #f5f3ff; color: #6d28d9; }
/* NOTE: .pending / .confirmed / .completed / .cancelled are already
   declared above; appointment variants intentionally override those. */
.status-badge.confirmed    { background: #eff6ff; color: #1d4ed8; }
.status-badge.ongoing      { background: #f5f3ff; color: #6d28d9; }
.status-badge.completed    { background: #f0fdf4; color: #15803d; }
.status-badge.cancelled    { background: #fff1f2; color: #be123c; }
.status-badge.pending      { background: #fff7ed; color: #c2410c; }

/* -- Supplier/purchase order statuses -- */
.status-badge.received     { background: #f0fdf4; color: #15803d; }
.status-badge.partial      { background: #fefce8; color: #854d0e; }
.status-badge.active       { background: #f0fdf4; color: #15803d; }
.status-badge.inactive     { background: #f5f5f5; color: #888;    }


/* ============================================================
   10. SHARED COMPONENTS — TOAST NOTIFICATION (Add to Cart)
   ============================================================ */
#atc-toast {
    position: fixed;
    top: 4rem;
    left: 90%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 9999;
    white-space: nowrap;
}

#atc-toast.show {
    opacity: 1;
}


/* ============================================================
   11. SHARED COMPONENTS — BUTTONS
   ============================================================ */

/* -- Primary blue fill button -- */
.btn-primary {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s ease;
}

.btn-primary:hover {
    background: #003a8c;
    transform: translateY(-1px);
}

/* -- Admin table action buttons (edit / delete / cancel) -- */
.btn-edit {
    background: #d1ecf1;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-delete {
    background: #f8d7da;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.btn-cancel {
    background: #f0f0f0;
    border: none;
    padding: 9px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
}

.btn-cancel:hover {
    background: #e0e0e0;
}

.btn-delete-confirm {
    background: #dc2626;
    color: white;
    border: none;
    padding: 9px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}

.btn-delete-confirm:hover {
    background: #b91c1c;
}

/* -- View link (account tables) -- */
.view-link {
    color: #1a4bc4;
    font-size: 13px;
    text-decoration: none;
    font-weight: bold;
}

.view-link:hover {
    text-decoration: underline;
}

/* -- View button (product listing cards — legacy style) -- */
.view {
    flex: 1;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    padding: 10px 0;
    font-weight: bold;
    margin-top: 10px;
}

.view:hover {
    background-color: var(--hover-button);
}

/* -- Wishlist / favourite button -- */
.favorite {
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    width: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-top: 10px;
}

.favorite:hover {
    background-color: var(--hover-button);
}

.favorite img {
    width: 20px;
    filter: brightness(0) invert(1);
}

/* -- Wishlist icon used in listing pages -- */
.wishlist-icon {
    width: 20px;
    filter: brightness(0) invert(1);
}

/* -- Quantity controls (cart & product detail) -- */
.quantity-controls {
    border: 1px solid #999;
    border-radius: 20px;
    padding: 5px 15px;
    display: inline-flex;
    gap: 15px;
}

.quantity-controls button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

/* -- Cart item select / deselect button -- */
.select-btn {
    padding: 6px 14px;
    background: white;
    color: #0049af;
    border: 2px solid #0049af;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.select-btn:hover {
    background: #0049af;
    color: white;
}

/* -- New action button style (used in admin tables / supplier management) -- */
.btn-action {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: opacity 0.15s ease;
    white-space: nowrap;
}

.btn-action:hover { opacity: 0.85; }

/* NOTE: .btn-edit / .btn-view / .btn-cancel are already declared above.
   The variants below are for the newer action-btn pattern only. */
.btn-view    { background: var(--primary-color); color: white; }
.btn-danger  { background: #fff1f2; color: #be123c; }
.btn-success { background: #f0fdf4; color: #15803d; }


/* ============================================================
   12. SHARED COMPONENTS — ALERTS
   ============================================================ */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: #fef0f0;
    color: #c62828;
    border: 1px solid #fecaca;
}

/* -- Inline alert spacings extracted from PHP inline styles -- */
/* Used in: product-details.php, cart.php, checkout.php, account-info.php */
.alert-margin-top {
    margin: 10px 20px;
}

.alert-margin-bottom {
    margin: 0 0 16px;
}

.alert-checkout {
    max-width: 1100px;
    margin: 0 auto 16px;
}

/* -- Validation states (login & register) -- */
.login-form input.input-error,
.reg-form input.input-error {
    border: 2px solid red !important;
}

.login-form input.input-success,
.reg-form input.input-success {
    border: 2px solid green !important;
}

.login-form label.label-error,
.reg-form label.label-error {
    color: red !important;
}

.login-form label.label-success,
.reg-form label.label-success {
    color: green !important;
}

/* -- Generic error message element -- */
.error-message {
    color: red;
    padding-bottom: 1rem;
}


/* ============================================================
   13. SHARED COMPONENTS — MODALS
   ============================================================ */

/* -- Generic overlay (booking / login) -- */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* -- Generic admin modal -- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 24px;
    width: 420px;
    max-width: 100%;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: popIn 0.2s ease;
    position: relative;
}

.modal-content h2 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #1a1a2e;
}

.modal-content input,
.modal-content textarea {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
}

.modal-content input:focus,
.modal-content textarea:focus {
    border-color: var(--primary-color);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

.modal-actions button {
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 13px;
}

.modal-actions button[type="submit"]  { background: var(--primary-color); color: white; }
/* .modal-actions button[type="button"]  { background: #eee; } */

/* -- Wide modal variant (admin product form) -- */
.modal-wide {
    width: 680px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #1a1a2e;
}

.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #888;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

/* -- Close button for booking overlay -- */
.close-btn {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.modal-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.modal-field-full {
    grid-column: 1 / -1;
}

.modal-field label {
    font-size: 12px;
    font-weight: 600;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.field-hint {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: #999;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.modal-field input,
.modal-field select,
.modal-field textarea {
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}

.modal-field input:focus,
.modal-field select:focus,
.modal-field textarea:focus {
    border-color: var(--primary-color);
}

/* -- Table search input (admin pages) -- */
.table-search {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    width: 220px;
}

.table-search:focus {
    border-color: var(--primary-color);
}

/* -- Admin supplier / modal overlay -- */
.admin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
    padding: 20px;
}

.admin-modal {
    background: white;
    border-radius: 14px;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: modalSlideIn 0.2s ease;
}

.admin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
}

.admin-modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a2a3a;
}

.admin-modal-form {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.admin-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.admin-form-group input,
.admin-form-group select,
.admin-form-group textarea {
    padding: 9px 12px;
    border: 1.5px solid #dde1ea;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease;
    background: white;
    font-family: inherit;
}

.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus {
    border-color: var(--primary-color);
}

.admin-form-group textarea {
    resize: vertical;
    min-height: 70px;
}

.admin-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    margin-top: 4px;
}


/* ============================================================
   14. INDEX PAGE
   ============================================================ */

/* ── Hero Section ────────────────────────────────────────── */
.home {
    background-color: var(--light-grey-bg);
}

.content {
    background-color: var(--primary-color);
    margin: auto;
    display: flex;
    flex-wrap: nowrap;
    max-width: 1300px;
    max-height: 500px;
    width: 100%;
    overflow: hidden;
}

.home-picture,
.content-info {
    flex: 1 1 50%;
    box-sizing: border-box;
}

.home-picture img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.content-info {
    color: white;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-info p {
    font-size: 24px;
    line-height: 1.6;
    text-align: justify;
    margin: 0;
}

.hero-text {
    flex: 1;
    padding: 50px 40px 50px;
    color: white;
}

.hero-text h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-text p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin-bottom: 28px;
    max-width: 440px;
}

.hero-actions {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.hero-btn-primary {
    background: white;
    color: var(--primary-color);
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.hero-btn-secondary {
    background: transparent;
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid rgba(255,255,255,0.6);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-btn-secondary:hover {
    background: rgba(255,255,255,0.12);
    border-color: white;
}

/* ── Shared Section Header (across homepage sections) ─────── */
.section-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a2a3a;
    margin-bottom: 8px;
}

.section-header p {
    font-size: 15px;
    color: #666;
}

.section-header.light h2 { color: white; }
.section-header.light p  { color: rgba(255,255,255,0.75); }

/* ── Shop by Department ───────────────────────────────────── */
.departments {
    padding: 60px 40px;
    max-width: 1300px;
    margin: 0 auto;
}

.department-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.department-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.department-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 73, 175, 0.16);
}

.dept-img {
    height: 160px;
    background: #f0f4fb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

.dept-img img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.department-card:hover .dept-img img {
    transform: scale(1.08);
}

.dept-info {
    padding: 16px 18px;
    border-top: 1px solid #eee;
}

.dept-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a2a3a;
    margin-bottom: 4px;
}

.dept-info span {
    font-size: 12px;
    color: #888;
}

/* ── Top Sellers — new grid version (index.php) ───────────── */
.top-sellers-v2 {
    padding: 60px 40px;
    background: var(--light-grey-bg);
    max-width: 100%;
}

.top-sellers-v2 .section-header {
    max-width: 1300px;
    margin: 0 auto 40px auto;
    text-align: left;
}

.top-sellers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1300px;
    margin: 0 auto;
}

/* ── Reusable Product Card (used on index + all listing pages) */
.product-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 73, 175, 0.15);
}

/* -- Badge (Top Seller / Out of Stock) -- */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 1;
}


.badge-hot { background: #fff3cd; color: #856404; }
.badge-oos { background: #f8d7da; color: #842029; }

.product-card-img {
    height: 170px;
    background: #f5f7fb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: hidden;
}

.product-card-img img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card-img img {
    transform: scale(1.07);
}

.product-card-body {
    padding: 14px 16px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-card-cat {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #888;
}

.product-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a2a3a;
    line-height: 1.3;
    overflow: hidden;
}

.product-card-brand {
    font-size: 12px;
    color: #999;
}

.product-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 6px;
}

.product-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
}

.badge-sale {
    background: #fde8e8;
    color: #c62828;
    margin-left: 10px;
    top: 10px;
    left: 10px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 1; 
    /* font-size, padding, border-radius inherited from .product-badge */
}
 
/* Sale (discounted) price — bold red */
.price-sale {
    font-size: 18px;
    font-weight: 700;
    color: #c62828;
}
 
/* Original price — smaller, grey, struck through */
.price-original {
    font-size: 13px;
    font-weight: 400;
    color: #aaa;
    text-decoration: line-through;
    margin-left: 5px;
}

/* -- View button on new product card -- */
.btn-view {
    flex: 1;
    text-align: center;
    padding: 9px 0;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    background: var(--primary-color);
    color: white;
    transition: background 0.2s ease;
}

.btn-view:hover {
    background: var(--hover-button);
}

/* -- Wishlist heart button on new product card -- */
.btn-wishlist img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
}

.btn-wishlist:hover img {
    transform: scale(1.2);
}

/* ── Why Choose Us ────────────────────────────────────────── */
.why-us {
    background: linear-gradient(135deg, #0049af 0%, #002f70 100%);
    padding: 60px 40px;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.why-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    padding: 28px 22px;
    text-align: center;
    color: white;
    transition: background 0.2s ease;
}

.why-card:hover {
    background: rgba(255,255,255,0.18);
}

.why-icon {
    font-size: 36px;
    margin-bottom: 14px;
}

.why-card h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}

.why-card p {
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
}

/* ── Customer Reviews ─────────────────────────────────────── */
.reviews {
    padding: 60px 40px;
    background: var(--light-grey-bg);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1300px;
    margin: 0 auto;
}

.review-card {
    background: white;
    border-radius: 14px;
    padding: 24px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-stars {
    color: #f5a623;
    font-size: 18px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    font-style: italic;
    flex: 1;
}

.review-author {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
}

/* ── Legacy Top Sellers section (older homepage markup) ─────
   NOTE: Duplicate-ish of top-sellers-v2. Kept for compatibility. */
.top-sellers {
    background-color: var(--dark-grey-bg);
    padding: 30px;
}

.ts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto 40px auto;
}

.ts-header h2 {
    font-size: 24px;
}

.see-more {
    text-decoration: none;
    color: black;
    font-weight: bold;
    font-size: 14px;
}

.see-more:hover {
    border-bottom: 2px solid var(--hover-button);
}

.products-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 20px auto;
}

.top-products {
    background-color: white;
    border-radius: 15px;
    max-width: 200px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

/* NOTE: Duplicate transform — kept as-is */
.top-products:hover {
    transform: scale(1.1);
    transform: translateY(-6px);
    transition: transform 0.2s;
}

.tp-img {
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.tp-img img {
    max-width: 100%;
    object-fit: contain;
}

.top-products h4 {
    color: var(--primary-color);
    padding-top: 10px;
}

.tp-info {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.tp-info h3 {
    display: inline-block;
    width: max-content;
    transition: transform 1.5s ease-in-out;
}

.top-products:hover .tp-info h3 {
    transform: translateX(calc(-100% + 170px));
}

.tp-nav {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.prntrs-nav a, .tp-nav a {
    flex-basis: 20%;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    padding: 10px 0;
    font-weight: bold;
    margin-top: 10px;
}

/* ── Legacy Category icons row (index.php older markup) ─────
   NOTE: May be unused in newer version; kept for compatibility */
.categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    padding-bottom: 50px;
}

.product {
    max-width: 250px;
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.product:hover {
    transform: scale(1.1);
}

.product-img {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product h3 {
    margin-top: 15px;
    font-size: 14px;
    font-weight: bold;
    color: black;
}

.product-link {
    text-decoration: none;
    color: inherit;
}

.product-link .product:hover {
    transform: translateY(-4px);
    transition: transform 0.2s;
}

.product-link .product:hover h3 {
    color: #1a4bc4;
}

/* ── Legacy Ratings section ──────────────────────────────── */
.ratings {
    background-color: var(--light-grey-bg);
    height: 50vh;
}

.rate-header {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto 40px auto;
}

.rate-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.rate-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    border-radius: 15px;
    max-width: 250px;
    padding: 20px;
    height: 200px;
}

.comment {
    text-align: center;
    font-size: 18px;
}

.stars {
    color: var(--primary-color);
    font-size: 28px;
    padding: 0 0 10px 0;
}

.user {
    color: gray;
    margin-top: auto;
}


/* ============================================================
   15. PRODUCT LISTING PAGES
       (Printers / Accessories / Peripherals / Computer Parts)
   ============================================================ */

/* ── Legacy filter bar (old markup — kept for compatibility) -- */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    justify-content: center;
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    border: 1px solid #dde1ea;
    margin-bottom: 50px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
}

.filter-group label {
    font-weight: bold;
    color: #555;
    font-size: 12px;
}

.filter-group input,
.filter-group select {
    padding: 7px 10px;
    border: 1px solid #cdd2e0;
    border-radius: 5px;
    font-size: 13px;
    min-width: 120px;
}

.filter-btn {
    padding: 8px 18px;
    background: #0049af;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
}

.filter-clear {
    padding: 8px 14px;
    color: #888;
    font-size: 13px;
    text-decoration: none;
}

.filter-clear:hover { color: #c62828; }

/* ── Shared page title ─────────────────────────────────────── */
.page-title {
    text-align: center;
    padding: 50px;
}

/* -- Generic utility classes used across listing pages -- */
.blue-text    { color: var(--primary-color); }
.no-data-msg  { color: #aaa; font-size: 14px; text-align: center; padding: 30px 0; }
.product-name { font-weight: bold; font-size: 13px; }
.brand        { font-size: 12px; color: #888; }

/* ── New Listing Page Layout — sidebar + main ──────────────── */
.listing-page {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    max-width: 1340px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}

/* ── Left Sidebar ─────────────────────────────────────────── */
.listing-sidebar {
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: sticky;
    top: 20px;
}

.sidebar-section {
    background: white;
    border-radius: 12px;
    padding: 18px 16px;
    border: 1px solid #e8ecf2;
}

.sidebar-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #888;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.sidebar-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-links a {
    display: block;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-links a:hover {
    background: #f0f5ff;
    color: var(--primary-color);
}

.sidebar-links a.sidebar-active {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

/* -- Price range form inside sidebar -- */
.sidebar-price-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-inputs input {
    flex: 1;
    padding: 7px 8px;
    border: 1.5px solid #dde1ea;
    border-radius: 7px;
    font-size: 13px;
    width: 0;
    outline: none;
    transition: border-color 0.2s ease;
}

.price-inputs input:focus {
    border-color: var(--primary-color);
}

.price-inputs span {
    font-size: 13px;
    flex-shrink: 0;
    color: #999;
}

.sidebar-apply-btn {
    padding: 8px 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sidebar-apply-btn:hover {
    background: var(--hover-button);
}

.sidebar-clear-link {
    font-size: 12px;
    color: #e53935;
    text-decoration: none;
    text-align: center;
}

.sidebar-clear-link:hover {
    text-decoration: underline;
}

/* ── Main Content Area ─────────────────────────────────────── */
.listing-main {
    flex: 1;
    min-width: 0;
}

/* -- Breadcrumb -- */
.listing-breadcrumb {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
}

.listing-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.listing-breadcrumb a:hover {
    text-decoration: underline;
}

/* -- Top bar: title + sort dropdown -- */
.listing-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.listing-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a2a3a;
}

.listing-count {
    font-size: 15px;
    font-weight: 400;
    color: #888;
    margin-left: 6px;
}

/* -- Sort form -- */
.sort-form {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
}

.sort-form select {
    padding: 7px 10px;
    border: 1.5px solid #dde1ea;
    border-radius: 7px;
    font-size: 13px;
    background: white;
    cursor: pointer;
    outline: none;
}

.sort-form select:focus {
    border-color: var(--primary-color);
}

/* ── Active Filter Tags ───────────────────────────────────── */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #555;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef2ff;
    color: #3730a3;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.filter-tag a {
    color: #3730a3;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    transition: color 0.15s ease;
}

.filter-tag a:hover {
    color: #e53935;
}

/* ── Product Grid ─────────────────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ── Empty State ──────────────────────────────────────────── */
.listing-empty {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 14px;
    border: 1px dashed #dde1ea;
}

.empty-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.empty-sub {
    font-size: 14px;
    color: #888;
}

.empty-sub a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.empty-sub a:hover {
    text-decoration: underline;
}

/* ── Legacy Listing Cards ─────────────────────────────────── */
/* NOTE: .printers-container / .accessories-container / .peripherals-container
   transitions are already declared in section 03. */

/* --- Printers listing --- */
.printers {
    background-color: var(--light-grey-bg);
}

.printers h1 {
    text-align: center;
    padding: 2rem 0;
}

.printers-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 5rem;
}

.printers-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 0.625rem;
    box-shadow: 0.125rem 0.125rem 0.313rem var(--dark-grey-bg);
}

.prntrs-img {
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: hidden;
}

.prntrs-img img {
    max-width: 100%;
    max-height: 138px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.prntrs-info {
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    padding-left: 40px;
    width: 80%;
}

.prntrs-info h3 {
    color: var(--primary-color);
    padding-top: 0.6rem;
}

.prntrs-nav {
    width: 80%;
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0 1.3rem;
    justify-content: center;
}

.prntrs-nav a:hover {
    background-color: var(--hover-button);
}

.prntrs-nav button {
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    width: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-top: 10px;
}

.prntrs-nav button:hover {
    background-color: var(--hover-button);
}

.prntrs-nav img {
    width: 20px;
    filter: brightness(0) invert(1);
}

/* --- Accessories listing --- */
.accessories {
    background-color: var(--light-grey-bg);
}

.accessories h1 {
    text-align: center;
    padding: 2rem 0;
}

.accessories-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5rem;
    padding-bottom: 5rem;
}

.accessories-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 380px;
    background: white;
    border-radius: 0.625rem;
    box-shadow: 0.125rem 0.125rem 0.313rem var(--dark-grey-bg);
}

.accessories-img {
    padding-bottom: 5px;
    justify-content: center;
    align-items: center;
}

.accessories-img img {
    width: 380px;
    height: 380px;
    padding-top: 10px;
    object-fit: contain;
}

.accessories-info {
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    padding-left: 40px;
    width: 80%;
}

.accessories-info h3 {
    color: var(--primary-color);
    padding-top: 0.6rem;
}

.accessories-nav {
    width: 80%;
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0 1.3rem;
    justify-content: center;
}

.accessories-nav a {
    flex-basis: 20%;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    padding: 10px 0;
    font-weight: bold;
    margin-top: 10px;
}

.accessories-nav a:hover {
    background-color: var(--hover-button);
}

.accessories-nav button {
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    width: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-top: 10px;
}

.accessories-nav button:hover {
    background-color: var(--hover-button);
}

.accessories-nav img {
    width: 20px;
    filter: brightness(0) invert(1);
}

/* --- Peripherals listing --- */
.peripherals {
    background-color: var(--light-grey-bg);
}

.peripherals h1 {
    text-align: center;
    padding: 2rem 0;
}

.peripherals-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5rem;
    padding-bottom: 5rem;
}

.peripherals-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 380px;
    background: white;
    border-radius: 0.625rem;
    box-shadow: 0.125rem 0.125rem 0.313rem var(--dark-grey-bg);
}

.peripherals-img {
    padding-bottom: 5px;
    justify-content: center;
    align-items: center;
}

.peripherals-img img {
    width: 380px;
    height: 380px;
    padding-top: 10px;
    object-fit: contain;
}

.peripherals-info {
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    padding-left: 40px;
    width: 80%;
}

.peripherals-info h3 {
    color: var(--primary-color);
    padding-top: 0.6rem;
}

.peripherals-nav {
    width: 80%;
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0 1.3rem;
    justify-content: center;
}

.peripherals-nav a {
    flex-basis: 20%;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    padding: 10px 0;
    font-weight: bold;
    margin-top: 10px;
}

.peripherals-nav a:hover {
    background-color: var(--hover-button);
}

.peripherals-nav button {
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    width: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-top: 10px;
}

.peripherals-nav button:hover {
    background-color: var(--hover-button);
}

.peripherals-nav img {
    width: 20px;
    filter: brightness(0) invert(1);
}

/* ── Category Page (category.php — legacy) ────────────────── */
.category-product {
    background-color: var(--light-grey-bg);
}

.category-product h1 {
    text-align: center;
    padding: 2rem 0;
}

/* NOTE: Duplicate selector typo preserved from original */
.categorycategory-product span {
    font-size: 16px;
    color: #888;
    font-weight: normal;
}

.category-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5rem;
    padding-bottom: 5rem;
}

.category-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 380px;
    background: white;
    border-radius: 0.625rem;
    box-shadow: 0.125rem 0.125rem 0.313rem var(--dark-grey-bg);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.category-img {
    padding-bottom: 5px;
    justify-content: center;
    align-items: center;
}

.category-img img {
    width: 380px;
    height: 380px;
    padding-top: 10px;
    object-fit: contain;
}

.category-info {
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    padding-left: 40px;
    width: 80%;
}

.category-info h3 {
    color: var(--primary-color);
    padding-top: 0.6rem;
}

.category-nav {
    width: 80%;
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0 1.3rem;
    justify-content: center;
}

.category-nav a {
    flex-basis: 20%;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    padding: 10px 0;
    font-weight: bold;
    margin-top: 10px;
}

.category-nav a:hover {
    background-color: var(--hover-button);
}

.category-nav button {
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    width: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-top: 10px;
}

.category-nav button:hover {
    background-color: var(--hover-button);
}

.category-nav img {
    width: 20px;
    filter: brightness(0) invert(1);
}

/* ── Search Results Page (search.php) ─────────────────────── */
.search-product {
    background-color: var(--light-grey-bg);
}

.search-product h1 {
    text-align: center;
    padding: 2rem 0;
}

.search-product span {
    font-size: 16px;
    color: #888;
    font-weight: normal;
}

.search-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5rem;
    padding-bottom: 5rem;
}

.search-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 380px;
    background: white;
    border-radius: 0.625rem;
    box-shadow: 0.125rem 0.125rem 0.313rem var(--dark-grey-bg);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.search-img {
    padding-bottom: 5px;
    justify-content: center;
    align-items: center;
}

.search-img img {
    width: 380px;
    height: 380px;
    padding-top: 10px;
    object-fit: contain;
}

.search-info {
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    padding-left: 40px;
    width: 80%;
}

.search-info h3 {
    color: var(--primary-color);
    padding-top: 0.6rem;
}

.search-nav {
    width: 80%;
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0 1.3rem;
    justify-content: center;
}

.search-nav a {
    flex-basis: 20%;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    padding: 10px 0;
    font-weight: bold;
    margin-top: 10px;
}

.search-nav a:hover {
    background-color: var(--hover-button);
}

.search-nav button {
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    width: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-top: 10px;
}

.search-nav button:hover {
    background-color: var(--hover-button);
}

.search-nav img {
    width: 20px;
    filter: brightness(0) invert(1);
}

/* -- Search empty state -- */
.search-empty {
    padding-top: 60px;
    text-align: center;
    color: #aaa;
    width: 100%;
}

.search-empty-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.search-empty-sub {
    font-size: 14px;
}

.search-back-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 24px;
    background: #0049af;
    color: white;
    border-radius: 6px;
    text-decoration: none;
}

/* -- Extracted from search.php inline styles -- */
/* <small style="color:#aaa;"> — parent category label */
.search-parent-label {
    color: #aaa;
}

/* style="font-size:12px;color:#888;margin-left:4px;" — sort count label */
.search-sort-label {
    font-size: 12px;
    color: #888;
    margin-left: 4px;
}


/* ============================================================
   16. PRODUCT DETAILS PAGE (product-details.php)
   ============================================================ */
/* ── Product Detail Page Improvements ── */

        .pd-breadcrumb {
            max-width: 1300px;
            margin: 18px auto 0;
            padding: 0 40px;
            font-size: 13px;
            color: #888;
        }
        .pd-breadcrumb a { color: #0049af; text-decoration: none; }
        .pd-breadcrumb a:hover { text-decoration: underline; }
        .pd-breadcrumb span { margin: 0 6px; color: #ccc; }

        /* ── Main card ── */
        .details-container {
            background: #fff;
            padding: 40px 50px;
            border-radius: 16px;
            display: flex;
            flex-wrap: wrap;
            gap: 50px;
            margin: 20px auto 30px;
            width: 85%;
            max-width: 1300px;
            box-shadow: 0 2px 20px rgba(0,0,0,0.07);
            border: none;
        }

        /* ── Image panel ── */
        .pd-image-panel {
            flex: 0 0 460px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .pd-main-image-wrap {
            position: relative;
            width: 100%;
            aspect-ratio: 1/1;
            border-radius: 12px;
            border: 1.5px solid #e8edf5;
            background: #f9fafb;
            overflow: hidden;
            cursor: zoom-in;
        }
        .pd-main-image-wrap img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            transition: transform 0.4s ease;
            border: none;
            border-radius: 0;
        }
        .pd-main-image-wrap:hover img {
            transform: scale(1.08);
        }
        .pd-img-badge {
            position: absolute;
            top: 12px;
            left: 12px;
            z-index: 2;
        }

        /* ── Info panel ── */
        .pd-info-panel {
            flex: 1;
            min-width: 280px;
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        .pd-category-tag {
            font-size: 12px;
            font-weight: 700;
            color: #0049af;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 6px;
        }

        .pd-title {
            font-size: 26px;
            font-weight: 700;
            color: #111827;
            line-height: 1.3;
            margin-bottom: 10px;
        }

        /* Stars */
        .pd-stars-row {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
            flex-wrap: wrap;
        }
        .pd-stars {
            display: flex;
            gap: 2px;
        }
        .pd-star {
            font-size: 18px;
            color: #f59e0b;
        }
        .pd-star.empty { color: #d1d5db; }
        .pd-review-link {
            font-size: 13px;
            color: #6b7280;
            cursor: pointer;
            text-decoration: underline dotted;
            background: none;
            border: none;
            padding: 0;
        }
        .pd-review-link:hover { color: #0049af; }
        .pd-no-reviews-cta {
            font-size: 13px;
            color: #0049af;
            cursor: pointer;
            background: none;
            border: none;
            padding: 0;
            text-decoration: underline dotted;
        }

        .pd-brand {
            font-size: 14px;
            color: #6b7280;
            margin-bottom: 16px;
        }
        .pd-brand strong { color: #374151; }

        /* Divider */
        .pd-divider {
            height: 1px;
            background: #f0f0f0;
            margin: 14px 0;
        }

        /* Price block */
        .pd-price-block {
            display: flex;
            align-items: baseline;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 4px;
        }
        .pd-price-main {
            font-size: 38px;
            font-weight: 800;
            color: #0049af;
            line-height: 1;
        }
        .pd-price-original {
            font-size: 17px;
            color: #9ca3af;
            text-decoration: line-through;
        }
        .pd-discount-badge {
            background: #fee2e2;
            color: #dc2626;
            font-size: 12px;
            font-weight: 700;
            padding: 3px 9px;
            border-radius: 20px;
            letter-spacing: 0.5px;
        }
        .pd-savings-note {
            font-size: 13px;
            color: #059669;
            font-weight: 600;
            margin-bottom: 14px;
        }

        /* Status row */
        .pd-status-row {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 10px;
        }
        .pd-status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #22c55e;
            flex-shrink: 0;
        }
        .pd-status-dot.oos { background: #ef4444; }
        .pd-status-label {
            font-size: 14px;
            font-weight: 600;
            color: #22c55e;
        }
        .pd-status-label.oos { color: #ef4444; }
        .pd-stock-note {
            font-size: 12.5px;
            color: #f59e0b;
            font-weight: 600;
        }

        /* Warranty & meta chips */
        .pd-meta-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 18px;
        }
        .pd-chip {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            background: #f0f5ff;
            color: #374151;
            border: 1px solid #dbeafe;
            border-radius: 20px;
            padding: 4px 12px;
            font-size: 12.5px;
            font-weight: 600;
        }
        .pd-chip-icon { font-size: 13px; }

        /* Quantity + actions */
        .pd-qty-actions {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 16px;
            flex-wrap: wrap;
        }
        .pd-qty-label {
            font-size: 13px;
            font-weight: 600;
            color: #6b7280;
            white-space: nowrap;
        }
        .pd-qty-controls {
            display: inline-flex;
            align-items: center;
            border: 1.5px solid #d1d5db;
            border-radius: 10px;
            overflow: hidden;
        }
        .pd-qty-controls button {
            width: 36px;
            height: 36px;
            background: #f9fafb;
            border: none;
            font-size: 18px;
            font-weight: 700;
            cursor: pointer;
            color: #374151;
            transition: background 0.15s;
            line-height: 1;
        }
        .pd-qty-controls button:hover { background: #e5e7eb; }
        .pd-qty-controls span {
            min-width: 40px;
            text-align: center;
            font-size: 15px;
            font-weight: 700;
            color: #111;
        }

        /* Action buttons */
        .pd-action-row {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 14px;
        }
        .pd-btn-buy {
            flex: 1;
            min-width: 140px;
            padding: 14px 20px;
            background: #0049af;
            color: #fff;
            border: none;
            border-radius: 10px;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
            letter-spacing: 0.3px;
        }
        .pd-btn-buy:hover {
            background: #0a223a;
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0,73,175,0.25);
        }
        .pd-btn-buy:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        .pd-btn-cart {
            flex: 1;
            min-width: 140px;
            padding: 14px 20px;
            background: #fff;
            color: #0049af;
            border: 2px solid #0049af;
            border-radius: 10px;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            transition: background 0.2s, transform 0.15s;
            letter-spacing: 0.3px;
        }
        .pd-btn-cart:hover {
            background: #f0f5ff;
            transform: translateY(-2px);
        }
        .pd-btn-wishlist {
            width: 48px;
            height: 48px;
            border-radius: 10px;
            border: 2px solid #e5e7eb;
            background: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            flex-shrink: 0;
            transition: border-color 0.2s, background 0.2s;
            text-decoration: none;
        }
        .pd-btn-wishlist:hover { border-color: #f43f5e; background: #fff1f2; }
        .pd-btn-wishlist img { width: 22px; height: 22px; }

    
        /* ── Related products ── */
        .pd-related {
            max-width: 1300px;
            width: 90%;
            margin: 0 auto 40px;
        }
        .pd-related h2 {
            font-size: 20px;
            font-weight: 700;
            color: #111;
            margin-bottom: 18px;
        }
        .pd-related-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 16px;
        }

        /* ── OOS overlay ── */
        .pd-oos-msg {
            background: #fef2f2;
            border: 1px solid #fecaca;
            border-radius: 10px;
            padding: 12px 16px;
            font-size: 14px;
            color: #dc2626;
            font-weight: 600;
            margin-bottom: 16px;
        }

        @media (max-width: 900px) {
            .pd-image-panel { flex: 0 0 100%; }
            .pd-info-panel { min-width: unset; }
            .details-container { gap: 30px; padding: 24px; }
        }
        @media (max-width: 480px) {
            .pd-price-main { font-size: 30px; }
            .pd-title { font-size: 20px; }
            .pd-action-row { flex-direction: column; }
            .pd-btn-wishlist { width: 100%; }
        }
/* -- Extracted from product-details.php inline styles -- */
/* <p style="color:#aaa; font-size:14px;"> — "No reviews yet" text */
.review-empty-text {
    color: #aaa;
    font-size: 14px;
}

/* -- Product description / reviews tabs -- */
.product-description {
    background-color: var(--light-grey-bg);
    padding-bottom: 40px;
}

.pd-header {
    display: flex;
    align-items: center;
    max-width: 1250px;
    margin: 0 auto 30px auto;
    gap: 40px;
}

.pd-header-btn {
    background: none;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    padding-bottom: 8px;
    border-bottom: 4px solid transparent;
    transition: 0.3s;
}

.pd-header-btn.active {
    border-bottom: 4px solid var(--primary-color);
    color: black;
}

.pd-header a {
    text-decoration: none;
    color: black;
}

.pd-container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 0 40px 50px;
    min-height: 300px;
}

.product-info {
    margin-top: 50px;
    font-size: 20px;
}

.product-info h4 {
    color: var(--primary-color);
}

.product-info .features {
    font-size: 20px;
    display: flex;
    flex-direction: column;
    margin-top: 30px;
    gap: 20px;
}

.product-info .features h4 {
    color: var(--primary-color);
}

.review-title {
    color: var(--primary-color);
    text-align: center;
    font-size: 32px;
    padding-top: 20px;
}


/* ============================================================
   17. CART PAGE (cart.php)
   ============================================================ */
.cart-page {
    background-color: var(--light-grey-bg);
    min-height: 100vh;
}

.cart-page h1 {
    text-align: center;
    padding: 50px;
}

.cart-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

.cart-items-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex: 3;
}

/* -- Column header row -- */
.cart-header {
    display: flex;
    align-items: center;
    padding: 0 20px 10px 20px;
    color: #888;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
    margin-bottom: 12px;
}

.ch-product  { flex: 2; }
.ch-price    { flex: 1; text-align: center; }
.ch-quantity { flex: 1; text-align: center; }
.ch-total    { flex: 1; text-align: center; }


.out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
}

.out-of-stock-msg {
    background: #fef0f0;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 10px 14px;
    margin: 12px 0;
    font-size: 14px;
    color: #c62828;
}
/* -- Extracted from cart.php inline style -- */
/* <span style="flex:1; text-align:center;">Select</span> */
.ch-select {
    flex: 1;
    text-align: center;
}

/* -- Individual cart card -- */
.cart-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    background: white;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.cart-card-info { flex: 1; }
.cart-price     { flex: 1; text-align: center; font-weight: bold; }
.item-total     { flex: 1; text-align: center; font-weight: bold; color: var(--primary-color); }

.cart-thumb {
    width: 100px;
    border: 1px solid #ddd;
    padding: 5px;
}

.cart-empty {
    color: #aaa;
    text-align: center;
    padding: 30px;
}

/* -- Delete link on cart item -- */
.cart-delete {
    color: #999;
    font-size: 18px;
    text-decoration: none;
    margin-left: 10px;
}

.cart-delete:hover {
    color: red;
}

/* -- Remove button style (used in cart.php) -- */
.cart-delete-btn {
    color: #c62828;
    font-size: 13px;
    text-decoration: none;
    font-weight: bold;
}

.cart-delete-btn:hover {
    text-decoration: underline;
}

/* -- Item checkbox -- */
.item-checkbox {
    width: 18px !important;
    height: 18px;
    accent-color: #1a4bc4;
    cursor: pointer;
    flex-shrink: 0;
}

#select-all {
    width: 18px !important;
    height: 18px;
    accent-color: #1a4bc4;
}

/* -- Order summary sidebar -- */
.order-summary {
    flex: 1;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.order-summary h3 {
    margin-top: 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-size: 18px;
}

.total-row {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    font-weight: bold;
}

.checkout-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
}

.checkout-btn:hover {
    background-color: var(--hover-button);
}

/* -- Selectable product row (legacy) -- */
.product-row {
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-row.selected {
    border: 2px solid var(--primary-color);
    background-color: #f0f5ff;
}


/* ============================================================
   18. CHECKOUT PAGE (checkout.php)
   ============================================================ */

/* ── Legacy checkout layout ──────────────────────────────── */
.checkout-page {
    background-color: var(--light-grey-bg);
    min-height: 100vh;
}

.checkout-sec {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 20px;
}

.checkout-container {
    background-color: white;
    width: 80%;
    margin: 0 auto 20px;
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.checkout-table {
    width: 100%;
    border-collapse: collapse;
}

.checkout-table th {
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
    text-align: left;
    color: #999;
    font-size: 19px;
}

.checkout-row td {
    font-weight: bold;
}

.checkout-cell {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
}

.checkout-thumb {
    width: 100px;
    border: 1px solid #ddd;
    padding: 5px;
}

.checkout-row .quantity {
    padding-left: 30px;
}

.total,
.payment .total {
    color: var(--primary-color);
}

/* -- Delivery address box -- */
.address-container {
    background-color: white;
    width: 30%;
    margin: 0 auto 20px;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.address-header h1 {
    font-size: 20px;
    color: var(--primary-color);
}

.info-container {
    display: flex;
    flex-direction: column;
    padding: 20px 0 0 0;
    gap: 20px;
}

.change {
    text-align: end;
}

.change a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
}

/* -- Payment / COD section -- */
.payment-sec {
    max-width: 1200px;
    margin: 0 auto;
}

.payment-container {
    background-color: white;
    padding: 20px;
    width: 25%;
    border-radius: 10px;
    display: flex;
    justify-self: flex-end;
    flex-direction: column;
    flex-wrap: wrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.container-title {
    font-weight: 400;
    font-size: 22px;
    padding-bottom: 10px;
}

.cod-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.cod-info h1 {
    font-weight: 400;
    font-size: 22px;
}

.cod-info p {
    padding-top: 10px;
    color: #777;
}

.payment {
    align-self: flex-end;
    justify-self: flex-end;
}

.payment p {
    padding-top: 10px;
    color: black;
    font-weight: bold;
}

.place-order {
    display: flex;
    justify-content: center;
}

.place-order button {
    padding: 10px 50px;
    background-color: var(--primary-color);
    border-radius: 10px;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.place-order button:hover {
    background-color: var(--hover-button);
}

/* ── New Checkout Page layout (checkout.php new design) ──── */
.checkout-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

.checkout-heading {
    font-size: 26px;
    font-weight: 700;
    color: #1a2a3a;
    margin-bottom: 24px;
}

/* -- Two-column layout -- */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: flex-start;
}

/* -- Section card -- */
.co-section {
    background: white;
    border-radius: 14px;
    border: 1px solid #e8ecf2;
    padding: 24px;
    margin-bottom: 16px;
}

.co-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a2a3a;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.co-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.co-optional {
    font-size: 12px;
    font-weight: 400;
    color: #aaa;
    margin-left: 4px;
}

/* -- Delivery options -- */
.co-delivery-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.co-delivery-opt {
    display: block;
    cursor: pointer;
}

.co-delivery-opt input[type="radio"] {
    display: none;
}

.co-delivery-content {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 2px solid #e8ecf2;
    border-radius: 10px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.co-delivery-opt input:checked + .co-delivery-content,
.co-delivery-opt.selected .co-delivery-content {
    border-color: var(--primary-color);
    background: #f0f5ff;
}

.co-del-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.co-delivery-content div {
    flex: 1;
}

.co-delivery-content strong {
    display: block;
    font-size: 14px;
    color: #1a2a3a;
    margin-bottom: 2px;
}

.co-delivery-content p {
    font-size: 12px;
    color: #888;
    margin: 0;
}

.co-del-fee {
    font-size: 14px;
    font-weight: 700;
    color: #e53935;
    flex-shrink: 0;
}

.co-del-fee.free {
    color: #16a34a;
}

/* -- Address list -- */
.co-address-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.co-address-opt {
    display: block;
    cursor: pointer;
}

.co-address-opt input[type="radio"] {
    display: none;
}

.co-address-content {
    padding: 14px 16px;
    border: 2px solid #e8ecf2;
    border-radius: 10px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.co-address-opt input:checked + .co-address-content {
    border-color: var(--primary-color);
    background: #f0f5ff;
}

.co-addr-name {
    font-size: 14px;
    color: #1a2a3a;
    margin-bottom: 4px;
}

.co-addr-full {
    font-size: 13px;
    color: #555;
}

.co-default-tag {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    background: #eff6ff;
    color: var(--primary-color);
    padding: 2px 8px;
    border-radius: 10px;
}

.co-add-address-link {
    display: inline-block;
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.co-add-address-link:hover {
    text-decoration: underline;
}

.co-warning {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #c2410c;
}

.co-warning a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

/* -- Promo code -- */
.co-promo-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.co-promo-row input {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    border: 1.5px solid #dde1ea;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.co-promo-row input:focus {
    border-color: var(--primary-color);
}

.co-promo-btn {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.co-promo-btn:hover {
    background: var(--hover-button);
}

.co-promo-clear {
    padding: 10px 14px;
    background: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
}

.co-promo-msg {
    font-size: 13px;
    margin-top: 8px;
}

/* -- Extracted from checkout.php inline styles -- */
/* <tr id="row_discount" style="display:none;"> */
#row_discount { display: none; }

/* <span id="val_discount" style="color:#16a34a;"> */
#val_discount { color: #16a34a; }

/* -- Order notes -- */
.co-notes {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #dde1ea;
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.co-notes:focus {
    border-color: var(--primary-color);
}

/* -- Order Summary card (right column) -- */
.co-summary {
    background: white;
    border-radius: 14px;
    border: 1px solid #e8ecf2;
    padding: 24px;
    position: sticky;
    top: 20px;
}

.co-summary-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a2a3a;
    margin-bottom: 18px;
}

.co-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 4px;
}

.co-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.co-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    background: #f5f7fb;
    flex-shrink: 0;
    padding: 4px;
}

.co-item-info {
    flex: 1;
    min-width: 0;
}

.co-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a2a3a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.co-item-meta {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.co-item-sub {
    font-size: 13px;
    font-weight: 700;
    color: #1a2a3a;
    flex-shrink: 0;
}

.co-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 14px 0;
}

.co-totals {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.co-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #555;
}

.co-discount-row {
    font-weight: 600;
}

.co-grand-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 700;
    color: #1a2a3a;
}

.co-grand-total {
    font-size: 22px;
    color: var(--primary-color);
}

.co-payment-method {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}

.co-place-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease;
    margin-bottom: 12px;
}

.co-place-btn:hover {
    background: var(--hover-button);
    transform: translateY(-1px);
}

.co-place-disabled {
    background: #aaa;
    cursor: not-allowed;
}

.co-place-disabled:hover {
    background: #aaa;
    transform: none;
}

.co-terms {
    font-size: 11px;
    color: #aaa;
    text-align: center;
    line-height: 1.5;
}


/* ============================================================
   19. WISHLIST PAGE (wishlist.php)
   ============================================================ */
.wishlist-page {
    min-height: 100vh;
    background-color: var(--light-grey-bg);
    padding: 30px;
}

.wishlist-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.wishlist-table {
    width: 100%;
    border-collapse: collapse;
}

.wishlist-table thead tr {
    border-bottom: 2px solid #ddd;
}

#product-tr {
    text-align: left;
}

.wishlist-table th {
    padding: 12px 16px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

.wishlist-row {
    border-bottom: 1px solid #f0f0f0;
}

.wishlist-row td {
    text-align: center;
}

.wishlist-cell {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
}

.wishlist-thumb {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.in-stock {
    color: #1a7f44;
    font-weight: bold;
    font-size: 14px;
}

.out-stock {
    color: red;
    font-weight: bold;
    font-size: 14px;
}

.atc-btn {
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.atc-btn:hover {
    background: #003580;
}

.unavailable {
    color: #aaa;
    font-size: 14px;
}

.wishlist-remove {
    color: #999;
    font-size: 18px;
    text-decoration: none;
}

.wishlist-remove:hover {
    color: red;
}


/* ============================================================
   20. LOGIN PAGE (login.php / login-modal.php)
   ============================================================ */
.login-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}

.login-modal .log-in {
    background: white;
    border-radius: 10px;
}

.log-in {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-form {
    display: flex;
    flex-direction: column;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.login-form h1 {
    color: black;
    padding-bottom: 15px;
    text-align: center;
    font-size: 25px;
}

.login-form h3 {
    color: black;
    padding-bottom: 15px;
    text-align: left;
}

.login-form div {
    padding-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.login-form label {
    color: black;
    padding-bottom: 5px;
    font-size: 15px;
}

.login-form input {
    padding-left: 5px;
    border-radius: 5px;
    border: 2px solid black;
    transition: 0.3s ease;
}

.login-form p {
    text-align: center;
}

#log-username,
#log-pass {
    height: 35px;
    width: 340px;
}

#log-in-btn {
    text-align: center;
    height: 35px;
    width: 350px;
    background-color: var(--primary-color);
    border-radius: 5px;
    color: white;
    border: none;
    cursor: pointer;
}

#log-in-btn:hover {
    background-color: var(--hover-button);
}

#log-to-reg a {
    color: var(--primary-color);
}

#login-error {
    color: red;
    padding-bottom: 0.6rem;
}

/* -- Account modal (account-info.php) -- */
.account-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}

#acc-first-name,
#acc-last-name,
#acc-phone {
    height: 35px;
    width: 340px;
}

#acc-complete-btn {
    height: 35px;
    width: 350px;
    background-color: var(--primary-color);
    border-radius: 5px;
    color: white;
    border: none;
    cursor: pointer;
}

#acc-complete-btn:hover {
    background-color: var(--hover-button);
}

#prof-first-name,
#prof-last-name,
#prof-phone,
#prof-address {
    height: 35px;
    width: 340px;
    padding-left: 5px;
    border-radius: 5px;
    border: 2px solid black;
    transition: 0.3s ease;
}

#prof-address {
    resize: vertical;
    width: 350px;
}

#prof-complete-btn {
    text-align: center;
    height: 35px;
    width: 350px;
    background-color: var(--primary-color);
    border-radius: 5px;
    color: white;
    border: none;
    cursor: pointer;
}

#prof-complete-btn:hover {
    background-color: var(--hover-button);
}

#profile-error {
    color: red;
    padding-bottom: 0.6rem;
}

#prof-info {
    text-align: center;
    color: #666;
    font-size: 14px;
}


/* ============================================================
   21. REGISTER PAGE (register.php / register-modal.php)
   ============================================================ */
.register-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}

.register-modal .register {
    background: white;
    border-radius: 10px;
}

.register {
    display: flex;
    justify-content: center;
    align-items: center;
}

.reg-form {
    display: flex;
    flex-direction: column;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.reg-form h1 {
    color: black;
    padding-bottom: 15px;
    text-align: center;
    font-size: 25px;
}

.reg-form h3 {
    color: black;
    padding-bottom: 15px;
    text-align: left;
}

.reg-form div {
    padding-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.reg-form label {
    color: black;
    padding-bottom: 5px;
    font-size: 15px;
}

.reg-form input {
    padding-left: 5px;
    border-radius: 5px;
    border: 2px solid black;
    transition: 0.3s ease;
}

.reg-form p {
    text-align: center;
}

#reg-username,
#reg-email,
#reg-pass,
#reg-conpass {
    height: 35px;
    width: 340px;
}

#register-btn {
    text-align: center;
    height: 35px;
    width: 350px;
    background-color: var(--primary-color);
    border-radius: 5px;
    color: white;
    border: none;
    cursor: pointer;
}

#register-btn:hover {
    background-color: var(--hover-button);
}

#reg-to-log a {
    color: var(--primary-color);
}

#reg-error {
    color: red;
    padding-bottom: 0.6rem;
}

/* -- Password strength hints -- */
.strength-text {
    font-size: 13px;
    margin-top: 6px;
    color: #777;
    line-height: 1.3;
}

.password-hints {
    display: none;
    opacity: 0;
    transform: translateY(-6px);
    transition: all 0.25s ease;
    font-size: 12px;
    margin-top: 6px;
    padding-left: 18px;
    color: #777;
}

.password-hints.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.password-hints li {
    margin-bottom: 3px;
}

.password-hints li.valid {
    color: green;
    font-weight: 500;
}

.password-hints li.invalid {
    color: red;
}


/* ============================================================
   22. SERVICES PAGE (services.php)
   ============================================================ */
.services-sec {
    background-color: var(--light-grey-bg);
}

.services-sec h1 {
    text-align: center;
    padding: 30px 0;
}

.services-container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding: 20px 40px 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
}

.booking-container {
    background-color: white;
    border-radius: 10px;
    width: 350px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 30px;
    padding: 30px 0;
    box-shadow: 0.125rem 0.125rem 0.313rem var(--dark-grey-bg);
    transition: all 0.4s ease-in-out;
}

.booking-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-title h3 {
    font-weight: 400;
    font-size: 25px;
}

.service-img img {
    width: 300px;
    height: 220px;
    border-radius: 5px;
}

.booking-container:hover .service-img img {
    transform: scale(1);
    transition: 0.3s;
}

.service-description {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    text-align: center;
    padding: 0 30px;
}

.service-description p {
    font-size: 14px;
    color: var(--dark-color);
    margin: 10px 0;
}

.booking-container:hover .service-description {
    max-height: 150px;
    opacity: 1;
}

.book-now button {
    background-color: var(--primary-color);
    color: white;
    font-size: 19px;
    border: none;
    padding: 1rem 5.5rem;
    border-radius: 0.725rem;
    box-shadow: 0.125rem 0.125rem 0.313rem var(--dark-grey-bg);
    cursor: pointer;
}

.book-now button:hover {
    background-color: var(--hover-button);
}


/* ============================================================
   23. SERVICE BOOKING DETAILS PAGE (services-details.php)
   ============================================================ */
.bd-sec {
    background-color: var(--light-grey-bg);
    min-height: 100vh;
}

.bd-sec h1 {
    text-align: center;
    padding: 30px 0;
}

.bd-container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding: 10px 40px 40px;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
}

.bd-container h1 {
    color: var(--primary-color);
    font-size: 20px;
}
.service-booking-info {
    margin-bottom: 20px;
}
.sbi-price {
    font-weight: bold;
    color:#16a34a;
    font-size: larger;
}
.sbi-duration {
    font-weight: bold;
}

.bd-forms {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 50px;
    margin-bottom: 30px;
    width: 100%;
}

.details-section,
.calendar-section,
.time-section {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.details-section {
    width: 35%;
}

.calendar-section {
    width: 50%;
}

.time-section {
    width: 20%;
    justify-content: flex-start;
    padding-top: 45px;
}

.details-section h2 {
    margin-bottom: 16px;
}

.details-section input {
    width: 100%;
    padding: 10px;
    margin-bottom: 27px;
    border: 1px solid #444;
    border-radius: 8px;
    box-sizing: border-box;
}

.details-section input:hover {
    cursor: pointer;
}

/* -- Extracted from services-details.php inline styles -- */
/* <p style="color:red; font-size:13px;"> — booking form error */
.booking-form-error {
    color: red;
    font-size: 13px;
}


/* --- Service Type --- */
.svc-type-toggle {
    margin: 14px 0 4px;
}
.svc-type-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}
.svc-type-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.svc-type-opt {
    cursor: pointer;
}
.svc-type-opt input[type="radio"] {
    display: none;
}
.svc-type-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 18px;
    border: 2px solid #dde1ea;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    background: #f9f9fb;
    transition: all 0.2s;
    user-select: none;
}
.svc-type-chip small.svc-surcharge {
    font-size: 11px;
    color: #0049af;
    font-weight: 600;
}
.svc-type-opt input[type="radio"]:checked + .svc-type-chip {
    border-color: #0049af;
    background: #e8eeff;
    color: #0049af;
    font-weight: 700;
}
 
/* ── Home Address wrap ───────────────────────────────────── */
.home-address-wrap {
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
}
 
/*
 * Overrides .details-section input (which adds 27px margin-bottom
 * and cursor:pointer to all inputs inside .details-section)
 */
.home-address-wrap textarea {
    display: block;
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 0 !important;
    border: 1.5px solid #dde1ea !important;
    border-radius: 10px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.2s;
    cursor: text !important;
    background: #fff;
}
.home-address-wrap textarea:focus {
    outline: none;
    border-color: #0049af !important;
}
 
/* ── Saved address bar ───────────────────────────────────── */
 
/*
 * Stack vertically (column) so nothing overflows the 35% details column.
 * The label sits on its own line, then the button or select fills width below.
 */
.saved-addr-bar {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
    width: 100%;
    box-sizing: border-box;
}
 
/*
 * Specificity: .saved-addr-bar .use-saved-addr-btn beats
 * .bookingContainer button and .calendar-header button
 */
.saved-addr-bar .use-saved-addr-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: #e8eeff;
    color: #0049af;
    border: 1.5px solid #0049af;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    align-self: flex-start;   /* don't stretch full width */
    width: auto;
}
.saved-addr-bar .use-saved-addr-btn:hover {
    background: #0049af;
    color: #fff;
}
 
/* Address preview shown beside button (single address) */
.saved-addr-preview {
    font-size: 11px;
    color: #666;
    font-style: italic;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
}
 
/* "My saved addresses:" label (multi-address) */
.saved-addr-select-label {
    font-size: 12px;
    font-weight: 600;
    color: #0049af;
}
 
/* Dropdown fills the full column width */
.saved-addr-select {
    width: 100%;
    padding: 6px 10px;
    border: 1.5px solid #0049af;
    border-radius: 8px;
    font-size: 12px;
    color: #333;
    background: #f5f8ff;
    cursor: pointer;
    box-sizing: border-box;
}
.saved-addr-select:focus {
    outline: none;
    border-color: #003a99;
}
 
/* Hint for no-address / guest users */
.no-saved-addr-hint {
    font-size: 12px;
    color: #888;
    margin: 6px 0 0;
}
.no-saved-addr-hint a {
    color: #0049af;
    font-weight: 600;
    text-decoration: none;
}
.no-saved-addr-hint a:hover {
    text-decoration: underline;
}

/* -- Calendar widget -- */
.calendar {
    width: 50rem;
    height: 25rem;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#monthYear {
    text-align: center;
}

.days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    margin: 20px 10px;
}

#days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day {
    padding: 12px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    /* NOTE: 'backround-color' typo preserved from original */
    transition: backround-color 0.2s ease,
                color 0.2s ease,
                transform 0.15s ease;
    border: 1px solid #ddd;
}

.day:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.10);
}

.today {
    background: black;
    color: white;
}

.past-day {
    color: var(--dark-grey-bg);
}

.selected-day {
    background-color: var(--primary-color);
    color: white;
}

#selected-date-label {
    font-size: 15px;
    color: var(--primary-color);
    margin-top: 5px;
}

.bookingContainer button {
    background: black;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}

/* -- Time slot buttons -- */
.time-btn {
    width: 100%;
    background: white;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    /* NOTE: 'backround-color' typo preserved from original */
    transition: backround-color 0.2s ease,
                color 0.2s ease,
                transform 0.15s ease;
}

.time-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.time-selected {
    background-color: var(--primary-color);
    color: white;
}

#selected-time-label {
    font-size: 13px;
    color: #1a4bc4;
    margin-top: 8px;
}

#book-error {
    color: red;
    padding-bottom: 0.6rem;
}

/* -- Book Now submit button -- */
.book-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 120px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    align-self: center;
}

.book-btn:hover {
    background-color: var(--hover-button);
}


/* ============================================================
   24. BOOKING SUMMARY PAGE (booking-summary.php)
   ============================================================ */
.booking-summary-sec {
    background-color: var(--light-grey-bg);
    min-height: 100vh;
    padding-top: 60px;
}
.summary-service-type p,
.summary-home-address p {
    font-size: 14px;
    color: #333;
}


.summary-container {
    max-width: 1200px;
    width: 25%;
    margin: 0 auto;
    background-color: white;
    border-radius: 15px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    padding: 20px 25px 40px;
    gap: 30px;
    box-shadow: 0.125rem 0.125rem 0.313rem var(--dark-grey-bg);
    justify-content: center;
}

.summary-title {
    text-align: center;
    padding: 10px;
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-wrap: wrap;
}

.summary-for div {
    display: flex;
    gap: 0.3rem;
}

.summary-book-btn {
    text-align: center;
}

.summary-book-btn button {
    padding: 15px;
    width: 100%;
    border-radius: 15px;
    border: none;
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
}

.summary-book-btn button:hover {
    background-color: var(--hover-button);
}

/* -- Booking success modal -- */
.booking-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.booking-modal-box {
    background: #fff;
    border-radius: 14px;
    width: 480px;
    max-width: 95vw;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    overflow: hidden;
}

.booking-modal-header {
    background: linear-gradient(135deg, #0049af, #0a223a);
    padding: 24px 28px;
    color: white;
}

.booking-modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.booking-modal-body {
    padding: 20px 28px;
}

.booking-modal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.booking-modal-row:last-child {
    border-bottom: none;
}

.bm-label {
    color: #888;
    font-weight: 500;
}

.bm-value {
    color: #1a1a2e;
    font-weight: 600;
    text-align: right;
}

.booking-modal-footer {
    padding: 16px 28px 24px 28px;
    text-align: center;
}

/* -- Extracted from services-details.php -- */
/* <span class="bm-value" style="color:#1a7f44; font-weight:600;">PENDING</span> */
.status-confirmed-text {
    color: #1a7f44;
    font-weight: bold;
}


/* ============================================================
   25. MY ACCOUNT PAGE (my-account.php)
   ============================================================ */

/* ── Page wrapper ─────────────────────────────────────────── */
.account-page {
    padding: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.account-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.account-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: white;
    border: 1px solid #dde1ea;
    border-radius: 10px;
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.account-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    background: #1a4bc4;
    color: white;
}

.account-avatar {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.account-username {
    font-size: 14px;
    font-weight: bold;
    color: white;
}

.account-email {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 2px;
}

.account-nav {
    padding: 10px 0;
}

.account-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 18px;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background 0.2s;
}

.account-nav-link:hover {
    background: #f0f2f5;
    color: #1a4bc4;
}

.account-nav-link.active {
    background: #e8efff;
    color: #1a4bc4;
    border-left-color: #1a4bc4;
    font-weight: bold;
}

.account-logout {
    color: #c62828;
    border-top: 1px solid #dde1ea;
    margin-top: 4px;
}

.account-logout:hover {
    background: #fef0f0;
    color: #c62828;
}

.nav-count {
    background: #1a4bc4;
    color: white;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 99px;
}

/* ── Content area ─────────────────────────────────────────── */
.account-content {
    flex: 1;
    min-width: 0;
}

.account-card {
    background: white;
    border: 1px solid #dde1ea;
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 20px;
}

.account-card-title {
    font-size: 18px;
    font-weight: bold;
    color: #1a4bc4;
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f2f5;
}

.account-sub-title {
    font-size: 15px;
    font-weight: bold;
    color: #333;
    margin: 24px 0 14px;
}

/* ── Forms ────────────────────────────────────────────────── */
.account-form-row {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}

.account-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}

.account-form-group label {
    font-size: 13px;
    font-weight: bold;
    color: #555;
}

.account-form-group input {
    padding: 9px 12px;
    border: 1px solid #cdd2e0;
    border-radius: 5px;
    font-size: 13px;
    font-family: Arial, sans-serif;
    outline: none;
}

.account-form-group input:focus {
    border-color: #1a4bc4;
}

/* -- Address form dropdowns -- */
.address-form-bg {
    background: #f5f7fb;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* NOTE: .address-form-bg is declared twice (here & section 25a below).
   The one here is from the address edit form; kept both per instruction. */

.account-form-group select {
    width: 100%;
    padding: 10px 36px 10px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #222;
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.account-form-group select:focus {
    outline: none;
    border-color: #0049af;
    box-shadow: 0 0 0 3px rgba(0,73,175,0.1);
}

.account-form-group select:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

.account-form-group input[type="text"],
.account-form-group input[type="email"],
.account-form-group input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #222;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.account-form-group input:focus {
    outline: none;
    border-color: #0049af;
    box-shadow: 0 0 0 3px rgba(0,73,175,0.1);
}

.form-action-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
}

/* -- Account action button -- */
.account-btn {
    padding: 9px 22px;
    background: #1a4bc4;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    text-decoration: none;
    display: inline-block;
}

.account-btn:hover {
    background: #1338a0;
}

/* -- Checkbox helpers -- */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-input {
    width: auto;
}

/* ── Address list ─────────────────────────────────────────── */
.address-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.address-item {
    border: 1px solid #dde1ea;
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.address-default {
    border-color: #1a4bc4;
    background: #f0f5ff;
}

.default-badge {
    display: inline-block;
    background: #1a4bc4;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 99px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.address-full {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.address-city {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}

.address-item-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.addr-action-link {
    font-size: 12px;
    color: #1a4bc4;
    text-decoration: none;
    text-align: right;
}

.addr-action-link:hover {
    text-decoration: underline;
}

.addr-delete {
    color: #c62828;
}

/* ── Extracted from my-account.php inline styles ─────────── */
/* <p style="font-size:13px; color:#555; background:#f5f5f5; padding:8px 12px; border-radius:6px; margin:0;"> */
.current-saved-address {
    font-size: 13px;
    color: #555;
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 6px;
    margin: 0;
}

/* <p style="font-size:13px; color:#888; margin: 4px 0 12px;"> */
.address-hint-text {
    font-size: 13px;
    color: #888;
    margin: 4px 0 12px;
}

/* <span style="color:#888; font-weight:400;">(optional update)</span> */
.label-optional {
    color: #888;
    font-weight: 400;
}

/* ── Account tables ───────────────────────────────────────── */
.account-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.account-table th {
    background: #f5f7fb;
    padding: 9px 12px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    color: #999;
    border-bottom: 1px solid #dde1ea;
}

.account-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f2f5;
    vertical-align: middle;
}

.account-table tr:last-child td {
    border-bottom: none;
}

/* ── Order detail view ────────────────────────────────────── */
.order-item-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-item-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.order-item-name {
    font-weight: bold;
    font-size: 13px;
}

.order-item-brand {
    font-size: 12px;
    color: #888;
}

.appt-time-sub {
    font-size: 12px;
    color: #888;
}

.no-action {
    font-size: 12px;
    color: #aaa;
}

.order-detail-status {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.order-detail-date {
    font-size: 13px;
    color: #888;
}

.order-detail-section {
    margin-bottom: 24px;
}

.order-detail-section h3 {
    font-size: 14px;
    font-weight: bold;
    color: #555;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f2f5;
}

.order-detail-total {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    font-size: 15px;
    font-weight: bold;
    padding-top: 16px;
    border-top: 2px solid #dde1ea;
    margin-top: 16px;
}

.order-total-amount {
    font-size: 20px;
    color: #1a4bc4;
}

.account-book-link {
    display: inline-block;
    margin-top: 12px;
    text-decoration: none;
}

.order-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.order-detail-title-inline {
    margin-bottom: 0;
}

.order-actions-cell {
    display: flex;
    gap: 8px;
    align-items: center;
}

.order-detail-summary {
    margin-top: 20px;
    border-top: 2px solid #f0f0f0;
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
 
.od-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    color: #333;
}
 
.od-summary-label {
    color: #666;
}
 
.od-summary-total {
    border-bottom: none;
    padding-top: 12px;
    margin-top: 4px;
    font-weight: 700;
    font-size: 15px;
}
 
.od-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.od-delivery {
    background: #f0fdf4;
    color: #166534;
    border: 1.5px solid #86efac;
}
.od-pickup {
    background: #e0f2fe;
    color: #075985;
    border: 1.5px solid #7dd3fc;
}
 
.od-free-label {
    color: #16a34a;
    font-weight: 600;
}
 
.od-discount-val {
    color: #e53935;
    font-weight: 600;
}

/* ── User Account Status Tabs ─────────────────────────────── */
.account-status-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.account-status-tab {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    background: #f5f5f5;
    border: 1.5px solid #e5e7eb;
    text-decoration: none;
    transition: all 0.15s;
}

.account-status-tab:hover {
    background: #e9eef8;
    color: #0049af;
    border-color: #0049af;
}

.account-status-tab.active {
    background: #0049af;
    color: #fff;
    border-color: #0049af;
}

.tab-count-small {
    display: inline-block;
    background: rgba(255,255,255,0.3);
    color: inherit;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    padding: 0 6px;
    margin-left: 4px;
}

.account-status-tab.active .tab-count-small {
    background: rgba(255,255,255,0.25);
}


/* ============================================================
   26. ACCOUNT INFO PAGE (account-info.php)
   ============================================================ */

/* -- Extracted from account-info.php inline style -- */
/* <div class="alert alert-error" style="margin-bottom: 20px;"> */
/* Use: <div class="alert alert-error alert-account-info"> */
.alert-account-info {
    margin-bottom: 20px;
}

/* -- Legacy account container (older account pages) -- */
.account-container {
    width: 50%;
    background-color: rgb(245, 242, 242);
    border: 1px solid var(--dark-color);
    border-radius: 10px;
    padding: 50px;
    display: flex;
    flex-direction: column;
}

.account-container input {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid black;
    margin-bottom: 20px;
}

.account-container button {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}

.account-container button:hover {
    background-color: var(--hover-button);
}

/* -- Old sidebar layout (legacy — kept for compatibility) -- */
.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 300px;
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.logo {
    padding: 18px 16px;
    border-bottom: 1px solid var(--dark-grey-bg);
}

.logo h2 {
    font-size: 32px;
    margin: 0;
    display: flex;
    align-items: center;
}

.logo p {
    font-size: 15px;
    margin: 4px 0 0;
    opacity: 0.7;
}

.logo img {
    width: 40px;
}

.nav-links {
    padding: 10px 0;
    flex: 1;
}

.nav-links p {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: var(--dark-grey-bg);
    padding: 12px 16px 4px;
    margin: 0;
}

.nav-links a {
    display: block;
    padding: 10px 16px;
    color: var(--light-grey-bg);
    text-decoration: none;
    font-size: 17px;
    border-left: 3px solid transparent;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.nav-links a:active {
    border-left: 3px solid white;
    background: rgba(255, 255, 255, 0.15);
}

.main-content {
    display: flex;
    flex-direction: column;
    width: 1800px;
    margin: auto;
    align-items: center;
}


/* ============================================================
   27. ADMIN LAYOUT (all admin pages)
   ============================================================ */

/* ── Base ─────────────────────────────────────────────────── */
.admin-body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f4f5f7;
}

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* ── Dashboard grid layouts ──────────────────────────────── */
.dashboard-body-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    margin-bottom: 24px;
    align-items: start;
}

.stats-and-lowstock {
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 20px;
    margin-bottom: 24px;
    align-items: start;
}

.orders-activity-grid {
    display: grid;
    grid-template-columns: 65% 35%;
    gap: 20px;
    margin-bottom: 24px;
    align-items: start;
}

/* ── Three-column dashboard row ──────────────────────────── */
.dash-three-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
    align-items: start;
}

.dashboard-body-main {
    min-width: 0;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.admin-sidebar {
    width: 240px;
    background: var(--primary-color);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.admin-logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.admin-logo h3 {
    margin: 0;
    font-size: 16px;
    color: white;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    flex: 1;
}

.admin-nav-link {
    padding: 10px 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: 0.2s;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.nav-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.4);
    padding: 14px 20px 4px 20px;
    margin: 0;
}

/* -- Pending count badge on sidebar links -- */
.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e53935;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 5px;
    margin-left: auto;
}

.admin-sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.admin-avatar {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.admin-username {
    font-size: 13px;
    font-weight: 600;
    color: white;
    margin: 0;
}

.admin-role-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.admin-logout {
    color: white;
    text-decoration: none;
    font-size: 13px;
    display: inline-block;
    margin-top: 6px;
}

/* ── Main content ─────────────────────────────────────────── */
.admin-main {
    margin-left: 240px;
    padding: 32px;
    width: calc(100% - 240px);
    box-sizing: border-box;
}

/* ── Topbar ───────────────────────────────────────────────── */
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-topbar h1 {
    margin: 0;
    font-size: 22px;
    color: #1a1a2e;
}

.topbar-sub {
    font-size: 13px;
    color: #888;
    margin: 2px 0 0 0;
}

.topbar-date {
    font-size: 13px;
    color: #888;
    background: white;
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

/* ── Stats cards ──────────────────────────────────────────── */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 0;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.stat-label {
    font-size: 13px;
    color: #888;
    margin: 0 0 8px 0;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* NOTE: spans last stat card full column if there are 3n-2 cards */
.admin-stats .stat-card:last-child:nth-child(3n - 2) {
    grid-column: span 1;
}

/* -- Stat alert (pulse animation on low stock) -- */
.stat-alert {
    animation: stat-pulse 2s ease-in-out infinite;
}

.stat-action-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.stat-action-link:hover {
    text-decoration: underline;
}

/* ── Revenue banner ───────────────────────────────────────── */
.revenue-banner {
    background: linear-gradient(135deg, #0049af, #0a223a);
    border-radius: 12px;
    padding: 24px 32px;
    margin-bottom: 24px;
    color: white;
}

.revenue-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 4px 0;
}

.revenue-amount {
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -1px;
}

.revenue-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 4px 0 0 0;
}

/* ── Revenue breakdown (3-card formula row) ───────────────── */
.revenue-breakdown {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border-radius: 14px;
    border: 1px solid #e8ecf2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 28px 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.rev-card {
    flex: 1;
    min-width: 160px;
    text-align: center;
    padding: 12px 16px;
    border-radius: 10px;
}

.rev-gross     { background: #f0fdf4; }
.rev-expenses  { background: #fff7ed; }
.rev-net       { background: #f0f9ff; }
.rev-positive  { background: #f0fdf4; }
.rev-negative  { background: #fff1f2; }

.rev-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #888;
    margin-bottom: 6px;
}

.rev-amount {
    font-size: 26px;
    font-weight: 700;
    color: #1a2a3a;
    margin-bottom: 4px;
}

.rev-gross    .rev-amount { color: #16a34a; }
.rev-expenses .rev-amount { color: #ea580c; }
.rev-positive .rev-amount { color: #0049af; }
.rev-negative .rev-amount { color: #dc2626; }

.rev-sub {
    font-size: 12px;
    color: #888;
}

.rev-divider {
    font-size: 28px;
    font-weight: 700;
    color: #ccc;
    padding: 0 8px;
    flex-shrink: 0;
    align-self: center;
}

/* ── Admin section card ───────────────────────────────────── */
.admin-section-card {
    background: white;
    border-radius: 14px;
    border: 1px solid #e8ecf2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 22px 24px;
}

/* ── Quick Add Expense form ───────────────────────────────── */
.expense-quick-form {
    margin-top: 14px;
}

.expense-form-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.expense-form-row select,
.expense-form-row input[type="text"],
.expense-form-row input[type="number"],
.expense-form-row input[type="date"] {
    padding: 9px 12px;
    border: 1.5px solid #dde1ea;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease;
    background: white;
}

.expense-form-row select:focus,
.expense-form-row input:focus {
    border-color: var(--primary-color);
}

.expense-form-row select              { flex: 0 0 150px; }
.expense-form-row input[type="text"]  { flex: 1; min-width: 180px; }
.expense-form-row input[type="number"]{ flex: 0 0 130px; }
.expense-form-row input[type="date"]  { flex: 0 0 150px; }

.admin-btn-primary {
    padding: 9px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.admin-btn-primary:hover {
    background: var(--hover-button);
}

/* ── Admin tables ─────────────────────────────────────────── */
.admin-table-section {
    background: white;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.admin-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.admin-table-header h2 {
    font-size: 16px;
    color: #1a1a2e;
    margin: 0;
}

.admin-see-all {
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th {
    text-align: left;
    padding: 10px 12px;
    color: #888;
    border-bottom: 1px solid #eee;
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
}

.no-data {
    text-align: center;
    color: #aaa;
    padding: 20px;
}

/* ── Audit Trail ──────────────────────────────────────────── */
.audit-trail-section {
    margin: 28px 0;
}

.audit-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.audit-col {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
}

.audit-col .audit-log-list {
    height: 285px;
    overflow-y: auto;
}

.audit-col .admin-table-header {
    margin-bottom: 12px;
}

.audit-log-list {
    overflow-y: hidden;
}

.audit-log-item {
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

.audit-log-item:last-child {
    border-bottom: none;
}

.audit-log-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.audit-action {
    font-size: 13px;
    font-weight: 600;
    color: #0049af;
}

.audit-time {
    font-size: 11px;
    color: #9ca3af;
}

.audit-log-desc {
    font-size: 12px;
    color: #555;
}

.audit-actor {
    font-weight: 600;
    color: #374151;
}

/* -- Audit modal -- */
.audit-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.audit-modal-overlay.open {
    display: flex;
}

.audit-modal-box {
    background: #fff;
    border-radius: 12px;
    width: 600px;
    max-width: 95vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.audit-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 14px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.audit-modal-header h2 {
    font-size: 16px;
    color: #1a1a2e;
    margin: 0;
}

.audit-modal-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
}

.audit-modal-close:hover { color: #374151; }

.audit-modal-body {
    overflow-y: auto;
    padding: 8px 24px 20px 24px;
    flex: 1;
}

.audit-modal-list .audit-log-item {
    border-bottom: 1px solid #f3f4f6;
    padding: 10px 0;
}

.audit-modal-list .audit-log-item:last-child {
    border-bottom: none;
}

/* ── Low Stock Alert (sidebar widget) ────────────────────── */
.low-stock-sidebar {
    background: #fff;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: 10px;
    overflow: hidden;
}

.low-stock-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 12px 20px;
    border-bottom: 1px solid #fef3c7;
}

.low-stock-sidebar-header h2 {
    font-size: 15px;
    font-weight: 600;
    color: #92400e;
    margin: 0;
}

.low-stock-sidebar-list {
    height: 220px;
    overflow-y: auto;
    padding: 8px 0;
}

.low-stock-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-bottom: 1px solid #fef3c7;
}

.low-stock-item:last-child {
    border-bottom: none;
}

.low-stock-name {
    flex: 1;
    font-size: 12px;
    color: #374151;
    line-height: 1.3;
}

.low-stock-qty {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.low-stock-qty.low {
    background: #fef3c7;
    color: #92400e;
}

.low-stock-qty.out {
    background: #fee2e2;
    color: #dc2626;
}

.low-stock-empty {
    padding: 16px 20px;
    font-size: 13px;
    color: #9ca3af;
}

/* ── Supplier Management ──────────────────────────────────── */

/* -- Action buttons in tables -- */
.action-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* -- Filter tabs (supplier / purchase order pages) -- */
.filter-tabs {
    display: flex;
    gap: 6px;
}

.filter-tab {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: #666;
    background: #f5f5f5;
    border: 1.5px solid transparent;
    transition: all 0.15s ease;
}

.filter-tab:hover {
    background: #e8ecf2;
    color: #333;
}

.filter-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* -- Stat chip (e.g. "3 products") -- */
.stat-chip {
    display: inline-block;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}

/* ── Appointments ─────────────────────────────────────────── */

/* -- Status tabs -- */
.appt-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.appt-tab {
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #666;
    background: #f5f5f5;
    border: 1.5px solid transparent;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.appt-tab:hover {
    background: #e8ecf2;
    color: #333;
}

.appt-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* -- Per-status tab accent colors -- */
.appt-tab-pending.active   { background: #f59e0b; border-color: #f59e0b; }
.appt-tab-confirmed.active { background: #0049af; border-color: #0049af; }
.appt-tab-ongoing.active   { background: #7c3aed; border-color: #7c3aed; }
.appt-tab-completed.active { background: #16a34a; border-color: #16a34a; }
.appt-tab-cancelled.active { background: #dc2626; border-color: #dc2626; }

.tab-count {
    background: rgba(0,0,0,0.12);
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 11px;
}

.appt-tab.active .tab-count {
    background: rgba(255,255,255,0.25);
}

/* -- Overdue row highlight -- */
.row-overdue {
    background: #fffbeb !important;
}

.row-overdue td:first-child {
    border-left: 3px solid #f59e0b;
}

.overdue-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #92400e;
    background: #fef3c7;
    padding: 1px 6px;
    border-radius: 4px;
    margin-top: 3px;
}

/* -- Status flow diagram inside modal -- */
.appt-status-flow {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.flow-step {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    background: #f0f0f0;
    color: #888;
    transition: all 0.2s ease;
    letter-spacing: 0.4px;
}

.flow-arrow {
    color: #ccc;
    font-size: 16px;
    flex-shrink: 0;
}

/* -- Appointment detail modal rows -- */
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
    font-size: 14px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #888;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    min-width: 120px;
}

.stype-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.stype-onsite {
    background: #e8f4fd;
    color: #0049af;
}
.stype-home {
    background: #fef3c7;
    color: #92400e;
}

/* ── Technicians Page ─────────────────────────────────────── */
.tech-scalability-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.note-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.tech-scalability-note strong {
    display: block;
    font-size: 14px;
    color: #1d4ed8;
    margin-bottom: 4px;
}

.tech-scalability-note p {
    font-size: 13px;
    color: #3b5998;
    line-height: 1.6;
    margin: 0;
}

.tech-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 8px;
}

.tech-card {
    background: white;
    border-radius: 14px;
    border: 1px solid #e8ecf2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: box-shadow 0.2s ease;
}

.tech-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.tech-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.tech-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a2a3a;
    margin-bottom: 3px;
}

.tech-specialization {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    font-style: italic;
}

.tech-contact {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 12px;
}

.tech-contact span {
    font-size: 13px;
    color: #555;
}

.tech-stats {
    display: flex;
    gap: 20px;
}

.tech-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.tech-stat-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.tech-stat-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-status-wrap {
    display: flex;
    align-items: center;
    gap: 7px;
}

.tech-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tech-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

/* ── Setup / Onboarding Pages ─────────────────────────────── */
.setup-header {
    display: flex;
    align-items: center;
    padding: 16px 40px;
    background: white;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.setup-page {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 20px 80px;
    background: var(--light-grey-bg, #f5f7fb);
}

.setup-container {
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.setup-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.setup-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 80px;
}

.step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    background: #dde1ea;
    color: #888;
    transition: background 0.3s ease, color 0.3s ease;
}

.setup-step.active .step-circle {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 73, 175, 0.35);
}

.setup-step.done .step-circle {
    background: #22c55e;
    color: white;
}

.setup-step span {
    font-size: 12px;
    color: #888;
    font-weight: 600;
    text-align: center;
}

.setup-step.active span { color: var(--primary-color); }
.setup-step.done span   { color: #22c55e; }

.setup-step-line {
    flex: 1;
    height: 2px;
    background: #dde1ea;
    margin: 0 8px;
    margin-bottom: 24px;
}

.setup-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e8ecf2;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    overflow: hidden;
}

.setup-card-header {
    padding: 28px 32px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #f0f5ff 0%, #fff 100%);
}

.setup-card-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a2a3a;
    margin-bottom: 6px;
}

.setup-card-header p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.setup-form {
    padding: 28px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.required {
    color: #e53935;
    font-size: 13px;
}

.setup-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.setup-btn-next {
    width: 100%;
    padding: 14px;
    font-size: 15px;
}

.setup-skip-link {
    text-align: center;
    font-size: 13px;
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.setup-skip-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}


/* ============================================================
   28. ORDER CONFIRMED PAGE (order-confirmed.php)
   ============================================================ */

/* -- Extracted from order-confirmed.php inline style -- */
/* <p style="color:#888; font-size:14px; margin-bottom:6px;"> */
.order-confirmed-sub {
    color: #888;
    font-size: 14px;
    margin-bottom: 6px;
}

.order-confirmed {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.order-confirmed-container {
    background: white;
    border-radius: 12px;
    padding: 50px 40px;
    text-align: center;
    max-width: 480px;
    width: 100%;
    border: 1px solid #dde1ea;
}

.check {
    width: 70px;
    height: 70px;
    background: #1a4bc4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
}

.order-confirmed-container h1 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 8px;
}

.order-no {
    color: #1a4bc4;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 24px;
}

.view-order-or-continue-shopping {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.view-order {
    padding: 10px 20px;
    background: #1a4bc4;
    color: white;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    font-weight: bold;
}

.continue-shopping {
    padding: 10px 20px;
    background: #f0f2f5;
    color: #555;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid #dde1ea;
}

/* ============================================================
   29. RESPONSIVE STYLES
   ============================================================
   Breakpoints used:
   - ≤ 1100px  Homepage grids
   - ≤ 1024px  Large tablet / small laptop
   - ≤  900px  Checkout two-col & Revenue breakdown
   - ≤  768px  Tablet
   - ≤  600px  Setup page
   - ≤  480px  Mobile
   - Admin-specific breakpoints follow user breakpoints.
   ============================================================ */


/* ──────────────────────────────────────────────────────────
   ≤ 1100px — Homepage grids
   ────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .department-grid,
    .top-sellers-grid,
    .why-us-grid,
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .browse-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dash-three-col {
        grid-template-columns: 1fr 1fr;
    }
}


/* ──────────────────────────────────────────────────────────
   ≤ 1024px — Listing page product grid
   ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ──────────────────────────────────────────────────────────
   ≤ 1024px — Large tablet / small laptop (user pages)
   ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {

    /* --- Header --- */
    .home-header {
        gap: 20px;
        padding: 10px 16px;
    }

    .search-bar {
        width: 45%;
    }

    .header-icons {
        margin: auto 0 auto auto;
        gap: 14px;
    }

    /* --- Navigation --- */
    .navigation ul {
        gap: 20px;
        flex-wrap: wrap;
    }

    /* --- Index hero --- */
    .content {
        max-height: none;
        flex-direction: column;
    }

    .home-picture,
    .content-info {
        flex: none;
        width: 100%;
    }

    .content-info p {
        font-size: 18px;
    }

    /* --- Legacy top sellers --- */
    .top-products {
        max-width: 180px;
    }

    /* --- Legacy product listings --- */
    .printers-row,
    .accessories-row,
    .peripherals-row {
        gap: 2rem;
    }

    /* --- Product detail --- */
    .details-container {
        gap: 30px;
        padding: 30px;
    }

    .details-container img {
        width: 100%;
        max-width: 400px;
        height: auto;
    }

    .shop-actions .buy,
    .shop-actions .add-to-cart {
        padding: 15px 40px;
    }

    /* --- Cart --- */
    .cart-layout {
        flex-direction: column;
    }

    .order-summary {
        width: 100%;
        box-sizing: border-box;
    }

    /* --- Checkout --- */
    .checkout-sec {
        flex-direction: column;
        align-items: stretch;
    }

    .checkout-container,
    .address-container {
        width: 100%;
        box-sizing: border-box;
        margin: 0 0 16px 0;
    }

    .payment-container {
        width: 100%;
        box-sizing: border-box;
    }

    /* --- Services booking form --- */
    .calendar {
        width: 100%;
    }

    .bd-forms {
        flex-direction: column;
    }

    .details-section,
    .calendar-section,
    .time-section {
        width: 100%;
    }

    .time-section {
        padding-top: 0;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .time-btn {
        width: auto;
        flex: 1 1 calc(33% - 8px);
    }

    /* --- Booking summary --- */
    .summary-container {
        width: 60%;
    }

    /* --- Account page --- */
    .account-layout {
        flex-direction: column;
    }

    .account-sidebar {
        width: 100%;
        position: static;
    }

    .account-nav {
        display: flex;
        flex-wrap: wrap;
    }

    .account-nav-link {
        flex: 1 1 auto;
        text-align: center;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .account-nav-link.active {
        border-left: none;
        border-bottom-color: #1a4bc4;
    }

}


/* ──────────────────────────────────────────────────────────
   ≤ 1024px — Admin responsive
   ────────────────────────────────────────────────────────── */



/* ──────────────────────────────────────────────────────────
   ≤ 900px — Checkout two-column + Revenue breakdown
   ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .co-summary {
        position: static;
    }

    .revenue-breakdown {
        flex-direction: column;
        align-items: stretch;
    }

    .rev-divider {
        text-align: center;
        padding: 4px 0;
    }

    .expense-form-row {
        flex-direction: column;
    }

    .expense-form-row select,
    .expense-form-row input,
    .expense-form-row button {
        flex: none;
        width: 100%;
    }
}


/* ──────────────────────────────────────────────────────────
   ≤ 768px — Tablet
   ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

    /* --- Admin three-col grid --- */
    .dash-three-col {
        grid-template-columns: 1fr;
    }

    /* --- Header --- */
    .home-header {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: space-between;
    }

    .home-logo h4 {
        display: none;
    }

    .search-bar {
        width: 100%;
        order: 3;
    }

    .header-icons {
        margin: 0;
    }

    /* --- Navigation --- */
    .navigation ul {
        gap: 10px;
        padding: 8px 10px;
        font-size: 13px;
    }

    /* --- Footer --- */
    .footer-container {
        grid-template-columns: 1fr 1fr;
        padding: 30px 20px;
        gap: 24px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    /* --- Nav dropdown --- */
    .nav-dropdown-menu {
        min-width: 150px;
    }

    /* --- Index hero --- */
    .content-info p {
        font-size: 15px;
    }

    .categories {
        gap: 16px;
        margin-top: 24px;
    }

    .product {
        max-width: 140px;
        padding: 12px;
    }

    /* --- Homepage sections --- */
    .hero-content {
        flex-direction: column;
    }

    .hero-text {
        padding: 40px 24px 30px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .departments,
    .browse-types,
    .top-sellers-v2,
    .why-us,
    .reviews {
        padding: 40px 20px;
    }

    .department-grid,
    .top-sellers-grid,
    .why-us-grid,
    .reviews-grid,
    .browse-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* --- Ratings --- */
    .ratings {
        height: auto;
        padding-bottom: 30px;
    }

    .rate-box {
        max-width: 90%;
        height: auto;
    }

    /* --- Legacy listing pages --- */
    .printers-container,
    .accessories-container,
    .peripherals-container {
        max-width: 100%;
        width: 90%;
    }

    .prntrs-img img,
    .accessories-img img,
    .peripherals-img img {
        width: 100%;
        height: auto;
        max-height: 280px;
    }

    /* --- Product detail --- */
    .details-container {
        flex-direction: column;
        align-items: center;
        width: 95%;
        padding: 20px;
        gap: 20px;
    }

    .details-container img {
        width: 100%;
        height: auto;
        max-height: 300px;
    }

    .shop-actions {
        flex-direction: column;
        gap: 12px;
    }

    .shop-actions .buy,
    .shop-actions .add-to-cart {
        padding: 14px;
        width: 100%;
        text-align: center;
    }

    .pd-container {
        width: 95%;
        padding: 0 16px 30px;
    }

    /* --- Listing page sidebar (becomes horizontal row) --- */
    .listing-page {
        flex-direction: column;
        padding: 20px 16px 40px;
        gap: 20px;
    }

    .listing-sidebar {
        flex: none;
        width: 100%;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .sidebar-section {
        flex: 1 1 200px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .listing-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    /* --- Cart --- */
    .cart-card {
        flex-wrap: wrap;
        gap: 12px;
    }

    .cart-header {
        display: none;
    }

    .cart-thumb {
        width: 70px;
    }

    /* --- Checkout --- */
    .checkout-table th,
    .checkout-table td {
        font-size: 13px;
        padding: 8px 6px;
    }

    .checkout-thumb {
        width: 60px;
    }

    .cod-container {
        flex-direction: column;
        gap: 16px;
    }

    .place-order button {
        width: 100%;
    }

    /* --- Wishlist --- */
    .wishlist-table th,
    .wishlist-table td {
        font-size: 13px;
        padding: 8px;
    }

    .wishlist-thumb {
        width: 50px;
        height: 50px;
    }

    /* --- Login / Register modals --- */
    .log-in,
    .register {
        margin: 16px;
        padding: 30px 20px;
        align-items: flex-start;
        padding-top: 40px;
    }

    .login-form,
    .reg-form {
        width: 90%;
        box-sizing: border-box;
    }

    /* --- Services --- */
    .services-container {
        gap: 24px;
        padding: 20px 16px 40px;
    }

    .booking-container {
        width: 90%;
    }

    .service-img img {
        width: 100%;
        height: auto;
        max-height: 200px;
    }

    /* --- Booking form --- */
    .bd-container {
        width: 95%;
        padding: 16px;
    }

    .calendar {
        width: 100%;
        height: auto;
    }

    #days .day {
        padding: 8px 4px;
        font-size: 12px;
    }

    .book-btn {
        padding: 12px 40px;
        width: 100%;
    }

    /* --- Booking summary --- */
    .summary-container {
        width: 85%;
    }

    /* --- Account page --- */
    .account-page {
        padding: 16px;
    }

    .account-form-row {
        flex-direction: column;
    }

    .account-table th,
    .account-table td {
        font-size: 12px;
        padding: 8px;
    }

    /* --- Order confirmed --- */
    .order-confirmed-container {
        padding: 30px 20px;
    }
}


/* ──────────────────────────────────────────────────────────
   ≤ 600px — Setup page
   ────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .setup-card-header,
    .setup-form {
        padding: 20px;
    }

    .setup-card-header h2 {
        font-size: 18px;
    }

    .setup-header {
        padding: 14px 20px;
    }
}


/* ──────────────────────────────────────────────────────────
   ≤ 480px — Mobile
   ────────────────────────────────────────────────────────── */
@media (max-width: 480px) {

    /* --- Header --- */
    .home-header {
        padding: 8px 12px;
        gap: 8px;
    }

    .home-logo img {
        height: 30px;
    }

    .header-icons a img,
    .user-dropdown img {
        width: 22px;
    }

    .header-icons {
        gap: 10px;
    }

    /* --- Navigation --- */
    .navigation ul {
        gap: 6px;
        font-size: 11px;
        padding: 6px 8px;
    }

    /* --- Index --- */
    .content-info {
        padding: 20px 14px;
    }

    .content-info p {
        font-size: 13px;
    }

    .product {
        max-width: 110px;
        padding: 10px;
    }

    .product h3 {
        font-size: 11px;
    }

    .top-products {
        max-width: 150px;
    }

    .ratings {
        height: auto;
    }

    /* --- Page titles --- */
    .page-title,
    .cart-page h1,
    .printers h1,
    .accessories h1,
    .peripherals h1 {
        font-size: 22px;
        padding: 24px 16px;
    }

    /* --- Legacy listing pages --- */
    .printers-row,
    .accessories-row,
    .peripherals-row {
        gap: 1.2rem;
        padding: 0 12px 2rem;
    }

    .prntrs-img img,
    .accessories-img img,
    .peripherals-img img {
        max-height: 220px;
    }

    /* --- Cart --- */
    .cart-layout {
        width: 95%;
    }

    .cart-card {
        padding: 12px;
    }

    .cart-thumb {
        width: 55px;
    }

    .summary-row {
        font-size: 15px;
    }

    .checkout-btn {
        font-size: 15px;
        padding: 12px;
    }

    /* --- Checkout --- */
    .checkout-table th {
        font-size: 12px;
    }

    .checkout-cell {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .checkout-thumb {
        width: 50px;
    }

    /* New checkout */
    .checkout-wrap {
        padding: 20px 16px 60px;
    }

    .co-promo-row {
        flex-direction: column;
    }

    .co-promo-btn,
    .co-promo-clear {
        width: 100%;
    }

    /* --- Wishlist --- */
    .wishlist-page {
        padding: 16px;
    }

    .wishlist-cell {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 12px;
    }

    /* --- Login / Register --- */
    #log-username,
    #log-pass,
    #log-in-btn,
    #reg-username,
    #reg-email,
    #reg-pass,
    #reg-conpass,
    #register-btn {
        width: 100%;
        box-sizing: border-box;
    }

    .login-form,
    .reg-form {
        width: 95%;
        padding: 20px;
    }

    .login-form h1,
    .reg-form h1 {
        font-size: 20px;
    }

    /* --- Services --- */
    .booking-container {
        width: 95%;
    }

    .book-now button {
        padding: 1rem 5rem;
        font-size: 16px;
    }

    /* --- Booking form --- */
    .bd-sec h1 {
        font-size: 18px;
        padding: 16px 0;
    }

    .bd-container {
        padding: 10px;
        border-radius: 0;
        box-shadow: none;
    }

    .bd-forms {
        gap: 12px;
    }

    .details-section input {
        font-size: 14px;
        padding: 8px;
        margin-bottom: 14px;
    }

    .calendar {
        padding: 8px;
        align-self: center;
    }

    .calendar-header {
        margin-bottom: 6px;
    }

    .calendar-header button {
        padding: 3px 8px;
        font-size: 13px;
    }

    #monthYear {
        font-size: 13px;
    }

    .days-header {
        font-size: 10px;
        margin: 6px 1px;
        gap: 1px;
    }

    #days {
        gap: 2px;
    }

    #days .day {
        padding: 7px 1px;
        font-size: 10px;
        border-radius: 3px;
    }

    /* Time slots: 2-per-row on small phones */
    .time-section {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
    }

    .time-btn {
        flex: 1 1 calc(50% - 6px);
        padding: 9px 4px;
        font-size: 12px;
        margin-bottom: 0;
    }

    #selected-time-label {
        flex-basis: 100%;
    }

    /* --- Booking summary --- */
    .summary-container {
        width: 92%;
    }

    /* --- Homepage grids --- */
    .department-grid,
    .top-sellers-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        width: 100%;
        text-align: center;
    }

    /* --- Listing page product grid --- */
    .product-grid {
        grid-template-columns: 1fr;
    }

    /* --- Footer --- */
    .footer-container {
        grid-template-columns: 1fr;
    }

    /* --- Dropdown menu --- */
    .dropdown-menu {
        width: 130px;
    }

    .dropdown-menu a,
    .dropdown-menu p {
        font-size: 12px;
        padding: 6px 12px;
    }

    /* --- Order confirmed --- */
    .check {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }

    .order-confirmed-container h1 {
        font-size: 18px;
    }

    .view-order-or-continue-shopping {
        flex-direction: column;
    }

    .view-order,
    .continue-shopping {
        text-align: center;
    }

    /* --- Account --- */
    .account-user-card {
        padding: 14px 12px;
    }

    .account-card {
        padding: 16px;
    }

    .account-card-title {
        font-size: 15px;
    }

    .account-nav-link {
        padding: 8px 10px;
        font-size: 12px;
    }
}






/* 30. REVIEW FEATURES  */
/* ============================================================
   REVIEW FEATURE — append to the bottom of style.css
   ============================================================ */

/* ---- Orders table: Review button & badge ---- */
.btn-review-order {
    display: inline-block;
    padding: 4px 10px;
    background: #fff8e1;
    color: #b7791f;
    border: 1.5px solid #f6c340;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s;
    white-space: nowrap;
}
.btn-review-order:hover {
    background: #fef3c7;
    transform: translateY(-1px);
}

.review-done-badge {
    display: inline-block;
    padding: 3px 9px;
    background: #e6ffed;
    color: #276749;
    border: 1.5px solid #9ae6b4;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

/* ---- Review Modal Overlay ---- */
.review-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.review-modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px 28px;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.review-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 18px;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 50%;
    transition: background 0.15s;
}
.review-modal-close:hover { background: #f0f0f0; color: #333; }

.review-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #0049af;
    margin-bottom: 4px;
}

.review-modal-sub {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
}

/* Product tab selector (for multi-item orders) */
.review-product-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.review-tab-btn {
    padding: 5px 12px;
    background: #f0f0f0;
    border: 1.5px solid #ddd;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    color: #555;
    transition: all 0.15s;
}
.review-tab-btn.active,
.review-tab-btn:hover {
    background: #0049af;
    border-color: #0049af;
    color: #fff;
}

/* Product preview inside modal */
.review-product-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 18px;
}
.review-product-img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #eee;
}
.review-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #212F3D;
    line-height: 1.3;
}

/* Star rating input */
.review-stars-row {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
}
.review-star {
    font-size: 36px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.15s, transform 0.12s;
    line-height: 1;
    user-select: none;
}
.review-star:hover,
.review-star.active {
    color: #f6ad0c;
}
.review-star:hover {
    transform: scale(1.2);
}
.review-star-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 14px;
    min-height: 18px;
}

/* Review textarea */
.review-textarea {
    width: 100%;
    min-height: 90px;
    padding: 10px 12px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 16px;
    box-sizing: border-box;
    transition: border-color 0.18s;
}
.review-textarea:focus {
    outline: none;
    border-color: #0049af;
}

.review-submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
}

/* ---- Product Details Page: Reviews Tab ---- */
.review-summary-bar {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.review-summary-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}
.review-big-score {
    font-size: 48px;
    font-weight: 800;
    color: #212F3D;
    line-height: 1;
}
.review-summary-stars {
    display: flex;
    gap: 2px;
    margin: 4px 0;
}
.review-summary-count {
    font-size: 12px;
    color: #888;
}

.review-breakdown {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 180px;
}
.review-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
.review-bar-label {
    width: 28px;
    text-align: right;
    color: #555;
    white-space: nowrap;
}
.review-bar-track {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
}
.review-bar-fill {
    height: 100%;
    background: #f6ad0c;
    border-radius: 99px;
    transition: width 0.4s ease;
}
.review-bar-count {
    width: 20px;
    color: #888;
    font-size: 12px;
}

/* Individual review items */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 16px 18px;
}

.review-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.review-avatar {
    width: 38px;
    height: 38px;
    background: #0049af;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.review-item-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.review-item-author {
    font-size: 14px;
    font-weight: 700;
    color: #212F3D;
}
.review-item-date {
    font-size: 12px;
    color: #aaa;
}

.review-item-stars {
    margin-left: auto;
}

.rs-star {
    font-size: 16px;
    color: #ddd;
}
.rs-star.active {
    color: #f6ad0c;
}

.review-item-comment {
    font-size: 14px;
    color: #444;
    line-height: 1.55;
}

/* SITE REVIEW  */
/* ============================================================
   REVIEW FEATURE — append to the bottom of style.css
   ============================================================ */

/* ---- Orders table: Review button & badge ---- */
.btn-review-order {
    display: inline-block;
    padding: 4px 10px;
    background: #fff8e1;
    color: #b7791f;
    border: 1.5px solid #f6c340;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s;
    white-space: nowrap;
}
.btn-review-order:hover {
    background: #fef3c7;
    transform: translateY(-1px);
}

.review-done-badge {
    display: inline-block;
    padding: 3px 9px;
    background: #e6ffed;
    color: #276749;
    border: 1.5px solid #9ae6b4;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

/* ---- Review Modal Overlay ---- */
.review-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.review-modal-box {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px 28px;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.review-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 18px;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 50%;
    transition: background 0.15s;
}
.review-modal-close:hover { background: #f0f0f0; color: #333; }

.review-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #0049af;
    margin-bottom: 4px;
}

.review-modal-sub {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
}

/* Product tab selector (for multi-item orders) */
.review-product-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.review-tab-btn {
    padding: 5px 12px;
    background: #f0f0f0;
    border: 1.5px solid #ddd;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    color: #555;
    transition: all 0.15s;
}
.review-tab-btn.active,
.review-tab-btn:hover {
    background: #0049af;
    border-color: #0049af;
    color: #fff;
}

/* Product preview inside modal */
.review-product-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 18px;
}
.review-product-img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #eee;
}
.review-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #212F3D;
    line-height: 1.3;
}

/* Star rating input */
.review-stars-row {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
}
.review-star {
    font-size: 36px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.15s, transform 0.12s;
    line-height: 1;
    user-select: none;
}
.review-star:hover,
.review-star.active {
    color: #f6ad0c;
}
.review-star:hover {
    transform: scale(1.2);
}
.review-star-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 14px;
    min-height: 18px;
}

/* Review textarea */
.review-textarea {
    width: 100%;
    min-height: 90px;
    padding: 10px 12px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 16px;
    box-sizing: border-box;
    transition: border-color 0.18s;
}
.review-textarea:focus {
    outline: none;
    border-color: #0049af;
}

.review-submit-btn {
    width: 100%;
    padding: 12px;
    font-size: 15px;
}

/* ---- Product Details Page: Reviews Tab ---- */
.review-summary-bar {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.review-summary-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}
.review-big-score {
    font-size: 48px;
    font-weight: 800;
    color: #212F3D;
    line-height: 1;
}
.review-summary-stars {
    display: flex;
    gap: 2px;
    margin: 4px 0;
}
.review-summary-count {
    font-size: 12px;
    color: #888;
}

.review-breakdown {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 180px;
}
.review-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}
.review-bar-label {
    width: 28px;
    text-align: right;
    color: #555;
    white-space: nowrap;
}
.review-bar-track {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
}
.review-bar-fill {
    height: 100%;
    background: #f6ad0c;
    border-radius: 99px;
    transition: width 0.4s ease;
}
.review-bar-count {
    width: 20px;
    color: #888;
    font-size: 12px;
}

/* Individual review items */
.review-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 16px 18px;
}

.review-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.review-avatar {
    width: 38px;
    height: 38px;
    background: #0049af;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.review-item-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.review-item-author {
    font-size: 14px;
    font-weight: 700;
    color: #212F3D;
}
.review-item-date {
    font-size: 12px;
    color: #aaa;
}

.review-item-stars {
    margin-left: auto;
}

.rs-star {
    font-size: 16px;
    color: #ddd;
}
.rs-star.active {
    color: #f6ad0c;
}

.review-item-comment {
    font-size: 14px;
    color: #444;
    line-height: 1.55;
}

/* ============================================================
   SITE REVIEW — Rate Us tab (my-account.php)
   ============================================================ */

.site-review-existing {
    background: #f8f9fa;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 24px;
}
.site-review-existing-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888;
    margin-bottom: 6px;
}
.site-review-existing-stars {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.site-review-existing-stars .srs-star {
    font-size: 22px;
}
.site-review-existing-date {
    font-size: 12px;
    color: #aaa;
    margin-left: 6px;
}
.site-review-existing-comment {
    font-size: 14px;
    color: #555;
    font-style: italic;
    line-height: 1.5;
}

/* Star input row in Rate Us form */
.srs-row {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}
.srs-star-input {
    font-size: 38px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.15s, transform 0.12s;
    user-select: none;
    line-height: 1;
}
.srs-star-input:hover,
.srs-star-input.active {
    color: #f6ad0c;
}
.srs-star-input:hover { transform: scale(1.18); }

/* Generic srs-star (display only, used in existing review + homepage) */
.srs-star {
    font-size: 20px;
    color: #ddd;
}
.srs-star.active { color: #f6ad0c; }

.srs-label {
    font-size: 13px;
    color: #888;
    min-height: 18px;
    margin-bottom: 0;
}

/* ============================================================
   SITE REVIEW — Homepage section (index.php)
   ============================================================ */

/* Overall rating summary bar */
.site-rating-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border-radius: 14px;
    padding: 20px 28px;
    max-width: 460px;
    margin: 0 auto 32px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.07);
    flex-wrap: wrap;
}
.site-rating-score {
    font-size: 56px;
    font-weight: 800;
    color: #212F3D;
    line-height: 1;
}
.site-rating-right {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.site-rating-stars {
    display: flex;
    gap: 3px;
}
.site-rating-count {
    font-size: 13px;
    color: #888;
    margin: 0;
}
.site-rate-cta {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 16px;
    background: #0049af;
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.18s;
    width: fit-content;
}
.site-rate-cta:hover { background: #0a223a; }

.site-rating-empty {
    text-align: center;
    margin-bottom: 28px;
    color: #aaa;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Review card header (avatar + name + date) */
.review-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.review-card-avatar {
    width: 36px;
    height: 36px;
    background: #0049af;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}
.review-card-date {
    font-size: 11px;
    color: #bbb;
    margin: 0;
}

/* ============================================================
   31. ORDER TRACKING TIMELINE
   ============================================================ */

/* Track Order toggle button */
.track-order-toggle-wrap {
    margin: 12px 0 4px;
}
.track-order-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f5ff;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}
.track-order-btn:hover,
.track-order-btn.active {
    background: var(--primary-color);
    color: #fff;
}

/* Track Order link in orders list table */
.track-order-link {
    display: inline-block;
    padding: 4px 10px;
    background: #e8f0fe;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.track-order-link:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Timeline container */
.order-timeline-wrap {
    margin: 18px 0 10px;
    padding: 18px 20px;
    background: #f8faff;
    border: 1px solid #d6e4ff;
    border-radius: 12px;
}
.order-timeline-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 20px;
    letter-spacing: 0.2px;
}
.order-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Each step row */
.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    opacity: 0.45;
}
.timeline-step.done,
.timeline-step.current {
    opacity: 1;
}

/* Left column: dot + line */
.timeline-icon-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 36px;
}
.timeline-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #dde8ff;
    border: 2px solid #b3c9f5;
    color: #b3c9f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}
.timeline-step.done .timeline-dot {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}
.timeline-step.current .timeline-dot {
    background: #fff;
    border: 3px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 0 4px #d0e2ff;
}

/* Connector line */
.timeline-line {
    width: 2px;
    height: 36px;
    background: #d0dff5;
    margin: 4px 0;
    border-radius: 2px;
}
.timeline-line.done {
    background: var(--primary-color);
}

/* Right column: text */
.timeline-content {
    padding: 4px 0 24px;
}
.timeline-status-label {
    font-size: 14px;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 2px;
}
.timeline-step.done .timeline-status-label {
    color: var(--primary-color);
}
.timeline-note {
    font-size: 12.5px;
    color: #555;
    margin-bottom: 2px;
}
.timeline-pending-note {
    color: #aaa;
    font-style: italic;
}
.timeline-date {
    font-size: 11.5px;
    color: #888;
}

/* Order Received Button */

/* ── My Orders table — enhanced columns ────────────────── */
.orders-table td { vertical-align: middle; }

/* Order reference number */
.order-ref-num {
    display: block;
    font-weight: 700;
    font-size: 13.5px;
    color: #1a1a2e;
    letter-spacing: 0.3px;
}

/* Payment method tag below order # */
.order-payment-method {
    display: inline-block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    background: #f0f0f0;
    border-radius: 4px;
    padding: 2px 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Item preview cell */
.order-item-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 170px;
}
.order-preview-thumb {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
    background: #fafafa;
    flex-shrink: 0;
}
.order-preview-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.order-preview-name {
    font-size: 13px;
    font-weight: 500;
    color: #222;
    line-height: 1.3;
}
.order-preview-more {
    font-size: 11.5px;
    color: #888;
}

/* Total cell */
.order-total-cell {
    font-weight: 700;
    font-size: 13.5px;
    color: #1a1a2e;
    white-space: nowrap;
}

/* Date cell */
.order-date-cell {
    font-size: 12.5px;
    color: #666;
    white-space: nowrap;
}

/* DELIVERED sub-status text */
.order-received-sub {
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
}
.order-received-sub.confirmed {
    color: #2e7d32;
}
.order-received-sub.pending {
    color: #e65100;
}

/* Mobile — stack item preview */
@media (max-width: 768px) {
    .order-item-preview { min-width: unset; }
    .order-preview-thumb { width: 36px; height: 36px; }
    .order-preview-name { font-size: 12px; }
    .order-ref-num { font-size: 12.5px; }
    .order-total-cell, .order-date-cell { font-size: 12px; }
}

.btn-order-received {
    display: inline-block;
    padding: 4px 10px;
    background: #fff8e1;
    color: #f57f17;
    border: 1px solid #f9a825;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.btn-order-received:hover {
    background: #f9a825;
    color: #fff;
}

/* Mobile */
@media (max-width: 480px) {
    .order-timeline-wrap {
        padding: 14px 12px;
    }
    .timeline-dot {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
    .timeline-line {
        height: 28px;
    }
}