/* Fashion 1: fashion boutique. DM Sans, pill buttons, full-width banner, round category images, 3:4 photos,
   swipeable product rails. The primary colour leads (buttons, top bar); the secondary adds highlights
   (badges, underlines, icons). Markup: Views/Themes/Fashion1 (_Header with the top bar, _Footer,
   Home/Index, _ProductRail, _RailArrows, _SocialIcon). Loaded after shop.css. */

@font-face {
    font-family: "DM Sans";
    src: url("../fonts/dm-sans.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}
/* DM Sans has no naira or cedi sign: borrow them from Plus Jakarta Sans, downloaded only when a page shows one. */
@font-face {
    font-family: "DM Sans";
    src: url("../fonts/plus-jakarta-sans.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+20A6, U+20B5;
}

:root {
    --sf-bg: #FFFFFF;
    --sf-paper: #FFFFFF;
    --sf-surface: #F7F7F7;
    --sf-surface-hover: #EFEFEF;
    --sf-photo: #F4F4F4;
    --sf-text: #101010;
    --sf-muted: #696E73;
    --sf-border: #E9E9E9;
    --sf-border-strong: #D4D4D6;
    --sf-font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --sf-font-display: var(--sf-font);
    --sf-display-weight: 600;
    --sf-radius: 60px;
    --sf-radius-field: 10px;
    --sf-radius-photo: 0;
    --sf-radius-card: 12px;
    --sf-photo-ratio: 3 / 4;
    --sf-max: 1320px;
    --sf-gutter: 32px;
    --sf-ease: ease;
    --sf-dur: 300ms;
}

body { line-height: 1.6; }
h1, h2 { letter-spacing: -.01em; }
.sf-btn { font-weight: 600; }

/* ── Top bar and header ──────────────────────────────── */
.f1-topbar { background: var(--sf-primary); color: var(--sf-on-primary); font-size: 13px; }
.f1-topbar-in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; min-height: 40px; }
.f1-topbar a { color: inherit; text-decoration: none; }
.f1-topbar-note { margin: 0; padding: 8px 0; text-align: center; font-weight: 500; letter-spacing: .02em; }
.f1-topbar-socials { display: flex; justify-content: flex-end; gap: 4px; }
.f1-topbar-socials a { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; opacity: .9; transition: opacity var(--sf-dur); }
.f1-topbar-socials a:hover { opacity: 1; }

.sf-header { background: var(--sf-bg); border-bottom: 1px solid var(--sf-border); transition: box-shadow var(--sf-dur); }
.sf-header.is-scrolled { box-shadow: 0 6px 24px rgba(16, 16, 16, .07); }
.f1-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 32px; min-height: 80px; }
.sf-menu-toggle { display: none; }
.sf-brand { display: inline-flex; align-items: center; min-width: 0; min-height: 44px; color: var(--sf-text); text-decoration: none; }
.sf-brand img { max-height: 44px; width: auto; }
.sf-wordmark { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.sf-nav ul { display: flex; justify-content: center; gap: 4px 28px; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; list-style: none; }
.sf-nav ul::-webkit-scrollbar { display: none; }
.sf-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--sf-text); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.sf-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--sf-secondary); transform: scaleX(0); transform-origin: left; transition: transform var(--sf-dur); }
.sf-nav a:hover::after, .sf-nav a[aria-current]::after { transform: scaleX(1); }
.f1-bar-end { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.f1-bar-end .sf-icon-btn { border-radius: 50%; color: var(--sf-text); transition: background var(--sf-dur); }
.f1-bar-end .sf-icon-btn:hover { background: var(--sf-surface); }
.sf-cart-link { position: relative; }
.sf-cart-count { position: absolute; top: 2px; right: 0; display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
    background: var(--sf-secondary); color: var(--sf-on-secondary); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.sf-cart-count[data-cart-count="0"] { display: none; }

/* ── Home: hero ──────────────────────────────────────── */
.f1-eyebrow { margin: 0 0 14px; color: var(--sf-secondary-ink); font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.f1-hero { position: relative; overflow: hidden; background: var(--sf-surface); background: color-mix(in srgb, var(--sf-primary) 8%, #fff); }
.f1-hero-in { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 56px; min-height: 520px; padding-top: 56px; padding-bottom: 56px; }
.f1-hero-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.f1-hero h1 { margin: 0 0 32px; font-size: clamp(36px, 6vw, 80px); font-weight: 500; line-height: 1.08; letter-spacing: .02em; overflow-wrap: anywhere; }
.f1-hero-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.f1-hero-picks-1 { grid-template-columns: minmax(0, 260px); justify-content: center; }
.f1-hero-picks-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.f1-hero-picks a { display: block; overflow: hidden; aspect-ratio: 3 / 4; background: #fff; transition: transform var(--sf-dur); }
.f1-hero-picks a:nth-child(2) { transform: translateY(28px); }
.f1-hero-picks a:hover { transform: translateY(-4px); }
.f1-hero-picks a:nth-child(2):hover { transform: translateY(24px); }
.f1-hero-picks img { width: 100%; height: 100%; object-fit: contain; }

/* With the merchant's banner: full width, text over a dark fade so white always reads. */
.f1-hero-image { display: flex; align-items: center; min-height: clamp(420px, 38vw, 730px); background: #1a1a1a; color: #fff; }
.f1-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.f1-hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .15) 70%, rgba(0, 0, 0, 0)); }
.f1-hero-image .f1-hero-in { position: relative; z-index: 1; min-height: 0; }
.f1-hero-image .f1-hero-text { max-width: 720px; }
.f1-hero-image .f1-eyebrow { color: #fff; }

/* ── Home: sections, rails, categories ───────────────── */
.f1-section { padding-top: 80px; }
.f1-head { margin-bottom: 36px; text-align: center; }
.f1-head h2 { margin: 0 0 8px; font-size: clamp(26px, 1rem + 1.6vw, 40px); font-weight: 600; }
.f1-head p { margin: 0; color: var(--sf-muted); }
.f1-head a { color: var(--sf-text); font-weight: 600; text-underline-offset: 4px; }
.f1-head a:hover { color: var(--sf-primary-ink); }

.f1-rail-wrap { position: relative; }
.f1-rail { --f1-per-view: 4; --f1-gap: 30px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--f1-per-view) - 1) * var(--f1-gap)) / var(--f1-per-view)); gap: var(--f1-gap);
    margin: 0; padding: 0 0 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; list-style: none; }
/* A short row (a small store) sits centred under its centred heading. "safe" keeps a row that overflows
   starting at the left, where it can scroll; browsers without "safe" ignore the line and align left. */
.f1-rail { justify-content: safe center; }
.f1-rail::-webkit-scrollbar { display: none; }
.f1-rail > * { scroll-snap-align: start; min-width: 0; }
/* 40% down: about the middle of a 3:4 photo or a round category image, above the names under them. */
.f1-arrow { position: absolute; top: 40%; z-index: 4; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0;
    border: 1px solid var(--sf-border); border-radius: 50%; background: var(--sf-bg); color: var(--sf-text); box-shadow: 0 4px 16px rgba(16, 16, 16, .08); cursor: pointer; transform: translateY(-50%);
    transition: background var(--sf-dur), color var(--sf-dur), border-color var(--sf-dur), opacity var(--sf-dur); }
.f1-arrow[hidden] { display: none; }
.f1-arrow:hover { border-color: var(--sf-secondary); background: var(--sf-secondary); color: var(--sf-on-secondary); }
.f1-arrow:disabled { opacity: 0; pointer-events: none; }
.f1-arrow-prev { left: -23px; }
.f1-arrow-next { right: -23px; }

.f1-cats { --f1-per-view: 6; }
.f1-cat { display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--sf-text); text-align: center; text-decoration: none; }
.f1-cat-img { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 50%; background: var(--sf-photo); }
.f1-cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--sf-dur); }
/* The ring sits over the photo (::after), so the zoomed photo can't cover it. */
.f1-cat-img::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 0 var(--sf-secondary); transition: box-shadow var(--sf-dur); }
.f1-cat:hover .f1-cat-img::after { box-shadow: inset 0 0 0 3px var(--sf-secondary); }
.f1-cat:hover .f1-cat-img img { transform: scale(1.06); }
.f1-cat-letter { color: var(--sf-muted); font-size: 44px; font-weight: 500; text-transform: uppercase; }
.f1-cat-name { font-size: 16px; font-weight: 500; line-height: 1.3; }

