/* ===== Section ===== */

.products-section {
    margin-top: 30px;
}

/* ===== Header ===== */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.section-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

.section-header a {
    font-size: 14px;
    color: #ec4899;
    text-decoration: none;
}

/* ===== Slider ===== */
.products-slider {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.products-slider::-webkit-scrollbar {
    display: none;
}

/* ===== Card ===== */
.product-card {
    flex: 0 0 190px;
    text-decoration: none;
    background: #f8f8f8;
    border: 1px solid #ececec;
    border-radius: 20px;
    transition: .25s;
    margin: 0 12px;
}

.product-card:hover {
    border-color: #ec4899;
    background: #fff;
}

/* ===== Image ===== */
.product-image {
    position: relative;
    padding: 10px;
}

.product-image img {
    width: 100%;
    aspect-ratio: 1/1.2;
    object-fit: cover;
    border-radius: 14px;
}

/* ===== Badge ===== */
.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ec4899;
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
}

/* ===== Info ===== */
.product-info {
    padding: 12px;
}

.product-info h3 {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* ===== Price ===== */
.price-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.old-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.new-price {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

/* ===== Link (no button style) ===== */
.view-link {
    font-size: 12px;
    color: #ec4899;
    font-weight: 600;
}

/* ===== Discount Section Accent ===== */

.discount-section .section-header h2 {
    color: #ec4899;
}

/* کارت‌ها کمی زنده‌تر */

.discount-section .product-card {
    border: 1px solid #ffd1e6;
    background: linear-gradient(180deg, #fff7fb, #f8f8f8);
}

.discount-section .product-card:hover {
    border-color: #ec4899;
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.12);
}

/* badge کمی تهاجمی‌تر */

.discount-section .badge {
    background: #ff3d7f;
    font-weight: 700;
}

/* ===== Best Sellers Theme ===== */

.best-section .section-header h2 {
    color: #111827;
}

/* کارت‌ها ساده‌تر و قابل اعتمادتر */

.best-section .product-card {
    border: 1px solid #9ca3b1;
    background: #ffffff;
}

/* حس رسمی‌تر */

.best-section .product-card:hover {
    border-color: #1f2633;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* badge ساده و غیر تبلیغاتی */

.best-section .badge {
    background: #111827;
    font-size: 11px;
    padding: 5px 9px;
}

/* ===== Section ===== */

.collections-section{
    margin-top:70px;
}

/* ===== Grid ===== */

.collections-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
}

/* ===== Card ===== */

.collection-card{
    position:relative;
    display:block;
    border-radius:24px;
    overflow:hidden;
    text-decoration:none;
    height:260px;
    background:#000;
    margin: 12px;
    transition:.3s;
}

.collection-card:hover{
    transform:translateY(-5px);
}

/* ===== Image ===== */

.collection-image{
    width:100%;
    height:100%;
}

.collection-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    opacity:0.9;
    transition:.4s;
}

.collection-card:hover img{
    transform:scale(1.05);
}

/* ===== Overlay ===== */

.collection-overlay{
    position:absolute;
    bottom:0;
    left:0;
    right:0;

    padding:18px;

    background:linear-gradient(
        to top,
        rgba(0,0,0,0.75),
        rgba(0,0,0,0)
    );

    color:#fff;
}

.collection-overlay h3{
    font-size:18px;
    font-weight:700;
    margin-bottom:4px;
}

.collection-overlay p{
    font-size:13px;
    opacity:0.85;
    margin-bottom:10px;
}

.collection-overlay span{
    font-size:12px;
    color:#f472b6;
    font-weight:600;
}