/*
Theme Name: NikeZero
Theme URI: https://vbrand.app
Author: vBrand
Author URI: https://vbrand.app
Description: Nike-inspired modern e-commerce theme for vBrand platform
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nikezero
*/

/* ===== CSS RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --nz-black: #111111;
    --nz-dark: #1a1a1a;
    --nz-gray-900: #333333;
    --nz-gray-700: #555555;
    --nz-gray-500: #757575;
    --nz-gray-400: #999999;
    --nz-gray-300: #cccccc;
    --nz-gray-200: #e5e5e5;
    --nz-gray-100: #f5f5f5;
    --nz-white: #ffffff;
    --nz-orange: #fa5400;
    --nz-green: #7ab648;
    --nz-red: #d43f21;
    --nz-font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --nz-font-display: 'Nike Futura', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --nz-container: 1440px;
    --nz-gutter: 48px;
    --nz-header-height: 60px;
    --nz-topbar-height: 36px;
    --nz-promo-height: 48px;
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--nz-font);
    color: var(--nz-black);
    background: var(--nz-white);
    line-height: 1.75;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:hover { color: var(--nz-gray-500); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; outline: none; }

.nz-container {
    max-width: var(--nz-container);
    margin: 0 auto;
    padding: 0 var(--nz-gutter);
}

/* ===== TOP BAR ===== */
.nz-topbar {
    background: var(--nz-black);
    height: var(--nz-topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--nz-gutter);
    font-size: 11px;
    color: var(--nz-white);
}
.nz-topbar a { color: var(--nz-white); font-size: 11px; }
.nz-topbar a:hover { color: var(--nz-gray-300); }
.nz-topbar__left { display: flex; align-items: center; gap: 16px; }
.nz-topbar__right { display: flex; align-items: center; gap: 4px; }
.nz-topbar__right a { padding: 0 12px; }
.nz-topbar__right .divider { color: var(--nz-gray-500); font-size: 10px; }

/* ===== HEADER / NAV ===== */
.nz-header {
    height: var(--nz-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--nz-gutter);
    background: var(--nz-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.nz-header.scrolled {
    border-bottom-color: var(--nz-gray-200);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nz-header__logo { display: flex; align-items: center; width: 60px; flex-shrink: 0; }
.nz-header__logo svg,
.nz-header__logo img { height: 24px; width: auto; }

.nz-nav { display: flex; align-items: center; gap: 0; }
.nz-nav__item {
    padding: 20px 18px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
    position: relative;
    color: var(--nz-black);
    transition: color 0.2s;
}
.nz-nav__item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--nz-black);
    transform: scaleX(0);
    transition: transform 0.3s;
}
.nz-nav__item:hover { color: var(--nz-black); }
.nz-nav__item:hover::after,
.nz-nav__item.active::after { transform: scaleX(1); }

.nz-header__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nz-search-bar {
    display: flex;
    align-items: center;
    background: var(--nz-gray-100);
    border-radius: 100px;
    padding: 0 12px;
    height: 40px;
    width: 180px;
    transition: width 0.3s, background 0.2s;
}
.nz-search-bar:focus-within { width: 240px; background: var(--nz-gray-200); }
.nz-search-bar input {
    border: none;
    background: none;
    font-size: 14px;
    width: 100%;
    padding: 0 8px;
    color: var(--nz-black);
}
.nz-search-bar input::placeholder { color: var(--nz-gray-500); }
.nz-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    position: relative;
}
.nz-icon-btn:hover { background: var(--nz-gray-200); }
.nz-icon-btn svg { width: 24px; height: 24px; }
.nz-cart-count {
    position: absolute;
    top: 4px;
    right: 2px;
    background: var(--nz-orange);
    color: white;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ===== PROMO BANNER ===== */
.nz-promo {
    height: var(--nz-promo-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nz-gray-100);
    text-align: center;
    font-size: 14px;
    color: var(--nz-black);
    gap: 8px;
}
.nz-promo a { text-decoration: underline; font-weight: 500; }

/* ===== HERO SECTION ===== */
.nz-hero {
    position: relative;
    overflow: hidden;
    background: var(--nz-gray-100);
}
.nz-hero__slide {
    position: relative;
    width: 100%;
    display: none;
}
.nz-hero__slide.active { display: block; }
.nz-hero__slide img {
    width: 100%;
    height: 85vh;
    object-fit: cover;
    object-position: center;
}
.nz-hero__content {
    text-align: center;
    padding: 40px 20px 60px;
    background: var(--nz-white);
}
.nz-hero__title {
    font-size: clamp(40px, 6vw, 80px);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    text-transform: uppercase;
    font-family: var(--nz-font-display);
}
.nz-hero__subtitle {
    font-size: 16px;
    color: var(--nz-gray-700);
    margin-top: 8px;
}
.nz-hero__actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}
.nz-hero__dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 16px 0;
}
.nz-hero__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--nz-gray-300);
    transition: background 0.3s;
}
.nz-hero__dot.active { background: var(--nz-black); }
.nz-hero__controls {
    position: absolute;
    bottom: 200px;
    right: 48px;
    display: flex;
    gap: 8px;
    z-index: 10;
}
.nz-hero__ctrl {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--nz-white);
    transition: background 0.2s;
}
.nz-hero__ctrl:hover { background: rgba(255,255,255,0.5); }

