:root {
    --bg: #f5f7fb;
    --navy: #0d1b3a;
    --navy-soft: #1a2d54;
    --primary: #ff7a59;
    --primary-dark: #f25c3d;
    --accent: #ffd166;
    --text: #192133;
    --muted: #68758f;
    --card: #ffffff;
    --line: rgba(17, 24, 39, 0.08);
    --shadow: 0 18px 40px rgba(11, 28, 58, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'DM Sans', 'Manrope', sans-serif;
    background: linear-gradient(180deg, #f6f8fc 0%, #eef4ff 100%);
    color: var(--text);
}

a { text-decoration: none; color: inherit; }

button, input { font: inherit; }

.header {
    height: 78px;
    background: #101c3a;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: static;
    z-index: 100;
    box-shadow: 0 5px 25px rgba(0,0,0,.12);
}

.logo {
    color: white;
    font-family: 'Manrope', sans-serif;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    text-transform: uppercase;
}

.logo span {
    color: #ffd43b;
}

.logo small {
    display: block;
    color: #aebbd6;
    font-family: 'DM Sans', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-top: 6px;
}

.header-search {
    display: flex;
    align-items: center;
    background: white;
    height: 45px;
    border-radius: 9px;
    max-width: 570px;
    width: 100%;
    overflow: hidden;
}

.header-search span {
    padding: 0 13px;
    color: #667085;
    font-size: 25px;
}

.header-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: none;
    outline: none;
    font-size: 13px;
    background: transparent;
    color: #172033;
}

.header-search input::placeholder {
    color: #667085;
}

.header-search button {
    height: 100%;
    padding: 0 20px;
    border: none;
    background: #315cf5;
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 17px;
    white-space: nowrap;
}

.header-link {
    color: white;
    font-size: 13px;
    font-weight: 600;
}

.account-btn {
    background: rgba(255,255,255,.1);
    color: white;
    padding: 11px 15px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.publish-btn,
.primary-btn {
    background: #ffd43b;
    color: #101c3a;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.secondary-btn {
    background: rgba(13, 27, 58, 0.06);
    color: var(--navy);
    border: 1px solid rgba(13, 27, 58, 0.12);
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 12px;
    font-weight: 700;
}

.follow-btn {
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid rgba(49, 92, 245, 0.22);
    border-radius: 8px;
    background: #edf2ff;
    color: #2449d8;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.follow-btn[hidden] {
    display: none;
}

.follow-btn[aria-pressed="true"] {
    background: #eaf8f0;
    border-color: rgba(22, 163, 106, 0.25);
    color: #147d52;
}

.follow-btn:disabled {
    cursor: wait;
    opacity: .7;
}

.follow-status {
    flex-basis: 100%;
    color: var(--muted);
    font-size: .85rem;
}

.navigation {
    height: 54px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 38px;
    border-bottom: 1px solid #e9edf4;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0 20px;
}

.navigation a {
    height: 100%;
    display: flex;
    align-items: center;
    color: #677187;
    font-size: 13px;
    font-weight: 700;
    position: relative;
}

.navigation a:hover,
.navigation a.active {
    color: #315cf5;
}

.navigation a.active::after {
    content: "";
    position: absolute;
    height: 3px;
    width: 100%;
    background: #315cf5;
    bottom: 0;
    left: 0;
    border-radius: 5px;
}

.page-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.shop-hero {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.shop-banner {
    min-height: 220px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #101f40, #ff7a59);
}

.shop-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 24px 28px 30px;
    background: rgba(255,255,255,0.9);
}

.shop-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.shop-logo {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #101f40, #ff7a59);
    color: white;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: 0 18px 35px rgba(16,31,64,0.25);
    overflow: hidden;
}

.shop-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff4ee;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.73rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.shop-info h1 {
    margin: 10px 0 6px;
    font-size: clamp(2rem, 2.8vw, 3rem);
    line-height: 1.1;
}

.shop-info p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.shop-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-btn.small, .secondary-btn.small {
    padding: 10px 14px;
    font-size: 0.9rem;
}

.info-layout {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 26px;
    margin-top: 28px;
}

.info-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.section-title {
    margin-bottom: 16px;
}

.section-title span {
    display: inline-block;
    color: var(--primary-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title h2 {
    margin: 0;
    font-size: 1.8rem;
}

.description-card p {
    margin: 10px 0 22px;
    font-size: 1.04rem;
    line-height: 1.8;
    color: var(--muted);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 16px;
}

.metric-grid div {
    background: #f9fafc;
    border: 1px solid rgba(17,24,39,0.05);
    border-radius: 18px;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metric-grid strong {
    font-size: 1.2rem;
    color: var(--navy);
}

.metric-grid span {
    color: var(--muted);
    font-size: 0.88rem;
}

.store-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.store-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.store-list li:last-child { border-bottom: none; }

.store-list span {
    color: var(--muted);
}

.store-list strong {
    color: var(--navy);
    font-size: 0.95rem;
    text-align: right;
}

.products-section {
    margin-top: 34px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.eyebrow {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,122,89,0.12);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-dark);
}

.section-head h2 {
    margin: 12px 0 0;
    font-size: clamp(1.8rem, 2.4vw, 2.5rem);
}

.back-link {
    color: var(--navy);
    font-weight: 700;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.product-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-body {
    padding: 18px 18px 20px;
}

.product-tag {
    display: inline-flex;
    padding: 6px 10px;
    background: #fff4ee;
    color: var(--primary-dark);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.product-body h3 {
    margin: 14px 0 8px;
    font-size: 1.4rem;
}

.product-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    margin-top: 14px;
    font-size: 0.88rem;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.price-row strong {
    font-size: 1.5rem;
    color: var(--navy);
}

.price-row span {
    color: var(--muted);
    text-decoration: line-through;
    font-size: 0.9rem;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.footer {
    background: #0d1730;
    color: rgba(255,255,255,.8);
    padding: 42px 6% 28px;
    margin-top: 60px;
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: inline-block;
}

.footer-brand p {
    margin: 18px 0 0;
    line-height: 1.8;
    color: rgba(255,255,255,.7);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column h4 {
    margin: 0 0 8px;
    color: white;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer-column a {
    color: rgba(255,255,255,.72);
    font-size: 0.95rem;
    transition: opacity .2s ease;
}

.footer-column a:hover {
    opacity: 1;
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 26px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.12);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: rgba(255,255,255,.7);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
}

@media (max-width: 980px) {
    .header {
        flex-wrap: wrap;
        padding: 18px 20px;
    }

    .info-layout {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
    }

    .footer-main {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 640px) {
    .header-search {
        order: 3;
        width: 100%;
        max-width: none;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .shop-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .metric-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .header-actions > .header-link,
    .header-actions > .account-btn {
        display: none;
    }
}
