/**
 * Al-Tareekhiyah — Premium Single Product page
 * Shopify-inspired layout, tuned for the store identity (burgundy / gold / cream).
 * All classes are scoped with the .alt-sp- prefix.
 */

.alt-sp-page,
.alt-sp-page *,
.alt-sp-page *::before,
.alt-sp-page *::after {
    box-sizing: border-box;
}

.alt-sp-page img {
    max-width: 100%;
}

:root {
    --sp-ink: #2b0f13;
    --sp-brand: #411017;
    --sp-brand-2: #5c1a24;
    --sp-gold: #a9822b;
    --sp-gold-2: #c9a961;
    --sp-cream: #faf7f2;
    --sp-card: #ffffff;
    --sp-line: #ece4d7;
    --sp-muted: #7a6f63;
    --sp-green: #1f7a4d;
}

.alt-sp-page {
    background: var(--sp-cream);
    color: var(--sp-ink);
    font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
    padding: 18px 0 70px;
}

.alt-sp-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------------------------------------------------------
 * Breadcrumbs
 * ------------------------------------------------------- */
.alt-sp-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--sp-muted);
    margin-bottom: 22px;
}

.alt-sp-crumbs a {
    color: var(--sp-muted);
    text-decoration: none;
    transition: color .2s ease;
}

.alt-sp-crumbs a:hover {
    color: var(--sp-gold);
}

.alt-sp-crumb-sep {
    color: #cbbfa9;
    font-size: 11px;
}

.alt-sp-crumb-current {
    color: var(--sp-ink);
    font-weight: 700;
    max-width: 46ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------------------------------------------------------
 * Layout
 * ------------------------------------------------------- */
.alt-sp-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
    gap: 52px;
    align-items: start;
}

.alt-sp-media-sticky {
    position: sticky;
    top: 96px;
}

.admin-bar .alt-sp-media-sticky {
    top: 128px;
}

/* ---------------------------------------------------------
 * Gallery stage
 * ------------------------------------------------------- */
.alt-sp-stage {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--sp-line);
    box-shadow: 0 24px 60px -40px rgba(65, 16, 23, .55), 0 2px 6px rgba(65, 16, 23, .04);
}

.alt-sp-stage-open {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 10px;
    border: 0;
    background: #fff;
    cursor: zoom-in;
    overflow: hidden;
}

.alt-sp-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.alt-sp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    padding: 8px 12px;
    border-radius: 999px;
    letter-spacing: .01em;
}

.alt-sp-stage-badges {
    position: absolute;
    top: 16px;
    inset-inline-start: 16px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.alt-sp-badge-sale {
    background: var(--sp-brand);
    color: #fff;
    box-shadow: 0 10px 24px -12px rgba(65, 16, 23, .8);
}

.alt-sp-badge-featured {
    background: rgba(255, 255, 255, .94);
    color: var(--sp-brand);
    border: 1px solid rgba(169, 130, 43, .35);
    backdrop-filter: blur(6px);
}

.alt-sp-badge-featured i {
    color: var(--sp-gold);
    font-size: 13px;
}

.alt-sp-stage-actions {
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.alt-sp-icon-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(65, 16, 23, .08);
    background: rgba(255, 255, 255, .95);
    color: var(--sp-brand);
    font-size: 17px;
    cursor: pointer;
    box-shadow: 0 6px 18px -10px rgba(65, 16, 23, .5);
    transition: all .25s ease;
    backdrop-filter: blur(6px);
}

.alt-sp-icon-btn:hover {
    background: var(--sp-brand);
    color: #fff;
    transform: translateY(-2px);
}

.alt-sp-wishlist.is-active {
    background: var(--sp-brand);
    color: #fff;
}

.alt-sp-zoom-pill {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    color: var(--sp-brand);
    font-size: 12px;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transition: all .3s ease;
    box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .6);
}

