/*
Theme Name: NIMS Pop Shop
Theme URI: https://socolanims.vn
Author: NIMS Việt Nam
Description: Theme Neobrutalist hiện đại, mobile-first và tương thích WooCommerce dành cho website Socola NIMS.
Version: 2.0.1
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: nims-pop-shop
Tags: e-commerce, woocommerce, custom-logo, custom-menu, featured-images, responsive-layout
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --nims-black: #111111;
  --nims-yellow: #FFD800;
  --nims-pink: #FF4F9A;
  --nims-pink-dark: #E83182;
  --nims-cyan: #45D6D0;
  --nims-cream: #FFF9EE;
  --nims-white: #FFFFFF;
  --nims-brown: #5A2A16;
  --nims-border: 3px solid var(--nims-black);
  --nims-shadow-sm: 4px 4px 0 var(--nims-black);
  --nims-shadow: 7px 7px 0 var(--nims-black);
  --nims-shadow-lg: 12px 12px 0 var(--nims-black);
  --nims-shell: 1380px;
  --nims-header-height: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--nims-cream);
  color: var(--nims-black);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
body.nims-menu-opened { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: square; stroke-linejoin: miter; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus { clip: auto !important; clip-path: none; display: block; height: auto; left: 12px; top: 12px; width: auto; z-index: 99999; background: var(--nims-yellow); border: var(--nims-border); padding: 12px 16px; font-weight: 800; }
.nims-shell { width: min(calc(100% - 48px), var(--nims-shell)); margin-inline: auto; }
.nims-icon { display: inline-grid; place-items: center; line-height: 1; }
.nims-icon svg { width: 24px; height: 24px; }
.site-main { min-height: 60vh; }

/* Top announcement bar */
.nims-topbar { background: var(--nims-black); color: var(--nims-white); border-bottom: 2px solid var(--nims-black); }
.nims-topbar-inner { min-height: 40px; display: flex; align-items: center; justify-content: center; gap: clamp(16px, 4vw, 58px); font-size: .79rem; font-weight: 700; white-space: nowrap; }
.nims-topbar-inner i { width: 2px; height: 16px; background: rgba(255,255,255,.75); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--nims-white); border-bottom: var(--nims-border); transition: transform .2s ease; }
.site-header.is-scrolled { box-shadow: 0 5px 0 rgba(17,17,17,.15); }
.nims-header-inner { min-height: var(--nims-header-height); display: grid; grid-template-columns: 210px 1fr auto; align-items: center; gap: 28px; }
.nims-brand { display: flex; align-items: center; min-width: 150px; }
.nims-brand img, .custom-logo { display: block; width: auto; max-width: 190px; max-height: 72px; object-fit: contain; object-position: left center; }
.nims-default-logo, .custom-logo-link { display: inline-flex; align-items: center; min-height: 58px; text-decoration: none; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: clamp(4px, 1vw, 17px); }
.main-navigation a { position: relative; display: inline-flex; padding: 15px 8px; text-decoration: none; font-size: .84rem; font-weight: 800; white-space: nowrap; }
.main-navigation a::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 5px; height: 4px; background: var(--nims-pink); transform: scaleX(0) rotate(-1deg); transform-origin: left; transition: transform .18s ease; }
.main-navigation a:hover::after, .main-navigation .current-menu-item > a::after { transform: scaleX(1) rotate(-1deg); }
.nims-header-actions { display: flex; align-items: center; gap: 10px; }
.nims-icon-button { width: 46px; height: 46px; display: inline-grid; place-items: center; padding: 0; background: transparent; color: var(--nims-black); border: 0; cursor: pointer; }
.nims-icon-button:hover { background: var(--nims-yellow); outline: 2px solid var(--nims-black); }
.nims-menu-toggle { display: none; }
.nims-menu-close { display: none; }
.nims-menu-toggle[aria-expanded="true"] .nims-menu-open { display: none; }
.nims-menu-toggle[aria-expanded="true"] .nims-menu-close { display: inline-grid; }
.nims-cart-button { min-height: 48px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px 8px 14px; background: var(--nims-pink); border: var(--nims-border); box-shadow: var(--nims-shadow-sm); text-decoration: none; font-size: .82rem; font-weight: 900; transition: transform .13s ease, box-shadow .13s ease; }
.nims-cart-button:hover { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--nims-black); }
.nims-cart-count { min-width: 25px; height: 25px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--nims-black); color: var(--nims-white); font-size: .72rem; font-weight: 800; }
.nims-cart-button.is-updated { animation: nims-pop .42s ease; }
@keyframes nims-pop { 50% { transform: scale(1.08) rotate(-2deg); } }

