/**
 * Simplyzen components (2.0.1)
 *
 * Styles for template components that shipped without CSS: grid columns, blog and
 * search layouts, the account dropdown, cart/wishlist drawers, lightbox, quick view,
 * search overlay results, 404, footer bits and shop extras. Uses the theme tokens
 * from theme.css. Overlays open with [aria-hidden="false"] or .is-open, matching the
 * existing mobile menu and search overlay.
 */

/* ── Grid columns ─────────────────────────────────────────────────────── */
.row > [class*="col-"] {
    position: relative;
    width: 100%;
    min-width: 0;
    padding-inline: var(--sz-space-4);
}
@media (min-width: 576px) {
    .col-sm-6  { flex: 0 0 50%;       max-width: 50%; }
}
@media (min-width: 768px) {
    .col-md-3  { flex: 0 0 25%;       max-width: 25%; }
    .col-md-4  { flex: 0 0 33.3333%;  max-width: 33.3333%; }
    .col-md-6  { flex: 0 0 50%;       max-width: 50%; }
    .col-md-8  { flex: 0 0 66.6667%;  max-width: 66.6667%; }
    .col-md-12 { flex: 0 0 100%;      max-width: 100%; }
}
@media (min-width: 1024px) {
    .col-lg-3  { flex: 0 0 25%;       max-width: 25%; }
    .col-lg-4  { flex: 0 0 33.3333%;  max-width: 33.3333%; }
    .col-lg-6  { flex: 0 0 50%;       max-width: 50%; }
    .col-lg-8  { flex: 0 0 66.6667%;  max-width: 66.6667%; }
    .col-lg-9  { flex: 0 0 75%;       max-width: 75%; }
    .col-lg-10 { flex: 0 0 83.3333%;  max-width: 83.3333%; }
    .col-lg-12 { flex: 0 0 100%;      max-width: 100%; }
    .col-lg-offset-1 { margin-left: 8.3333%; }
    .layout-left-sidebar > .sidebar-area { order: -1; }
}
/* A 3-up post grid inside an 8-column content area is too tight: use 2 up there. */
@media (min-width: 1024px) {
    .content-area.col-lg-8 .posts-grid > .col-lg-4 { flex: 0 0 50%; max-width: 50%; }
}
.layout-full-width > .content-area,
.layout-no-sidebar > .content-area { flex: 0 0 100%; max-width: 100%; }

/* ── Page sections ────────────────────────────────────────────────────── */
.site-content { min-height: 40vh; }
.blog-content,
.search-content { padding-block: var(--sz-space-8) calc(var(--sz-space-8) * 2); }
.sidebar-area { margin-top: var(--sz-space-8); }
@media (min-width: 1024px) { .sidebar-area { margin-top: 0; } }

.skip-link {
    position: absolute;
    left: -9999px;
    top: var(--sz-space-2);
    z-index: 100000;
    padding: var(--sz-space-2) var(--sz-space-4);
    background: var(--sz-gray-900);
    color: #fff;
    border-radius: var(--sz-radius-md);
}
.skip-link:focus { left: var(--sz-space-2); }

.site-branding { display: flex; align-items: center; gap: var(--sz-space-3); min-width: 0; }
.custom-logo-link img,
.site-branding img { max-height: 56px; width: auto; }

/* Keep the header on one line: the nav gives way before the actions do. */
.header-main .container > nav,
.header-main__nav { min-width: 0; flex: 1 1 auto; }
.header-main .main-menu { flex-wrap: wrap; row-gap: var(--sz-space-1); }
.header-main__actions,
.header-actions { flex-shrink: 0; }

.page-header__title,
.page-title {
    font-size: clamp(var(--sz-text-2xl), 3vw, var(--sz-text-4xl));
    line-height: var(--sz-leading-tight);
    margin: 0;
}
.page-content { max-width: 70ch; }

/* ── Buttons used by theme templates ──────────────────────────────────── */
.button--primary,
.button--secondary,
.button--outline,
a.button--primary,
a.button--secondary,
a.button--outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sz-space-2);
    min-height: 44px;
    padding: var(--sz-space-3) var(--sz-space-6);
    font-weight: 600;
    font-size: var(--sz-text-sm);
    line-height: 1.2;
    border-radius: var(--sz-radius-lg);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.button--primary   { background: var(--sz-primary-dark); color: #fff; }
.button--primary:hover   { background: var(--sz-gray-900); color: #fff; }
.button--secondary { background: var(--sz-gray-100); color: var(--sz-text-primary); border-color: var(--sz-border-color); }
.button--secondary:hover { background: var(--sz-gray-200); color: var(--sz-text-primary); }
.button--outline   { background: transparent; color: var(--sz-text-primary); border-color: var(--sz-gray-300); }
.button--outline:hover   { border-color: var(--sz-gray-900); }

/* ── Post cards (blog, archives) ──────────────────────────────────────── */
.posts-grid { row-gap: var(--sz-space-6); }
.post-column { display: flex; }
.post-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--sz-bg-primary);
    border: 1px solid var(--sz-border-color);
    border-radius: var(--sz-radius-xl);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.post-card:hover { box-shadow: var(--sz-shadow-lg); transform: translateY(-2px); }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.post-card-content { display: flex; flex-direction: column; gap: var(--sz-space-3); padding: var(--sz-space-5) var(--sz-space-6) var(--sz-space-6); flex: 1; }
.post-card-header { display: flex; flex-direction: column; gap: var(--sz-space-2); }
.post-card-title { font-size: var(--sz-text-xl); line-height: var(--sz-leading-tight); margin: 0; overflow-wrap: anywhere; }
.post-card-title a { color: var(--sz-text-primary); text-decoration: none; }
.post-card-title a:hover { color: var(--sz-primary-dark); }
.post-card-excerpt { color: var(--sz-text-secondary); font-size: var(--sz-text-sm); line-height: var(--sz-leading-relaxed); }
.post-card-excerpt p { margin: 0; }
.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sz-space-3);
    margin-top: auto;
    padding-top: var(--sz-space-3);
    border-top: 1px solid var(--sz-border-color);
    font-size: var(--sz-text-sm);
}

.post-meta,
.search-result-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sz-space-2);
    font-size: var(--sz-text-xs);
    color: var(--sz-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.post-meta a,
.search-result-meta a { color: inherit; }
.meta-separator { opacity: 0.5; }
.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: var(--sz-space-1);
    font-weight: 600;
    color: var(--sz-primary-dark);
    text-decoration: none;
}
.read-more-link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.read-more-link:hover svg { transform: translateX(3px); }
.reading-time { color: var(--sz-text-muted); font-size: var(--sz-text-xs); }
.post-edit-link { font-size: var(--sz-text-xs); color: var(--sz-text-muted); }

