/* ============================================================
   Category Grid — category-grid.css
   Add to: wp-content/themes/YOUR-ASTRA-CHILD/category-carousel/
   Then enqueue it (see instructions), OR paste into
   Astra > Custom CSS
   ============================================================ */

/* ── Full-width layout, no sidebar ── */
.sot-cat-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px 80px;
    box-sizing: border-box;
}

/* ── Category header ── */
.sot-cat-header {
    margin-bottom: 32px;
}
.sot-cat-title {
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 700;
    color: #111;
    margin: 0 0 10px;
}
.sot-cat-desc {
    font-size: 15px;
    color: #666;
    max-width: 680px;
    line-height: 1.6;
    margin: 0;
}

/* ── Result count ── */
.sot-result-count {
    font-size: 13px;
    color: #888;
    margin-bottom: 24px;
}

/* ── 4-column grid ── */
.sot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ── Product card ── */
.sot-product-card {
    background: #f0efed;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.sot-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.10);
}

.sot-product-link {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
}

/* ── Product image ── */
.sot-product-image {
    width: 100%;
    aspect-ratio: 3 / 4;   /* tall portrait ratio like Stronger */
    overflow: hidden;
    background: #e8e8e5;
}
.sot-product-image img.sot-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.35s ease;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}
.sot-product-card:hover .sot-img {
    transform: scale(1.04);
}
.sot-no-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #ddddd9;
}

/* ── Product info strip ── */
.sot-product-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 14px 16px;
    gap: 8px;
}
.sot-product-left {
    flex: 1;
    min-width: 0;
}
.sot-product-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
    margin-bottom: 3px;
}
.sot-product-sub {
    display: block;
    font-size: 12px;
    color: #888;
    line-height: 1.3;
}
.sot-product-right {
    flex-shrink: 0;
    text-align: right;
}
.sot-product-price {
    font-size: 14px;
    font-weight: 500;
    color: #111;
    white-space: nowrap;
}
.sot-product-price .woocommerce-Price-amount { font-weight: 500; }
.sot-product-price del { color: #aaa; font-size: 12px; display: block; }
.sot-product-price ins { text-decoration: none; }

/* ── Hide WooCommerce star ratings ── */
.sot-product-card .star-rating,
.sot-product-card .woocommerce-product-rating {
    display: none !important;
}

/* ── Pagination ── */
.sot-pagination {
    margin-top: 48px;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.sot-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 14px;
    color: #111;
    text-decoration: none;
    border: 1px solid #ddd;
    transition: background 0.18s, border-color 0.18s;
}
.sot-pagination .page-numbers.current,
.sot-pagination .page-numbers:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.sot-no-products {
    font-size: 15px;
    color: #888;
    padding: 40px 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .sot-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
    .sot-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .sot-cat-wrap { padding: 24px 16px 60px; }
}

/* ── Force full width — remove Astra sidebar ── */
.tax-product_cat .ast-container,
.tax-product_cat #content,
.tax-product_cat #primary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
.tax-product_cat #secondary,
.tax-product_cat .widget-area {
    display: none !important;
}