/* =================== TEMPLATE HOME ========================== */

.banner-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.banner-slider .glide__track,
.glide__slides,
.glide__slide {
    height: 100%;
    margin: 0;
    padding: 0;
}

.banner-slide {
    position: relative;
    width: 100%;
    min-height: clamp(550px, 75vh, 850px);
    display: flex;
}

.banner-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    display: block;
}

.banner-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    padding: 2rem;
    padding-bottom: 3rem;
}

.banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 900px;
    color: var(--color-white);
    animation: slideUp 0.8s ease-out forwards;
}

.banner-description {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-family: var(--font-title);
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: pre-line;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
    color: var(--color-light);
}

.glide__arrow {
    width: 56px;
    height: 56px;
    border: none;
    background: none;
    display: flex;
    color: var(--color-white);
    font-size: 3rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    z-index: 10;
}

.glide__arrow:hover {
    transform: scale(1.2);
}

.glide__arrow--left {
    left: 30px;
}
.glide__arrow--right {
    right: 30px;
}

.banner-slider .glide__arrows {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 10;
}

.banner-slider:hover .glide__arrows {
    opacity: 1;
    pointer-events: auto;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========= FEATURED PRODUCTS ======== */
.product-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
}

.featured-products {
    padding: 4rem 0.5rem;
    background-color: var(--color-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-md);
    padding: 1rem 1.5rem 2.5rem 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s ease;
    cursor: pointer;
    width: 100%;
}

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

.product-card img {
    max-width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

.product-title {
    font-size: 1.4rem;
    color: var(--color-dark-gray);
    line-height: 1.5;
}

.product-description {
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.4);
}

.product-btn {
    background-color: var(--color-secondary);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius-btn);
    text-transform: uppercase;
    font-weight: bold;
    transition: background 0.3s;
    align-self: center;
    margin-top: auto;
}

.product-btn:hover {
    background-color: #a80320;
}

/* ============ WHY GAZIL SECTION ============= */

.why-gazil {
    padding: 4rem 1rem;
}

.why-gazil .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--color-dark);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.reason-card {
    padding: 2rem;
    text-align: center;
    background: var(--color-white);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.reason-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-style: normal;
}

.reason-card p {
    text-align: center;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.4);
}

.reason-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.reason-description {
    font-size: 1rem;
    color: var(--color-dark-gray);
    line-height: 1.5;
}

/* ============== RESPONSIVENESS(TEMPLATE HOME) ================ */

@media (max-width: 968px) {
    .products-grid {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        margin-top: -15px;
        padding: 15px;
        scroll-padding-left: 15px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .products-grid::-webkit-scrollbar {
        display: none;
    }
    .products-grid > .product-card-link {
        flex: 0 0 calc(100% - 3rem);
        scroll-snap-align: start;
    }
}

@media (max-width: 768px) {
    .why-gazil {
        padding: 0 1rem;
    }
    .reasons-grid {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1.5rem;
        padding-bottom: 2rem;
        padding-left: 15px;
        padding-right: 15px;
        scroll-padding-left: 15px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .reasons-grid::-webkit-scrollbar {
        display: none;
    }
    .reasons-grid > .reason-card {
        flex: 0 0 calc(100% - 3.5rem);
        scroll-snap-align: start;
    }
}

@media (max-width: 460px) {
    .reason-card {
        padding: 1rem;
    }
}

.banner-align-center {
    align-items: center;
}

.banner-align-flex-start {
    align-items: flex-start;
}

.banner-align-flex-end {
    align-items: flex-end;
}