.nims-search-panel { background: var(--nims-cyan); border-bottom: var(--nims-border); }
.nims-search-panel[hidden] { display: none; }
.nims-search-inner { padding-block: 18px; }
.nims-search-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.nims-search-form input { min-height: 54px; padding: 12px 16px; border: var(--nims-border); border-radius: 0; background: var(--nims-white); font-size: 1rem; font-weight: 600; outline: none; }
.nims-search-form input:focus { box-shadow: var(--nims-shadow-sm); }
.nims-search-form button { min-height: 54px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; background: var(--nims-yellow); border: var(--nims-border); box-shadow: var(--nims-shadow-sm); font-weight: 900; cursor: pointer; }

/* Shared buttons */
.nims-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wp-element-button,
input[type="submit"] {
  min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 19px !important; border: var(--nims-border) !important; border-radius: 0 !important;
  box-shadow: var(--nims-shadow-sm) !important; color: var(--nims-black) !important; background: var(--nims-yellow) !important;
  text-decoration: none !important; text-transform: uppercase; font-weight: 900 !important; line-height: 1.28 !important; cursor: pointer;
  transition: transform .13s ease, box-shadow .13s ease;
}
.nims-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.wp-element-button:hover,
input[type="submit"]:hover { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--nims-black) !important; }
.nims-button-white { background: var(--nims-white) !important; }
.nims-button-pink { background: var(--nims-pink) !important; }
.nims-button-yellow { background: var(--nims-yellow) !important; }
.nims-button-small { min-height: 46px; padding: 10px 16px !important; font-size: .8rem; }
.nims-button svg { width: 20px; height: 20px; }

/* Vietnamese typography rhythm */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  overflow-wrap: break-word;
}
.nims-hero h1,
.nims-section-header h2,
.nims-about-copy h2,
.nims-page-header h1,
.nims-entry-card h1,
.nims-error-card h1,
.woocommerce div.product .product_title {
  overflow: visible;
  font-kerning: normal;
}

