/* ============================================
   SHOP / CATEGORY ARCHIVE STYLES
   ============================================ */

/* --- Layout (full-width, no sidebar) --- */
.site-content {
    padding: 30px 0 60px;
}

/* --- Category Title Section --- */
.shop-title-wrap {
    text-align: center;
    margin-bottom: 28px;
}

.shop-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(108, 208, 78, 0.12) 0%, rgba(6, 101, 39, 0.08) 100%);
    color: var(--primary-medium, #0b8a3e);
    margin-bottom: 12px;
}

.shop-title {
    font-size: 22px;
    font-weight: 600;
    color: #242424;
    margin: 0;
    text-align: center;
    letter-spacing: -0.01em;
}

.shop-breadcrumb {
    margin-top: 8px;
}

.shop-breadcrumb .woocommerce-breadcrumb {
    font-size: 11px;
    color: var(--text-light, #aaa);
    margin-bottom: 0;
    text-align: center;
}

.shop-breadcrumb .woocommerce-breadcrumb a {
    color: var(--text-light, #aaa);
}

.shop-title-wrap::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent, #6CD04E), var(--primary-medium, #0b8a3e));
    margin: 14px auto 0;
    border-radius: 2px;
}

/* --- Category Description --- */
.category-description {
    margin-bottom: 20px;
    padding: 16px 20px;
    background: var(--bg-white);
    border-radius: 10px;
    border-left: 3px solid var(--primary-medium);
}

.category-description p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
}

/* --- Shop Header Bar --- */
.shop-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.shop-header-bar .woocommerce-result-count {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
}

.shop-header-bar .woocommerce-ordering select {
    padding: 8px 35px 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font);
    appearance: none;
    background: var(--bg-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235e5e5e' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
    cursor: pointer;
}

/* --- Products Grid --- */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.products::before,
ul.products::after {
    content: none !important;
    display: none !important;
}

ul.products li.product {
    display: flex !important;
    flex-direction: column;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    float: none !important;
    clear: none !important;
    position: relative;
    height: 100%;
}

/* Hide default WC sidebar completely */
.widget-area,
#secondary,
aside.woocommerce-sidebar,
.woocommerce-sidebar {
    display: none !important;
}

/* ============================================
   A3 PRODUCT CARD
   ============================================ */

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 12px;
    overflow: visible;
    border: 1px solid #e5e7eb;
    background: #fff;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(45, 122, 79, 0.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* --- Card Image --- */
.product-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: auto;
    min-height: 320px;
    max-height: 400px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f2f7f3;
    text-decoration: none;
    border-radius: 12px 12px 0 0;
}

.product-card__image img {
    width: auto;
    max-width: 55%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    object-position: center;
    padding: 0;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.04);
}

/* Sale badge */
.product-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, var(--accent, #6CD04E) 0%, #e5a82e 100%);
    color: #1a1a1a;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 5px;
    z-index: 2;
}

/* --- Card Info (meta + title + price) --- */
.product-card__info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Meta row: pills left, stock right */
.product-card__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px 8px;
    gap: 8px;
}

.product-card__origin-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 400;
    color: #2d7a4f;
    background: rgba(45, 122, 79, 0.08);
    border: 0.5px solid rgba(45, 122, 79, 0.2);
    border-radius: 20px;
    padding: 3px 10px;
    line-height: 1.3;
}




