/* ============================================================
   ARJUN WEIGHT SLIDER — aws-style.css
   ============================================================ */

/* Full-bleed wrapper */
.pss-wrapper {
    --pss-accent: #ff9f1c;
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: visible;   /* ← CHANGE: arrows clip nahi honge */
    padding: 20px 0;
}
/* Hide WooCommerce "View Cart" link injected after add to cart */
/*a.added_to_cart,*/
/*a.wc-forward,*/
/*.added_to_cart.wc-forward {*/
/*    display: none !important;*/
/*    visibility: hidden !important;*/
/*    width: 0 !important;*/
/*    height: 0 !important;*/
/*    overflow: hidden !important;*/
/*    position: absolute !important;*/
/*    pointer-events: none !important;*/
/*}*/

.pss-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    align-items: flex-start;
    overflow: visible;
}

.pss-slide {
    flex-shrink: 0;
    /* JS dynamically sets width based on visible count (4 default) */
    width: calc(25% - 20px);
    padding: 0 10px;
    box-sizing: border-box;
}

.pss-card {
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    gap: 0;
}

/* Image Box — 550px height */
.pss-img-box {
    width: 100% !important;
    height: 550px !important;
    overflow: hidden !important;
    border-radius: 15px !important;
    background: #fdf2e3 !important;
    padding: 0 !important;
    display: block !important;
}

.pss-img-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Product page link on image — no underline/border */
.pss-img-box a {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
    border: none;
    outline: none;
    text-decoration: none;
}

/* Info Section */
.pss-info {
    padding: 12px 5px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.pss-text-content {
    flex-grow: 1;
}

.pss-weights {
    display: block;
    font-size: 11px;
    color: #888;
    font-weight: 600;
    margin-bottom: 2px;
}

.pss-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #4a154b;
    margin: 0;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.pss-title a {
    color: inherit;
    text-decoration: none;
}

.pss-prices {
    margin-top: 4px;
    display: flex;
    align-items: baseline;
}

.pss-sale {
    font-size: 1.2rem;
    color: #1a1a1a;
    font-weight: 800;
}

/* Cart Button — circular, right side */
.pss-cart-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--pss-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    text-decoration: none;
    margin-left: 5px;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.pss-cart-btn:hover {
    transform: scale(1.08);
    opacity: 0.9;
}

.pss-cart-btn svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    stroke-width: 1.5;
    fill: none;
}

/* Loading & Added states */
.pss-cart-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.pss-cart-btn.added {
    background: #27ae60;
}

/* Toast notification */
.aws-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1a1a1a;
    color: #fff;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 99999;
}

.aws-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .pss-slide   { width: 45%; }
    .pss-img-box { height: 400px !important; }
}

@media (max-width: 600px) {
    .pss-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .pss-slide {
        width: 85%;
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    .pss-img-box {
        height: 320px !important;
        border-radius: 12px !important;
    }
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════
   SLIDER ARROWS  — absolute position, fully customisable
   from Elementor panel (bg, icon, size, offset, radius)
   ═══════════════════════════════════════════════════════════ */

/* Arrows are positioned absolute inside .pss-wrapper (position:relative) */
.pss-arrow {
    position: absolute;
    top:  50%;
    transform: translateY(-50%);
    z-index: 10;

    /* Default look — overridden by Elementor selectors */
    width:  44px;
    height: 44px;
    border-radius: 50%;
    background: #111;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s, transform 0.2s, opacity 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    color: #fff;
}

.pss-arrow:hover {
    background: #333;
    opacity: 0.95;
}
.pss-arrow:active {
    transform: translateY(-50%) scale(0.93);
}

/* Dim arrow when boundary reached (first or last product) */
.pss-arrow--dim {
    opacity: 0.25 !important;
    cursor: default !important;
    pointer-events: none;
}

/* Default positions — overridden by Elementor offset control */
.pss-arrow-prev { left:  16px; }
.pss-arrow-next { right: 16px; }

/* Icon sizing defaults */
.pss-arrow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
}

/* Prev arrow: mirror the icon horizontally */
.pss-arrow-icon--prev {
    transform: scaleX(-1);
}

/* SVG / FA icon inside arrow */
.pss-arrow i,
.pss-arrow svg {
    font-size: 18px;
    width:  18px;
    height: 18px;
    display: block;
    color: #fff;
    stroke: #fff;
    fill: none;
}

/* On mobile — smaller arrows, slightly more inset */
@media (max-width: 600px) {
    .pss-arrow {
        width:  34px;
        height: 34px;
    }
    .pss-arrow i,
    .pss-arrow svg {
        font-size: 14px;
        width:  14px;
        height: 14px;
    }
    .pss-arrow-prev { left:  8px; }
    .pss-arrow-next { right: 8px; }
}

/* ═══════════════════════════════════════════════════════════
   VARIATION PILLS
   ═══════════════════════════════════════════════════════════ */

.pss-variation-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 5px;
}

