﻿/* ============================================================
   LUXURY FLOWER STORE â€” RESPONSIVE STYLES
   ============================================================ */

/* ---------- Large desktop ---------- */
@media (max-width: 1280px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .t-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-results {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------- Small desktop / large laptop ---------- */
@media (max-width: 1440px) {
    .container {
        max-width: 928px;
    }

    .hero-title {
        font-size: clamp(1.9rem, 3.4vw, 2.9rem);
    }

    .hero-visual {
        min-height: 352px;
    }
}

@media (max-width: 1366px) {
    .container {
        max-width: 896px;
    }

    .hero-visual {
        min-height: 336px;
    }
}

/* ---------- Laptop: nudge features row up ---------- */
@media (min-width: 1025px) and (max-width: 1920px) {
    .features {
        padding-top: clamp(16px, 1.9vw, 26px);
    }
}

/* ---------- Laptop ---------- */
@media (max-width: 1200px) {
    .container {
        max-width: 848px;
    }

    .hero-inner {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 22px;
    }

    .hero-visual {
        min-height: 320px;
    }
}

/* ---------- Tablet landscape ---------- */
@media (max-width: 1080px) {
    html {
        overflow-x: hidden;
    }

    .nav-pill {
        display: none;
    }

    .hamburger {
        display: grid;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid rgba(201, 162, 39, 0.3);
        place-items: center;
        background: transparent;
        transition: all 0.3s ease;
    }

    .hamburger:hover {
        background: var(--cream);
    }

    .hamburger svg {
        width: 16px;
        height: 16px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-copy {
        padding-bottom: 8px;
        text-align: center;
    }

    .hero-desc {
        margin-inline: auto;
    }

    .hero-cta,
    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        min-height: 368px;
        max-width: 512px;
        margin: 0 auto;
        width: 100%;
    }

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

    .t-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .about-visual {
        max-width: 450px;
        margin: 0 auto;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .offer-inner {
        grid-template-columns: 1fr;
    }

    .offer-visual {
        order: 2;
    }

    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-filters {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(88vw, 340px);
        background: var(--warm-white);
        z-index: 160;
        padding: 26px;
        transform: translateX(105%);
        transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
        overflow-y: auto;
        border-radius: 0 0 0 40px;
        box-shadow: 40px 0 80px rgba(43, 41, 39, 0.12);
    }

    .shop-filters.open {
        transform: translateX(0);
    }

    .filters-toggle-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 11px 20px;
        border-radius: var(--radius-pill);
        background: var(--dark);
        color: var(--gold-light);
        font-weight: 700;
        font-size: 0.9rem;
    }

    .filters-toggle-btn svg {
        width: 17px;
        height: 17px;
    }

    .filter-group {
        margin-bottom: 14px;
    }

    .auth-layout {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .auth-visual {
        display: none;
    }

    .cart-page-layout {
        grid-template-columns: 1fr;
    }

    .cart-side {
        position: static;
    }

    .pd-layout {
        grid-template-columns: 1fr;
    }

    .pd-gallery {
        position: static;
    }

    .faq-wrap {
        grid-template-columns: 1fr;
    }

    .faq-side {
        position: static;
    }
}

@media (min-width: 1081px) {
    .filters-toggle-btn {
        display: none;
    }
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

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

    .categories-page .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cat-card,
    .cat-card:nth-child(n) {
        grid-column: span 1;
        margin-top: 0;
    }

    .search-results {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .checkout-wrap {
        min-height: 0;
        display: block;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* ---------- Tablet portrait ---------- */
@media (max-width: 768px) {
    .container {
        max-width: 512px;
    }

    .hero {
        padding-top: 29px;
    }

    .hero-visual {
        min-height: 320px;
        max-width: 416px;
    }

    .hero-sub {
        display: none;
    }

    .float-card {
        padding: 8px 11px;
        border-radius: 12px;
        gap: 8px;
    }

    .float-card .fc-icon {
        width: 26px;
        height: 26px;
        border-radius: 8px;
    }

    .float-card .fc-icon svg {
        width: 13px;
        height: 13px;
    }

    .float-card .fc-num {
        font-size: 1.05rem;
    }

    .float-card .fc-label {
        font-size: 0.72rem;
    }

    .hero-trust-avatars span {
        width: 30px;
        height: 30px;
    }
}

/* ---------- Mid narrow (tablet / narrow window) ---------- */
@media (min-width: 641px) and (max-width: 940px) {
    .categories .container,
    .offer-inner {
        padding-inline: clamp(20px, 4vw, 40px);
        padding-right: clamp(20px, 4vw, 40px);
        padding-left: clamp(20px, 4vw, 40px);
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
    .container {
        width: 94%;
    }

    .categories .container,
    .offer-inner {
        padding-inline: 38px;
        padding-right: 38px;
        padding-left: 38px;
    }

    .header-inner {
        height: 54px;
    }

    .header-actions .icon-btn.search-toggle {
        display: none;
    }

    .hero {
        padding-top: 32px;
    }

    .hero-visual {
        min-height: 304px;
    }

    .hero-image-wrap {
        right: 4%;
        left: 0;
    }

    .fc-customers {
        top: 6%;
        left: 0;
    }

    .fc-orders {
        bottom: 8%;
        left: 0;
    }

    .fc-products {
        bottom: 22%;
        right: -8px;
    }

    .fc-rating {
        top: 2%;
        right: -4px;
    }

    .float-card {
        padding: 10px 13px;
        border-radius: 13px;
    }

    .float-card .fc-num {
        font-size: 1.2rem;
    }

    .hero-trust {
        flex-direction: column;
        gap: 10px;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 13px;
    }

    .home-sec-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

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

    .t-card:nth-child(even) {
        margin-top: 0;
    }

    .t-card {
        margin-bottom: 16px;
    }

    .countdown {
        justify-content: center;
    }

    .countdown-unit {
        min-width: 72px;
        padding: 14px 8px;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .about-card {
        padding: 26px 22px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .product-info {
        padding: 16px 16px 18px;
    }

    .product-card {
        border-radius: 18px;
    }

    .product-name {
        font-size: 0.9rem;
    }

    .product-price .now {
        font-size: 1rem;
    }

    .add-cart-btn {
        width: 38px;
        height: 38px;
    }

    .product-badge {
        bottom: 10px;
        left: 10px;
        font-size: 0.68rem;
        padding: 5px 10px;
    }

    .product-wish {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }

    .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .sort-select select {
        width: 100%;
    }

    .shop-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

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

    .cat-card-body {
        padding: 16px;
    }

    .cat-card-body h3 {
        font-size: 0.95rem;
    }

    .cart-table-head {
        display: none;
    }

    .cart-table {
        padding: 8px 16px;
    }

    .cart-table-row {
        grid-template-columns: 1fr 1fr auto;
        padding: 16px 4px;
        position: relative;
    }

    .cart-table-row .ct-price {
        display: none;
    }

    .ct-product img {
        width: 58px;
        height: 64px;
    }

    .ct-subtotal {
        grid-column: 2;
        text-align: left;
    }

    .pd-buy {
        flex-direction: column;
        align-items: stretch;
    }

    .qty-stepper {
        justify-content: center;
    }

    .pd-meta {
        grid-template-columns: 1fr;
    }

    .pd-thumbs {
        flex-wrap: wrap;
    }

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

    .bs-card {
        grid-template-columns: 1fr;
    }

    .bs-visual {
        border-inline-end: none;
        border-bottom: 1px solid rgba(201, 162, 39, 0.14);
    }

    .os-item {
        grid-template-columns: 46px 1fr auto;
    }

    .search-overlay {
        padding: 80px 4% 30px;
    }

    .search-results {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .search-box {
        padding: 6px 18px;
    }

    .search-tags {
        gap: 6px;
    }

    .toast-stack {
        right: 16px;
        left: 16px;
        bottom: 16px;
    }

    .toast {
        max-width: none;
    }

    .cta-inner {
        border-radius: 36px;
        padding: 44px 24px;
    }

    .offer-percent {
        width: 96px;
        height: 96px;
    }

    .offer-percent strong {
        font-size: 1.15rem;
    }
}

/* ---------- Small mobile ---------- */
@media (max-width: 420px) {
    .products-grid,
    .shop-grid,
    .search-results {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin-inline: auto;
    }

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

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

    .categories-page .categories-grid {
        grid-template-columns: 1fr;
    }

    .bs-fields {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .faq-q {
        padding: 18px 14px;
        gap: 14px;
        font-size: 0.98rem;
    }

    .faq-a-inner {
        padding: 0 14px 20px;
    }

    .faq-plus {
        width: 32px;
        height: 32px;
    }

    .faq-flower-1 {
        top: 30px;
        width: 34px;
        height: 34px;
    }

    .faq-flower-2 {
        bottom: 30px;
        width: 40px;
        height: 40px;
    }

    .faq-flower-3 {
        display: none;
    }

    .faq-flower-4 {
        top: 26px;
        inset-inline-start: 5%;
        width: 32px;
        height: 32px;
    }
}

/* ---------- Extra small mobile ---------- */
@media (max-width: 375px) {
    .container {
        width: 94%;
    }

    .hero {
        padding-top: 26px;
    }

    .hero-visual {
        min-height: 272px;
    }

    .hero-title {
        font-size: 1.7rem;
        line-height: 1.3;
    }

    .hero-desc {
        margin: 12px 0 18px;
        font-size: 0.93rem;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .float-card {
        padding: 8px 10px;
        border-radius: 11px;
        gap: 7px;
    }

    .float-card .fc-icon {
        width: 24px;
        height: 24px;
        border-radius: 8px;
    }

    .float-card .fc-icon svg {
        width: 12px;
        height: 12px;
    }

    .float-card .fc-num {
        font-size: 0.98rem;
    }

    .float-card .fc-label {
        font-size: 0.68rem;
    }

    .hero-trust-avatars span {
        width: 28px;
        height: 28px;
        font-size: 0.68rem;
    }
}