:root {
    --ink: #120606;
    --muted: #756565;
    --paper: #fff8f7;
    --sand: #f2ddd8;
    --green: #b11226;
    --red: #d80f2e;
    --red-dark: #780615;
    --red-soft: #fff0f1;
    --soft: #f8ece9;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif; background: radial-gradient(circle at top left, #ffe4e7 0, var(--paper) 320px); color: var(--ink); }
a { color: inherit; text-decoration: none; }
.tf-header { background: rgba(255,248,247,.95); border-bottom: 1px solid rgba(216,15,46,.16); backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(120,6,21,.06); }
.navbar-brand, .admin-brand { font-size: 1.7rem; font-weight: 900; letter-spacing: 0; }
.navbar-brand span, .tf-footer span, .admin-brand span { color: var(--red); }
.nav-link { font-weight: 750; }
.nav-link:hover { color: var(--red); }
.nav-icon-link { display: inline-flex; align-items: center; gap: 6px; }
.nav-icon-link i { color: var(--red); font-size: 1.05rem; }
.search-form { width: min(540px, 100%); }
.cart-badge { position: absolute; top: -8px; right: -8px; background: var(--red); color: white; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; }
.tf-hero { margin-top: -1px; }
.tf-hero .carousel-inner, .tf-hero .carousel-item { min-height: calc(100vh - 74px); }
.tf-hero .hero-slide { min-height: calc(100vh - 74px); background-size: cover; background-position: center; display: flex; align-items: center; color: white; position: relative; }
.tf-hero .hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,6,6,.55), transparent 38%); pointer-events: none; }
.hero-copy { max-width: 720px; padding: 76px 0 104px; position: relative; z-index: 1; }
.hero-kicker, .muted-label, .shop-heading p, .offer-band p { text-transform: uppercase; letter-spacing: .16em; color: #ffb4be; font-weight: 900; }
.hero-copy h1 { font-size: clamp(3.1rem, 8vw, 7.4rem); line-height: .9; font-weight: 950; margin-bottom: 28px; text-shadow: 0 18px 44px rgba(0,0,0,.38); max-width: 900px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-red, .btn-dark { background: var(--red); border-color: var(--red); color: white; }
.btn-red:hover, .btn-dark:hover { background: var(--red-dark); border-color: var(--red-dark); color: white; }
.btn-glass { color: white; border: 1px solid rgba(255,255,255,.48); background: rgba(255,255,255,.12); backdrop-filter: blur(8px); }
.btn-glass:hover { color: white; background: rgba(255,255,255,.2); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-stats span { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 12px 14px; backdrop-filter: blur(10px); }
.hero-stats strong { color: #ff4058; display: block; font-size: 1.2rem; }
.carousel-indicators [data-bs-target] { width: 42px; height: 4px; border-radius: 999px; border: 0; background-color: rgba(255,255,255,.85); }
.section-title, .shop-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-title h2, .shop-heading h1 { font-weight: 950; margin: 0; }
.section-title a { color: var(--red); font-weight: 850; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.category-tile { min-height: 112px; background: linear-gradient(145deg, white, #fff0f1); border: 1px solid rgba(216,15,46,.14); border-radius: 8px; padding: 18px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; font-weight: 850; transition: .2s; color: var(--red); }
.category-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--red-soft); color: var(--red); font-size: 1.35rem; box-shadow: inset 0 0 0 1px rgba(216,15,46,.16); }
.category-name { color: var(--red); line-height: 1.15; }
.category-arrow { color: var(--red); }
.category-tile:hover, .product-card:hover { transform: translateY(-4px); box-shadow: 0 20px 42px rgba(120,6,21,.12); border-color: rgba(216,15,46,.28); }
.offer-band { background: linear-gradient(120deg, var(--red-dark), var(--red), #190406); color: white; padding: 56px 0; position: relative; overflow: hidden; }
.offer-band::after { content: "TRAILFIT"; position: absolute; right: -20px; bottom: -46px; font-size: clamp(4rem, 12vw, 10rem); font-weight: 950; color: rgba(255,255,255,.08); }
.offer-band h2 { font-weight: 950; max-width: 720px; }
.product-card { background: white; border: 1px solid rgba(216,15,46,.12); border-radius: 8px; overflow: hidden; transition: .2s; }
.product-image { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--soft); }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; left: 10px; top: 10px; background: var(--red); color: white; border-radius: 999px; padding: 5px 10px; font-size: .75rem; font-weight: 850; }
.product-info { padding: 14px; }
.product-name { display: block; min-height: 44px; font-weight: 850; }
.price-row { display: flex; gap: 10px; align-items: center; }
del { color: var(--muted); font-weight: 500; }
.filter-panel { display: grid; grid-template-columns: 190px 1fr auto; gap: 10px; min-width: min(560px, 100%); }
.product-gallery > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; background: var(--soft); }
.thumbs { display: flex; gap: 10px; margin-top: 12px; }
.thumbs button { width: 72px; height: 86px; padding: 0; border: 1px solid #ddd4c5; border-radius: 6px; overflow: hidden; background: white; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.price-xl { font-size: 1.8rem; font-weight: 900; margin: 14px 0; }
.buy-box, .form-panel, .summary-box, .auth-card, .tracking-card, .success-box { background: white; border: 1px solid rgba(216,15,46,.14); border-radius: 8px; padding: 24px; box-shadow: 0 18px 38px rgba(120,6,21,.05); }
.option-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 16px; }
.option-row input { display: none; }
.option-row span { display: inline-grid; place-items: center; min-width: 46px; height: 38px; border: 1px solid #d8d0c1; border-radius: 6px; padding: 0 12px; cursor: pointer; }
.option-row input:checked + span { background: var(--red); color: white; border-color: var(--red); }
.stock-ok { color: #118a49; font-weight: 800; }
.stock-out { color: #b42318; font-weight: 800; }
.qty-input { width: 86px; }
.cart-line, .order-row, .mini-row { display: flex; align-items: center; gap: 16px; background: white; border: 1px solid rgba(216,15,46,.12); border-radius: 8px; padding: 14px; margin-bottom: 12px; }
.cart-line img { width: 82px; height: 96px; object-fit: cover; border-radius: 6px; background: var(--soft); }
.summary-box p { display: flex; justify-content: space-between; gap: 18px; }
.total { font-size: 1.25rem; }
.auth-wrap { min-height: 76vh; display: grid; place-items: center; padding: 36px 16px; }
.auth-card { width: min(440px, 100%); display: grid; gap: 14px; }
.track-form { display: flex; gap: 10px; margin: 22px 0; }
.narrow { max-width: 760px; }
.status-pill { background: var(--red-soft); color: var(--red); padding: 6px 10px; border-radius: 999px; font-weight: 800; }
.success-box i { font-size: 4rem; color: var(--red); }
.tf-footer { background: #140306; color: white; }
.tf-footer p, .tf-footer a { color: #d4d0c7; display: block; margin: 8px 0; }
.socials { display: flex; gap: 16px; font-size: 1.3rem; }
.empty-state { background: white; border: 1px dashed #cfc6b7; border-radius: 8px; padding: 34px; text-align: center; }
.admin-body { background: #fff8f7; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 250px; background: linear-gradient(180deg, #180306, #3a050d); color: white; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.admin-sidebar a { color: #e9e3d8; padding: 11px 12px; border-radius: 6px; display: flex; gap: 10px; align-items: center; }
.admin-sidebar a:hover { background: rgba(255,255,255,.08); }
.admin-main { margin-left: 250px; padding: 28px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.admin-top h1 { font-weight: 900; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.metric-card, .admin-card { background: white; border: 1px solid rgba(216,15,46,.13); border-radius: 8px; padding: 20px; box-shadow: 0 16px 34px rgba(120,6,21,.06); }
.metric-card p { color: var(--muted); margin: 0 0 8px; }
.metric-card strong { font-size: 1.7rem; }
.pay-option { display: block; border: 1px solid #ddd4c5; border-radius: 6px; padding: 12px; margin-bottom: 10px; }
@media (max-width: 991px) {
    .filter-panel, .shop-heading { display: block; }
    .filter-panel > * { margin-top: 10px; }
    .nav-icon-link { padding: 10px 0; }
    .tf-hero .carousel-inner, .tf-hero .carousel-item, .tf-hero .hero-slide { min-height: calc(100vh - 66px); }
    .hero-copy { padding: 56px 0 92px; max-width: 92%; }
    .admin-sidebar { position: static; width: auto; }
    .admin-main { margin-left: 0; padding: 18px; }
}
@media (max-width: 575px) {
    .cart-line { align-items: flex-start; flex-wrap: wrap; }
    .track-form { display: grid; }
    .section-title { align-items: flex-start; flex-direction: column; }
    .tf-hero .hero-slide { background-position: center top; align-items: end; }
    .hero-copy { padding: 44px 0 86px; max-width: 100%; }
    .hero-copy h1 { font-size: clamp(2.55rem, 15vw, 4.4rem); }
    .hero-actions .btn { width: 100%; }
    .hero-stats { display: grid; grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-tile { min-height: 92px; padding: 14px; }
    .product-info { padding: 11px; }
    .product-name { font-size: .94rem; min-height: 48px; }
}
