/* =========================================
   FM Collections Shop Page
========================================= */

.shop-page,
.shop-promo-section {
    width: 100%;
    background: #f5f7f6;
}

.shop-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* =========================================
   ROMAN Premium Promotion Banner
========================================= */

.shop-promo-section {
    padding: 30px 0 18px;
}

.shop-promo-banner {
    position: relative;
    width: 100%;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(196, 151, 64, 0.28);
    border-radius: 28px;
    background: #101712;
    box-shadow:
        0 24px 58px rgba(17, 24, 18, 0.17),
        0 8px 22px rgba(181, 135, 51, 0.09);
    isolation: isolate;
}

.shop-promo-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1600 / 520;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.shop-promo-banner:hover .shop-promo-image {
    transform: scale(1.012);
}

.shop-promo-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            rgba(6, 11, 8, 0.07),
            transparent 45%,
            rgba(6, 11, 8, 0.04)
        );
}

.shop-promo-mobile-content {
    display: none;
}

/* =========================================
   Shop Main Area
========================================= */

.shop-page {
    min-height: 75vh;
    padding: 28px 0 64px;
    scroll-margin-top: 90px;
}

/* =========================================
   Shop Introduction
========================================= */

.shop-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 24px;
    padding: 30px 34px;
    border: 1px solid rgba(31, 41, 55, 0.06);
    border-radius: 24px;
    background:
        radial-gradient(
            circle at 92% 15%,
            rgba(46, 125, 50, 0.08),
            transparent 28%
        ),
        #ffffff;
    box-shadow: 0 14px 38px rgba(31, 41, 55, 0.065);
}

.shop-intro-content {
    max-width: 760px;
}

.shop-intro-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    color: #2e7d32;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.shop-intro h1 {
    margin: 0 0 10px;
    color: #1f2937;
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 850;
    line-height: 1.14;
    letter-spacing: -0.8px;
}

