/* ─── pezweb WooCommerce ─────────────────────────────────────────────────── */
/* 1-global  2-archive  3-single  4-cart  5-checkout  6-account  7-notices   */

/* ─── 1. Global ──────────────────────────────────────────────────────────── */

.woo-wrap {
    padding-top: var(--content-top);
}

/* Result count */
.woo-archive-meta {
    padding-bottom: var(--gap-md);
    color: #6d6d6d;
    font-size: 1rem;
    letter-spacing: 0.1em;
}

/* WooCommerce pagination — reuse theme pattern */
.woocommerce-pagination {
    padding-top: var(--gap-lg);
}
.woocommerce-pagination ul {
    display: flex;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    font-size: 1rem;
    color: #6d6d6d;
    padding: 0.4rem 0.6rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: color 0.15s ease;
}
.woocommerce-pagination ul li a:hover {
    color: #fafafa;
}
.woocommerce-pagination ul li span.current {
    color: #fafafa;
}

/* ─── 2. Archive / Shop ──────────────────────────────────────────────────── */

.woo-list {
    display: flex;
    flex-direction: column;
}

/* Rows inherit .archive-row flex base from main.css.
   We only add what's specific to shop rows. */
.woo-row {
    justify-content: space-between;
    gap: var(--gap-xxs);
}

.woo-row__cat {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #6d6d6d;
    flex-shrink: 0;
    white-space: nowrap;
}

.woo-row__name {
    flex: 1;
    margin-right: auto;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #fafafa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.woo-row__price {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #6d6d6d;
    white-space: nowrap;
}

.woo-row__price .woocommerce-Price-currencySymbol {
    opacity: 0.5;
}

/* ─── 3. Single product ──────────────────────────────────────────────────── */

body.is-woocommerce .pz-page-title h1,
body.is-woocommerce .pz-page-title__heading {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fafafa;
    line-height: 1.8;
}

.woo-single-desc {
    margin-bottom: var(--gap-md);
}

@media (min-width: 900px) {
    .woo-single .archive-wrap {
        max-width: 50%;
    }
}

/* ── Accordion sections — matches pz-acc-group visual style ── */

.woo-section {
    margin-bottom: 5px;
}

.woo-section__title {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #fafafa;
    background: #0d0d0d;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}

.woo-section__title::-webkit-details-marker {
    display: none;
}
.woo-section__title::marker {
    display: none;
}

.woo-section__title:hover {
    background: #111111;
}

.woo-section[open] .woo-section__title {
    background: #111111;
}

.woo-section__body {
    overflow: hidden;
    height: 0;
    transition: height 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    color: #b0b0b0;
    font-size: 1.2rem;
    line-height: 1.8;
}

.woo-section__body-inner {
    padding: var(--gap-md) 0 var(--gap-md);
}

.woo-section__body p {
    font-weight: 400;
}

/* ── Especificaciones ── */
.woo-specs {
    margin-bottom: var(--gap-md);
}

.woo-specs__item {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: var(--gap-xxs);
    padding: 0;
}

.woo-specs__label {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6d6d6d;
}

.woo-specs__value {
    font-size: 1rem;
    color: #fafafa;
}

/* ── Valor / Precio ── */
.woo-valor__body {
    display: flex;
    align-items: center;
    gap: var(--gap-xs);
    flex-wrap: wrap;
}

.woo-valor__price-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex-shrink: 0;
}

.woo-valor__note {
    font-size: 1rem;
    color: #6d6d6d;
    letter-spacing: 0.04em;
}

.woo-valor .woo-single-price {
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    color: #fafafa;
    line-height: 1;
}

.woo-valor .woo-single-price .woocommerce-Price-currencySymbol {
    font-size: 1.5rem;
    opacity: 0.5;
    margin-right: 0.2em;
}

.woo-valor .quantity {
    display: none;
}

.woo-valor form.cart {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--gap-sm);
}

.woo-valor .variations {
    width: 100%;
    border-collapse: collapse;
}

.woo-valor .variations td,
.woo-valor .variations th {
    padding: 0 0 0.8rem 0;
    vertical-align: top;
}

.woo-valor .variations label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6d6d6d;
    margin-bottom: 0.4rem;
}

.woo-valor .variations select {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid #2a2a2a;
    color: #fafafa;
    font-family: 'Roboto', Helvetica, sans-serif;
    font-size: 1.1rem;
    padding: 0.8rem;
    appearance: none;
    cursor: pointer;
    border-radius: 0;
}

.woo-valor .variations select:focus {
    outline: none;
    border-color: #555;
}

.woo-valor .reset_variations {
    font-size: 0.9rem;
    color: #444;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.woo-valor .reset_variations:hover {
    color: #fafafa;
}

.woo-valor .single_add_to_cart_button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333333;
    color: #ffffff;
    font-family: 'Roboto', Helvetica, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 8px 24px;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    border-radius: 0;
    transition: background 0.15s ease;
    width: auto;
}

