/**
 * Customer Portal Styles
 * Matching main site color palette: #a4c639 (primary green)
 */

/* ============================================
   CSS Variables - Main Site Colors
   ============================================ */

:root {
    --primary-color: #a4c639;
    --primary-dark: #8ba930;
    --primary-light: #b8d656;
    --text-dark: #1e1e1e;
    --text-medium: #666666;
    --text-light: #999999;
    --background-light: #f7f7f7;
    --white: #ffffff;
    --border-color: #e0e0e0;
}

/* ============================================
   Global Styles
   ============================================ */

body {
    background: linear-gradient(135deg, #a4c63959 0%, #8ba93038 100%);
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    padding-top: 130px; /* Space for fixed header */
    position: relative;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

@media (min-width: 769px) and (max-width: 1199px) {
    .navbar-menu .nav-link i, span {
        font-size: 0.8rem !important;
    }

}

@media (max-width: 768px) {
    h1 {
    font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;}

    p {
        font-size: 0.8rem;
    }
}
/* ============================================
   Top Bar (Customer Info)
   ============================================ */

.customer-topbar {
    background: var(--text-dark);
    color: var(--white);
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    font-size: 14px;
    height: 45px;
}

.customer-topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-right {
    justify-content: flex-end;
}

.topbar-link {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.topbar-link:hover {
    color: var(--primary-color);
}

/* ============================================
   Navigation Bar
   ============================================ */

.customer-navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 45px;
    left: 0;
    right: 0;
    z-index: 999;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 5px 10px;
}

.navbar-toggle:hover {
    color: var(--primary-color);
}

.customer-brand {
    text-decoration: none;
    color: var(--text-dark);
}

.customer-brand h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.customer-brand span {
    font-size: 12px;
    color: var(--text-light);
    display: block;
}

.navbar-menu {
    display: flex;
    gap: 5px;
    align-items: center;
}

@media (min-width: 1200px) {
    .navbar-menu .nav-link {
        padding: 10px 20px;
    }
}

.navbar-menu .nav-link:hover {
    background: rgba(164, 198, 57, 0.1);
    color: var(--primary-color);
}

.navbar-menu .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.navbar-menu .nav-link i {
    font-size: 16px;
}

.navbar-menu .nav-link .badge {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 10px;
    padding: 2px 6px;
}

/* Mobile Menu Elements - Hidden on Desktop */
.mobile-menu-header,
.mobile-menu-user,
.mobile-menu-logout {
    display: none;
}

.customer-brand {
    text-decoration: none;
    color: var(--text-dark);
}

.customer-brand h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.customer-brand span {
    font-size: 12px;
    color: var(--text-light);
    display: block;
}

.navbar-menu {
    display: flex;
    gap: 5px;
    align-items: center;
}

.navbar-menu .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-medium);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    font-size: 12px;
}

.navbar-menu .nav-link:hover {
    background: rgba(164, 198, 57, 0.1);
    color: var(--primary-color);
}

.navbar-menu .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.navbar-menu .nav-link i {
    font-size: 16px;
}

.navbar-menu .nav-link .badge {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 10px;
    padding: 2px 6px;
}

.badge-warning {
    background: #fdcb6e;
    color: #e17055;
}

.badge-danger {
    background: #ff7675;
    color: #d63031;
}

/* ============================================
   Main Content Area
   ============================================ */

.customer-content.profile-page {
    min-height: calc(100vh - 130px - 250px); /* viewport - header - footer */
    padding: 40px 0;
    max-width: 80vw;
    margin-left: 10vw;
}

/* ============================================
   Statistics Cards
   ============================================ */

.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 4px solid var(--primary-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 12px rgba(164, 198, 57, 0.3);
}

.stat-icon.orders {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.stat-icon.pending {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.3);
}

.stat-icon.invoices {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

.stat-icon.amount {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 4px 12px rgba(67, 233, 123, 0.3);
}

.stat-info {
    flex: 1;
}

.stat-info h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 5px 0;
}

.stat-info p {
    font-size: 14px;
    color: var(--text-medium);
    margin: 0;
    font-weight: 500;
}

/* ============================================
   Dashboard Sections
   ============================================ */

