/* ============================================================
   BUGS N JUGS — Stylesheet
   Premium fly fishing flies for Oregon & the Pacific NW
   ============================================================ */

:root {
    --green-deep: #0d2b1a;
    --green-mid:  #1a4a2e;
    --green-light:#2d6b48;
    --amber:      #c4882a;
    --amber-light:#e0a84a;
    --cream:      #f7f4ef;
    --white:      #ffffff;
    --gray-100:   #f3f4f6;
    --gray-200:   #e5e7eb;
    --gray-400:   #9ca3af;
    --gray-600:   #4b5563;
    --gray-800:   #1f2937;
    --text:       #1a1a1a;
    --radius:     10px;
    --radius-lg:  16px;
    --shadow:     0 2px 12px rgba(0,0,0,.08);
    --shadow-lg:  0 8px 32px rgba(0,0,0,.12);
    --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
}

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: var(--green-deep); }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p  { color: var(--gray-600); margin-bottom: 1rem; }
a  { color: var(--green-mid); text-decoration: none; }
a:hover { color: var(--amber); }

.serif { font-family: 'Playfair Display', Georgia, serif; }

/* ── Layout ── */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }

/* ── Header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--green-deep);
    box-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 24px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -.02em;
    text-decoration: none;
}
.logo:hover { color: var(--amber-light); }
.logo-bug { font-size: 1.5rem; }
.logo-amp { color: var(--amber); }
.main-nav { display: flex; gap: 32px; }
.nav-link {
    color: rgba(255,255,255,.85);
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .02em;
    text-transform: uppercase;
    transition: color var(--transition);
}
.nav-link:hover { color: var(--amber-light); }
.header-right { display: flex; align-items: center; gap: 16px; }
.cart-link {
    position: relative;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 6px;
}
.cart-link:hover { color: var(--amber-light); }
.cart-count {
    background: var(--amber);
    color: var(--white);
    font-size: .72rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}
.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--green-mid);
    padding: 12px 24px 20px;
    gap: 4px;
}
.mobile-nav a {
    color: rgba(255,255,255,.9);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    font-size: .95rem;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav.open { display: flex; }

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-mid) 60%, #1e5c37 100%);
    color: var(--white);
    padding: 100px 0 90px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/assets/img/hero-texture.svg') center/cover no-repeat;
    opacity: .06;
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-eyebrow {
    display: inline-block;
    background: rgba(196,136,42,.2);
    color: var(--amber-light);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
    border: 1px solid rgba(196,136,42,.3);
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero p { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badge {
    display: flex;
    gap: 28px;
    margin-top: 56px;
    flex-wrap: wrap;
}
.hero-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.75);
    font-size: .875rem;
}
.hero-badge-item svg { color: var(--amber); flex-shrink: 0; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--radius);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--amber);
    color: var(--white);
    border-color: var(--amber);
}
.btn-primary:hover {
    background: var(--amber-light);
    border-color: var(--amber-light);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(196,136,42,.4);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,.5);
}
.btn-outline:hover {
    background: rgba(255,255,255,.1);
    border-color: var(--white);
    color: var(--white);
}
.btn-green {
    background: var(--green-mid);
    color: var(--white);
    border-color: var(--green-mid);
}
.btn-green:hover {
    background: var(--green-deep);
    border-color: var(--green-deep);
    color: var(--white);
    transform: translateY(-1px);
}
.btn-sm { padding: 9px 18px; font-size: .875rem; }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Cards ── */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid var(--gray-200);
}
.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    background: linear-gradient(135deg, var(--green-deep), var(--green-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}
.card-body { padding: 24px; }
.card-tag {
    display: inline-block;
    background: var(--cream);
    color: var(--green-mid);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 10px;
}
.card-title { font-size: 1.15rem; margin-bottom: 6px; color: var(--green-deep); }
.card-desc { font-size: .9rem; color: var(--gray-600); margin-bottom: 16px; }
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-100);
}
.price { font-size: 1.25rem; font-weight: 700; color: var(--green-deep); }
.price-sm { font-size: 1rem; font-weight: 700; color: var(--green-mid); }

/* ── Grid layouts ── */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* ── Section headers ── */
.section-header { text-align: center; max-width: 600px; margin: 0 auto 48px; }
.section-header .eyebrow {
    display: inline-block;
    color: var(--amber);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 14px; }

/* ── Featured boxes (homepage) ── */
.box-card { cursor: pointer; }
.box-card .card-img {
    position: relative;
    background: linear-gradient(160deg, var(--green-deep) 0%, var(--green-light) 100%);
    min-height: 200px;
    flex-direction: column;
    gap: 8px;
    color: rgba(255,255,255,.4);
    font-size: 3rem;
}
.box-count-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--amber);
    color: var(--white);
    font-size: .78rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
}

/* ── Product detail page ── */
.product-hero {
    background: var(--cream);
    padding: 60px 0;
    border-bottom: 1px solid var(--gray-200);
}
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.product-img-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, var(--green-deep), var(--green-light));
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
}
.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-info h1 { margin-bottom: 6px; }
.product-tagline { font-size: 1.05rem; color: var(--green-mid); font-weight: 500; margin-bottom: 16px; }
.product-price { font-size: 2rem; font-weight: 700; color: var(--amber); margin-bottom: 24px; }
.product-desc { font-size: 1rem; color: var(--gray-600); margin-bottom: 28px; line-height: 1.7; }
.product-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.product-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.product-meta-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-400); }
.product-meta-value { font-size: .9rem; font-weight: 600; color: var(--green-deep); }
.add-to-cart-wrap { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.qty-picker {
    display: flex;
    align-items: center;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
}
.qty-btn {
    background: var(--gray-100);
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--green-deep);
    transition: background var(--transition);
}
.qty-btn:hover { background: var(--gray-200); }
.qty-val {
    padding: 10px 16px;
    font-weight: 700;
    min-width: 42px;
    text-align: center;
    font-size: .95rem;
}

