/**
 * Layout fixes: sticky sidebar (ScrollToFixed) + theme borders
 */
#main .sidebar-content.scroll-to-fixed-fixed {
    border-left: none;
}

/* ------------------------------------------------------------------
   Product detail page (shop): alignment, buy CTA, gallery, table
   ------------------------------------------------------------------ */

/* Header: title + buy column vertically centered on md+ */
@media (min-width: 992px) {
    .product-header-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .product-header-row > [class*="col-"] {
        float: none;
    }

    .product-header-main {
        flex: 1 1 0;
        min-width: 0;
    }

    .product-header-main::after {
        content: "";
        display: table;
        clear: both;
    }

    .product-buy-col {
        flex: 0 0 auto;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        align-self: stretch;
    }
}

.product-buy-wrap {
    float: none;
    margin-top: 0;
    text-align: right;
    max-width: 280px;
    margin-left: auto;
}

.product-buy-btn.btn {
    min-width: 160px;
    height: 52px;
    line-height: 52px;
    padding: 0 28px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-buy-hint {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 11px;
    line-height: 1.45;
    opacity: 0.82;
    text-align: right;
}

@media (max-width: 991px) {
    .product-buy-wrap {
        text-align: left;
        margin-left: 0;
        margin-top: 16px;
        max-width: none;
    }

    .product-buy-hint {
        text-align: left;
    }
}

/* Horizontal share row (replaces absolute vertical share) */
.shop_post-content.single-post-content {
    position: relative;
    padding-left: 0;
}

.product-share-row {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.product-share-row .share-title {
    margin: 0;
    float: none;
    white-space: nowrap;
}

.product-share-row .share-container {
    float: none;
    display: flex;
    flex-wrap: wrap;
    width: auto;
    box-shadow: 0 2px 12px rgb(0 0 0 / 6%);
}

.product-share-row .share-container .share-icon {
    border-bottom: none;
    border-right: 1px solid #eee;
}

.product-share-row .share-container .share-icon:last-child {
    border-right: none;
}

.product-details-body {
    clear: both;
}

/* Spec table: left-align all cells, readable URLs */
.product-spec-table-wrap table.product-spec-table {
    table-layout: fixed;
}

.product-spec-table td,
.product-spec-table th {
    text-align: left;
    vertical-align: top;
}

.product-spec-table td:first-child {
    width: 34%;
    font-weight: 600;
}

.product-url-cell {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.product-url-link {
    display: inline;
    font-weight: 500;
}

/* Footer tags row */
.product-post-footer .product-tags-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.product-post-footer .tags-title {
    margin: 0;
    flex: 0 0 auto;
}

.product-post-footer .tags-widget {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Sidebar price filter: stack + spacing */
.product-sidebar-price-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
}

.product-sidebar-price-range {
    float: none;
    width: 100%;
    margin: 0;
    padding: 4px 0 8px;
}

.product-sidebar-price-btn {
    float: none;
    align-self: flex-start;
    margin: 0;
}

/* Cookie bar: stay at bottom without covering main interactions; tidy layout */
/* Cookie bar: outside #main; fixed to viewport bottom, above page content */
.cookie-info-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    padding: 14px 0;
    background: #fff;
    box-shadow: 0 -4px 24px rgb(0 0 0 / 12%);
}

.cookie-info-bar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    justify-content: space-between;
}

.cookie-info-bar_title {
    flex: 1 1 220px;
    margin: 0;
    line-height: 1.5;
    font-size: 14px;
}

.cookie-info-bar_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.cookie-info-bar .sicb_btn {
    flex: 0 0 auto;
    margin-left: 0;
}


/* Shop landing: subcategory links under category cards */
.shop-subcat-links {
    margin-top: 8px;
    font-size: 12px;
}

.shop-subcat-links li {
    margin-bottom: 4px;
}

/* Products index (Gmag shop.html style): sort rows, buy link as add_cart */
.shop-products-sort-row--second {
    margin-top: 6px;
}

.shop-product-cat-pill {
    display: inline-block;
    margin-bottom: 10px;
}

.add_cart.add_cart--link {
    color: inherit;
    text-decoration: none;
}

.add_cart.add_cart--disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ------------------------------------------------------------------
   Products listing (/products): grid, images, sidebar, filters
   ------------------------------------------------------------------ */

.products-shop-page {
    float: left;
    width: 100%;
    margin-bottom: 120px; /* space above fixed cookie bar */
}

.products-breadcrumbs {
    font-size: 13px;
    padding: 12px 0;
    text-align: left;
}

.products-breadcrumbs a,
.products-breadcrumbs .products-bc-current {
    display: inline-block;
    vertical-align: middle;
}

.products-bc-sep {
    display: inline-block;
    margin: 0 8px;
    color: #999;
    font-weight: 400;
}

.products-bc-current {
    color: #333;
    font-weight: 600;
}

.products-list-row {
    display: flex;
    flex-wrap: wrap;
}

.products-list-main {
    float: none;
}

.products-sidebar-col {
    float: none;
}

.products-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 24px;
    width: 100%;
}

.products-filter-bar .filter-options-title {
    float: none;
    margin: 0 0 8px 0;
    width: 100%;
    font-size: 22px;
}

.products-filter-bar .filter-options-content {
    float: none;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    align-items: center;
    width: 100%;
}

.products-filter-bar .filter-options-item {
    float: none;
    margin: 0;
}

.products-grid-wrap {
    clear: both;
    width: 100%;
}

.products-grid-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

.products-grid-col {
    float: none;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 24px;
    display: flex;
}

.product-shop-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.product-shop-card .grid-post-media {
    height: 220px;
    flex: 0 0 220px;
}

.product-card-media-link {
    display: block;
    height: 100%;
    width: 100%;
    position: relative;
}

.product-card-img-wrap {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 16px 18px 18px;
}

.product-card-body p {
    flex: 1 1 auto;
    margin-bottom: 12px;
}

.product-card-actions {
    margin-top: auto;
}

.products-sidebar .widget {
    text-align: left;
}

.products-sidebar .widget-list ul,
.products-sidebar .widget-list li {
    text-align: left;
}

.products-sidebar .widget-post-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    text-align: left;
}

.products-sidebar .widget-post-item-media {
    float: none;
    flex: 0 0 30%;
    max-width: 90px;
}

.products-sidebar .widget-post-item-media a {
    display: block;
    height: 70px;
    overflow: hidden;
    border-radius: 4px;
}

.products-sidebar .product-sidebar-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.products-sidebar .widget-post-content {
    float: none;
    flex: 1 1 auto;
    width: auto;
    padding: 0;
}

.products-sidebar .widget-post-content h6 {
    font-size: 13px;
    line-height: 1.35;
    margin: 0 0 6px;
}

.products-sidebar .widget-post-date {
    font-size: 12px;
}