/* ===== BUTTONS ===== */
.nz-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1.5px solid var(--nz-black);
    white-space: nowrap;
}
.nz-btn--primary {
    background: var(--nz-black);
    color: var(--nz-white);
    border-color: var(--nz-black);
}
.nz-btn--primary:hover { background: var(--nz-gray-700); color: var(--nz-white); }
.nz-btn--outline {
    background: transparent;
    color: var(--nz-black);
}
.nz-btn--outline:hover { background: var(--nz-black); color: var(--nz-white); }
.nz-btn--white {
    background: var(--nz-white);
    color: var(--nz-black);
    border-color: var(--nz-white);
}
.nz-btn--white:hover { background: var(--nz-gray-100); color: var(--nz-black); }

/* ===== SECTION TITLES ===== */
.nz-section { padding: 48px 0; }
.nz-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--nz-gutter);
    margin-bottom: 24px;
}
.nz-section__title {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.nz-section__nav {
    display: flex;
    align-items: center;
    gap: 16px;
}
.nz-section__nav-link { font-size: 15px; font-weight: 500; }
.nz-scroll-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--nz-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.nz-scroll-btn:hover { background: var(--nz-gray-300); }
.nz-scroll-btn.disabled { opacity: 0.4; pointer-events: none; }

/* ===== FEATURED (2-col cards) ===== */
.nz-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 var(--nz-gutter);
}
.nz-featured__card {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    aspect-ratio: 3/4;
}
.nz-featured__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}
.nz-featured__card:hover img { transform: scale(1.03); }
.nz-featured__info {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: var(--nz-white);
}
.nz-featured__label { font-size: 14px; margin-bottom: 4px; }
.nz-featured__name { font-size: 22px; font-weight: 600; margin-bottom: 16px; }
.nz-featured__info .nz-btn { margin-top: 8px; }

/* ===== PRODUCT CAROUSEL ===== */
.nz-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 0 var(--nz-gutter);
    scroll-padding-inline-start: var(--nz-gutter);
    -webkit-overflow-scrolling: touch;
}
.nz-carousel::-webkit-scrollbar { display: none; }
.nz-carousel__item {
    flex: 0 0 calc(33.333% - 8px);
    scroll-snap-align: start;
    min-width: 300px;
}
.nz-carousel__img {
    width: 100%;
    aspect-ratio: 1;
    background: var(--nz-gray-100);
    overflow: hidden;
}
.nz-carousel__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    transition: transform 0.4s;
}
.nz-carousel__item:hover .nz-carousel__img img { transform: scale(1.05); }
.nz-carousel__name {
    font-size: 15px;
    font-weight: 500;
    margin-top: 12px;
    color: var(--nz-black);
}
.nz-carousel__cat {
    font-size: 15px;
    color: var(--nz-gray-500);
    margin-top: 2px;
}
.nz-carousel__price {
    font-size: 15px;
    font-weight: 500;
    margin-top: 8px;
    color: var(--nz-black);
}

/* ===== SPORT CAROUSEL ===== */
.nz-sport__item {
    flex: 0 0 calc(33.333% - 8px);
    min-width: 300px;
    position: relative;
}
.nz-sport__img {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
}
.nz-sport__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.nz-sport__item:hover .nz-sport__img img { transform: scale(1.03); }
.nz-sport__name {
    font-size: 15px;
    font-weight: 500;
    margin-top: 12px;
}

/* ===== SPOTLIGHT ===== */
.nz-spotlight { text-align: center; padding: 60px var(--nz-gutter) 80px; }
.nz-spotlight__title {
    font-size: clamp(48px, 6vw, 96px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    font-family: var(--nz-font-display);
}
.nz-spotlight__subtitle {
    font-size: 16px;
    color: var(--nz-gray-700);
    margin-top: 8px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.nz-spotlight__grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.nz-spotlight__item { text-align: center; }
.nz-spotlight__item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    margin-bottom: 8px;
}
.nz-spotlight__item span {
    font-size: 13px;
    font-weight: 500;
    display: block;
}

/* ===== FOOTER ===== */
.nz-footer {
    border-top: 1px solid var(--nz-gray-200);
    padding: 48px var(--nz-gutter) 0;
    margin-top: 60px;
}
.nz-footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
}
.nz-footer__col-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--nz-gray-900);
    margin-bottom: 24px;
}
.nz-footer__links li { margin-bottom: 12px; }
.nz-footer__links a {
    font-size: 12px;
    color: var(--nz-gray-500);
    transition: color 0.2s;
}
.nz-footer__links a:hover { color: var(--nz-black); }
.nz-footer__locale {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--nz-gray-500);
}
.nz-footer__locale svg { width: 18px; height: 18px; }
.nz-footer__bottom {
    border-top: 1px solid var(--nz-gray-200);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.nz-footer__copyright {
    font-size: 11px;
    color: var(--nz-gray-500);
}
.nz-footer__legal {
    display: flex;
    gap: 24px;
}
.nz-footer__legal a { font-size: 11px; color: var(--nz-gray-500); }
.nz-footer__legal a:hover { color: var(--nz-black); }

/* ===== ABOUT PAGE ===== */
.nz-about { padding: 80px var(--nz-gutter); }
.nz-about__hero {
    text-align: center;
    padding: 80px 0;
    background: var(--nz-black);
    color: var(--nz-white);
    margin: 0 calc(-1 * var(--nz-gutter));
    padding: 100px var(--nz-gutter);
}
.nz-about__hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-family: var(--nz-font-display);
}
.nz-about__hero-sub {
    font-size: 18px;
    margin-top: 24px;
    color: var(--nz-gray-300);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}