/* ── Sidebar & widgets ────────────────────────────────────────────────── */
.widget-area.sidebar { display: flex; flex-direction: column; gap: var(--sz-space-8); }
.sidebar .widget { margin: 0; }
.sidebar .widget h2,
.sidebar .widget .widget-title,
.sidebar .wp-block-heading {
    font-size: var(--sz-text-base);
    font-weight: 700;
    margin: 0 0 var(--sz-space-3);
    padding-bottom: var(--sz-space-2);
    border-bottom: 2px solid var(--sz-gray-100);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: var(--sz-space-2) 0; border-bottom: 1px solid var(--sz-gray-100); font-size: var(--sz-text-sm); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--sz-text-secondary); text-decoration: none; }
.sidebar a:hover { color: var(--sz-primary-dark); }
.sidebar .wp-block-search__inside-wrapper { display: flex; gap: var(--sz-space-2); }
.sidebar .wp-block-search__input { flex: 1; min-width: 0; min-height: 44px; padding: 0 var(--sz-space-3); border: 1px solid var(--sz-border-color); border-radius: var(--sz-radius-lg); }
.sidebar .wp-block-search__button { min-height: 44px; padding: 0 var(--sz-space-4); border: 0; border-radius: var(--sz-radius-lg); background: var(--sz-primary-dark); color: #fff; font-weight: 600; cursor: pointer; }
.sidebar .wp-block-search__label { font-weight: 700; margin-bottom: var(--sz-space-2); display: block; }

/* ── Search form & results ────────────────────────────────────────────── */
.search-form { width: 100%; max-width: 560px; }
.search-form__field { display: flex; gap: var(--sz-space-2); }
.search-form__input {
    flex: 1;
    min-width: 0;
    min-height: 48px;
    padding: 0 var(--sz-space-4);
    border: 1px solid var(--sz-border-color);
    border-radius: var(--sz-radius-lg);
    font-size: var(--sz-text-base);
    background: var(--sz-bg-primary);
}
.search-form__input:focus { outline: 2px solid var(--sz-primary); outline-offset: 1px; border-color: transparent; }
.search-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    padding: 0 var(--sz-space-4);
    border: 0;
    border-radius: var(--sz-radius-lg);
    background: var(--sz-primary-dark);
    color: #fff;
    cursor: pointer;
}
.search-form__submit svg { width: 20px; height: 20px; }

.search-header { padding-block: var(--sz-space-8); background: var(--sz-bg-secondary); }
.search-header .container { display: flex; flex-direction: column; gap: var(--sz-space-3); }
.search-title { margin: 0; font-size: clamp(var(--sz-text-2xl), 3vw, var(--sz-text-4xl)); }
.search-query { color: var(--sz-primary-dark); }
.search-results-count { margin: 0; color: var(--sz-text-muted); }
.search-form-wrapper { margin-top: var(--sz-space-2); }

.search-results-list { display: flex; flex-direction: column; gap: var(--sz-space-4); }
.search-result {
    border: 1px solid var(--sz-border-color);
    border-radius: var(--sz-radius-xl);
    background: var(--sz-bg-primary);
    transition: border-color 0.2s ease;
}
.search-result:hover { border-color: var(--sz-primary-light); }
.search-result-inner { display: flex; gap: var(--sz-space-4); padding: var(--sz-space-5); }
.search-result-content { display: flex; flex-direction: column; gap: var(--sz-space-2); min-width: 0; }
.search-result-header { display: flex; flex-direction: column; gap: var(--sz-space-1); }
.search-result-type {
    align-self: flex-start;
    font-size: var(--sz-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--sz-primary-dark);
    background: var(--sz-primary-50);
    padding: 2px var(--sz-space-2);
    border-radius: var(--sz-radius-sm);
}
.search-result-title { margin: 0; font-size: var(--sz-text-xl); }
.search-result-title a { color: var(--sz-text-primary); text-decoration: none; }
.search-result-title a:hover { color: var(--sz-primary-dark); }
.search-result-excerpt { color: var(--sz-text-secondary); font-size: var(--sz-text-sm); }
.search-result-excerpt p { margin: 0; }

/* Search overlay: live results area */
.search-overlay__suggestions { margin-top: var(--sz-space-4); }
.search-overlay__loading { display: flex; justify-content: center; padding: var(--sz-space-6); }
.search-overlay__results:empty { display: none; }
.search-overlay__results {
    display: grid;
    gap: var(--sz-space-2);
    max-height: 50vh;
    overflow-y: auto;
    padding: var(--sz-space-2);
    background: var(--sz-bg-primary);
    border: 1px solid var(--sz-border-color);
    border-radius: var(--sz-radius-lg);
}
.search-overlay__results a {
    display: flex;
    align-items: center;
    gap: var(--sz-space-3);
    padding: var(--sz-space-2);
    border-radius: var(--sz-radius-md);
    color: var(--sz-text-primary);
    text-decoration: none;
}
.search-overlay__results a:hover { background: var(--sz-gray-100); }
.search-overlay__results img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--sz-radius-md); }
.search-overlay__categories { margin-top: var(--sz-space-8); }
.search-overlay__cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--sz-space-3); margin-top: var(--sz-space-3); }
.search-overlay__cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sz-space-2);
    padding: var(--sz-space-4);
    border: 1px solid var(--sz-border-color);
    border-radius: var(--sz-radius-lg);
    color: var(--sz-text-primary);
    text-decoration: none;
    text-align: center;
    font-size: var(--sz-text-sm);
    transition: border-color 0.2s ease, background 0.2s ease;
}
.search-overlay__cat-item:hover { border-color: var(--sz-primary); background: var(--sz-primary-50); }
.search-overlay__cat-item img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--sz-radius-full); }

/* ── Header: counts & account dropdown ────────────────────────────────── */
.header-action { position: relative; color: var(--sz-text-primary); text-decoration: none; }
.header-action__count {
    position: absolute;
    top: 4px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--sz-radius-full);
    background: var(--sz-primary-dark);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    pointer-events: none;
}
.header-action__count.is-empty { display: none; }

