/* === Incom Peptide Research Store — Pharma Theme === */
:root {
    --navy: #0a3d62;
    --navy-light: #1a5a8a;
    --navy-dark: #062947;
    --teal: #0e6655;
    --teal-light: #14856f;
    --teal-dark: #0a4a3e;
    --ice: #e1f5fe;
    --ice2: #f0f9ff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --red: #dc2626;
    --red-light: #fef2f2;
    --amber: #d97706;
    --amber-light: #fffbeb;
    --green: #16a34a;
    --green-light: #f0fdf4;
    --blue: #2563eb;
    --blue-light: #eff6ff;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: var(--font);
    color: var(--gray-800);
    background: var(--gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal); }

img { max-width: 100%; display: block; }

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

/* === Announcement Bar === */
.announcement-bar {
    background: var(--navy-dark);
    color: var(--ice);
    text-align: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
}
.announcement-bar strong { color: #ffcc00; }

/* === Header === */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 24px;
}
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-area .logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}
.logo-area .logo-sub {
    font-size: 11px;
    color: var(--teal);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.logo-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--navy), var(--teal));
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 700; font-size: 18px;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.cart-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gray-600);
    font-size: 14px;
    font-weight: 500;
}
.cart-badge .count {
    background: var(--teal);
    color: white;
    border-radius: 12px;
    padding: 1px 8px;
    font-size: 12px;
    font-weight: 700;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}