.nz-about__section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 80px 0;
}
.nz-about__section:nth-child(odd) { direction: rtl; }
.nz-about__section:nth-child(odd) > * { direction: ltr; }
.nz-about__section-img { overflow: hidden; }
.nz-about__section-img img { width: 100%; }
.nz-about__section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}
.nz-about__section-text {
    font-size: 16px;
    color: var(--nz-gray-700);
    line-height: 1.75;
}
.nz-about__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid var(--nz-gray-200);
    border-bottom: 1px solid var(--nz-gray-200);
}
.nz-about__stat-num {
    font-size: 48px;
    font-weight: 900;
    font-family: var(--nz-font-display);
}
.nz-about__stat-label {
    font-size: 14px;
    color: var(--nz-gray-500);
    margin-top: 8px;
}

/* ===== CONTACT / HELP PAGE ===== */
.nz-help { padding: 60px var(--nz-gutter) 80px; }
.nz-help__header { text-align: center; margin-bottom: 48px; }
.nz-help__title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    text-transform: uppercase;
    font-family: var(--nz-font-display);
}
.nz-help__search {
    max-width: 600px;
    margin: 24px auto 0;
    display: flex;
    align-items: center;
    border: 2px solid var(--nz-gray-300);
    border-radius: 50px;
    padding: 12px 24px;
    transition: border-color 0.2s;
}
.nz-help__search:focus-within { border-color: var(--nz-black); }
.nz-help__search input {
    border: none;
    width: 100%;
    font-size: 16px;
    padding: 0 12px;
}
.nz-help__search input::placeholder { color: var(--nz-gray-400); }
.nz-help__search svg { width: 24px; height: 24px; color: var(--nz-gray-500); flex-shrink: 0; }

.nz-help__section { margin-top: 48px; }
.nz-help__section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}
.nz-help__section-sub {
    font-size: 15px;
    color: var(--nz-gray-500);
    margin-bottom: 24px;
}
.nz-help__divider { border: none; border-top: 1px solid var(--nz-gray-200); margin: 12px 0 32px; }

.nz-help__faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}
.nz-help__faq-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}
.nz-help__faq-col li { margin-bottom: 8px; }
.nz-help__faq-col a { font-size: 14px; color: var(--nz-gray-700); }
.nz-help__faq-col a:hover { color: var(--nz-black); text-decoration: underline; }
.nz-help__faq-col .view-all {
    margin-top: 8px;
    display: inline-block;
    font-size: 14px;
    color: var(--nz-gray-500);
}

.nz-contact-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--nz-gray-200);
}
.nz-contact-method { text-align: center; }
.nz-contact-method__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
}
.nz-contact-method__icon svg { width: 100%; height: 100%; }
.nz-contact-method__title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.nz-contact-method__desc { font-size: 14px; color: var(--nz-gray-500); line-height: 1.5; }

/* ===== CONTACT FORM ===== */
.nz-contact-form {
    max-width: 700px;
    margin: 60px auto 0;
    padding: 48px;
    background: var(--nz-gray-100);
    border-radius: 16px;
}
.nz-contact-form h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
}
.nz-form-group { margin-bottom: 20px; }
.nz-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--nz-gray-700);
}
.nz-form-group input,
.nz-form-group textarea,
.nz-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--nz-gray-300);
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s;
    background: var(--nz-white);
}
.nz-form-group input:focus,
.nz-form-group textarea:focus,
.nz-form-group select:focus { border-color: var(--nz-black); }
.nz-form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath fill='none' stroke='%23333' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}
.nz-form-group textarea { resize: vertical; min-height: 120px; }
.nz-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nz-form-submit {
    text-align: center;
    margin-top: 24px;
}
.nz-form-submit .nz-btn { padding: 12px 48px; font-size: 16px; }

/* ===== SHOP PAGE ===== */
.nz-shop { padding: 48px 0 80px; }
.nz-shop__header { padding-bottom: 24px; }
.nz-shop__title {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.nz-shop__filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 24px;
}
.nz-shop__filter-pill {
    padding: 6px 18px;
    border: 1.5px solid var(--nz-gray-300);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}
.nz-shop__filter-pill:hover,
.nz-shop__filter-pill.active {
    background: var(--nz-black);
    color: var(--nz-white);
    border-color: var(--nz-black);
}
.nz-shop__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

/* WooCommerce Product Grid */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 20px;
    padding: 0;
}
/* WooCommerce injects clearfix ::before/::after for float layout — hide them in Grid context */
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}
.woocommerce ul.products li.product a img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: var(--nz-gray-100);
    border-radius: 8px;
    padding: 12px;
    transition: transform 0.3s;
}
.woocommerce ul.products li.product:hover a img {
    transform: scale(1.03);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px;
    font-weight: 500;
    padding: 12px 0 0;
    color: var(--nz-black);
}
.woocommerce ul.products li.product .price {
    font-size: 15px;
    font-weight: 500;
    color: var(--nz-black);
}
.woocommerce ul.products li.product .button {
    display: inline-block;
    background: var(--nz-black);
    color: var(--nz-white);
    border: none;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
    transition: background 0.2s;
}
.woocommerce ul.products li.product .button:hover {
    background: var(--nz-gray-700);
    color: var(--nz-white);
}
.woocommerce ul.products li.product .onsale {
    background: var(--nz-red);
    color: var(--nz-white);
    font-weight: 600;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 11px;
    min-width: auto;
    min-height: auto;
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}
.woocommerce ul.products li.product {
    position: relative;
}