.header-account { position: relative; }
.header-account__link { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: inherit; }
.header-account__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1000;
    width: 280px;
    padding: var(--sz-space-3);
    background: var(--sz-bg-primary);
    border: 1px solid var(--sz-border-color);
    border-radius: var(--sz-radius-xl);
    box-shadow: var(--sz-shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
/* Invisible bridge so the pointer can travel from icon to menu. */
.header-account__dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.header-account:hover .header-account__dropdown,
.header-account:focus-within .header-account__dropdown,
.header-account.is-open .header-account__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.header-account__user {
    display: flex;
    align-items: center;
    gap: var(--sz-space-3);
    padding: var(--sz-space-2) var(--sz-space-2) var(--sz-space-3);
    margin-bottom: var(--sz-space-2);
    border-bottom: 1px solid var(--sz-border-color);
}
.header-account__user img { width: 40px; height: 40px; border-radius: var(--sz-radius-full); flex-shrink: 0; }
.header-account__info { display: flex; flex-direction: column; min-width: 0; }
.header-account__name { font-weight: 600; font-size: var(--sz-text-sm); color: var(--sz-text-primary); }
.header-account__email { font-size: var(--sz-text-xs); color: var(--sz-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-account__nav { display: flex; flex-direction: column; }
.header-account__nav-link {
    display: flex;
    align-items: center;
    gap: var(--sz-space-3);
    padding: var(--sz-space-2);
    border-radius: var(--sz-radius-md);
    color: var(--sz-text-secondary);
    font-size: var(--sz-text-sm);
    text-decoration: none;
}
.header-account__nav-link:hover,
.header-account__nav-link:focus-visible { background: var(--sz-gray-100); color: var(--sz-text-primary); }
.header-account__nav-link svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--sz-text-muted); }
.header-account__nav-link:last-child { margin-top: var(--sz-space-1); border-top: 1px solid var(--sz-border-color); border-radius: 0 0 var(--sz-radius-md) var(--sz-radius-md); padding-top: var(--sz-space-3); }

/* ── Drawers (cart, wishlist) ─────────────────────────────────────────── */
.cart-drawer,
.wishlist-drawer {
    position: fixed;
    inset: 0;
    z-index: 9990;
    visibility: hidden;
    pointer-events: none;
}
.cart-drawer[aria-hidden="false"],
.cart-drawer.is-open,
.wishlist-drawer[aria-hidden="false"],
.wishlist-drawer.is-open { visibility: visible; pointer-events: auto; }
.cart-drawer__overlay,
.wishlist-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.cart-drawer__container,
.wishlist-drawer__container {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: min(420px, 100vw);
    background: var(--sz-bg-primary);
    box-shadow: var(--sz-shadow-xl);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cart-drawer[aria-hidden="false"] .cart-drawer__overlay,
.cart-drawer.is-open .cart-drawer__overlay,
.wishlist-drawer[aria-hidden="false"] .wishlist-drawer__overlay,
.wishlist-drawer.is-open .wishlist-drawer__overlay { opacity: 1; }
.cart-drawer[aria-hidden="false"] .cart-drawer__container,
.cart-drawer.is-open .cart-drawer__container,
.wishlist-drawer[aria-hidden="false"] .wishlist-drawer__container,
.wishlist-drawer.is-open .wishlist-drawer__container { transform: translateX(0); }

.cart-drawer__header,
.wishlist-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sz-space-4) var(--sz-space-5);
    border-bottom: 1px solid var(--sz-border-color);
}
.cart-drawer__title,
.wishlist-drawer__title {
    display: flex;
    align-items: center;
    gap: var(--sz-space-2);
    margin: 0;
    font-size: var(--sz-text-lg);
}
.cart-drawer__count,
.wishlist-drawer__count {
    min-width: 22px;
    padding: 0 6px;
    border-radius: var(--sz-radius-full);
    background: var(--sz-gray-100);
    font-size: var(--sz-text-xs);
    line-height: 22px;
    text-align: center;
}
.cart-drawer__close,
.wishlist-drawer__close,
.mini-cart-close,
.quick-view-close,
.modal__close,
.lightbox-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: var(--sz-radius-md);
    background: transparent;
    color: var(--sz-text-primary);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}
.cart-drawer__close:hover,
.wishlist-drawer__close:hover { background: var(--sz-gray-100); }
.cart-drawer__body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.cart-drawer__content,
.wishlist-drawer__content { flex: 1; overflow-y: auto; padding: var(--sz-space-4) var(--sz-space-5); }
.cart-drawer__empty,
.wishlist-drawer__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sz-space-3);
    min-height: 100%;
    padding: var(--sz-space-8) 0;
    text-align: center;
    color: var(--sz-text-muted);
}
.cart-drawer__empty svg,
.wishlist-drawer__empty svg { color: var(--sz-gray-300); }
.cart-drawer__empty p,
.wishlist-drawer__empty p { margin: 0; font-size: var(--sz-text-lg); color: var(--sz-text-primary); }
.cart-drawer__footer { padding: var(--sz-space-4) var(--sz-space-5); border-top: 1px solid var(--sz-border-color); background: var(--sz-bg-secondary); }
.cart-drawer__recommendations h4 { margin: 0 0 var(--sz-space-2); font-size: var(--sz-text-sm); }
.cart-drawer__recommendations-grid:empty,
.cart-drawer__recommendations:has(.cart-drawer__recommendations-grid:empty) { display: none; }
.cart-drawer__subtotal { display: flex; justify-content: space-between; font-weight: 700; font-size: var(--sz-text-lg); }
.cart-drawer__shipping-note { margin: var(--sz-space-1) 0 var(--sz-space-4); font-size: var(--sz-text-xs); color: var(--sz-text-muted); }
.cart-drawer__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sz-space-2); }
.cart-drawer__actions .button { width: 100%; text-align: center; }

/* WooCommerce mini cart list inside the drawer */
.cart-drawer .woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.cart-drawer .woocommerce-mini-cart-item {
    position: relative;
    display: block;
    padding: var(--sz-space-3) var(--sz-space-8) var(--sz-space-3) 0;
    border-bottom: 1px solid var(--sz-border-color);
    font-size: var(--sz-text-sm);
}
.cart-drawer .woocommerce-mini-cart-item a:not(.remove) { display: flex; align-items: center; gap: var(--sz-space-3); color: var(--sz-text-primary); font-weight: 600; text-decoration: none; }
.cart-drawer .woocommerce-mini-cart-item img { width: 64px; height: 64px; flex-shrink: 0; object-fit: cover; border-radius: var(--sz-radius-md); margin: 0; }
.cart-drawer .woocommerce-mini-cart-item .quantity { display: block; margin-top: calc(var(--sz-space-5) * -1); padding-left: calc(64px + var(--sz-space-3)); color: var(--sz-text-muted); }
.cart-drawer .woocommerce-mini-cart-item .remove {
    position: absolute;
    right: 0;
    top: var(--sz-space-3);
    width: 24px;
    height: 24px;
    border-radius: var(--sz-radius-full);
    color: var(--sz-text-muted) !important;
    text-align: center;
    line-height: 22px;
    text-decoration: none;
}
.cart-drawer .woocommerce-mini-cart-item .remove:hover { background: var(--sz-error-light); color: var(--sz-error) !important; }
.cart-drawer .woocommerce-mini-cart__total,
.cart-drawer .woocommerce-mini-cart__buttons { display: none; } /* The drawer footer shows totals and actions. */