.pss-pill {
    padding: 3px 10px;
    border-radius: 20px;
    border: 1.5px solid #ddd;
    background: #fff;
    font-size: 11px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    line-height: 1.4;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
    white-space: nowrap;
}

.pss-pill:hover {
    border-color: var(--pss-accent);
    color: var(--pss-accent);
}

.pss-pill--active {
    background: var(--pss-accent);
    border-color: var(--pss-accent);
    color: #fff;
}

/* Regular / strikethrough price */
.pss-regular {
    font-size: 0.9rem;
    color: #aaa;
    text-decoration: line-through;
    margin-right: 5px;
}

.pss-regular del,
.pss-regular .woocommerce-Price-amount {
    text-decoration: line-through;
    color: #aaa;
}


/* ═══════════════════════════════════════════════════════════
   COMPACT SLIDER — pss-wrapper--compact
   Scoped entirely — zero impact on long slider
   ═══════════════════════════════════════════════════════════ */

/* Wrapper: left-right padding for breathing room */
.pss-wrapper--compact {
    padding-left: 20px;
    padding-right: 20px;
}

/* Default: 4 cards visible on screen
   Each slide = 25% of viewport → 4 cards fit
   (padding + gap accounted with calc)               */
.pss-wrapper--compact .pss-slide {
    width: calc(25% - 12px);
    padding: 0 6px;
    box-sizing: border-box;
}

/* 3-cards-per-row variant — added via JS/PHP class or Elementor */
.pss-wrapper--compact.pss-cols-3 .pss-slide {
    width: calc(33.333% - 12px);
}

/* Card reset for compact */
.pss-wrapper--compact .pss-card {
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ── Image Box ──────────────────────────────────────────── */
.pss-img-box--compact {
    position: relative;
    width: 100% !important;
    height: 240px !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    background: #fdf2e3 !important;
    padding: 0 !important;
    display: block !important;
}

.pss-img-box--compact img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.pss-img-box--compact a {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
    border: none;
    outline: none;
    text-decoration: none;
}

/* ── Discount Badge (matches wwv-badge style) ────────────── */
.pss-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    background: #fff;
    color: #1a1a1a;
    border: 1.5px solid #e0e0e0;
    border-radius: 20px;
    font-size: 0.72rem !important;
    font-weight: 800;
    padding: 4px 10px !important;
    white-space: nowrap;
    line-height: 1.4;
    pointer-events: none;
    box-shadow: 0 1px 6px rgba(0,0,0,0.10);
}

/* ── Info row — cart button vertically centered ──────────── */
.pss-wrapper--compact .pss-info {
    padding: 10px 8px 10px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;   /* ← vertical center for cart btn */
    gap: 6px;
}

.pss-wrapper--compact .pss-text-content {
    flex: 1;
    min-width: 0;
}

/* Cart button stays centered against the text block */
.pss-wrapper--compact .pss-cart-btn {
    flex-shrink: 0;
    align-self: center;
}

.pss-wrapper--compact .pss-cart-btn svg {
    width: 22px;
    height: 22px;
}

