.mc-shop-page {
    background: transparent;
}

.mc-shop-hero {
    position: relative;
    padding: 80px 0 90px;
    background:
        radial-gradient(circle at 15% 15%, rgba(201, 162, 39, 0.18), transparent 45%),
        radial-gradient(circle at 85% 30%, rgba(13, 74, 58, 0.16), transparent 55%),
        linear-gradient(135deg, rgba(247, 251, 255, 0.65) 0%, rgba(238, 244, 251, 0.7) 55%, rgba(247, 242, 232, 0.75) 100%),
        url("../images/bk-magazin.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.mc-shop-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(13, 74, 58, 0.08), transparent 55%);
    pointer-events: none;
}

.mc-shop-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 28px;
    padding: 36px 38px;
    border: 1px solid rgba(13, 74, 58, 0.1);
    box-shadow: 0 26px 60px rgba(13, 74, 58, 0.12);
    backdrop-filter: blur(8px);
}

.mc-shop-title {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    margin: 8px 0 12px;
}

.mc-shop-lead {
    color: var(--mc-slate);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.mc-shop-breadcrumbs .woocommerce-breadcrumb {
    margin-bottom: 10px;
    color: rgba(13, 74, 58, 0.7);
    font-size: 0.9rem;
}

.mc-shop-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.mc-shop-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(13, 74, 58, 0.14);
    color: var(--ob-emerald);
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mc-shop-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(13, 74, 58, 0.16);
    color: var(--ob-emerald);
}

.mc-shop-content {
    padding: 70px 0 100px;
}

.mc-shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding: 14px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(13, 74, 58, 0.08);
    box-shadow: 0 16px 36px rgba(13, 74, 58, 0.12);
}

.mc-shop-toolbar .woocommerce-result-count {
    margin: 0;
    font-weight: 600;
    color: var(--mc-slate);
}

.mc-shop-toolbar .woocommerce-ordering {
    margin: 0;
}

.mc-shop-toolbar .woocommerce-ordering select {
    border-radius: 999px;
    padding: 10px 18px;
    border: 1px solid rgba(13, 74, 58, 0.14);
    background: #fff;
    font-weight: 600;
    color: var(--ob-emerald);
}

.mc-shop-grid ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    justify-content: start;
    align-content: start;
    justify-items: stretch;
    align-items: stretch;
    grid-auto-flow: row;
}

.mc-shop-grid ul.products::before,
.mc-shop-grid ul.products::after {
    content: none !important;
    display: none !important;
}

.mc-shop-grid ul.products li.product {
    float: none !important;
    width: 100% !important;
    max-width: none;
    margin: 0 !important;
    padding: 20px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(13, 74, 58, 0.08);
    box-shadow: 0 22px 50px rgba(13, 74, 58, 0.12);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    align-self: stretch;
    height: 100%;
    justify-self: stretch;
}

.mc-shop-grid ul.products li.product:hover {
    transform: translateY(-8px);
    border-color: rgba(13, 74, 58, 0.18);
    box-shadow: 0 30px 60px rgba(13, 74, 58, 0.16);
}

.mc-shop-grid ul.products li.product a {
    text-decoration: none;
    color: inherit;
}

.mc-shop-grid .mc-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    flex: 1;
}

/* overlay link transparent peste imagine */
.mc-shop-grid .mc-card-image-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
}

/* Card slider (custom gallery in loop) */
.mc-shop-grid .mc-card-slider {
    position: relative;
    border-radius: 20px;
    background: #f5f7f5;
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
}

.mc-shop-grid .mc-card-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f7f5;
}

.mc-shop-grid .mc-card-slide {
    position: absolute;
    inset: 0;
    display: none;
}

.mc-shop-grid .mc-card-slide.is-active {
    display: block;
}

.mc-shop-grid .mc-card-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    padding: 14px !important;
    box-sizing: border-box !important;
    display: block !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.mc-shop-grid .mc-card-controls {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mc-shop-grid ul.products li.product:hover .mc-card-controls {
    opacity: 1;
}

.mc-shop-grid .mc-card-nav {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(13, 74, 58, 0.14);
    color: var(--ob-emerald);
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.mc-shop-grid .mc-card-nav:hover {
    background: var(--ob-emerald);
    color: #fff;
    border-color: var(--ob-emerald);
}

.mc-shop-grid .mc-card-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.mc-shop-grid .mc-card-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(13, 74, 58, 0.25);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mc-shop-grid .mc-card-dot.is-active {
    background: var(--ob-emerald);
    transform: scale(1.35);
}

.mc-shop-grid .mc-card-body .woocommerce-loop-product__title {
    margin-top: 2px;
}

/* fallback: produsele fara slider custom */
.mc-shop-grid ul.products li.product img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    padding: 14px;
    box-sizing: border-box;
    background: #f5f7f5;
    box-shadow: none;
}

.mc-shop-grid ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ob-emerald);
    margin: 2px 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mc-shop-grid ul.products li.product .price {
    color: var(--ob-emerald-mid);
    font-weight: 700;
    margin-bottom: 4px;
}

.mc-shop-grid ul.products li.product .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 11px 18px;
    border-radius: 999px;
    background: #0d4a3a;
    color: #fff;
    border: 1px solid #0d4a3a;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 14px 26px rgba(13, 74, 58, 0.18);
    margin-top: auto;
}

.mc-shop-grid ul.products li.product .button:hover {
    color: #fff;
    background: #0b3f32;
    border-color: #0b3f32;
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(13, 74, 58, 0.22);
}

