/*
Theme Name: Askari Fashion
Theme URI: https://askarifashion.com
Author: Askari Fashion
Author URI: https://askarifashion.com
Description: A modern, minimalist fashion blog theme with a white canvas, bold black typography, crimson accents, an interactive 3D handbag hero, category tiles, a dynamic article grid, newsletter sign-up and social media sections.
Version: 1.0.9
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: askari-fashion
Tags: blog, news, fashion, one-column, grid-layout, custom-menu, featured-images, custom-logo, threaded-comments
*/

:root {
  --af-bg: #ffffff;
  --af-ink: #0a0a0a;
  --af-muted: #6b6b6b;
  --af-line: #e8e8e8;
  --af-brand: #d6204a;
  --af-brand-soft: #fdeef1;
  --af-gold: #c8a45c;
  --af-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --af-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --af-max: 1280px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--af-bg);
  color: var(--af-ink);
  font-family: var(--af-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; letter-spacing: -0.02em; }
p { margin: 0; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.skip-link:focus {
  clip: auto; width: auto; height: auto;
  top: 8px; left: 8px; z-index: 1000;
  background: var(--af-ink); color: #fff; padding: 10px 16px;
}

.af-container { max-width: var(--af-max); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .af-container { padding: 0 32px; } }

.af-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.3em; color: rgba(10,10,10,.6);
}
.af-eyebrow::before { content: ""; width: 40px; height: 2px; background: var(--af-brand); }

.af-serif-accent { font-family: var(--af-serif); font-style: italic; font-weight: 400; text-transform: none; color: var(--af-brand); letter-spacing: -0.01em; }

.af-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 28px; border-radius: 999px;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .15em;
  border: 1px solid var(--af-ink); transition: background .25s, color .25s, transform .25s;
  cursor: pointer; font-family: inherit;
}
.af-btn--brand { background: var(--af-brand); border-color: var(--af-brand); color: #fff; box-shadow: 0 10px 30px -10px rgba(214,32,74,.5); }
.af-btn--brand:hover { background: var(--af-ink); border-color: var(--af-ink); }
.af-btn--ghost:hover { background: var(--af-ink); color: #fff; }

/* Header */
.af-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.af-header.is-scrolled { border-color: var(--af-line); }
.af-topbar { background: var(--af-ink); color: #fff; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; text-align: center; padding: 8px 12px; }
.af-topbar strong { color: var(--af-brand); }
.af-header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.af-logo { font-size: 22px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.04em; }
.af-logo span { color: var(--af-brand); }
.af-logo img { max-height: 44px; width: auto; }

.af-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.af-nav a { position: relative; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; padding: 6px 0; }
.af-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--af-brand); transform: scaleX(0); transform-origin: right; transition: transform .3s; }
.af-nav a:hover::after, .af-nav .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }

.af-header__actions { display: flex; align-items: center; gap: 12px; }
.af-menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.af-menu-toggle span { display: block; width: 24px; height: 2px; background: var(--af-ink); margin: 5px 0; transition: transform .3s, opacity .3s; }

@media (max-width: 960px) {
  .af-menu-toggle { display: block; }
  .af-header__actions .af-btn { display: none; }
  .af-nav { position: fixed; inset: 108px 0 0 0; background: #fff; transform: translateX(100%); transition: transform .4s ease; padding: 32px 20px; }
  .af-nav.is-open { transform: none; }
  .af-nav ul { flex-direction: column; gap: 0; }
  .af-nav li { border-bottom: 1px solid var(--af-line); }
  .af-nav a { display: block; font-size: 28px; font-weight: 900; letter-spacing: -0.02em; padding: 18px 0; }
  .af-nav a::after { display: none; }
  .af-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .af-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .af-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

.af-main { padding-top: 108px; }

/* Hero */
.af-hero { position: relative; overflow: hidden; }
.af-hero__grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; min-height: calc(100vh - 108px); padding: 40px 0; }
@media (min-width: 1024px) { .af-hero__grid { grid-template-columns: 1fr 1fr; } }
.af-hero__copy { display: flex; flex-direction: column; gap: 32px; position: relative; z-index: 2; }
.af-hero h1 { font-size: clamp(56px, 8vw, 112px); font-weight: 900; text-transform: uppercase; line-height: .85; letter-spacing: -0.05em; }
.af-hero h1 .af-serif-accent { display: block; }
.af-hero__lead { max-width: 440px; font-size: 18px; color: rgba(10,10,10,.7); }
.af-hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; }
.af-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 440px; padding-top: 24px; border-top: 1px solid var(--af-line); margin: 16px 0 0; }
.af-stats dd { margin: 0; }
.af-stats .v { font-size: 30px; font-weight: 900; letter-spacing: -0.03em; }
.af-stats .l { font-size: 11px; text-transform: uppercase; letter-spacing: .15em; color: rgba(10,10,10,.5); }

