/* ============================================================
   MAIN CONTENT AREA — WooCommerce listing
   ============================================================ */

#content.site-content {
    background: var(--bg);
    padding: 48px 0 88px;
}

#content .col-full {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    box-sizing: border-box;
}

#primary.content-area {
    flex: 1 1 auto;
    min-width: 0;
}

#secondary.widget-area {
    flex: 0 0 280px;
    width: 280px;
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

/* ---------- Page header (empty but reserve space) ---------- */
.woocommerce-products-header {
    margin-bottom: 0;
}

/* ============================================================
   SORTING BAR
   ============================================================ */
.shopic-sorting {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 20px;
    margin-bottom: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.shopic-sorting .filter-toggle,
.shopic-sorting .filter-toggle-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.25s ease, color 0.25s ease;
}

.shopic-sorting .filter-toggle:hover,
.shopic-sorting .filter-toggle-dropdown:hover {
    background: var(--primary);
    color: #ffffff;
}

/* Grid / list view toggle */
.gridlist-toggle {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
}

.gridlist-toggle a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    color: var(--light);
    font-size: 0.9rem;
    transition: background 0.25s ease, color 0.25s ease;
}

.gridlist-toggle a:hover {
    color: var(--primary);
}

.gridlist-toggle a.active {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 1px 4px rgba(60, 40, 20, 0.10);
}

/* Sort dropdown */
.woocommerce-ordering {
    margin-left: auto;
}

.woocommerce-ordering select.orderby {
    padding: 10px 36px 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: #ffffff;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--text) 50%),
        linear-gradient(135deg, var(--text) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 2px),
        calc(100% - 13px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.woocommerce-ordering select.orderby:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(253, 2, 2, 0.12);
}

/* Result count */
.woocommerce-result-count {
    margin: 0;
    font-size: 0.85rem;
    color: var(--light);
    font-weight: 500;
}

/* Notices */
.woocommerce-notices-wrapper:empty {
    display: none;
}

.woocommerce-notices-wrapper {
    margin-bottom: 24px;
}

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
    list-style: none;
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
ul.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 0;
    padding: 0;
    list-style: none;
}

ul.products.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

ul.products li.product {
    margin: 0;
    list-style: none;
    min-width: 0;
}

/* ---------- Product card ---------- */
.product-block {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-block:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

/* Top accent line that grows on hover */
.product-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
    z-index: 3;
}

.product-block:hover .product-line {
    transform: scaleX(1);
}

/* Product image */
.product-transition {
    position: relative;
    overflow: hidden;
    background: var(--bg-alt);
}

.product-image {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.5s ease;
}

.product-block:hover .product-image img {
    transform: scale(1.06);
}

/* Overlay actions on hover */
.product-transition .group-action {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    background: linear-gradient(
        to top,
        rgba(20, 12, 8, 0.55) 0%,
        rgba(20, 12, 8, 0) 55%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.product-block:hover .group-action {
    opacity: 1;
}

.shop-action .button,
.opal-add-to-cart-button .button {
    display: inline-block;
    padding: 11px 24px;
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff !important;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(253, 2, 2, 0.35);
    transition: background 0.25s ease, transform 0.2s ease;
}

.shop-action .button:hover,
.opal-add-to-cart-button .button:hover {
    background: var(--primary_hover);
    transform: translateY(-2px);
}

/* Caption */
.product-caption {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 20px 24px;
}

.product-caption .posted-in {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.product-caption .posted-in a {
    color: var(--light);
}

.product-caption .posted-in a:hover {
    color: var(--primary);
}

.woocommerce-loop-product__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}

.woocommerce-loop-product__title a {
    color: var(--accent);
}

.woocommerce-loop-product__title a:hover {
    color: var(--primary);
}

.product-caption .price {
    margin-top: 4px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
}

.product-caption .price .woocommerce-Price-amount {
    color: var(--primary);
    font-size: 1rem;
}

.product-caption .price del {
    color: var(--light);
    font-weight: 500;
    margin-right: 6px;
}

.product-caption .price ins {
    text-decoration: none;
}

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
#secondary .widget {
    padding: 24px;
    margin-bottom: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

#secondary .widget:last-child {
    margin-bottom: 0;
}

#secondary .widget-title,
#secondary .gamma.widget-title {
    display: block;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 18px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);
    border-bottom: 1px solid var(--border);
}

#secondary .widget-title::after,
#secondary .gamma.widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 48px;
    height: 3px;
    border-radius: 999px;
    background: var(--primary);
}

/* Categories list */
.product-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-categories li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 0;
    margin: 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.92rem;
}

.product-categories li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.product-categories li a {
    color: var(--text);
    font-weight: 500;
    transition: color 0.25s ease, padding 0.25s ease;
}

.product-categories li a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.product-categories li .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--bg-alt);
    color: var(--light);
    font-size: 0.72rem;
    font-weight: 700;
}

/* ============================================================
   PRICE FILTER
   ============================================================ */
.price_slider_wrapper {
    margin-top: 6px;
}

