

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 32px 10px;
}

.shop-toolbar-left {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.shop-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy-deep);
}

.shop-count {
    font-size: 13px;
    color: var(--text-muted);
}

.shop-count strong {
    color: var(--navy-deep);
}

.shop-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-form {
    margin: 0;
}

.sort-select {
    padding: 9px 32px 9px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--text-dark);
    background: var(--white);
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a8a5a0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.btn-open-filters {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: var(--navy-deep);
    color: var(--white);
    border-radius: 8px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: background .2s;
}

.btn-open-filters:hover {
    background: var(--navy-mid);
}

.filter-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    position: absolute;
    top: -3px;
    right: -3px;
    border: 2px solid var(--bg-light);
}

.active-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 0 32px 14px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--cream);
    color: var(--navy-mid);
    border: 1px solid var(--border);
}

.chip-clear {
    background: #fdecec;
    color: #c0392b;
    border-color: #f3caca;
    cursor: pointer;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 0 32px 20px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s;
}

/* .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(10, 17, 35, .1);
} */

.product-card-img-wrap {
    position: relative;
    aspect-ratio: 1 / 0.9;
    overflow: hidden;
    background: var(--cream);
    margin-top: 10px;
}

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

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

.card-badge-offer,
.card-badge-out {
    position: absolute;
    top: 9px;
    left: 9px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    z-index: 2;
}

.card-badge-offer {
    background: var(--gold);
    color: var(--navy-deep);
}

.card-badge-out {
    background: #fdecec;
    color: #c0392b;
}

.card-wishlist-btn {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, .9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background .2s;
}

.card-wishlist-btn:hover {
    background: var(--white);
}

.card-wishlist-btn img {
    width: 16px;
    height: 16px;
}

.card-wishlist-btn.wished {
    background: var(--gold);
}

.product-card-body {
    padding: 12px 13px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 4px;
}

.product-card-sub {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-muted);
}

.product-card-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--navy-deep);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.product-card-name:hover {
    color: var(--gold);
}

.product-card-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.product-card-pricing {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-top: 2px;
}

.price-offer {
    font-size: 16px;
    font-weight: 800;
    color: var(--navy-deep);
}

.price-original {
    font-size: 12.5px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-card-add {
    margin-top: auto;
    width: 100%;
    text-align: center;
    padding: 9px 0;
    /* background: var(--navy-deep); */
    background: linear-gradient(135deg, #b9863a, var(--gold));
    color: var(--white);
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    transition: background .2s, transform .15s;
}

.product-card-add:hover {
    background: var(--gold);
    color: var(--navy-deep);
    transform: translateY(-1px);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 56px;
    margin-bottom: 14px;
}

.empty-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy-deep);
    margin-bottom: 8px;
}

.empty-sub {
    font-size: 14px;
    color: var(--text-muted);
}

.empty-sub a {
    color: var(--gold);
    font-weight: 700;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 0 30px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--navy-deep);
    transition: all .2s;
}

.page-btn:hover:not(.active):not(.page-disabled) {
    border-color: var(--gold);
    color: var(--gold);
}

.page-btn.active {
    background: var(--navy-deep);
    border-color: var(--navy-deep);
    color: var(--white);
}

.page-btn.page-disabled {
    opacity: .4;
    pointer-events: none;
}

.page-ellipsis {
    font-size: 14px;
    color: var(--text-muted);
    padding: 0 2px;
    line-height: 36px;
}

.filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 17, 35, .5);
    z-index: 300;
}

.filter-overlay.open {
    display: block;
}

.filter-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 340px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-light);
    z-index: 310;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -8px 0 30px rgba(10, 17, 35, .18);
}

.filter-drawer.open {
    transform: translateX(0);
}

.filter-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: var(--navy-deep);
    color: var(--white);
    flex-shrink: 0;
}

.filter-drawer-header h2 {
    font-size: 16px;
    font-weight: 800;
}

.filter-drawer-close {
    font-size: 22px;
    color: var(--white);
    cursor: pointer;
    line-height: 1;
}

.filter-drawer-close:hover {
    color: var(--gold);
}

.filter-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 90px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.filter-drawer-body::-webkit-scrollbar {
    width: 4px;
}

.filter-drawer-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.filter-section {
    border-bottom: 1px solid var(--border);
}

.filter-section-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    background: none;
    text-align: left;
}

.filter-section-header h3 {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--navy-deep);
}

.filter-chevron {
    color: var(--gold);
    font-size: 15px;
    transition: transform .25s;
}

.filter-section.collapsed .filter-chevron {
    transform: rotate(180deg);
}

.filter-section-body {
    padding: 2px 20px 16px;
}

.filter-section.collapsed .filter-section-body {
    display: none;
}

.price-range-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-range-row input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-dark);
    outline: none;
}

.price-range-row input:focus {
    border-color: var(--gold);
}

.filter-check-list {
    list-style: none;
}

.filter-check-list li {
    margin-bottom: 8px;
}

.filter-check-list label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: var(--text-dark);
    cursor: pointer;
}

.filter-check-list input[type="checkbox"] {
    accent-color: var(--gold);
    width: 15px;
    height: 15px;
    cursor: pointer;
    flex-shrink: 0;
}

.filter-drawer-actions {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 340px;
    max-width: 90vw;
    display: flex;
    gap: 8px;
    padding: 14px 20px 18px;
    background: var(--bg-light);
    border-top: 1px solid var(--border);
}

.filter-drawer-actions .btn-apply {
    flex: 1;
    padding: 10px 0;
    background: var(--navy-deep);
    color: var(--white);
    border-radius: 8px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: background .2s;
}

.filter-drawer-actions .btn-apply:hover {
    background: var(--gold);
    color: var(--navy-deep);
}

.filter-drawer-actions .btn-clear {
    flex: 1;
    padding: 10px 0;
    background: var(--white);
    color: var(--navy-deep);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: border-color .2s;
}

.filter-drawer-actions .btn-clear:hover {
    border-color: var(--gold);
    color: var(--gold);
}

@media (min-width: 1800px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 20px 20px;
    }

    .shop-toolbar {
        padding: 16px 20px 10px;
    }

    .active-chips {
        padding: 0 20px 14px;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 0 14px 100px;
    }

    .shop-toolbar {
        padding: 14px 14px 10px;
    }

    .active-chips {
        padding: 0 14px 12px;
    }

    .shop-title {
        font-size: 18px;
    }

    .filter-drawer,
    .filter-drawer-actions {
        width: 100%;
        max-width: 100vw;
    }
}


@media (max-width: 500px) {
    .product-card-pricing {
        flex-direction: column;
    }
}

.empty-details {
  text-align: center;
  padding: 80px 20px;
  max-width: 420px;
  margin: 0 auto;
  grid-column: 1 / -1;
}

.empty-details img {
  margin: 0 auto 20px;
  border-radius: 12px;
  max-width: 220px;
}

.empty-details h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-deep);
  margin-bottom: 8px;
}

.empty-details p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.empty-details button {
  background: var(--navy-deep);
  color: var(--white);
  border: none;
  padding: 12px 26px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.empty-details button:hover {
  background: var(--gold);
  color: var(--navy-deep);
  transform: translateY(-1px);
}