/* SterlingDesign patch 70 — shop (site colours, no browser-default blue/purple links) */
.shop-wrap a,
.sd-shop a,
.sd-shop-note a {
    color: var(--teal-dark, #0A9E9D);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.shop-wrap a:hover,
.sd-shop a:hover,
.sd-shop-note a:hover,
.shop-wrap a:visited,
.sd-shop a:visited {
    color: var(--navy, #000E23);
}
.shop-wrap a.btn,
.sd-shop a.btn,
.shop-wrap a.btn:visited,
.sd-shop a.btn:visited {
    color: inherit;
    text-decoration: none;
}
.shop-wrap a.btn-primary,
.shop-wrap a.btn-primary:visited,
.sd-shop a.btn-primary,
.sd-shop a.btn-primary:visited {
    color: #fff;
}
.shop-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
}
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}
.shop-card {
    background: #fff;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 14, 35, 0.04);
}
.shop-card img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    background: var(--gray-100, #f3f4f6);
    display: block;
}
.shop-card-body {
    padding: 1.1rem 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}
.shop-card h2 {
    font-size: 1.15rem;
    margin: 0;
    color: var(--navy, #000E23);
}
.shop-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.shop-tags li {
    background: var(--gray-100, #f3f4f6);
    color: var(--navy, #000E23);
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
}
.shop-price {
    font-weight: 700;
    color: var(--navy, #000E23);
    font-size: 1.1rem;
    margin-top: auto;
}
.shop-card .btn { margin-top: 0.35rem; align-self: flex-start; }
.shop-empty {
    background: #fff;
    border: 1px dashed var(--gray-300, #d1d5db);
    border-radius: 12px;
    padding: 2rem 1.25rem;
    text-align: center;
    color: var(--gray-600, #4b5563);
}
.shop-product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: start;
}
.shop-product img {
    width: 100%;
    border-radius: 12px;
    background: var(--gray-100, #f3f4f6);
    display: block;
}
.shop-product-meta { display: flex; flex-direction: column; gap: 0.75rem; }
.shop-product-meta h1 { margin: 0 0 0.25rem; }
.shop-desc { color: var(--gray-600, #4b5563); white-space: pre-wrap; }
.shop-table { width: 100%; border-collapse: collapse; }
.shop-table th, .shop-table td {
    text-align: left;
    padding: 0.7rem 0.4rem;
    border-bottom: 1px solid var(--gray-200, #e5e7eb);
    vertical-align: middle;
}
.shop-table th { color: var(--gray-600, #4b5563); font-weight: 600; font-size: 0.85rem; }
.shop-total { font-size: 1.15rem; font-weight: 700; color: var(--navy, #000E23); }
.shop-bank {
    background: #fff;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-radius: 12px;
    padding: 1.25rem 1.4rem;
    margin: 1.25rem 0;
}
.shop-bank h2 { margin: 0 0 0.6rem; font-size: 1.15rem; }
.shop-bank pre {
    font-family: inherit;
    white-space: pre-wrap;
    margin: 0;
    color: var(--navy, #000E23);
}
.shop-consent { display: flex; gap: 0.6rem; align-items: flex-start; }
.shop-consent input { margin-top: 0.3rem; }
.sd-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.shop-order-no { font-size: 1.35rem; font-weight: 700; color: var(--navy, #000E23); }
.mailer-pager {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.25rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: .85rem;
    border-top: 1px solid var(--gray-200, #e5e7eb);
}
.mailer-pager-status { margin: 0; color: #4b5563; font-size: .9rem; }
.mailer-pager-nav { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.mailer-pager-indicator { font-weight: 600; color: var(--navy, #000E23); font-size: .9rem; }
.mailer-pager-btn { padding: .35rem .8rem; font-size: .85rem; }
.mailer-pager-btn.is-disabled,
.mailer-pager-btn.is-disabled:hover { opacity: .45; pointer-events: none; cursor: default; }
@media (max-width: 760px) {
    .shop-product { grid-template-columns: 1fr; }
}

/* Admin shop pages: keep links in site colours, not browser blue/purple */
.admin-content a,
.admin-topbar a {
    color: var(--teal-dark, #0A9E9D);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.admin-content a:visited,
.admin-topbar a:visited {
    color: var(--teal-dark, #0A9E9D);
}
.admin-content a:hover,
.admin-topbar a:hover {
    color: var(--navy, #000E23);
}
.admin-content a.btn,
.admin-content a.btn:visited,
.admin-topbar a.btn,
.admin-topbar a.btn:visited {
    color: inherit;
    text-decoration: none;
}