/* Pagination */
.woocommerce .woocommerce-pagination {
    text-align: center;
    padding: 40px 0;
}
.woocommerce .woocommerce-pagination ul.page-numbers {
    display: flex;
    gap: 8px;
    justify-content: center;
}
.woocommerce .woocommerce-pagination ul.page-numbers li a,
.woocommerce .woocommerce-pagination ul.page-numbers li span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 500;
    color: var(--nz-black);
    border: 1px solid var(--nz-gray-300);
    transition: all 0.2s;
}
.woocommerce .woocommerce-pagination ul.page-numbers li a:hover {
    background: var(--nz-gray-100);
}
.woocommerce .woocommerce-pagination ul.page-numbers li span.current {
    background: var(--nz-black);
    color: var(--nz-white);
    border-color: var(--nz-black);
}

/* WooCommerce ordering / count (inside nz-shop__toolbar) */
.woocommerce-result-count {
    font-size: 14px;
    color: var(--nz-gray-500);
    margin: 0;
}
.woocommerce-ordering select {
    border: 1.5px solid var(--nz-gray-300);
    border-radius: 8px;
    padding: 8px 16px;
    padding-right: 36px;
    font-size: 14px;
    background: var(--nz-white);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath fill='none' stroke='%23333' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.woocommerce-ordering select:focus {
    border-color: var(--nz-black);
    outline: none;
}

/* Notices */
.woocommerce-info, .woocommerce-message, .woocommerce-error {
    padding: 16px 24px;
    margin: 16px 0;
    border-radius: 8px;
    font-size: 14px;
}
.woocommerce-info { background: #e3f2fd; border-left: 4px solid #2196f3; }
.woocommerce-message { background: #e8f5e9; border-left: 4px solid #4caf50; }
.woocommerce-error { background: #fce4ec; border-left: 4px solid #e91e63; list-style: none; }
.woocommerce-error li { margin: 0; }

/* ===== SINGLE PRODUCT ===== */
.nz-product { padding: 32px 0 80px; }

.nz-single-product__top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Gallery */
.nz-single-product__gallery { position: relative; }
.nz-single-product__gallery .woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
}
.nz-single-product__gallery .woocommerce-product-gallery__wrapper {
    margin: 0;
}
.nz-single-product__gallery .woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    background: var(--nz-gray-100);
}
.nz-single-product__gallery .flex-control-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    list-style: none;
    padding: 0;
}
.nz-single-product__gallery .flex-control-thumbs li {
    flex: 0 0 72px;
}
.nz-single-product__gallery .flex-control-thumbs li img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
}
.nz-single-product__gallery .flex-control-thumbs li img.flex-active,
.nz-single-product__gallery .flex-control-thumbs li img:hover {
    border-color: var(--nz-black);
    opacity: 1;
}
.nz-single-product__gallery .onsale {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--nz-red);
    color: var(--nz-white);
    font-weight: 600;
    border-radius: 30px;
    padding: 4px 12px;
    font-size: 12px;
    z-index: 5;
}

/* Summary */
.nz-single-product__summary {
    padding-top: 16px;
}
.nz-single-product__summary .product_title {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    line-height: 1.3;
}
.nz-single-product__summary .price {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 24px;
    display: block;
}
.nz-single-product__summary .price del {
    color: var(--nz-gray-400);
    font-weight: 400;
}
.nz-single-product__summary .price ins {
    text-decoration: none;
    color: var(--nz-red);
}
.nz-single-product__summary .woocommerce-product-details__short-description {
    font-size: 15px;
    color: var(--nz-gray-700);
    line-height: 1.7;
    margin-bottom: 24px;
}
.nz-single-product__summary .woocommerce-product-rating {
    margin-bottom: 16px;
}
.nz-single-product__summary .star-rating {
    color: var(--nz-orange);
    font-size: 14px;
}

