/* Products listing — clean catalog layout */

.wc-shop-page #page-content {
    background: #ffffff;
}

.wc-shop-page .page-header {
    padding: 28px 0 8px;
    border-bottom: none;
}

.wc-shop-page .page-header .page-title h1 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #111;
    letter-spacing: -0.01em;
    margin: 0;
}

.wc-shop-page .page-header .breadcrumbs {
    font-size: 0.82rem;
    color: #999;
}

.wc-shop-layout {
    --wc-shop-sidebar: 260px;
    margin-top: 12px;
    margin-bottom: 48px;
}

/* Sidebar filters */
.wc-shop-sidebar {
    flex: 0 0 var(--wc-shop-sidebar);
    max-width: var(--wc-shop-sidebar);
}

.wc-shop-filter-panel {
    padding-right: 28px;
}

.wc-shop-filter-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #eceff3;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #1f2937;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.wc-shop-filter-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(201, 162, 39, 0.28);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.wc-shop-filter-toggle__main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.wc-shop-filter-toggle__main i {
    color: #c9a227;
}

.wc-shop-filter-toggle__badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(201, 162, 39, 0.12);
    color: #7a5c0f;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wc-shop-filter-toggle__chevron {
    color: #9ca3af;
    transition: transform 0.25s ease, color 0.15s ease;
}

.wc-shop-filter-toggle:hover .wc-shop-filter-toggle__chevron {
    color: #6b7280;
}

.wc-shop-filter-panel.is-open .wc-shop-filter-toggle__chevron {
    transform: rotate(180deg);
}

.wc-shop-filter-body {
    overflow: hidden;
}

.wc-shop-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    font-size: 0.95rem;
    color: #111;
}

.wc-shop-filter-head strong {
    font-weight: 600;
}

.wc-shop-filter-clear {
    font-size: 0.88rem;
    color: #666;
    text-decoration: none;
}

.wc-shop-filter-clear:hover {
    color: #111;
    text-decoration: underline;
}

.wc-shop-filter-block {
    margin-bottom: 28px;
}

.wc-shop-filter-label {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111;
}

.wc-shop-search-input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #333;
    background: #fff;
    transition: border-color 0.2s ease;
}

.wc-shop-search-input::placeholder {
    color: #aaa;
}

.wc-shop-search-input:focus {
    outline: none;
    border-color: #999;
}

.wc-shop-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wc-shop-cat-list li {
    margin: 0 0 10px;
}

.wc-shop-cat-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #444;
    font-size: 0.92rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.wc-shop-cat-list a:hover {
    color: #111;
}

.wc-shop-cat-check {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
    border-radius: 2px;
    background: #fff;
    position: relative;
}

.wc-shop-cat-list li.is-active .wc-shop-cat-check {
    border-color: #333;
    background: #333;
}

.wc-shop-cat-list li.is-active .wc-shop-cat-check::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.wc-shop-cat-list li.is-active a {
    color: #111;
    font-weight: 500;
}

.wc-shop-weight-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.wc-shop-weight-row input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.88rem;
}

.wc-shop-weight-row input:focus {
    outline: none;
    border-color: #999;
}

.wc-shop-filter-submit {
    width: 100%;
    height: 42px;
    border: 1px solid #111;
    border-radius: 4px;
    background: #111;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.wc-shop-filter-submit:hover {
    background: #333;
    border-color: #333;
}

/* Main content */
.wc-shop-main {
    flex: 1;
    min-width: 0;
}

.wc-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.wc-shop-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: #444;
}

.wc-shop-sort select {
    min-width: 140px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.88rem;
    color: #333;
    background: #fff;
}

.wc-shop-view {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wc-shop-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #888;
    text-decoration: none;
    background: #fff;
    padding: 0;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.wc-shop-view-btn:hover {
    border-color: #999;
    color: #333;
}

.wc-shop-view-btn.is-active {
    border-color: #111;
    color: #111;
}

.wc-shop-count {
    font-size: 0.88rem;
    color: #888;
}

/* Product grid — 3 columns on desktop */
.wc-shop-page .wc-product-gallery-section {
    padding: 0;
    background: transparent;
}

/* Square image slot on shop grid — including No Image placeholder */
.wc-shop-page .wc-product-gallery-section .wc-gallery-card__image {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
    overflow: hidden;
    background: #f3f4f6;
}

.wc-shop-page .wc-product-gallery-section .wc-gallery-card__image::before {
    content: '';
    display: block;
    width: 100%;
    padding-top: 100%;
}

.wc-shop-page .wc-product-gallery-section .wc-gallery-card__image img,
.wc-shop-page .wc-product-gallery-section .wc-gallery-card__image .wc-media-image,
.wc-shop-page .wc-product-gallery-section .wc-gallery-card__image .wc-no-image-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
}

.wc-shop-page .wc-product-gallery-section .wc-gallery-card__image .wc-no-image-placeholder.is-visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wc-shop-page .wc-product-grid--gallery {
    --bs-gutter-x: 20px;
    --bs-gutter-y: 24px;
}

/* Gallery card text — centered stack (reference layout) */
.wc-shop-page .wc-product-gallery-section .wc-gallery-card__content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 4px !important;
    width: 100%;
    padding: 0 4px 8px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.wc-shop-page .wc-product-gallery-section .wc-gallery-card__title,
.wc-shop-page .wc-product-gallery-section h3.wc-gallery-card__title {
    margin: 0 !important;
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    color: #111827 !important;
    width: 100%;
}

.wc-shop-page .wc-product-gallery-section .wc-gallery-card__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    margin: 0;
}

.wc-shop-page .wc-product-gallery-section .wc-gallery-card__meta-line {
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    color: #64748b !important;
    text-align: center !important;
}