/* ── Title truncation ────────────────────────────────────── */
.pss-wrapper--compact .pss-title {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ── Prices ──────────────────────────────────────────────── */
.pss-wrapper--compact .pss-prices {
    margin-top: 3px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
}

.pss-wrapper--compact .pss-sale {
    font-size: 1rem;
    font-weight: 800;
    color: #1a1a1a;
}

.pss-wrapper--compact .pss-regular {
    font-size: 0.82rem;
    color: #aaa;
    text-decoration: line-through;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1200px) {
    .pss-wrapper--compact .pss-slide       { width: calc(33.333% - 12px); }
    .pss-wrapper--compact.pss-cols-3 .pss-slide { width: calc(40% - 12px); }
    .pss-img-box--compact { height: 210px !important; }
}

@media (max-width: 900px) {
    .pss-wrapper--compact .pss-slide       { width: calc(50% - 12px); }
    .pss-wrapper--compact.pss-cols-3 .pss-slide { width: calc(50% - 12px); }
    .pss-img-box--compact { height: 190px !important; }
}

@media (max-width: 600px) {
    .pss-wrapper--compact { padding-left: 10px; padding-right: 10px; }
    .pss-wrapper--compact .pss-slide,
    .pss-wrapper--compact.pss-cols-3 .pss-slide { width: calc(80% - 12px); }
    .pss-img-box--compact { height: 200px !important; }
}


/* ════════════════════════════════════════════════════════════
   COMPACT SLIDER — WWV-STYLE UI
   Replaces old compact card styling. Functionality unchanged.
   ════════════════════════════════════════════════════════════ */

/* ── CSS variables scoped to compact wrapper ── */
.pss-wrapper--compact {
    --pss-c-accent:      #e67e22;
    --pss-c-accent2:     #f39c12;
    --pss-c-sale-color:  #1a1a1a;
    --pss-c-mrp-color:   #aaa;
    --pss-c-title-color: #601050;
    --pss-c-badge-bg:    #fff3f0;
    --pss-c-badge-text:  #c0392b;
    --pss-c-badge-bdr:   #f5c6c0;
    --pss-c-pill-bg:     #f0f0f0;
    --pss-c-pill-text:   #555;
    --pss-c-divider:     #ddd;
    --pss-c-radius:      16px;
}

/* ── Card reset — transparent bg + hover lift ── */
.pss-wrapper--compact .pss-card--compact {
    background: transparent !important;
    box-shadow: none;
    border-radius: var(--pss-c-radius);
    overflow: visible;
    transition: box-shadow 0.22s ease, transform 0.22s ease;
    padding-bottom: 12px;
}
.pss-wrapper--compact .pss-card--compact:hover {
    box-shadow: 0 10px 32px rgba(0,0,0,0.13);
    transform: translateY(-3px);
}

/* ── Badge — top-left on image, pill style ── */
.pss-wrapper--compact .pss-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--pss-c-badge-bg);
    color: var(--pss-c-badge-text);
    border: 1.5px solid var(--pss-c-badge-bdr);
    border-radius: 20px;
    font-size: 0.65rem !important;
    font-weight: 800;
    padding: 8px 16px !important;
    z-index: 3;
    white-space: nowrap;
    line-height: 1.4;
    pointer-events: none;
}
.pss-wrapper--compact .pss-badge-hidden {
    display: none !important;
}

/* ── Image box — square aspect ratio, top rounded corners ── */
.pss-wrapper--compact .pss-img-box--compact {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto !important;
    border-radius: var(--pss-c-radius) var(--pss-c-radius) 0 0;
    overflow: hidden;
    background: transparent;
}
.pss-wrapper--compact .pss-img-box--compact a {
    display: block;
    width: 100%;
    height: 100%;
}
.pss-wrapper--compact .pss-img-box--compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #f5f5f5;
}

/* ── Info row ── */
.pss-wrapper--compact .pss-info {
    padding: 10px 10px 4px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.pss-wrapper--compact .pss-text-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* ── Variation pills row ── */
.pss-wrapper--compact .pss-variation-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    row-gap: 4px;
}