.woo-valor .single_add_to_cart_button:hover {
    background: #444444;
}

.woo-valor .single_add_to_cart_button:focus {
    outline: none;
    box-shadow: none;
}

.woo-valor .single_add_to_cart_button.disabled,
.woo-valor .single_add_to_cart_button:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

/* Already in cart — sold individually */
.woo-in-cart-notice {
    font-size: 1rem;
    color: #6d6d6d;
    letter-spacing: 0.06em;
    align-self: center;
}

.woo-in-cart-link {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fafafa;
    background: #333333;
    padding: 0.4rem 0.8rem;
    white-space: nowrap;
    align-self: center;
    transition: background 0.15s ease;
}

.woo-in-cart-link:hover {
    background: #444444;
    opacity: 1;
}

.woo-remove-from-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    background: #1a1a1a;
    color: #6d6d6d;
    flex-shrink: 0;
    align-self: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.woo-remove-from-cart:hover {
    background: #dd0000;
    color: #ffffff;
    opacity: 1;
}

.woo-valor.is-in-cart .single_add_to_cart_button {
    opacity: 0.2;
    pointer-events: none;
    cursor: not-allowed;
}

.woo-valor.is-in-cart form.cart {
    display: none;
}

/* ─── Content sections (Instalación, FAQ) ─────────────────────────────────── */

.woo-section-heading {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.8;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #6d6d6d;
    border-bottom: 1px solid #1c1c1c;
    padding: 0 0 var(--gap-md);
    margin: var(--gap-md) 0 var(--gap-md);
}

.woo-steps,
.woo-faq {
    margin-bottom: var(--gap-md);
}

.woo-steps__list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
}

.woo-steps__item {
    counter-increment: step;
    display: flex;
    gap: var(--gap-xxs);
    font-size: 1.2rem;
    color: #b0b0b0;
    line-height: 1.6;
}

.woo-steps__item::before {
    content: counter(step, decimal-leading-zero);
    font-size: 1rem;
    color: #888888;
    flex-shrink: 0;
    padding-top: 0.1em;
}

.woo-hash-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap-xxs);
}

.woo-hash-list li {
    display: flex;
    gap: 0.8em;
    padding: 0;
    font-size: 1.2rem;
    color: #b0b0b0;
    line-height: 1.5;
}

.woo-hash-list li::before {
    content: '#';
    color: #6d6d6d;
    flex-shrink: 0;
}

.pz-breadcrumb a {
    color: inherit;
}

/* ─── 7. Notices ─────────────────────────────────────────────────────────── */

.woo-notices {
    display: none;
    margin-bottom: var(--gap-md);
}

/* Fixed slide-in panel */
.woo-notice-fixed {
    position: fixed;
    left: var(--side-pad);
    right: var(--side-pad);
    bottom: calc(var(--side-pad) * 3);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 0;
    pointer-events: none;
}

.woo-notice-fixed .woocommerce-message {
    display: flex;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.6rem;
    border: 1px solid #2a2a2a;
    background: #0d0d0d;
    color: #fafafa;
    font-size: 10px;
    text-transform: uppercase;
    list-style: none;
    margin: 0;
    pointer-events: all;
    opacity: 0;
    transform: translateX(calc(100% + var(--side-pad)));
    transition: transform 0.3s cubic-bezier(0.5, 0, 0.75, 0),
        opacity 0.2s ease;
    flex-wrap: wrap;
    line-height: 1.3;
}

.woo-notice-fixed .woo-notice__text {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.woo-notice-fixed .woocommerce-message.is-visible {
    opacity: 1;
    transform: translateX(0);
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.35s ease;
}

.woo-notice-fixed .woocommerce-message:focus,
.woo-notice-fixed .woocommerce-message *:focus {
    outline: none;
    box-shadow: none;
}

/* "Ver carrito" — nav item style */
.woo-notice-fixed .button.wc-forward {
    font-family: 'Roboto', Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffffff;
    background: #333333;
    padding: 0.4rem 0.8rem;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
    margin-left: 0;
    border-radius: 0;
    cursor: pointer;
}

.woo-notice-fixed .button.wc-forward:hover {
    background: #444444;
}

/* Countdown */
.woo-notice__countdown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.8rem;
    height: auto;
    align-self: stretch;
    background: #1a1a1a;
    color: #fafafa;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

/* Close button */
.woo-notice__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.8rem;
    height: auto;
    align-self: stretch;
    background: #333333;
    color: #fafafa;
    font-size: 1.2rem;
    line-height: 1;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.woo-notice__close:hover {
    background: #444444;
}

/* Toast */
#pw-woo-toast {
    position: fixed;
    bottom: var(--side-pad);
    right: var(--side-pad);
    z-index: 9999;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    letter-spacing: 0.08em;
    color: #0a0a0a;
    background: #fafafa;
    padding: 0.8rem 1.4rem;
    pointer-events: none;
    opacity: 0;
    transform: translateY(0.8rem);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#pw-woo-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}
