/* ==========================================
   RAYANTAG.IR
   RESPONSIVE STYLE
========================================== */


/* ==========================================
   TABLET
========================================== */

@media (max-width: 1100px) {

    .container {
        width: min(94%, 1100px);
    }

    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px;
    }

    .hero-content h1 {
        font-size: 45px;
    }

    .about-preview-content {
        gap: 40px;
    }
}


/* ==========================================
   TABLET / MOBILE HEADER
========================================== */

@media (max-width: 900px) {

    .header nav {
        display: none;
    }

    .header .container {
        min-height: 72px;
    }

    .header-actions {
        margin-right: auto;
    }

    .menu-btn {
        display: flex;
    }

    .mobile-menu {
        display: none;
    }

    .mobile-menu.active {
        display: block;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 700px;
        margin: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
        max-width: 460px;
        margin: 0 auto 25px;
    }

    .hero-image img {
        max-height: 330px;
    }

    .about-preview-content {
        grid-template-columns: 1fr;
    }

    .about-preview-text {
        max-width: 100%;
        text-align: center;
    }

    .about-preview-image {
        max-width: 650px;
        width: 100%;
        margin: auto;
    }
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 700px) {

    .container {
        width: min(92%, 700px);
    }

    .header .container {
        min-height: 64px;
    }

    .logo img {
        width: 42px;
        height: 42px;
    }

    .logo h2 {
        font-size: 17px;
    }

    .logo span {
        font-size: 8px;
    }

    .header-actions {
        gap: 8px;
    }

    .header-actions a {
        width: 38px;
        height: 38px;
    }

    .hero {
        padding: 45px 0 60px;
    }

    .hero-badge {
        font-size: 11px;
    }

    .hero-content h1 {
        font-size: 34px;
        line-height: 1.5;
    }

    .hero-content p {
        font-size: 13px;
        line-height: 2;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn,
    .hero-buttons .btn-outline {
        width: 100%;
    }

    .hero-image {
        max-width: 330px;
    }

    .hero-image img {
        max-height: 270px;
    }


    /* Sections */

    .featured,
    .why-us,
    .about-preview {
        padding: 65px 0;
    }

    .section-header {
        margin-bottom: 28px;
    }

    .section-header h2 {
        font-size: 25px;
    }

    .section-header p {
        font-size: 13px;
    }


    /* Categories */

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .category-card {
        padding: 10px;
        border-radius: 15px;
    }

    .category-card img {
        height: 130px;
        padding: 8px;
    }

    .category-card h3 {
        font-size: 13px;
    }


    /* Products */

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .product-card {
        border-radius: 15px;
    }

    .product-card img {
        height: 175px;
        padding: 10px;
    }

    .product-info {
        padding: 12px;
    }

    .product-info h3 {
        font-size: 14px;
        line-height: 1.7;
    }

    .product-info p {
        min-height: auto;
        margin-bottom: 10px;
        font-size: 11px;
        line-height: 1.7;
    }

    .product-price {
        margin-bottom: 10px;
        font-size: 15px;
    }

    .btn-product {
        min-height: 40px;
        padding: 8px 10px;
        font-size: 12px;
    }

    .wishlist {
        top: 8px;
        left: 8px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .product-badge {
        top: 8px;
        right: 8px;
        padding: 4px 7px;
        font-size: 9px;
    }


    /* Why */

    .why-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .why-card {
        padding: 24px 18px;
    }


    /* About */

    .about-preview-image img {
        height: 280px;
    }

    .about-preview-text h2 {
        font-size: 25px;
    }

    .about-preview-text p {
        font-size: 13px;
    }


    /* CTA */

    .cta {
        padding: 60px 0;
    }

    .cta-content h2 {
        font-size: 25px;
    }

    .cta-content p {
        font-size: 13px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn,
    .cta-buttons .btn-outline {
        width: 100%;
    }


    /* Features */

    .features {
        padding: 35px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .feature-item {
        min-height: 78px;
    }


    /* Footer */

    .footer {
        padding-top: 45px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-column {
        text-align: right;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}


/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 430px) {

    .container {
        width: 94%;
    }

    .logo h2 {
        font-size: 16px;
    }

    .logo span {
        display: none;
    }

    .header-actions a {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .menu-btn {
        width: 36px;
        height: 36px;
    }

    .hero-content h1 {
        font-size: 30px;
    }

    .hero-image {
        max-width: 280px;
    }

    .hero-image img {
        max-height: 230px;
    }

    .category-grid {
        gap: 9px;
    }

    .category-card img {
        height: 110px;
    }

    .category-card h3 {
        font-size: 12px;
    }

    .product-grid {
        gap: 9px;
    }

    .product-card img {
        height: 150px;
    }

    .product-info {
        padding: 10px;
    }

    .product-info h3 {
        font-size: 13px;
    }

    .product-price {
        font-size: 14px;
    }

    .btn-product {
        font-size: 11px;
        min-height: 38px;
    }

    .about-preview-image img {
        height: 230px;
    }

    .cta-content h2 {
        font-size: 22px;
    }
}


/* ==========================================
   VERY SMALL MOBILE
========================================== */

@media (max-width: 360px) {

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-card img {
        height: 220px;
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-content h1 {
        font-size: 27px;
    }
}

