/* ============================================
   TOLEDO INDOOR GARDEN - COMMERCIAL PORTAL CSS
   Full-featured B2B ordering portal styles
   ============================================ */

/* === VARIABLES === */
:root {
    --toledo-green: #008b44;
    --toledo-green-dark: #006d35;
    --toledo-green-light: #e8f5e9;
    --toledo-gold: #F7C951;
    --toledo-gold-dark: #e6b940;
    --dark: #0a1612;
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --text-muted: #6b7280;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === BASE RESET === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

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

a:hover {
    color: var(--toledo-green-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === SKIP LINK === */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--toledo-green);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   HEADER — MATCHES EXISTING SITE HEADER
   ============================================ */
.header {
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 32px;
}

.logo-img {
    height: 120px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--toledo-green);
}

.nav a.active {
    color: var(--toledo-green);
}

.btn-phone {
    background: linear-gradient(135deg, var(--toledo-green), var(--toledo-green-dark));
    color: white !important;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(71, 158, 82, 0.3);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: var(--dark);
}

/* ============================================
   PAGE HERO
   ============================================ */
.page-hero {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--toledo-green), var(--toledo-gold), var(--toledo-green));
}

.page-hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    margin-bottom: 20px;
    color: white;
}

.page-hero p {
    font-size: 20px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.page-hero .hero-badges {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: white;
}

/* ============================================
   BUTTONS (SHARED)
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1.4;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--toledo-green), var(--toledo-green-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(71, 158, 82, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(71, 158, 82, 0.4);
    color: white;
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--dark);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--gray-200);
    color: var(--dark);
}

.btn-outline {
    background: transparent;
    color: var(--toledo-green);
    border: 2px solid var(--toledo-green);
}

.btn-outline:hover:not(:disabled) {
    background: var(--toledo-green);
    color: white;
}

.btn-gold {
    background: linear-gradient(135deg, var(--toledo-gold), var(--toledo-gold-dark));
    color: var(--dark);
    box-shadow: 0 4px 12px rgba(247, 201, 81, 0.3);
}

.btn-gold:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 201, 81, 0.4);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
    color: white;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 17px;
}

.btn-block {
    width: 100%;
}

/* ============================================
   FORM STYLES (SHARED)
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 6px;
}

.form-label .required {
    color: #ef4444;
    margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--dark);
    background: var(--bg-white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: var(--transition);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--toledo-green);
    box-shadow: 0 0 0 3px rgba(71, 158, 82, 0.15);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray-400);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-error {
    color: #ef4444;
    font-size: 13px;
    margin-top: 4px;
    display: none;
}

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

.form-hint {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--gray-200);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title .section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--toledo-green);
    color: white;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

/* Radio & Checkbox groups */
.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    font-weight: 500;
}

.radio-option:hover,
.checkbox-option:hover {
    border-color: var(--toledo-green);
    background: var(--toledo-green-light);
}

.radio-option input,
.checkbox-option input {
    accent-color: var(--toledo-green);
}

.radio-option.selected,
.checkbox-option.selected {
    border-color: var(--toledo-green);
    background: var(--toledo-green-light);
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-wrapper {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    background: var(--gray-50);
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--toledo-green), var(--toledo-gold));
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo img {
    height: 60px;
    width: auto;
}

.login-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 8px;
}

.login-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 32px;
}

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

.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.login-footer p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.login-footer a {
    font-weight: 600;
    font-size: 14px;
}

.forgot-password {
    text-align: right;
    margin-top: -12px;
    margin-bottom: 20px;
}

.forgot-password a {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.forgot-password a:hover {
    color: var(--toledo-green);
}

/* ============================================
   APPLICATION FORM PAGE
   ============================================ */
.apply-section {
    padding: 60px 0;
    background: var(--gray-50);
}

.apply-container {
    max-width: 800px;
    margin: 0 auto;
}

.apply-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.apply-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--toledo-green), var(--toledo-gold));
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.benefit-card {
    background: white;
    padding: 28px;
    border-radius: var(--radius-md);
    border: 2px solid var(--gray-200);
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    border-color: var(--toledo-green);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.benefit-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.benefit-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================
   SUCCESS / STATUS MESSAGES
   ============================================ */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    display: none;
}

.alert.visible {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-success {
    background: var(--toledo-green-light);
    color: #166534;
    border: 1px solid #86efac;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.alert-icon {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1;
}

.alert-content {
    flex: 1;
}

.alert-content strong {
    display: block;
    margin-bottom: 4px;
}

/* ============================================
   PORTAL LAYOUT
   ============================================ */
.portal-topbar {
    background: var(--dark);
    color: white;
    padding: 12px 0;
    font-size: 14px;
}

.portal-topbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.portal-company-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.portal-company-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--toledo-gold);
}