/* Hero */
.nims-hero { background: var(--nims-white); border-bottom: var(--nims-border); }
.nims-hero-grid { min-height: 600px; display: grid; grid-template-columns: 1fr 1.03fr; border-left: var(--nims-border); border-right: var(--nims-border); }
.nims-hero-copy { position: relative; padding: clamp(44px, 5vw, 78px) clamp(30px, 4.5vw, 74px); display: flex; flex-direction: column; justify-content: center; background-color: var(--nims-pink); background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px); background-size: 35px 35px; overflow: hidden; }
.nims-hero-copy::after { content: ""; position: absolute; top: -12%; right: -44px; width: 90px; height: 125%; background: var(--nims-black); clip-path: polygon(30% 0,100% 0,65% 48%,100% 52%,30% 100%,0 100%,35% 53%,0 47%); z-index: 2; }
.nims-hero h1 { margin: 18px 0 20px; font-size: clamp(3.15rem, 5vw, 5.75rem); line-height: 1.18; letter-spacing: -.035em; font-weight: 900; text-transform: uppercase; max-width: 760px; }
.nims-hero h1 span, .nims-hero h1 em { display: block; padding-block: .025em; }
.nims-hero h1 em { color: var(--nims-white); font-style: italic; text-shadow: 4px 4px 0 rgba(17,17,17,.2); }
.nims-hero-copy p { max-width: 650px; margin: 0; font-size: clamp(1rem, 1.45vw, 1.24rem); line-height: 1.65; font-weight: 600; }
.nims-hero-actions { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 32px; }
.nims-doodle-zig { width: 82px; height: 30px; background: linear-gradient(135deg, transparent 42%, var(--nims-black) 43% 54%, transparent 55%) 0 0 / 24px 24px repeat-x; transform: rotate(-7deg); }
.nims-doodle-arrow { position: absolute; right: 8%; bottom: 12%; font-size: 5.4rem; font-weight: 900; transform: rotate(8deg); line-height: 1; }
.nims-hero-visual { position: relative; min-height: 600px; display: grid; place-items: center; padding: clamp(30px, 4vw, 62px); background: var(--nims-yellow); overflow: hidden; }
.nims-hero-visual::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(17,17,17,.13) 1.3px, transparent 1.3px); background-size: 18px 18px; opacity: .28; }
.nims-hero-visual img { position: relative; z-index: 2; width: min(100%, 740px); max-height: 510px; object-fit: contain; mix-blend-mode: multiply; filter: saturate(1.03) contrast(1.03); }
.nims-hero-sun { position: absolute; z-index: 1; width: 460px; aspect-ratio: 1; border-radius: 50%; background: var(--nims-pink); border: var(--nims-border); transform: translate(8%, 5%); }
.nims-burst-badge { position: absolute; z-index: 4; top: 42px; right: 34px; width: 145px; aspect-ratio: 1; display: grid; place-items: center; text-align: center; background: var(--nims-white); border: var(--nims-border); clip-path: polygon(50% 0,59% 11%,72% 5%,77% 19%,91% 18%,89% 32%,100% 40%,91% 50%,100% 61%,88% 68%,90% 82%,76% 82%,71% 96%,59% 89%,50% 100%,41% 89%,28% 96%,23% 82%,9% 82%,11% 68%,0 61%,9% 50%,0 40%,11% 32%,9% 18%,23% 19%,28% 5%,41% 11%); }
.nims-burst-badge::after { content: ""; position: absolute; inset: 5px; clip-path: inherit; border: 2px solid var(--nims-black); }
.nims-burst-badge span { position: relative; z-index: 1; font-size: .9rem; line-height: 1.25; font-weight: 900; transform: rotate(-5deg); }
.nims-choco-dot { position: absolute; z-index: 3; width: 18px; height: 18px; background: var(--nims-brown); border: 3px solid var(--nims-black); border-radius: 50%; box-shadow: 4px 4px 0 rgba(17,17,17,.25); }
.nims-choco-dot.dot-one { left: 10%; top: 20%; }
.nims-choco-dot.dot-two { right: 16%; bottom: 19%; width: 24px; height: 24px; }
.nims-choco-dot.dot-three { left: 16%; bottom: 12%; width: 13px; height: 13px; }

/* Trust strip */
.nims-trust-strip { background: var(--nims-white); border-bottom: var(--nims-border); }
.nims-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-left: var(--nims-border); border-right: var(--nims-border); }
.nims-trust-item { min-height: 92px; display: flex; align-items: center; gap: 17px; padding: 17px 25px; border-right: 2px solid var(--nims-black); }
.nims-trust-item:last-child { border-right: 0; }
.nims-trust-item strong, .nims-trust-item small { display: block; }
.nims-trust-item strong { font-size: .86rem; font-weight: 900; }
.nims-trust-item small { margin-top: 2px; font-size: .75rem; }
.nims-trust-icon { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border: 3px solid var(--nims-black); box-shadow: 3px 3px 0 var(--nims-black); font-size: 1.35rem; font-weight: 900; }
.nims-trust-icon.pink { background: var(--nims-pink); border-radius: 45% 55% 55% 45% / 55% 45% 55% 45%; }
.nims-trust-icon.cyan { background: var(--nims-cyan); }
.nims-trust-icon.yellow { background: var(--nims-yellow); transform: rotate(-3deg); }

