/* ============================================================
   Main page banner styles
============================================================ */
@font-face {
    font-family: 'ALK Sanet';
    src: url('/fonts/alk-sanet.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

.full-width-banner-container {
    margin-bottom: 30px;
}

.home-banner-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 24px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

/* ============================================================
   გლობალური სტილები / სქროლის ქცევა
============================================================ */
#discount-section {
    scroll-margin-top: 80px; 
}

.home-banner-wrapper:hover {
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.2);
}

.home-banner {
    display: grid;
    grid-template-columns: 50% 50%;
    width: 100%;
    height: 450px;
}

.home-banner__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 40px;
    padding-top: 60px;
    min-width: 0;
    overflow: hidden;
    position: relative;
    background-color: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.home-banner__content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 70%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.home-banner__title,
.home-banner__subtitle,
.home-banner__category {
    position: relative;
    z-index: 2;
}

.home-banner__image {
    background-size: cover;
    background-position: center;
    min-height: 100%;
    min-width: 0;
}

.home-banner__category {
    display: inline-block;
    background-color: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 16px;
    backdrop-filter: blur(5px);
    color: #374151;
    font-weight: 500;
    font-family: 'ALK Sanet', 'Noto Sans Georgian', sans-serif;
}

.home-banner__title {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 16px 0;
    letter-spacing: -1.5px;
    word-break: break-word;
    font-family: 'ALK Sanet', 'Noto Sans Georgian', sans-serif;
}

.home-banner__subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.5;
    margin: 0;
    opacity: 0.85; 
    font-family: 'ALK Sanet', 'Noto Sans Georgian', sans-serif;
}

.home-banner--empty {
    padding: 80px 40px;
    text-align: center;
    border: 2px dashed #e0e0e0;
    border-radius: 24px;
    background-color: #fdfdfd;
}

/* ============================================================
   Shared Section Styles
============================================================ */
.section-spacing {
    margin-top: 30px;
}

.section-title {
    text-align: left;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #374151;
    font-family: 'ALK Sanet', 'Noto Sans Georgian', sans-serif;
}

/* ============================================================
   START: Improved Category Section Styles
============================================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.category-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.category-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.category-card__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-card:hover .category-card__background {
    transform: scale(1.05);
}

.category-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 2;
    transition: height 0.3s ease;
}

.category-card__content {
    position: relative;
    z-index: 3;
    padding: 24px;
    width: 100%;
    transition: transform 0.3s ease;
}

.category-card:hover .category-card__content {
    transform: translateY(-5px);
}

.category-card__title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 4px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    font-family: 'ALK Sanet', 'Noto Sans Georgian', sans-serif;
}

.category-card__cta {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: 0.05s;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'ALK Sanet', 'Noto Sans Georgian', sans-serif;
}

.category-card:hover .category-card__cta {
    opacity: 1;
    transform: translateY(0);
}
/* ============================================================
   END: Improved Category Section Styles
============================================================ */


/* ============================================================
   Popular & Discounted products section and slider
============================================================ */
.popular-products-section,
.discounted-products-section {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.popular-products-slider,
.discounted-products-slider {
    width: 100%;
    height: auto;
    padding-bottom: 60px;
}

.discounted-products-slider {
    padding-bottom: 0;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: stretch;
    height: auto;
}

.product-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.product-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card__image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background-color: #f5f5f5;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e74c3c;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
    line-height: 1;
    font-family: 'ALK Sanet', 'Noto Sans Georgian', sans-serif;
}

.product-card__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card__image-wrapper img {
    transform: scale(1.05);
}

.product-card__content {
    padding: 15px;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card__title {
    color: #222;
    font-family: 'ALK Sanet', 'Noto Sans Georgian', sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 600;
    height: 2.8em;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.product-card__price-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 10px;
    gap: 10px;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: nowrap;
}

.product-card__price {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #333;
    font-family: 'ALK Sanet', 'Noto Sans Georgian', sans-serif;
}

.product-card__price.sale-price {
    color: #e67e22;
}

.product-card__price.old-price {
    font-size: 0.9rem;
    color: #95a5a6;
    font-weight: 400;
    text-decoration: line-through;
}

.product-card__cart-btn {
    background-color: #e67e22;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.3);
    flex-shrink: 0;
}

.product-card__cart-btn::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: white;
    -webkit-mask-size: 55%;
    mask-size: 55%;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    transition: -webkit-mask-image 0.2s ease, mask-image 0.2s ease;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z'/%3E%3C/svg%3E");
}

.product-card__cart-btn:hover {
    background-color: #d4711e;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.4);
}

.product-card__cart-btn:active {
    transform: scale(0.95);
}

.product-card__cart-btn.added {
    background-color: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.product-card__cart-btn.added::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
}

.product-card__cart-btn.error {
    background-color: #ef4444;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.product-card__cart-btn.error::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
}

.swiper-pagination {
    bottom: 15px !important;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background-color: #d1d5db;
    opacity: 1;
    border-radius: 50%;
    transition: all 0.3s ease-in-out;
    margin: 0 4px !important;
}

.swiper-pagination-bullet-active {
    width: 24px;
    border-radius: 6px;
    background-color: #e67e22;
}

.text-center {
    text-align: center;
}

/* ============================================================
   Responsive adaptation
============================================================ */
@media (max-width: 992px) {
    .home-banner { height: 400px; }
    .home-banner__content { padding: 35px; padding-top: 50px; }
    .home-banner__title { font-size: 3rem; }
    .home-banner__subtitle { font-size: 1.3rem; }
}
@media (max-width: 767px) {
    .home-banner { grid-template-columns: 1fr; grid-template-rows: 200px auto; height: auto; }
    .home-banner__image { order: 1; min-height: 200px; }
    .home-banner__content { order: 2; padding: 25px 20px 30px 20px; }
    .home-banner__title { font-size: 2.2rem; font-weight: 700; margin-bottom: 10px; }
    .home-banner__subtitle { font-size: 1.1rem; font-weight: 300; }
    
    .section-spacing { margin-top: 30px; }

    .section-title { 
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .popular-products-slider { padding-bottom: 60px; }
    .discounted-products-slider { padding-bottom: 0; }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .category-card__title { font-size: 1.4rem; }
    .category-card__content { padding: 20px; }
    
    .price-container { flex-direction: column; align-items: flex-start; gap: 0; }
    .product-card__price { font-size: 1rem; }
    .product-card__price.sale-price { font-size: 1.05rem; line-height: 1.2; }
    .product-card__price.old-price { font-size: 0.8rem; line-height: 1; }
    .product-card__cart-btn { width: 34px; height: 34px; }
}
@media (max-width: 480px) {
    .category-card__title { font-size: 1.2rem; }
    .category-card__content { padding: 16px; }
    
    .discounted-products-section .section-title {
        font-size: 1.1rem;
    }
}
@media (min-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 769px) {
    .product-card__cart-btn {
        opacity: 0;
        visibility: hidden;
        transform: translateX(10px);
        transition: all 0.3s ease;
    }

    .product-card:hover .product-card__cart-btn {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
}

/* ============================================================
   ✅ დამატებული სტილი მარქუე ეფექტისთვის (ხაზოვანი ანიმაცია)
============================================================ */
.discounted-products-slider .swiper-wrapper {
    transition-timing-function: linear !important;
    -webkit-transition-timing-function: linear !important;
}