.shop-intro p {
    max-width: 680px;
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.shop-intro-summary {
    flex: 0 0 auto;
}

.shop-intro-summary > span {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid rgba(46, 125, 50, 0.14);
    border-radius: 999px;
    background: #eef7ef;
    color: #52705a;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.shop-intro-summary i,
.shop-intro-summary strong {
    color: #2e7d32;
}

.shop-intro-summary strong {
    font-size: 14px;
    font-weight: 850;
}

/* =========================================
   Shop Filter Section
========================================= */

.shop-filter-section {
    margin-bottom: 20px;
    padding: 17px;
    border: 1px solid rgba(31, 41, 55, 0.06);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 13px 34px rgba(31, 41, 55, 0.055);
}

.shop-filter-form {
    display: grid;
    grid-template-columns:
        minmax(260px, 1.55fr)
        minmax(190px, 0.8fr)
        minmax(190px, 0.8fr)
        auto
        auto;
    align-items: center;
    gap: 11px;
}

.shop-filter-field {
    position: relative;
    min-width: 0;
    height: 48px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #d8e1da;
    border-radius: 13px;
    background: #fbfcfb;
    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.shop-filter-field:focus-within {
    border-color: rgba(46, 125, 50, 0.55);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.07);
}

.shop-filter-field > i {
    width: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 43px;
    color: #2e7d32;
    font-size: 13px;
}

.shop-filter-field input,
.shop-filter-field select {
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0 35px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #263142;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
}

.shop-filter-field input::placeholder {
    color: #8d99a6;
    opacity: 1;
}

.shop-filter-field select {
    cursor: pointer;
}

.shop-filter-button {
    min-width: 135px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    border: 1px solid #2e7d32;
    border-radius: 13px;
    background: linear-gradient(135deg, #2e7d32, #388e3c);
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 9px 21px rgba(46, 125, 50, 0.16);
    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.shop-filter-button:hover {
    background: linear-gradient(135deg, #256b29, #2e7d32);
    transform: translateY(-1px);
    box-shadow: 0 13px 26px rgba(46, 125, 50, 0.22);
}

.shop-filter-reset {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 9px;
    color: #2e7d32;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    text-decoration: none;
}

.shop-filter-reset:hover {
    color: #205e25;
}

/* =========================================
   Active Filters
========================================= */

.shop-active-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.shop-active-filter-label {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.shop-active-filter {
    min-height: 29px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid rgba(46, 125, 50, 0.13);
    border-radius: 999px;
    background: #eaf5eb;
    color: #2e7d32;
    font-size: 9px;
    font-weight: 800;
}

/* =========================================
   Product Grid
========================================= */

.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

/* =========================================
   Product Card
========================================= */

.shop-product-card {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(31, 41, 55, 0.075);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(31, 41, 55, 0.06);
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.shop-product-card:hover {
    border-color: rgba(46, 125, 50, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(31, 41, 55, 0.11);
}

/* =========================================
   Product Media
========================================= */

.shop-product-media {
    position: relative;
    flex: 0 0 190px;
    height: 190px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 72% 18%,
            rgba(255, 255, 255, 0.9),
            transparent 30%
        ),
        linear-gradient(145deg, #edf6ee, #fafcfa);
}

.shop-product-image-link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.shop-product-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transition: transform 0.45s ease;
}

.shop-product-card:hover .shop-product-image {
    transform: scale(1.05);
}

.shop-product-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2e7d32;
    font-size: 48px;
}

.shop-product-badge,
.shop-product-discount {
    position: absolute;
    left: 11px;
    min-height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 7px;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.shop-product-badge {
    top: 11px;
    gap: 5px;
    background: rgba(255, 255, 255, 0.95);
    color: #2e7d32;
    box-shadow: 0 7px 18px rgba(31, 41, 55, 0.09);
}

.shop-product-badge i {
    color: #f59e0b;
}

.shop-product-discount {
    bottom: 11px;
    background: #dc2626;
    color: #ffffff;
}

.shop-product-wishlist-form {
    position: absolute;
    top: 11px;
    right: 11px;
    margin: 0;
}

.shop-product-wishlist {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(46, 125, 50, 0.13);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #2e7d32;
    font-size: 12px;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(31, 41, 55, 0.09);
    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.shop-product-wishlist:hover {
    background: #2e7d32;
    color: #ffffff;
    transform: scale(1.06);
}

/* =========================================
   Product Content
========================================= */

.shop-product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 14px;
}

.shop-product-category {
    min-height: 13px;
    display: inline-block;
    margin-bottom: 5px;
    color: #2e7d32;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.shop-product-content h2 {
    min-height: 42px;
    max-height: 42px;
    display: -webkit-box;
    margin: 0 0 7px;
    overflow: hidden;
    color: #1f2937;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.shop-product-content h2 a {
    color: inherit;
    text-decoration: none;
}

.shop-product-content h2 a:hover {
    color: #2e7d32;
}

.shop-product-description {
    min-height: 32px;
    max-height: 32px;
    display: -webkit-box;
    margin: 0 0 10px;
    overflow: hidden;
    color: #64748b;
    font-size: 10px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* =========================================
   Price and Stock
========================================= */

.shop-product-price-row {
    min-height: 42px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 10px;
}

.shop-product-price {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shop-product-price strong {
    color: #2e7d32;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.25;
    white-space: nowrap;
}

.shop-product-price del {
    color: #94a3b8;
    font-size: 8px;
    white-space: nowrap;
}

.shop-product-stock {
    min-height: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 0 7px;
    border-radius: 999px;
    background: #eaf5eb;
    color: #2e7d32;
    font-size: 7px;
    font-weight: 850;
    white-space: nowrap;
}

.shop-product-stock--out {
    background: #fef2f2;
    color: #dc2626;
}

/* =========================================
   Product Actions
========================================= */

.shop-product-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    gap: 7px;
}

.shop-product-view,
.shop-product-whatsapp {
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.shop-product-view {
    padding: 0 13px;
    border: 1px solid #2e7d32;
    background: #2e7d32;
    color: #ffffff;
}

.shop-product-view:hover {
    background: #256b29;
    color: #ffffff;
    transform: translateY(-1px);
}

.shop-product-whatsapp {
    width: 38px;
    border: 1px solid rgba(37, 211, 102, 0.28);
    background: #ebf9f0;
    color: #15803d;
    font-size: 15px;
}

.shop-product-whatsapp:hover {
    border-color: #25d366;
    background: #25d366;
    color: #ffffff;
    transform: translateY(-1px);
}

/* =========================================
   Empty State
========================================= */

.shop-empty-state {
    max-width: 620px;
    margin: 24px auto 0;
    padding: 52px 28px;
    border: 1px dashed rgba(46, 125, 50, 0.28);
    border-radius: 24px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 13px 34px rgba(31, 41, 55, 0.05);
}

.shop-empty-icon {
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 17px;
    border-radius: 50%;
    background: #eaf5eb;
    color: #2e7d32;
    font-size: 27px;
}

.shop-empty-state h2 {
    margin: 0 0 9px;
    color: #1f2937;
    font-size: 21px;
    font-weight: 850;
}

.shop-empty-state p {
    max-width: 440px;
    margin: 0 auto 21px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
}

.shop-empty-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 18px;
    border-radius: 999px;
    background: #2e7d32;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.shop-empty-button:hover {
    background: #256b29;
    color: #ffffff;
}

/* =========================================
   Pagination
========================================= */

.shop-pagination {
    margin-top: 34px;
}

.shop-pagination nav > div:first-child {
    margin-bottom: 12px;
}

.shop-pagination svg {
    width: 18px;
    height: 18px;
}

/* =========================================
   Accessibility
========================================= */

.shop-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =========================================
   Shop Tablet
========================================= */

@media (max-width: 992px) {
    .shop-container {
        padding: 0 24px;
    }

    .shop-promo-section {
        padding-top: 24px;
    }

    .shop-promo-banner {
        border-radius: 23px;
    }

    .shop-promo-image {
        aspect-ratio: 16 / 6;
    }

    .shop-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-filter-search {
        grid-column: 1 / -1;
    }

    .shop-filter-button {
        width: 100%;
    }

    .shop-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-product-media {
        flex-basis: 210px;
        height: 210px;
    }
}

/* =========================================
   Shop Mobile
========================================= */

@media (max-width: 576px) {
    .shop-container {
        padding: 0 14px;
    }

    .shop-promo-section {
        padding: 16px 0 10px;
    }

    .shop-promo-banner {
        min-height: 245px;
        border-radius: 19px;
    }

    .shop-promo-image {
        width: 100%;
        height: 245px;
        aspect-ratio: auto;
        object-fit: cover;
        object-position: 67% center;
    }

    .shop-promo-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(6, 11, 8, 0.94) 0%,
                rgba(6, 11, 8, 0.77) 42%,
                rgba(6, 11, 8, 0.12) 77%,
                transparent 100%
            );
    }

    .shop-promo-mobile-content {
        position: absolute;
        inset: 0;
        z-index: 2;
        width: 59%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 22px 0 22px 19px;
    }

    .shop-promo-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        margin-bottom: 9px;
        color: #e5c374;
        font-size: 7px;
        font-weight: 850;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .shop-promo-brand {
        margin-bottom: 7px;
        color: #e6c36f;
        font-size: 1.9rem;
        font-weight: 850;
        line-height: 1;
        letter-spacing: 0.05em;
    }

    .shop-promo-mobile-content p {
        max-width: 145px;
        margin: 0 0 15px;
        color: rgba(255, 255, 255, 0.88);
        font-size: 10px;
        line-height: 1.5;
    }

    .shop-promo-button {
        min-height: 34px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 0 13px;
        border: 1px solid rgba(226, 187, 105, 0.58);
        border-radius: 999px;
        background: #174c2c;
        color: #ffffff;
        font-size: 9px;
        font-weight: 850;
    }

    .shop-page {
        padding: 22px 0 46px;
    }

    .shop-intro {
        display: block;
        margin-bottom: 17px;
        padding: 23px 20px;
        border-radius: 19px;
    }

    .shop-intro h1 {
        font-size: 1.85rem;
    }

    .shop-intro p {
        font-size: 12px;
        line-height: 1.65;
    }

    .shop-intro-summary {
        margin-top: 16px;
    }

    .shop-intro-summary > span {
        min-height: 40px;
        padding: 0 13px;
        font-size: 9px;
    }

    .shop-filter-section {
        padding: 13px;
        border-radius: 18px;
    }

    .shop-filter-form {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .shop-filter-search {
        grid-column: auto;
    }

    .shop-filter-field,
    .shop-filter-button {
        height: 45px;
    }

    .shop-filter-reset {
        min-height: 38px;
    }

    .shop-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .shop-product-card {
        border-radius: 16px;
    }

    .shop-product-media {
        flex-basis: 135px;
        height: 135px;
    }

    .shop-product-image-link {
        padding: 10px;
    }

    .shop-product-badge {
        top: 7px;
        left: 7px;
        min-height: 20px;
        padding: 0 6px;
        font-size: 5px;
    }

    .shop-product-discount {
        left: 7px;
        bottom: 7px;
        min-height: 20px;
        padding: 0 6px;
        font-size: 6px;
    }

    .shop-product-wishlist-form {
        top: 7px;
        right: 7px;
    }

    .shop-product-wishlist {
        width: 27px;
        height: 27px;
        font-size: 9px;
    }

    .shop-product-content {
        padding: 10px 9px;
    }

    .shop-product-category {
        min-height: 11px;
        margin-bottom: 4px;
        font-size: 6px;
    }

    .shop-product-content h2 {
        min-height: 36px;
        max-height: 36px;
        margin-bottom: 6px;
        font-size: 11px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }

    .shop-product-description {
        min-height: 24px;
        max-height: 24px;
        margin-bottom: 8px;
        font-size: 7px;
        line-height: 1.45;
        -webkit-line-clamp: 2;
    }

    .shop-product-price-row {
        min-height: 39px;
        display: block;
        margin-bottom: 8px;
    }

    .shop-product-price strong {
        font-size: 12px;
    }

    .shop-product-price del {
        font-size: 6px;
    }

    .shop-product-stock {
        min-height: 17px;
        margin-top: 4px;
        padding: 0 5px;
        font-size: 5px;
    }

    .shop-product-actions {
        grid-template-columns: minmax(0, 1fr) 34px;
        gap: 5px;
    }

    .shop-product-view,
    .shop-product-whatsapp {
        height: 34px;
        font-size: 8px;
    }

    .shop-product-whatsapp {
        width: 34px;
        font-size: 13px;
    }

    .shop-empty-state {
        padding: 40px 20px;
        border-radius: 19px;
    }
}

/* =========================================
   Shop Small Mobile
========================================= */

@media (max-width: 370px) {
    .shop-products-grid {
        grid-template-columns: 1fr;
    }

    .shop-product-media {
        flex-basis: 190px;
        height: 190px;
    }

    .shop-product-content h2 {
        min-height: 38px;
        max-height: 38px;
        -webkit-line-clamp: 2;
    }
}

/* =========================================
   Reduced Motion
========================================= */

@media (prefers-reduced-motion: reduce) {
    .shop-promo-image,
    .shop-product-card,
    .shop-product-image,
    .shop-product-wishlist,
    .shop-product-view,
    .shop-product-whatsapp,
    .shop-filter-button {
        transition: none;
    }
}