/* Sections */
.nims-section { padding: 66px 0 78px; }
.nims-section-header { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 31px; }
.nims-section-header h2, .nims-about-copy h2, .nims-page-header h1, .nims-entry-card h1, .nims-error-card h1 { margin: 5px 0 0; font-size: clamp(2.1rem, 4vw, 4.25rem); line-height: 1.2; letter-spacing: -.03em; font-weight: 900; text-transform: uppercase; }
.nims-eyebrow { display: inline-block; padding: 7px 11px; background: var(--nims-cyan); border: 2px solid var(--nims-black); box-shadow: 3px 3px 0 var(--nims-black); font-size: .74rem; font-weight: 900; transform: rotate(-1deg); }

/* WooCommerce product grid */
.nims-featured-products { background: var(--nims-cream); }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 25px; margin: 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.nims-featured-products .woocommerce ul.products { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.woocommerce ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; padding: 12px 12px 14px; display: flex; flex-direction: column; position: relative; background: var(--nims-white); border: var(--nims-border); box-shadow: var(--nims-shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.woocommerce ul.products li.product:hover { transform: translate(-2px,-2px); box-shadow: var(--nims-shadow); }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; }
.woocommerce ul.products li.product a img { width: 100%; aspect-ratio: 1 / 1.1; object-fit: contain; margin: 0 0 13px !important; background: #fff; border-bottom: 2px solid var(--nims-black); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { min-height: 3.2em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding: 0 !important; margin: 0 0 10px; font-size: .92rem !important; line-height: 1.45; font-weight: 600; }
.woocommerce ul.products li.product .price { margin-top: auto; color: var(--nims-pink-dark) !important; font-size: 1.05rem !important; font-weight: 900 !important; }
.woocommerce ul.products li.product .price del { opacity: .58; font-size: .78em; }
.woocommerce ul.products li.product .button { width: 48px; height: 48px; min-height: 48px; position: absolute; right: 12px; bottom: 10px; padding: 0 !important; font-size: 0 !important; background: var(--nims-pink) !important; }
.woocommerce ul.products li.product .button::before { content: ""; width: 22px; height: 22px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2.3'%3E%3Cpath d='M3 4h2l2.2 11h10.7l2-7H7'/%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3C/svg%3E"); }
.woocommerce ul.products li.product .added_to_cart { margin-top: 10px; font-size: .75rem; font-weight: 800; }
.woocommerce span.onsale { display: none; }
.nims-product-badge { position: absolute; z-index: 5; top: 9px; left: 9px; padding: 6px 9px; border: 2px solid var(--nims-black); box-shadow: 2px 2px 0 var(--nims-black); background: var(--nims-yellow); font-size: .62rem; font-weight: 900; line-height: 1; }
.nims-product-badge.is-hot { background: var(--nims-pink); }
.nims-product-badge.is-new { background: var(--nims-cyan); }
.nims-product-badge.is-best { background: var(--nims-yellow); }

/* Demo fallback cards */
.nims-demo-products { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.nims-demo-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 12px; background: var(--nims-white); border: var(--nims-border); box-shadow: var(--nims-shadow-sm); }
.nims-demo-card img { width: 100%; aspect-ratio: 1 / 1.1; object-fit: cover; object-position: top; border-bottom: 2px solid var(--nims-black); }
.nims-demo-card h3 { min-height: 3.35em; margin: 12px 0 14px; font-size: .9rem; line-height: 1.45; font-weight: 600; }
.nims-demo-card h3 small { font: inherit; }
.nims-demo-card-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nims-demo-card-footer strong { color: var(--nims-pink-dark); font-size: 1.03rem; }
.nims-demo-card-footer button { width: 46px; height: 46px; display: grid; place-items: center; padding: 0; background: var(--nims-pink); border: var(--nims-border); box-shadow: 3px 3px 0 var(--nims-black); cursor: pointer; }
.nims-woo-note { margin-top: 24px; padding: 14px; background: var(--nims-cyan); border: var(--nims-border); font-weight: 700; }

/* About */
.nims-about-strip { padding: 72px 0; background: var(--nims-cyan); border-top: var(--nims-border); border-bottom: var(--nims-border); }
.nims-about-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 50px; align-items: center; }
.nims-about-copy p { max-width: 720px; margin: 24px 0 0; font-size: 1.08rem; font-weight: 600; }
.nims-about-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.nims-mini-card { min-height: 155px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px; border: var(--nims-border); box-shadow: var(--nims-shadow); transform: rotate(-2deg); }
.nims-mini-card:nth-child(2) { transform: rotate(2deg); }
.nims-mini-card strong { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.18; font-weight: 900; }
.nims-mini-card span { margin-top: 8px; font-size: .76rem; font-weight: 900; }
.nims-mini-card.cyan { background: var(--nims-white); }
.nims-mini-card.pink { background: var(--nims-pink); }
.nims-mini-card.yellow { background: var(--nims-yellow); }

/* Promo */
.nims-promo-section { padding: 46px 0 58px; background: var(--nims-yellow); border-bottom: var(--nims-border); }
.nims-promo-grid { display: grid; grid-template-columns: 1.1fr .75fr .75fr; gap: 24px; align-items: stretch; }
.nims-promo-copy { display: flex; flex-direction: column; justify-content: center; padding: 25px 0; }
.nims-promo-copy span { font-size: clamp(1.8rem, 3.6vw, 4rem); line-height: 1.22; letter-spacing: -.03em; font-weight: 900; }
.nims-promo-copy strong { margin-top: 10px; font-size: .95rem; }
.nims-coupon { display: flex; flex-direction: column; justify-content: center; padding: 22px 25px; background: var(--nims-cyan); border: var(--nims-border); box-shadow: var(--nims-shadow); text-align: center; }
.nims-coupon.pink { background: var(--nims-pink); }
.nims-coupon b { font-size: 1.55rem; font-weight: 900; }
.nims-coupon span { font-size: .9rem; font-weight: 800; }
.nims-coupon small { display: inline-block; margin: 10px auto 0; padding: 5px 9px; background: var(--nims-white); border: 2px solid var(--nims-black); font-weight: 800; }

/* Generic content */
.nims-content-area { padding: 56px 0 90px; }
.nims-reading-width { max-width: 980px; }
.nims-page-header { margin-bottom: 34px; }
.nims-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.nims-post-card, .nims-entry-card, .nims-error-card { background: var(--nims-white); border: var(--nims-border); box-shadow: var(--nims-shadow); }
.nims-post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: var(--nims-border); }
.nims-post-card-body { padding: 22px; }
.nims-post-card h2 { margin: 0 0 12px; font-size: 1.35rem; line-height: 1.25; }
.nims-post-card h2 a { text-decoration: none; }
.nims-text-link { font-weight: 900; }
.nims-entry-card { padding: clamp(24px, 4vw, 52px); }
.nims-entry-card > header { margin-bottom: 30px; }
.nims-single-image { width: 100%; margin-bottom: 30px; border: var(--nims-border); }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2, .entry-content h3 { line-height: 1.3; font-weight: 900; }
.nims-error-card { max-width: 920px; margin: 40px auto; padding: clamp(30px, 6vw, 80px); text-align: center; background: var(--nims-pink); }

/* Forms */
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], textarea, select {
  width: 100%; min-height: 50px; padding: 11px 13px; background: var(--nims-white); color: var(--nims-black); border: var(--nims-border); border-radius: 0; outline: 0;
}
input:focus, textarea:focus, select:focus { box-shadow: var(--nims-shadow-sm); }

