/* North Coast Exporting - Professional Wholesale Styling */
:root {
    --primary: #14461e;     /* Deep Forest Green from logo */
    --secondary: #276233;   /* Lighter Forest Green */
    --accent: #9ca3af;      /* Compass Silver/Grey */
    --bg-light: #f8fafc;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #cbd5e1;
    --success: #16a34a;
    --danger: #dc2626;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }
body { background: var(--bg-light); color: var(--text-main); line-height: 1.5; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.hidden { display: none !important; }

/* Top Bar */
.top-bar { background: var(--primary); color: #cbd5e1; font-size: 0.85rem; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.top-bar-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.contact-mini { display: flex; gap: 20px; flex-wrap: wrap; }
.contact-mini span { display: inline-flex; align-items: center; gap: 6px; }
.top-bar-right { display: flex; gap: 15px; align-items: center; }
.auth-pill-btn, .admin-login-btn { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px; }
.auth-pill-btn:hover, .admin-login-btn:hover { background: var(--accent); border-color: var(--accent); }

/* Header & Nav */
.main-header { background: white; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.nav-flex { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon { width: 700px; height: 100px; background: var(--primary); color: var(--accent); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.logo-text h1 { font-size: 1.25rem; font-weight: 800; color: var(--primary); letter-spacing: 0.5px; line-height: 1.1; }
.logo-text span { font-size: 0.75rem; font-weight: 600; color: var(--accent); letter-spacing: 2px; }
.nav-links { display: flex; gap: 30px; font-weight: 600; font-size: 0.95rem; }
.nav-links a { color: var(--text-main); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.cart-btn { background: var(--primary); color: white; border: none; padding: 10px 20px; border-radius: var(--radius); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; position: relative; transition: background 0.2s; }
.cart-btn:hover { background: var(--secondary); }
.cart-badge { background: var(--accent); color: white; font-size: 0.75rem; padding: 2px 6px; border-radius: 10px; font-weight: 700; }

/* Hero */
.hero { position: relative; min-height: 550px; display: flex; align-items: center; color: white; overflow: hidden; background: var(--primary); }
.hero-bg-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease-in-out; z-index: 1; }
.hero-bg-slide.active { opacity: 1; }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 60px 20px; margin: 0 auto; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,101,0,0.2); border: 1px solid var(--accent); color: #ff9f59; padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-bottom: 20px; }
.hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
.hero p { font-size: 1.1rem; color: #cbd5e1; margin-bottom: 30px; line-height: 1.6; }
.hero-btns { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius); font-weight: 600; cursor: pointer; transition: all 0.2s; border: none; font-size: 0.95rem; }
.btn-primary { background: var(--secondary); color: white; }
.btn-primary:hover { background: var(--primary); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid white; color: white; }
.btn-outline:hover { background: white; color: var(--primary); }
.btn-accent { background: var(--secondary); color: white; }
.btn-accent:hover { background: var(--primary); }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; border-radius: 4px; }
.btn-edit { background: #fef08a; color: #854d0e; }
.btn-delete { background: #fee2e2; color: #991b1b; }

/* Stats Bar */
.stats-bar { background: white; border-bottom: 1px solid var(--border); padding: 25px 0; box-shadow: var(--shadow); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.stat-item { display: flex; align-items: center; gap: 15px; }
.stat-item i { font-size: 2.2rem; color: var(--accent); }
.stat-item h3 { font-size: 1.05rem; font-weight: 700; color: var(--primary); }
.stat-item p { font-size: 0.85rem; color: var(--text-muted); }

/* Sections */
.section { padding: 70px 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section-header h2 { font-size: 2.25rem; font-weight: 800; color: var(--primary); margin-bottom: 15px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* Inventory Section & Lock Overlay */
.inventory-section { background: white; }
.inventory-lock-overlay { background: linear-gradient(135deg, #14461e 0%, #276233 100%); border-radius: var(--radius); padding: 50px 30px; text-align: center; color: white; box-shadow: var(--shadow); margin-top: 20px; }
.lock-card { max-width: 600px; margin: 0 auto; }
.lock-icon-wrap { font-size: 3.5rem; color: var(--accent); margin-bottom: 20px; }
.lock-card h3 { font-size: 1.8rem; font-weight: 700; margin-bottom: 15px; }
.lock-card p { color: #cbd5e1; margin-bottom: 30px; font-size: 1rem; line-height: 1.6; }
.lock-btns { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.lock-btns .btn { opacity: 1 !important; visibility: visible !important; }

/* Inventory Toolbar & Table */
.inventory-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; margin-bottom: 25px; background: var(--bg-light); padding: 15px; border-radius: var(--radius); border: 1px solid var(--border); }
.search-box { position: relative; flex: 1; min-width: 250px; }
.search-box i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search-box input { width: 100%; padding: 10px 14px 10px 40px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.95rem; background: white; outline: none; }
.filter-group { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-group select, .filter-group input { padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.9rem; background: white; outline: none; }
.btn-subtle { background: white; border: 1px solid var(--border); padding: 10px 14px; border-radius: var(--radius); cursor: pointer; color: var(--text-muted); }
.btn-subtle:hover { background: #f1f5f9; }

.admin-action-bar { background: #fef9c3; border: 1px solid #fde047; padding: 15px 20px; border-radius: var(--radius); margin-bottom: 25px; }
.admin-notice { font-size: 0.9rem; color: #854d0e; display: flex; align-items: center; gap: 8px; }

.inventory-table-container { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: white; }
.inventory-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.9rem; }
.inventory-table th { background: var(--primary); color: white; padding: 14px 16px; font-weight: 600; white-space: nowrap; }
.inventory-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text-main); vertical-align: middle; }
.inventory-table tr:hover { background: #f8fafc; }

.badge-type { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.badge-type.color { background: #e0f2fe; color: #0369a1; }
.badge-type.mono { background: #f1f5f9; color: #475569; }

.badge-grade-pill { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; }
.grade-a { background: #dcfce7; color: #166534; }
.grade-b { background: #fef3c7; color: #92400e; }
.grade-c { background: #fee2e2; color: #991b1b; }
.grade-export { background: #f3e8ff; color: #7e22ce; }

.td-serial code { background: #f1f5f9; padding: 4px 8px; border-radius: 4px; font-family: monospace; font-size: 0.85rem; color: var(--primary); }

/* About & Evaluation */
.about-section { background: var(--bg-light); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 50px; align-items: center; }
.about-text h2 { font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: 20px; }
.about-text p { color: var(--text-muted); margin-bottom: 15px; line-height: 1.7; }
.about-list { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; font-weight: 600; color: var(--primary); }
.about-list li { display: flex; align-items: center; gap: 10px; }
.about-list i { color: var(--success); }

.card-highlight { background: white; padding: 35px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); text-align: center; }
.card-highlight i { font-size: 3rem; color: var(--accent); margin-bottom: 15px; }
.card-highlight h3 { font-size: 1.4rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.card-highlight p { color: var(--text-muted); font-size: 0.95rem; }
.card-highlight hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.card-highlight .hours { font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 8px; }

.eval-section { background: white; }
.eval-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.eval-card { background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; position: relative; transition: transform 0.2s, box-shadow 0.2s; }
.eval-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.eval-num { font-size: 2.5rem; font-weight: 800; color: rgba(11,25,44,0.08); position: absolute; right: 20px; top: 10px; }
.eval-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.eval-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* Contact Section */
.contact-section { background: var(--bg-light); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.contact-info { background: var(--primary); color: white; padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-info h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 15px; }
.contact-info > p { color: #cbd5e1; margin-bottom: 30px; font-size: 0.95rem; line-height: 1.6; }
.info-item { display: flex; gap: 15px; margin-bottom: 25px; }
.info-item i { font-size: 1.3rem; color: var(--accent); margin-top: 3px; }
.info-item h4 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; color: white; }
.info-item p { color: #cbd5e1; font-size: 0.9rem; }

.contact-form-card { background: white; padding: 40px; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.contact-form-card h3 { font-size: 1.6rem; font-weight: 700; color: var(--primary); margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-bottom: 15px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.95rem; outline: none; background: white; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }

.flashing-quotes-header { font-size: 0.95rem; font-weight: 700; color: var(--accent); margin-bottom: 10px; display: inline-flex; align-items: center; gap: 8px; animation: flashQuote 1.5s infinite; }
@keyframes flashQuote { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.quote-summary-box { background: #f8fafc; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; max-height: 150px; overflow-y: auto; font-size: 0.85rem; margin-bottom: 15px; }
.quote-summary-item { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); }
.quote-summary-item:last-child { border-bottom: none; }

/* Modals */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(11,25,44,0.7); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; backdrop-filter: blur(3px); }
.modal-card { background: white; width: 100%; max-width: 600px; border-radius: var(--radius); box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1); overflow: hidden; animation: modalPop 0.2s ease-out; }
.modal-card.modal-sm { max-width: 420px; }
@keyframes modalPop { 0% { transform: scale(0.95); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.modal-header { background: var(--primary); color: white; padding: 18px 25px; display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 1.15rem; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; }
.close-btn { background: none; border: none; color: #cbd5e1; font-size: 1.2rem; cursor: pointer; transition: color 0.2s; }
.close-btn:hover { color: white; }
.modal-body { padding: 25px; max-height: 75vh; overflow-y: auto; }
.modal-footer { background: var(--bg-light); padding: 15px 25px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* Auth Modal Tabs */
.auth-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.auth-tab-btn { flex: 1; background: none; border: none; padding: 10px; font-weight: 600; font-size: 0.9rem; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; }
.auth-tab-btn.active { color: var(--primary); border-bottom-color: var(--accent); }
.auth-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }
.login-error { background: #fee2e2; color: #991b1b; padding: 10px; border-radius: var(--radius); font-size: 0.85rem; margin-bottom: 15px; }
.signup-success { background: #dcfce7; color: #166534; padding: 15px; border-radius: var(--radius); font-size: 0.9rem; margin-bottom: 15px; text-align: center; }
.signup-success i { font-size: 2rem; margin-bottom: 8px; display: block; }
.cart-items-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 15px; }
.cart-item-row { display: flex; justify-content: space-between; align-items: center; background: var(--bg-light); padding: 12px; border-radius: var(--radius); border: 1px solid var(--border); }
.cart-item-info h4 { font-size: 0.95rem; font-weight: 700; color: var(--primary); }
.cart-item-info p { font-size: 0.8rem; color: var(--text-muted); }
.remove-cart-item { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 1rem; }
.empty-cart-msg { text-align: center; color: var(--text-muted); padding: 30px 0; }

@media(max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 2.2rem; }
    .form-row { grid-template-columns: 1fr; }
}