.btn-primary { background: var(--navy); color: white; }
.btn-primary:hover { background: var(--navy-light); color: white; }
.btn-teal { background: var(--teal); color: white; }
.btn-teal:hover { background: var(--teal-light); color: white; }
.btn-outline { background: transparent; border: 1.5px solid var(--gray-300); color: var(--gray-700); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-danger { background: var(--red); color: white; }
.btn-danger:hover { background: #b91c1c; color: white; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* === Hero === */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%);
    color: white;
    padding: 64px 0;
    text-align: center;
}
.hero h1 { font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.hero p { font-size: 18px; opacity: 0.9; margin-bottom: 24px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-disclaimer {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 100px;
    padding: 6px 20px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
}

/* === Product Grid === */
.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    margin: 48px 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.section-title .count { font-size: 14px; color: var(--gray-500); font-weight: 400; }

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

.product-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .2s;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
    transform: translateY(-2px);
}
.product-card .product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--gray-100);
}
.product-card .product-image-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--ice), var(--ice2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-size: 48px;
    font-weight: 700;
}
.product-card .card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-card .product-name { font-size: 16px; font-weight: 600; color: var(--gray-800); margin-bottom: 4px; }
.product-card .product-cat { font-size: 12px; color: var(--teal); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.product-card .product-desc { font-size: 13px; color: var(--gray-500); margin-bottom: 12px; flex: 1; }
.product-card .product-price { font-size: 20px; font-weight: 700; color: var(--navy); }
.product-card .compare-price { font-size: 14px; color: var(--gray-400); text-decoration: line-through; margin-left: 8px; }
.product-card .product-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.product-card .stock-badge { font-size: 12px; font-weight: 500; }
.stock-in { color: var(--green); }
.stock-low { color: var(--amber); }
.stock-out { color: var(--red); }

.research-badge {
    display: inline-block;
    background: var(--amber-light);
    color: var(--amber);
    border: 1px solid #fcd34d;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === Product Detail === */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin: 32px 0;
}
.product-detail .product-image-large {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}
.product-detail .product-info h1 { font-size: 28px; color: var(--navy); margin-bottom: 8px; }
.product-detail .price-large { font-size: 32px; font-weight: 700; color: var(--navy); margin: 16px 0; }
.product-detail .specs-table { width: 100%; margin: 24px 0; }
.product-detail .specs-table td { padding: 8px 0; border-bottom: 1px solid var(--gray-100); font-size: 14px; }
.product-detail .specs-table td:first-child { font-weight: 600; color: var(--gray-600); width: 40%; }
.product-detail .description-full { margin: 24px 0; line-height: 1.8; color: var(--gray-700); }

.disclaimer-box {
    background: var(--amber-light);
    border: 1px solid #fcd34d;
    border-radius: var(--radius-sm);
    padding: 16px;
    margin: 24px 0;
    font-size: 13px;
    color: #92400e;
    line-height: 1.6;
}
.disclaimer-box strong { color: var(--amber); }

/* === Cart === */
.cart-page { margin: 32px 0; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: 12px; border-bottom: 2px solid var(--gray-200); font-size: 13px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; }
.cart-table td { padding: 16px 12px; border-bottom: 1px solid var(--gray-100); }
.cart-table .cart-product { display: flex; align-items: center; gap: 12px; }
.cart-table .cart-product img { width: 60px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; }
.cart-table .qty-input { width: 60px; padding: 6px; border: 1px solid var(--gray-300); border-radius: var(--radius-sm); text-align: center; }
.cart-summary {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 24px;
}
.cart-summary h3 { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.summary-line { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.summary-total { border-top: 2px solid var(--gray-200); margin-top: 12px; padding-top: 12px; font-size: 20px; font-weight: 700; color: var(--navy); }

/* === Checkout === */
.checkout-page { display: grid; grid-template-columns: 1fr 400px; gap: 32px; margin: 32px 0; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; color: var(--gray-700); margin-bottom: 4px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font);
    transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(10,61,98,0.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* === Footer === */
.site-footer {
    background: var(--navy-dark);
    color: var(--gray-400);
    padding: 48px 0 24px;
    margin-top: 64px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 32px; }
.footer-grid h4 { color: white; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.footer-grid a { color: var(--gray-400); font-size: 13px; display: block; margin-bottom: 6px; }
.footer-grid a:hover { color: var(--ice); }
.footer-disclaimer {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin: 24px 0;
    font-size: 12px;
    color: var(--gray-400);
    line-height: 1.7;
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; font-size: 12px; text-align: center; }

/* === Alerts === */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; }
.alert-error { background: var(--red-light); color: var(--red); border: 1px solid #fecaca; }
.alert-success { background: var(--green-light); color: var(--green); border: 1px solid #bbf7d0; }
.alert-info { background: var(--blue-light); color: var(--blue); border: 1px solid #bfdbfe; }
.alert-warning { background: var(--amber-light); color: var(--amber); border: 1px solid #fcd34d; }

/* === Sort Bar === */
.sort-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.sort-bar select {
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: white;
}

/* === Empty state === */
.empty-state { text-align: center; padding: 64px 24px; color: var(--gray-400); }
.empty-state .icon { font-size: 48px; margin-bottom: 16px; }

/* === Responsive === */
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; }
    .nav-links { gap: 16px; }
    .product-detail { grid-template-columns: 1fr; }
    .checkout-page { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .hero h1 { font-size: 26px; }
    .hero p { font-size: 15px; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
}

/* === Payment Method Selector === */
.payment-methods { display: flex; flex-direction: column; gap: 12px; }
.payment-option {
    display: flex; align-items: center; gap: 16px;
    padding: 16px; border: 2px solid var(--gray-200); border-radius: 10px;
    cursor: pointer; transition: all 0.2s ease;
}
.payment-option:hover { border-color: var(--gray-300); background: var(--gray-50); }
.payment-option.selected { border-color: var(--teal); background: rgba(14, 102, 85, 0.04); }
.payment-option input[type="radio"] {
    width: 20px; height: 20px; accent-color: var(--teal); flex-shrink: 0;
}
.payment-option-content { display: flex; align-items: center; gap: 12px; flex: 1; }
.payment-option-content > div:first-child { font-size: 24px; flex-shrink: 0; }
.payment-option-content > div:last-child { flex: 1; }
.payment-option-content strong { display: block; font-size: 15px; color: var(--gray-800); }
.payment-option-content div:last-child > div { margin-top: 2px; }

/* === Dual Currency Prices === */
.price-usd { font-size: 1em; font-weight: 600; color: var(--navy); display: inline; }
.price-cad { font-size: 0.75em; color: var(--gray-400); font-style: italic; display: block; margin-top: 2px; }

/* === Currency Toggle === */
.currency-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.currency-toggle a { padding: 4px 8px; border-radius: 4px; text-decoration: none; color: var(--gray-400); font-weight: 600; transition: all 0.2s; }
.currency-toggle a.active { background: var(--navy); color: white; }
.currency-toggle a:not(.active):hover { color: var(--navy); }