/* WooCommerce pages */
.nims-woocommerce-page .woocommerce-breadcrumb { margin-bottom: 24px; font-size: .84rem; font-weight: 700; }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { margin-bottom: 25px; }
.woocommerce .woocommerce-ordering select { min-width: 240px; }
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 56px; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto; float: none; margin-bottom: 0; }
.woocommerce div.product div.images img { background: var(--nims-white); border: var(--nims-border); }
.woocommerce div.product .product_title { margin: 0 0 18px; font-size: clamp(2rem, 4vw, 4.2rem); line-height: 1.2; letter-spacing: -.03em; font-weight: 900; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--nims-pink-dark); font-size: 2rem; font-weight: 900; }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.woocommerce .quantity .qty { width: 78px; min-height: 52px; }
.woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related.products { grid-column: 1 / -1; }
.woocommerce div.product .woocommerce-tabs { margin-top: 35px; padding: 24px; background: var(--nims-white); border: var(--nims-border); box-shadow: var(--nims-shadow); }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--nims-black); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border: 2px solid var(--nims-black); border-radius: 0; background: var(--nims-yellow); }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce table.shop_table { border: var(--nims-border); border-radius: 0; background: var(--nims-white); }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { padding: 15px 13px; }
.woocommerce-cart-form, .cart_totals, .woocommerce-checkout-review-order, .woocommerce-checkout .col2-set > div, .woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content {
  background: var(--nims-white); border: var(--nims-border); box-shadow: var(--nims-shadow); padding: 22px;
}
.woocommerce-cart .cart-collaterals .cart_totals { width: 45%; }
.woocommerce-checkout .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; width: 100%; }
.woocommerce-checkout .col2-set .col-1, .woocommerce-checkout .col2-set .col-2 { float: none; width: auto; }
.woocommerce-checkout #order_review_heading { margin-top: 40px; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { background: var(--nims-yellow); color: var(--nims-black); border: var(--nims-border); border-top: var(--nims-border); box-shadow: var(--nims-shadow-sm); }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { color: var(--nims-black); }
.woocommerce-pagination ul.page-numbers { border: 0 !important; display: flex !important; gap: 9px; }
.woocommerce-pagination ul.page-numbers li { border: 0 !important; }
.woocommerce-pagination ul.page-numbers a, .woocommerce-pagination ul.page-numbers span { min-width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid var(--nims-black); background: var(--nims-white); font-weight: 800; }
.woocommerce-pagination ul.page-numbers span.current { background: var(--nims-pink); }