/* Wishlist items (rendered by components.js) */
.wishlist-drawer__items { list-style: none; margin: 0; padding: 0; }
.wishlist-drawer__item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    align-items: center;
    gap: var(--sz-space-3);
    padding: var(--sz-space-3) 0;
    border-bottom: 1px solid var(--sz-border-color);
    font-size: var(--sz-text-sm);
}
.wishlist-drawer__item img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--sz-radius-md); }
.wishlist-drawer__item a { color: var(--sz-text-primary); font-weight: 600; text-decoration: none; }
.wishlist-drawer__item .price { display: block; color: var(--sz-text-muted); font-weight: 400; margin-top: 2px; }
.wishlist-drawer__remove { border: 0; background: none; color: var(--sz-text-muted); cursor: pointer; font-size: 20px; width: 32px; height: 32px; border-radius: var(--sz-radius-full); }
.wishlist-drawer__remove:hover { background: var(--sz-error-light); color: var(--sz-error); }

body.sz-drawer-open,
body.lightbox-open,
body.quickview-open { overflow: hidden; }

/* ── Lightbox (created by main.js) ────────────────────────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9995;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s;
}
.lightbox.is-open { visibility: visible; opacity: 1; }
.lightbox-overlay { position: absolute; inset: 0; background: rgb(0 0 0 / 0.9); }
.lightbox-container { position: relative; max-width: 92vw; max-height: 92vh; display: flex; align-items: center; justify-content: center; }
.lightbox-container img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: var(--sz-radius-md); }
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    z-index: 2;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: var(--sz-radius-full);
    background: rgb(255 255 255 / 0.12);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgb(255 255 255 / 0.25); }
.lightbox-close { top: var(--sz-space-4); right: var(--sz-space-4); }
.lightbox-prev { left: var(--sz-space-4); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--sz-space-4); top: 50%; transform: translateY(-50%); }
.lightbox-prev svg,
.lightbox-next svg { width: 24px; height: 24px; }
.lightbox-counter { position: fixed; bottom: var(--sz-space-4); left: 50%; transform: translateX(-50%); color: #fff; font-size: var(--sz-text-sm); }

/* ── Quick view & generic modal ───────────────────────────────────────── */
.quick-view-modal,
.modal { position: fixed; inset: 0; z-index: 9995; display: none; }
.quick-view-modal.is-open,
.quick-view-modal[aria-hidden="false"],
.modal.is-open,
.modal[aria-hidden="false"] { display: flex; align-items: center; justify-content: center; }
.quick-view-overlay,
.modal__overlay { position: absolute; inset: 0; background: rgb(0 0 0 / 0.5); }
.quick-view-container,
.modal__container {
    position: relative;
    width: min(960px, 94vw);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--sz-bg-primary);
    border-radius: var(--sz-radius-2xl);
    box-shadow: var(--sz-shadow-xl);
}
.quick-view-close,
.modal__close { position: absolute; top: var(--sz-space-2); right: var(--sz-space-2); z-index: 2; }
.quick-view-content,
.modal__content,
.quickview-content { padding: var(--sz-space-6); }
.quick-view-loading,
.quickview-loading { display: flex; align-items: center; justify-content: center; min-height: 320px; }

.spinner,
.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--sz-gray-200);
    border-top-color: var(--sz-primary-dark);
    border-radius: var(--sz-radius-full);
    animation: sz-spin 0.8s linear infinite;
}
@keyframes sz-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .spinner, .loading-spinner { animation-duration: 2s; }
    .cart-drawer__container, .wishlist-drawer__container, .post-card { transition: none; }
}

/* ── Mobile menu extras ───────────────────────────────────────────────── */
.mobile-menu__list { list-style: none; margin: 0; padding: 0; }
.mobile-menu__list li { border-bottom: 1px solid var(--sz-border-color); }
.mobile-menu__list a { display: block; padding: var(--sz-space-3) 0; color: var(--sz-text-primary); text-decoration: none; font-weight: 500; }
.mobile-menu__list .sub-menu { list-style: none; padding-left: var(--sz-space-4); }
.mobile-menu__account { padding: var(--sz-space-4) 0; border-top: 1px solid var(--sz-border-color); }
.mobile-menu__account-link { display: flex; align-items: center; gap: var(--sz-space-3); color: var(--sz-text-primary); text-decoration: none; font-weight: 500; }

/* ── 404 ──────────────────────────────────────────────────────────────── */
.error-404 { padding-block: calc(var(--sz-space-8) * 2); }
.error-404__content { display: flex; flex-direction: column; align-items: center; gap: var(--sz-space-5); text-align: center; }
.error-404__visual { width: min(320px, 70vw); color: var(--sz-primary); }
.error-404__visual svg { width: 100%; height: auto; }
.error-404__title { margin: 0; font-size: clamp(var(--sz-text-3xl), 4vw, var(--sz-text-5xl)); }
.error-404__message { margin: 0; max-width: 52ch; color: var(--sz-text-secondary); font-size: var(--sz-text-lg); }
.error-404__search { display: flex; flex-direction: column; align-items: center; gap: var(--sz-space-2); width: 100%; }
.error-404__search p { margin: 0; color: var(--sz-text-muted); }
.error-404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sz-space-3); }
.error-404__help { color: var(--sz-text-muted); font-size: var(--sz-text-sm); }
.error-404__suggestions { width: 100%; margin-top: var(--sz-space-8); text-align: left; }
.error-404__suggestions h3 { text-align: center; margin-bottom: var(--sz-space-6); }

/* ── Footer bits ──────────────────────────────────────────────────────── */
.newsletter-form { width: 100%; }
.newsletter-form__field { display: flex; gap: var(--sz-space-2); }
.newsletter-form__field input[type="email"] { flex: 1; min-width: 0; }
.newsletter-form__consent { display: flex; align-items: center; gap: var(--sz-space-2); margin-top: var(--sz-space-2); font-size: var(--sz-text-sm); }
.newsletter-form__consent a { color: inherit; text-decoration: underline; }
@media (max-width: 575px) {
    .newsletter-form__field { flex-direction: column; }
}
.footer-bottom__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sz-space-3); }
.footer-bottom__copyright { font-size: var(--sz-text-sm); }
.footer-bottom__theme a { color: var(--sz-primary-light); }
.footer-bottom__social,
.top-bar__social { display: flex; align-items: center; gap: var(--sz-space-2); }
.footer-bottom__social:empty,
.top-bar__social:empty,
.top-bar__currency:empty,
.top-bar__center:empty { display: none; }
.footer-bottom__social a,
.top-bar__social a { display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: var(--sz-radius-full); }
.footer-bottom__social svg,
.top-bar__social svg { width: 16px; height: 16px; }
.top-bar__promo { display: inline-flex; align-items: center; gap: var(--sz-space-2); }
.top-bar__promo svg { width: 14px; height: 14px; }
.top-bar__currency select { background: transparent; color: inherit; border: 0; font-size: var(--sz-text-xs); }