/* ── Pill ── */
.pss-wrapper--compact .pss-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 20px;
    background: var(--pss-c-pill-bg);
    color: var(--pss-c-pill-text);
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: background 0.16s, color 0.16s, border-color 0.16s;
    user-select: none;
    white-space: nowrap;
    line-height: 1.3;
}
.pss-wrapper--compact .pss-pill:hover {
    border-color: var(--pss-c-accent);
    color: var(--pss-c-accent);
}
.pss-wrapper--compact .pss-pill.pss-pill--active {
    background: var(--pss-c-accent);
    color: #fff;
    border-color: var(--pss-c-accent);
}

/* ── Vertical divider between pills ── */
.pss-wrapper--compact .pss-pill-divider {
    display: inline-block;
    width: 1px;
    height: 14px;
    background: var(--pss-c-divider);
    margin: 0 3px;
    vertical-align: middle;
    align-self: center;
    flex-shrink: 0;
}

/* ── Title ── */
.pss-wrapper--compact .pss-title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.pss-wrapper--compact .pss-title a {
    color: var(--pss-c-title-color) !important;
    text-decoration: none !important;
}
.pss-wrapper--compact .pss-title a:hover {
    color: var(--pss-c-accent) !important;
}

/* ── Prices ── */
.pss-wrapper--compact .pss-prices {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 2px;
}
.pss-wrapper--compact .pss-sale {
    font-size: 1rem;
    font-weight: 900;
    color: var(--pss-c-sale-color);
}
.pss-wrapper--compact .pss-sale bdi { color: inherit; }
.pss-wrapper--compact .pss-regular {
    font-size: 0.8rem;
    color: var(--pss-c-mrp-color);
    text-decoration: line-through;
    font-weight: 600;
}
.pss-wrapper--compact .pss-regular del,
.pss-wrapper--compact .pss-regular del bdi { color: inherit; }

/* ── Cart button — orange gradient circle ── */
.pss-wrapper--compact .pss-cart-btn,
.pss-wrapper--compact a.pss-cart-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #f39c12, #e67e22) !important;
    background-color: #e67e22 !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 3px 10px rgba(230,126,34,.4) !important;
    transition: transform 0.16s, box-shadow 0.16s, opacity 0.16s !important;
    flex-shrink: 0 !important;
    align-self: center !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    font-size: 0 !important;
    color: transparent !important;
    overflow: visible !important;
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.pss-wrapper--compact .pss-cart-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 5px 16px rgba(230,126,34,.55) !important;
}
.pss-wrapper--compact .pss-cart-btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(230,126,34,.4) !important;
}
.pss-wrapper--compact .pss-cart-btn svg {
    width: 18px !important;
    height: 18px !important;
    pointer-events: none !important;
    display: block !important;
    margin: auto !important;
}
.pss-wrapper--compact .pss-cart-btn.loading {
    opacity: 0.7 !important;
    pointer-events: none !important;
}
.pss-wrapper--compact .pss-cart-btn.added {
    background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
    background-color: #27ae60 !important;
}

/* ── Responsive overrides ── */
@media (max-width: 1200px) {
    .pss-wrapper--compact .pss-slide { width: calc(33.333% - 12px); }
    .pss-wrapper--compact.pss-cols-3 .pss-slide { width: calc(40% - 12px); }
}
@media (max-width: 900px) {
    .pss-wrapper--compact .pss-slide { width: calc(50% - 12px); }
    .pss-wrapper--compact.pss-cols-3 .pss-slide { width: calc(50% - 12px); }
}
@media (max-width: 767px) {
    .pss-wrapper--compact .pss-pill { font-size: 0.58rem; padding: 2px 7px; }
    .pss-wrapper--compact .pss-title { font-size: 0.82rem; }
    .pss-wrapper--compact .pss-sale { font-size: 0.92rem; }
    .pss-wrapper--compact .pss-cart-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
    }
    .pss-wrapper--compact .pss-cart-btn svg {
        width: 16px !important;
        height: 16px !important;
    }
}
@media (max-width: 600px) {
    .pss-wrapper--compact { padding-left: 10px; padding-right: 10px; }
    .pss-wrapper--compact .pss-slide,
    .pss-wrapper--compact.pss-cols-3 .pss-slide { width: calc(80% - 12px); }
}
