/* ============================================================
   Fast Star Vitalmart - shared stylesheet
   Palette: deep forest green, warm paper white, amber accents
   Type: Bricolage Grotesque (display) + Figtree (body)
   ============================================================ */

:root {
    --green-deep: #0F3123;
    --green-700: #17573C;
    --green-600: #1E7A4F;
    --green-soft: #E9F4EE;
    --green-tint: #F2F8F4;
    --paper: #F8FAF7;
    --ink: #182019;
    --muted: #5B6B60;
    --amber: #EEA83C;
    --line: #E1EAE3;
    --white: #FFFFFF;
    --radius: 16px;
    --shadow: 0 6px 24px rgba(15, 49, 35, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Figtree', 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
    font-family: 'Bricolage Grotesque', 'Figtree', sans-serif;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

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

a { color: var(--green-600); }

:focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- Header ---------- */
header {
    background: var(--green-deep);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--white);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
}

.logo img {
    height: 42px;
    width: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}

.nav-links a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.nav-links a:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.nav-cta {
    background: var(--white);
    color: var(--green-deep) !important;
    font-weight: 700;
}

.nav-cta:hover { background: var(--green-soft) !important; }

.mobile-menu {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    color: var(--white);
    font-size: 1.25rem;
    padding: 0.35rem 0.7rem;
    cursor: pointer;
}

.back-link {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1.1rem;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.back-link:hover { background: rgba(255,255,255,0.12); }

/* ---------- Hero ---------- */
.hero {
    background: var(--green-deep);
    color: var(--white);
    padding: 4.5rem 1.5rem 0;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding-bottom: 4.5rem;
}

.hero .eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    font-weight: 800;
    margin-bottom: 1.1rem;
}

.hero h1 em {
    font-style: normal;
    color: #8FD4B0;
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.82);
    max-width: 620px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.9rem;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}

.btn-primary {
    background: var(--green-600);
    color: var(--white);
    box-shadow: 0 6px 18px rgba(30,122,79,0.35);
}

.btn-primary:hover { background: #1B6C46; transform: translateY(-2px); }

.btn-light {
    background: rgba(255,255,255,0.12);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-light:hover { background: rgba(255,255,255,0.2); }

/* Trust ribbon - the signature strip under the hero */
.trust-ribbon {
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.trust-ribbon-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.trust-item {
    padding: 1.35rem 1rem;
    border-left: 1px solid var(--line);
}

.trust-item:first-child { border-left: none; }

.trust-item i {
    color: var(--green-600);
    font-size: 1.3rem;
    margin-bottom: 0.35rem;
}

.trust-item strong {
    display: block;
    font-size: 0.95rem;
}

.trust-item span {
    font-size: 0.82rem;
    color: var(--muted);
}

/* ---------- Sections ---------- */
.section {
    padding: 4.5rem 1.5rem;
    max-width: 1160px;
    margin: 0 auto;
}

.section-head {
    text-align: center;
    margin-bottom: 2.75rem;
}

.section-head .eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green-600);
    background: var(--green-soft);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 0.9rem;
}

.section-head h2 {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--green-deep);
}

.section-head p {
    color: var(--muted);
    max-width: 560px;
    margin: 0.6rem auto 0;
}

/* ---------- Product grid ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.75rem;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
}

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

.product-card .card-image {
    aspect-ratio: 4 / 3;
    background: var(--green-tint);
    overflow: hidden;
}

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

.product-card .card-body {
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--green-deep);
    margin-bottom: 0.4rem;
}

.product-card .card-body > p {
    color: var(--muted);
    font-size: 0.93rem;
    margin-bottom: 1rem;
    flex: 1;
}

.price {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--green-600);
    margin-bottom: 1rem;
}

.card-btn {
    display: block;
    text-align: center;
    background: var(--green-600);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    padding: 0.8rem;
    border-radius: 12px;
    transition: background 0.2s;
}

.card-btn:hover { background: #1B6C46; }

.no-products {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
}

.no-products i { font-size: 2.5rem; color: var(--green-600); margin-bottom: 1rem; }

/* ---------- Reviews / testimonials ---------- */
.reviews-band { background: var(--green-tint); }

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
}

.stars {
    color: var(--amber);
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.testimonial-text {
    color: #3C463F;
    font-size: 0.97rem;
    margin-bottom: 1.25rem;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--green-deep);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Bricolage Grotesque', sans-serif;
}

.author-info h4 { font-size: 0.98rem; color: var(--green-deep); }
.author-info p { font-size: 0.82rem; color: var(--muted); }

/* Verified tick used on product-page reviews */
.verified {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: var(--green-600);
    font-weight: 600;
    margin-left: auto;
}

/* ---------- Product page ---------- */
.product-page {
    max-width: 1160px;
    margin: 2.5rem auto 3rem;
    padding: 0 1.5rem;
}

.breadcrumb {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.breadcrumb a { color: var(--green-600); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.product-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    align-items: start;
}

.gallery-panel { position: static; }

.main-image {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--white);
    margin-bottom: 0.75rem;
}

.main-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.thumbnail-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.6rem;
}

.thumbnail {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    background: var(--white);
}

.thumbnail img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.thumbnail.active, .thumbnail:hover { border-color: var(--green-600); }

.detail-panel h1 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    color: var(--green-deep);
    margin-bottom: 0.5rem;
}