/* Variations */
.nz-single-product__summary .variations {
    width: 100%;
    margin-bottom: 24px;
}
.nz-single-product__summary .variations td {
    padding: 8px 0;
    vertical-align: middle;
}
.nz-single-product__summary .variations td.label label {
    font-size: 14px;
    font-weight: 600;
    text-transform: capitalize;
}
.nz-single-product__summary .variations select {
    width: 100%;
    padding: 10px 16px;
    padding-right: 40px;
    border: 1.5px solid var(--nz-gray-300);
    border-radius: 8px;
    font-size: 14px;
    background: var(--nz-white);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath fill='none' stroke='%23333' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.nz-single-product__summary .variations select:focus {
    border-color: var(--nz-black);
    outline: none;
}
.nz-single-product__summary .reset_variations {
    font-size: 13px;
    color: var(--nz-gray-500);
}

/* Add to cart */
.nz-single-product__summary .single_add_to_cart_button,
.woocommerce .nz-single-product .single_add_to_cart_button,
.woocommerce button.single_add_to_cart_button,
button.single_add_to_cart_button.button.alt {
    background: var(--nz-black) !important;
    color: var(--nz-white) !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 14px 32px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    font-family: var(--nz-font) !important;
    cursor: pointer;
    transition: background 0.2s !important;
    width: 100%;
    margin-top: 8px;
    letter-spacing: 0.02em;
}
.nz-single-product__summary .single_add_to_cart_button:hover,
.woocommerce .nz-single-product .single_add_to_cart_button:hover,
.woocommerce button.single_add_to_cart_button:hover,
button.single_add_to_cart_button.button.alt:hover {
    background: var(--nz-gray-700) !important;
    color: var(--nz-white) !important;
}
/* Quantity stepper */
.nz-qty {
    display: inline-flex !important;
    align-items: center !important;
    border: 1.5px solid var(--nz-gray-300) !important;
    border-radius: 8px !important;
    overflow: hidden;
    height: 48px;
}
.nz-qty__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 100%;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--nz-dark);
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.nz-qty__btn:hover {
    background: var(--nz-black);
    color: var(--nz-white);
}
.nz-single-product__summary .quantity input,
.nz-qty input[type="number"],
.woocommerce .quantity .qty {
    width: 52px !important;
    height: 100% !important;
    padding: 0 4px !important;
    text-align: center !important;
    border: none !important;
    border-left: 1.5px solid var(--nz-gray-300) !important;
    border-right: 1.5px solid var(--nz-gray-300) !important;
    border-radius: 0 !important;
    font-size: 15px !important;
    font-family: var(--nz-font) !important;
    font-weight: 500 !important;
    background: transparent !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
    outline: none !important;
}
.nz-qty input[type="number"]::-webkit-inner-spin-button,
.nz-qty input[type="number"]::-webkit-outer-spin-button,
.nz-single-product__summary .quantity input::-webkit-inner-spin-button,
.nz-single-product__summary .quantity input::-webkit-outer-spin-button,
.woocommerce .quantity .qty::-webkit-inner-spin-button,
.woocommerce .quantity .qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.nz-single-product__summary .cart {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* Global WooCommerce button override */
.woocommerce .button.alt,
.woocommerce .button.alt:hover,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background-color: var(--nz-black) !important;
    color: var(--nz-white) !important;
    border-radius: 30px !important;
    border: none !important;
    font-weight: 500 !important;
    font-family: var(--nz-font) !important;
    transition: background 0.2s !important;
}
.woocommerce .button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover {
    background-color: var(--nz-gray-700) !important;
}
/* Disabled state (e.g. variable product, no variation selected) */
.woocommerce .button.alt:disabled,
.woocommerce .button.alt.disabled,
.woocommerce button.button.alt:disabled,
button.single_add_to_cart_button:disabled,
button.single_add_to_cart_button.disabled {
    background-color: var(--nz-gray-300) !important;
    color: var(--nz-gray-500) !important;
    cursor: not-allowed;
    opacity: 1 !important;
}

/* Override WooCommerce default purple/accent via custom properties */
:root {
    --wp--preset--color--accent: var(--nz-black);
    --wp--preset--color--accent-hover: var(--nz-gray-700);
}
.wp-element-button,
.woocommerce .wp-element-button,
.wc-block-components-button {
    background-color: var(--nz-black) !important;
    color: var(--nz-white) !important;
    border-radius: 30px !important;
    font-family: var(--nz-font) !important;
}
.wp-element-button:hover,
.woocommerce .wp-element-button:hover {
    background-color: var(--nz-gray-700) !important;
}

/* Meta */
.nz-single-product__summary .product_meta {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--nz-gray-200);
    font-size: 13px;
    color: var(--nz-gray-500);
}
.nz-single-product__summary .product_meta > span {
    display: block;
    margin-bottom: 6px;
}
.nz-single-product__summary .product_meta a { color: var(--nz-gray-700); }
.nz-single-product__summary .product_meta a:hover { color: var(--nz-black); }

/* Tabs */
.nz-single-product__tabs {
    margin-top: 60px;
}
.nz-single-product__tabs .woocommerce-tabs {
    border-top: 1px solid var(--nz-gray-200);
}
.nz-single-product__tabs .woocommerce-tabs ul.tabs {
    display: flex;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid var(--nz-gray-200);
}
.nz-single-product__tabs .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
}
.nz-single-product__tabs .woocommerce-tabs ul.tabs li::before,
.nz-single-product__tabs .woocommerce-tabs ul.tabs li::after {
    display: none;
}
.nz-single-product__tabs .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--nz-gray-500);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all 0.2s;
}
.nz-single-product__tabs .woocommerce-tabs ul.tabs li.active a {
    color: var(--nz-black);
    border-bottom-color: var(--nz-black);
}
.nz-single-product__tabs .woocommerce-tabs .panel {
    padding: 32px 0;
    max-width: 800px;
}
.nz-single-product__tabs .woocommerce-tabs .panel h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}
.nz-single-product__tabs .woocommerce-tabs .panel p {
    font-size: 15px;
    color: var(--nz-gray-700);
    line-height: 1.75;
    margin-bottom: 12px;
}

/* Related / Upsell products */
.nz-single-product__tabs .related.products,
.nz-single-product__tabs .upsells.products {
    padding-top: 48px;
}
.nz-single-product__tabs .related.products > h2,
.nz-single-product__tabs .upsells.products > h2 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 24px;
}

