/* ============================================================
   TinyTrends — global styles
   ============================================================ */
:root {
    --mint: #6ec9b3;
    --mint-dark: #1f5e4e;
    --teal-grad-a: #7ed0bb;
    --teal-grad-b: #4fae97;
    --ink: #1f2a37;
    --body: #5b6571;
    --muted: #8a94a1;
    --line: #e7eaee;
    --bg: #f4f6f7;
    --card: #ffffff;
    --pink: #f4b9ad;
    --pink-soft: #fae3dd;
    --blue-soft: #d7e7f0;
    --mint-soft: #d6f0e8;
    --radius: 14px;
    --radius-lg: 18px;
    --shadow: 0 8px 24px rgba(31, 42, 55, .06);
    --shadow-sm: 0 2px 8px rgba(31, 42, 55, .05);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    line-height: 1.2;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: .9rem;
    padding: 12px 22px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--mint-dark);
    color: #fff;
}

.btn-primary:hover {
    background: #18493c;
}

.btn-dark {
    background: var(--mint-dark);
    color: #fff;
}

.btn-dark:hover {
    background: #143c31;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 64px;
}

.brand {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--mint-dark);
    letter-spacing: -.2px;
    white-space: nowrap;
}

.brand span {
    color: var(--ink);
}

.main-nav {
    display: flex;
    gap: 28px;
    margin: 0 auto 0 16px;
}

.nav-link {
    font-size: .92rem;
    font-weight: 500;
    color: var(--body);
    padding: 4px 0;
    position: relative;
}

.nav-link:hover {
    color: var(--ink);
}

.nav-link.is-active {
    color: var(--mint-dark);
    font-weight: 600;
}

.nav-link.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--mint-dark);
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 7px 12px;
    color: var(--muted);
    width: 200px;
}

.search input {
    border: none;
    outline: none;
    background: transparent;
    font: inherit;
    font-size: .85rem;
    width: 100%;
    color: var(--ink);
}

.search-icon {
    flex: 0 0 auto;
}

.icon-btn {
    color: var(--body);
    display: inline-flex;
    padding: 4px;
    border-radius: 8px;
    transition: color .15s ease, background .15s ease;
}

.icon-btn:hover {
    color: var(--mint-dark);
    background: #fff;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background:
        linear-gradient(90deg, rgba(244, 246, 247, .92) 0%, rgba(244, 246, 247, .55) 40%, rgba(244, 246, 247, 0) 70%),
        url('../img/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-inner {
    min-height: 340px;
    display: flex;
    align-items: center;
    padding-top: 36px;
    padding-bottom: 36px;
}

.hero-copy {
    max-width: 620px;
}

.hero-eyebrow {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #c0654f;
    margin-bottom: 14px;
}

.hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -.5px;
    margin-bottom: 16px;
}

.hero-copy p {
    color: var(--body);
    font-size: .95rem;
    margin: 0 0 22px;
}

/* ============================================================
   BENEFITS
   ============================================================ */
.benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 26px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: var(--shadow-sm);
}

.benefit strong {
    display: block;
    font-size: .9rem;
}

.benefit span {
    font-size: .78rem;
    color: var(--muted);
}

.benefit-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.icon-mint {
    background: var(--mint-soft);
    color: var(--teal-grad-b);
}

.icon-blue {
    background: var(--blue-soft);
    color: #4a8bb5;
}

.icon-pink {
    background: var(--pink-soft);
    color: #d07e6c;
}

/* ============================================================
   CATEGORY GRID
   ============================================================ */
.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 18px;
    margin-top: 28px;
}

.cat-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 130px;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow-sm);
}

.cat-tall {
    grid-row: span 2;
    min-height: 280px;
}

.cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .45) 100%);
}

.cat-text {
    position: relative;
    color: #fff;
    padding: 18px 20px;
    z-index: 1;
}

.cat-text strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
}

.cat-text small {
    font-size: .78rem;
    opacity: .92;
}

