/* ================================================================
   theme-compat.css ? finolite-theme-1
   ??????? ??? ???? ??? qeshm-kharid ? ??????? ????????
   ================================================================ */

/* -------- product-row-carousel -------- */
.product-row-carousel .page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.product-row-carousel .page-title h2 {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
    color: var(--text100);
}
.product-row-carousel .btn-link {
    color: var(--primary);
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}
.product-row-carousel .btn-link:hover { color: var(--secondary); }
.product-row-carousel .section-inner { overflow: visible; position: relative; }
/* swiper-products ? ??? qeshm-kharid: ?????? ?? ???? ????? */
.product-row-carousel .swiper-products {
    position: unset;
    height: auto !important;
    overflow: hidden;
}
.product-row-carousel .swiper-products .swiper-wrapper {
    height: auto !important;
    align-items: flex-start;
}
.product-row-carousel .swiper-products .swiper-slide {
    height: auto;
}

/* -------- best-sellers: grid ?? ????? ???? ??? total-products-list -------- */
.best-sellers-section.total-products-list .section-inner,
.total-products-list.best-sellers-section .section-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid #d2d3d4;
    border-right: 1px solid #d2d3d4;
    gap: 0;
}
.best-sellers-section.total-products-list .section-inner .card-product,
.total-products-list.best-sellers-section .section-inner .card-product {
    padding: 0;
}
.best-sellers-section.total-products-list .section-inner .card-product .card-inner,
.total-products-list.best-sellers-section .section-inner .card-product .card-inner {
    border: 1px solid #d2d3d4;
    border-right: 0;
    border-radius: 0;
    border-top: 0;
    box-shadow: none;
    transform: none;
    background: #fff;
}
.best-sellers-section.total-products-list .section-inner .card-product .card-inner:hover,
.total-products-list.best-sellers-section .section-inner .card-product .card-inner:hover {
    box-shadow: none;
    border-color: #d2d3d4;
    transform: none;
}
@media (min-width: 576px) {
    .best-sellers-section.total-products-list .section-inner,
    .total-products-list.best-sellers-section .section-inner {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 768px) {
    .best-sellers-section.total-products-list .section-inner,
    .total-products-list.best-sellers-section .section-inner {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 1200px) {
    .best-sellers-section.total-products-list .section-inner,
    .total-products-list.best-sellers-section .section-inner {
        grid-template-columns: repeat(5, 1fr);
    }
}

.best-sellers-section .page-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

/* -------- ?????? ????? ? ????? -------- */
.middle-banner-section,
.footer-banner-section {
    padding: 10px 0;
    margin: 0;
}
.middle-banner-section .baner,
.footer-banner-section .baner {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
}
.middle-banner-section .baner img,
.footer-banner-section .baner img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .3s;
}
/* Digikala middle: 820?328 */
.middle-banner-section .baner img {
    aspect-ratio: 820 / 328;
    object-fit: cover;
}
.middle-banner-section .baner:hover img,
.footer-banner-section .baner:hover img { transform: scale(1.02); }

/* -------- home-category -------- */
.home-category .card-category h3 {
    font-size: 11px;
    text-align: center;
    margin-top: 4px;
    font-weight: 600;
    color: var(--text100);
}
.home-category .card-category .thumb {
    max-width: 100px;
    margin: 0 auto;
}
.home-category .card-category .thumb img {
    border-radius: 50%;
}
.home-category .card-category .no-image {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background200);
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--text300);
}
@media (max-width: 575px) {
    .home-category .card-category .thumb { max-width: 72px; }
    .home-category .card-category .no-image {
        width: 72px;
        height: 72px;
        font-size: 1.4rem;
    }
    .home-category .card-category h3 { font-size: 10px; }
}

/* -------- ???? ????? ??? ? ???????????? -------- */
.home-carousel {
    margin-bottom: 0 !important;
}
.home-carousel .swiper-home,
.home-carousel .swiper-home .swiper-wrapper,
.home-carousel .swiper-home .swiper-slide {
    height: auto !important;
    min-height: 0 !important;
}
/* Digikala header: 2880?600 ? 2048?426 */
.home-carousel .swiper-home .swiper-slide img,
.home-carousel .swiper-home .swiper-slide picture {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2880 / 600;
    object-fit: cover;
}
.home-category {
    margin-top: 12px !important;
    margin-bottom: 24px !important;
}

