/*
Theme Name: Northside Collective
Theme URI: https://northsidecollective.shop/
Author: Northside Collective LLC
Description: A warm, original storefront theme for Northside Collective.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: northside-collective
*/

:root {
    --ns-ink: #202423;
    --ns-muted: #69716f;
    --ns-paper: #f7f5f0;
    --ns-white: #fffdf9;
    --ns-sage: #cbd8c5;
    --ns-clay: #d88968;
    --ns-yellow: #f1cf78;
    --ns-blue: #b9d7df;
    --ns-line: #dedfd8;
    --ns-max: 1240px;
    --ns-radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ns-paper); color: var(--ns-ink); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, .ns-button { cursor: pointer; }
.ns-container { width: min(calc(100% - 40px), var(--ns-max)); margin-inline: auto; }
.ns-eyebrow { margin: 0 0 12px; color: var(--ns-muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ns-title { margin: 0; font-size: clamp(30px, 4vw, 58px); font-weight: 400; line-height: 1.05; letter-spacing: 0; }
.ns-section { padding: 84px 0; }
.ns-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid var(--ns-ink); border-radius: var(--ns-radius); background: var(--ns-ink); color: var(--ns-white); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: background .2s ease, color .2s ease; }
.ns-button:hover { background: transparent; color: var(--ns-ink); }
.ns-button--light { border-color: var(--ns-white); background: var(--ns-white); color: var(--ns-ink); }
.ns-button--light:hover { background: transparent; color: var(--ns-white); }
.ns-announcement { padding: 9px 20px; background: var(--ns-ink); color: var(--ns-white); font-size: 11px; letter-spacing: .05em; text-align: center; }
.ns-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--ns-line); background: rgba(247,245,240,.96); backdrop-filter: blur(8px); }
.ns-header__inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.ns-brand { font-size: 18px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; white-space: nowrap; }
.ns-nav { display: flex; align-items: center; gap: 25px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.ns-nav a:hover, .ns-footer a:hover { color: var(--ns-clay); }
.ns-tools { display: flex; align-items: center; gap: 16px; }
.ns-tool { display: inline-grid; min-width: 28px; min-height: 28px; place-items: center; border: 0; background: transparent; color: var(--ns-ink); }
.ns-tool svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.ns-cart-count { display: inline-grid; min-width: 16px; height: 16px; margin-left: 2px; place-items: center; border-radius: 50%; background: var(--ns-clay); color: #fff; font-size: 9px; font-weight: 700; }
.ns-menu-toggle { display: none; border: 0; background: transparent; }
.ns-menu-toggle span { display: block; width: 22px; height: 1px; margin: 5px 0; background: var(--ns-ink); }

.ns-hero { display: grid; min-height: 600px; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); background: var(--ns-sage); }
.ns-hero__copy { display: flex; flex-direction: column; justify-content: center; padding: 80px max(40px, calc((100vw - var(--ns-max)) / 2)); padding-right: 52px; }
.ns-hero__copy .ns-title { max-width: 560px; }
.ns-hero__copy p { max-width: 430px; margin: 24px 0 30px; color: #42504a; font-size: 18px; }
.ns-hero__art { min-height: 520px; background: var(--ns-blue) url('assets/hero.svg') center / cover no-repeat; }
.ns-note { padding: 14px 20px; border-bottom: 1px solid var(--ns-line); background: #fff7db; color: #5e4b1f; font-size: 12px; text-align: center; }

.ns-section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.ns-section-head h2 { margin: 0; font-size: 30px; font-weight: 400; }
.ns-text-link { border-bottom: 1px solid var(--ns-ink); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ns-categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ns-category { min-height: 200px; display: flex; flex-direction: column; justify-content: end; padding: 22px; background: var(--ns-white); }
.ns-category:nth-child(2) { background: var(--ns-yellow); }
.ns-category:nth-child(3) { background: var(--ns-blue); }
.ns-category:nth-child(4) { background: var(--ns-clay); }
.ns-category__art { height: 112px; margin-bottom: 12px; background-position: center; background-repeat: no-repeat; background-size: contain; }
.ns-category h3 { margin: 0; font-size: 17px; font-weight: 400; }
.ns-category span { color: var(--ns-muted); font-size: 12px; }
.ns-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 16px; }
.ns-product-card { min-width: 0; }
.ns-product-card__media { position: relative; aspect-ratio: 1 / 1.06; overflow: hidden; background: var(--ns-white); }
.ns-product-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease; }
.ns-product-card:hover img { transform: scale(1.03); }
.ns-product-card__body { padding-top: 12px; }
.ns-product-card h3 { margin: 0 0 5px; font-size: 15px; font-weight: 400; }
.ns-price { color: var(--ns-clay); font-size: 14px; font-weight: 700; }
.ns-price del { margin-left: 7px; color: var(--ns-muted); font-weight: 400; }
.ns-quick-add { position: absolute; right: 10px; bottom: 10px; padding: 8px 10px; border: 0; background: var(--ns-ink); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease; }
.ns-product-card:hover .ns-quick-add, .ns-product-card:focus-within .ns-quick-add { opacity: 1; transform: translateY(0); }

.ns-editorial { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 460px; background: var(--ns-clay); }
.ns-editorial__art { min-height: 420px; background: var(--ns-yellow) url('assets/editorial.svg') center / cover no-repeat; }
.ns-editorial__copy { display: flex; flex-direction: column; justify-content: center; padding: 54px; }
.ns-editorial__copy h2 { max-width: 420px; margin: 0 0 18px; font-size: clamp(30px, 4vw, 54px); font-weight: 400; line-height: 1.05; }
.ns-editorial__copy p { max-width: 390px; margin: 0 0 28px; }
.ns-newsletter { border-block: 1px solid var(--ns-line); text-align: center; }
.ns-newsletter p { color: var(--ns-muted); }
.ns-newsletter form { display: flex; max-width: 480px; margin: 24px auto 0; }
.ns-newsletter input { min-width: 0; flex: 1; padding: 0 14px; border: 1px solid var(--ns-line); background: var(--ns-white); }
.ns-newsletter .ns-button { border-radius: 0 var(--ns-radius) var(--ns-radius) 0; }
.ns-footer { padding: 60px 0 24px; border-top: 1px solid var(--ns-line); background: var(--ns-white); }
.ns-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.ns-footer h2, .ns-footer h3 { margin: 0 0 14px; font-size: 14px; font-weight: 700; }
.ns-footer p, .ns-footer li { color: var(--ns-muted); font-size: 13px; }
.ns-footer ul { margin: 0; padding: 0; list-style: none; }
.ns-footer li { margin-bottom: 8px; }
.ns-footer__bottom { margin-top: 42px; padding-top: 18px; border-top: 1px solid var(--ns-line); color: var(--ns-muted); font-size: 11px; }

.ns-page-head { padding: 76px 0 40px; border-bottom: 1px solid var(--ns-line); }
.ns-page-head p { max-width: 620px; margin: 18px 0 0; color: var(--ns-muted); }
.ns-content { padding: 54px 0 90px; }
.ns-content__narrow { max-width: 820px; }
.ns-content h2 { margin: 38px 0 12px; font-size: 24px; font-weight: 400; }
.ns-content h3 { margin: 28px 0 8px; font-size: 18px; }
.ns-content p, .ns-content li { color: #4d5754; }
.ns-content ul { padding-left: 20px; }
.ns-legal-alert { margin-bottom: 28px; padding: 18px 20px; border-left: 3px solid var(--ns-clay); background: #fff7db; color: #5e4b1f; font-size: 13px; }
.ns-legal-meta { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--ns-line); color: var(--ns-muted); font-size: 13px; }

.woocommerce .site-main, .woocommerce-page .site-main { width: min(calc(100% - 40px), var(--ns-max)); margin: 0 auto; padding: 60px 0 100px; }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 16px; margin: 0 !important; padding: 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; }
.woocommerce ul.products li.product img { aspect-ratio: 1 / 1.06; object-fit: contain; background: var(--ns-white); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 10px 0 2px; font-size: 15px; font-weight: 400; }
.woocommerce ul.products li.product .price { color: var(--ns-clay); font-size: 14px; font-weight: 700; }
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); gap: 60px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto; float: none; }
.woocommerce div.product div.images img { background: var(--ns-white); }
.woocommerce div.product .product_title { font-size: clamp(32px, 5vw, 58px); font-weight: 400; line-height: 1.05; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ns-clay); }
.woocommerce div.product form.cart { display: flex; gap: 10px; }
.woocommerce .quantity .qty { width: 70px; height: 46px; border: 1px solid var(--ns-line); background: var(--ns-white); }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { min-height: 46px; border-radius: var(--ns-radius); background: var(--ns-ink); color: #fff; font-size: 12px; text-transform: uppercase; }
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--ns-clay); color: #fff; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border-top-color: var(--ns-clay); background: var(--ns-white); }
.woocommerce-cart .cart-collaterals, .woocommerce-checkout #customer_details, .woocommerce-checkout #order_review { font-size: 14px; }