.portal-user-email {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
}

.portal-topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.portal-topbar-actions a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
}

.portal-topbar-actions a:hover {
    color: white;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Portal Navigation Tabs */
.portal-nav {
    background: white;
    border-bottom: 2px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.portal-tabs {
    display: flex;
    list-style: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.portal-tabs::-webkit-scrollbar {
    display: none;
}

.portal-tab {
    flex-shrink: 0;
}

.portal-tab a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.portal-tab a:hover {
    color: var(--toledo-green);
    background: var(--gray-50);
}

.portal-tab a.active {
    color: var(--toledo-green);
    border-bottom-color: var(--toledo-green);
}

.portal-tab-icon {
    font-size: 18px;
}

.portal-tab-badge {
    background: var(--toledo-green);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 50px;
    min-width: 20px;
    text-align: center;
    line-height: 1.4;
}

/* Portal Main Content */
.portal-main {
    padding: 32px 0 60px;
    min-height: 60vh;
    background: var(--gray-50);
}

.portal-section {
    display: none;
}

.portal-section.active {
    display: block;
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-welcome {
    margin-bottom: 32px;
}

.dashboard-welcome h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.dashboard-welcome p {
    color: var(--text-muted);
    font-size: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-icon {
    font-size: 24px;
}

.stat-value {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-change {
    font-size: 13px;
    font-weight: 600;
}

.stat-change.positive {
    color: var(--toledo-green);
}

.stat-change.negative {
    color: #ef4444;
}

/* Recent Orders Widget */
.dashboard-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--gray-200);
    margin-bottom: 24px;
}

.dashboard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.dashboard-section-header h3 {
    font-size: 18px;
}

.dashboard-section-header a {
    font-size: 14px;
    font-weight: 600;
}

/* ============================================
   PRODUCT CATALOG
   ============================================ */
.catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.catalog-header h2 {
    font-size: 24px;
}

.catalog-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.catalog-search {
    position: relative;
    min-width: 280px;
}

.catalog-search input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: var(--transition);
}

.catalog-search input:focus {
    border-color: var(--toledo-green);
    box-shadow: 0 0 0 3px rgba(71, 158, 82, 0.15);
}

.catalog-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 16px;
    pointer-events: none;
}

.catalog-sort select,
.catalog-category select {
    padding: 10px 36px 10px 14px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    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='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.catalog-sort select:focus,
.catalog-category select:focus {
    border-color: var(--toledo-green);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: var(--toledo-green);
}

.product-card-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    background: var(--gray-50);
    overflow: hidden;
}

.product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-image .stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-badge.in-stock {
    background: var(--toledo-green-light);
    color: #166534;
}

.stock-badge.low-stock {
    background: #fffbeb;
    color: #92400e;
}

.stock-badge.out-of-stock {
    background: #fef2f2;
    color: #991b1b;
}

.product-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-brand {
    font-size: 12px;
    font-weight: 600;
    color: var(--toledo-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.product-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 16px;
    margin-top: auto;
}

.product-price-commercial {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--toledo-green);
}

.product-price-retail {
    font-size: 14px;
    color: var(--gray-400);
    text-decoration: line-through;
}

.product-savings {
    font-size: 12px;
    font-weight: 700;
    color: #166534;
    background: var(--toledo-green-light);
    padding: 2px 8px;
    border-radius: 50px;
}

.product-card-actions {
    padding: 0 20px 20px;
}

.btn-add-cart {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--toledo-green), var(--toledo-green-dark));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-cart:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(71, 158, 82, 0.3);
}

.btn-add-cart:disabled {
    background: var(--gray-300);
    cursor: not-allowed;
}

/* Load More */
.load-more-wrapper {
    text-align: center;
    margin-top: 32px;
}

/* Product count info */
.catalog-info {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

/* ============================================
   CART TABLE
   ============================================ */
.cart-section {
    max-width: 1000px;
}

.cart-section h2 {
    font-size: 24px;
    margin-bottom: 24px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.cart-empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.cart-empty h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.cart-empty p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.cart-table-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    margin-bottom: 24px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table thead {
    background: var(--gray-50);
}

.cart-table th {
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    border-bottom: 2px solid var(--gray-200);
}

.cart-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
}

.cart-table tr:last-child td {
    border-bottom: none;
}

.cart-product-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cart-product-image {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--gray-50);
    flex-shrink: 0;
}

.cart-product-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--dark);
}

.cart-product-brand {
    font-size: 12px;
    color: var(--text-muted);
}

