@media (min-width: 1600px) {
    .hero-slider {
        width: calc(100% - var(--bs-gutter-x, 0.75rem) * 2);
        padding-right: var(--bs-gutter-x, 0.75rem);
        padding-left: var(--bs-gutter-x, 0.75rem);
        margin-right: auto;
        margin-left: auto;
        max-width: 1440px;
    }

    .coffee-slider {
        border-radius: 3rem;
    }
}
@media (max-width: 1400px) {
    .why-us-cards {
        gap: 0.5rem;
        padding: 0rem;
    }

}

@media (max-width: 1200px) {
    .cat-cards div span,
    .cat-cards div p {
        font-size: 16px;
    }

    .cat-cards div span:before, .cat-cards div span:after {
        width: 32px;
    }

    .titles-home-page span {
        max-width: 190px;
    }
    .shape-1 img {
        width: 43%;
    }

    .cards-wrapper {
        width: 400px;
    }

}

@media (max-width: 992px) {
    .shape-2 img {
        width: 35%;
    }
    .titles-home-page {
        font-size: 28px;
    }

    .why-us-cards {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
    }

    .why-us-cards .why-us-card:nth-child(1), .why-us-cards .why-us-card:nth-child(3), .why-us-cards .why-us-card:nth-child(5) {
        transform: translateY(-2rem);
    }

    .why-us-icon {
        width: 32px;
    }

    .why-us-cards .why-us-card:nth-child(2), .why-us-cards .why-us-card:nth-child(4) {
        transform: translateY(1.5rem);
    }

    .cat-cards div span, .cat-cards div p {
        font-size: 12px;
    }

    .about-us-pic-2 {
        bottom: -70px;
    }

    .about-us-pic-2,
    .about-us-pic-1 {
        width: 190px;
    }

    .page-title h4 span {
        padding: 2rem 5.5rem;
    }

    .page-title h4 {
        font-size: 32px;
    }

    .header-style ul {
        display: none !important;
    }

    .header-style {
        flex-direction: row !important;
    }

    .logo-desktop {
        display: none !important;
    }
    .hero-slider {
        padding-top: 6rem;
    }
    .flex-header {
        gap: 0.5rem;
        display: flex;
        flex-direction: row-reverse;
    }

    .header-style a.login-btn {
        margin: 0;
    }
    .coffee-section-container {
        display: flex;
        flex-direction: column-reverse;
        align-items: center;
        gap: 3rem;
    }

    .coffee-section::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(170deg, transparent 25%, #572d01 25%);
        z-index: 0;
        opacity: 0.6;
    }

    .content-left .glass-card {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

}

@media (max-width: 768px) {
    .shape-2 img {
        width: 50%;
    }
    .subtitles-home-page {
        font-size: 12px;
    }

    .titles-home-page span {
        max-width: 80px;
    }

    .titles-home-page {
        font-size: 24px;
    }

    .hero-2 {
        bottom: 300px;
        width: 200px;
    }

    .hero-1 {
        top: 0px;
        width: 200px;
    }

    .hero-section h3 {
        font-weight: 600;
        font-size: 67px;
        line-height: 100%;
        text-align: center;

    }

    .hero-section h6 {
        font-weight: 200;
        font-size: 24px;
        letter-spacing: 28px;
        text-align: center;
        padding-left: 2rem;
    }

    .before-scroll {
        width: 160px;
        margin-top: -5rem;
    }

    .hero-back {
        position: absolute;
        bottom: 20%;
        height: 500px;
        left: 0;
    }

    .hero-section .pos-relative {
        height: 84vh;
    }

    .why-us-card h6 {
        margin: 12px 0 4px;
    }

    .category-section {
        flex-direction: column;
    }

    .cat-cards div span, .cat-cards div p {
        font-size: 20px;
    }

    .page-title h4 {
        padding: 5rem;
    }

    .footer-grid {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 18px;
        justify-items: center;
    }

    .footer-menu {
        order: 1;
        text-align: center;
        margin-bottom: 24px;
    }

    footer {
        padding: 1.5rem 1.5rem 0;
    }

    .footer-logo {
        order: 3;
    }

    .footer-social {
        order: 2;
    }

    .about-us-pic-1,
    .about-us-pic-2 {
        width: 221px;
    }
}

@media (max-width: 576px) {
    .shape-1 img {
        width: 230px;
    }
    .shape-2 img {
        width: 250px;
    }

    .hero-back {
        position: absolute;
        bottom: 16%;
        height: 463px;
        left: 0;
    }

    .hero-section .pos-relative {
        height: 520px;
    }

    .titles-home-page {
        gap: 6px;
    }

    .why-us-card {
        padding: 1rem;
    }

    .page-title h4 span {
        font-size: 1.5rem;
        padding: 1rem 2.5rem;

    }

    .about-us-pic-1, .about-us-pic-2 {
        width: 142px;
    }

    .about-us-pic-2 {
        bottom: -83px;
    }

    .header-style a.login-btn span {
        display: none;
    }

    .header-style a.cart-btn {
        border: 0;
    }
}

@media (max-width: 500px) {
    .login-popup {
        max-height: 90vh;
        overflow-y: auto;
    }
}

@media (max-width: 475px) {
    .page-title h4 span {
        font-size: 1.25rem;
    }

    .about-us-pic-2, .about-us-pic-1 {
        width: 130px;
    }
}

@media (max-width: 440px) {
    .cat-cards {
        width: 100%;
    }

    .titles-home-page span {
        max-width: 50px;
    }
}

@media (max-width: 400px) {
    .titles-home-page span {
        max-width: 30px;
    }

    .why-us-cards {
        grid-template-columns: repeat(1, 1fr);
    }

    .page-title h4 {
        padding: 4rem;
    }

    .page-title h4 span {
        padding: 1rem 1.5rem;
    }

    .why-us-cards .why-us-card:nth-child(2), .why-us-cards .why-us-card:nth-child(4),
    .why-us-cards .why-us-card:nth-child(1), .why-us-cards .why-us-card:nth-child(3), .why-us-cards .why-us-card:nth-child(5) {
        transform: translateY(0);

    }
}

@media (max-width: 768px) {
    .section-heading {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .swiper-wrapper-bg {
        margin: 0;
        border-radius: 16px;
        padding: 20px 15px;
    }

    .coffee-card {
        max-width: 280px;
    }

    .card-title {
        font-size: 20px;
    }

    .card-description {
        font-size: 13px;
    }

    .card-price span {
        font-size: 24px;
    }

    .order-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .view-all-btn {
        padding: 14px 28px;
        font-size: 15px;
    }

    /* Why Choose Us */
    .why-choose-section .section-title {
        font-size: 30px;
        margin-bottom: 32px;
    }

    .feature-card {
        flex-direction: column-reverse !important;
        min-height: auto;
        margin-top: 8rem;

    }

    .feature-card .feature-text {
        padding: 28px 24px;
        text-align: center;
        margin-top: -5rem;
    }

    .feature-card .feature-text p {
        max-width: 100%;
    }

    .feature-card .feature-text h3 {
        font-size: 22px;
    }

    .feature-card .feature-text p {
        font-size: 14px;
    }

    .feature-card .feature-image {
        width: 100%;
        min-height: 180px;
        padding: 20px;
    }

    .feature-card .feature-image img {
        width: 160px;
        height: 160px;
        margin-top: -10rem;
    }
    /* Articles */
    .articles-section__title {
        font-size: 26px;
        letter-spacing: 3px;
        margin-bottom: 24px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 14px;
    }

    .article-card--featured {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 320px;
    }

    .article-card--featured__heading {
        font-size: 20px;
    }

    .article-card--featured__desc {
        font-size: 12px;
    }

    .article-card--top-right {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 150px;
    }

    .article-card--top-right__heading {
        font-size: 18px;
    }

    .articles-grid__bottom-right {
        grid-column: 1 / -1;
        grid-row: auto;
        gap: 14px;
    }

    .article-card--bottom-left {
        min-height: 170px;
    }

    .article-card--bottom-left__heading {
        font-size: 16px;
    }

    .article-card--all {
        min-height: 170px;
    }

    .article-card--all__heading {
        font-size: 30px;
    }

}

@media (max-width: 480px) {
    .section-heading {
        font-size: 26px;
    }

    .coffee-card {
        max-width: 260px;
    }

    .card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .order-btn {
        width: 100%;
        text-align: center;
    }

    /* Articles Mobile */
    .articles-section__title {
        font-size: 22px;
        letter-spacing: 2px;
        margin-bottom: 18px;
    }

    .articles-grid {
        gap: 12px;
    }

    .article-card--featured {
        min-height: 280px;
    }

    .article-card--featured__content {
        padding: 20px 18px;
    }

    .article-card--featured__heading {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .article-card--featured__desc {
        font-size: 11.5px;
        line-height: 1.6;
    }

    .article-card--top-right {
        min-height: 130px;
        padding: 20px;
    }

    .article-card--top-right__heading {
        font-size: 16px;
    }

    .articles-grid__bottom-right {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .article-card--bottom-left {
        min-height: 150px;
    }

    .article-card--bottom-left__heading {
        font-size: 15px;
    }

    .article-card--all {
        min-height: 120px;
    }

    .article-card--all__heading {
        font-size: 26px;
    }
}


/* ریسپانسیو */
@media (max-width: 992px) {
    .coffee-section {
        height: auto;
        flex-direction: column;
        padding: 30px 20px;
        gap: 30px;
    }

    .content-left {
        padding: 0;
        max-width: 100%;
    }



    .logo-right {
        padding: 0;
    }
}

@media (max-width: 576px) {
    .glass-card h2 {
        font-size: 22px;
    }

    .cup-container {
        width: 220px;
        height: 220px;
    }

    .coffee-logo, .logo-svg-wrapper {
        width: 140px;
        height: 140px;
    }
}

