/* Theme 3 — category / shop product list (from shop.php mockup) */
.t3-shop-page {
    padding: 24px 0 48px;
    background: #f7f8f6;
}

.t3-shop-page__breadcrumbs {
    font-size: 13px;
    margin-bottom: 12px;
    color: #666;
}

.t3-shop-page__breadcrumbs a {
    color: #458500;
    text-decoration: none;
}

.t3-shop-page__breadcrumbs a:hover {
    text-decoration: underline;
}

.t3-shop-page__breadcrumbs .last {
    color: #333;
}

.t3-shop-page__title {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    margin: 0 0 16px;
    color: #181b1f;
}

.t3-shop-page__subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.t3-shop-page__subnav a {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 999px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    background: #fff;
    transition: border-color 0.2s, color 0.2s;
}

.t3-shop-page__subnav a:hover,
.t3-shop-page__subnav a.is-active {
    border-color: #458500;
    color: #458500;
}

.t3-shop-page__count {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.t3-shop-page__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: stretch;
}

/* Override global iHerb .product { display: inline-block; padding: 0 8px } */
.t3-shop-page__grid > .product.t3-list-product {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    float: none;
    vertical-align: initial;
}

.t3-shop-page__grid > .product.t3-list-product .product-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ececec;
}

.t3-shop-page__grid > .product.t3-list-product .absolute-link-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.t3-shop-page__grid > .product.t3-list-product .product-image-wrapper {
    position: relative;
    flex-shrink: 0;
}

.t3-shop-page__grid > .product.t3-list-product .product-image {
    display: block;
    min-height: 120px;
    margin: 0 0 8px;
    text-align: center;
}

.t3-shop-page__grid > .product.t3-list-product .product-image img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

/* List view: button below image, always visible (not hover overlay) */
.t3-shop-page__grid > .product.t3-list-product .add-to-cart-wrapper {
    position: static;
    display: block;
    width: 100%;
    margin: 0 0 8px;
}

.t3-shop-page__grid > .product.t3-list-product .add-to-cart-wrapper .btn-add-to-cart {
    opacity: 1;
    width: 100%;
    font-size: 14px;
    padding: 8px 12px;
    background: #458500;
    border-color: #458500;
    border-radius: 8px;
    font-weight: 600;
}

.t3-shop-page__grid > .product.t3-list-product .add-to-cart-wrapper .btn-add-to-cart:hover {
    background-color: #3a7000;
    border-color: #3a7000;
}

.t3-shop-page__grid > .product.t3-list-product .product-title {
    flex: 1;
    min-height: 38px;
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
}

.t3-shop-page__grid > .product.t3-list-product .product-title-link {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.t3-shop-page__grid > .product.t3-list-product .rating {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 24px;
    margin-top: 4px;
    flex-shrink: 0;
}

.t3-shop-page__grid > .product.t3-list-product .stars-rating-v2 {
    width: 16px;
    height: 16px;
}

.t3-shop-page__grid > .product.t3-list-product .stars-rating-v2.full path {
    fill: #fecc2f;
}

.t3-shop-page__grid > .product.t3-list-product .stars-rating-v2:not(.full) path {
    fill: #e0e0e0;
}

.t3-shop-page__grid > .product.t3-list-product .product-price-link {
    margin-top: auto;
    padding-top: 8px;
    flex-shrink: 0;
}

.t3-shop-page__grid > .product.t3-list-product .product-price {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: baseline;
    margin: 0;
}

.t3-shop-page__grid > .product.t3-list-product .product-price .price {
    font-weight: 700;
    font-size: 14px;
    color: #333;
}

.t3-shop-page__grid > .product.t3-list-product .product-price .price.discount-red {
    color: #c8232c;
}

.t3-shop-page__grid > .product.t3-list-product .product-price .price-olp {
    color: #888;
    text-decoration: line-through;
    font-size: 12px;
}

@media (min-width: 768px) {
    .t3-shop-page__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .t3-shop-page__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) {
    .t3-shop-page__grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.t3-shop-page__loading {
    text-align: center;
    padding: 24px 16px;
    color: #666;
    font-size: 14px;
}

.t3-shop-page__empty {
    text-align: center;
    padding: 48px 16px;
    color: #888;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #ececec;
}