@media (max-width: 900px) {
    .ns-nav { gap: 14px; }
    .ns-hero { grid-template-columns: 1fr; }
    .ns-hero__copy { padding: 64px 20px; }
    .ns-hero__art { min-height: 350px; }
    .ns-grid, .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .ns-footer__grid { grid-template-columns: repeat(2, 1fr); }
    .woocommerce div.product { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 640px) {
    .ns-container { width: min(calc(100% - 28px), var(--ns-max)); }
    .ns-header__inner { min-height: 62px; gap: 12px; }
    .ns-menu-toggle { display: block; }
    .ns-nav { display: none; position: absolute; top: 62px; right: 14px; left: 14px; padding: 18px; flex-direction: column; align-items: stretch; gap: 16px; border: 1px solid var(--ns-line); background: var(--ns-white); }
    .ns-nav.is-open { display: flex; }
    .ns-tools { gap: 8px; }
    .ns-brand { font-size: 14px; }
    .ns-hero__copy { padding: 54px 14px; }
    .ns-hero__art { min-height: 280px; }
    .ns-section { padding: 58px 0; }
    .ns-section-head { align-items: start; flex-direction: column; gap: 12px; }
    .ns-categories { grid-template-columns: repeat(2, 1fr); }
    .ns-category { min-height: 170px; padding: 16px; }
    .ns-grid, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px 10px; }
    .ns-editorial { grid-template-columns: 1fr; }
    .ns-editorial__art { min-height: 280px; }
    .ns-editorial__copy { padding: 38px 22px; }
    .ns-newsletter form { flex-direction: column; gap: 8px; }
    .ns-newsletter input { min-height: 46px; }
    .ns-newsletter .ns-button { border-radius: var(--ns-radius); }
    .ns-footer__grid { grid-template-columns: 1fr 1fr; gap: 30px 16px; }
    .woocommerce .site-main, .woocommerce-page .site-main { width: min(calc(100% - 28px), var(--ns-max)); padding-top: 40px; }
}