/* Footer */
.site-footer { padding: 58px 0 25px; background: var(--nims-black); color: var(--nims-white); }
.nims-footer-grid { display: grid; grid-template-columns: 1.25fr .7fr .75fr 1fr; gap: 42px; }
.nims-footer-brand img { width: 210px; padding: 8px; background: var(--nims-white); border: 2px solid var(--nims-white); }
.nims-footer-brand p { max-width: 420px; line-height: 1.65; }
.site-footer h3 { margin: 0 0 16px; color: var(--nims-yellow); font-size: .95rem; line-height: 1.35; font-weight: 900; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 9px; }
.site-footer a { color: var(--nims-white); }
.nims-newsletter { display: grid; grid-template-columns: 1fr auto; }
.nims-newsletter input { border-right: 0; }
.nims-newsletter button { padding: 0 16px; background: var(--nims-pink); border: var(--nims-border); font-weight: 900; }
.nims-footer-bottom { margin-top: 44px; padding-top: 21px; border-top: 2px solid rgba(255,255,255,.5); font-size: .78rem; }
.nims-mobile-dock { display: none; }

/* Responsive */
@media (max-width: 1180px) {
  :root { --nims-header-height: 82px; }
  .nims-header-inner { grid-template-columns: 175px 1fr auto; gap: 16px; }
  .nims-brand img, .custom-logo { max-width: 160px; }
  .main-navigation a { font-size: .74rem; padding-inline: 5px; }
  .nims-cart-label { display: none; }
  .nims-featured-products .woocommerce ul.products, .nims-demo-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nims-hero h1 { font-size: clamp(3rem, 5.6vw, 4.8rem); }
}