.dashboard-section {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h3 i {
    color: var(--primary-color);
    font-size: 24px;
}

/* ============================================
   Tables
   ============================================ */

.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: #f8f9fa;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px;
    border: none;
    white-space: nowrap;
}

.table thead th:first-child {
    border-radius: 8px 0 0 0;
}

.table thead th:last-child {
    border-radius: 0 8px 0 0;
}

.table tbody td {
    padding: 18px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-medium);
    font-size: 14px;
    vertical-align: middle;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr {
    transition: background 0.2s ease;
}

.table tbody tr:hover {
    background: rgba(164, 198, 57, 0.05);
}

.table tbody td strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* ============================================
   Badges
   ============================================ */

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Bootstrap-style badges */
.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-info {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-danger {
    background: #f8d7da;
    color: #721c24;
}

.badge-dark {
    background: #d6d8db;
    color: #1b1e21;
}

.badge-secondary {
    background: #e2e3e5;
    color: #383d41;
}

/* Application-specific status badges */
.badge-pending {
    background: #ffeaa7;
    color: #fdcb6e;
}

.badge-processing {
    background: #74b9ff;
    color: #0984e3;
}

.badge-completed {
    background: #55efc4;
    color: #00b894;
}

.badge-cancelled {
    background: #fab1a0;
    color: #e17055;
}

.badge-unpaid {
    background: #ff7675;
    color: #d63031;
}

.badge-partially-paid {
    background: #fdcb6e;
    color: #e17055;
}

.badge-paid {
    background: #55efc4;
    color: #00b894;
}

.badge-overdue {
    background: #ff7675;
    color: #d63031;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(164, 198, 57, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(164, 198, 57, 0.4);
    color: var(--white);
}

.btn-outline-primary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    color: var(--primary-dark);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 16px;
}

/* ============================================
   Empty State
   ============================================ */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    background: white;
    border-radius: 8px;
    border: 2px dashed #e0e0e0;
}

.empty-state i {
    font-size: 64px;
    color: #e0e0e0;
    margin-bottom: 20px;
    display: block;
    opacity: 0.3;
}

.empty-state h3 {
    margin: 0 0 10px 0;
    color: #666;
}

.empty-state p {
    font-size: 16px;
    color: var(--text-medium);
    margin: 0 0 20px 0;
}

/* ============================================
   Forms
   ============================================ */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(164, 198, 57, 0.1);
}