.af-hero__stage { position: relative; width: 100%; aspect-ratio: 1 / 1; }
@media (min-width: 1024px) { .af-hero__stage { aspect-ratio: auto; height: min(80vh, 720px); } }
.af-hero__monogram { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--af-serif); font-style: italic; font-size: 38vw; line-height: 1; color: rgba(214,32,74,.08); pointer-events: none; user-select: none; }
@media (min-width: 1024px) { .af-hero__monogram { font-size: 22vw; } }
.af-hero__canvas { position: relative; width: 100%; height: 100%; cursor: grab; }
.af-hero__canvas:active { cursor: grabbing; }
.af-hero__canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.af-hero__caption { position: absolute; right: 8px; bottom: 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .2em; color: rgba(10,10,10,.5); }
.af-hero__fallback { position: absolute; inset: 15%; border-radius: 50%; background: #111 center / cover no-repeat; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.af-hero__canvas.is-ready .af-hero__fallback { display: none; }

/* Marquee */
.af-marquee { background: var(--af-brand); color: #fff; overflow: hidden; padding: 18px 0; }
.af-marquee__track { display: flex; width: max-content; gap: 48px; animation: af-marquee 32s linear infinite; }
.af-marquee__track span { font-size: 22px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; white-space: nowrap; display: flex; align-items: center; gap: 48px; }
.af-marquee__track span::after { content: "\2726"; color: var(--af-ink); font-size: 16px; }
@keyframes af-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .af-marquee__track { animation: none; } }

/* Sections */
.af-section { padding: 96px 0; }
.af-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; }
.af-section__head h2 { font-size: clamp(40px, 5vw, 72px); font-weight: 900; text-transform: uppercase; letter-spacing: -0.04em; margin-top: 16px; }
.af-link { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; border-bottom: 2px solid var(--af-brand); padding-bottom: 4px; }
.af-link:hover { color: var(--af-brand); }