.cart-quantity {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    width: fit-content;
}

.cart-qty-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-50);
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.cart-qty-btn:hover {
    background: var(--gray-200);
}

.cart-qty-input {
    width: 50px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    outline: none;
    -moz-appearance: textfield;
}

.cart-qty-input::-webkit-inner-spin-button,
.cart-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.cart-line-total {
    font-weight: 700;
    font-size: 16px;
    color: var(--dark);
}

.cart-remove-btn {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    transition: var(--transition);
}

.cart-remove-btn:hover {
    color: #ef4444;
}

/* Cart Summary */
.cart-summary {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 24px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 15px;
}

.cart-summary-row.total {
    padding-top: 16px;
    margin-top: 8px;
    border-top: 2px solid var(--gray-200);
    font-size: 18px;
    font-weight: 800;
}

.cart-summary-row.total .cart-summary-value {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    color: var(--toledo-green);
}

.cart-summary-label {
    color: var(--text-muted);
    font-weight: 500;
}

.cart-summary-value {
    font-weight: 700;
    color: var(--dark);
}

.cart-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================================
   CHECKOUT FLOW
   ============================================ */
.checkout-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

.checkout-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.checkout-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 28px;
}

.checkout-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-card h3 .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--toledo-green);
    color: white;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

/* Address Selector */
.address-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.address-option {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.address-option:hover {
    border-color: var(--toledo-green);
}

.address-option.selected {
    border-color: var(--toledo-green);
    background: var(--toledo-green-light);
}

.address-option.selected::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: var(--toledo-green);
    border-radius: 50%;
    background-image: 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='white' d='M10 3L4.5 8.5 2 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.address-option-label {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--dark);
}

.address-option-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Stripe Card Element */
.stripe-card-element {
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: white;
    transition: var(--transition);
}

.stripe-card-element.StripeElement--focus {
    border-color: var(--toledo-green);
    box-shadow: 0 0 0 3px rgba(71, 158, 82, 0.15);
}

.stripe-card-element.StripeElement--invalid {
    border-color: #ef4444;
}

/* Checkout Sidebar / Order Summary */
.checkout-sidebar {
    position: sticky;
    top: 80px;
}

.checkout-order-summary {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 24px;
}

.checkout-order-summary h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}

.checkout-item-name {
    color: var(--text-secondary);
    flex: 1;
}

.checkout-item-qty {
    color: var(--text-muted);
    margin: 0 8px;
    font-size: 13px;
}

.checkout-item-price {
    font-weight: 600;
    white-space: nowrap;
}

/* ============================================
   ORDER HISTORY TABLE
   ============================================ */
.orders-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.orders-header h2 {
    font-size: 24px;
}

.orders-table-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table thead {
    background: var(--gray-50);
}

.orders-table th {
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    border-bottom: 2px solid var(--gray-200);
}

.orders-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
}

.orders-table tr {
    cursor: pointer;
    transition: var(--transition);
}

.orders-table tbody tr:hover {
    background: var(--gray-50);
}

.orders-table tr:last-child td {
    border-bottom: none;
}

.order-number {
    font-weight: 700;
    color: var(--toledo-green);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-badge.pending {
    background: #fffbeb;
    color: #92400e;
}

.status-badge.processing {
    background: #eff6ff;
    color: #1e40af;
}

.status-badge.shipped {
    background: #f0fdf4;
    color: #166534;
}

.status-badge.delivered {
    background: var(--toledo-green-light);
    color: var(--toledo-green-dark);
}

.status-badge.cancelled {
    background: #fef2f2;
    color: #991b1b;
}

.status-badge.confirmed {
    background: #eff6ff;
    color: #1e40af;
}

.status-badge.partial {
    background: #fdf4ff;
    color: #86198f;
}

/* Order Detail Expandable Row */
.order-detail-row {
    display: none;
}

.order-detail-row.visible {
    display: table-row;
}

.order-detail-content {
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.order-detail-items {
    margin-top: 16px;
}

.order-detail-items table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.order-detail-items th,
.order-detail-items td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.order-detail-items th {
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.tracking-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.tracking-info a {
    font-weight: 600;
}

/* ============================================
   ADDRESS MANAGEMENT
   ============================================ */
.addresses-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.addresses-header h2 {
    font-size: 24px;
}

.address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.address-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    padding: 24px;
    position: relative;
    transition: var(--transition);
}

.address-card:hover {
    border-color: var(--toledo-green);
    box-shadow: var(--shadow-sm);
}

.address-card.default {
    border-color: var(--toledo-green);
}

.address-default-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--toledo-green-light);
    color: var(--toledo-green-dark);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.address-card-label {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--dark);
}

