/* ==========================================
   IG REPUBLIC - CUSTOMER PRODUCT CATALOGUE
   ========================================== */

.shop-hero {
    text-align: center;
    padding: 70px 5% 45px;
    background: var(--ir-cream, #f8f5f3);
}

.shop-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 5vw, 56px);
    margin: 12px 0;
}

.shop-hero p:not(.eyebrow) {
    color: var(--ir-muted, #777174);
    max-width: 620px;
    margin: 0 auto;
}

.shop-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 5% 70px;
}

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.shop-search {
    flex: 1 1 240px;
    max-width: 420px;
    padding: 11px 14px;
    border: 1px solid #ddd;
    background: #fff;
    font: inherit;
    font-size: 14px;
}

.shop-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shop-filter {
    border: 1px solid #ddd;
    background: #fff;
    color: var(--ir-dark, #171416);
    padding: 10px 16px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.shop-filter:hover {
    border-color: var(--ir-red, #bd0028);
    color: var(--ir-red, #bd0028);
}

.shop-filter.active {
    background: var(--ir-dark, #171416);
    border-color: var(--ir-dark, #171416);
    color: #fff;
}

.shop-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--ir-muted, #777174);
}

.shop-sort select {
    padding: 9px 12px;
    border: 1px solid #ddd;
    background: #fff;
    font: inherit;
    font-size: 13px;
}

.shop-message {
    color: var(--ir-muted, #777174);
    font-size: 14px;
    margin: 0 0 22px;
}

.shop-message.error {
    color: #a11;
}

.shop-message.hidden {
    display: none;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.shop-card {
    background: #fff;
    border: 1px solid var(--ir-border, #eee7e5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
}

.shop-card:hover {
    box-shadow: 0 14px 40px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

.shop-gallery {
    position: relative;
    background: #f7f5f4;
}

.shop-gallery-main {
    width: 100%;
    height: 280px;
    object-fit: contain;
    display: block;
}

.shop-gallery-empty {
    height: 280px;
    display: grid;
    place-items: center;
    color: #aaa;
    font-size: 12px;
    letter-spacing: 1px;
}

.shop-thumbs {
    display: flex;
    gap: 6px;
    padding: 8px;
    overflow-x: auto;
}

.shop-thumb {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
}

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

.shop-thumb.active {
    border-color: var(--ir-red, #bd0028);
}

.shop-info {
    padding: 16px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.shop-cat {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ir-red, #bd0028);
    font-weight: 700;
}

.shop-name {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
}

.shop-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--ir-dark, #171416);
}

.shop-desc {
    font-size: 13px;
    color: var(--ir-muted, #777174);
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-meta {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--ir-border, #eee7e5);
    font-size: 12px;
    color: var(--ir-muted, #777174);
    line-height: 1.7;
}

.shop-stock.in {
    color: #18733b;
    font-weight: 700;
}

.shop-stock.out {
    color: #a11;
    font-weight: 700;
}

.shop-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 40px;
}

.shop-page-btn {
    min-width: 40px;
    padding: 9px 13px;
    border: 1px solid #ddd;
    background: #fff;
    color: var(--ir-dark, #171416);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.shop-page-btn:hover:not(:disabled) {
    border-color: var(--ir-red, #bd0028);
    color: var(--ir-red, #bd0028);
}

.shop-page-btn.active {
    background: var(--ir-dark, #171416);
    border-color: var(--ir-dark, #171416);
    color: #fff;
}

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

.shop-page-info {
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: var(--ir-muted, #777174);
    margin-top: 6px;
}

@media (max-width: 1080px) {
    .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
    .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shop-gallery-main,
    .shop-gallery-empty { height: 240px; }
}

@media (max-width: 540px) {
    .shop-grid { grid-template-columns: 1fr; }
    .shop-toolbar { align-items: stretch; }
    .shop-sort { justify-content: space-between; }
    .shop-hero { padding: 50px 5% 35px; }
    .shop-gallery-main,
    .shop-gallery-empty { height: 300px; }
}