.product-card__stock {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 9px;
    font-weight: 600;
    color: var(--primary-medium, #0b8a3e);
    background: rgba(237, 247, 241, 0.92);
    border: 0.5px solid #c5e8d4;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
    z-index: 2;
    line-height: 1.3;
}

.product-card__stock i {
    vertical-align: middle;
}

.product-card__stock--oos {
    color: #c62828;
    background: rgba(255, 235, 238, 0.92);
    border-color: #f5c6cb;
}

/* Title */
.product-card__title-link {
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.product-card__title {
    font-size: 13px;
    font-weight: 500;
    color: #242424;
    line-height: 1.35;
    margin: 0;
    padding: 0 14px;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
    word-break: break-word;
    hyphens: auto;
}

/* Price */
.product-card__price {
    font-size: 24px;
    font-weight: 500;
    color: var(--primary-medium);
    text-align: center;
    padding: 14px 14px 4px;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card__price {
    transform: translateY(-2px);
}

.product-card__price del {
    color: var(--text-light, #999);
    font-size: 15px;
    font-weight: 400;
}

.product-card__price ins {
    text-decoration: none;
}

/* --- Card Footer --- */
.product-card__footer {
    margin-top: auto;
    padding: 12px 14px 14px;
}

.product-card__btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 8px;
    border: 1px solid var(--primary-medium);
    color: var(--primary-medium);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: var(--font, inherit);
    line-height: 1.4;
    box-sizing: border-box;
}

.product-card__btn:hover {
    background: var(--primary-medium);
    color: #ffffff;
}

.product-card__btn.is-loading {
    pointer-events: none;
    opacity: 0.7;
}

.product-card__btn.is-added {
    background: var(--primary-medium);
    color: #ffffff;
    border-color: var(--primary-medium);
}

/* --- Pagination --- */
.woocommerce-pagination {
    margin-top: 40px;
    text-align: center;
}

.woocommerce-pagination ul,
.woocommerce-pagination ul.page-numbers {
    display: inline-flex !important;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    border: 0 !important;
}

.woocommerce-pagination ul li,
.woocommerce-pagination ul.page-numbers li {
    margin: 0;
    border: 0 !important;
}

.woocommerce-pagination .page-numbers {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 8px;
    border-radius: 10px !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: #1a2a1e !important;
    background: #ffffff !important;
    border: 1px solid #e3e8e4 !important;
    transition: all 0.2s ease;
    text-decoration: none;
}

.woocommerce-pagination .page-numbers:hover {
    background: #f4f8f5 !important;
    color: #2d7a4f !important;
    border-color: #2d7a4f !important;
}

.woocommerce-pagination .page-numbers.current {
    background: #2d7a4f !important;
    color: #ffffff !important;
    border-color: #2d7a4f !important;
}

.woocommerce-pagination .page-numbers.dots {
    border-color: transparent !important;
    background: transparent !important;
}

/* --- Breadcrumb --- */
.woocommerce-breadcrumb {
    font-size: 13px;
    color: var(--text-light, #888);
    margin-bottom: 20px;
    padding: 0;
    text-align: center;
}

.woocommerce-breadcrumb a {
    color: var(--text-light, #888);
    text-decoration: none;
    transition: color 0.2s ease;
}

.woocommerce-breadcrumb a:hover {
    color: var(--primary-medium);
}

/* Page title */
.woocommerce-products-header__title {
    font-size: 28px;
    font-weight: 600;
    color: #242424;
    margin-bottom: 5px;
}

/* --- No Products --- */
.woocommerce-info {
    padding: 20px;
    background: var(--bg-white, #fff);
    border-radius: 12px;
    border-left: 4px solid var(--primary-medium, #0b8a3e);
    font-size: 15px;
}

/* --- Shop Responsive --- */
@media (max-width: 768px) {
    ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }

    /* Shop header: column layout */
    .shop-header-bar {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    /* Ordering dropdown: full width */
    .shop-header-bar .woocommerce-ordering select {
        width: 100%;
    }

    .shop-header-bar .woocommerce-ordering {
        width: 100%;
    }

    /* Category title */
    .woocommerce-products-header__title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    /* Card adjustments */
    .product-card__info {
        padding: 0;
    }

    .product-card__meta {
        padding: 8px 12px 6px;
    }

    .product-card__title {
        font-size: 12px;
        min-height: 32px;
        padding: 0 12px 0;
    }

    .product-card__image {
        height: auto;
        min-height: 140px;
        max-height: 200px;
    }

    .product-card__image img {
        max-height: 200px;
    }

    .product-card__price {
        font-size: 16px;
        padding: 10px 12px 4px;
    }

    .product-card__footer {
        padding: 10px 12px 12px;
    }

    .product-card__btn {
        padding: 7px 12px;
        font-size: 11px;
    }
}



@media (max-width: 480px) {
    .product-card__image {
        height: auto;
        min-height: 140px;
        max-height: 200px;
    }

    .product-card__image img {
        max-height: 200px;
    }

    .product-card__price {
        font-size: 16px;
    }
}

/* Hide WooCommerce 'View Cart' link after add-to-cart */
.added_to_cart.wc-forward,
a.added_to_cart {
    display: none !important;
}