/* ===== CART PAGE ===== */
.woocommerce-cart .nz-shop { padding-top: 48px; }
.woocommerce table.shop_table {
    width: 100%;
    border-collapse: collapse;
    border: none;
    border-radius: 0;
}
.woocommerce table.shop_table th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--nz-gray-500);
    padding: 16px;
    border-bottom: 1px solid var(--nz-gray-200);
    text-align: left;
}
.woocommerce table.shop_table td {
    padding: 16px;
    border-bottom: 1px solid var(--nz-gray-200);
    vertical-align: middle;
    font-size: 14px;
}
.woocommerce table.shop_table img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}
.woocommerce table.shop_table .product-name a {
    font-weight: 500;
    color: var(--nz-black);
}
.woocommerce table.shop_table .product-remove a {
    color: var(--nz-gray-400);
    font-size: 20px;
}
.woocommerce table.shop_table .quantity input {
    width: 60px;
    padding: 8px;
    border: 1.5px solid var(--nz-gray-300);
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}
.woocommerce .cart-collaterals .cart_totals {
    float: none;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
}
.woocommerce .cart-collaterals .cart_totals h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}
.woocommerce .wc-proceed-to-checkout .checkout-button {
    background: var(--nz-black) !important;
    color: var(--nz-white) !important;
    border-radius: 30px !important;
    padding: 14px 32px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    width: 100%;
    text-align: center;
    transition: background 0.2s !important;
}
.woocommerce .wc-proceed-to-checkout .checkout-button:hover {
    background: var(--nz-gray-700) !important;
}
.woocommerce .coupon input {
    border: 1.5px solid var(--nz-gray-300);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
}
.woocommerce .coupon button,
.woocommerce table.shop_table td .button {
    background: var(--nz-black);
    color: var(--nz-white);
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}
.woocommerce .coupon button:hover,
.woocommerce table.shop_table td .button:hover {
    background: var(--nz-gray-700);
}

/* ===== CHECKOUT PAGE ===== */
.woocommerce-checkout .nz-shop { padding-top: 48px; }
.woocommerce form.checkout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    align-items: start;
}
.woocommerce form.checkout #customer_details {
    grid-column: 1;
}
.woocommerce form.checkout #order_review_heading,
.woocommerce form.checkout #order_review {
    grid-column: 2;
}
.woocommerce form.checkout h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}
.woocommerce form .form-row label {
    font-size: 13px;
    font-weight: 500;
    color: var(--nz-gray-700);
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100%;
    padding: 10px 16px;
    border: 1.5px solid var(--nz-gray-300);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    background: var(--nz-white);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
.woocommerce form .form-row select {
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath fill='none' stroke='%23333' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
    border-color: var(--nz-black);
    outline: none;
}
#order_review {
    background: var(--nz-gray-100);
    padding: 24px;
    border-radius: 12px;
}
#order_review table {
    width: 100%;
}
#order_review table th, #order_review table td {
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--nz-gray-200);
}
.woocommerce #place_order {
    background: var(--nz-black) !important;
    color: var(--nz-white) !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 14px 32px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    width: 100%;
    cursor: pointer;
    transition: background 0.2s !important;
    margin-top: 16px;
}
.woocommerce #place_order:hover {
    background: var(--nz-gray-700) !important;
}
.woocommerce .woocommerce-checkout-payment {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
}
.woocommerce .woocommerce-checkout-payment .payment_methods {
    list-style: none;
    padding: 0;
}
.woocommerce .woocommerce-checkout-payment .payment_methods li {
    padding: 12px 0;
    border-bottom: 1px solid var(--nz-gray-200);
}
.woocommerce .woocommerce-checkout-payment .payment_methods li label {
    font-size: 14px;
    font-weight: 500;
}

/* ===== ALERTS ===== */
.nz-alert {
    padding: 16px 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
}
.nz-alert--success {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    color: #2e7d32;
}

/* ===== MOBILE TOGGLE ===== */
.nz-mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}
.nz-mobile-toggle:hover { background: var(--nz-gray-200); }

/* ===== MOBILE NAV OVERLAY ===== */
.nz-mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: var(--nz-white);
    z-index: 9999;
    transition: transform 0.3s ease, visibility 0.3s;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transform: translateX(100%);
    visibility: hidden;
}
.nz-mobile-nav.open { transform: translateX(0); visibility: visible; }
.nz-mobile-nav__header {
    display: flex;
    justify-content: flex-end;
    padding: 16px 20px;
    border-bottom: 1px solid var(--nz-gray-200);
}
.nz-mobile-nav__close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nz-mobile-nav__links { padding: 16px 0; }
.nz-mobile-nav__link {
    display: block;
    padding: 14px 24px;
    font-size: 18px;
    font-weight: 500;
    border-bottom: 1px solid var(--nz-gray-100);
    transition: background 0.2s;
}
.nz-mobile-nav__link:hover {
    background: var(--nz-gray-100);
    color: var(--nz-black);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 1200px) {
    :root { --nz-gutter: 32px; }
    .nz-single-product__top { gap: 32px; }
    .wc-block-cart .wc-block-cart__main { padding-right: 32px; }
    .wc-block-checkout .wc-block-checkout__main { padding-right: 32px; }
}
@media (max-width: 960px) {
    .nz-featured { grid-template-columns: 1fr; }
    .nz-carousel__item { flex: 0 0 calc(50% - 8px); min-width: 250px; }
    .nz-sport__item { flex: 0 0 calc(50% - 8px); min-width: 250px; }
    .nz-about__section { grid-template-columns: 1fr; gap: 40px; }
    .nz-about__section:nth-child(odd) { direction: ltr; }
    .nz-about__stats { grid-template-columns: repeat(2, 1fr); }
    .nz-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .nz-help__faq-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .nz-contact-methods { grid-template-columns: 1fr; }
    .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; }
    .nz-single-product__top { grid-template-columns: 1fr; }
    .woocommerce form.checkout { grid-template-columns: 1fr; }
    .woocommerce form.checkout #order_review_heading,
    .woocommerce form.checkout #order_review { grid-column: 1; }
    .wc-block-cart .wc-block-cart__main { padding-right: 0; }
    .wc-block-checkout .wc-block-checkout__main { padding-right: 0; }
}
@media (max-width: 640px) {
    :root { --nz-gutter: 20px; }
    .nz-nav { display: none; }
    .nz-mobile-toggle { display: flex; }
    .nz-header { padding: 0 20px; }
    .nz-hero__slide img { height: 60vh; }
    .nz-spotlight__grid { grid-template-columns: repeat(3, 1fr) !important; }
    .nz-carousel__item { flex: 0 0 80%; }
    .nz-sport__item { flex: 0 0 80%; }
    .nz-footer__grid { grid-template-columns: 1fr; gap: 24px; }
    .nz-about__stats { grid-template-columns: 1fr 1fr; gap: 24px; }
    .nz-form-row { grid-template-columns: 1fr; }
    .nz-contact-form { padding: 32px 24px; }
    .woocommerce ul.products { grid-template-columns: 1fr !important; }
    .nz-search-bar { width: 140px; }
    .nz-hero__controls { bottom: 120px; right: 20px; }
    .nz-shop__filters { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
    .nz-shop__filters::-webkit-scrollbar { display: none; }
}

/* ===== PAGE TEMPLATE - default pages ===== */
.nz-page { padding: 60px var(--nz-gutter); }
.nz-page__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
}
.nz-page__content { max-width: 800px; line-height: 1.8; }
.nz-page__wc-content { max-width: 100%; line-height: 1.6; overflow: hidden; }
.nz-page__content p { margin-bottom: 16px; }
.nz-page__content h2 { font-size: 24px; font-weight: 700; margin: 32px 0 12px; }
.nz-page__content h3 { font-size: 20px; font-weight: 600; margin: 24px 0 8px; }
.nz-page__content img { margin: 24px 0; }
.nz-page__content ul, .nz-page__content ol { margin: 16px 0; padding-left: 24px; }
.nz-page__content li { margin-bottom: 8px; }