.alt-sp-stage-open:hover .alt-sp-zoom-pill {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.alt-sp-soldout {
    position: absolute;
    inset: 0;
    background: rgba(43, 15, 19, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
}

.alt-sp-soldout span {
    background: #fff;
    color: var(--sp-brand);
    font-weight: 800;
    font-size: 15px;
    padding: 12px 26px;
    border-radius: 999px;
}

/* Thumbnails */
.alt-sp-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.alt-sp-thumb {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    padding: 6px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--sp-line);
    background: #fff;
    cursor: pointer;
    transition: all .22s ease;
    opacity: .72;
}

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

.alt-sp-thumb:hover {
    opacity: 1;
    border-color: var(--sp-gold-2);
    transform: translateY(-2px);
}

.alt-sp-thumb.is-active {
    opacity: 1;
    border-color: var(--sp-gold);
    box-shadow: 0 0 0 2px rgba(169, 130, 43, .22);
}

/* ---------------------------------------------------------
 * Info column
 * ------------------------------------------------------- */
.alt-sp-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 12px;
}

.alt-sp-vendor {
    color: var(--sp-gold);
    letter-spacing: .04em;
}

.alt-sp-dot {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: #cbbfa9;
}

.alt-sp-cat {
    color: var(--sp-muted);
    font-weight: 600;
}

.alt-sp-title {
    font-size: clamp(26px, 2.9vw, 40px);
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -.01em;
    color: var(--sp-ink);
    margin: 0 0 14px;
}

/* Rating */
.alt-sp-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    margin-bottom: 20px;
}

.alt-sp-stars {
    display: inline-flex;
    gap: 2px;
    font-size: 15px;
    color: #dcd2c2;
    line-height: 1;
}

.alt-sp-stars i.is-on {
    color: var(--sp-gold-2);
}

/* Typographic stars (font-independent) */
.alt-sp-star {
    display: inline-block;
    color: #ddd3c2;
    line-height: 1;
    font-size: 1em;
}

.alt-sp-star.is-on {
    color: var(--sp-gold-2);
}

.alt-sp-stars .alt-sp-star {
    font-size: 15px;
}

.alt-sp-stars-lg .alt-sp-star {
    font-size: 19px;
}

.alt-sp-review-stars .alt-sp-star {
    font-size: 12px;
}

.alt-sp-bar-label .alt-sp-star {
    font-size: 10px;
}

.alt-sp-star-xl {
    display: block;
    font-size: 34px;
    color: #d8cbb4;
    margin-bottom: 2px;
}

.alt-sp-rating-value {
    font-weight: 800;
    color: var(--sp-ink);
}

.alt-sp-rating-link {
    color: var(--sp-muted);
    text-decoration: underline;
    text-decoration-color: #d8cbb4;
    text-underline-offset: 4px;
    transition: color .2s ease;
}

.alt-sp-rating-link:hover {
    color: var(--sp-gold);
}

.alt-sp-rating-text {
    color: var(--sp-muted);
}

/* Price */
.alt-sp-price-block {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--sp-line);
    margin-bottom: 18px;
}

.alt-sp-price-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.alt-sp-price {
    font-size: clamp(26px, 2.4vw, 34px);
    font-weight: 800;
    color: var(--sp-brand);
    line-height: 1.2;
}

.alt-sp-price del {
    color: #a89c8b;
    font-size: .62em;
    font-weight: 600;
    text-decoration-thickness: 1px;
    margin-inline-start: 8px;
}

.alt-sp-price ins {
    text-decoration: none;
    color: var(--sp-brand);
}

.alt-sp-discount-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(169, 130, 43, .12);
    border: 1px solid rgba(169, 130, 43, .3);
    color: #8a6a1e;
    font-size: 12.5px;
    font-weight: 800;
}

.alt-sp-tax-note {
    margin: 8px 0 0;
    font-size: 12px;
    color: var(--sp-muted);
}

/* Installments */
.alt-sp-installments {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--sp-line);
    border-inline-start: 3px solid var(--sp-gold-2);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #5d5348;
}

