/* =======================================================
   MADAR — MOBILE & TABLET ONLY
   All rules live inside media queries.
   Desktop (style.css) is untouched.
======================================================= */

@media (max-width: 1024px) {

    :root {
        --m-xs: 16px;
        --m-sm: 24px;
        --m-md: 32px;
        --m-lg: 48px;
        --m-xl: 64px;
        --m-gold: #C8A35F;
    }

    html,
    body {
        overflow-x: hidden;
    }

    .container {
        width: min(92%, 960px);
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: var(--m-md);
        text-align: center;
    }

    .featured-left img {
        max-width: min(100%, 420px);
        margin: 0 auto;
        display: block;
    }

    .featured-right .btn {
        width: 100%;
        max-width: 320px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--m-sm);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--m-sm);
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--m-md);
    }
}

@media (max-width: 992px) {

    /* ——— NAVBAR ——— */
    .header {
        background: rgba(8, 8, 8, 0.78);
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .header .container {
        height: 72px;
        position: relative;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 6px;
        width: 48px;
        height: 48px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.04);
        cursor: pointer;
        z-index: 1002;
        transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
    }

    .nav-toggle__line {
        display: block;
        width: 22px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    }

    .nav-toggle.is-open .nav-toggle__line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.is-open .nav-toggle__line:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .nav-toggle.is-open .nav-toggle__line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .header-cta {
        display: none;
    }

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1000;
        background: rgba(0, 0, 0, 0.62);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
    }

    .nav-backdrop.is-open {
        opacity: 1;
        visibility: visible;
    }

    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 88vw);
        height: 100vh;
        height: 100dvh;
        padding: 96px var(--m-sm) var(--m-md);
        display: flex;
        flex-direction: column;
        gap: 8px;
        background: rgba(12, 12, 12, 0.97);
        border-left: 1px solid rgba(200, 163, 95, 0.14);
        box-shadow: -24px 0 80px rgba(0, 0, 0, 0.55);
        z-index: 1001;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s ease;
    }

    .site-nav.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .site-nav a {
        display: block;
        padding: 16px 18px;
        border-radius: 14px;
        font-size: 18px;
        font-weight: 600;
        color: #f0f0f0;
        transition: background 0.3s ease, color 0.3s ease;
    }

    .site-nav a:hover {
        background: rgba(200, 163, 95, 0.1);
        color: var(--m-gold);
    }

    .site-nav a::after {
        display: none;
    }

    .site-nav .nav-cta {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        min-height: 52px;
        margin-top: var(--m-xs);
        font-size: 16px;
        border-radius: 999px;
    }

    body.nav-open {
        overflow: hidden;
    }

    .category-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--m-sm);
    }

    .contact-box {
        grid-template-columns: 1fr;
        gap: var(--m-md);
    }
}