/* ===== WOOCOMMERCE BLOCK CART ===== */
.wc-block-cart .wp-block-woocommerce-cart-line-items-block {
    flex: 1;
}
.wc-block-cart .wc-block-cart__main {
    padding-right: 48px;
}
.wc-block-cart .wc-block-cart-items .wc-block-cart-items__row {
    border-bottom: 1px solid var(--nz-gray-200);
    padding: 20px 0;
}
.wc-block-cart .wc-block-cart-items .wc-block-cart-items__row:last-child {
    border-bottom: none;
}
.wc-block-cart .wc-block-components-product-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--nz-black);
    text-decoration: none;
    line-height: 1.4;
}
.wc-block-cart .wc-block-components-product-name:hover {
    color: var(--nz-gray-700);
}
.wc-block-cart .wc-block-cart-item__image img {
    border-radius: 8px;
    background: var(--nz-gray-100);
}
.wc-block-cart .wc-block-components-product-price {
    font-size: 15px;
    font-weight: 500;
    color: var(--nz-black);
}
.wc-block-cart .wc-block-components-quantity-selector {
    border: 1.5px solid var(--nz-gray-300);
    border-radius: 8px;
    overflow: hidden;
}
.wc-block-cart .wc-block-components-quantity-selector input {
    font-size: 14px;
    font-family: var(--nz-font);
}
.wc-block-cart .wc-block-components-quantity-selector button {
    color: var(--nz-black);
}
.wc-block-cart .wc-block-cart__totals-title {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Block Cart - Totals sidebar */
.wc-block-cart .wc-block-cart__sidebar .wc-block-components-totals-wrapper {
    border-color: var(--nz-gray-200);
}
.wc-block-cart .wc-block-components-totals-item__label {
    font-size: 14px;
    color: var(--nz-gray-700);
}
.wc-block-cart .wc-block-components-totals-item__value {
    font-size: 14px;
    font-weight: 500;
}
.wc-block-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 18px;
    font-weight: 700;
    color: var(--nz-black);
}

/* Block Cart - Proceed button */
.wc-block-cart .wc-block-cart__submit-button,
.wc-block-cart .wc-block-components-button.wc-block-cart__submit-button {
    background: var(--nz-black) !important;
    color: var(--nz-white) !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 14px 32px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    font-family: var(--nz-font) !important;
    text-align: center;
    transition: background 0.2s !important;
    width: 100%;
}
.wc-block-cart .wc-block-cart__submit-button:hover,
.wc-block-cart .wc-block-components-button.wc-block-cart__submit-button:hover {
    background: var(--nz-gray-700) !important;
}

/* Block Cart - Coupon */
.wc-block-cart .wc-block-components-totals-coupon__input .wc-block-components-text-input input {
    border: 1.5px solid var(--nz-gray-300);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--nz-font);
}
.wc-block-cart .wc-block-components-totals-coupon__button {
    background: var(--nz-black);
    color: var(--nz-white);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

/* ===== WOOCOMMERCE BLOCK CHECKOUT ===== */
.wc-block-checkout {
    font-family: var(--nz-font);
}

/* Checkout layout */
.wp-block-woocommerce-checkout {
    max-width: var(--nz-container);
    margin: 0 auto;
    padding: 0 var(--nz-gutter);
}
.wc-block-checkout .wc-block-checkout__main {
    padding-right: 48px;
}

/* Checkout headings */
.wc-block-checkout .wc-block-components-checkout-step__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--nz-black);
    font-family: var(--nz-font);
}

/* Checkout inputs */
.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-block-components-textarea textarea {
    border: 1.5px solid var(--nz-gray-300) !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-family: var(--nz-font) !important;
    padding: 10px 16px !important;
    transition: border-color 0.2s !important;
}
.wc-block-checkout .wc-block-components-text-input input:focus,
.wc-block-checkout .wc-block-components-textarea textarea:focus {
    border-color: var(--nz-black) !important;
    outline: none !important;
    box-shadow: none !important;
}
.wc-block-checkout .wc-block-components-text-input label {
    font-size: 13px;
    color: var(--nz-gray-700);
    font-family: var(--nz-font);
}