.alt-sp-installments > i {
    color: var(--sp-gold);
    font-size: 17px;
}

.alt-sp-installments strong {
    color: var(--sp-brand);
}

.alt-sp-bnpl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-inline-start: auto;
}

.alt-sp-bnpl img {
    height: 16px;
    width: auto;
    display: block;
}

/* Excerpt */
.alt-sp-excerpt {
    font-size: 15px;
    line-height: 1.9;
    color: #5d5348;
    margin-bottom: 22px;
}

.alt-sp-excerpt p {
    margin: 0 0 10px;
}

.alt-sp-excerpt p:last-child {
    margin-bottom: 0;
}

/* ---------------------------------------------------------
 * Buy box
 * ------------------------------------------------------- */
.alt-sp-buybox {
    background: var(--sp-card);
    border: 1px solid var(--sp-line);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 30px 60px -50px rgba(65, 16, 23, .55);
}

.alt-sp-buybox-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.alt-sp-buybox-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--sp-ink);
}

.alt-sp-stock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 11px;
    border-radius: 999px;
}

.alt-sp-stock.in-stock {
    background: rgba(31, 122, 77, .09);
    color: var(--sp-green);
}

.alt-sp-stock.out-stock {
    background: rgba(180, 60, 60, .1);
    color: #a33737;
}

.alt-sp-pulse {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--sp-green);
    box-shadow: 0 0 0 0 rgba(31, 122, 77, .55);
    animation: alt-sp-pulse 2s infinite;
}

@keyframes alt-sp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(31, 122, 77, .55); }
    70% { box-shadow: 0 0 0 7px rgba(31, 122, 77, 0); }
    100% { box-shadow: 0 0 0 0 rgba(31, 122, 77, 0); }
}

/* WooCommerce form */
.alt-sp-form-wrap form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    margin: 0;
}

.alt-sp-form-wrap .woocommerce-variation-add-to-cart {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.alt-sp-form-wrap div.quantity {
    display: inline-flex;
    align-items: center;
    height: 54px;
    border: 1px solid #ddd3c3;
    border-radius: 14px;
    background: #fdfbf7;
    overflow: hidden;
    flex: 0 0 auto;
}

.alt-sp-form-wrap div.quantity .alt-sp-qty-btn {
    width: 38px;
    height: 100%;
    border: 0;
    background: transparent;
    color: var(--sp-brand);
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease;
}

.alt-sp-form-wrap div.quantity .alt-sp-qty-btn:hover {
    background: rgba(65, 16, 23, .06);
}

.alt-sp-form-wrap div.quantity input.qty {
    width: 46px;
    height: 100%;
    border: 0;
    background: transparent;
    text-align: center;
    font-size: 15px;
    font-weight: 800;
    color: var(--sp-ink);
    font-family: inherit;
    -moz-appearance: textfield;
}

.alt-sp-form-wrap div.quantity input.qty::-webkit-outer-spin-button,
.alt-sp-form-wrap div.quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.alt-sp-form-wrap .single_add_to_cart_button {
    flex: 1 1 200px;
    min-height: 54px;
    height: 54px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--sp-brand) 0%, #5a1a25 100%);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .01em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .25s ease, filter .25s ease;
    box-shadow: 0 16px 30px -18px rgba(65, 16, 23, .9);
}

.alt-sp-form-wrap .single_add_to_cart_button:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 20px 34px -18px rgba(65, 16, 23, .95);
}

.alt-sp-form-wrap .single_add_to_cart_button:active {
    transform: translateY(0) scale(.995);
}

.alt-sp-form-wrap .single_add_to_cart_button.disabled,
.alt-sp-form-wrap .single_add_to_cart_button:disabled {
    background: #c9c1b4;
    box-shadow: none;
    cursor: not-allowed;
}

.alt-sp-form-wrap .single_add_to_cart_button.loading::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 999px;
    animation: alt-sp-spin .7s linear infinite;
}

