/* ─── Fontana Agent Supply Co. ─── */

:root {
    --bg: #faf9f7;
    --bg-warm: #f5f3ef;
    --bg-card: #ffffff;
    --text: #1a1a1a;
    --text-secondary: #6b6560;
    --text-muted: #a39e99;
    --accent: #c4785a;
    --accent-dark: #a66247;
    --border: #e8e5e1;
    --border-light: #f0eeeb;
    --chloe: #d4a574;
    --op: #5a7a96;
    --pip: #7a6b8a;
    --bea: #c9a84c;
    --heath: #6baa8a;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 4px 6px rgba(0,0,0,0.03), 0 12px 24px rgba(0,0,0,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ─── Announcement ─── */
.announcement {
    background: var(--text);
    color: var(--bg);
    text-align: center;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ─── Nav ─── */
.nav {
    position: sticky;
    top: 0;
    background: rgba(250,249,247,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    z-index: 100;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--text);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.cart-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.cart-btn:hover { background: var(--border-light); }

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── Hero ─── */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px 64px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: var(--bg-warm);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 440px;
    margin-bottom: 32px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--text);
    color: var(--bg);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.hero-visual {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: flex-end;
}

.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.chloe-card { width: 160px; padding-bottom: 32px; }
.op-card { width: 130px; padding-bottom: 24px; margin-bottom: 16px; }
.pip-card { width: 130px; padding-bottom: 24px; margin-bottom: 32px; }

.card-tag {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 10px;
    letter-spacing: 0.03em;
}

.card-emoji {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 12px;
}

.card-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ─── Filter Bar ─── */
.filter-bar {
    background: var(--bg-warm);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 65px;
    z-index: 90;
}

.filter-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 8px;
}

.filter-btn {
    background: transparent;
    border: 1px solid transparent;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text);
}

.filter-btn.active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

/* ─── Products ─── */
.products {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

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

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.product-card.hidden { display: none; }

.product-image {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--border-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--text);
    color: var(--bg);
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.product-badge.limited { background: #8b4513; }
.product-badge.new { background: var(--heath); }

.product-info {
    padding: 16px;
}

.product-agent {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.product-agent.chloe { color: var(--chloe); }
.product-agent.op { color: var(--op); }
.product-agent.pip { color: var(--pip); }
.product-agent.bea { color: var(--bea); }
.product-agent.heath { color: var(--heath); }
.product-agent.team { color: var(--accent); }

.product-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
}

.product-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 12px;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
}

.product-price .original {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 6px;
    font-weight: 500;
}

.btn-add {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 18px;
    color: var(--text);
}

.btn-add:hover {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
}

/* ─── About ─── */
.about {
    background: var(--bg-warm);
    border-top: 1px solid var(--border);
    padding: 80px 24px;
}

.about-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: center;
}

.about h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 20px;
}

.about p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-note {
    font-size: 14px !important;
    color: var(--text-muted) !important;
    font-style: italic;
}

.about-stats {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    color: var(--text);
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
    font-weight: 500;
}

/* ─── Footer ─── */
.footer {
    background: var(--text);
    color: var(--bg);
    padding: 48px 24px;
    text-align: center;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 700;
}

.footer-logo .logo-icon {
    background: var(--bg);
    color: var(--text);
}

.footer-note {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 20px;
}

.footer-agents {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 20px;
}

/* ─── Cart Drawer ─── */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 200;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    z-index: 210;
    display: flex;
    flex-direction: column;
}

.cart-drawer.open { transform: translateX(0); }

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

.cart-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.cart-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.cart-close:hover { background: var(--border-light); }

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.cart-empty {
    text-align: center;
    padding: 48px 0;
    color: var(--text-secondary);
}

.cart-empty-emoji { font-size: 48px; margin-bottom: 12px; }

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

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
}

.cart-item-image {
    width: 64px;
    height: 64px;
    background: var(--bg-warm);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.cart-item-details { flex: 1; }

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.qty-btn:hover { border-color: var(--text); color: var(--text); }

.cart-item-price {
    font-size: 14px;
    font-weight: 600;
    text-align: right;
}

.cart-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    margin-top: 4px;
    text-decoration: underline;
}

.cart-remove:hover { color: var(--accent); }

.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-warm);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cart-disclaimer {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.btn-checkout {
    width: 100%;
    padding: 14px;
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-checkout:hover { background: var(--accent-dark); }

/* ─── Modal ─── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 300;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 680px;
    max-width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    z-index: 310;
}

.modal.open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-warm);
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}

.modal-close:hover { background: var(--border); }

.modal-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.modal-image {
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--border-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.modal-agent {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.modal-name {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 12px;
}

.modal-price {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

.modal-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-details {
    background: var(--bg-warm);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 24px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-light);
}

.detail-row:last-child { border-bottom: none; }

.detail-label { color: var(--text-muted); }

.modal-add {
    margin-top: auto;
    width: 100%;
    padding: 14px;
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-add:hover { background: var(--accent-dark); }

/* ─── Toast ─── */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text);
    color: var(--bg);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    z-index: 500;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    pointer-events: none;
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .hero { grid-template-columns: 1fr; text-align: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-visual { order: -1; }
}

@media (max-width: 768px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 40px; }
    .about-inner { grid-template-columns: 1fr; text-align: center; }
    .about-stats { justify-content: center; }
    .modal-content { grid-template-columns: 1fr; }
    .modal-image { aspect-ratio: 16/10; }
    .nav-links { display: none; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .hero-visual { flex-direction: column; align-items: center; }
    .op-card, .pip-card { margin-bottom: 0; }
    .filter-inner { gap: 6px; }
    .filter-btn { padding: 5px 12px; font-size: 12px; }
}