/* ── Share buttons (posts) ────────────────────────────────────────────── */
.share-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sz-space-2); }
.share-label { font-size: var(--sz-text-sm); font-weight: 600; color: var(--sz-text-secondary); }
.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--sz-radius-full);
    background: var(--sz-gray-100);
    color: var(--sz-text-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
}
.share-button:hover { color: #fff; }
.share-facebook:hover  { background: #1877f2; }
.share-twitter:hover   { background: #111; }
.share-linkedin:hover  { background: #0a66c2; }
.share-pinterest:hover { background: #e60023; }
.share-icon::before { font-family: var(--sz-font-primary); }
.icon-facebook::before  { content: "f"; }
.icon-twitter::before   { content: "\1D54F"; }
.icon-linkedin::before  { content: "in"; }
.icon-pinterest::before { content: "P"; }

/* Share dropdown (single product) */
.share-dropdown {
    position: absolute;
    z-index: 20;
    display: none;
    min-width: 180px;
    padding: var(--sz-space-2);
    background: var(--sz-bg-primary);
    border: 1px solid var(--sz-border-color);
    border-radius: var(--sz-radius-lg);
    box-shadow: var(--sz-shadow-lg);
}
.share-btn:focus + .share-dropdown,
.share-dropdown:hover,
.share-dropdown:focus-within,
.share-dropdown.is-open { display: block; }
.share-link {
    display: block;
    width: 100%;
    padding: var(--sz-space-2) var(--sz-space-3);
    border: 0;
    border-radius: var(--sz-radius-md);
    background: none;
    color: var(--sz-text-primary);
    font-size: var(--sz-text-sm);
    text-align: left;
    text-decoration: none;
    text-transform: capitalize;
    cursor: pointer;
}
.share-link:hover { background: var(--sz-gray-100); }
.share-link.facebook::before  { content: "Facebook"; }
.share-link.twitter::before   { content: "X / Twitter"; }
.share-link.pinterest::before { content: "Pinterest"; }
.share-link.copy-link:empty::before { content: "Copy link"; }

/* ── Product extras ───────────────────────────────────────────────────── */
.gallery-main-image { position: relative; overflow: hidden; border-radius: var(--sz-radius-xl); background: var(--sz-bg-secondary); }
.gallery-main-image img { display: block; width: 100%; height: auto; }
.hover-zoom img { transition: transform 0.4s ease; }
.hover-zoom:hover img { transform: scale(1.04); }
.gallery-controls { position: absolute; right: var(--sz-space-3); bottom: var(--sz-space-3); display: flex; gap: var(--sz-space-2); z-index: 2; }
.gallery-fullscreen {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: var(--sz-radius-full);
    background: rgb(255 255 255 / 0.92);
    box-shadow: var(--sz-shadow-md);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.gallery-fullscreen svg { width: 18px; height: 18px; }
.gallery-main-image.no-image + .gallery-controls,
.no-image .gallery-controls { display: none; }
.trust-text { font-size: var(--sz-text-xs); color: var(--sz-text-muted); }
.review-count { color: var(--sz-text-muted); font-size: var(--sz-text-sm); }
.meta-item { display: flex; gap: var(--sz-space-2); font-size: var(--sz-text-sm); padding: 2px 0; }
.meta-label { color: var(--sz-text-muted); min-width: 90px; }
.meta-value a { color: var(--sz-text-primary); }
.quick-view-btn.is-active,
.wishlist-btn.is-active { color: var(--sz-error); }
.wishlist-btn.is-active svg { fill: currentColor; }

/* WooCommerce PhotoSwipe markup ships unstyled when Woo's photoswipe CSS is absent. */
.pswp[aria-hidden="true"] { display: none; }

/* ── Icons ────────────────────────────────────────────────────────────── */
.simplyzen-icon,
.icon { display: inline-flex; width: 1em; height: 1em; vertical-align: middle; }
.simplyzen-icon svg,
.icon svg { width: 100%; height: 100%; }

/* ── Blog header & category filter ────────────────────────────────────── */
.blog-header { padding-block: var(--sz-space-8) var(--sz-space-2); }
.blog-title { margin: 0 0 var(--sz-space-4); font-size: clamp(var(--sz-text-3xl), 4vw, var(--sz-text-5xl)); line-height: var(--sz-leading-tight); }
.categories-list { display: flex; flex-wrap: wrap; gap: var(--sz-space-2); list-style: none; margin: 0; padding: 0; }
.category-item a {
    display: inline-flex;
    align-items: center;
    gap: var(--sz-space-1);
    padding: var(--sz-space-2) var(--sz-space-4);
    border: 1px solid var(--sz-border-color);
    border-radius: var(--sz-radius-full);
    color: var(--sz-text-secondary);
    font-size: var(--sz-text-sm);
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.category-item a:hover { border-color: var(--sz-primary); color: var(--sz-primary-dark); }
.category-item.active a { background: var(--sz-gray-900); border-color: var(--sz-gray-900); color: #fff; }
.category-item .count { opacity: 0.6; font-size: var(--sz-text-xs); }

/* ── Small screens: keep the header inside the viewport ──────────────── */
@media (max-width: 767px) {
    .header-main .container { gap: var(--sz-space-2); }
    .header-main .site-branding,
    .header-main__logo { min-width: 0; flex: 1 1 auto; }
    .header-main .site-title,
    .header-main__logo a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--sz-text-lg); }
    .header-actions { gap: 0; }
    .header-action { width: 40px; height: 40px; }
    .header-actions .header-account,
    .header-actions .wishlist-toggle { display: none; }
    .footer-payments__badges { flex-wrap: wrap; justify-content: center; }
    .footer-payments__inner { flex-wrap: wrap; }
}

/* Overlays sit above the WordPress admin bar (z-index 99999) so their close buttons stay reachable. */
.mobile-menu,
.search-overlay,
.cart-drawer,
.wishlist-drawer,
.lightbox,
.quick-view-modal,
.quickview-modal,
.modal { z-index: 100000; }

@media (max-width: 767px) {
    .payment-icons { flex-wrap: wrap; }
    .footer-payments__icons { flex-wrap: wrap; justify-content: center; }
}
.search-overlay__none { margin: 0; padding: var(--sz-space-3); color: var(--sz-text-muted); }
.search-overlay__results small { color: var(--sz-text-muted); }

/* ── Breadcrumbs & page header ────────────────────────────────────────── */
.page-header { padding-block: var(--sz-space-6) var(--sz-space-2); }
.breadcrumbs,
.woocommerce-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sz-space-2); font-size: var(--sz-text-sm); color: var(--sz-text-muted); }
.breadcrumbs a,
.woocommerce-breadcrumb a { color: var(--sz-text-secondary); text-decoration: none; }
.breadcrumbs a:hover { color: var(--sz-primary-dark); }
.breadcrumb-separator { display: inline-flex; opacity: 0.5; }
.breadcrumb-separator svg { width: 12px; height: 12px; }
.breadcrumb-current { color: var(--sz-text-primary); font-weight: 500; }

/* ── Single post ──────────────────────────────────────────────────────── */
.single-post { padding-bottom: var(--sz-space-8); }
.single-post__header { display: flex; flex-direction: column; gap: var(--sz-space-4); padding-block: var(--sz-space-6) var(--sz-space-8); border-bottom: 1px solid var(--sz-border-color); margin-bottom: var(--sz-space-8); }
.single-post__meta { display: flex; flex-wrap: wrap; gap: var(--sz-space-2); }
.single-post__category {
    font-size: var(--sz-text-xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sz-primary-dark);
    background: var(--sz-primary-50);
    padding: 4px var(--sz-space-3);
    border-radius: var(--sz-radius-full);
    text-decoration: none;
}
.single-post__title { margin: 0; font-size: clamp(var(--sz-text-3xl), 4.5vw, 3.25rem); line-height: 1.15; letter-spacing: -0.01em; }
.single-post__info { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sz-space-4); }
.single-post__author { display: flex; align-items: center; gap: var(--sz-space-3); }
.single-post__author img { width: 44px; height: 44px; border-radius: var(--sz-radius-full); background: var(--sz-gray-100); }
.single-post__author-info { display: flex; flex-direction: column; line-height: 1.3; }
.single-post__author-name { font-weight: 600; }
.single-post__date { font-size: var(--sz-text-sm); color: var(--sz-text-muted); }
.single-post__stats { display: flex; align-items: center; gap: var(--sz-space-4); font-size: var(--sz-text-sm); color: var(--sz-text-muted); }
.single-post__reading-time,
.single-post__comments { display: inline-flex; align-items: center; gap: var(--sz-space-1); }
.single-post__stats svg { width: 16px; height: 16px; }

.entry-content,
.single-post__content { font-size: 1.0625rem; line-height: var(--sz-leading-relaxed); color: var(--sz-text-primary); }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2 { font-size: var(--sz-text-3xl); margin-top: 2em; line-height: var(--sz-leading-tight); }
.entry-content h3 { font-size: var(--sz-text-2xl); margin-top: 1.75em; line-height: var(--sz-leading-tight); }
.entry-content a { color: var(--sz-primary-dark); text-decoration: underline; text-underline-offset: 2px; }
.entry-content img { max-width: 100%; height: auto; border-radius: var(--sz-radius-lg); }
.entry-content blockquote { margin-inline: 0; padding: var(--sz-space-4) var(--sz-space-6); border-left: 4px solid var(--sz-primary); background: var(--sz-primary-50); border-radius: 0 var(--sz-radius-lg) var(--sz-radius-lg) 0; font-size: var(--sz-text-lg); }
.entry-content pre { overflow-x: auto; padding: var(--sz-space-4); background: var(--sz-gray-900); color: var(--sz-gray-100); border-radius: var(--sz-radius-lg); }
.entry-content ul,
.entry-content ol { padding-left: 1.4em; }
.entry-footer,
.single-post__footer { margin-top: var(--sz-space-8); padding-top: var(--sz-space-6); border-top: 1px solid var(--sz-border-color); }
.single-post__share { display: flex; align-items: center; gap: var(--sz-space-3); }
.single-post__share-label { display: none; } /* .share-buttons prints its own label */
.edit-link { display: inline-block; margin-top: var(--sz-space-4); font-size: var(--sz-text-sm); }

.author-box {
    display: flex;
    gap: var(--sz-space-5);
    margin-top: var(--sz-space-8);
    padding: var(--sz-space-6);
    background: var(--sz-bg-secondary);
    border-radius: var(--sz-radius-xl);
}
.author-box__avatar img { width: 72px; height: 72px; border-radius: var(--sz-radius-full); background: var(--sz-gray-200); }
.author-box__content { display: flex; flex-direction: column; gap: var(--sz-space-1); min-width: 0; }
.author-box__name { margin: 0; font-size: var(--sz-text-lg); }
.author-box__name a { color: var(--sz-text-primary); text-decoration: none; }
.author-box__meta,
.author-box__posts { font-size: var(--sz-text-sm); color: var(--sz-text-muted); }
@media (max-width: 575px) { .author-box { flex-direction: column; } }

.post-navigation { margin-top: var(--sz-space-8); }
.post-navigation__inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sz-space-4); }
.post-navigation__link {
    display: flex;
    flex-direction: column;
    gap: var(--sz-space-1);
    padding: var(--sz-space-4) var(--sz-space-5);
    border: 1px solid var(--sz-border-color);
    border-radius: var(--sz-radius-xl);
    color: var(--sz-text-primary);
    text-decoration: none;
    transition: border-color 0.2s ease;
}
.post-navigation__link:hover { border-color: var(--sz-primary); }
.post-navigation__link--next { grid-column: 2; text-align: right; align-items: flex-end; }
.post-navigation__label { display: inline-flex; align-items: center; gap: var(--sz-space-1); font-size: var(--sz-text-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--sz-text-muted); }
.post-navigation__label svg { width: 14px; height: 14px; }
.post-navigation__title { font-weight: 600; }
@media (max-width: 575px) {
    .post-navigation__inner { grid-template-columns: 1fr; }
    .post-navigation__link--next { grid-column: 1; }
}

/* ── Comments ─────────────────────────────────────────────────────────── */
.comments-area { margin-top: calc(var(--sz-space-8) * 1.5); padding-top: var(--sz-space-8); border-top: 1px solid var(--sz-border-color); }
.comment-reply-title { font-size: var(--sz-text-2xl); margin: 0 0 var(--sz-space-2); }
.comment-form { display: flex; flex-direction: column; gap: var(--sz-space-4); }
.comment-form label { display: block; font-weight: 600; font-size: var(--sz-text-sm); margin-bottom: var(--sz-space-1); }
.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: var(--sz-space-3) var(--sz-space-4);
    border: 1px solid var(--sz-border-color);
    border-radius: var(--sz-radius-lg);
    font: inherit;
    background: var(--sz-bg-primary);
}
.comment-form textarea { min-height: 160px; resize: vertical; }
.comment-form textarea:focus,
.comment-form input:focus { outline: 2px solid var(--sz-primary); outline-offset: 1px; border-color: transparent; }
.logged-in-as,
.comment-notes,
.required-field-message { font-size: var(--sz-text-sm); color: var(--sz-text-muted); margin: 0; }
.comment-submit,
.comment-form .submit { align-self: flex-start; }