@media (max-width: 900px) {
  .nims-shell { width: min(calc(100% - 30px), var(--nims-shell)); }
  .nims-topbar-inner { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .nims-topbar-inner::-webkit-scrollbar { display: none; }
  .nims-header-inner { grid-template-columns: auto 1fr auto; min-height: 76px; }
  .nims-brand { justify-self: center; }
  .nims-menu-toggle { display: inline-grid; grid-column: 1; grid-row: 1; }
  .nims-brand { grid-column: 2; grid-row: 1; }
  .nims-header-actions { grid-column: 3; grid-row: 1; }
  .nims-account-link { display: none; }
  .main-navigation { display: none; position: fixed; top: 116px; left: 15px; right: 15px; max-height: calc(100dvh - 145px); overflow-y: auto; background: var(--nims-yellow); border: var(--nims-border); box-shadow: var(--nims-shadow); padding: 14px; }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-navigation a { display: block; padding: 14px 12px; font-size: .95rem; border: 2px solid transparent; }
  .main-navigation a:hover, .main-navigation .current-menu-item > a { background: var(--nims-white); border-color: var(--nims-black); }
  .main-navigation a::after { display: none; }
  .nims-hero-grid { min-height: auto; grid-template-columns: 1fr; }
  .nims-hero-copy::after { top: auto; right: -5%; bottom: -38px; width: 110%; height: 78px; clip-path: polygon(0 0,48% 35%,52% 0,100% 38%,100% 100%,0 100%); }
  .nims-hero-copy { min-height: 520px; padding-bottom: 80px; }
  .nims-hero-visual { min-height: 500px; }
  .nims-trust-grid { grid-template-columns: 1fr 1fr; }
  .nims-trust-item:nth-child(2) { border-right: 0; }
  .nims-trust-item:nth-child(-n+2) { border-bottom: 2px solid var(--nims-black); }
  .nims-about-grid, .nims-promo-grid { grid-template-columns: 1fr; }
  .nims-about-cards { max-width: 650px; }
  .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nims-post-grid { grid-template-columns: 1fr 1fr; }
  .woocommerce div.product { grid-template-columns: 1fr; }
  .woocommerce div.product .woocommerce-tabs, .woocommerce div.product .related.products { grid-column: auto; }
  .woocommerce-checkout .col2-set { grid-template-columns: 1fr; }
  .nims-footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .nims-footer-widget-area { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { padding-bottom: 70px; font-size: 15px; }
  .nims-shell { width: min(calc(100% - 20px), var(--nims-shell)); }
  .nims-topbar { display: none; }
  .site-header { top: 0; }
  .nims-header-inner { min-height: 70px; gap: 5px; }
  .nims-brand img, .custom-logo { max-width: 125px; max-height: 52px; }
  .nims-header-actions { gap: 2px; }
  .nims-icon-button { width: 40px; height: 40px; }
  .nims-cart-button { min-width: 42px; min-height: 42px; padding: 5px; box-shadow: 3px 3px 0 var(--nims-black); }
  .nims-cart-button .nims-cart-count { position: absolute; transform: translate(15px,-17px); min-width: 20px; height: 20px; font-size: .63rem; }
  .main-navigation { top: 80px; left: 10px; right: 10px; max-height: calc(100dvh - 100px); }
  .nims-search-form { grid-template-columns: 1fr; }
  .nims-search-form button { width: 100%; }
  .nims-hero-copy { min-height: auto; padding: 42px 20px 70px; }
  .nims-hero h1 { margin-top: 14px; font-size: clamp(2.55rem, 12vw, 3.85rem); line-height: 1.22; letter-spacing: -.025em; }
  .nims-hero-copy p { font-size: .97rem; }
  .nims-hero-actions { display: grid; grid-template-columns: 1fr; gap: 13px; }
  .nims-hero-actions .nims-button { width: 100%; }
  .nims-doodle-arrow { display: none; }
  .nims-hero-visual { min-height: 360px; padding: 28px 12px; }
  .nims-hero-visual img { max-height: 320px; }
  .nims-hero-sun { width: 270px; }
  .nims-burst-badge { top: 18px; right: 10px; width: 92px; }
  .nims-burst-badge span { font-size: .62rem; }
  .nims-trust-grid { grid-template-columns: 1fr; border-left: 0; border-right: 0; }
  .nims-trust-item { min-height: 76px; border-right: 0; border-bottom: 2px solid var(--nims-black) !important; padding: 13px 18px; }
  .nims-trust-item:last-child { border-bottom: 0 !important; }
  .nims-trust-icon { width: 42px; height: 42px; flex-basis: 42px; }
  .nims-section { padding: 48px 0 58px; }
  .nims-section-header { align-items: flex-start; }
  .nims-section-header h2, .nims-about-copy h2, .nims-page-header h1, .nims-entry-card h1, .nims-error-card h1 { font-size: clamp(2rem, 10vw, 3rem); }
  .nims-section-header .nims-button { display: none; }
  .nims-featured-products .woocommerce ul.products, .nims-demo-products, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .woocommerce ul.products li.product, .nims-demo-card { padding: 8px; box-shadow: 3px 3px 0 var(--nims-black); }
  .woocommerce ul.products li.product .woocommerce-loop-product__title, .nims-demo-card h3 { min-height: 3.45em; font-size: .78rem !important; }
  .woocommerce ul.products li.product .price, .nims-demo-card-footer strong { font-size: .88rem !important; }
  .woocommerce ul.products li.product .button, .nims-demo-card-footer button { width: 40px; height: 40px; min-height: 40px; right: 8px; bottom: 8px; }
  .nims-product-badge { top: 6px; left: 6px; padding: 5px 7px; font-size: .52rem; }
  .nims-about-strip { padding: 50px 0; }
  .nims-about-cards { grid-template-columns: 1fr; }
  .nims-mini-card { min-height: 110px; transform: none !important; }
  .nims-promo-section { padding: 40px 0 55px; }
  .nims-promo-grid { gap: 16px; }
  .nims-post-grid, .nims-footer-grid { grid-template-columns: 1fr; }
  .nims-footer-widget-area { grid-column: auto; }
  .woocommerce-cart .cart-collaterals .cart_totals { width: 100%; }
  .woocommerce table.shop_table_responsive tr td::before { font-weight: 900; }
  .nims-mobile-dock { position: fixed; z-index: 120; left: 0; right: 0; bottom: 0; min-height: 66px; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--nims-white); border-top: var(--nims-border); }
  .nims-mobile-dock a { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; border-right: 1px solid var(--nims-black); font-weight: 700; }
  .nims-mobile-dock a:last-child { border-right: 0; background: var(--nims-pink); }
  .nims-mobile-dock small { font-size: .64rem; }
  .nims-mobile-dock .nims-icon svg { width: 22px; height: 22px; }
  .nims-mobile-dock .nims-cart-count { position: absolute; top: 4px; right: 20%; min-width: 19px; height: 19px; font-size: .58rem; }
}

@media (max-width: 390px) {
  .nims-featured-products .woocommerce ul.products, .nims-demo-products, .woocommerce ul.products { grid-template-columns: 1fr 1fr; gap: 9px; }
  .nims-hero h1 { font-size: 2.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
