/* ============================================================
   SHOP PAGE — Product Cards  (mystyle.css)
   Mirrors .new-arrivals / .trending-products exactly,
   scoped under .shop-products so nothing else is affected.
   ============================================================ */

/* ── Card wrapper ─────────────────────────────────────────── */
.shop-products .product.product-2 {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.09);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
}
.shop-products .product.product-2:hover {
    box-shadow: 0 8px 28px rgba(66,16,123,0.18);
    transform: translateY(-4px);
}

/* ── Product media (image area) ───────────────────────────── */
.shop-products .product-media {
    background: none;
    overflow: hidden;
    position: relative;
    height: 240px;
    flex-shrink: 0;
    border-radius: 0;
    margin: 0;
}
.shop-products .product-media > a {
    display: block;
    height: 100%;
    width: 100%;
}
.shop-products .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.4s ease;
    padding: 0;
}
.shop-products .product.product-2:hover .product-image {
    transform: scale(1.04);
}

/* ── Hover overlay gradient ───────────────────────────────── */
.shop-products .product-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(66,16,123,0.45) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 1;
}
.shop-products .product.product-2:hover .product-media::after {
    opacity: 1;
}

/* ── Badges ───────────────────────────────────────────────── */
.shop-products .product-media .product-label.label-circle {
    position: absolute;
    width: 38px;
    height: 38px;
    font-size: 9px;
    font-weight: 800;
    line-height: 38px;
    text-align: center;
    border-radius: 50%;
    padding: 0;
    margin: 0;
    top: 10px;
    left: 10px;
    right: auto;
    z-index: 3;
    letter-spacing: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.20);
}
/* discount % badge — top-right */
.shop-products .product-media .rfy-label-discount {
    left: auto !important;
    right: 10px !important;
    top: 10px !important;
    width: 38px !important;
    height: 38px !important;
    line-height: 38px !important;
    font-size: 9px !important;
    font-weight: 800 !important;
}
/* Sold Out badge */
.shop-products .rfy-label-soldout {
    background: linear-gradient(135deg, #555, #333) !important;
    color: #fff !important;
}
/* Sale badge */
.shop-products .product-media .label-sale {
    background: linear-gradient(135deg, #e8572a, #f46f18) !important;
    color: #fff !important;
}
/* New badge */
.shop-products .product-media .label-new {
    background: linear-gradient(135deg, #42107b, #6a2aad) !important;
    color: #fff !important;
}
/* Discount % badge */
.shop-products .rfy-label-discount {
    background: linear-gradient(135deg, #e7097f, #c4066b) !important;
    color: #fff !important;
}

/* ── Wishlist icon — hidden ───────────────────────────────── */
.shop-products .product-action-vertical {
    display: none !important;
}

/* ── Add to Cart — slides up from bottom ─────────────────── */
.shop-products .product-action {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    width: 100%;
    z-index: 5;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(0.4,0,0.2,1), opacity 0.28s ease;
    background: transparent;
}
.shop-products .product.product-2:hover .product-action {
    transform: translateY(0);
    opacity: 1;
}
.shop-products .product-action .btn-product.btn-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    padding: 9px 0;
    text-transform: uppercase;
    background: linear-gradient(90deg, #42107b 0%, #6a1aad 50%, #e7097f 100%);
    background-size: 200% 100%;
    background-position: left center;
    color: #fff !important;
    border: none;
    border-radius: 0;
    transition: background-position 0.4s ease, box-shadow 0.3s ease;
    box-shadow: 0 -3px 12px rgba(66,16,123,0.25);
    cursor: pointer;
}
.shop-products .product-action .btn-product.btn-cart:hover,
.shop-products .product-action .btn-product.btn-cart:focus {
    background-position: right center;
    box-shadow: 0 -4px 20px rgba(231,9,127,0.40);
    color: #fff !important;
    background-color: transparent !important;
    border-color: transparent !important;
}
.shop-products .product-action .btn-product.btn-cart span {
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px;
}
.shop-products .product-action .btn-product.btn-cart::before {
    font-size: 13px !important;
    margin-right: 5px;
    color: #fff !important;
}

/* ── Product body ─────────────────────────────────────────── */
.shop-products .product-body {
    padding: 14px 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    margin-top: 0;
}
.shop-products .product-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shop-products .product-title a {
    color: #222;
    transition: color 0.2s ease;
}
.shop-products .product-title a:hover {
    color: #42107b !important;
}

/* ── Price ────────────────────────────────────────────────── */
.shop-products .product-price {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #f46f18 !important;
}
.shop-products .new-price {
    color: #f46f18 !important;
    font-size: 16px;
    font-weight: 800;
}
.shop-products .old-price {
    font-size: 12px;
    color: #aaa;
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 4px;
}

/* ── Star ratings ─────────────────────────────────────────── */
.shop-products .ratings-container {
    margin-top: 4px;
    margin-bottom: 0;
}
.shop-products .ratings {
    color: #e0e0e0;
}
.shop-products .ratings-val {
    color: #f4a535;
}
.shop-products .ratings-text {
    font-size: 11px;
    color: #bbb;
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 575px) {
    .shop-products .product-media {
        height: 170px;
    }
    .shop-products .product-media .product-label.label-circle,
    .shop-products .product-media .rfy-label-discount {
        width: 30px !important;
        height: 30px !important;
        font-size: 8px !important;
        line-height: 30px !important;
    }
    .shop-products .product-title {
        font-size: 12px;
        min-height: 34px;
    }
    .shop-products .product-price,
    .shop-products .new-price {
        font-size: 14px;
    }
}

/* ── Mobile: Hide Add to Cart button on ALL product cards ── */
@media (max-width: 768px) {
    .product-action,
    .product-action-vertical,
    .product.product-2 .product-action,
    .shop-products .product-action,
    .new-arrivals .product-action,
    .trending-products .product-action,
    .product.mob-tapped .product-action,
    .product.product-2.mob-tapped .product-action {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

/* ── NUCLEAR: Mobile Add to Cart — hide on all states including hover/tap ── */
@media (max-width: 768px) {
    .product-action,
    .product-action-vertical,
    .product:hover .product-action,
    .product:focus .product-action,
    .product:hover .product-action-vertical,
    .product:focus .product-action-vertical,
    .product.product-2 .product-action,
    .product.product-2:hover .product-action,
    .product.product-2:focus .product-action,
    .new-arrivals .product-action,
    .trending-products .product-action,
    .shop-products .product-action,
    .for-you .product-action,
    .product.mob-tapped .product-action {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: none !important;
    }
}