@keyframes alt-sp-spin {
    to { transform: rotate(360deg); }
}

/* Variations */
.alt-sp-form-wrap table.variations {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 12px;
}

.alt-sp-form-wrap table.variations tr {
    display: block;
    margin-bottom: 12px;
}

.alt-sp-form-wrap table.variations th,
.alt-sp-form-wrap table.variations td {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    text-align: start;
}

.alt-sp-form-wrap table.variations th.label label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--sp-ink);
    margin-bottom: 7px;
}

.alt-sp-form-wrap table.variations select {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid #ddd3c3;
    border-radius: 13px;
    background-color: #fdfbf7;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23411017' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--sp-ink);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.alt-sp-form-wrap table.variations select:focus {
    border-color: var(--sp-gold);
    box-shadow: 0 0 0 3px rgba(169, 130, 43, .14);
}

.alt-sp-form-wrap .reset_variations {
    display: inline-block;
    font-size: 12px;
    color: var(--sp-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-bottom: 6px;
}

.alt-sp-form-wrap .woocommerce-variation-price {
    margin: 4px 0 10px;
    font-size: 18px;
    font-weight: 800;
    color: var(--sp-brand);
}

.alt-sp-form-wrap .woocommerce-variation-availability p.stock {
    font-size: 12.5px;
    font-weight: 700;
    margin: 0 0 8px;
}

.alt-sp-form-wrap .woocommerce-variation-description {
    font-size: 13.5px;
    color: var(--sp-muted);
    margin-bottom: 10px;
}

/* Secondary actions */
.alt-sp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 52px;
    margin-top: 10px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: all .22s ease;
}

.alt-sp-btn i {
    font-size: 17px;
}

.alt-sp-btn-now {
    background: #fff;
    color: var(--sp-brand);
    border-color: var(--sp-gold);
    box-shadow: inset 0 0 0 1px rgba(169, 130, 43, .16);
}

.alt-sp-btn-now:hover {
    background: var(--sp-gold);
    color: #fff;
    border-color: var(--sp-gold);
}

.alt-sp-btn-wa {
    background: #fff;
    color: var(--sp-green);
    border-color: rgba(31, 122, 77, .32);
}

.alt-sp-btn-wa:hover {
    background: var(--sp-green);
    color: #fff;
    border-color: var(--sp-green);
}

.alt-sp-btn-primary {
    background: linear-gradient(135deg, var(--sp-brand), #5a1a25);
    color: #fff;
    box-shadow: 0 16px 30px -20px rgba(65, 16, 23, .9);
}

.alt-sp-btn-primary:hover {
    filter: brightness(1.07);
    transform: translateY(-1px);
}

.alt-sp-btn-outline {
    background: #fff;
    color: var(--sp-brand);
    border-color: #ddd3c3;
}

.alt-sp-btn-outline:hover {
    border-color: var(--sp-gold);
    color: var(--sp-gold);
}

.alt-sp-lowstock {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    font-size: 12.5px;
    font-weight: 700;
    color: #b3541e;
}

.alt-sp-lowstock i {
    color: #e07a2d;
}

/* Assurances */
.alt-sp-assurances {
    list-style: none;
    margin: 18px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--sp-line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.alt-sp-assurances li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.alt-sp-assurances i {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f7f2e8;
    color: var(--sp-gold);
    font-size: 15px;
}

.alt-sp-assurances strong {
    display: block;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--sp-ink);
    line-height: 1.5;
}

.alt-sp-assurances span {
    display: block;
    font-size: 11.5px;
    color: var(--sp-muted);
    line-height: 1.5;
}

/* Payment pills */
.alt-sp-payments {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--sp-line);
}

.alt-sp-pay {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 9px;
    background: #fff;
    border: 1px solid #ece5d9;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(65, 16, 23, .03);
}

.alt-sp-pay img {
    height: 18px;
    width: auto;
    max-width: none;
    object-fit: contain;
    display: block;
}


