/* =========================================================
   SHOP CATEGORY — PRODUCT OPTIONS REDESIGN
   Scoped under .shop-category so the shared .na-card grid
   used on the home page is left untouched.
   Palette:  #1C1B1A ink   #FAF7F2 paper   #8B6F4E tan
             #EFE8DD panel  #D6CBB8 line   #C0512F stitch
   Type:     'Fraunces' (display)  'Inter' (body/UI)
========================================================= */

.shop-category {
    --sc-ink: #1C1B1A;
    --sc-paper: #FAF7F2;
    --sc-tan: #8B6F4E;
    --sc-tan-dark: #6E5738;
    --sc-panel: #EFE8DD;
    --sc-line: #D6CBB8;
    --sc-stitch: #C0512F;
    --sc-forest: #334633;
    --sc-white: #FFFFFF;
}

/* ---------- heading block ---------- */
.shop-category .personal-bag-content {
    margin-bottom: 34px;
}

.shop-category .sc-eyebrow {
    display: inline-block;
    font-family: var(--body-font, 'Inter', sans-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sc-tan);
    margin-bottom: 10px;
}

.shop-category .sc-subtitle {
    max-width: 560px;
    margin: 14px auto 0 auto;
    font-family: var(--body-font, 'Inter', sans-serif);
    font-size: 14px;
    line-height: 1.7;
    color: #6b655c;
}

/* the dashed rule under the title clashes with the new subtitle */
.shop-category .personal-bag-content::after {
    display: none;
}

/* ---------- toolbar ---------- */
.shop-category .sc-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 14px 18px;
    margin-bottom: 30px;
    background: var(--sc-white);
    border: 1px solid var(--sc-line);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(28, 27, 26, 0.04);
}

.shop-category .sc-count {
    font-family: var(--body-font, 'Inter', sans-serif);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b655c;
}

.shop-category .sc-count strong {
    color: var(--sc-ink);
    font-weight: 700;
}

.shop-category .sc-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.shop-category .sc-view-toggle {
    display: flex;
    border: 1px solid var(--sc-line);
    border-radius: 10px;
    overflow: hidden;
}

.shop-category .sc-view-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    font-size: 13px;
    color: #9a9488;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.shop-category .sc-view-btn.is-active {
    background: var(--sc-forest);
    color: #fff;
}

.shop-category .sc-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--body-font, 'Inter', sans-serif);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b655c;
}

.shop-category .sc-sort select {
    font-family: var(--body-font, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 500;
    color: var(--sc-ink);
    background: var(--sc-paper);
    border: 1px solid var(--sc-line);
    border-radius: 10px;
    padding: 9px 34px 9px 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236E5738' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color 0.2s ease;
}

.shop-category .sc-sort select:focus {
    outline: none;
    border-color: var(--sc-tan);
}

/* ---------- grid ---------- */
.shop-category .sc-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

/* ---------- card ---------- */
.shop-category .sc-card {
    background: var(--sc-white);
    border: 1px solid var(--sc-line);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}

.shop-category .sc-card:hover {
    transform: translateY(-6px);
    border-color: var(--sc-tan);
    box-shadow: 0 22px 44px rgba(51, 70, 51, 0.14);
}

.shop-category .sc-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--sc-panel);
    overflow: hidden;
}

.shop-category .sc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.shop-category .sc-card:hover .sc-card-img img {
    transform: scale(1.08);
}

/* corner tag */
.shop-category .sc-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    font-family: var(--body-font, 'Inter', sans-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    background: var(--sc-forest);
    padding: 6px 12px;
    border-radius: 999px;
}

/* passport-style discount stamp — on brand for a travel accessories store */
.shop-category .sc-stamp {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--display-font, 'Fraunces', serif);
    font-size: 14px;
    font-weight: 700;
    color: var(--sc-stitch);
    border: 2px dashed var(--sc-stitch);
    border-radius: 50%;
    background: rgba(250, 247, 242, 0.86);
    transform: rotate(-12deg);
    letter-spacing: -0.02em;
}