select.form-control {
    cursor: pointer;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.custom-checkbox label {
    margin: 0 !important;
    font-weight: normal !important;
    cursor: pointer;
}

/* ============================================
   Order Summary
   ============================================ */

.order-summary {
    padding: 20px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.total {
    padding-top: 15px;
    border-top: 2px solid var(--primary-color);
    font-size: 18px;
    color: var(--text-dark);
}

.summary-row.discount span:last-child {
    color: #28a745;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ============================================
   Payment Instructions
   ============================================ */

.payment-instructions {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 12px 15px;
    margin-top: 10px;
}

.bank-details {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.bank-details p {
    margin-bottom: 12px;
    font-size: 14px;
}

.iban-code {
    background: #f0f0f0;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    letter-spacing: 1px;
    display: inline-block;
}

.text-success {
    color: #28a745 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-info {
    color: #17a2b8 !important;
}

.text-muted {
    color: var(--text-light) !important;
}

/* ============================================
   Alerts
   ============================================ */

.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.alert i {
    font-size: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-success i {
    color: #28a745;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
}

.alert-warning i {
    color: #ffc107;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-danger i {
    color: #dc3545;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
}

.alert-info i {
    color: #17a2b8;
}

.alert .close {
    background: none;
    border: none;
    font-size: 24px;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    margin-left: auto;
    padding: 0;
    line-height: 1;
}

.alert .close:hover {
    opacity: 1;
}

/* ============================================
   Page Titles
   ============================================ */

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title i {
    color: var(--primary-color);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 992px) {
    .navbar-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat-card {
        margin-bottom: 15px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 110px;
    }
    
    /* Mobile Topbar */
    .customer-topbar {
        padding: 8px 0;
    }
    
    .topbar-left {
        font-size: 13px;
    }
    
    .topbar-right {
        display: none; /* Hide in mobile - show in menu */
    }
    
    /* Mobile Navbar */
    .customer-navbar {
        top: 35px;
        padding-top: 10px;
    }
    
    .navbar-toggle {
        display: block;
    }
    
    /* Show Mobile Menu Elements */
    .mobile-menu-header,
    .mobile-menu-user,
    .mobile-menu-logout {
        display: block;
    }
    
    .navbar-menu {
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 1002;
    }
    
    .navbar-menu.active {
        left: 0;
        top: 30px
    }
    
    .navbar-menu .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 18px 25px;
        border-radius: 0;
        border-left: 4px solid transparent;
    }
    
    .navbar-menu .nav-link.active {
        background: rgba(164, 198, 57, 0.1);
        border-left-color: var(--primary-color);
        color: var(--primary-color);
    }
    
    .navbar-menu .nav-link.active i {
        color: var(--primary-color);
    }
    
    .navbar-menu .nav-link:hover {
        background: rgba(164, 198, 57, 0.05);
    }
    
    .navbar-menu .nav-link .badge {
        position: static;
        margin-left: auto;
    }
    
    /* Mobile Menu Overlay */
    .navbar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: transparent;
        z-index: 999;
        display: none;
    }
    
    .navbar-overlay.active {
        display: block;
    }
    
    /* Mobile Menu Header */
    .mobile-menu-header {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
        color: var(--white);
        padding: 15px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 600;
        font-size: 16px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-menu-close {
        background: none;
        border: none;
        color: var(--white);
        font-size: 24px;
        cursor: pointer;
        padding: 5px;
        transition: transform 0.3s ease;
    }
    
    .mobile-menu-close:hover {
        transform: rotate(90deg);
    }
    
    /* Mobile Menu User Info */
    .mobile-menu-user {
        padding: 20px 25px;
        border-bottom: 1px solid #f0f0f0;
        margin-bottom: 10px;
    }
    
    .mobile-menu-user p {
        margin: 5px 0;
        font-size: 14px;
        color: var(--text-medium);
    }
    
    .mobile-menu-user strong {
        font-size: 16px;
        color: var(--text-dark);
    }
    
    .mobile-menu-logout {
        display: block;
        width: calc(100% - 50px);
        margin: 15px 25px;
        padding: 12px 20px;
        background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
        color: var(--white);
        text-align: center;
        text-decoration: none;
        border-radius: 8px;
        font-weight: 600;
        font-size: 14px;
    }
    
    /* Content adjustments */
    .stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .stat-info h3 {
        font-size: 26px;
    }
    
    .dashboard-section {
        padding: 20px;
    }
    
    .table {
        font-size: 13px;
    }
    
    .table thead th,
    .table tbody td {
        padding: 12px 10px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .topbar-left span {
        display: block;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .page-title {
        font-size: 22px;
    }
    
    .section-header h3 {
        font-size: 18px;
    }
}

/* ============================================
   Footer
   ============================================ */

.customer-footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 0 0 0;
    margin-top: 50px;
}

.footer-section {
    margin-bottom: 30px;
}

.footer-section h5 {
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.footer-text {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-contact i {
    color: var(--primary-color);
    font-size: 16px;
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

.footer-bottom-links span {
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   Container & Layout
   ============================================ */

.auth-container {
    padding: 60px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.dashboard-container {
    padding: 40px 0;
}

/* ============================================
   Cards
   ============================================ */

.auth-card,
.dashboard-header,
.content-card,
.stats-card,
.nav-menu {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.auth-card {
    max-width: 500px;
    margin: 0 auto;
}

.stats-card {
    padding: 25px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
}

.content-card {
    padding: 25px;
}

.nav-menu {
    padding: 20px;
}

/* ============================================
   Headers & Typography
   ============================================ */

.auth-card h2 {
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-size: 28px;
    font-weight: 600;
}

.auth-card p.subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 30px;
}

.dashboard-header h1 {
    margin: 0;
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 600;
}

.dashboard-header p {
    margin: 10px 0 0 0;
    color: var(--text-medium);
}

.content-card h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--background-light);
}

/* Account Type Selector */
.account-type-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.account-type-option {
    flex: 1;
    position: relative;
}

.account-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.account-type-option label {
    display: block;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.account-type-option label i {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
}

.account-type-option label span {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
}

.account-type-option input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background: rgba(164, 198, 57, 0.1);
}

.account-type-option input[type="radio"]:checked + label i,
.account-type-option input[type="radio"]:checked + label span {
    color: var(--primary-color);
}

/* ============================================
   Buttons
   ============================================ */

.btn-login,
.btn-register,
.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-login:hover,
.btn-register:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(164, 198, 57, 0.4);
}

.btn-view {
    padding: 5px 15px;
    border-radius: 5px;
    font-size: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-view:hover {
    color: white;
    opacity: 0.9;
}

/* ============================================
   Links & Dividers
   ============================================ */

.link-text {
    text-align: center;
    margin-top: 20px;
    color: var(--text-medium);
    font-size: 14px;
}

.link-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.link-text a:hover {
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: var(--text-light);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 15px;
    font-size: 12px;
}

/* ============================================
   Statistics Cards
   ============================================ */

.stats-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 15px;
}

.stats-card.orders .icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.stats-card.invoices .icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stats-card.pending .icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stats-card.amount .icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.stats-card h3 {
    font-size: 14px;
    color: var(--text-light);
    margin: 0 0 10px 0;
    text-transform: uppercase;
    font-weight: 500;
}

.stats-card .number {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

/* ============================================
   Navigation Menu
   ============================================ */

.nav-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-medium);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.nav-menu a i {
    width: 20px;
    margin-right: 10px;
}

/* ============================================
   Tables
   ============================================ */

.table {
    margin: 0;
}

.table th {
    border-top: none;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
}

.table-responsive {
    overflow-x: auto;
}

/* ============================================
   Utilities
   ============================================ */

.text-center {
    text-align: center;
}

.mt-15 {
    margin-top: 15px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .auth-card {
        margin: 20px;
        padding: 25px;
    }
    
    .account-type-selector {
        flex-direction: column;
    }
    
    .stats-card .number {
        font-size: 24px;
    }
    
    .dashboard-header h1 {
        font-size: 22px;
    }
}

/* ============================================
   Profile Page Styles
   ============================================ */

.profile-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.tab-button {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-medium);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--white);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-form .form-row,
.password-form .form-row,
.checkout-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.profile-form .form-group,
.password-form .form-group {
    margin-bottom: 20px;
}

.profile-form label,
.password-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
}

.required {
    color: #dc3545;
}

.profile-form .form-control,
.password-form .form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.profile-form .form-control:focus,
.password-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(164, 198, 57, 0.1);
}

.profile-form .form-control[readonly] {
    background: var(--background-light);
    color: var(--text-medium);
    cursor: not-allowed;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-light);
}

.company-fields {
    background: var(--background-light);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.company-fields h4 {
    margin: 0 0 20px 0;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
}

.account-info {
    background: var(--background-light);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.account-info p {
    margin: 8px 0;
    font-size: 14px;
}

.account-info strong {
    color: var(--text-dark);
    margin-right: 10px;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   Tickets Page Styles
   ============================================ */

/* Tickets List */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h1 {
    margin: 0;
    font-size: 28px;
}

.back-link {
    display: inline-block;
    color: #007bff;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0;
}

.filter-tabs .tab {
    padding: 12px 20px;
    text-decoration: none;
    color: #666;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.filter-tabs .tab:hover {
    color: #333;
    background: #f5f5f5;
}

.filter-tabs .tab.active {
    color: #495057;
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ticket-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
}

.ticket-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #ccc;
}

.ticket-card.has-unread {
    border-left: 4px solid #007bff;
    background: #f8f9ff;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.ticket-info h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.ticket-info h3 a {
    color: #333;
    text-decoration: none;
}

.ticket-info h3 a:hover {
    color: #007bff;
}

.ticket-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.separator {
    color: #ccc;
}

.ticket-badges {
    display: flex;
    gap: 8px;
    align-items: center;
}

.badge-new {
    background: #007bff;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.badge-status {
    background: #f0f0f0;
    color: #666;
}

.badge-open {
    background: #28a745;
    color: white;
}

.badge-in_progress {
    background: #17a2b8;
    color: white;
}

.badge-waiting_customer {
    background: #ffc107;
    color: #333;
}

.badge-closed {
    background: #6c757d;
    color: white;
}

.badge-priority {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #dee2e6;
}

.badge-priority-low {
    border-color: #28a745;
    color: #28a745;
}

.badge-priority-medium {
    border-color: #17a2b8;
    color: #17a2b8;
}

.badge-priority-high {
    border-color: #ffc107;
    color: #ffc107;
}

.badge-priority-urgent {
    border-color: #dc3545;
    color: #dc3545;
    background: #fff5f5;
}

.ticket-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.last-activity {
    color: #999;
    font-size: 13px;
}

/* Ticket Create Form */
.form-card {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.ticket-form .form-group {
    margin-bottom: 25px;
}

.ticket-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 15px;
}

.ticket-form label i {
    color: #007bff;
    margin-right: 5px;
}

.ticket-form .form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.ticket-form textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.form-text {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 13px;
}

.form-info {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    border-radius: 4px;
    margin-bottom: 30px;
}

.form-info i {
    color: #007bff;
    font-size: 20px;
    margin-top: 2px;
}

.form-info strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.form-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    padding-top: 10px;
}

.char-counter {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
}

/* Ticket View / Conversation */
.ticket-header-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ticket-title h2 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #333;
}

.ticket-title .ticket-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.ticket-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.info-item {
    display: flex;
    gap: 12px;
    align-items: center;
}

.info-item i {
    font-size: 24px;
    color: #007bff;
}

.info-item small {
    display: block;
    color: #999;
    font-size: 12px;
    margin-bottom: 3px;
}

.info-item strong {
    display: block;
    color: #333;
    font-size: 14px;
}

.messages-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.message-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #e0e0e0;
}

.message-customer {
    border-left-color: #007bff;
    background: #f8f9ff;
}

.message-admin {
    border-left-color: #28a745;
    background: #f8fff9;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.message-author {
    display: flex;
    gap: 12px;
    align-items: center;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.message-admin .author-avatar {
    background: #28a745;
}

.message-author strong {
    display: block;
    color: #333;
    font-size: 15px;
}

.message-role {
    display: block;
    color: #666;
    font-size: 13px;
}

.message-time {
    color: #999;
    font-size: 13px;
}

.message-time i {
    margin-right: 5px;
}

.message-content {
    color: #333;
    line-height: 1.6;
    font-size: 15px;
}

.reply-form-card {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.reply-form-card h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
}

.reply-form .form-group {
    margin-bottom: 15px;
}

.reply-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
}

.reply-form .form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.ticket-closed-notice {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    display: flex;
    gap: 20px;
    align-items: center;
}

.ticket-closed-notice i {
    font-size: 48px;
    color: #6c757d;
}

.ticket-closed-notice div {
    text-align: left;
}

.ticket-closed-notice strong {
    display: block;
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.ticket-closed-notice p {
    margin: 0 0 15px 0;
    color: #666;
}

/* Mobile Responsiveness for Tickets */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
    }
    
    .ticket-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .ticket-badges {
        align-self: flex-start;
    }
    
    .ticket-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .form-card {
        padding: 25px 20px;
    }
    
    .ticket-info-grid {
        grid-template-columns: 1fr;
    }
    
    .ticket-closed-notice {
        flex-direction: column;
        text-align: center;
    }
    
    .ticket-closed-notice div {
        text-align: center;
    }
}

.password-requirements {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
}

.password-requirements h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #856404;
}