/* ---------------------------------------------------------
 * Marquee strip
 * ------------------------------------------------------- */
.alt-sp-marquee {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 46px 0 0;
    padding: 20px 24px;
    background: #fff;
    border: 1px solid var(--sp-line);
    border-radius: 20px;
}

.alt-sp-marquee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #5d5348;
}

.alt-sp-marquee-item i {
    color: var(--sp-gold);
    font-size: 19px;
}

/* ---------------------------------------------------------
 * Sections
 * ------------------------------------------------------- */
.alt-sp-details,
.alt-sp-reviews,
.alt-sp-related {
    margin-top: 58px;
}

.alt-sp-section-head {
    text-align: center;
    margin-bottom: 26px;
}

.alt-sp-section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    text-align: start;
}

.alt-sp-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--sp-gold);
    margin-bottom: 8px;
}

.alt-sp-section-head h2 {
    font-size: clamp(21px, 2.1vw, 27px);
    font-weight: 800;
    color: var(--sp-ink);
    margin: 0;
    line-height: 1.4;
}

.alt-sp-inline-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--sp-gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(169, 130, 43, .35);
    padding-bottom: 2px;
    transition: all .2s ease;
}

.alt-sp-inline-link:hover {
    color: var(--sp-brand);
    border-color: var(--sp-brand);
}

/* Accordion */
.alt-sp-accordion {
    background: #fff;
    border: 1px solid var(--sp-line);
    border-radius: 20px;
    overflow: hidden;
}

.alt-sp-acc {
    border-bottom: 1px solid var(--sp-line);
}

.alt-sp-acc:last-child {
    border-bottom: 0;
}

.alt-sp-acc summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 19px 24px;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--sp-ink);
    transition: background .2s ease;
}

.alt-sp-acc summary::-webkit-details-marker {
    display: none;
}

.alt-sp-acc summary:hover {
    background: #fdfbf7;
}

.alt-sp-acc summary > span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.alt-sp-acc summary > span i {
    color: var(--sp-gold);
    font-size: 16px;
}

.alt-sp-acc summary > i {
    color: #a89c8b;
    font-size: 15px;
    transition: transform .25s ease;
}

.alt-sp-acc[open] summary > i {
    transform: rotate(180deg);
}

.alt-sp-acc-body {
    padding: 4px 24px 24px;
    font-size: 14.5px;
    line-height: 1.95;
    color: #5d5348;
}

.alt-sp-content h2,
.alt-sp-content h3 {
    color: var(--sp-ink);
    font-weight: 800;
    margin: 20px 0 10px;
    line-height: 1.5;
}

.alt-sp-content h2 { font-size: 19px; }
.alt-sp-content h3 { font-size: 16.5px; }

.alt-sp-content p {
    margin: 0 0 12px;
}

.alt-sp-content ul,
.alt-sp-content ol {
    padding-inline-start: 22px;
    margin: 0 0 12px;
}

.alt-sp-content li {
    margin-bottom: 6px;
}

