/* ============================================================
   SHOP PAGE STYLES
   Used on: shop.php (and shares product-card/products-grid
   with product-detail.php's related-products section)
   This entire block was missing from the export.
   ============================================================ */

:root {
    --nm-green: #345e3b;
    --nm-green-dark: #1a3a20;
    --nm-gold: #D4AF37;
    --nm-cream: #f9f6f0;
}

/* ---- Section header ---- */
.shop-section {
    padding: 80px 0;
    background: #fff;
}

.shop-section-header {
    margin-bottom: 40px;
}

.sub-title {
    color: var(--nm-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    margin-bottom: 8px;
}

.shop-section-header h2 {
    font-size: 32px;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0 0 14px;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--nm-green);
    border-radius: 2px;
}

/* ---- Toolbar ---- */
.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.result-count {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.filter-tag {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid #ddd;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
    white-space: nowrap;
}

.filter-tag:hover {
    border-color: var(--nm-green);
    color: var(--nm-green);
}

.filter-tag.active {
    background: var(--nm-green);
    border-color: var(--nm-green);
    color: #fff;
}

.sort-select {
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 13px;
    color: #333;
    cursor: pointer;
}

/* ---- Products grid ---- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.product-card {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    transition: transform .3s ease, box-shadow .3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(0,0,0,0.12);
}

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: var(--nm-green);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
    padding: 5px 12px;
    border-radius: 20px;
}

.product-badge.badge-sale {
    background: #c0392b;
}

.product-wishlist {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #345e3b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background .2s ease, color .2s ease;
}

.product-wishlist:hover {
    background: var(--nm-green);
    color: #fff;
}

.product-img-link {
    display: block;
}

.product-img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.06);
}

.quick-add-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,58,32,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .25s ease;
}

.product-card:hover .quick-add-overlay {
    opacity: 1;
}

.quick-add-btn {
    background: #fff;
    color: var(--nm-green-dark);
    font-size: 13px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    transform: translateY(10px);
    transition: transform .25s ease;
}

.product-card:hover .quick-add-btn {
    transform: translateY(0);
}

.product-body {
    padding: 20px;
}

.product-category {
    margin: 0 0 6px;
    color: var(--nm-gold);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.product-name {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}

.product-name a {
    color: #1a1a1a;
    text-decoration: none;
}

.product-name a:hover {
    color: var(--nm-green);
}

.product-weight {
    margin: 0 0 10px;
    font-size: 13px;
    color: #888;
}

.product-stars {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    color: var(--nm-gold);
    font-size: 13px;
}

.product-stars span {
    color: #999;
    font-size: 12px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price .old-price {
    color: #aaa;
    text-decoration: line-through;
    font-size: 13px;
    margin-right: 6px;
}

.product-price .current-price {
    color: var(--nm-green-dark);
    font-size: 19px;
    font-weight: 900;
}

.cart-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--nm-green);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
    flex-shrink: 0;
}

.cart-btn:hover {
    background: var(--nm-green-dark);
    transform: scale(1.08);
}

/* ---- Pagination ---- */
.shop-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 46px;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s ease;
}

.page-btn:hover {
    border-color: var(--nm-green);
    color: var(--nm-green);
}

.page-btn.active {
    background: var(--nm-green);
    border-color: var(--nm-green);
    color: #fff;
}

.page-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

/* ---- Swap sidebar to the left, products to the right ---- */
.shop-section .row > .col-lg-9 {
    order: 2;
}

.shop-section .row > .col-lg-3 {
    order: 1;
}

/* ---- Sidebar ---- */
.shop-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    background: var(--nm-cream);
    border-radius: 10px;
    padding: 24px;
}

.sidebar-widget-title {
    margin: 0 0 18px;
    font-size: 17px;
    font-weight: 800;
    color: #1a1a1a;
}

.sidebar-search-wrap {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e2ddd0;
    background: #fff;
}

.sidebar-search-wrap input {
    flex: 1;
    border: none;
    padding: 12px 14px;
    font-size: 14px;
    background: transparent;
    outline: none;
}

.search-submit {
    width: 46px;
    border: none;
    background: var(--nm-green);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease;
}

.search-submit:hover {
    background: var(--nm-green-dark);
}

.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-list li {
    border-bottom: 1px solid #e9e4d8;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 2px;
    color: #444;
    font-size: 14px;
    text-decoration: none;
    transition: color .2s ease;
}

.category-list a:hover,
.category-list a.active {
    color: var(--nm-green);
    font-weight: 700;
}

.category-list .count {
    color: #999;
    font-size: 12px;
}

.price-range-wrap input[type="range"] {
    width: 100%;
    accent-color: var(--nm-green);
    margin-bottom: 10px;
}

.price-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #555;
    margin-bottom: 16px;
}

.price-filter-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: var(--nm-green-dark);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .4px;
    cursor: pointer;
    transition: background .2s ease;
}

.price-filter-btn:hover {
    background: var(--nm-green);
}

.weight-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.weight-btn {
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #fff;
    color: #444;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}

.weight-btn:hover {
    border-color: var(--nm-green);
    color: var(--nm-green);
}

.weight-btn.active {
    background: var(--nm-green);
    border-color: var(--nm-green);
    color: #fff;
}

.sidebar-promo {
    background: linear-gradient(135deg, var(--nm-green) 0%, var(--nm-green-dark) 100%);
    border-radius: 10px;
    padding: 28px 22px;
    text-align: center;
    color: #fff;
}

.sidebar-promo p {
    margin: 0 0 6px;
    color: var(--nm-gold);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.sidebar-promo h4 {
    margin: 0 0 16px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.4;
}

.sidebar-promo a {
    display: inline-block;
    background: var(--nm-gold);
    color: var(--nm-green-dark);
    padding: 10px 26px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .shop-sidebar {
        margin-top: 40px;
    }
}

@media (max-width: 575px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .shop-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}