.address-card-text {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.address-card-actions {
    display: flex;
    gap: 8px;
}

/* Add Address Card */
.address-card-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    border-style: dashed;
    cursor: pointer;
    color: var(--text-muted);
}

.address-card-add:hover {
    color: var(--toledo-green);
    border-color: var(--toledo-green);
    background: var(--toledo-green-light);
}

.address-card-add .add-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.address-card-add span {
    font-weight: 600;
    font-size: 14px;
}

/* Address Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 24px;
}

.modal-overlay.visible {
    display: flex;
}

.modal {
    background: white;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--dark);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ============================================
   ACCOUNT SETTINGS
   ============================================ */
.account-section h2 {
    font-size: 24px;
    margin-bottom: 24px;
}

.account-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 28px;
    margin-bottom: 24px;
}

.account-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.account-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.account-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-info-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
}

/* ============================================
   LOADING & EMPTY STATES
   ============================================ */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    flex-direction: column;
    gap: 16px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--toledo-green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.empty-state-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: white;
    color: var(--dark);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition);
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--toledo-green);
    color: var(--toledo-green);
}

.pagination-btn.active {
    background: var(--toledo-green);
    border-color: var(--toledo-green);
    color: white;
}

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

/* ============================================
   FOOTER — MATCHES EXISTING SITE FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    color: white;
    padding: 80px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 24px;
}

.footer-col h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--toledo-gold);
}

.footer-col ul {
    list-style: none;
}

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

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--toledo-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 420px;
    animation: slideIn 0.3s ease;
    border-left: 4px solid var(--toledo-green);
}

.toast.error {
    border-left-color: #ef4444;
}

.toast.warning {
    border-left-color: var(--toledo-gold);
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
}

.toast-close {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 18px;
    padding: 2px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ============================================
   RESPONSIVE — MOBILE FIRST
   ============================================ */
@media (max-width: 1024px) {
    .checkout-wrapper {
        grid-template-columns: 1fr;
    }

    .checkout-sidebar {
        position: static;
    }

    .address-list {
        grid-template-columns: 1fr;
    }

    .order-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

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

    .page-hero h1 {
        font-size: 28px;
    }

    .page-hero p {
        font-size: 16px;
    }

    /* Form responsive */
    .form-row {
        grid-template-columns: 1fr;
    }

    .radio-group {
        flex-direction: column;
    }

    /* Apply card */
    .apply-card {
        padding: 28px 20px;
    }

    /* Portal */
    .portal-topbar-content {
        flex-direction: column;
        text-align: center;
    }

    .portal-tabs {
        gap: 0;
    }

    .portal-tab a {
        padding: 12px 16px;
        font-size: 13px;
    }

    .portal-tab-icon {
        display: none;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Catalog */
    .catalog-header {
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-controls {
        flex-direction: column;
    }

    .catalog-search {
        min-width: 100%;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .product-card-body {
        padding: 12px;
    }

    .product-name {
        font-size: 14px;
    }

    .product-price-commercial {
        font-size: 18px;
    }

    /* Cart responsive */
    .cart-table thead {
        display: none;
    }

    .cart-table,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
    }

    .cart-table tr {
        padding: 16px 20px;
        border-bottom: 1px solid var(--gray-200);
        position: relative;
    }

    .cart-table td {
        padding: 4px 0;
        border: none;
        text-align: right;
    }

    .cart-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 700;
        font-size: 12px;
        text-transform: uppercase;
        color: var(--text-muted);
    }

    .cart-product-info {
        justify-content: flex-end;
        text-align: right;
    }

    .cart-product-image {
        display: none;
    }

    /* Orders responsive */
    .orders-table thead {
        display: none;
    }

    .orders-table,
    .orders-table tbody,
    .orders-table tr,
    .orders-table td {
        display: block;
    }

    .orders-table tr {
        padding: 16px;
        border-bottom: 1px solid var(--gray-200);
    }

    .orders-table td {
        padding: 4px 0;
        border: none;
        text-align: right;
    }

    .orders-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: 700;
        font-size: 12px;
        text-transform: uppercase;
        color: var(--text-muted);
    }

    /* Addresses */
    .address-grid {
        grid-template-columns: 1fr;
    }

    /* Benefits */
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer {
        padding: 48px 0 24px;
    }

    /* Login */
    .login-card {
        padding: 32px 24px;
    }

    /* General */
    .container {
        padding: 0 16px;
    }

    .dashboard-welcome h2 {
        font-size: 22px;
    }
}

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

    .product-grid {
        grid-template-columns: 1fr;
    }

    .cart-actions {
        flex-direction: column;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }
}