.rating-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
    font-size: 0.92rem;
    color: var(--muted);
}

.detail-price {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--green-600);
    margin-bottom: 1.1rem;
}

.detail-desc {
    color: #3C463F;
    margin-bottom: 1.4rem;
    white-space: pre-line;
}

.benefit-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--green-soft);
    color: var(--green-700);
    font-size: 0.87rem;
    font-weight: 600;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
}

/* Order form */
.order-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
}

.order-card h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--green-deep);
    margin-bottom: 0.35rem;
}

.order-card .order-sub {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1.4rem;
}

.form-group { margin-bottom: 1.15rem; }

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.92rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--paper);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green-600);
    box-shadow: 0 0 0 3px rgba(30,122,79,0.12);
    background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.required { color: #C62828; }

.price-summary {
    background: var(--green-tint);
    border: 1px solid var(--line);
    padding: 1rem 1.15rem;
    border-radius: 12px;
    margin-bottom: 1.3rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.discount-note {
    display: none;
    color: var(--green-600);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.price-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 800;
    font-family: 'Bricolage Grotesque', sans-serif;
    border-top: 1.5px solid var(--line);
    padding-top: 0.55rem;
    color: var(--green-deep);
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: var(--green-600);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.submit-button:hover { background: #1B6C46; transform: translateY(-1px); }

.form-note {
    text-align: center;
    color: var(--muted);
    font-size: 0.83rem;
    margin-top: 0.9rem;
}

.flash {
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.flash-success { background: #E7F6EC; color: #1B6C46; border: 1px solid #BFE5CC; }
.flash-error { background: #FDECEA; color: #B3261E; border: 1px solid #F5C6C1; }

/* Sticky mobile order bar */
.mobile-order-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--line);
    padding: 0.75rem 1rem;
    z-index: 900;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 -6px 20px rgba(15,49,35,0.1);
}

.mobile-order-bar .bar-price {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--green-deep);
}

.mobile-order-bar .btn { padding: 0.75rem 1.5rem; }

/* ---------- Success page ---------- */
.success-wrap {
    max-width: 640px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.success-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.success-header {
    background: var(--green-deep);
    color: var(--white);
    padding: 2.75rem 2rem;
    text-align: center;
}

.success-icon {
    width: 74px;
    height: 74px;
    background: var(--white);
    color: var(--green-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 1.25rem;
}

.success-header h1 { font-size: 1.7rem; font-weight: 800; margin-bottom: 0.35rem; }
.success-header p { color: rgba(255,255,255,0.85); }

.success-body { padding: 2rem; }

.summary-block {
    background: var(--green-tint);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.summary-block h3 {
    color: var(--green-deep);
    font-size: 1.05rem;
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-product {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.summary-product img {
    width: 84px;
    height: 84px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--line);
}

.detail-row {
    display: flex;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}

.detail-row:last-child { border-bottom: none; }
.detail-label { font-weight: 600; color: var(--muted); min-width: 110px; }
.detail-value { flex: 1; }

.next-steps {
    background: #FDF6EA;
    border: 1px solid #F2E0BE;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.next-steps h3 { color: #9A6B14; font-size: 1.02rem; margin-bottom: 0.75rem; }
.next-steps ul { list-style: none; }
.next-steps li {
    padding: 0.35rem 0;
    color: #5C5344;
    display: flex;
    gap: 0.6rem;
    font-size: 0.94rem;
}
.next-steps li i { color: var(--amber); margin-top: 0.25rem; }

/* ---------- Footer ---------- */
footer {
    background: var(--green-deep);
    color: var(--white);
    padding: 3.5rem 1.5rem 1.25rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1160px;
    margin: 0 auto 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.25rem;
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.footer-section p, .footer-section li {
    color: rgba(255,255,255,0.75);
    font-size: 0.94rem;
    margin-bottom: 0.5rem;
}

.footer-section ul { list-style: none; }

.footer-section a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover { color: var(--white); }

.social-links { display: flex; gap: 0.75rem; margin-top: 0.85rem; }

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover { background: rgba(255,255,255,0.22); }

.footer-bottom {
    max-width: 1160px;
    margin: 0 auto;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
}

.footer-bottom a { color: rgba(255,255,255,0.85); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .product-layout { grid-template-columns: 1fr; gap: 1.75rem; }
    .gallery-panel { position: static; }
    .trust-ribbon-inner { grid-template-columns: repeat(2, 1fr); }
    .trust-item:nth-child(3) { border-left: none; }
    .trust-item { border-top: 1px solid var(--line); }
    .trust-item:nth-child(-n+2) { border-top: none; }
}

@media (max-width: 768px) {
    .mobile-menu { display: block; }

    .nav-links {
        position: fixed;
        top: 62px;
        left: 0;
        right: 0;
        background: var(--green-deep);
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 1rem 1.25rem 1.5rem;
        gap: 0.35rem;
        transform: translateY(-130%);
        transition: transform 0.3s ease;
        box-shadow: 0 12px 24px rgba(0,0,0,0.25);
    }

    .nav-links.active { transform: translateY(0); }

    .hero { padding-top: 3.25rem; }
    .section { padding: 3.25rem 1.25rem; }

    .mobile-order-bar { display: flex; }
    .product-page { padding-bottom: 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}