/* ===== GRID ===== */
.container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 16px 12px 80px;
}

.load-more-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    padding: 10px 20px 24px;
}

#loadMoreBtn {
    width: min(100%, 420px);
    margin-top: 0;
    padding: 16px 24px;
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-control);
    background: transparent;
    color: var(--brand-gold);
    box-shadow: none;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

#loadMoreBtn:hover {
    border-color: var(--brand-gold);
    background: rgba(196, 164, 106, 0.12);
    box-shadow: none;
    transform: none;
}

body.theme-day #loadMoreBtn {
    color: var(--brand-bronze);
}

.card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    background: var(--surface-card);
    box-shadow: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
    animation: fadeUp 0.24s ease both;
}

.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 44px;
    height: 44px;
    min-width: 44px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: rgba(18, 18, 18, 0.82);
    color: var(--brand-gold);
    box-shadow: none;
    font-size: 22px;
    line-height: 1;
}

.favorite-btn:hover {
    border-color: var(--border-accent);
    background: var(--brand-charcoal);
    transform: none;
}

.favorite-btn.active {
    background: var(--brand-gold);
    color: var(--brand-black);
    border-color: var(--brand-gold);
}

body.theme-day .favorite-btn {
    border-color: rgba(126,91,37,0.22);
    background: rgba(255,255,255,0.78);
    color: #765218;
    box-shadow: 0 10px 22px rgba(126,91,37,0.14);
}

body.theme-day .favorite-btn.active {
    background: var(--brand-charcoal);
    color: var(--brand-ivory);
}

body.theme-day .card {
    background: var(--surface-card);
    border-color: var(--border-subtle);
    box-shadow: none;
}

.card::before {
    content: none;
}

.card:hover {
    border-color: var(--border-accent);
    box-shadow: none;
    transform: translateY(-2px);
}

body.theme-day .card:hover {
    border-color: var(--border-accent);
    box-shadow: none;
}

.card img {
    width: 100%;
    height: 260px;
    box-sizing: border-box;
    object-fit: contain;
    padding: clamp(14px, 2vw, 26px);
    background: var(--brand-ivory);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.card:hover img {
    opacity: 0.96;
}

.card-content {
    display: flex;
    flex-direction: column;
    padding: 16px 14px 14px;
}

.card-content h3 {
    margin: 0 0 10px;
    color: var(--brand-ivory);
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0;
}

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

.card-product-link:hover,
.card-product-link:focus-visible {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

body.theme-day .card-content h3,
body.theme-day .price-wrap p,
body.theme-day .modal-content h2 {
    color: var(--brand-black);
}

@media (min-width: 769px) {
    .container {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 24px;
        padding: 24px 20px;
    }

    .card img {
        height: 270px;
    }

    .card-content {
        padding: 18px 18px 16px;
        min-height: 245px;
    }

    .card-content h3 {
        font-size: 21px;
    }
}

.card-topline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.card-brand {
    color: var(--brand-gold);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0;
}

body.theme-day .card-brand,
body.theme-day .product-badge,
body.theme-day .modal-tag {
    color: var(--brand-bronze);
}

.card-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.card-content button {
    margin-top: auto;
}

.card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: auto;
}

.card-actions button {
    min-height: 42px;
    margin: 0;
    padding: 10px 8px;
}

.card-share-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--brand-stone);
    box-shadow: none;
}

.card-view-btn,
.card-compare-btn {
    box-shadow: none;
}

.card-view-btn {
    background: transparent;
    border: 1px solid var(--border-accent);
    color: var(--brand-ivory);
}

.card-compare-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--brand-stone);
}

.card-compare-btn.active {
    background: var(--brand-gold);
    color: var(--brand-black);
    border-color: var(--brand-gold);
}

body.theme-day .card-share-btn {
    background: rgba(255,255,255,0.52);
    border-color: rgba(124, 82, 12, 0.18);
    color: #5f4318;
}

body.theme-day .card-view-btn,
body.theme-day .card-compare-btn {
    background: rgba(255,255,255,0.52);
    border-color: rgba(124, 82, 12, 0.18);
    color: #5f4318;
}

body.theme-day .card-compare-btn.active {
    background: var(--brand-charcoal);
    color: var(--brand-ivory);
}