.price_slider_amount {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.price_slider_amount input[type="text"] {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    color: var(--accent);
    font-size: 0.88rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.price_slider_amount input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(253, 2, 2, 0.12);
}

.price_slider_amount .button {
    flex: 1 1 100%;
    padding: 11px 20px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
}

.price_slider_amount .button:hover {
    background: var(--primary_hover);
    transform: translateY(-2px);
}

/* Range slider (jQuery UI) */
.price_slider.ui-slider {
    position: relative;
    height: 6px;
    margin: 0 6px 22px;
    border-radius: 999px;
    background: var(--bg-alt);
}

.price_slider .ui-slider-range {
    position: absolute;
    top: 0;
    height: 100%;
    background: var(--primary);
    border-radius: 999px;
}

.price_slider .ui-slider-handle {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    margin-top: -9px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid var(--primary);
    box-shadow: 0 2px 8px rgba(253, 2, 2, 0.35);
    cursor: pointer;
    outline: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price_slider .ui-slider-handle:hover,
.price_slider .ui-slider-handle:focus {
    transform: scale(1.12);
    box-shadow: 0 4px 14px rgba(253, 2, 2, 0.5);
}

/* ============================================================
   TAG CLOUD
   ============================================================ */
.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.4;
}

.tagcloud a.tag-cloud-link {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--bg-alt);
    color: var(--text);
    font-size: 0.78rem !important;
    font-weight: 500;
    line-height: 1.3;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.tagcloud a.tag-cloud-link:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ============================================================
   LIST VIEW MODE
   ============================================================ */
ul.products.list-view {
    grid-template-columns: 1fr;
    gap: 20px;
}

ul.products.list-view li.product .product-block {
    flex-direction: row;
    align-items: stretch;
}

ul.products.list-view li.product .product-transition {
    flex: 0 0 220px;
    width: 220px;
}

ul.products.list-view li.product .product-caption {
    flex: 1 1 auto;
    justify-content: center;
    padding: 28px 32px;
}

/* ============================================================
   RESPONSIVE — CONTENT
   ============================================================ */

@media (max-width: 1024px) {
    ul.products,
    ul.products.columns-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    #content .col-full {
        gap: 28px;
    }

    #secondary.widget-area {
        flex: 0 0 240px;
        width: 240px;
    }
}

@media (max-width: 900px) {
    #content.site-content {
        padding: 36px 0 72px;
    }

    #content .col-full {
        flex-direction: column;
        gap: 32px;
    }

    #secondary.widget-area {
        position: static;
        flex: 1 1 100%;
        width: 100%;
    }

    ul.products.list-view li.product .product-block {
        flex-direction: column;
    }

    ul.products.list-view li.product .product-transition {
        flex: 0 0 auto;
        width: 100%;
    }

    ul.products.list-view li.product .product-caption {
        padding: 20px;
    }

    .shopic-sorting {
        gap: 12px;
        padding: 14px 16px;
    }

    .woocommerce-ordering {
        margin-left: 0;
        flex: 1 1 100%;
    }

    .woocommerce-ordering select.orderby {
        width: 100%;
    }
}

@media (max-width: 600px) {
    #content.site-content {
        padding: 28px 0 64px;
    }

    #content .col-full {
        padding: 0 16px;
    }

    ul.products,
    ul.products.columns-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .shopic-sorting {
        padding: 12px;
        margin-bottom: 24px;
    }

    .shopic-sorting .filter-toggle-dropdown {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .gridlist-toggle {
        display: none;
    }

    .product-caption {
        padding: 16px 16px 20px;
    }

    .woocommerce-loop-product__title {
        font-size: 1rem;
    }

    #secondary .widget {
        padding: 20px;
    }

    .product-caption .price,
    .product-caption .price .woocommerce-Price-amount {
        font-size: 0.95rem;
    }
}

/* ============================================================
   PRODUCT TAGS — placed below the product grid
   ============================================================ */

.product-tags-below-grid {
    margin: 48px 0 0;        /* space above, after the grid */
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

/* Title with the same red accent underline used elsewhere */
.product-tags-below-grid .gamma.widget-title {
    display: block;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 22px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);
    border-bottom: 1px solid var(--border);
}

.product-tags-below-grid .gamma.widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 48px;
    height: 3px;
    border-radius: 999px;
    background: var(--primary);
}

/* Tag pills — bigger, more spread out than in the sidebar */
.product-tags-below-grid .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    line-height: 1.4;
}

.product-tags-below-grid .tagcloud a.tag-cloud-link {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--bg-alt);
    color: var(--text);
    font-size: 0.82rem !important;   /* overrides inline 8pt */
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.product-tags-below-grid .tagcloud a.tag-cloud-link:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .product-tags-below-grid {
        margin-top: 36px;
        padding: 24px;
    }
}

@media (max-width: 600px) {
    .product-tags-below-grid {
        margin-top: 28px;
        padding: 20px 18px;
    }

    .product-tags-below-grid .tagcloud {
        gap: 8px;
    }

    .product-tags-below-grid .tagcloud a.tag-cloud-link {
        padding: 6px 12px;
        font-size: 0.75rem !important;
    }
}

.gamma.widget-title{
    font-weight: 600;
    color: #000;
   
}

#woocommerce_product_tag_cloud-1{
    margin-top: 20px;
}

.tagcloud{
     margin-top: 10px;
}