.alt-sp-content a {
    color: var(--sp-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.alt-sp-ticks {
    list-style: none;
    padding: 0 !important;
    margin: 0;
}

.alt-sp-ticks li {
    position: relative;
    padding-inline-start: 26px;
    margin-bottom: 10px;
}

.alt-sp-ticks li::before {
    content: "\2713";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(169, 130, 43, .14);
    color: var(--sp-gold);
    font-size: 11px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Specs table */
.alt-sp-specs {
    width: 100%;
    border-collapse: collapse;
}

.alt-sp-specs th,
.alt-sp-specs td {
    text-align: start;
    padding: 11px 0;
    border-bottom: 1px dashed #ece5d9;
    font-size: 13.5px;
    vertical-align: top;
}

.alt-sp-specs tr:last-child th,
.alt-sp-specs tr:last-child td {
    border-bottom: 0;
}

.alt-sp-specs th {
    width: 42%;
    font-weight: 700;
    color: var(--sp-muted);
}

.alt-sp-specs td {
    font-weight: 700;
    color: var(--sp-ink);
}

/* ---------------------------------------------------------
 * Reviews
 * ------------------------------------------------------- */
.alt-sp-reviews-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.alt-sp-rating-summary {
    background: #fff;
    border: 1px solid var(--sp-line);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    position: sticky;
    top: 96px;
}

.alt-sp-rating-big {
    font-size: 46px;
    font-weight: 900;
    line-height: 1;
    color: var(--sp-brand);
}

.alt-sp-stars-lg {
    font-size: 18px;
    margin: 10px 0 6px;
}

.alt-sp-rating-summary p {
    font-size: 12.5px;
    color: var(--sp-muted);
    margin: 0 0 18px;
}

.alt-sp-bars {
    display: grid;
    gap: 8px;
    text-align: start;
}

.alt-sp-bar-row {
    display: grid;
    grid-template-columns: 34px 1fr 26px;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: var(--sp-muted);
}

.alt-sp-bar-label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 700;
}

.alt-sp-bar-label i {
    color: var(--sp-gold-2);
    font-size: 10px;
}

.alt-sp-bar {
    height: 7px;
    border-radius: 999px;
    background: #f0ebe1;
    overflow: hidden;
}

.alt-sp-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--sp-gold-2), var(--sp-gold));
}

.alt-sp-bar-count {
    text-align: end;
    font-weight: 700;
    color: #a89c8b;
}

.alt-sp-review-list {
    display: grid;
    gap: 14px;
}

.alt-sp-review {
    background: #fff;
    border: 1px solid var(--sp-line);
    border-radius: 18px;
    padding: 18px 20px;
}

.alt-sp-review header {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 10px;
}

.alt-sp-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #f4ede1;
    color: var(--sp-gold);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.alt-sp-review-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.alt-sp-review-meta strong {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--sp-ink);
}

.alt-sp-review-date {
    font-size: 11.5px;
    color: #a89c8b;
}

.alt-sp-review-stars {
    margin-inline-start: auto;
    display: inline-flex;
    gap: 2px;
    font-size: 12px;
    color: #dcd2c2;
}

.alt-sp-review-stars i.is-on {
    color: var(--sp-gold-2);
}

.alt-sp-review-body {
    font-size: 13.5px;
    line-height: 1.85;
    color: #5d5348;
}

.alt-sp-review-body p {
    margin: 0 0 8px;
}

.alt-sp-review-body p:last-child {
    margin: 0;
}

.alt-sp-empty-reviews {
    background: #fff;
    border: 1px dashed #ddd3c3;
    border-radius: 18px;
    padding: 34px 20px;
    text-align: center;
    color: var(--sp-muted);
}

.alt-sp-empty-reviews i {
    font-size: 30px;
    color: #d8cbb4;
}

.alt-sp-empty-reviews p {
    margin: 10px 0 0;
    font-size: 13.5px;
}

.alt-sp-review-form-wrap {
    margin-top: 4px;
}

.alt-sp-review-form-wrap > summary {
    list-style: none;
}

.alt-sp-review-form-wrap > summary::-webkit-details-marker {
    display: none;
}

.alt-sp-review-form-wrap[open] > summary {
    margin-bottom: 12px;
}

.alt-sp-review-form {
    background: #fff;
    border: 1px solid var(--sp-line);
    border-radius: 18px;
    padding: 22px;
}

.alt-sp-review-form form p {
    margin: 0 0 14px;
}

.alt-sp-review-form label {
    display: block;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--sp-ink);
    margin-bottom: 6px;
}