/* Checkout selects */
.wc-block-checkout select {
    border: 1.5px solid var(--nz-gray-300) !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-family: var(--nz-font) !important;
    padding: 10px 40px 10px 16px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath fill='none' stroke='%23333' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-color: var(--nz-white) !important;
    cursor: pointer;
}
.wc-block-checkout select:focus {
    border-color: var(--nz-black) !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Order Summary sidebar */
.wc-block-checkout .wc-block-components-order-summary {
    background: var(--nz-gray-100);
    border-radius: 12px;
    padding: 24px;
}
.wc-block-checkout .wc-block-components-order-summary .wc-block-components-order-summary__button-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--nz-black);
}

/* Order Summary product names - FIX OVERFLOW */
.wc-block-checkout .wc-block-components-order-summary-item__description {
    overflow: hidden;
}
.wc-block-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--nz-black);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    text-decoration: none;
}
.wc-block-checkout .wc-block-components-order-summary-item__image {
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}
.wc-block-checkout .wc-block-components-order-summary-item {
    gap: 12px;
    align-items: flex-start;
}

/* Checkout totals */
.wc-block-checkout .wc-block-components-totals-wrapper {
    border-color: var(--nz-gray-200);
}
.wc-block-checkout .wc-block-components-totals-item__label {
    font-size: 14px;
    color: var(--nz-gray-700);
}
.wc-block-checkout .wc-block-components-totals-item__value {
    font-size: 14px;
    font-weight: 500;
}
.wc-block-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
.wc-block-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 18px;
    font-weight: 700;
    color: var(--nz-black);
}

/* Place Order button */
.wc-block-checkout .wc-block-components-checkout-place-order-button,
.wc-block-checkout .wc-block-components-button.wp-element-button {
    background: var(--nz-black) !important;
    color: var(--nz-white) !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 14px 32px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    font-family: var(--nz-font) !important;
    text-align: center;
    transition: background 0.2s !important;
    width: 100%;
    cursor: pointer;
}
.wc-block-checkout .wc-block-components-checkout-place-order-button:hover,
.wc-block-checkout .wc-block-components-button.wp-element-button:hover {
    background: var(--nz-gray-700) !important;
}

/* Checkout payment methods */
.wc-block-checkout .wc-block-components-radio-control__option {
    padding: 12px 0;
    border-bottom: 1px solid var(--nz-gray-200);
}
.wc-block-checkout .wc-block-components-radio-control__label {
    font-size: 14px;
    font-weight: 500;
}

/* Checkout shipping */
.wc-block-checkout .wc-block-components-shipping-rates-control__package {
    border: 1.5px solid var(--nz-gray-200);
    border-radius: 8px;
    padding: 12px 16px;
}

/* Return to cart */
.wc-block-checkout .wc-block-components-checkout-return-to-cart-button {
    font-size: 14px;
    color: var(--nz-gray-700);
    text-decoration: none;
    font-weight: 500;
}
.wc-block-checkout .wc-block-components-checkout-return-to-cart-button:hover {
    color: var(--nz-black);
}

/* ===== WC BLOCKS GENERAL ===== */
.wc-block-components-button:not(.is-link) {
    background: var(--nz-black);
    color: var(--nz-white);
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--nz-font);
    transition: background 0.2s;
}
.wc-block-components-button:not(.is-link):hover {
    background: var(--nz-gray-700);
    color: var(--nz-white);
}

/* Remove WC block default focus outlines, use our own */
.wc-block-components-text-input input:focus,
.wc-block-components-textarea textarea:focus {
    box-shadow: none !important;
}

/* ===== SPOTLIGHT GRID FIX ===== */
.nz-spotlight__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px 24px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}
.nz-spotlight__item img {
    border-radius: 12px;
    background: var(--nz-gray-100);
    padding: 8px;
}
.nz-spotlight__item span {
    font-size: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== CART/CHECKOUT BLOCK OVERFLOW FIX ===== */
.wc-block-cart,
.wc-block-checkout {
    max-width: 100%;
    overflow: hidden;
}
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
    max-width: 100%;
}

/* Cart block layout fix */
.wc-block-cart .wc-block-cart__main,
.wc-block-cart .wp-block-woocommerce-cart-line-items-block {
    min-width: 0;
}
.wc-block-cart .wc-block-cart__sidebar {
    min-width: 0;
    max-width: 380px;
}

/* Checkout shipping radio fix */
.wc-block-components-radio-control__option {
    padding-left: 36px !important;
    position: relative;
}
.wc-block-components-radio-control__input[type="radio"] {
    position: absolute !important;
    left: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    flex-shrink: 0;
}
.wc-block-components-radio-control__label-group {
    min-width: 0;
    padding-left: 4px;
}

/* Checkout footer - Return to Cart + Place Order */
.wc-block-checkout .wc-block-checkout__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.wc-block-checkout .wc-block-checkout__actions .wc-block-components-checkout-return-to-cart-button {
    flex-shrink: 0;
    white-space: nowrap;
}
.wc-block-checkout .wc-block-checkout__actions .wc-block-components-checkout-place-order-button {
    flex: 1;
    min-width: 200px;
}

/* ===== WP ADMIN BAR FIX ===== */
body.admin-bar .nz-header {
    top: 32px;
}
@media (max-width: 782px) {
    body.admin-bar .nz-header {
        top: 46px;
    }
}