@media (max-width: 768px) {

    /* ——— GLOBAL ——— */
    .section-header {
        margin-bottom: var(--m-md);
        text-align: center;
    }

    .section-title,
    .section-header h2 {
        font-size: clamp(28px, 7vw, 36px);
        line-height: 1.15;
    }

    .section-header p,
    .section-subtitle {
        font-size: 15px;
        line-height: 1.7;
    }

    .featured,
    .categories,
    .products,
    .why,
    .contact {
        padding: var(--m-xl) 0;
    }

    /* ——— HERO ——— */
    .hero {
        padding-top: 88px;
        padding-bottom: var(--m-sm);
        min-height: auto;
    }

    .hero-stage {
        display: flex;
        flex-direction: column;
        margin-top: var(--m-xs);
        padding: 0 var(--m-xs);
        line-height: normal;
    }

    .hero-image-bg {
        order: 1;
        width: 100%;
        max-height: min(42vw, 220px);
        height: auto;
        object-fit: contain;
        object-position: center;
        border-radius: 20px;
        box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    }

    .hero-content {
        order: 2;
        position: static;
        width: 100%;
        padding: var(--m-sm) 0 0;
        pointer-events: auto;
    }

    .hero-text {
        max-width: 100%;
        margin: 0 auto;
        text-align: center;
    }

    .badge {
        font-size: 12px;
        padding: 8px 14px;
        margin-bottom: var(--m-xs);
    }

    .hero-text h1 {
        font-size: clamp(26px, 7.5vw, 36px);
        line-height: 1.12;
        margin: 0 0 var(--m-xs);
    }

    .hero-text p {
        font-size: 15px;
        line-height: 1.75;
        max-width: 100%;
        margin: 0 0 var(--m-sm);
        color: var(--text);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: var(--m-sm);
    }

    .hero-buttons .btn {
        width: 100%;
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        padding: 14px var(--m-sm);
    }

    .hero-info {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-info > div {
        padding: var(--m-xs);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    .hero-info h3 {
        font-size: 22px;
        margin-bottom: 4px;
    }

    .hero-info span {
        font-size: 12px;
        line-height: 1.4;
    }

    /* ——— FEATURED ——— */
    .featured h2 {
        font-size: clamp(28px, 6vw, 34px);
    }

    .featured p {
        font-size: 15px;
        line-height: 1.75;
    }

    .spec-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* ——— CATEGORIES ——— */
    .category-grid {
        grid-template-columns: 1fr;
        gap: var(--m-sm);
    }

    .category-card {
        height: 280px;
        border-radius: 20px;
    }

    .overlay h3 {
        font-size: 26px;
    }

    /* ——— PRODUCTS ——— */
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin: 0 auto;
        gap: var(--m-sm);
    }

    .product-card {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
        border-radius: 22px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    .product-card:hover {
        transform: none;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    }

    .product-card:active {
        transform: scale(0.985);
    }

    .product-image {
        height: auto;
        padding: var(--m-sm) var(--m-sm) 12px;
        background: linear-gradient(180deg, rgba(200, 163, 95, 0.05) 0%, transparent 60%), #101010;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .product-image img {
        max-height: 190px;
        max-width: 92%;
        width: auto;
        height: auto;
        object-fit: contain;
        margin: 0 auto;
    }

    .product-content {
        display: flex;
        flex-direction: column;
        padding: 8px var(--m-sm) var(--m-sm);
        gap: 12px;
    }

    .product-category {
        font-size: 12px;
        letter-spacing: 0.5px;
        margin: 0;
    }

    .product-content h3 {
        margin: 0;
        font-size: 24px;
        font-weight: 800;
        line-height: 1.15;
    }

    .product-specs {
        margin: 0;
        gap: 10px;
        row-gap: 10px;
    }

    .product-specs span {
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 999px;
    }

    .product-footer {
        margin: 4px 0 0;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .product-footer h4 {
        font-size: 26px;
        margin: 0;
    }

    .product-footer .product-quickview {
        width: 100%;
        min-height: 52px;
        padding: 14px var(--m-sm);
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* ——— WHY ——— */
    .why-grid {
        grid-template-columns: 1fr;
        gap: var(--m-sm);
        margin-top: var(--m-md);
    }

    .why-card {
        padding: var(--m-md) var(--m-sm);
        border-radius: 20px;
        text-align: center;
        transition: transform 0.25s ease;
    }

    .why-card:active {
        transform: scale(0.99);
    }

    .why-icon {
        margin-bottom: var(--m-sm);
    }

    .why-card h3 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .why-card p {
        font-size: 15px;
        line-height: 1.75;
        max-width: 280px;
        margin: 0 auto;
    }

    /* ——— CONTACT ——— */
    .contact-box {
        padding: var(--m-md) var(--m-sm);
        border-radius: 22px;
    }

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

    .contact-left h2 {
        font-size: clamp(28px, 6vw, 34px);
    }

    .contact-left p {
        font-size: 15px;
        line-height: 1.75;
    }

    .contact-info {
        display: grid;
        gap: var(--m-xs);
        margin-top: var(--m-sm);
    }

    .contact-info div {
        margin: 0;
        padding: var(--m-xs);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.03);
    }

    .contact-right form {
        gap: var(--m-xs);
    }

    .contact-right input,
    .contact-right textarea {
        width: 100%;
        min-height: 52px;
        padding: 14px 18px;
        font-size: 15px;
        border-radius: 14px;
    }

    .contact-right textarea {
        min-height: 140px;
        padding-top: 16px;
    }

    .contact-right button {
        width: 100%;
        min-height: 52px;
        font-size: 16px;
        border-radius: 999px;
        margin-top: 8px;
    }

    /* ——— FOOTER ——— */
    footer {
        padding: var(--m-lg) 0 var(--m-md);
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: var(--m-md);
        text-align: center;
    }

    .footer-top > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .footer-top img {
        margin: 0 auto;
    }

    .footer-top a {
        display: block;
        padding: 8px 0;
        font-size: 15px;
    }

    .footer-bottom {
        margin-top: var(--m-md);
        text-align: center;
    }

    .footer-bottom p {
        font-size: 13px;
        line-height: 1.6;
    }

    /* ——— QUICK VIEW ——— */
    .quickview {
        padding: 0;
        align-items: flex-end;
    }

    .quickview__dialog {
        width: 100%;
        max-width: 100%;
        max-height: 94vh;
        max-height: 94dvh;
        border-radius: 24px 24px 0 0;
        border-bottom: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
    }

    .quickview__layout {
        display: flex;
        flex-direction: column;
        min-height: auto;
        direction: rtl;
    }

    .quickview__media {
        order: 1;
        padding: var(--m-md) var(--m-sm) var(--m-xs);
        min-height: auto;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .quickview__image {
        max-height: 220px;
        object-fit: contain;
    }

    .quickview__body {
        order: 2;
        display: flex;
        flex-direction: column;
        padding: var(--m-sm);
        gap: var(--m-xs);
        direction: rtl;
        text-align: right;
    }

    .quickview__category {
        font-size: 13px;
        margin: 0;
    }

    .quickview__title {
        font-size: clamp(24px, 6vw, 30px);
        margin: 0;
        line-height: 1.15;
    }

    .quickview__desc {
        font-size: 15px;
        line-height: 1.75;
        margin: 0;
    }

    .quickview__specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin: var(--m-xs) 0;
    }

    .quickview__spec {
        padding: 14px;
        border-radius: 14px;
    }

    .quickview__spec-label {
        font-size: 12px;
    }

    .quickview__spec-value {
        font-size: 14px;
    }

    .quickview__price {
        font-size: clamp(26px, 5vw, 32px);
        margin: var(--m-xs) 0;
    }

    .quickview__actions {
        margin-top: var(--m-xs);
        padding-bottom: var(--m-xs);
    }

    .quickview__btn--primary {
        width: 100%;
        min-height: 52px;
        max-width: none;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
    }

    .quickview__close {
        position: sticky;
        top: var(--m-xs);
        left: var(--m-xs);
        width: 44px;
        height: 44px;
        margin: var(--m-xs) auto var(--m-xs) var(--m-xs);
        z-index: 10;
        flex-shrink: 0;
    }
}

@media (max-width: 576px) {

    .container {
        width: 92%;
    }

    .hero-image-bg {
        max-height: min(40vw, 200px);
    }

    .hero-text h1 {
        font-size: clamp(24px, 8vw, 32px);
    }

    .products-grid {
        max-width: 360px;
    }

    .product-image img {
        max-height: 175px;
    }

    .product-content h3 {
        font-size: 22px;
    }

    .featured,
    .categories,
    .products,
    .why,
    .contact {
        padding: var(--m-lg) 0;
    }
}

@media (max-width: 480px) {

    .hero-image-bg {
        max-height: 185px;
        border-radius: 16px;
    }

    .section-title,
    .section-header h2 {
        font-size: 28px;
    }

    .category-card {
        height: 260px;
    }

    .product-content {
        padding: 8px 20px 20px;
    }

    .quickview__body {
        padding: 20px 16px 16px;
    }

    .quickview__specs {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 430px) {

    .header .container {
        height: 68px;
    }

    .logo img {
        height: 40px;
    }

    .logo h2 {
        font-size: 22px;
    }

    .hero-info h3 {
        font-size: 20px;
    }
}

@media (max-width: 390px) {

    .hero-text h1 {
        font-size: 26px;
    }

    .hero-text p {
        font-size: 14px;
    }

    .products-grid {
        max-width: 340px;
    }

    .product-image img {
        max-height: 165px;
    }

    .why-card {
        padding: var(--m-sm) 20px;
    }
}

@media (max-width: 375px) {

    .section-title,
    .section-header h2 {
        font-size: 26px;
    }

    .category-card {
        height: 240px;
    }
}

@media (max-width: 360px) {

    .container {
        width: 94%;
    }

    .nav-toggle {
        width: 44px;
        height: 44px;
    }

    .hero-buttons .btn,
    .product-footer .product-quickview,
    .quickview__btn--primary,
    .site-nav .nav-cta,
    .contact-right button {
        min-height: 48px;
    }
}