/* ── What's Inside table ── */
.whats-inside { margin-top: 56px; }
.whats-inside h2 { margin-bottom: 24px; }
.fly-list {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.fly-list-item {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-200);
}
.fly-list-item:last-child { border-bottom: none; }
.fly-list-item:nth-child(odd) { background: var(--gray-100); }
.fly-qty {
    background: var(--green-deep);
    color: var(--white);
    font-size: .8rem;
    font-weight: 700;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.fly-name { font-weight: 600; font-size: .95rem; }
.fly-note { font-size: .8rem; color: var(--gray-400); margin-top: 2px; }
.fly-tag {
    background: var(--cream);
    color: var(--green-mid);
    font-size: .75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

/* ── Fly sizes/options ── */
.option-group { margin-bottom: 20px; }
.option-label { font-size: .85rem; font-weight: 600; color: var(--gray-600); margin-bottom: 10px; display: block; }
.option-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    padding: 7px 16px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--white);
}
.chip.active, .chip:hover {
    border-color: var(--green-mid);
    background: var(--green-mid);
    color: var(--white);
}

/* ── Breadcrumb ── */
.breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: .875rem;
    color: var(--gray-400);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray-400); }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb-sep { color: var(--gray-200); }

/* ── Trust bar ── */
.trust-bar {
    background: var(--green-deep);
    color: var(--white);
    padding: 20px 0;
}
.trust-items {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .875rem;
    font-weight: 500;
    color: rgba(255,255,255,.85);
}
.trust-item svg { color: var(--amber); }

/* ── Cart page ── */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}
.cart-items { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 20px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    align-items: center;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--green-deep), var(--green-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}
.cart-item-name { font-weight: 600; margin-bottom: 4px; }
.cart-item-opts { font-size: .85rem; color: var(--gray-400); margin-bottom: 8px; }
.cart-item-remove {
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: .8rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}
.cart-item-remove:hover { color: #dc2626; }
.cart-summary {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--gray-200);
    position: sticky;
    top: 88px;
}
.cart-summary h3 { margin-bottom: 20px; }
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: .9rem;
}
.summary-row.total {
    font-weight: 700;
    font-size: 1.05rem;
    padding-top: 12px;
    border-top: 2px solid var(--gray-200);
    margin-top: 4px;
    color: var(--green-deep);
}
.cart-empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--gray-400);
}
.cart-empty .empty-icon { font-size: 4rem; margin-bottom: 20px; }

/* ── Guides page ── */
.guide-card { display: block; }
.guide-card .card-img {
    background: linear-gradient(160deg, #1a3a2a, #2d6b48);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
}
.hatch-table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: .9rem; }
.hatch-table th {
    background: var(--green-deep);
    color: var(--white);
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .05em;
}
.hatch-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: top;
}
.hatch-table tr:nth-child(even) td { background: var(--gray-100); }
.hatch-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-light);
    margin-right: 6px;
}

/* ── Alert / Notice ── */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: .9rem;
    font-weight: 500;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ── Page header ── */
.page-header {
    background: var(--green-deep);
    color: var(--white);
    padding: 56px 0 48px;
}
.page-header h1 { color: var(--white); margin-bottom: 10px; }
.page-header p { color: rgba(255,255,255,.75); font-size: 1.05rem; margin: 0; }

/* ── Filter pills ── */
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}
.filter-pill {
    padding: 7px 18px;
    border: 2px solid var(--gray-200);
    border-radius: 100px;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--white);
    color: var(--gray-600);
    text-decoration: none;
}
.filter-pill:hover, .filter-pill.active {
    border-color: var(--green-mid);
    background: var(--green-mid);
    color: var(--white);
}

/* ── Success / Thank you ── */
.success-page {
    text-align: center;
    padding: 100px 24px;
}
.success-icon { font-size: 5rem; margin-bottom: 24px; }
.success-page h1 { margin-bottom: 14px; }

/* ── Footer ── */
.site-footer {
    background: var(--green-deep);
    color: rgba(255,255,255,.7);
    padding: 56px 0 24px;
    margin-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
.footer-logo { font-size: 1.25rem; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.footer-tagline { font-size: .875rem; line-height: 1.6; }
.footer-col h4 {
    color: var(--white);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.footer-col a {
    display: block;
    color: rgba(255,255,255,.6);
    font-size: .875rem;
    margin-bottom: 8px;
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--amber-light); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 24px;
    font-size: .85rem;
    text-align: center;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--amber-light); }

/* ── Responsive ── */
@media (max-width: 900px) {
    .main-nav { display: none; }
    .nav-toggle { display: flex; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .product-layout { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .trust-items { gap: 24px; }
}
@media (max-width: 600px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 64px 0 56px; }
    .hero-badge { gap: 16px; }
    .product-meta { flex-direction: column; gap: 12px; }
}