.cat-girls {
    background: linear-gradient(135deg, #e7b9ad 0%, #b96b6f 55%, #5a2f3d 100%);
}

.cat-boys {
    background: linear-gradient(135deg, #cfd4d8 0%, #aeb4ba 100%);
}

.cat-new {
    background: linear-gradient(135deg, #8a7355 0%, #5a4a38 100%);
}

/* ============================================================
   TRENDING
   ============================================================ */
.trending-wrap {
    background: #eef1f2;
    margin-top: 46px;
    padding: 44px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 26px;
}

.section-head h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

.section-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .88rem;
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mint-dark);
    font-weight: 600;
    font-size: .85rem;
}

.view-all:hover {
    gap: 9px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.product-thumb {
    display: block;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
}

.prod-jacket {
    background: linear-gradient(135deg, #d4f3eb 0%, #9bdfd0 100%);
}

.prod-boots {
    background: linear-gradient(135deg, #e9ddcf 0%, #cbb393 100%);
}

.prod-sweater {
    background: linear-gradient(135deg, #f7ddd1 0%, #efb3a0 100%);
}

.prod-overalls {
    background: linear-gradient(135deg, #cfd9e6 0%, #6d7d96 100%);
}

.product-info {
    padding: 14px 16px 18px;
}

.product-tag {
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .6px;
    color: var(--teal-grad-b);
}

.product-info h3 {
    font-size: .92rem;
    font-weight: 600;
    margin: 5px 0 8px;
}

.product-price {
    font-weight: 700;
    font-size: 1rem;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-wrap {
    margin: 48px auto;
}

.newsletter {
    background: linear-gradient(120deg, var(--teal-grad-a) 0%, var(--teal-grad-b) 100%);
    border-radius: var(--radius-lg);
    padding: 38px 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.newsletter h2 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.newsletter-copy p {
    color: rgba(255, 255, 255, .9);
    font-size: .9rem;
    margin: 8px 0 0;
    max-width: 360px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex: 1 1 320px;
    max-width: 420px;
}

.newsletter-form input {
    flex: 1;
    border: none;
    border-radius: 9px;
    padding: 12px 16px;
    font: inherit;
    font-size: .88rem;
    outline: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #eef1f2;
    border-top: 1px solid var(--line);
    padding-top: 42px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 30px;
}

.footer-tagline {
    color: var(--body);
    font-size: .85rem;
    margin: 14px 0 18px;
    max-width: 260px;
}

.social-row {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--body);
    background: #fff;
    border: 1px solid var(--line);
    transition: color .15s ease, transform .15s ease;
}

.social-btn:hover {
    color: var(--mint-dark);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .4px;
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--body);
    font-size: .85rem;
}

.footer-col a:hover {
    color: var(--mint-dark);
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .78rem;
    color: var(--muted);
}

.legal-links {
    display: flex;
    gap: 22px;
}

.legal-links a:hover {
    color: var(--mint-dark);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .main-nav {
        display: none;
    }

    .search {
        width: 150px;
    }
}

@media (max-width: 680px) {
    .benefits {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .cat-tall {
        grid-row: auto;
        min-height: 160px;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .newsletter {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .search {
        display: none;
    }
}

/* ---------- Logged-in greeting in header ---------- */
.user-greeting {
    font-size: .82rem;
    font-weight: 600;
    color: var(--mint-dark);
    white-space: nowrap;
}

@media (max-width: 600px) {
    .user-greeting {
        display: none;
    }
}

/* ============================================================
   SHOP / PRODUCT LISTING PAGE
   ============================================================ */
.shop-intro {
    padding-top: 40px;
    padding-bottom: 8px;
}

.shop-intro h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--mint-dark);
    letter-spacing: -.4px;
    margin-bottom: 10px;
}

.shop-intro p {
    color: var(--body);
    font-size: .95rem;
    max-width: 560px;
    margin: 0;
}

.shop-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: start;
    margin-top: 28px;
    margin-bottom: 56px;
}

/* ---------- Filters sidebar ---------- */
.filters {
    position: sticky;
    top: 88px;
}

.filter-group {
    margin-bottom: 26px;
}

.filter-group h3 {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}

.filter-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    color: var(--ink);
    margin-bottom: 12px;
    cursor: pointer;
    user-select: none;
}

.filter-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--mint-dark);
    cursor: pointer;
}

.pill-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pill {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: .85rem;
    color: var(--body);
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    text-align: left;
}

.pill:hover {
    border-color: var(--mint);
}

.pill.is-selected {
    background: var(--mint);
    border-color: var(--mint);
    color: #fff;
    font-weight: 600;
}

.filter-apply {
    width: 100%;
    margin-top: 4px;
}

/* ---------- Toolbar (count + sort) ---------- */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.result-count {
    font-size: .9rem;
    color: var(--body);
}

.sort-form {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .88rem;
    color: var(--muted);
}

.sort-form select {
    font: inherit;
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink);
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 9px 32px 9px 14px;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6571' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
}

.sort-form select:focus {
    border-color: var(--mint);
}

/* ---------- Product grid ---------- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.shop-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease;
}

.shop-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.shop-thumb {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    background-size: cover;
    background-position: center;
}

.shop-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--pink);
    color: #7a2e22;
    font-size: .68rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

.shop-badge.badge-seller {
    background: var(--mint-soft);
    color: var(--mint-dark);
}

.shop-card-body {
    padding: 14px 16px 18px;
}

.shop-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.shop-card-head h3 {
    font-size: .95rem;
    font-weight: 600;
    color: var(--ink);
}

.shop-price {
    font-weight: 700;
    font-size: .92rem;
    color: var(--teal-grad-b);
    white-space: nowrap;
}

.shop-meta {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--muted);
    margin: 6px 0 12px;
}

.swatches {
    display: flex;
    gap: 7px;
    margin-bottom: 12px;
}

.swatch {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .12);
    display: inline-block;
}

.size-row {
    display: flex;
    gap: 7px;
}

.size-chip {
    font-size: .68rem;
    font-weight: 600;
    color: var(--body);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 3px 8px;
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page-num,
.page-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--body);
    font-size: .88rem;
    font-weight: 600;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.page-num:hover,
.page-arrow:hover {
    border-color: var(--mint);
    color: var(--mint-dark);
}

.page-num.is-active {
    background: var(--mint-dark);
    border-color: var(--mint-dark);
    color: #fff;
}

.page-arrow.is-disabled {
    opacity: .4;
    pointer-events: none;
}

/* ---------- Shop responsive ---------- */
@media (max-width: 900px) {
    .shop-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .filters {
        position: static;
    }

    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }

    .shop-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}