.mc-shop-grid span.onsale {
    background: linear-gradient(135deg, #c9a227, #e2c15a);
    color: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(201, 162, 39, 0.25);
    top: 16px;
    left: 16px;
    right: auto;
}

@media (max-width: 767px) {
    .mc-shop-content .container {
        max-width: 100%;
        padding-left: 6px;
        padding-right: 6px;
    }

    .mc-shop-grid span.onsale {
        top: 10px;
        left: 10px;
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}

.mc-shop-page nav.woocommerce-pagination ul {
    border: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}

.mc-shop-page nav.woocommerce-pagination ul li {
    border: none;
}

.mc-shop-page nav.woocommerce-pagination ul li a,
.mc-shop-page nav.woocommerce-pagination ul li span {
    border-radius: 999px;
    padding: 10px 16px;
    border: 1px solid var(--mc-border);
    color: var(--ob-emerald);
    background: #fff;
    font-weight: 600;
}

.mc-shop-page nav.woocommerce-pagination ul li span.current {
    background: var(--mc-gradient);
    color: #fff;
    border-color: transparent;
}

@media (max-width: 991px) {
    .mc-shop-grid ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .mc-shop-hero {
        padding: 70px 0 80px;
    }

    .mc-shop-hero-inner {
        padding: 28px 24px;
    }

    .mc-shop-content {
        padding: 60px 0 80px;
    }

    .mc-shop-toolbar {
        align-items: stretch;
    }

    .mc-shop-grid ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .mc-shop-grid ul.products li.product {
        width: 100%;
        max-width: 100% !important;
        min-width: 0;
        padding: 10px 8px 12px;
        border-radius: 16px;
        gap: 8px;
        background: #ffffff;
        box-shadow: 0 12px 24px rgba(13, 74, 58, 0.12);
        box-sizing: border-box;
    }

    .mc-shop-grid ul.products li.product img {
        height: 150px;
        padding: 6px;
        border-radius: 14px;
        background: #f7f9f6;
    }

    .mc-shop-grid ul.products li.product a {
        gap: 8px;
    }

    .mc-shop-grid ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.92rem;
        line-height: 1.3;
        text-align: left;
    }

    .mc-shop-grid ul.products li.product .price {
        font-size: 0.9rem;
    }

    .mc-shop-grid ul.products li.product .button {
        font-size: 0.85rem;
        padding: 9px 10px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .mc-shop-grid ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }
    .mc-shop-content .container {
        padding-left: 4px;
        padding-right: 4px;
    }
    .mc-shop-grid ul.products li.product img {
        aspect-ratio: 1 / 1;
        height: auto;
    }
    .mc-shop-grid ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.88rem;
    }
}

/* ── Shop Filter Bar ───────────────────────────────────────────────────── */
.mc-shop-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid rgba(13, 74, 58, 0.1);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(13, 74, 58, 0.06);
}

/* Search form */
.mc-shop-search-form {
    display: flex;
    align-items: center;
    flex: 1 1 260px;
    min-width: 220px;
    background: #f6f9f7;
    border: 1.5px solid rgba(13, 74, 58, 0.13);
    border-radius: 999px;
    padding: 6px 8px 6px 14px;
    gap: 6px;
    transition: border-color 0.2s;
}

.mc-shop-search-form:focus-within {
    border-color: var(--ob-emerald, #0d4a3a);
}

.mc-shop-search-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    color: #6b8c7a;
}

.mc-shop-search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.92rem;
    color: #1a2e26;
    min-width: 0;
}

.mc-shop-search-input::placeholder {
    color: #9db5aa;
}

.mc-shop-search-btn {
    flex-shrink: 0;
    background: var(--ob-emerald, #0d4a3a);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 6px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.mc-shop-search-btn:hover {
    background: #0a3a2d;
}

/* Filter group (Categorii / Branduri) */
.mc-filter-group {
    position: relative;
}

.mc-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: #f6f9f7;
    border: 1.5px solid rgba(13, 74, 58, 0.13);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ob-emerald, #0d4a3a);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.mc-filter-toggle svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.mc-filter-toggle:hover,
.mc-filter-toggle[aria-expanded="true"] {
    background: var(--ob-emerald, #0d4a3a);
    color: #fff;
    border-color: var(--ob-emerald, #0d4a3a);
}

.mc-filter-active-badge {
    background: var(--ob-gold, #c9a227);
    color: #1a1200;
    border-radius: 999px;
    padding: 1px 9px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-left: 2px;
}

.mc-filter-toggle[aria-expanded="true"] .mc-filter-active-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Dropdown panel */
.mc-filter-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid rgba(13, 74, 58, 0.12);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 6px 0;
    z-index: 500;
}

.mc-filter-dropdown.is-open {
    display: block;
}

.mc-filter-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 16px;
    font-size: 0.9rem;
    color: #2d3a34;
    text-decoration: none;
    transition: background 0.15s;
    gap: 8px;
}

.mc-filter-option:hover {
    background: rgba(13, 74, 58, 0.06);
    color: var(--ob-emerald, #0d4a3a);
}

.mc-filter-option.is-active {
    color: var(--ob-emerald, #0d4a3a);
    font-weight: 700;
    background: rgba(13, 74, 58, 0.06);
}

.mc-filter-count {
    font-size: 0.78rem;
    color: #9db5aa;
    background: #f0f5f2;
    border-radius: 999px;
    padding: 1px 7px;
    flex-shrink: 0;
}

/* Mobile */
@media (max-width: 767px) {
    .mc-shop-filters {
        padding: 12px;
        gap: 8px;
    }

    .mc-shop-search-form {
        flex: 1 1 100%;
    }

    .mc-filter-dropdown {
        left: auto;
        right: 0;
        min-width: 200px;
    }
}