/* wishlist */
.shop-category .sc-wish {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 3;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--sc-line);
    background: rgba(255, 255, 255, 0.92);
    color: var(--sc-ink);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.shop-category .sc-wish:hover {
    transform: scale(1.1);
}

.shop-category .sc-wish.is-active {
    color: var(--sc-stitch);
    background: #fff;
    border-color: var(--sc-stitch);
}

/* slide-up add to bag */
.shop-category .sc-quick-btn {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 0;
    font-family: var(--body-font, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
    text-decoration: none;
    background: rgba(51, 70, 51, 0.94);
    transform: translateY(100%);
    transition: transform 0.35s ease;
}

.shop-category .sc-card:hover .sc-quick-btn {
    transform: translateY(0);
}

.shop-category .sc-quick-btn:hover {
    background: var(--sc-forest);
    color: #fff;
}

/* ---------- card body ---------- */
.shop-category .sc-card-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.shop-category .sc-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--body-font, 'Inter', sans-serif);
    font-size: 12px;
    color: #6b655c;
}

.shop-category .sc-rating i {
    color: #E8B341;
    font-size: 12px;
}

.shop-category .sc-rating strong {
    color: var(--sc-ink);
    font-weight: 700;
}

.shop-category .sc-title {
    font-family: var(--display-font, 'Fraunces', serif);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--sc-ink);
    margin: 0 !important;
    min-height: auto;
}

.shop-category .sc-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.shop-category .sc-title a:hover {
    color: var(--sc-tan-dark);
}

.shop-category .sc-swatches {
    display: flex;
    gap: 7px;
}

.shop-category .sc-swatches span {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--sw);
    box-shadow: 0 0 0 1px var(--sc-line), inset 0 0 0 2px #fff;
}

.shop-category .sc-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin: 2px 0 0;
}

.shop-category .sc-price {
    font-family: var(--display-font, 'Fraunces', serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--sc-ink);
}

.shop-category .sc-price-old {
    font-family: var(--body-font, 'Inter', sans-serif);
    font-size: 13px;
    color: #a8a196;
    text-decoration: line-through;
}

.shop-category .sc-save {
    font-family: var(--body-font, 'Inter', sans-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--sc-forest);
    background: #e7ede4;
    padding: 3px 8px;
    border-radius: 999px;
}

.shop-category .sc-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--sc-line);
    font-family: var(--body-font, 'Inter', sans-serif);
    font-size: 11px;
    letter-spacing: 0.02em;
    color: #7d766b;
}

.shop-category .sc-meta i {
    color: var(--sc-tan);
    margin-right: 3px;
}

.shop-category .sc-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--sc-line);
}

/* ---------- list view ---------- */
.shop-category .sc-grid--list {
    grid-template-columns: 1fr;
    gap: 18px;
}

.shop-category .sc-grid--list .sc-card {
    flex-direction: row;
}

.shop-category .sc-grid--list .sc-card-img {
    width: 240px;
    flex: 0 0 240px;
    aspect-ratio: 1 / 1;
}

.shop-category .sc-grid--list .sc-quick-btn {
    position: static;
    transform: none;
    width: auto;
    align-self: flex-start;
    margin-top: 6px;
    padding: 11px 22px;
    border-radius: 999px;
}

.shop-category .sc-grid--list .sc-card-body {
    justify-content: center;
}

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
    .shop-category .sc-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .shop-category .sc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .shop-category .sc-grid--list .sc-card-img {
        width: 160px;
        flex-basis: 160px;
    }
}

@media (max-width: 560px) {
    .shop-category .sc-toolbar {
        justify-content: space-between;
    }

    .shop-category .sc-controls {
        gap: 10px;
    }

    .shop-category .sc-sort span {
        display: none;
    }

    .shop-category .sc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .shop-category .sc-card-body {
        padding: 14px;
    }

    .shop-category .sc-title {
        font-size: 14px;
    }

    .shop-category .sc-quick-btn {
        transform: translateY(0);
        position: static;
    }

    .shop-category .sc-grid--list .sc-card {
        flex-direction: column;
    }

    .shop-category .sc-grid--list .sc-card-img {
        width: 100%;
        flex-basis: auto;
    }
}