.wc-shop-page .wc-product-gallery-section .wc-gallery-card__price {
    margin: 2px 0 0 !important;
    font-family: "Inter", sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: #111827 !important;
    text-align: center !important;
}

.wc-shop-page .wc-product-gallery-section .wc-gallery-card__content p:not(.wc-gallery-card__price):not(.wc-gallery-card__soldout) {
    margin-bottom: 0 !important;
}

.wc-shop-page .wc-product-gallery-section .wc-gallery-card__actions {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 14px !important;
}

.wc-shop-page .wc-product-gallery-section .wc-gallery-card button.wc-gallery-card__btn,
.wc-shop-page .wc-product-gallery-section .wc-gallery-card a.wc-gallery-card__btn,
.wc-shop-page .wc-product-gallery-section .wc-gallery-card span.wc-gallery-card__btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
    width: 100% !important;
    min-height: 42px !important;
    padding: 10px 12px !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: none !important;
    font-family: "Plus Jakarta Sans", sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.78rem !important;
    color: #111827 !important;
}

.wc-shop-page .wc-product-gallery-section .wc-gallery-card a.wc-gallery-card__btn--view {
    width: auto !important;
    min-width: 42px !important;
    padding: 10px !important;
}

.wc-shop-page .wc-product-gallery-section .wc-gallery-card__actions--view-only a.wc-gallery-card__btn--view {
    width: 100% !important;
}

.wc-shop-page .wc-product-gallery-section .wc-gallery-card__btn--cart:hover,
.wc-shop-page .wc-product-gallery-section .wc-gallery-card__btn--view:hover {
    background: #111827 !important;
    color: #fff !important;
    border-color: #111827 !important;
    transform: translateY(-1px);
    box-shadow: none !important;
}

/* List view layout */
.wc-product-grid--gallery.wc-view-list {
    --bs-gutter-y: 20px;
}

.wc-product-grid--gallery.wc-view-list > .col-item {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

.wc-product-grid--gallery.wc-view-list .wc-gallery-card {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    text-align: left;
    transform: none;
}

.wc-product-grid--gallery.wc-view-list .wc-gallery-card:hover {
    transform: none;
}

.wc-product-grid--gallery.wc-view-list .wc-gallery-card__image {
    flex: 0 0 160px;
    width: 160px;
    max-width: 160px;
    margin: 0;
    aspect-ratio: 1 / 1;
    height: auto;
}

.wc-product-grid--gallery.wc-view-list .wc-gallery-card__body {
    flex: 1;
    text-align: left;
    padding: 0;
}

.wc-product-grid--gallery.wc-view-list .wc-gallery-card__specs,
.wc-product-grid--gallery.wc-view-list .wc-gallery-card__spec {
    text-align: left;
}

.wc-product-grid--gallery.wc-view-list .wc-gallery-card__actions {
    justify-content: flex-start;
}

.wc-product-grid--gallery.wc-view-list .wc-gallery-card__btn--cart {
    flex: 0 1 auto;
    max-width: none;
    min-width: 110px;
}

.wc-product-grid--gallery.wc-view-list .wc-gallery-card__btn--detail {
    flex: 0 0 30px;
    min-width: 30px;
    max-width: 30px;
}

.wc-gallery-card__soldout {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #111;
}

.wc-gallery-card--sold-out .wc-gallery-card__price {
    color: #bbb;
    text-decoration: line-through;
    font-weight: 500;
}

/* Minimal pagination */
.wc-shop-page .pagination-bottom {
    margin-top: 40px;
}

.wc-shop-page .pagination {
    margin: 0;
    gap: 6px;
}

.wc-shop-page .pagination li a,
.wc-shop-page .pagination li span {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #fff;
    color: #444;
    font-weight: 500;
    font-size: 0.88rem;
}

.wc-shop-page .pagination li a:hover:not(.disabled) {
    background: #f5f5f5;
    color: #111;
    border-color: #ccc;
    transform: none;
    box-shadow: none;
}

.wc-shop-page .pagination li.active a,
.wc-shop-page .pagination li.active span {
    background: #111;
    color: #fff;
    border-color: #111;
    box-shadow: none;
}

.wc-shop-page .pagination li.disabled a,
.wc-shop-page .pagination li.disabled span {
    opacity: 0.45;
}

.wc-shop-empty {
    text-align: center;
    padding: 48px 20px;
    color: #888;
    font-size: 0.95rem;
}

@media (max-width: 991px) {
    .wc-shop-layout {
        flex-direction: column;
    }

    .wc-shop-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .wc-shop-filter-panel {
        padding-right: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    .wc-shop-filter-toggle {
        display: flex;
    }

    .wc-shop-filter-body {
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.35s ease, opacity 0.25s ease, visibility 0.25s ease;
    }

    .wc-shop-filter-panel.is-open .wc-shop-filter-body {
        max-height: 2400px;
        opacity: 1;
        visibility: visible;
        padding-top: 18px;
        border-top: 1px solid #eee;
        margin-top: 14px;
    }

    .wc-shop-filter-panel.is-open {
        padding-bottom: 20px;
        border-bottom: 1px solid #eee;
    }

    .wc-shop-toolbar {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .wc-shop-page .wc-product-grid--gallery {
        --bs-gutter-x: 16px;
        --bs-gutter-y: 28px;
    }

    .wc-product-grid--gallery.wc-view-list .wc-gallery-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .wc-product-grid--gallery.wc-view-list .wc-gallery-card__image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .wc-product-grid--gallery.wc-view-list .wc-gallery-card__body {
        width: 100%;
        text-align: center;
    }

    .wc-shop-weight-row {
        grid-template-columns: 1fr;
    }
}
