/* =============================================================================
   Single Product — assets/css/single-product.css
   ============================================================================= */
body {background: #fff;}
/* ── Layout principal ── */
.sp {
    background: #fff;
    max-width: 1280px;
    min-height: 100vh;
    margin: 0 auto;
}

.sp-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text-soft);
    padding: 14px 20px;
    text-decoration: none;
    transition: color 0.15s;
}

.sp-back:hover {
    color: var(--color-text);
}

.sp-back svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* ── Grid 2 columnas ── */
.sp-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    background: #fff;
    min-height: calc(100vh - 45px);
}

/* ── Galería ── */
.sp-gallery {
    border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
    position: static !important;
    height: auto !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.sp-main-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0px;
    background: #f5f5f5;
}

.sp-main-img img,
.sp-featured-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0px !important;
}

.sp-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.sp-thumb {
    aspect-ratio: 1 / 1;
    border: 0.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    background: none;
}

.sp-thumb.active {
    border: 1.5px solid var(--color-text);
}

.sp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Info ── */
.sp-info {
    padding: 28px 32px 40px !important;
    overflow-y: auto;
}

.sp-category {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-soft);
    margin-bottom: 12px;
}

.sp-category a {
    color: inherit;
    text-decoration: none;
}

.sp-title {
    font-family: var(--font-display) !important;
    font-size: 36px !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    color: var(--color-text) !important;
    margin-bottom: 20px !important;
}

/* ── Precio ── */
.sp-price-wrap .price {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--color-text);
    display: block;
    margin-bottom: 4px;
}

.sp-price-wrap .price del {
    font-size: 18px;
    color: var(--color-text-soft);
    text-decoration: line-through;
    margin-right: 8px;
}

.sp-price-wrap .price ins {
    text-decoration: none;
}

.sp-price-note {
    font-size: 12px;
    color: var(--color-text-soft);
    margin-bottom: 0;
}

.sp-divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 20px 0;
}

.sp-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-soft);
}

/* ── Add to cart ── */
.sp-atc .quantity {
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    border-radius: 2px !important;
    display: inline-flex !important;
    align-items: center !important;
    overflow: hidden !important;
    width: auto !important;
    margin-bottom: 14px !important;
}

.sp-atc .quantity label {
    display: none;
}

.sp-atc .quantity input[type="number"] {
    border: none !important;
    border-left: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
    width: 52px !important;
    height: 38px !important;
    text-align: center !important;
    font-size: 14px !important;
    font-family: var(--font-body) !important;
    color: var(--color-text) !important;
    background: none !important;
    -moz-appearance: textfield !important;
    box-shadow: none !important;
}

.sp-atc .quantity input[type="number"]::-webkit-inner-spin-button,
.sp-atc .quantity input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.sp-atc button.single_add_to_cart_button {
    display: block !important;
    width: 100% !important;
    padding: 18px !important;
    background: var(--color-text) !important;
    color: #fff !important;
    border: none !important;
    font-family: var(--font-body) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    letter-spacing: 0.08em !important;
    cursor: pointer !important;
    border-radius: 2px !important;
    margin-bottom: 10px !important;
    transition: opacity 0.15s !important;
    line-height: 1 !important;
}

.sp-atc button.single_add_to_cart_button:hover {
    opacity: 0.85 !important;
}

/* ── Wishlist ── */
.sp-btn-wishlist {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 13px !important;
    background: none !important;
    color: var(--color-text) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    font-family: var(--font-body) !important;
    font-size: 13px !important;
    letter-spacing: 0.04em !important;
    cursor: pointer !important;
    border-radius: 2px !important;
    margin-bottom: 24px !important;
    transition: background 0.15s !important;
}

.sp-btn-wishlist:hover {
    background: rgba(0, 0, 0, 0.04) !important;
}

.sp-heart {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* ── Acordeones ── */
.sp-accordion {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 4px;
}

.sp-acc-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.sp-acc-head {
    width: 100%;
    background: none;
    border: none;
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text);
    text-align: left;
    line-height: 1;
}

.sp-acc-head svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    stroke: var(--color-text-soft);
}

.sp-acc-head[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.sp-acc-body {
    font-size: 13px;
    line-height: 1.7;
    color: var(--color-text-soft);
    padding-bottom: 16px;
}

.sp-acc-body[hidden] {
    display: none;
}

.sp-acc-body p {
    margin: 0;
}

.sp-acc-body p + p {
    margin-top: 8px;
}

/* ── Related products ── */
.sp-related {
    background:#fff;
    padding: 40px 20px 60px;
    max-width: 1280px;
    margin: 0 auto;
}

.sp-related .related.products > h2 {
    font-family: var(--font-display) !important;
    font-size: 32px !important;
    font-weight: 400 !important;
    letter-spacing: -0.01em !important;
    margin-bottom: 24px !important;
    color: var(--color-text) !important;
}

.sp-related ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.sp-related ul.products li.product {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.sp-related ul.products li.product > a {
    display: block !important;
    text-decoration: none !important;
}

.sp-related ul.products li.product img {
    width: 100% !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: cover !important;
    border-radius: 3px !important;
    display: block !important;
    margin-bottom: 12px !important;
    border: none !important;
    padding: 0 !important;
    background: #f5f5f5 !important;
    box-shadow: none !important;
}

.sp-related ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-display) !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: var(--color-text) !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    line-height: 1.3 !important;
}

.sp-related ul.products li.product .woocommerce-product-details__short-description,
.sp-related ul.products li.product p:not(.price) {
    font-size: 13px !important;
    color: var(--color-text-soft) !important;
    margin: 0 0 6px !important;
    line-height: 1.5 !important;
}

.sp-related ul.products li.product .price {
    font-size: 14px !important;
    color: var(--color-text) !important;
    font-weight: 400 !important;
    display: block !important;
}

.sp-related ul.products li.product .price .woocommerce-Price-amount {
    font-size: 14px !important;
    color: var(--color-text) !important;
}

.sp-related ul.products li.product a.button,
.sp-related ul.products li.product .add_to_cart_button {
    display: none !important;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .sp-grid {
        grid-template-columns: 1fr !important;
    }

    .sp-gallery {
        border-right: none !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
        padding: 16px !important;
    }

    .sp-info {
        padding: 20px 16px 32px !important;
    }

    .sp-title {
        font-size: 28px !important;
    }

    .sp-price-wrap .price {
        font-size: 24px !important;
    }

    .sp-related ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    .sp-title {
        font-size: 24px !important;
    }

    .sp-related ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}