.alt-sp-review-form input[type="text"],
.alt-sp-review-form input[type="email"],
.alt-sp-review-form textarea,
.alt-sp-review-form select {
    width: 100%;
    border: 1px solid #ddd3c3;
    border-radius: 12px;
    background: #fdfbf7;
    padding: 11px 14px;
    font-family: inherit;
    font-size: 14px;
    color: var(--sp-ink);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.alt-sp-review-form textarea {
    resize: vertical;
    line-height: 1.8;
}

.alt-sp-review-form input:focus,
.alt-sp-review-form textarea:focus,
.alt-sp-review-form select:focus {
    border-color: var(--sp-gold);
    box-shadow: 0 0 0 3px rgba(169, 130, 43, .14);
}

.alt-sp-review-form .comment-form-rating select {
    max-width: 240px;
}

.alt-sp-review-form .form-submit {
    margin: 0;
}

.alt-sp-review-form .submit {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--sp-brand), #5a1a25);
    color: #fff;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
    transition: filter .2s ease;
}

.alt-sp-review-form .submit:hover {
    filter: brightness(1.07);
}

/* ---------------------------------------------------------
 * Related products
 * ------------------------------------------------------- */
.alt-sp-products-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

/* ---------------------------------------------------------
 * Lightbox
 * ------------------------------------------------------- */
.alt-sp-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(24, 9, 12, .93);
    backdrop-filter: blur(4px);
    padding: 40px;
}

.alt-sp-lightbox.is-open {
    display: flex;
}

.alt-sp-lb-img {
    max-width: min(92vw, 900px);
    max-height: 86vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8);
}

.alt-sp-lb-close {
    position: absolute;
    top: 22px;
    inset-inline-end: 22px;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}

.alt-sp-lb-close:hover {
    background: rgba(255, 255, 255, .2);
}

.alt-sp-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}

.alt-sp-lb-nav:hover {
    background: rgba(255, 255, 255, .2);
}

.alt-sp-lb-prev { inset-inline-start: 22px; }
.alt-sp-lb-next { inset-inline-end: 22px; }

.alt-sp-lb-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .7);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
}

/* ---------------------------------------------------------
 * Sticky add-to-cart bar
 * ------------------------------------------------------- */
.alt-sp-sticky {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 9000;
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--sp-line);
    box-shadow: 0 -18px 40px -30px rgba(65, 16, 23, .7);
    backdrop-filter: blur(10px);
    transform: translateY(110%);
    transition: transform .35s cubic-bezier(.22, .61, .36, 1);
}

.alt-sp-sticky.is-visible {
    transform: translateY(0);
}

.alt-sp-sticky-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.alt-sp-sticky-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--sp-line);
    flex: 0 0 auto;
}

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