/* ── Shop: neutralise WooCommerce's float layout inside the theme grid ── */
ul.products::before,
ul.products::after { display: none !important; }
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product {
    float: none;
    width: auto;
    margin: 0;
    clear: none;
}

/* ── Product card (woocommerce/content-product.php) ───────────────────── */
.simplyzen-product-card{ display: flex; }
.simplyzen-product-card .product-card-inner{ display: flex; flex-direction: column; width: 100%; }
.simplyzen-product-card .product-thumbnail{
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: var(--sz-radius-xl);
    background: var(--sz-bg-secondary);
}
.simplyzen-product-card .product-link{ display: block; width: 100%; height: 100%; }
.simplyzen-product-card .product-thumbnail img{
    display: block;
    width: 100%;
    height: 100%;
    margin: 0 !important;
    object-fit: cover;
}
.simplyzen-product-card .product-thumbnail img.woocommerce-placeholder{ object-fit: contain; padding: 22%; opacity: 0.5; }
.simplyzen-product-card .product-badges{ position: absolute; top: var(--sz-space-3); left: var(--sz-space-3); z-index: 2; display: flex; flex-direction: column; gap: var(--sz-space-1); }
.simplyzen-product-card .product-badges .badge{
    display: inline-block;
    padding: 3px var(--sz-space-2);
    border-radius: var(--sz-radius-md);
    background: var(--sz-gray-900);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.simplyzen-product-card .product-badges .badge-sale{ background: var(--sz-error); }
.simplyzen-product-card .product-badges .badge-new{ background: var(--sz-primary-dark); }
.simplyzen-product-card .product-badges .badge-out-of-stock,
.simplyzen-product-card .product-badges .badge-soldout{ background: var(--sz-gray-500); }
.simplyzen-product-card .product-actions{
    position: absolute;
    top: var(--sz-space-3);
    right: var(--sz-space-3);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: var(--sz-space-2);
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.simplyzen-product-card .product-action-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: var(--sz-radius-full);
    background: #fff;
    color: var(--sz-text-primary);
    box-shadow: var(--sz-shadow-md);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.simplyzen-product-card .product-action-btn:hover{ background: var(--sz-gray-900); color: #fff; }
.simplyzen-product-card .product-action-btn svg{ width: 17px; height: 17px; }
.simplyzen-product-card .product-add-to-cart{
    position: absolute;
    left: var(--sz-space-3);
    right: var(--sz-space-3);
    bottom: var(--sz-space-3);
    z-index: 2;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.simplyzen-product-card .product-add-to-cart .button,
.simplyzen-product-card .product-add-to-cart a.button{
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: var(--sz-space-2);
    width: 100%;
    min-height: 42px;
    margin: 0 !important;
    padding: 0 var(--sz-space-4) !important;
    border: 0;
    border-radius: var(--sz-radius-lg) !important;
    background: var(--sz-gray-900) !important;
    color: #fff !important;
    font-size: var(--sz-text-sm) !important;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}
.simplyzen-product-card .product-add-to-cart .button:hover{ background: var(--sz-primary-dark) !important; }
.simplyzen-product-card .product-add-to-cart .added_to_cart{ display: block; margin-top: var(--sz-space-1); text-align: center; font-size: var(--sz-text-xs); color: #fff; background: rgb(0 0 0 / 0.55); border-radius: var(--sz-radius-md); padding: 2px; }
.simplyzen-product-card .product-thumbnail:hover .product-actions,
.simplyzen-product-card .product-thumbnail:focus-within .product-actions,
.simplyzen-product-card .product-thumbnail:hover .product-add-to-cart,
.simplyzen-product-card .product-thumbnail:focus-within .product-add-to-cart{ opacity: 1; transform: none; }
@media (hover: none) {
    .simplyzen-product-card .product-actions{ opacity: 1; transform: none; }
    .simplyzen-product-card .product-add-to-cart{ position: static; opacity: 1; transform: none; margin-top: var(--sz-space-2); }
    .simplyzen-product-card .product-thumbnail{ overflow: visible; aspect-ratio: auto; }
    .simplyzen-product-card .product-link{ aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--sz-radius-xl); }
}
.simplyzen-product-card .product-info{ display: flex; flex-direction: column; gap: 4px; padding-top: var(--sz-space-3); }
.simplyzen-product-card .product-category,
.simplyzen-product-card .product-category a{ font-size: var(--sz-text-xs); color: var(--sz-text-muted); text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.simplyzen-product-card .product-title{ margin: 0; font-size: var(--sz-text-base); font-weight: 600; line-height: 1.35; }
.simplyzen-product-card .product-title a{ color: var(--sz-text-primary); text-decoration: none; }
.simplyzen-product-card .product-title a:hover{ color: var(--sz-primary-dark); }
.simplyzen-product-card .product-rating{ font-size: var(--sz-text-xs); color: var(--sz-text-muted); min-height: 1em; }
.simplyzen-product-card .product-rating .no-rating{ display: none; }
.simplyzen-product-card .product-price{ font-weight: 700; color: var(--sz-text-primary); }
.simplyzen-product-card .product-price del{ color: var(--sz-text-muted); font-weight: 400; margin-right: var(--sz-space-1); }
.simplyzen-product-card .product-price ins{ text-decoration: none; color: var(--sz-error); }

/* WooCommerce PhotoSwipe: keep the gallery lightbox markup hidden unless Woo opens it */
.pswp { display: none; }
.pswp.pswp--open { display: block; }

/* Neutralise legacy loop-card rules from woocommerce.css inside the new card */
.simplyzen-product-card .product-actions { left: auto; bottom: auto; padding: 0; background: none; justify-content: flex-start; }
.simplyzen-product-card:hover { transform: none; box-shadow: none; }
.simplyzen-product-card { overflow: visible; background: transparent; }

/* ── Single product page (woocommerce/single-product.php) ─────────────── */
.single-product .content-area > .woocommerce-breadcrumb { display: none; } /* the template prints its own */
.simplyzen-single-product,
.simplyzen-single-product:hover { transform: none; box-shadow: none; overflow: visible; background: transparent; border-radius: 0; }
.simplyzen-single-product .product-actions {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: var(--sz-space-2);
    padding: 0;
    margin-top: var(--sz-space-4);
    background: none;
    opacity: 1;
    transform: none;
    justify-content: flex-start;
}
.simplyzen-single-product .product-actions .action-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sz-space-2);
    width: auto;
    height: 40px;
    padding: 0 var(--sz-space-4);
    border: 1px solid var(--sz-border-color);
    border-radius: var(--sz-radius-full);
    background: var(--sz-bg-primary);
    color: var(--sz-text-primary);
    font-size: var(--sz-text-sm);
}
.simplyzen-single-product .product-actions .action-btn:hover { border-color: var(--sz-gray-900); }
.simplyzen-single-product .action-share { position: relative; }
.simplyzen-single-product .share-dropdown { top: calc(100% + 6px); left: 0; }
.simplyzen-single-product .product-details-section .product-title { font-size: clamp(var(--sz-text-2xl), 3vw, var(--sz-text-4xl)); line-height: var(--sz-leading-tight); margin: var(--sz-space-1) 0 var(--sz-space-2); }
.simplyzen-single-product .product-price-wrapper .price { font-size: var(--sz-text-2xl); font-weight: 700; color: var(--sz-text-primary); margin: var(--sz-space-2) 0; }
.simplyzen-single-product .product-price-wrapper del { color: var(--sz-text-muted); font-weight: 400; font-size: var(--sz-text-lg); }
.simplyzen-single-product .product-price-wrapper ins { text-decoration: none; color: var(--sz-error); }
.simplyzen-single-product .product-category-link { font-size: var(--sz-text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sz-primary-dark); text-decoration: none; }
.simplyzen-single-product .product-add-to-cart { margin-top: var(--sz-space-5); }
.simplyzen-single-product form.cart { display: flex; flex-wrap: wrap; gap: var(--sz-space-3); align-items: stretch; }
.simplyzen-single-product form.cart .quantity input.qty { width: 80px; min-height: 52px; text-align: center; border: 1px solid var(--sz-border-color); border-radius: var(--sz-radius-lg); font-size: var(--sz-text-base); }
.simplyzen-single-product .single_add_to_cart_button {
    flex: 1 1 220px;
    min-height: 52px;
    border: 0 !important;
    border-radius: var(--sz-radius-lg) !important;
    background: var(--sz-gray-900) !important;
    color: #fff !important;
    font-size: var(--sz-text-base) !important;
    font-weight: 600;
    cursor: pointer;
}
.simplyzen-single-product .single_add_to_cart_button:hover { background: var(--sz-primary-dark) !important; }
.simplyzen-single-product .product-gallery-section { position: relative; }
.simplyzen-single-product .product-gallery-section .product-badges { position: absolute; top: var(--sz-space-3); left: var(--sz-space-3); z-index: 3; }
.simplyzen-single-product .product-meta { margin-top: var(--sz-space-5); padding-top: var(--sz-space-4); border-top: 1px solid var(--sz-border-color); }
.simplyzen-single-product .product-trust-badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--sz-space-3); margin-top: var(--sz-space-5); }
.simplyzen-single-product .trust-badge { display: flex; gap: var(--sz-space-2); align-items: flex-start; padding: var(--sz-space-3); background: var(--sz-bg-secondary); border-radius: var(--sz-radius-lg); font-size: var(--sz-text-sm); }
.simplyzen-single-product .trust-badge svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--sz-primary-dark); }
/* WooCommerce wraps related/upsell lists in <section class="related products">; only the inner ul is a grid. */
section.products,
.related.products,
.upsells.products,
.cross-sells { display: block; }
section.products > h2 { margin: 0 0 var(--sz-space-6); font-size: var(--sz-text-2xl); }