.compare-tray {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 28px));
    margin: 8px auto 18px;
    padding: 16px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    background: var(--surface-card);
    box-shadow: none;
}

body.theme-day .compare-tray {
    border-color: var(--border-subtle);
    background: var(--surface-card);
    box-shadow: none;
}

.compare-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.compare-head h2 {
    margin: 0;
    color: var(--brand-gold);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
}

.compare-head p {
    margin: 3px 0 0;
    color: rgba(255,255,255,0.64);
    font-size: 14px;
}

.compare-head button {
    width: auto;
    min-height: 38px;
    margin: 0;
    padding: 9px 12px;
}

body.theme-day .compare-head h2 {
    color: #72501d;
}

body.theme-day .compare-head p {
    color: rgba(36,27,18,0.64);
}

.compare-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.compare-card {
    position: relative;
    display: grid;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    background: var(--surface-panel);
}

body.theme-day .compare-card {
    border-color: var(--border-subtle);
    background: #fffdf8;
}

.compare-card img {
    width: 100%;
    height: 132px;
    object-fit: contain;
    box-sizing: border-box;
    padding: 8px;
    border-radius: var(--radius-card);
    background: var(--brand-ivory);
}

.compare-card strong {
    color: var(--brand-ivory);
    line-height: 1.25;
}

.compare-card span,
.compare-card small {
    color: var(--brand-stone);
    line-height: 1.4;
}

.compare-card small {
    font-size: 12px;
}

.compare-card button:not(.compare-remove) {
    min-height: 38px;
    margin: 6px 0 0;
}

.compare-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 34px;
    min-width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background: rgba(0,0,0,0.62);
    color: white;
    box-shadow: none;
}

body.theme-day .compare-card strong {
    color: var(--brand-black);
}

body.theme-day .compare-card span,
body.theme-day .compare-card small {
    color: rgba(32,26,16,0.64);
}

.card-type {
    color: var(--brand-stone);
    font-size: 12px;
    letter-spacing: 0.04em;
}

body.theme-day .card-type,
body.theme-day .stock-note,
body.theme-day .old-price,
body.theme-day .modal-content p {
    color: rgba(32,26,16,0.64);
}

.stock-note {
    margin-top: 10px;
    color: var(--brand-stone);
    font-size: 12px;
    line-height: 1.45;
}

.price-wrap {
    display: block;
    margin-top: 4px;
}

.price-wrap p {
    margin: 0;
    color: var(--brand-ivory);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0;
}

.old-price {
    display: inline-block;
    margin-top: 4px;
    color: var(--brand-stone);
    text-decoration: line-through;
    font-size: 13px;
}

.product-badge,
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.product-badge {
    background: rgba(196, 164, 106, 0.12);
    border: 1px solid var(--border-accent);
    color: var(--brand-gold);
}

body.theme-day .product-badge,
body.theme-day .modal-tag {
    background: rgba(124, 82, 12, 0.08);
    border-color: rgba(124, 82, 12, 0.18);
}

.status-badge {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: white;
}

body.theme-day .status-badge {
    background: rgba(42, 32, 18, 0.07);
    border-color: rgba(42, 32, 18, 0.12);
    color: #2a2116;
}

.status-badge.available {
    color: #9be5a8;
    border-color: rgba(88, 209, 106, 0.35);
    background: rgba(88, 209, 106, 0.12);
}

.status-badge.low {
    color: #ffe08a;
    border-color: rgba(255, 210, 84, 0.3);
    background: rgba(255, 210, 84, 0.12);
}

.status-badge.soldout {
    color: #ffb0b0;
    border-color: rgba(255, 110, 110, 0.3);
    background: rgba(255, 110, 110, 0.12);
}

.status-badge.incoming {
    color: #9fd4ff;
    border-color: rgba(98, 174, 255, 0.3);
    background: rgba(98, 174, 255, 0.12);
}


button {
    width: 100%;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid var(--brand-gold);
    border-radius: var(--radius-control);
    background: var(--brand-gold);
    color: var(--brand-black);
    box-shadow: none;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

button:hover {
    border-color: #d0b57f;
    background: #d0b57f;
    box-shadow: none;
    filter: none;
    transform: none;
}

button:focus-visible {
    outline: 2px solid var(--brand-gold);
    outline-offset: 3px;
}

button:active {
    transform: translateY(0);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
    filter: grayscale(0.15);
}