/* -------- ????? ??? ??????? -------- */
.product-rows-container {
    margin-bottom: 0;
}
.product-rows-container .product-row-carousel {
    margin: 20px 0 0;
}
.product-rows-container .product-row-carousel + .product-row-carousel {
    margin-top: 0;
}
.product-rows-container .product-row-carousel:last-child {
    margin-bottom: 20px;
}
.category-circle-row {
    margin: 30px 0;
}
.best-sellers-section.total-products-list,
.total-products-list.best-sellers-section {
    margin: 24px 0 12px;
}
.baners-section.footer-banner-section,
.footer-banner-section.baners-section {
    margin: 24px 0 0 !important;
    padding: 0 !important;
}
.baners-section.footer-banner-section .baner,
.footer-banner-section.baners-section .baner {
    margin: 0 0 10px !important;
}
.special-offers-section {
    margin: 24px 0;
    position: relative;
    z-index: 1;
}

/* -------- ??????? ???? ? ?????? ??? qeshm-kharid -------- */
.special-offers-section .section-inner {
    overflow: hidden;
    height: auto;
}
.special-offers-section .offers-header .title h2 {
    color: #fff !important;
}
.special-offers-section .swiper-special-offers {
    overflow: hidden;
    width: 100%;
    height: auto !important;
}
.special-offers-section .swiper-special-offers .swiper-wrapper {
    height: auto !important;
    align-items: flex-start;
}
.special-offers-section .swiper-special-offers .swiper-slide {
    height: auto;
}
.special-offers-section .card-product {
    padding: 2px;
    height: auto;
}
.special-offers-section .card-product .card-inner {
    background-color: #fff;
    border: 1px solid #fff;
    border-radius: 5px;
    box-shadow: none;
    transform: none;
}
.special-offers-section .card-product .card-inner:hover {
    box-shadow: none;
    transform: none;
    border-color: #fff;
}
.special-offers-section .card-product .thumb img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
}
.special-offers-section .card-product .info {
    padding: 5px;
}
.special-offers-section .card-product .info .name h2 {
    font-size: 13px;
    line-height: 24px;
    min-height: 48px;
}
.special-offers-section .card-product .price-content {
    margin: 8px 0;
    min-height: 0;
}
.special-offers-section .card-product .price-content .price h3 {
    font-size: 16px;
}
.special-offers-section .card-product .price-content .price h4 {
    font-size: 14px;
}
.special-offers-section .card-product .price-content .toman {
    font-size: 12px;
}
.special-offers-section .card-product .percentage {
    border-radius: 50%;
}

@media (max-width: 768px) {
    .product-rows-container .product-row-carousel:last-child { margin-bottom: 16px; }
    .best-sellers-section.total-products-list,
    .total-products-list.best-sellers-section { margin-bottom: 8px; }
    .baners-section.footer-banner-section,
    .footer-banner-section.baners-section { margin-top: 20px !important; }
}
@media (max-width: 575px) {
    .product-row-carousel .swiper-button-next,
    .product-row-carousel .swiper-button-prev { display: none; }
}

/* Mobile header banner ? taller than desktop 2880/600 (~4.8:1) */
@media (max-width: 768px) {
  .home-carousel .swiper-home .swiper-slide img,
  .home-carousel .swiper-home .swiper-slide picture,
  .home-carousel .swiper-slide img,
  .home-carousel .swiper-slide picture {
    aspect-ratio: 960 / 400 !important;
    object-fit: cover !important;
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 768px) {
  .home-carousel .swiper-wrapper,
  .home-carousel .swiper-slide,
  .home-carousel .swiper-slide a,
  .home-carousel .swiper-slide picture,
  .home-carousel .swiper-slide img {
    width: 100% !important;
    max-width: 100% !important;
  }
}

