.product-page {
    width: 95%;
    padding: 30px 15px 10px 15px;
    margin: 30px auto;
    border-radius: 20px;
    background-color: #F7F5F2;
    font-family: 'DM Sans', sans-serif;
    position: relative;
    overflow: hidden;
    /* zaroori hai taake SALE bahar na jaye */
}

.on-sale::before {
    content: 'SALE';
    position: absolute;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    font-size: calc(6vw + 6vh);
    font-weight: 900;
    color: rgba(255, 162, 0, 0.075);
    letter-spacing: 0.3em;
    pointer-events: none;
    white-space: nowrap;
    font-family: 'DM Sans', sans-serif;
    user-select: none;
    z-index: 0;
}

/* ===== ON-SALE HEADER — REDESIGNED ===== */
.product-page .on-sale-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px 30px 20px;
    position: relative;
}



.product-page .on-sale-header h2 {
    width: fit-content;
    font-size: 15px;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 50px;
    color: #ffa200;
    border: 1px solid #ffc358;
    background-color: #ffc25818;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.top-products .on-sale-header h2{
    background-color: rgba(0, 0, 255, 0.1);
    color: royalblue;
    border: 1px solid blue;
}
.product-page .on-sale-header h2 span {
    font-size: 14px;
}

/* Big headline */
.product-page .on-sale-header .header-headline {
    font-size: 2.2rem;
    font-weight: 900;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.product-page .on-sale-header .header-headline em {
    font-style: normal;
    color: #ffa200;
    position: relative;
}
.top-products .on-sale-header .header-headline em{
    color: royalblue;
}

.product-page .on-sale-header .header-headline em::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ffa200, #ffcc5c);
    border-radius: 2px;
}
.top-products .on-sale-header .header-headline em::after{
    background: linear-gradient(90deg, royalblue, #add8e6);
}

.product-page .on-sale-header p {
    font-size: 0.88rem;
    color: #888;
    margin-bottom: 0;
    text-align: center;
    max-width: 340px;
    line-height: 1.6;
}



.product-page .on-sale-cards {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 30px 20px;
}

.product-page .on-sale-cards .on-sale-card {
    width: 260px;
    height: 380px;
    border-radius: 20px;
    position: relative;
    overflow: visible;
    z-index: 1;
    background-color: #ffffff;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.on-sale-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.13);
}

.on-sale-card__image {
    height: 65%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(145deg, #f5f0ea, #ede8e0);
}

.product-page .on-sale-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.on-sale-card:hover img {
    transform: scale(1.07);
}

.on-sale-card__image span {
    position: absolute;
    top: 6%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(220, 53, 69, 0.4);
    background-color: rgba(220, 53, 69, 0.10);
    color: #dc3545;
    padding: 2px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

.on-sale-card__info {
    width: 100%;
    height: 35%;
    padding: 15px;
    text-align: center;
    background: #ffffff;
    border-radius: 0 0 20px 20px;
}

.on-sale-card__info h3 {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.on-sale-card__info .on-sale-card__prices {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.on-sale-card__old-price {
    font-size: 0.78rem;
    color: #bbb;
    text-decoration: line-through;
}

.addtocart {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    background-color: #1a1a1a;
    color: white;
    border-radius: 50%;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: background 0.22s ease, transform 0.25s ease;
}

.addtocart:hover {
    background-color: rgba(0, 0, 0, 0.418);
    transform: scale(1.12) rotate(90deg);
}

.addtocart.added {
    background-color: lightgray;
    transform: scale(1.08);
}

.addtocart.added:hover {
    transform: scale(1.08);
    /* rotation nahi, sirf scale same rakho */
}

.card-btn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
    white-space: nowrap;
    padding: 15px 10px;
    background-color: #1a1a1a;
    color: white;
    border-radius: 10px;
    gap: 8px;
    font-size: 0.82rem;
    transition: background 0.22s ease, transform 0.18s ease;
}

.card-btn a:hover {
    background-color: rgba(0, 0, 0, 0.826);
    transform: translateY(-1px);
}

.card-btn a svg {
    transition: transform 0.22s ease;
}

.card-btn a:hover svg {
    transform: translateX(4px);
}