.alt-sp-sticky-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.alt-sp-sticky-info strong {
    font-size: 13px;
    font-weight: 800;
    color: var(--sp-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alt-sp-sticky-price {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--sp-brand);
}

.alt-sp-sticky-price del {
    color: #a89c8b;
    font-weight: 600;
    margin-inline-start: 6px;
}

.alt-sp-sticky-btn {
    margin: 0;
    width: auto;
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0 26px;
    margin-inline-start: auto;
}

/* ---------------------------------------------------------
 * Responsive
 * ------------------------------------------------------- */
@media (max-width: 1080px) {
    .alt-sp-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .alt-sp-media-sticky {
        position: static;
        top: auto;
    }

    .alt-sp-reviews-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .alt-sp-rating-summary {
        position: static;
    }

    .alt-sp-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .alt-sp-marquee {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .alt-sp-page {
        padding-top: 10px;
    }

    .alt-sp-container {
        padding: 0 16px;
    }

    .alt-sp-crumbs {
        font-size: 11.5px;
        margin-bottom: 16px;
    }

    .alt-sp-stage {
        border-radius: 18px;
    }

    .alt-sp-thumb {
        width: 62px;
        height: 62px;
        border-radius: 11px;
        padding: 5px;
    }

    .alt-sp-stage-open {
        padding: 8px;
    }

    .alt-sp-buybox {
        padding: 16px;
        border-radius: 18px;
    }

    .alt-sp-assurances {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .alt-sp-marquee {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 16px 18px;
        gap: 12px 14px;
        border-radius: 16px;
        margin-top: 34px;
        align-items: center;
    }

    .alt-sp-marquee-item {
        font-size: 12px;
        gap: 8px;
    }

    .alt-sp-marquee-item i {
        font-size: 17px;
    }

    .alt-sp-payments {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .alt-sp-pay {
        text-align: center;
    }

    .alt-sp-details,
    .alt-sp-reviews,
    .alt-sp-related {
        margin-top: 40px;
    }

    .alt-sp-section-head-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .alt-sp-acc summary {
        padding: 16px 16px;
        font-size: 13.5px;
    }

    .alt-sp-acc-body {
        padding: 0 16px 18px;
        font-size: 13.5px;
    }

    .alt-sp-review-form {
        padding: 16px;
    }

    .alt-sp-lightbox {
        padding: 16px;
    }

    .alt-sp-lb-nav {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .alt-sp-lb-prev { inset-inline-start: 8px; }
    .alt-sp-lb-next { inset-inline-end: 8px; }

    .alt-sp-sticky-inner {
        padding: 8px 14px;
        gap: 10px;
    }

    .alt-sp-sticky-thumb,
    .alt-sp-sticky-info {
        display: none;
    }

    .alt-sp-sticky-btn {
        width: 100%;
        margin: 0;
    }
}

/* ---------------------------------------------------------
 * WooCommerce notices
 * ------------------------------------------------------- */
.alt-sp-notices {
    margin-bottom: 20px;
}

.alt-sp-notices .woocommerce-message,
.alt-sp-notices .woocommerce-info,
.alt-sp-notices .woocommerce-error {
    list-style: none;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.7;
    margin: 0 0 10px;
    border: 1px solid;
    background: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.alt-sp-notices .woocommerce-message {
    border-color: rgba(31, 122, 77, .3);
    color: #1f6b46;
    background: #f4fbf7;
}

.alt-sp-notices .woocommerce-info {
    border-color: rgba(169, 130, 43, .3);
    color: #8a6a1e;
    background: #fdfaf3;
}

.alt-sp-notices .woocommerce-error {
    border-color: rgba(192, 72, 63, .3);
    color: #a33737;
    background: #fdf5f4;
}

.alt-sp-notices .woocommerce-message .button,
.alt-sp-notices .woocommerce-info .button,
.alt-sp-notices .woocommerce-error .button {
    margin-inline-start: auto;
    background: var(--sp-brand);
    color: #fff;
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

/* ---------------------------------------------------------
 * Small states & helpers
 * ------------------------------------------------------- */
body.alt-sp-locked {
    overflow: hidden;
}

.alt-sp-form-wrap table.variations tr.alt-sp-needs-value select {
    border-color: #c0483f;
    box-shadow: 0 0 0 3px rgba(192, 72, 63, .13);
    animation: alt-sp-shake .35s ease;
}

@keyframes alt-sp-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.alt-sp-review-form-wrap > summary {
    cursor: pointer;
}

.alt-sp-toast {
    position: fixed;
    bottom: 96px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    z-index: 99998;
    background: #2b0f13;
    color: #fff;
    font-family: 'Cairo', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 999px;
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}

.alt-sp-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .alt-sp-main-img,
    .alt-sp-thumb,
    .alt-sp-icon-btn,
    .alt-sp-btn,
    .alt-sp-sticky {
        transition: none !important;
    }

    .alt-sp-pulse {
        animation: none;
    }
}

/* Keep the floating WhatsApp button clear of the sticky add-to-cart bar */
.alt-whatsapp-float {
    transition: bottom .3s ease, transform .3s ease;
}

body.alt-sp-sticky-on .alt-whatsapp-float {
    bottom: 92px;
}

@media (max-width: 640px) {
    body.alt-sp-sticky-on .alt-whatsapp-float {
        bottom: 82px;
    }
}

/* Out of stock state */
.alt-sp-btn-disabled {
    background: #cfc7ba;
    color: #fff;
    cursor: not-allowed;
    box-shadow: none;
}