.woocommerce-ordering select,
select.orderby {
    min-height: 42px;
    padding: 0 var(--sz-space-8) 0 var(--sz-space-3);
    border: 1px solid var(--sz-border-color);
    border-radius: var(--sz-radius-lg);
    background-color: var(--sz-bg-primary);
    font-size: var(--sz-text-sm);
}

.simplyzen-single-product .product-price-wrapper .price,
.simplyzen-single-product .product-price-wrapper .amount { color: var(--sz-text-primary); }
.simplyzen-single-product .product-price-wrapper ins .amount { color: var(--sz-error); }

/* Reviews form */
#review_form textarea,
#review_form input[type="text"],
#review_form input[type="email"] { width: 100%; padding: var(--sz-space-3) var(--sz-space-4); border: 1px solid var(--sz-border-color); border-radius: var(--sz-radius-lg); font: inherit; }
#review_form textarea { min-height: 140px; }
#review_form .form-submit input[type="submit"],
#review_form #submit { min-height: 46px; padding: 0 var(--sz-space-6); border: 0; border-radius: var(--sz-radius-lg); background: var(--sz-gray-900); color: #fff; font-weight: 600; cursor: pointer; }
#review_form #submit:hover { background: var(--sz-primary-dark); }

/* Footer newsletter button: WooCommerce's .button styles must not win on store pages */
.footer-newsletter .newsletter-form .button,
.footer-newsletter .newsletter-form button[type="submit"] { background: var(--sz-gray-900) !important; color: #fff !important; border: 0; }
.footer-newsletter .newsletter-form button[type="submit"]:hover { background: #000 !important; }
.error-404__help ul,
.error-404 ul:not(.products) { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sz-space-2) var(--sz-space-5); }

/* Phones/tablets: woocommerce.css sets 2 columns on .products, but .products.columns-N wins on specificity. */
@media (max-width: 991px) { ul.products[class*="columns-"] { --wc-grid-columns: 3; } }
@media (max-width: 767px) { ul.products[class*="columns-"] { --wc-grid-columns: 2; --wc-grid-gap: 16px; } }
.simplyzen-product-card .product-thumbnail { width: 100%; }
@media (hover: none) {
    .simplyzen-product-card .product-link { height: auto; }
    .simplyzen-product-card .product-link img { aspect-ratio: 1 / 1; height: auto; }
    .simplyzen-product-card .product-actions { top: var(--sz-space-2); right: var(--sz-space-2); }
    .simplyzen-product-card .product-action-btn { width: 34px; height: 34px; }
    .simplyzen-product-card .product-action-btn.compare-btn { display: none; }
}
/* woocommerce-smallscreen.css: .woocommerce ul.products[class*=columns-] li.product { width: 48%; float: left } */
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product,
ul.products li.simplyzen-product-card { width: auto !important; float: none !important; margin: 0 !important; clear: none !important; }

/* WooCommerce category counts use <mark>; drop the browser's yellow highlight. */
.product-category mark,
.product-category .count,
mark.count { background: none; color: var(--sz-text-muted); font-weight: 400; }
