/*
Theme Name: DXBPeps
Author: Yaser
Description: Custom WooCommerce theme converted from the DXBPeps static site.
Version: 1.0
Text Domain: dxbpeps
*/

/* ↓ Custom rules from the index.html <style> block ↓ */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.card {
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 32px -16px rgba(17, 24, 39, 0.18);
}

.card:hover .card-img {
    transform: scale(1.04);
}

.card-img {
    transition: transform 320ms ease;
}

details>summary {
    list-style: none;
    cursor: pointer;
}

details>summary::-webkit-details-marker {
    display: none;
}

.acc-icon {
    transition: transform 200ms ease;
}

details[open] .acc-icon {
    transform: rotate(45deg);
}

@keyframes wa-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.wa-fab {
    animation: wa-pulse 2.4s ease-out infinite;
}

/* == Stack card (template-parts/stack-card.php) — scoped to .stack-card == */

.stack-card .stack-pill {
    display: inline-flex;
    align-self: flex-start;
    background: #10B981;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    padding: .25rem .55rem;
}

/* Compact card: pay/free lists sit side by side to halve the card height. */
.stack-card .stack-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem .9rem;
    align-items: start;
}

@media (max-width: 419px) {
    .stack-card .stack-lists {
        grid-template-columns: 1fr;
    }
}

.stack-card .stack-list-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    color: #6B7280;
}

.stack-card .stack-list {
    list-style: none;
    margin: .3rem 0 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #1F2937;
}

.stack-card .stack-list li {
    position: relative;
    padding-left: .85rem;
}

.stack-card .stack-list li::before {
    content: "•";
    position: absolute;
    left: 0;
}

.stack-card .stack-free-label,
.stack-card .stack-free {
    color: #10B981;
}

.stack-card .stack-free li::before {
    content: "+";
    font-weight: 700;
}

/* Footer row: price block left, compact CTA right. */
.stack-card .stack-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.stack-card .stack-price-row {
    display: flex;
    align-items: baseline;
    gap: .45rem;
    flex-wrap: wrap;
}

/* Bold price: the largest type in the card. */
.stack-card .stack-price {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #111827;
}

/* Strikethrough total value: muted, smaller, sits right of the bold price. */
.stack-card s,
.stack-card .stack-value {
    font-size: 12px;
    font-weight: 400;
    color: #6B7280;
    text-decoration: line-through;
}

.stack-card .stack-cta {
    display: inline-block;
    flex: none;
    text-align: center;
    background: #111827;
    color: #fff;
    padding: .55rem .9rem;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .06em;
    white-space: nowrap;
    transition: background 150ms ease;
}

.stack-card .stack-cta:hover {
    background: #1F2937;
}

/* == Offer pill — "UP TO 50% OFF" on goal + product cards. Same size and
      style as the stack-card FREE pill; --overlay sits on the card image. == */

.dxb-offer-pill {
    display: inline-flex;
    align-self: flex-start;
    background: #10B981;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    padding: .3rem .65rem;
}

.dxb-offer-pill--overlay {
    position: absolute;
    top: .5rem;
    left: .5rem;
    z-index: 1;
}

/* == Product-page tier selector (single-product.php) — radio cards over the
      native WooCommerce variations form == */

.dxb-tiers {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.dxb-tier {
    position: relative;
    display: flex;
    align-items: center;
    gap: .8rem;
    border: 1px solid #E5E7EB;
    background: #fff;
    padding: .9rem 1rem;
    cursor: pointer;
}

.dxb-tier input[type="radio"] {
    flex: none;
    width: 1.05rem;
    height: 1.05rem;
    accent-color: #10B981;
}

.dxb-tier.is-selected,
.dxb-tier:has(input:checked) {
    border-color: #10B981;
    box-shadow: inset 0 0 0 1px #10B981;
    background: rgba(16, 185, 129, .06);
}

.dxb-tier-flag {
    position: absolute;
    top: -.6rem;
    right: .75rem;
    background: #10B981;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    padding: .18rem .5rem;
}

.dxb-tier-main {
    flex: 1;
    min-width: 0;
}

.dxb-tier-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.dxb-tier-offer {
    display: block;
    font-size: 12px;
    color: #1F2937;
    margin-top: .15rem;
}

.dxb-tier-free {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #10B981;
    margin-top: .2rem;
}

.dxb-tier-price {
    flex: none;
    text-align: right;
}

.dxb-tier-price-now {
    display: block;
    font-size: 17px;
    font-weight: 800;
    color: #111827;
}

.dxb-tier-price s {
    font-size: 12px;
    color: #6B7280;
}

.dxb-tier-pervial {
    display: block;
    font-size: 11px;
    color: #6B7280;
    margin-top: .15rem;
}

/* == Backorder notices (single-product.php) — render only while the product
      or selected variation has live stock status "onbackorder". == */

.dxb-backorder-banner {
    background: rgba(245, 158, 11, .12);
    border: 1px solid #F59E0B;
    color: #B45309;
    padding: .9rem 1.1rem;
    font-size: 13px;
    line-height: 1.55;
}

.dxb-backorder-banner strong {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    margin-bottom: .2rem;
}

.dxb-backorder-box {
    background: rgba(245, 158, 11, .12);
    border: 1px solid #F59E0B;
    color: #B45309;
    padding: .6rem .75rem;
    font-size: 12px;
    font-weight: 600;
    margin-top: .75rem;
}

/* Honest stock urgency — renders only from live managed stock. */
.dxb-stock-urgency {
    color: #B45309;
    font-size: 12px;
    font-weight: 600;
    margin-top: .6rem;
}

/* == Stack product pages: prominent short-description card (what ships free). == */

.dxb-stack-desc {
    background: #fff;
    border: 1px solid #10B981;
    box-shadow: inset 3px 0 0 #10B981;
    padding: 1rem 1.1rem;
}

.dxb-stack-desc-body {
    margin-top: .65rem;
}

.dxb-stack-desc-body p {
    margin: 0 0 .45rem;
    font-size: 15px;
    line-height: 1.6;
    color: #1F2937;
}

.dxb-stack-desc-body p:last-child {
    margin-bottom: 0;
    font-weight: 700;
    color: #111827;
}

/* Cart upsell thumbnail (dxb_render_cart_upsell in functions.php). */
.dxb-upsell-thumb {
    width: 3.5rem;
    height: 3.5rem;
    object-fit: cover;
    border: 1px solid #E5E7EB;
    display: block;
}

/* == Sticky mobile add-to-cart bar (single-product.php) == */

.dxb-sticky-atc {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: none;
    align-items: center;
    gap: .75rem;
    background: #fff;
    border-top: 1px solid #E5E7EB;
    box-shadow: 0 -6px 16px -8px rgba(17, 24, 39, .18);
    padding: .6rem 1rem;
    padding-bottom: calc(.6rem + env(safe-area-inset-bottom));
}

@media (max-width: 767px) {
    .dxb-sticky-atc {
        display: flex;
        transform: translateY(110%);
        transition: transform 220ms ease;
    }

    .dxb-sticky-atc.is-active {
        transform: translateY(0);
    }

    /* Lift the WhatsApp FAB clear of the bar while it's shown. */
    body.dxb-sticky-on .wa-fab {
        bottom: 5.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dxb-sticky-atc {
        transition: none;
    }
}