/* ── Home: collection banner and service strip ───────── */
.f1-collection { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 460px; }
/* The text panel sets the height; the photo fills its half. */
.f1-collection-img { position: relative; display: block; overflow: hidden; background: var(--sf-photo); }
.f1-collection-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--sf-ease); }
.f1-collection-img:hover img { transform: scale(1.04); }
.f1-collection-text { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 56px 64px; background: var(--sf-surface); background: color-mix(in srgb, var(--sf-secondary) 12%, #fff); }
.f1-collection-text h2 { margin: 0 0 8px; font-size: clamp(30px, 1rem + 2.4vw, 52px); font-weight: 500; line-height: 1.1; overflow-wrap: anywhere; }
.f1-collection-count { margin: 0 0 28px; color: var(--sf-muted); }

.f1-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 48px 0 0; border-top: 1px solid var(--sf-border); list-style: none; }
.f1-services li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.f1-services svg { color: var(--sf-secondary-ink); }
.f1-services h3 { margin: 14px 0 4px; font-size: 17px; font-weight: 600; }
.f1-services h3 a { color: inherit; text-decoration: none; }
.f1-services h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.f1-services p { margin: 0; color: var(--sf-muted); font-size: 14px; }

/* ── Product card: 3:4 photo, a white "Add to cart" pill slides up on hover ── */
.sf-grid { gap: 40px 30px; }
.sf-card-body { padding-top: 14px; }
.sf-card-title { font-size: 15px; font-weight: 500; }
.sf-card .sf-price { color: var(--sf-text); font-weight: 600; }
.sf-badge { border-radius: var(--sf-radius); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.sf-badge-out { background: var(--sf-text); color: #fff; }
.sf-badge-low { background: var(--sf-secondary); color: var(--sf-on-secondary); }
.sf-card-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin-top: 12px; padding: 0 12px; border: 1px solid var(--sf-text); border-radius: var(--sf-radius);
    background: transparent; color: var(--sf-text); font-size: 14px; font-weight: 600; transition: background var(--sf-dur), color var(--sf-dur), border-color var(--sf-dur); }
.sf-card-btn:hover { border-color: var(--sf-primary); background: var(--sf-primary); color: var(--sf-on-primary); }
.sf-card-btn svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) {
    .sf-card-add { grid-area: 1 / 1; align-self: end; z-index: 3; margin: 0 14px 14px; opacity: 0; transform: translateY(12px); transition: opacity var(--sf-dur), transform var(--sf-dur) var(--sf-ease); }
    .sf-card:hover .sf-card-add, .sf-card-add:focus-within { opacity: 1; transform: none; }
    .sf-card-btn { margin: 0; border-color: #fff; background: #fff; box-shadow: 0 4px 14px rgba(16, 16, 16, .1); }
    .sf-card:hover .sf-card-img img { transform: scale(1.05); }
}

/* ── Listing: centred title on a light band ──────────── */
.sf-listing .sf-breadcrumbs { justify-content: center; }
.sf-listing-head { flex-direction: column; align-items: center; padding: 40px 24px; background: var(--sf-surface); text-align: center; }
.sf-listing-title h1 { font-size: 44px; font-weight: 500; }
.sf-listing-intro { margin-left: auto; margin-right: auto; }
.sf-listing-cats .sf-chips { justify-content: center; }
.sf-chip { font-weight: 500; }
.sf-chip[aria-current] { border-color: var(--sf-primary); background: var(--sf-primary); color: var(--sf-on-primary); }
.sf-page-search { margin-left: auto; margin-right: auto; }
.sf-empty > p:first-of-type { font-size: 22px; font-weight: 500; }

/* ── Product page ────────────────────────────────────── */
.sf-pd-brand { color: var(--sf-secondary-ink); font-weight: 600; }
.sf-pd-title { font-weight: 500; letter-spacing: 0; }
.sf-pd-price { font-size: 26px; font-weight: 600; }
.sf-acc summary { font-weight: 600; }

/* ── Cart, checkout, drawer ──────────────────────────── */
.sf-page-title { font-weight: 500; }
.sf-summary { background: var(--sf-surface); }
.sf-step-n { width: 30px; height: 30px; border-radius: 50%; background: var(--sf-primary); color: var(--sf-on-primary); font-size: 14px; }
.sf-summary-q { background: var(--sf-primary); color: var(--sf-on-primary); }
.sf-option { border-radius: 12px; }

/* ── Footer: a light band under a primary-colour rule ── */
.sf-footer { margin-top: 96px; border-top: 3px solid var(--sf-primary); background: var(--sf-surface); color: var(--sf-muted); font-size: 15px; }
.f1-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.f1-footer-brand .sf-brand { margin-bottom: 12px; color: var(--sf-text); }
.f1-footer-brand p { max-width: 24em; margin: 0 0 14px; }
.sf-footer address { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 20px; }
.sf-footer a:hover { color: var(--sf-text); }
.f1-footer-title { margin: 0 0 16px; color: var(--sf-text); font-size: 17px; font-weight: 600; }
.sf-footer li { margin-bottom: 10px; }
.f1-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.sf-footer .f1-socials li { margin: 0; }
.sf-footer .f1-socials a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 8px; border: 1px solid var(--sf-border-strong); border-radius: 20px; color: var(--sf-text);
    transition: background var(--sf-dur), color var(--sf-dur), border-color var(--sf-dur); }
.sf-footer .f1-socials a:hover { border-color: var(--sf-primary); background: var(--sf-primary); color: var(--sf-on-primary); text-decoration: none; }
.sf-footer .f1-footer-wa { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--sf-radius); background: #25D366; color: #0B2E17; font-size: 14px; font-weight: 600; white-space: nowrap; }
.sf-footer .f1-footer-wa:hover { color: #0B2E17; text-decoration: none; }
.f1-footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-top: 20px; padding-bottom: 20px; border-top: 1px solid var(--sf-border); font-size: 13px; }

/* ── Tablet and phone ────────────────────────────────── */
@media (max-width: 1024px) {
    .f1-bar { gap: 20px; }
    .sf-nav ul { justify-content: flex-start; gap: 4px 20px; }
    .f1-rail { --f1-per-view: 3; --f1-gap: 20px; }
    .f1-cats { --f1-per-view: 4; }
    .f1-arrow-prev { left: -10px; }
    .f1-arrow-next { right: -10px; }
    .f1-collection-text { padding: 40px; }
    .f1-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .f1-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .f1-topbar-in { grid-template-columns: minmax(0, 1fr); }
    .f1-topbar-side, .f1-topbar-no-note { display: none; }

    .f1-bar { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; min-height: 60px; }
    .sf-menu-toggle { display: inline-flex; margin-left: -10px; }
    .sf-brand { justify-self: center; max-width: 100%; }
    .sf-brand img { max-height: 36px; }
    .sf-wordmark { font-size: 21px; }
    .sf-nav { display: none; }
    .f1-bar-end { margin-right: -8px; gap: 0; }

    .f1-hero-split { grid-template-columns: minmax(0, 1fr); }
    .f1-hero-in { gap: 32px; min-height: 0; padding-top: 40px; padding-bottom: 48px; }
    .f1-hero h1 { margin-bottom: 24px; }
    .f1-hero-picks a:nth-child(2) { transform: translateY(16px); }
    .f1-hero-image { align-items: flex-end; min-height: 460px; }
    .f1-hero-image::after { background: linear-gradient(0deg, rgba(0, 0, 0, .65), rgba(0, 0, 0, .1) 75%); }
    .f1-eyebrow { font-size: 12px; }

    .f1-section { padding-top: 52px; }
    .f1-head { margin-bottom: 24px; }
    /* Phones: fixed-width columns run edge to edge, so the next card peeks in and invites a swipe. */
    .f1-rail { --f1-gap: 12px; grid-auto-columns: 44%; margin: 0 calc(-1 * var(--sf-gutter)); padding: 0 var(--sf-gutter) 4px; scroll-padding: 0 var(--sf-gutter); }
    .f1-cats { grid-auto-columns: 28%; }
    .f1-cat { gap: 10px; }
    .f1-cat-name { font-size: 14px; }
    .f1-arrow { display: none; }

    .f1-collection { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .f1-collection-img { aspect-ratio: 1; }
    .f1-collection-text { padding: 32px 24px; }
    .f1-services { gap: 28px 16px; padding-top: 36px; }
    .f1-services h3 { font-size: 15px; }
    .f1-services p { font-size: 13px; }

    .sf-grid { gap: 28px 12px; }
    .sf-card-btn { font-size: 13px; }
    .sf-listing-head { padding: 28px 16px; }
    .sf-listing-title h1 { font-size: 30px; }

    .sf-footer { margin-top: 64px; }
    .f1-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 16px; padding-top: 44px; padding-bottom: 32px; }
    .f1-footer-grid > :first-child { grid-column: 1 / -1; }
}
