/* =========================
   HOME PAGE
========================= */

.home-page {
    max-width: 1300px;
    margin: auto;
    padding: 30px 20px;
}

/* =========================
   TITLE
========================= */

.shop-title {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 45px;
    color: #dae7ed;
}

/* =========================
   SECTION HEADER
========================= */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-header h2 {
    margin: 0;
}

/* =========================
   SECTION TITLE
========================= */

.home-page section h2 {
    color: white;
    font-size: 26px;
    font-weight: 800;
}

/* =========================
   SLIDER
========================= */

.product-slider {
    margin-bottom: 60px;
}

.slider-wrapper {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.slider-wrapper::-webkit-scrollbar {
    height: 8px;
}

.slider-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.slider-wrapper::-webkit-scrollbar-thumb {
    background: #A56F63;
    border-radius: 20px;
}

.slider-card {
    min-width: 260px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* =========================
   PRODUCTS GRID
========================= */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.discount-products,
.best-products,
.all-products {
    margin-bottom: 70px;
}

/* =========================
   PRODUCT CARD
========================= */

.product-card {
    display: flex;
    flex-direction: column;
    min-height: 480px;
    padding: 20px;
    text-align: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .20);
    backdrop-filter: blur(15px);
    border-radius: 22px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .15);
    transition: .3s;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
}

/* IMAGE */
.product-card img {
    width: 100%;
    height: 230px;
    object-fit: contain;
    padding: 10px;
    background: rgba(255, 255, 255, .05);
    border-radius: 18px;
    flex-shrink: 0;
}

/* TITLE */
.product-card h3 {
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
    font-size: 18px;
    margin: 12px 0;
    padding: 0 5px;
    word-break: break-word;
}

/* =========================
   PRICE - بهبود یافته
========================= */

.price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    gap: 2px;
}

.price {
    font-size: 20px;
    font-weight: 800;
    color: #D99B7F;
    line-height: 1.2;
}

.old-price {
    color: #aaa;
    text-decoration: line-through;
    font-size: 15px;
    line-height: 1.2;
}

.discount-price {
    font-size: 23px;
    font-weight: 900;
    color: #D99B7F;
    line-height: 1.2;
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    height: 32px;
    margin: 8px auto 0;
    padding: 0 18px;
    border-radius: 25px;
    background: #A56F63;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

/* =========================
   STOCK
========================= */

.stock,
.out-stock {
    min-height: 30px;
    margin: 8px 0;
    font-weight: 700;
    font-size: 14px;
}

.stock {
    color: #4caf50;
}

.out-stock {
    color: #ff5252;
}

/* =========================
   BUTTON
========================= */

.product-btn {
    margin-top: auto;
    min-height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: #0F3040;
    color: white;
    border-radius: 15px;
    text-decoration: none;
    transition: .3s;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 10px;
}

.product-btn:hover {
    background: #A56F63;
}

/* =========================
   VIEW ALL BUTTON
========================= */

.view-all-bottom {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    margin-top: 35px;
}

.view-all-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: #0F3040;
    color: white;
    border-radius: 18px;
    text-decoration: none;
    font-weight: 700;
    transition: .3s;
    font-size: 15px;
    white-space: nowrap;
}

.view-all-btn:hover {
    background: #A56F63;
    transform: translateY(-3px);
}
/* =========================
   HOME PAGE BACKGROUND
========================= */

body {
    background:
        radial-gradient(
            circle at top right,
            rgba(165, 111, 99, 0.10),
            transparent 35%
        ),
        radial-gradient(
            circle at bottom left,
            rgba(15, 48, 64, 0.25),
            transparent 40%
        ),
        #071C26;

    color: #dae7ed;
}