.password-requirements ul {
    margin: 0;
    padding-left: 20px;
}

.password-requirements li {
    font-size: 13px;
    color: #856404;
    margin: 5px 0;
}

/* Mobile responsiveness for profile */
@media (max-width: 768px) {
    .profile-tabs {
        flex-direction: column;
        gap: 0;
        border-bottom: none;
    }

    .tab-button {
        width: 100%;
        text-align: left;
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
        border-left: 3px solid transparent;
        bottom: 0;
    }

    .tab-button.active {
        border-bottom-color: var(--border-color);
        border-left-color: var(--primary-color);
    }

    .profile-form .form-row,
    .password-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* ============================================
   Products Page Styles
   ============================================ */

.products-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 20px;
}

/* Filters Sidebar */
.products-filters {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 150px;
}

.products-filters h3 {
    margin: 0 0 20px 0;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 600;
}

.filter-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-inputs input {
    flex: 1;
}

.price-inputs span {
    color: var(--text-medium);
}

.filter-actions {
    margin-top: 20px;
}

.filter-actions .btn {
    margin-bottom: 10px;
}

/* Products Main */
.products-main {
    min-height: 400px;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.results-count {
    color: var(--text-medium);
    font-size: 14px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    display: block;
    padding-top: 100%;
    overflow: hidden;
    background: var(--background-light);
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.badge-out-of-stock {
    background: #ff7675;
    color: var(--white);
}

.badge-low-stock {
    background: #fdcb6e;
    color: var(--text-dark);
}

.product-info {
    padding: 15px;
}

.product-brand {
    display: block;
    color: var(--text-light);
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-name {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
}

.product-name a {
    color: var(--text-dark);
    text-decoration: none;
}

.product-name a:hover {
    color: var(--primary-color);
}

.product-sku {
    color: var(--text-light);
    font-size: 12px;
    margin: 5px 0;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}

.product-add-form {
    margin-top: 10px;
}

.btn-outline {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
}

.pagination-btn {
    padding: 10px 20px;
    background: var(--white);
    color: var(--text-dark);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.pagination-info {
    color: var(--text-medium);
}

/* ============================================
   Product Detail Page
   ============================================ */

.breadcrumb {
    padding: 15px 10;
    font-size: 14px;
    color: var(--text-medium);
}

.breadcrumb a {
    color: var(--text-medium);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span {
    margin: 0 8px;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 150px;
    height: fit-content;
}

.gallery-main {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--background-light);
}

.gallery-main img {
    width: 100%;
    display: block;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.thumbnail {
    cursor: pointer;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

/* Product Details */
.product-details {
}

.product-brand-logo {
    margin-bottom: 15px;
    color: var(--text-medium);
}

.brand-label {
    font-size: 14px;
}

.product-title {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

.product-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
}

.meta-item {
    color: var(--text-medium);
}

.stock-status {
    font-weight: 600;
}

.stock-status.in-stock {
    color: #00b894;
}

.stock-status.low-stock {
    color: #fdcb6e;
}

.stock-status.out-of-stock {
    color: #ff7675;
}

.product-price-box {
    background: var(--background-light);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.product-price-box .price {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.quantity-selector {
    margin-bottom: 20px;
}

.quantity-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.quantity-input {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: var(--white);
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.qty-field {
    width: 80px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    -moz-appearance: textfield;
}

.qty-field::-webkit-outer-spin-button,
.qty-field::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 16px;
}

.out-of-stock-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px;
    border-radius: 6px;
    color: #856404;
    margin-bottom: 20px;
}

.back-to-products {
    display: inline-block;
    color: var(--text-medium);
    text-decoration: none;
    margin-top: 15px;
}

.back-to-products:hover {
    color: var(--primary-color);
}

/* Product Tabs */
.product-tabs {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.tab-buttons {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-medium);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.product-tabs .tab-content {
    display: none;
}

.product-tabs .tab-content.active {
    display: block;
}

.description-content {
    line-height: 1.8;
    color: var(--text-dark);
}

.specifications-table {
    width: 100%;
    border-collapse: collapse;
}

.specifications-table tr {
    border-bottom: 1px solid var(--border-color);
}

.specifications-table th,
.specifications-table td {
    padding: 12px;
    text-align: left;
}

.specifications-table th {
    background: var(--background-light);
    font-weight: 600;
    width: 30%;
}

/* Related Products */
.related-products {
    margin-top: 40px;
}

.related-products h2 {
    margin-bottom: 20px;
}

/* ============================================
   Cart Page Styles
   ============================================ */

.cart-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    margin-top: 20px;
}

.cart-items {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.cart-table thead {
    background: var(--background-light);
}

.cart-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
}

.cart-table td {
    padding: 20px 15px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.item-product .product-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.item-product img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.item-product .product-name {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}

.item-product .product-name:hover {
    color: var(--primary-color);
}

.stock-warning {
    color: #e17055;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

.item-price {
    font-weight: 600;
    color: var(--text-dark);
}

.item-subtotal {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 18px;
}

.quantity-form .quantity-input {
    display: flex;
    gap: 0;
}

.btn-remove {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-remove:hover {
    color: #ff7675;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

/* Cart Summary */
.cart-summary {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 150px;
}

.cart-summary h3 {
    margin: 0 0 20px 0;
    color: var(--text-dark);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row.total {
    border-top: 2px solid var(--text-dark);
    border-bottom: none;
    padding-top: 15px;
    margin-top: 10px;
    font-size: 18px;
}

.summary-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.summary-info p {
    font-size: 14px;
    color: var(--text-medium);
    margin: 8px 0;
}

.summary-info i {
    color: var(--primary-color);
    margin-right: 8px;
}

/* ============================================
   Checkout Page Styles
   ============================================ */

.checkout-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin-top: 20px;
}

.checkout-main {
}

.checkout-section {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.checkout-section h3 {
    margin: 0 0 20px 0;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 600;
}

.checkout-section h3 i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-option {
    cursor: pointer;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-card {
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.payment-option input[type="radio"]:checked + .payment-card {
    border-color: var(--primary-color);
    background: rgba(164, 198, 57, 0.05);
}

.payment-header {
    margin-bottom: 10px;
}

.payment-instructions {
    margin: 0;
    font-size: 14px;
    color: var(--text-medium);
}

/* Checkout Sidebar */
.checkout-sidebar {
    position: sticky;
    top: 150px;
    height: fit-content;
}

.checkout-summary {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.summary-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.summary-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.item-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.item-name {
    font-weight: 500;
    color: var(--text-dark);
}

.item-qty {
    color: var(--text-light);
    font-size: 14px;
}

.item-total {
    font-weight: 600;
    color: var(--primary-color);
}

.summary-totals {
    padding-top: 15px;
    border-top: 2px solid var(--border-color);
}

.checkout-security {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.checkout-security p {
    font-size: 13px;
    color: var(--text-medium);
    margin: 5px 0;
}

/* ============================================
   Order Success Page
   ============================================ */

.order-success-page {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.success-icon {
    font-size: 80px;
    color: #00b894;
    margin-bottom: 20px;
}

.order-success-page h1 {
    color: var(--text-dark);
    margin-bottom: 10px;
}

.success-message {
    color: var(--text-medium);
    font-size: 16px;
    margin-bottom: 30px;
}

.order-number {
    background: var(--background-light);
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: inline-block;
}

.order-number span {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
}

.order-confirmation-box {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    text-align: left;
    margin-bottom: 30px;
}

.order-confirmation-box h3 {
    margin: 0 0 20px 0;
    color: var(--text-dark);
}

.order-confirmation-box h4 {
    margin: 20px 0 10px 0;
    color: var(--text-dark);
    font-size: 16px;
}

.confirmation-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.confirmation-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.info-row .label {
    color: var(--text-medium);
}

.info-row .value {
    font-weight: 600;
    color: var(--text-dark);
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
}

.order-items-table th,
.order-items-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.order-items-table thead {
    background: var(--background-light);
}

.order-items-table tfoot {
    font-weight: 700;
}

.total-row td {
    border-top: 2px solid var(--text-dark);
    padding-top: 15px;
}

.payment-info {
    background: #fff3cd;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ffc107;
}

.payment-info {
    background: #fff9e6;
    border: 2px solid #ffd966;
    border-radius: 8px;
    padding: 20px !important;
}

.payment-method-header {
    margin-bottom: 15px;
}

.payment-method-header h4 {
    margin: 0 !important;
    color: var(--text-dark);
    font-size: 18px;
}

.payment-instructions-box {
    background: var(--white);
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    line-height: 1.6;
    border: 1px solid #e0e0e0;
}

.bank-details-highlight {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
}

.order-reference-reminder {
    color: #856404;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-reference-reminder i {
    color: #ffc107;
    font-size: 20px;
}

.order-reference-reminder strong {
    color: #000;
    background: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #ffc107;
}

.next-steps {
    background: var(--background-light);
    padding: 25px;
    border-radius: 8px;
    text-align: left;
    margin-bottom: 30px;
}

.next-steps h3 {
    margin: 0 0 15px 0;
}

.next-steps ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.next-steps li {
    padding: 10px 0;
    color: var(--text-dark);
}

.next-steps i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.support-info {
    padding: 20px;
    background: var(--background-light);
    border-radius: 8px;
}

.support-info a {
    color: var(--primary-color);
    font-weight: 600;
}

/* ============================================
   Mobile Responsive - Products & Cart
   ============================================ */

@media (max-width: 768px) {
    .products-container {
        grid-template-columns: 1fr;
    }

    .products-filters {
        position: static;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .product-detail {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .product-gallery {
        position: static;
    }

    .product-actions {
        flex-direction: column;
    }

    .cart-container {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .cart-table {
        display: block;
        overflow-x: auto;
    }

    .item-product .product-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkout-container {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }

    .success-actions {
        flex-direction: column;
    }

    .order-items-table {
        font-size: 14px;
    }

    .order-items-table th,
    .order-items-table td {
        padding: 8px;
    }
}

/* ============================================
   Product Manifest Styles - Table Layout
   ============================================ */

.package-manifest {
    max-width: 100%;
}

.manifest-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 25px;
    border-radius: 10px 10px 0 0;
    margin-bottom: 0;
}

.manifest-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.package-description {
    margin: 0 0 20px 0;
    opacity: 0.9;
    line-height: 1.6;
}

.package-summary {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin: 0;
}

.package-summary span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.95;
}

.package-summary i {
    font-size: 1rem;
}

/* Table Styles */
.manifest-table-container {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-top: none;
    overflow-x: auto;
}

.manifest-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.9rem;
}

.manifest-table thead th {
    background: var(--background-light);
    color: var(--text-dark);
    font-weight: 600;
    padding: 15px 12px;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

.manifest-table tbody td {
    padding: 15px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.manifest-table tbody tr:hover {
    background-color: #f9f9f9;
}

.manifest-table tbody tr.main-item-row {
    background: linear-gradient(135deg, #fff9e6 0%, #fffdf7 100%);
    border-left: 4px solid var(--primary-color);
}

.manifest-table tbody tr.main-item-row:hover {
    background: linear-gradient(135deg, #fff3d1 0%, #fff9e6 100%);
}

/* Table Cell Styles */
.item-title-cell {
    min-width: 200px;
    max-width: 250px;
}

.item-title-cell {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.item-image-small {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.item-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-title-text {
    flex: 1;
    min-width: 0;
}

.item-title-text strong {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
}

.main-item-badge-small {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
    margin-top: 2px;
}

.text-muted {
    color: var(--text-light);
    font-size: 0.8rem;
}

.item-description-cell {
    max-width: 200px;
    line-height: 1.4;
    color: var(--text-medium);
}

.item-brand-cell {
    min-width: 80px;
    color: var(--text-medium);
}

.item-price-cell {
    min-width: 80px;
    text-align: right;
    color: var(--primary-color);
    font-weight: 600;
}

.item-ean-cell {
    min-width: 100px;
}

.item-ean-cell code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-dark);
    border: 1px solid #e0e0e0;
}

.item-links-cell {
    min-width: 80px;
    text-align: center;
}

.external-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.external-link:hover {
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

/* Table Footer */
.manifest-table tfoot td {
    background: var(--background-light);
    padding: 15px 12px;
    border-top: 2px solid var(--border-color);
    font-weight: 600;
}

.manifest-table tfoot .total-row td {
    color: var(--text-dark);
}

.download-manifest-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.download-manifest-small:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: var(--white);
}

.manifest-footer-info {
    background: var(--background-light);
    padding: 15px 25px;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 10px 10px;
    color: var(--text-light);
    font-size: 0.8rem;
    line-height: 1.5;
}

.manifest-footer-info i {
    margin-right: 5px;
}

/* Responsive Design for Table */
@media (max-width: 768px) {
    .manifest-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .manifest-table {
        min-width: 700px;
    }
    
    .manifest-table thead th,
    .manifest-table tbody td,
    .manifest-table tfoot td {
        padding: 10px 8px;
    }
    
    .item-title-cell {
        min-width: 180px;
    }
    
    .item-description-cell {
        max-width: 150px;
    }
    
    .package-summary {
        flex-direction: column;
        gap: 10px;
    }
    
    .manifest-header {
        padding: 20px;
    }
    
    .manifest-footer-info {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .manifest-table {
        min-width: 600px;
        font-size: 0.8rem;
    }
    
    .item-image-small {
        width: 30px;
        height: 30px;
    }
    
    .manifest-header h3 {
        font-size: 1.3rem;
    }
}