/* Categories */
.af-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .af-cats { grid-template-columns: repeat(5, 1fr); } }
.af-cat { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 16px; background: #111; }
.af-cat img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease, opacity .4s; opacity: .85; }
.af-cat:hover img { transform: scale(1.08); opacity: 1; }
.af-cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75), transparent 55%); }
.af-cat__label { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; color: #fff; display: flex; justify-content: space-between; align-items: flex-end; }
.af-cat__label strong { font-size: 18px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; }
.af-cat__label small { font-size: 11px; background: var(--af-brand); padding: 3px 9px; border-radius: 999px; }

/* Article filters + grid */
.af-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.af-filter { font-family: inherit; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--af-line); background: #fff; cursor: pointer; transition: all .25s; }
.af-filter:hover { border-color: var(--af-ink); }
.af-filter.is-active { background: var(--af-ink); color: #fff; border-color: var(--af-ink); }

.af-grid { display: grid; grid-template-columns: 1fr; gap: 32px; grid-auto-flow: dense; }
@media (min-width: 768px) { .af-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .af-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .af-card--large { grid-column: span 2; grid-row: span 2; } }
@media (min-width: 1024px) { .af-card--tall { grid-row: span 2; } }

.af-card { display: flex; flex-direction: column; gap: 16px; }
.af-card[hidden] { display: none; }
.af-card__media { position: relative; overflow: hidden; border-radius: 16px; background: #f4f4f4; aspect-ratio: 4 / 5; flex: 1; min-height: 260px; }
.af-card--large .af-card__media { aspect-ratio: 16 / 11; }
.af-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.af-card:hover .af-card__media img { transform: scale(1.05); }
.af-card__badge { position: absolute; top: 16px; left: 16px; background: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; padding: 6px 12px; border-radius: 999px; }
.af-card__badge--brand { background: var(--af-brand); color: #fff; }
.af-card__meta { font-size: 11px; text-transform: uppercase; letter-spacing: .15em; color: var(--af-muted); display: flex; gap: 10px; flex-wrap: wrap; }
.af-card__meta .dot { color: var(--af-brand); }
.af-card h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; transition: color .25s; }
.af-card--large h3 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 900; }
.af-card:hover h3 { color: var(--af-brand); }
.af-card__excerpt { color: rgba(10,10,10,.65); font-size: 15px; }

/* Newsletter */
.af-newsletter { background: var(--af-ink); color: #fff; border-radius: 28px; padding: 64px 28px; position: relative; overflow: hidden; }
@media (min-width: 768px) { .af-newsletter { padding: 96px 72px; } }
.af-newsletter::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(214,32,74,.55), transparent 65%); }
.af-newsletter__inner { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .af-newsletter__inner { grid-template-columns: 1.2fr 1fr; } }
.af-newsletter h2 { font-size: clamp(40px, 5vw, 72px); font-weight: 900; text-transform: uppercase; letter-spacing: -0.04em; margin-top: 16px; }
.af-newsletter .af-eyebrow { color: rgba(255,255,255,.7); }
.af-newsletter p.lead { color: rgba(255,255,255,.7); margin-top: 20px; max-width: 460px; }
.af-form { display: flex; flex-direction: column; gap: 12px; }
.af-form__row { display: flex; gap: 8px; background: #fff; border-radius: 999px; padding: 6px; }
.af-form input[type="email"] { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 18px; font: inherit; color: var(--af-ink); outline: none; }
.af-form small { color: rgba(255,255,255,.55); font-size: 12px; }
.af-form__msg { font-size: 14px; padding: 12px 16px; border-radius: 12px; background: rgba(255,255,255,.08); }
.af-form__msg--ok { border-left: 3px solid #4ade80; }
.af-form__msg--err { border-left: 3px solid var(--af-brand); }

/* Social */
.af-social { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 1024px) { .af-social { grid-template-columns: repeat(4, 1fr); } }
.af-social a { display: flex; flex-direction: column; gap: 32px; padding: 28px; border: 1px solid var(--af-line); border-radius: 20px; transition: all .3s; }
.af-social a:hover { background: var(--af-brand); color: #fff; border-color: var(--af-brand); transform: translateY(-4px); }
.af-social .name { font-size: 22px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; }
.af-social .handle { font-size: 13px; opacity: .65; }
.af-social .count { font-size: 36px; font-weight: 900; letter-spacing: -0.04em; }
.af-feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
@media (min-width: 768px) { .af-feed { grid-template-columns: repeat(6, 1fr); } }
.af-feed a { aspect-ratio: 1; overflow: hidden; border-radius: 12px; position: relative; }
.af-feed img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.af-feed a:hover img { transform: scale(1.1); }

/* Footer */
.af-footer { border-top: 1px solid var(--af-line); padding: 72px 0 32px; margin-top: 48px; }
.af-footer__grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .af-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.af-footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .2em; margin-bottom: 16px; color: var(--af-muted); }
.af-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.af-footer ul a:hover { color: var(--af-brand); }
.af-footer__wordmark { font-size: clamp(56px, 13vw, 200px); font-weight: 900; text-transform: uppercase; letter-spacing: -0.06em; line-height: .8; margin: 64px 0 24px; }
.af-footer__wordmark span { color: var(--af-brand); }
.af-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--af-muted); border-top: 1px solid var(--af-line); padding-top: 24px; }

/* Single / archive */
.af-page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--af-line); margin-bottom: 48px; }
.af-page-head h1 { font-size: clamp(40px, 6vw, 88px); font-weight: 900; text-transform: uppercase; letter-spacing: -0.04em; margin-top: 16px; }
.af-single { max-width: 760px; margin: 0 auto; padding: 48px 0 96px; }
.af-single__hero { border-radius: 20px; overflow: hidden; margin: 32px 0 48px; }
.af-single h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 900; letter-spacing: -0.03em; margin-top: 16px; }
.af-content { font-size: 18px; line-height: 1.8; }
.af-content > * + * { margin-top: 1.4em; }
.af-content a { color: var(--af-brand); text-decoration: underline; }
.af-content blockquote { border-left: 4px solid var(--af-brand); margin: 2em 0; padding: 4px 0 4px 24px; font-family: var(--af-serif); font-style: italic; font-size: 26px; }
.af-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 64px; }
.af-pagination .page-numbers { padding: 10px 16px; border: 1px solid var(--af-line); border-radius: 999px; font-size: 13px; }
.af-pagination .current { background: var(--af-ink); color: #fff; border-color: var(--af-ink); }

/* WordPress core classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, .wp-element-caption { font-size: 13px; color: var(--af-muted); margin-top: 8px; }
.sticky, .gallery-caption, .bypostauthor { }

/* Reveal on scroll */
.af-reveal { transition: opacity .8s ease, transform .8s ease; }
.af-js .af-reveal { opacity: 0; transform: translateY(24px); }
.af-js .af-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .af-js .af-reveal { opacity: 1; transform: none; } }

/* Hero 3D product switcher */
.af-hero__tabs { position: absolute; left: 8px; bottom: 36px; z-index: 3; display: flex; flex-wrap: wrap; gap: 8px; max-width: 100%; }
.af-hero__tab { appearance: none; border: 1px solid var(--af-ink); background: #fff; color: var(--af-ink); font: 700 11px/1 var(--af-sans); letter-spacing: .18em; text-transform: uppercase; padding: 10px 14px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.af-hero__tab:hover { background: var(--af-brand-soft); }
.af-hero__tab.is-active { background: var(--af-ink); color: #fff; }

/* Hero brand name */
.af-hero__brand { margin: -8px 0 -8px; font-size: clamp(22px, 2.6vw, 34px); font-weight: 900; text-transform: uppercase; letter-spacing: .3em; line-height: 1; }
.af-hero__brand span { color: var(--af-brand); }
