/* ==========================================================================
   Shop theme — storefront, product page, cart, checkout, account, support.
   Loaded after style.css, so it inherits the base tokens and resets only the
   parts it needs. Everything is scoped to .shop-body to avoid clashing with
   the portfolio pages.
   ========================================================================== */

:root {
    --shop-bg:        #070810;
    --shop-bg-soft:   #0d0f1c;
    --shop-card:      #12141f;
    --shop-card-2:    #171a28;
    --shop-border:    #232741;
    --shop-border-2:  #2f3557;
    --shop-text:      #f2f4ff;
    --shop-muted:     #9ba3c7;
    --shop-dim:       #6b7396;
    --shop-violet:    #7c5cff;
    --shop-cyan:      #22d3ee;
    --shop-green:     #22c55e;
    --shop-amber:     #f59e0b;
    --shop-red:       #ef4444;
    --shop-grad:      linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
    --shop-grad-soft: linear-gradient(135deg, rgba(124, 92, 255, .18) 0%, rgba(34, 211, 238, .14) 100%);
    --shop-shadow:    0 20px 50px -20px rgba(0, 0, 0, .75);
    --shop-shadow-lg: 0 30px 70px -25px rgba(0, 0, 0, .85);
    --shop-r:         18px;
    --shop-r-sm:      12px;
    --shop-r-lg:      26px;
}

/* ----------------------------- Base ----------------------------- */

.shop-body {
    background:
        radial-gradient(1100px 620px at 82% -10%, rgba(124, 92, 255, .18), transparent 62%),
        radial-gradient(900px 520px at 8% 4%, rgba(34, 211, 238, .12), transparent 60%),
        var(--shop-bg);
    color: var(--shop-text);
    min-height: 100vh;
}

.shop-main {
    padding: 40px 0 96px;
}

.shop-body .container {
    max-width: 1280px;
}

.shop-body h1,
.shop-body h2,
.shop-body h3 {
    letter-spacing: -.02em;
}

.shop-body a {
    color: inherit;
}

.shop-body .card {
    background: var(--shop-card);
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-r);
    padding: 26px;
    box-shadow: var(--shop-shadow);
}

.shop-body .card + .card,
.shop-body .cart-page .card {
    margin-top: 24px;
}

.shop-body .table {
    background: var(--shop-card-2);
    border: 1px solid var(--shop-border);
}

.shop-body .table thead {
    background: rgba(124, 92, 255, .09);
}

.shop-body .table th {
    color: var(--shop-muted);
}

.shop-body .muted,
.shop-body .text-muted {
    color: var(--shop-dim);
}

.shop-body .badge {
    letter-spacing: .04em;
}

.shop-body code {
    background: rgba(124, 92, 255, .13);
    border: 1px solid rgba(124, 92, 255, .22);
    color: #cfc6ff;
    padding: 2px 7px;
    border-radius: 7px;
    font-size: .86em;
}

/* ----------------------------- Buttons ----------------------------- */

.shop-body .btn {
    border-radius: var(--shop-r-sm);
    font-weight: 600;
    letter-spacing: .01em;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.shop-body .btn-primary {
    background: var(--shop-grad);
    box-shadow: 0 10px 28px -10px rgba(124, 92, 255, .8);
}

.shop-body .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px -12px rgba(124, 92, 255, .95);
}

.shop-body .btn-secondary {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--shop-border-2);
    color: var(--shop-text);
}

.shop-body .btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, .08);
    border-color: var(--shop-violet);
}

.shop-body .btn-ghost {
    background: transparent;
    border: 1px solid var(--shop-border);
    color: var(--shop-muted);
}

.shop-body .btn-ghost:hover:not(:disabled) {
    color: var(--shop-text);
    border-color: var(--shop-border-2);
    background: rgba(255, 255, 255, .04);
}

.shop-body .btn-lg {
    padding: 16px 30px;
    font-size: 1.05rem;
}

.shop-body .btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-sub {
    font-size: .8em;
    opacity: .85;
    font-weight: 500;
}

/* ----------------------------- Announce bar ----------------------------- */

.shop-announce {
    background: linear-gradient(90deg, rgba(124, 92, 255, .28), rgba(34, 211, 238, .22));
    border-bottom: 1px solid var(--shop-border);
    font-size: .82rem;
}

.shop-announce-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    color: #e9ecff;
}

.shop-announce-link {
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .5);
}

/* ----------------------------- Header ----------------------------- */

.shop-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(7, 8, 16, .82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--shop-border);
}

.shop-header.is-scrolled {
    box-shadow: 0 12px 40px -18px rgba(0, 0, 0, .9);
}

.shop-header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 74px;
}

.shop-header .nav-logo {
    font-weight: 800;
    font-size: 1.08rem;
    text-decoration: none;
    letter-spacing: -.02em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Header Search (center) */
.shop-header-search {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.shop-search-header {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 520px;
    padding: 8px 12px;
    border-radius: var(--shop-r);
    background: var(--shop-card);
    border: 1px solid var(--shop-border);
    box-shadow: var(--shop-shadow);
}

.shop-search-header .shop-search-icon {
    position: static;
    transform: none;
    color: var(--shop-dim);
    pointer-events: none;
    flex-shrink: 0;
}

.shop-search-header input[type="search"] {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    padding: 10px 0;
    color: var(--shop-text);
    font-size: .95rem;
    outline: none;
}

.shop-search-header input[type="search"]::placeholder {
    color: var(--shop-dim);
}

.shop-search-header .btn {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: .85rem;
}

/* Header Actions (right) */
.shop-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-inline-start: auto;
    flex-shrink: 0;
}

.shop-header-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--shop-r-sm);
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--shop-border);
    color: var(--shop-text);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.shop-header-nav-btn:hover {
    border-color: var(--shop-violet);
    background: rgba(124, 92, 255, .12);
    color: var(--shop-text);
}

.shop-header-nav-btn:focus-visible {
    outline: 2px solid var(--shop-cyan);
    outline-offset: 2px;
}

.shop-header-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 10px;
    background: rgba(124, 92, 255, .16);
    color: #cfc6ff;
}

.shop-header-nav-text {
    display: inline-block;
    font-weight: 600;
}

.shop-header-nav-badge {
    margin-inline-start: 4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--shop-grad);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shop-header-nav-badge.is-empty {
    background: rgba(255, 255, 255, .12);
    color: var(--shop-dim);
}

.shop-header-nav-btn-account .shop-header-nav-icon,
.shop-header-nav-btn-signin .shop-header-nav-icon {
    background: rgba(124, 92, 255, .16);
}

/* Same control as the footer trigger, only for the phone header. */
.shop-header-burger {
    display: none;
    width: auto;
    padding: 9px 11px;
}

.shop-header-burger:hover {
    border-color: var(--shop-violet);
}

/* Desktop: hide mobile nav drawer */
.shop-nav {
    display: none;
}

.shop-region {
    margin-inline-start: auto;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--shop-grad);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shop-nav-quick-badge.is-empty {
    background: rgba(255, 255, 255, .12);
    color: var(--shop-dim);
}

.shop-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 54;
    background: rgba(3, 4, 10, .6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.shop-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-inline-start: auto;
}

/* Same control as the footer trigger, only for the phone header. */
.shop-header-burger {
    display: none;
    width: auto;
    padding: 9px 11px;
}

.shop-header-burger:hover {
    border-color: var(--shop-violet);
}

.shop-cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: var(--shop-r-sm);
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--shop-border);
    color: var(--shop-text);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease;
}

.shop-cart-btn:hover {
    border-color: var(--shop-violet);
    background: rgba(124, 92, 255, .12);
}

.shop-cart-icon {
    display: inline-flex;
}

.shop-cart-count {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--shop-grad);
    color: #fff;
    font-size: .76rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shop-cart-count.is-empty {
    background: rgba(255, 255, 255, .12);
    color: var(--shop-dim);
}

.shop-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--shop-border);
    text-decoration: none;
    color: var(--shop-text);
}

.shop-account-btn:hover {
    border-color: var(--shop-violet);
}

.shop-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--shop-grad);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .85rem;
}

.shop-account-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.shop-account-text strong {
    font-size: .86rem;
}

.shop-account-text small {
    color: var(--shop-dim);
    font-size: .72rem;
}

.shop-login-btn {
    padding: 10px 18px;
    border-radius: var(--shop-r-sm);
    background: var(--shop-grad);
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

/* Desktop header nav buttons (Store, Cart, Account) */
.shop-header-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--shop-r-sm);
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--shop-border);
    color: var(--shop-text);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.shop-header-nav-btn:hover {
    border-color: var(--shop-violet);
    background: rgba(124, 92, 255, .12);
    color: var(--shop-text);
}

.shop-header-nav-btn:focus-visible {
    outline: 2px solid var(--shop-cyan);
    outline-offset: 2px;
}

.shop-header-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 10px;
    background: rgba(124, 92, 255, .16);
    color: #cfc6ff;
}

.shop-header-nav-text {
    display: inline-block;
    font-weight: 600;
}

.shop-header-nav-badge {
    margin-inline-start: 4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--shop-grad);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shop-header-nav-badge.is-empty {
    background: rgba(255, 255, 255, .12);
    color: var(--shop-dim);
}

.shop-header-nav-btn-account .shop-header-nav-icon,
.shop-header-nav-btn-signin .shop-header-nav-icon {
    background: rgba(124, 92, 255, .16);
}

.shop-footer-menu {
    display: none;
}

.shop-footer-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--shop-r-sm);
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--shop-border);
    color: var(--shop-text);
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
}

.shop-footer-menu-btn:hover {
    border-color: var(--shop-violet);
}

.shop-footer-menu-bars {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 18px;
}

.shop-footer-menu-bars i {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--shop-text);
    transition: transform .2s ease, opacity .2s ease;
}

.shop-footer-menu-btn[aria-expanded="true"] .shop-footer-menu-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.shop-footer-menu-btn[aria-expanded="true"] .shop-footer-menu-bars i:nth-child(2) { opacity: 0; }
.shop-footer-menu-btn[aria-expanded="true"] .shop-footer-menu-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.shop-footer-menu-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.shop-footer-menu-links a {
    flex: 1 1 auto;
    text-align: center;
    padding: 11px 14px;
    border-radius: var(--shop-r-sm);
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--shop-border);
    color: var(--shop-text);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
}

.shop-footer-menu-links a:hover {
    border-color: var(--shop-violet);
}

/* ----------------------------- Alerts ----------------------------- */

.shop-alert {
    margin-bottom: 24px;
    padding: 14px 18px;
    border-radius: var(--shop-r-sm);
    border: 1px solid;
    font-size: .94rem;
}

.shop-alert ul {
    margin: 8px 0 0;
    padding-inline-start: 20px;
}

.shop-alert.is-success {
    background: rgba(34, 197, 94, .1);
    border-color: rgba(34, 197, 94, .32);
    color: #b6f5cd;
}

.shop-alert.is-error {
    background: rgba(239, 68, 68, .1);
    border-color: rgba(239, 68, 68, .34);
    color: #ffc4c4;
}

.shop-alert.is-info {
    background: rgba(34, 211, 238, .1);
    border-color: rgba(34, 211, 238, .3);
    color: #b5eefb;
}

.shop-alert.is-warning {
    background: rgba(245, 158, 11, .1);
    border-color: rgba(245, 158, 11, .32);
    color: #fde0a8;
}

/* ----------------------------- Hero ----------------------------- */

.shop-hero {
    padding: 56px 0 40px;
}

.shop-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
    gap: 34px;
    align-items: center;
}

/* Hero without the "How it works" card — one centred column. */
.shop-hero-grid.is-single {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
}

.shop-hero-grid.is-single .shop-hero-copy {
    max-width: 780px;
    width: 100%;
}

.shop-hero-grid.is-single .shop-hero-copy > p {
    margin-left: auto;
    margin-right: auto;
}

.shop-hero-grid.is-single .shop-search {
    justify-content: center;
    max-width: 640px;
    margin: 0 auto;
}

.shop-hero-grid.is-single .shop-hero-stats {
    max-width: 720px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.shop-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(124, 92, 255, .14);
    border: 1px solid rgba(124, 92, 255, .32);
    color: #cfc6ff;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.shop-hero-copy h1 {
    margin: 18px 0 14px;
    font-size: clamp(2rem, 4.6vw, 3.35rem);
    line-height: 1.06;
    font-weight: 800;
    background: linear-gradient(120deg, #ffffff 25%, #b9a9ff 70%, #7ce7f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shop-hero-copy > p {
    color: var(--shop-muted);
    font-size: 1.03rem;
    max-width: 60ch;
    line-height: 1.65;
}

.shop-search {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 8px;
    padding: 10px;
    border-radius: var(--shop-r);
    background: var(--shop-card);
    border: 1px solid var(--shop-border);
    box-shadow: var(--shop-shadow);
}

.shop-search input[type="search"] {
    flex: 1 1 260px;
    min-width: 0;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-r-sm);
    padding: 12px 16px;
    color: var(--shop-text);
    font-size: .95rem;
}

.shop-search input[type="search"]::placeholder {
    color: var(--shop-dim);
}

.shop-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
}

.shop-hero-stats li {
    background: var(--shop-card);
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-r-sm);
    padding: 14px 16px;
}

.shop-hero-stats strong {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.shop-hero-stats span {
    font-size: .76rem;
    color: var(--shop-dim);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.shop-hero-card {
    background: var(--shop-grad-soft);
    border: 1px solid var(--shop-border-2);
    border-radius: var(--shop-r-lg);
    padding: 28px;
    box-shadow: var(--shop-shadow-lg);
}

.shop-hero-card h2 {
    font-size: 1.12rem;
    margin-bottom: 18px;
}

.shop-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.shop-steps li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--shop-muted);
    font-size: .93rem;
    line-height: 1.5;
}

.shop-steps span {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--shop-grad);
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shop-hero-note {
    margin: 20px 0 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .82rem;
    color: var(--shop-muted);
}

/* ----------------------------- Toolbar ----------------------------- */

.shop-toolbar {
    position: sticky;
    top: 74px;
    z-index: 40;
    padding: 18px 0;
    background: rgba(7, 8, 16, .9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-block: 1px solid var(--shop-border);
}

.shop-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.shop-section-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.shop-count {
    font-size: .82rem;
    font-weight: 500;
    color: var(--shop-dim);
}

.shop-toolbar-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.shop-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.shop-field > span {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--shop-dim);
}

.shop-field select,
.shop-field input {
    background: var(--shop-card-2);
    border: 1px solid var(--shop-border);
    border-radius: 10px;
    color: var(--shop-text);
    padding: 9px 12px;
    font-size: .88rem;
}

.shop-field-inline {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.shop-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .88rem;
    color: var(--shop-muted);
    cursor: pointer;
}

.shop-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--shop-violet);
}

.shop-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.shop-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--shop-card-2);
    border: 1px solid var(--shop-border);
    color: var(--shop-muted);
    font-size: .86rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .18s ease;
}

.shop-chip:hover {
    color: var(--shop-text);
    border-color: var(--shop-border-2);
    transform: translateY(-1px);
}

.shop-chip.is-active {
    background: var(--shop-grad);
    border-color: transparent;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 22px -10px rgba(124, 92, 255, .9);
}

.shop-chip-n {
    font-size: .74rem;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
}

/* ----------------------------- Product grid ----------------------------- */

.shop-grid-wrap {
    padding: 34px 0 0;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 22px;
}

.p-card {
    display: flex;
    flex-direction: column;
    background: var(--shop-card);
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-r);
    overflow: hidden;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.p-card:hover {
    transform: translateY(-5px);
    border-color: var(--shop-border-2);
    box-shadow: var(--shop-shadow-lg);
}

.p-card.is-featured {
    border-color: rgba(124, 92, 255, .45);
    box-shadow: 0 0 0 1px rgba(124, 92, 255, .2), var(--shop-shadow);
}

.p-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--shop-card-2);
    overflow: hidden;
}

.p-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.p-card:hover .p-card-media img {
    transform: scale(1.05);
}

.p-card-media-fallback,
.prod-cover-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, rgba(124, 92, 255, .28), rgba(34, 211, 238, .18));
}

.p-card-media-fallback[data-color="2"],
.prod-cover-fallback[data-color="2"] { background: linear-gradient(140deg, rgba(34, 211, 238, .3), rgba(59, 130, 246, .2)); }
.p-card-media-fallback[data-color="3"],
.prod-cover-fallback[data-color="3"] { background: linear-gradient(140deg, rgba(168, 85, 247, .3), rgba(217, 70, 239, .18)); }
.p-card-media-fallback[data-color="4"],
.prod-cover-fallback[data-color="4"] { background: linear-gradient(140deg, rgba(245, 158, 11, .3), rgba(239, 68, 68, .18)); }
.p-card-media-fallback[data-color="5"],
.prod-cover-fallback[data-color="5"] { background: linear-gradient(140deg, rgba(16, 185, 129, .3), rgba(34, 197, 94, .18)); }

.p-card-media-icon {
    font-size: 3rem;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .5));
}

.p-card-off {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f43f5e, #f97316);
    color: #fff;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .04em;
    box-shadow: 0 8px 20px -8px rgba(244, 63, 94, .9);
}

.p-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    flex: 1;
}

.p-card-cat {
    align-self: flex-start;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    background: rgba(124, 92, 255, .16);
    color: #cfc6ff;
    border: 1px solid rgba(124, 92, 255, .3);
}

.p-card-cat[data-color="2"] { background: rgba(34, 211, 238, .14); color: #a9ecf9; border-color: rgba(34, 211, 238, .3); }
.p-card-cat[data-color="3"] { background: rgba(168, 85, 247, .16); color: #e2c4ff; border-color: rgba(168, 85, 247, .3); }
.p-card-cat[data-color="4"] { background: rgba(245, 158, 11, .15); color: #fcd9a0; border-color: rgba(245, 158, 11, .3); }
.p-card-cat[data-color="5"] { background: rgba(16, 185, 129, .15); color: #a7f3d0; border-color: rgba(16, 185, 129, .3); }

.p-card-title {
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.p-card-title a {
    text-decoration: none;
}

.p-card-title a:hover {
    color: #c4b5fd;
}

.p-card-tagline {
    margin: 0;
    font-size: .88rem;
    color: var(--shop-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.p-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.p-chip {
    padding: 3px 9px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--shop-border);
    color: var(--shop-dim);
    font-size: .72rem;
    font-weight: 600;
}

.p-card-price {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--shop-border);
}

.p-card-price-main {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.p-card-price-main strong {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -.02em;
    background: var(--shop-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.p-card-usd {
    color: var(--shop-muted);
    font-size: .88rem;
    font-weight: 600;
}

.p-card-was {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: .82rem;
    color: var(--shop-dim);
}

.p-card-was del {
    color: var(--shop-dim);
}

.p-card-was-usd {
    opacity: .75;
}

.p-card-save {
    color: #86efac;
    font-weight: 700;
}

.p-card-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 4px;
}

/* ----------------------------- Pagination ----------------------------- */

.shop-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 42px;
    flex-wrap: wrap;
}

.shop-pager-step {
    padding: 10px 18px;
    border-radius: var(--shop-r-sm);
    background: var(--shop-card-2);
    border: 1px solid var(--shop-border);
    color: var(--shop-muted);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 600;
}

.shop-pager-step:hover:not(.is-disabled) {
    color: var(--shop-text);
    border-color: var(--shop-violet);
}

.shop-pager-step.is-disabled {
    opacity: .4;
}

.shop-pager-nums {
    display: flex;
    gap: 6px;
}

.shop-pager-num {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    background: var(--shop-card-2);
    border: 1px solid var(--shop-border);
    color: var(--shop-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
}

.shop-pager-num.is-current {
    background: var(--shop-grad);
    border-color: transparent;
    color: #fff;
}

/* ----------------------------- Empty states ----------------------------- */

.shop-empty {
    text-align: center;
    padding: 72px 24px;
    background: var(--shop-card);
    border: 1px dashed var(--shop-border-2);
    border-radius: var(--shop-r-lg);
}

.shop-empty.is-small {
    padding: 34px 20px;
    border-radius: var(--shop-r);
}

.shop-empty h1,
.shop-empty h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 10px;
}

.shop-empty p {
    color: var(--shop-muted);
    max-width: 52ch;
    margin: 0 auto 22px;
}

/* ----------------------------- Product page ----------------------------- */

.prod {
    padding-bottom: 20px;
}

.shop-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    font-size: .84rem;
    color: var(--shop-dim);
    margin-bottom: 24px;
}

.shop-crumbs a {
    color: var(--shop-muted);
    text-decoration: none;
}

.shop-crumbs a:hover {
    color: var(--shop-violet);
}

.shop-crumbs-current {
    color: var(--shop-text);
    font-weight: 600;
}

.prod-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

.prod-cover {
    position: relative;
    border-radius: var(--shop-r-lg);
    overflow: hidden;
    border: 1px solid var(--shop-border);
    aspect-ratio: 16 / 10;
    background: var(--shop-card-2);
    box-shadow: var(--shop-shadow-lg);
}

.prod-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prod-cover-icon {
    font-size: 5rem;
}

.prod-cover-fallback {
    flex-direction: column;
    gap: 12px;
    color: rgba(255, 255, 255, .8);
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    font-size: .8rem;
}

.prod-cover-off {
    position: absolute;
    top: 16px;
    inset-inline-start: 16px;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f43f5e, #f97316);
    color: #fff;
    font-size: .82rem;
    font-weight: 800;
    box-shadow: 0 10px 24px -8px rgba(244, 63, 94, .95);
}

.prod-demo {
    margin-top: 20px;
    padding: 18px;
    border-radius: var(--shop-r);
    background: var(--shop-card);
    border: 1px solid var(--shop-border);
    text-align: center;
}

.prod-demo-label {
    margin: 0 0 12px;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--shop-dim);
    font-weight: 700;
}

.prod-demo small {
    display: block;
    margin-top: 10px;
    color: var(--shop-dim);
    font-size: .78rem;
}

.prod-assurances {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.prod-assurances li {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: .89rem;
    color: var(--shop-muted);
}

.prod-assurances span {
    color: #4ade80;
    font-weight: 800;
}

.prod-cat {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(124, 92, 255, .16);
    border: 1px solid rgba(124, 92, 255, .32);
    color: #cfc6ff;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.prod-title {
    margin: 16px 0 10px;
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.14;
}

.prod-tagline {
    margin: 0 0 22px;
    color: var(--shop-muted);
    font-size: 1.02rem;
    line-height: 1.6;
}

.prod-price-box {
    padding: 20px 22px;
    border-radius: var(--shop-r);
    background: var(--shop-grad-soft);
    border: 1px solid var(--shop-border-2);
}

.prod-price-now {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.prod-price-now strong {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -.03em;
    background: var(--shop-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.prod-price-usd {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--shop-muted);
}

.prod-price-now small {
    flex-basis: 100%;
    color: var(--shop-dim);
    font-size: .76rem;
}

.prod-price-was {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .9rem;
    color: var(--shop-dim);
}

.prod-price-badge {
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(34, 197, 94, .16);
    border: 1px solid rgba(34, 197, 94, .4);
    color: #86efac;
    font-weight: 800;
    font-size: .78rem;
}

.prod-price-save {
    color: #86efac;
    font-weight: 700;
    font-size: .84rem;
}

.prod-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
    margin: 22px 0;
}

.prod-specs div {
    padding: 10px 14px;
    border-radius: var(--shop-r-sm);
    background: var(--shop-card);
    border: 1px solid var(--shop-border);
}

.prod-specs dt {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--shop-dim);
    font-weight: 700;
}

.prod-specs dd {
    margin: 4px 0 0;
    font-size: .93rem;
    font-weight: 600;
}

.prod-short {
    color: var(--shop-muted);
    line-height: 1.65;
    font-size: .95rem;
}

.prod-actions {
    display: grid;
    gap: 10px;
    margin: 24px 0 12px;
}

.prod-login-note {
    font-size: .85rem;
    color: var(--shop-dim);
    text-align: center;
    margin: 0;
}

.prod-login-note a,
.cart-login-hint a,
.cart-continue a,
.checkout-back a,
.order-locked a,
.prod-back a,
.shop-empty a {
    color: #c4b5fd;
    font-weight: 600;
    text-decoration: none;
}

.prod-login-note a:hover,
.cart-login-hint a:hover,
.prod-back a:hover {
    text-decoration: underline;
}

.prod-pay-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-radius: var(--shop-r-sm);
    background: var(--shop-card-2);
    border: 1px solid var(--shop-border);
    font-size: .85rem;
}

.prod-pay-strip > span:first-child {
    color: var(--shop-dim);
    font-weight: 700;
    text-transform: uppercase;
    font-size: .74rem;
    letter-spacing: .06em;
}

.prod-pay-chip {
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--shop-border);
    font-weight: 600;
}

.prod-pay-strip em {
    color: var(--shop-amber);
    font-style: normal;
}

/* ----------------------------- Tabs ----------------------------- */

.shop-tabs {
    margin-top: 56px;
}

.shop-tab-bar {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--shop-border);
    overflow-x: auto;
}

.shop-tab-btn {
    padding: 13px 20px;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--shop-muted);
    font-size: .93rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
}

.shop-tab-btn:hover {
    color: var(--shop-text);
}

.shop-tab-btn.is-active {
    color: #fff;
    border-bottom-color: var(--shop-violet);
}

.shop-tab-panel {
    display: none;
    padding: 26px 4px;
    color: var(--shop-muted);
    line-height: 1.7;
    max-width: 82ch;
}

.shop-tab-panel.is-active {
    display: block;
}

.prod-file-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.prod-file-list li,
.order-files li,
.acct-dl-files li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--shop-r-sm);
    background: var(--shop-card);
    border: 1px solid var(--shop-border);
}

.prod-file-ext {
    flex: 0 0 auto;
    min-width: 46px;
    padding: 5px 8px;
    border-radius: 7px;
    background: rgba(124, 92, 255, .16);
    border: 1px solid rgba(124, 92, 255, .3);
    color: #cfc6ff;
    font-size: .7rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: .04em;
}

.prod-file-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.prod-file-info small {
    color: var(--shop-dim);
    font-size: .78rem;
    word-break: break-word;
}

.prod-file-lock {
    margin-inline-start: auto;
}

.prod-related {
    margin-top: 60px;
    padding-top: 36px;
    border-top: 1px solid var(--shop-border);
}

.prod-related .shop-section-title {
    margin-bottom: 22px;
}

.prod-back {
    margin-top: 36px;
    font-size: .9rem;
}

/* ----------------------------- Page headings ----------------------------- */

.shop-page-title {
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.03em;
    margin: 0 0 8px;
}

.shop-page-sub {
    color: var(--shop-muted);
    margin: 0 0 30px;
    max-width: 74ch;
    line-height: 1.6;
}

/* ----------------------------- Forms ----------------------------- */

.field-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 20px;
}

.field-group label,
.acct-form label {
    font-size: .86rem;
    font-weight: 600;
    color: var(--shop-muted);
}

.field-group input[type="text"],
.field-group input[type="email"],
.field-group input[type="password"],
.field-group input[type="number"],
.field-group select,
.field-group textarea,
.acct-form input,
.acct-form textarea,
.support-form input,
.support-form select,
.support-form textarea,
.chat-form textarea {
    width: 100%;
    background: var(--shop-card-2);
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-r-sm);
    padding: 12px 15px;
    color: var(--shop-text);
    font-size: .94rem;
    font-family: inherit;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus,
.acct-form input:focus,
.acct-form textarea:focus,
.chat-form textarea:focus {
    outline: none;
    border-color: var(--shop-violet);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, .2);
}

.field-group input[type="file"] {
    width: 100%;
    padding: 12px;
    background: var(--shop-card-2);
    border: 1px dashed var(--shop-border-2);
    border-radius: var(--shop-r-sm);
    color: var(--shop-muted);
    font-size: .87rem;
}

.field-group input[type="file"]::file-selector-button {
    background: var(--shop-grad);
    color: #fff;
    border: 0;
    border-radius: 9px;
    padding: 9px 16px;
    font-weight: 700;
    font-family: inherit;
    font-size: .85rem;
    margin-inline-end: 12px;
    cursor: pointer;
}

.field-group textarea,
.support-form textarea,
.chat-form textarea {
    resize: vertical;
    line-height: 1.6;
}

.req {
    color: #fca5a5;
}

.shop-help,
.field-hint {
    color: var(--shop-dim);
    font-size: .82rem;
    line-height: 1.55;
}

.shop-help {
    margin: 0 0 18px;
}

.proof-preview {
    margin-top: 14px;
    border-radius: var(--shop-r-sm);
    overflow: hidden;
    border: 1px solid var(--shop-border);
    background: var(--shop-card-2);
    max-width: 340px;
}

.proof-preview img {
    display: block;
    width: 100%;
}

/* ----------------------------- Cart ----------------------------- */

.cart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, .9fr);
    gap: 28px;
    align-items: start;
}

.cart-items {
    display: grid;
    gap: 16px;
}

.cart-item {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr) auto auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: var(--shop-r);
    background: var(--shop-card);
    border: 1px solid var(--shop-border);
}

.cart-item-media {
    display: block;
    aspect-ratio: 3 / 2;
    border-radius: var(--shop-r-sm);
    overflow: hidden;
    background: var(--shop-card-2);
}

.cart-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-fallback,
.checkout-item-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: var(--shop-grad-soft);
}

.cart-item-info h2 {
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.cart-item-info h2 a {
    text-decoration: none;
}

.cart-item-info h2 a:hover {
    color: #c4b5fd;
}

.cart-item-cat {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--shop-violet);
    font-weight: 700;
}

.cart-item-desc {
    margin: 6px 0 8px;
    font-size: .86rem;
    color: var(--shop-muted);
    line-height: 1.5;
}

.cart-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.cart-item-demo {
    font-size: .78rem;
    color: #c4b5fd;
    text-decoration: none;
    font-weight: 600;
}

.cart-item-owned {
    margin: 8px 0 0;
    font-size: .8rem;
    color: #86efac;
}

.cart-item-price {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-end;
}

.cart-item-price strong {
    font-size: 1.12rem;
    font-weight: 800;
}

.cart-item-usd {
    font-size: .82rem;
    color: var(--shop-muted);
}

.cart-item-price del {
    font-size: .8rem;
    color: var(--shop-dim);
}

.cart-item-off {
    font-size: .72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(34, 197, 94, .16);
    color: #86efac;
}

.cart-summary {
    position: sticky;
    top: 96px;
    padding: 24px;
    border-radius: var(--shop-r);
    background: var(--shop-card);
    border: 1px solid var(--shop-border);
    box-shadow: var(--shop-shadow);
}

.cart-summary h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.cart-totals {
    margin: 0 0 20px;
}

.cart-totals > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
}

.cart-totals dt {
    color: var(--shop-muted);
    font-size: .9rem;
}

.cart-totals dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}

.cart-totals dd small {
    color: var(--shop-dim);
    font-weight: 500;
    font-size: .78rem;
}

.cart-totals-save dt,
.cart-totals-save dd {
    color: #86efac;
}

.cart-totals-grand {
    margin-top: 8px;
    padding-top: 14px !important;
    border-top: 1px solid var(--shop-border);
}

.cart-totals-grand dt {
    color: var(--shop-text);
    font-weight: 700;
}

.cart-totals-grand dd strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.02em;
    background: var(--shop-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cart-totals-grand dd span {
    font-size: .82rem;
    color: var(--shop-muted);
    font-weight: 600;
}

.cart-login-hint {
    text-align: center;
    font-size: .84rem;
    color: var(--shop-dim);
    margin: 12px 0 0;
}

.cart-clear {
    margin-top: 10px;
}

.cart-summary-note {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--shop-border);
}

.cart-summary-note h3 {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--shop-dim);
    margin-bottom: 10px;
}

.cart-summary-note ol {
    margin: 0;
    padding-inline-start: 18px;
    color: var(--shop-muted);
    font-size: .84rem;
    line-height: 1.8;
}

.cart-continue {
    margin-top: 26px;
    font-size: .9rem;
}

/* ----------------------------- Checkout ----------------------------- */

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, .95fr);
    gap: 28px;
    align-items: start;
}

.checkout-block h2 {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.checkout-summary {
    position: sticky;
    top: 96px;
}

.checkout-summary h2 {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.checkout-items {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: grid;
    gap: 12px;
}

.checkout-items li {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.checkout-items img {
    width: 56px;
    height: 40px;
    object-fit: cover;
    border-radius: 9px;
}

.checkout-item-name,
.checkout-item-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.checkout-item-name strong {
    font-size: .92rem;
}

.checkout-item-name small,
.checkout-item-price small {
    color: var(--shop-dim);
    font-size: .76rem;
}

.checkout-item-price {
    text-align: right;
}

.checkout-pay-exact {
    padding: 12px 14px;
    border-radius: var(--shop-r-sm);
    background: rgba(245, 158, 11, .1);
    border: 1px solid rgba(245, 158, 11, .3);
    color: #fde0a8;
    font-size: .86rem;
    margin-bottom: 18px;
}

.checkout-fine {
    margin: 16px 0 0;
    font-size: .78rem;
    line-height: 1.6;
    color: var(--shop-dim);
}

.checkout-back {
    margin-top: 16px;
    font-size: .88rem;
}

/* Payment method radios */

.pay-methods {
    display: grid;
    gap: 12px;
}

.pay-method {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    border-radius: var(--shop-r-sm);
    background: var(--shop-card-2);
    border: 1px solid var(--shop-border);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}

.pay-method:hover {
    border-color: var(--shop-border-2);
}

.pay-method.is-selected {
    border-color: var(--shop-violet);
    background: rgba(124, 92, 255, .1);
    box-shadow: 0 0 0 1px var(--shop-violet);
}

.pay-method input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pay-method-icon {
    font-size: 1.5rem;
}

.pay-method-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.pay-method-body strong {
    font-size: .96rem;
}

.pay-method-body small {
    color: var(--shop-muted);
    font-size: .83rem;
    word-break: break-word;
}

.pay-method-tick {
    margin-inline-start: auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--shop-border-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: .8rem;
    flex: 0 0 auto;
}

.pay-method.is-selected .pay-method-tick {
    background: var(--shop-grad);
    border-color: transparent;
    color: #fff;
}

.pay-instructions {
    margin: 18px 0 0;
    padding: 14px 16px;
    border-radius: var(--shop-r-sm);
    background: rgba(34, 211, 238, .08);
    border: 1px solid rgba(34, 211, 238, .26);
    color: #b5eefb;
    font-size: .86rem;
    line-height: 1.6;
}

/* ----------------------------- Status pills ----------------------------- */

.shop-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 700;
    border: 1px solid;
    white-space: nowrap;
}

.shop-status.is-sm {
    padding: 4px 11px;
    font-size: .74rem;
}

.shop-status.is-paid {
    background: rgba(34, 197, 94, .12);
    border-color: rgba(34, 197, 94, .38);
    color: #86efac;
}

.shop-status.is-pending {
    background: rgba(245, 158, 11, .12);
    border-color: rgba(245, 158, 11, .38);
    color: #fcd9a0;
}

.shop-status.is-failed {
    background: rgba(239, 68, 68, .12);
    border-color: rgba(239, 68, 68, .38);
    color: #fca5a5;
}

/* ----------------------------- Order page ----------------------------- */

.order-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.order-notice {
    padding: 22px 24px;
    border-radius: var(--shop-r);
    border: 1px solid;
    margin-bottom: 26px;
}

.order-notice h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.order-notice p {
    margin: 0;
    font-size: .92rem;
    line-height: 1.65;
    max-width: 82ch;
}

.order-notice a {
    color: inherit;
    font-weight: 700;
}

.order-notice.is-ok {
    background: rgba(34, 197, 94, .1);
    border-color: rgba(34, 197, 94, .34);
    color: #c9f7d9;
}

.order-notice.is-wait {
    background: rgba(245, 158, 11, .1);
    border-color: rgba(245, 158, 11, .34);
    color: #fdeac4;
}

.order-notice.is-bad {
    background: rgba(239, 68, 68, .1);
    border-color: rgba(239, 68, 68, .34);
    color: #ffd4d4;
}

.order-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr);
    gap: 24px;
    align-items: start;
}

.order-block h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.order-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}

.order-item {
    padding: 18px;
    border-radius: var(--shop-r-sm);
    background: var(--shop-card-2);
    border: 1px solid var(--shop-border);
}

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

.order-item-head h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.order-item-head h3 a {
    text-decoration: none;
}

.order-item-head h3 a:hover {
    color: #c4b5fd;
}

.order-item-meta {
    margin: 0;
    font-size: .82rem;
    color: var(--shop-dim);
}

.order-files,
.acct-dl-files {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.order-files a,
.acct-dl-files a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--shop-r-sm);
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--shop-border);
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease;
}

.order-files a:hover,
.acct-dl-files a:hover {
    border-color: var(--shop-violet);
    background: rgba(124, 92, 255, .1);
}

.order-file-name,
.acct-dl-name {
    font-size: .9rem;
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-file-size,
.acct-dl-size {
    margin-inline-start: auto;
    font-size: .78rem;
    color: var(--shop-dim);
    white-space: nowrap;
}

.order-file-go,
.acct-dl-go {
    font-size: .78rem;
    font-weight: 700;
    color: #c4b5fd;
    white-space: nowrap;
}

.order-locked {
    margin: 0;
    font-size: .84rem;
    color: var(--shop-dim);
}

.order-facts > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid var(--shop-border);
}

.order-facts > div:last-child {
    border-bottom: 0;
}

.order-facts dt {
    color: var(--shop-muted);
    font-size: .87rem;
}

.order-facts dd {
    margin: 0;
    text-align: right;
    font-size: .9rem;
}

.order-facts dd small {
    display: block;
    color: var(--shop-dim);
    font-size: .76rem;
}

.license-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--shop-r-sm);
    background: rgba(124, 92, 255, .1);
    border: 1px solid rgba(124, 92, 255, .3);
    margin-bottom: 10px;
}

.license-box code {
    flex: 1;
    font-size: .95rem;
    letter-spacing: .06em;
    background: none;
    border: 0;
    color: #d6ccff;
}

.order-reproof {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--shop-border);
    display: grid;
    gap: 9px;
}

.order-reproof label {
    font-size: .84rem;
    font-weight: 600;
    color: var(--shop-muted);
}

.order-reproof input[type="file"] {
    padding: 10px;
    background: var(--shop-card-2);
    border: 1px dashed var(--shop-border-2);
    border-radius: var(--shop-r-sm);
    color: var(--shop-muted);
    font-size: .82rem;
    width: 100%;
}

.order-cancel {
    margin-top: 10px;
}

/* ----------------------------- Account ----------------------------- */

.acct-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.acct-id {
    display: flex;
    align-items: center;
    gap: 16px;
}

.acct-avatar,
.acct-avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--shop-grad);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    flex: 0 0 auto;
}

.acct-id .shop-page-title {
    margin: 0 0 4px;
    font-size: 1.6rem;
}

.acct-id .shop-page-sub {
    margin: 0;
    font-size: .86rem;
}

.acct-head-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.acct-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}

.acct-stats li {
    padding: 18px;
    border-radius: var(--shop-r);
    background: var(--shop-card);
    border: 1px solid var(--shop-border);
}

.acct-stats strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.02em;
    background: var(--shop-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.acct-stats span {
    font-size: .78rem;
    color: var(--shop-dim);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.acct-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.acct-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.acct-block-head h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.acct-downloads,
.acct-licences,
.acct-tickets,
.support-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.acct-downloads > li {
    padding: 16px;
    border-radius: var(--shop-r-sm);
    background: var(--shop-card-2);
    border: 1px solid var(--shop-border);
}

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

.acct-dl-head h3 {
    font-size: .98rem;
    font-weight: 700;
    margin: 0 0 3px;
}

.acct-dl-head p {
    margin: 0;
    font-size: .78rem;
}

.acct-licences > li,
.acct-tickets > li,
.support-list > li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--shop-r-sm);
    background: var(--shop-card-2);
    border: 1px solid var(--shop-border);
}

.acct-licences .license-box {
    margin: 0;
}

.acct-tickets a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.acct-tickets strong,
.support-list strong {
    display: block;
    font-size: .93rem;
}

.acct-tickets small,
.support-list small {
    font-size: .78rem;
}

.acct-divider {
    border: 0;
    border-top: 1px solid var(--shop-border);
    margin: 24px 0;
}

.acct-block h3 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.acct-form {
    display: grid;
    gap: 0;
}

.acct-form label {
    display: grid;
    gap: 7px;
}

.acct-form input:disabled {
    opacity: .6;
}

/* ----------------------------- Support ----------------------------- */

.support-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, .85fr);
    gap: 24px;
    align-items: start;
}

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

.support-head h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.support-head p {
    margin: 0;
    font-size: .84rem;
}

.support-topics {
    margin: 0 0 14px;
    padding-inline-start: 18px;
    color: var(--shop-muted);
    font-size: .88rem;
    line-height: 1.9;
}

.support-main h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.support-side .card h3 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.support-side .card + .card {
    margin-top: 20px;
}

/* Chat */

.chat-log {
    display: grid;
    gap: 14px;
    max-height: 520px;
    overflow-y: auto;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: var(--shop-r-sm);
    background: var(--shop-card-2);
    border: 1px solid var(--shop-border);
}

.chat-msg {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 78%;
}

.chat-msg.is-staff {
    margin-inline-start: auto;
    align-items: flex-end;
}

.chat-who {
    font-size: .74rem;
    font-weight: 700;
    color: var(--shop-dim);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: 14px;
    font-size: .92rem;
    line-height: 1.6;
    word-break: break-word;
}

.is-customer .chat-bubble {
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--shop-border);
    border-bottom-left-radius: 4px;
}

.is-staff .chat-bubble {
    background: var(--shop-grad);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-time {
    font-size: .7rem;
    color: var(--shop-dim);
}

.chat-form {
    display: grid;
    gap: 10px;
}

.chat-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* ----------------------------- Footer ----------------------------- */

.shop-footer {
    border-top: 1px solid var(--shop-border);
    background: var(--shop-bg-soft);
    padding: 54px 0 26px;
    margin-top: 20px;
}

.shop-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
    gap: 34px;
}

.shop-footer-col h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 12px;
}

.shop-footer-col h4 {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--shop-dim);
    margin: 0 0 12px;
}

.shop-footer-col p,
.shop-footer-col a {
    display: block;
    color: var(--shop-muted);
    font-size: .88rem;
    line-height: 1.7;
    text-decoration: none;
    margin-bottom: 8px;
}

.shop-footer-col a:hover {
    color: var(--shop-text);
}

.shop-footer-note {
    font-size: .84rem !important;
}

.shop-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid var(--shop-border);
    color: var(--shop-dim);
    font-size: .82rem;
}

.shop-footer-bottom p {
    margin: 0;
}

.shop-to-top {
    position: fixed;
    inset-inline-end: 22px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--shop-grad);
    color: #fff;
    border: 0;
    cursor: pointer;
    font-size: 1.1rem;
    box-shadow: var(--shop-shadow-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
    z-index: 70;
}

.shop-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.shop-to-top:hover {
    transform: translateY(-3px);
}

/* ----------------------------- Utilities ----------------------------- */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.table-scroll {
    overflow-x: auto;
}

.post-rich {
    color: var(--shop-muted);
}

.post-rich h2,
.post-rich h3 {
    color: var(--shop-text);
}

.post-rich a {
    color: #c4b5fd;
}

/* ==========================================================================
   Modern storefront refresh
   --------------------------------------------------------------------------
   Hero copy block, search field with an icon, category rail, active-filter
   chips, the featured strip, card quick-order actions, the crypto payment
   panel on the order page, and the trust strip under the grid.
   ========================================================================== */

/* ----------------------------- Hero copy ----------------------------- */

.shop-hero-title {
    margin: 18px 0 14px;
    font-size: clamp(2rem, 4.6vw, 3.35rem);
    line-height: 1.06;
    font-weight: 800;
    background: linear-gradient(120deg, #ffffff 25%, #b9a9ff 70%, #7ce7f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shop-hero-lead {
    color: var(--shop-muted);
    font-size: 1.03rem;
    line-height: 1.65;
    max-width: 62ch;
}

.shop-eyebrow-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--shop-green);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .18);
    animation: shop-pulse 2.4s ease-in-out infinite;
}

@keyframes shop-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .35; }
}

.shop-hero-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--shop-dim);
    font-size: .85rem;
}

.shop-hero-note .prod-pay-chip {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--shop-border);
    border-radius: 999px;
    padding: 5px 12px;
    color: var(--shop-muted);
    font-size: .8rem;
    white-space: nowrap;
}

/* The search icon sits inside the field, so the input keeps its own padding. */
.shop-search {
    position: relative;
}

.shop-search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--shop-dim);
    pointer-events: none;
}

.shop-search input[type="search"] {
    padding-left: 48px;
}

.shop-search input[type="search"]:focus-visible {
    outline: none;
    border-color: var(--shop-violet);
    box-shadow: 0 0 0 4px rgba(124, 92, 255, .18);
}

/* ----------------------------- Section head ----------------------------- */

.shop-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.shop-section-link {
    color: var(--shop-muted);
    font-size: .9rem;
    font-weight: 500;
}

.shop-section-link:hover {
    color: var(--shop-text);
}

/* ----------------------------- Featured strip ----------------------------- */

.shop-featured {
    padding: 8px 0 44px;
}

.shop-featured .p-card {
    border-color: rgba(124, 92, 255, .38);
    background:
        linear-gradient(180deg, rgba(124, 92, 255, .1) 0%, transparent 55%),
        var(--shop-card);
}

.shop-featured .p-card-title {
    font-size: 1.06rem;
}

/* ----------------------------- Active filter chips ----------------------------- */

.shop-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    align-items: center;
}

.shop-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(124, 92, 255, .14);
    border: 1px solid rgba(124, 92, 255, .32);
    color: #cfc6ff;
    font-size: .8rem;
    font-weight: 500;
}

.shop-filter-tag span {
    font-size: 1rem;
    line-height: 1;
    opacity: .75;
}

.shop-filter-tag:hover {
    background: rgba(124, 92, 255, .24);
    color: #fff;
}

.shop-filter-clear {
    font-size: .8rem;
    color: var(--shop-dim);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.shop-filter-clear:hover {
    color: var(--shop-text);
}

/* ----------------------------- Card quick order ----------------------------- */

.p-card-buy,
.p-card-add {
    flex: 1 1 auto;
}

.p-card-add.is-in-cart {
    border-color: var(--shop-green);
    color: var(--shop-green);
}

.p-card-actions {
    flex-wrap: wrap;
}

.p-card-actions form {
    flex: 1 1 auto;
    display: flex;
}

.p-card-actions form .btn {
    width: 100%;
}

.p-card-featured,
.p-card-soon {
    position: absolute;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
    backdrop-filter: blur(6px);
}

.p-card-featured {
    top: 12px;
    left: 12px;
    background: rgba(124, 92, 255, .9);
    color: #fff;
}

.p-card-soon {
    bottom: 12px;
    left: 12px;
    background: rgba(15, 17, 32, .88);
    border: 1px solid var(--shop-border-2);
    color: var(--shop-muted);
    font-weight: 500;
}

.p-card-cat span {
    margin-right: 5px;
}

.p-chip.is-ok {
    border-color: rgba(34, 197, 94, .34);
    background: rgba(34, 197, 94, .12);
    color: #86efac;
}

.shop-empty-icon {
    display: block;
    font-size: 2.6rem;
    margin-bottom: 12px;
}

/* ----------------------------- Trust strip ----------------------------- */

.shop-assurances {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--shop-border);
}

.shop-assurances > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: center;
    font-size: .84rem;
    color: var(--shop-dim);
}

.shop-assurances > div > span {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.shop-assurances strong {
    color: var(--shop-text);
    font-size: .92rem;
}

/* ----------------------------- Checkout: crypto hints ----------------------------- */

.pay-method-flag {
    align-self: flex-start;
    margin-left: auto;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(34, 197, 94, .14);
    border: 1px solid rgba(34, 197, 94, .32);
    color: #86efac;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pay-method-flag.is-manual {
    background: rgba(255, 255, 255, .05);
    border-color: var(--shop-border-2);
    color: var(--shop-dim);
}

.pay-method-tick {
    margin-left: 8px;
}

.pay-method:has(.pay-method-flag) .pay-method-tick {
    display: none;
}

.pay-crypto-hint {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: var(--shop-r-sm);
    background: rgba(34, 197, 94, .08);
    border: 1px solid rgba(34, 197, 94, .22);
}

.checkout-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--shop-grad-soft);
    border: 1px solid var(--shop-border-2);
    font-size: .8rem;
    vertical-align: middle;
}

.crypto-howto {
    margin: 0 0 16px;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--shop-muted);
    font-size: .92rem;
    line-height: 1.6;
}

.crypto-howto strong {
    color: var(--shop-text);
}

.checkout-crypto-preview {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 16px 0;
    padding: 16px;
    border-radius: var(--shop-r-sm);
    background: rgba(34, 197, 94, .08);
    border: 1px solid rgba(34, 197, 94, .26);
    text-align: center;
}

.checkout-crypto-label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #86efac;
}

.checkout-crypto-amount {
    font-size: 1.5rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.checkout-crypto-preview small {
    color: var(--shop-dim);
    font-size: .78rem;
}

/* ----------------------------- Crypto payment panel ----------------------------- */

.crypto-panel {
    border-color: rgba(34, 197, 94, .3);
    background:
        linear-gradient(180deg, rgba(34, 197, 94, .07) 0%, transparent 40%),
        var(--shop-card);
}

.crypto-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.crypto-panel-head h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.crypto-net {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: var(--shop-r-sm);
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--shop-border);
}

.crypto-net-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.crypto-net-text {
    display: flex;
    flex-direction: column;
}

.crypto-net-text strong {
    font-size: .95rem;
}

.crypto-net-text small {
    color: var(--shop-dim);
    font-size: .78rem;
}

.crypto-amount-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 22px 18px;
    margin-bottom: 16px;
    border-radius: var(--shop-r);
    background: var(--shop-grad-soft);
    border: 1px solid rgba(34, 197, 94, .34);
    text-align: center;
}

.crypto-amount-label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--shop-muted);
}

.crypto-amount {
    font-size: clamp(1.6rem, 4.5vw, 2.1rem);
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    word-break: break-all;
}

.crypto-amount-box small {
    color: var(--shop-dim);
    font-size: .8rem;
}

.crypto-address {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: var(--shop-r-sm);
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--shop-border);
}

.crypto-address-label {
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--shop-dim);
}

.crypto-address-value {
    display: block;
    font-size: .84rem;
    line-height: 1.5;
    word-break: break-all;
    user-select: all;
    background: rgba(0, 0, 0, .28) !important;
}

.crypto-address-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.crypto-qr {
    margin-top: 6px;
}

.crypto-qr summary {
    cursor: pointer;
    color: var(--shop-muted);
    font-size: .84rem;
}

.crypto-qr img {
    margin-top: 12px;
    border-radius: var(--shop-r-sm);
    background: #fff;
    padding: 8px;
    width: 100%;
    max-width: 200px;
    height: auto;
}

.crypto-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    border-radius: var(--shop-r-sm);
    background: rgba(245, 158, 11, .1);
    border: 1px solid rgba(245, 158, 11, .28);
    color: #fcd34d;
    font-size: .85rem;
    font-variant-numeric: tabular-nums;
}

.crypto-timer.is-expired {
    background: rgba(239, 68, 68, .1);
    border-color: rgba(239, 68, 68, .3);
    color: #fca5a5;
}

.crypto-submit {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 16px;
}

.crypto-submit input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--shop-r-sm);
    border: 1px solid var(--shop-border);
    background: rgba(255, 255, 255, .04);
    color: var(--shop-text);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .82rem;
}

.crypto-submit input[type="text"]:focus-visible {
    outline: none;
    border-color: var(--shop-green);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .16);
}

.crypto-submit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.crypto-result {
    padding: 14px;
    border-radius: var(--shop-r-sm);
    background: rgba(0, 0, 0, .22);
    border: 1px solid var(--shop-border);
}

.crypto-facts {
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: .84rem;
}

.crypto-facts > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--shop-border);
}

.crypto-facts > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.crypto-facts dt {
    color: var(--shop-dim);
}

.crypto-facts dd {
    margin: 0;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.crypto-message {
    margin: 0 0 10px;
    color: var(--shop-muted);
    font-size: .86rem;
    line-height: 1.6;
}

.order-notice[data-crypto-state="verified"] {
    border-color: rgba(34, 197, 94, .5);
}

.order-notice[data-crypto-state="failed"] {
    border-color: rgba(239, 68, 68, .5);
}

/* ----------------------------- Responsive ----------------------------- */

@media (max-width: 1100px) {
    .shop-hero-grid { grid-template-columns: 1fr; }
    .prod-grid { grid-template-columns: 1fr; }
    .cart-grid,
    .checkout-grid,
    .order-grid,
    .support-grid { grid-template-columns: 1fr; }
    .cart-summary,
    .checkout-summary { position: static; }
    .shop-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
    /* The header carries a backdrop-filter, and that makes it the containing
       block for its fixed descendants — the nav sheet would anchor to the
       74px header instead of the bottom of the screen and sit on top of the
       page. On a phone the header is opaque anyway, so trade the blur for a
       solid background. */
    .shop-header {
        background: rgba(7, 8, 16, .97);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .shop-header-burger {
        display: inline-flex;
    }

    /* Hide desktop header nav buttons on mobile - they're in the nav drawer */
    .shop-header-nav-btn {
        display: none;
    }

    /* Hide header search on mobile (use hero search instead) */
    .shop-header-search {
        display: none;
    }

    .shop-footer-menu { display: none; }

    /* The nav opens as a bottom sheet because the trigger lives in the header. */
    .shop-nav {
        position: fixed;
        top: auto;
        bottom: 0;
        inset-inline: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 14px var(--gutter) calc(22px + env(safe-area-inset-bottom));
        background: rgba(7, 8, 16, .99);
        border-top: 1px solid var(--shop-border);
        border-radius: 20px 20px 0 0;
        box-shadow: var(--shop-shadow-lg);
        transform: translateY(105%);
        transition: transform .25s ease;
        margin: 0;
        z-index: 55;
        max-height: 82dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .shop-nav.is-open {
        transform: translateY(0);
    }

    .shop-nav-main {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .shop-nav-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        font-size: 1rem;
    }

    .shop-nav-icon {
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
        border-radius: 8px;
        background: transparent;
        color: var(--shop-muted);
    }

    .shop-nav-link.is-active .shop-nav-icon {
        color: var(--shop-violet);
        background: rgba(124, 92, 255, .16);
    }

    /* Store / Cart / Profile shortcuts inside the sheet. */
    .shop-nav-quick {
        display: grid;
        gap: 8px;
        margin-top: 6px;
        padding-top: 12px;
        border-top: 1px solid var(--shop-border);
    }

    .shop-nav-quick-title {
        margin: 0 0 8px;
        padding-inline-start: 4px;
        font-size: .7rem;
        font-weight: 700;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--shop-dim);
    }

    .shop-nav-quick-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 14px;
        border-radius: var(--shop-r-sm);
        border: 1px solid var(--shop-border);
        background: rgba(255, 255, 255, .04);
        color: var(--shop-text);
        text-decoration: none;
        font-size: .95rem;
    }

    .shop-nav-quick-link.is-active {
        border-color: rgba(124, 92, 255, .5);
        background: rgba(124, 92, 255, .14);
    }

    .shop-nav-quick-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        border-radius: 12px;
        background: rgba(124, 92, 255, .18);
        color: #cfc6ff;
    }

    .shop-nav-quick-text {
        display: flex;
        flex-direction: column;
        min-width: 0;
        line-height: 1.3;
    }

    .shop-nav-quick-text strong {
        font-size: 1rem;
        font-weight: 700;
    }

    .shop-nav-quick-text small {
        color: var(--shop-dim);
        font-size: .8rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .shop-nav-quick-badge {
        margin-inline-start: auto;
        min-width: 24px;
        height: 24px;
        padding: 0 7px;
        border-radius: 999px;
        background: var(--shop-grad);
        color: #fff;
        font-size: .78rem;
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .shop-nav-quick-badge.is-empty {
        background: rgba(255, 255, 255, .12);
        color: var(--shop-dim);
    }

    .shop-account-text,
    .shop-cart-label { display: none; }

    .shop-account-btn { padding: 6px; }
    .shop-cart-btn { padding: 9px 11px; }

    .shop-toolbar { position: static; }
    .shop-toolbar-row { flex-direction: column; align-items: flex-start; }
    .shop-toolbar-form { width: 100%; gap: 10px; }
    .shop-toolbar-form .shop-field-inline { flex: 1 1 160px; }
    .shop-toolbar-form .shop-field-inline select { flex: 1; min-width: 0; }
    .shop-toolbar-form .btn { flex: 1 1 100%; }
    .acct-grid { grid-template-columns: 1fr; }
}

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

@media (max-width: 640px) {
    .shop-hero { padding: 34px 0 24px; }
    .shop-hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shop-grid { grid-template-columns: 1fr; }
    .shop-assurances { grid-template-columns: 1fr; gap: 18px; }
    .shop-featured { padding-bottom: 28px; }
    .crypto-panel-head { flex-direction: column; align-items: flex-start; }
    .crypto-submit-actions .btn { flex: 1 1 100%; }
    .crypto-facts > div { flex-direction: column; gap: 2px; }
    .crypto-facts dd { text-align: left; }
    .shop-search-icon { left: 16px; }
    .shop-search input[type="search"] { padding-left: 42px; }
    .prod-specs { grid-template-columns: 1fr; }
    .cart-item { grid-template-columns: 84px minmax(0, 1fr); }
    .cart-item-price { grid-column: 2; text-align: start; align-items: flex-start; }
    .cart-item-remove { grid-column: 1 / -1; }
    .cart-item-remove button { width: 100%; }
    .p-card-actions { grid-template-columns: 1fr; }
    .shop-footer-grid { grid-template-columns: 1fr; }
    .chat-msg { max-width: 92%; }
    .shop-to-top { inset-inline-end: 14px; bottom: 14px; }
}

/* Very narrow phones: keep two comfortable columns instead of a squeezed one. */
@media (max-width: 380px) {
    .shop-cart-btn { padding: 8px 9px; }
    .shop-login-btn { padding: 9px 13px; font-size: .85rem; }
    .shop-grid { grid-template-columns: 1fr; }
    .shop-footer-menu-links a { flex: 1 1 100%; }
}

/* ==========================================================================
   Region switcher — currency + gateway pill (BD ⇄ international)
   ========================================================================== */

.shop-region {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 5px 5px 11px;
    border: 1px solid var(--shop-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
    white-space: nowrap;
}

.shop-region-now {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.shop-region-flag {
    font-size: 1rem;
    line-height: 1;
}

.shop-region-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.shop-region-text strong {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.shop-region-text small {
    font-size: .66rem;
    color: var(--shop-dim);
}

.shop-region-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: 0;
    border-radius: 999px;
    background: var(--shop-grad-soft);
    color: #d9d2ff;
    font: inherit;
    font-size: .74rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.shop-region-btn:hover {
    background: rgba(124, 92, 255, .3);
    color: #fff;
    transform: translateY(-1px);
}

.shop-region-btn:focus-visible {
    outline: 2px solid var(--shop-cyan);
    outline-offset: 2px;
}

/* Inside the mobile nav sheet. */
.shop-region.is-in-nav {
    width: 100%;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: var(--shop-r-sm);
    margin-bottom: 4px;
}

.shop-region.is-in-nav .shop-region-text strong { font-size: .86rem; }
.shop-region.is-in-nav .shop-region-text small { font-size: .72rem; }

/* Under "Pay with" on the product page. */
.shop-region.is-strip {
    margin-left: auto;
}

/* In the cart / checkout summary column. */
.shop-region.is-summary {
    width: 100%;
    justify-content: space-between;
    margin-top: 14px;
    padding: 9px 9px 9px 13px;
}

/* One line under the store search box. */
.shop-region-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 14px;
    padding: 10px 14px;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-r-sm);
    background: rgba(255, 255, 255, .025);
    font-size: .84rem;
    color: var(--shop-muted);
}

.shop-region-line strong { color: var(--shop-text); }

.prod-pay-chip.is-off {
    background: rgba(239, 68, 68, .12);
    border-color: rgba(239, 68, 68, .32);
    color: #fca5a5;
}

.shop-region-warn {
    flex: 1 1 100%;
    color: #fcd9a0;
    font-size: .78rem;
    line-height: 1.5;
}

.shop-region-line.is-warn {
    border-color: rgba(245, 158, 11, .3);
    background: rgba(245, 158, 11, .07);
}

.shop-region-swap {
    margin-left: auto;
    padding: 0;
    border: 0;
    background: none;
    color: var(--shop-cyan);
    font: inherit;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.shop-region-swap:hover { color: #a5f3fc; }

/* ==========================================================================
   Product card badges — discount / flash sale / featured / new
   ========================================================================== */

.p-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
}

.p-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.p-tag.is-sale {
    background: rgba(239, 68, 68, .15);
    border-color: rgba(239, 68, 68, .36);
    color: #fca5a5;
}

.p-tag.is-flash {
    background: var(--shop-grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 18px -8px rgba(124, 92, 255, .9);
}

.p-tag.is-star {
    background: rgba(245, 158, 11, .14);
    border-color: rgba(245, 158, 11, .34);
    color: #fcd9a0;
}

.p-tag.is-new {
    background: rgba(34, 211, 238, .13);
    border-color: rgba(34, 211, 238, .32);
    color: #a5f3fc;
}

.p-tag.is-instant {
    background: rgba(34, 197, 94, .13);
    border-color: rgba(34, 197, 94, .3);
    color: #86efac;
}

/* ==========================================================================
   Checkout: pick-a-method, amount per option
   ========================================================================== */

.pay-method {
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.pay-method:hover { transform: translateY(-1px); }

.pay-method-amount {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 9px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    font-size: .76rem;
    font-weight: 600;
    color: var(--shop-muted);
    font-variant-numeric: tabular-nums;
}

.pay-method-amount strong {
    color: var(--shop-text);
    font-weight: 700;
}

.pay-method.is-selected .pay-method-amount {
    background: rgba(124, 92, 255, .22);
    color: #dcd4ff;
}

.pay-method.is-selected .pay-method-amount strong { color: #fff; }

.shop-empty-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.cart-pay-note {
    margin-top: 14px;
    font-size: .84rem;
}

/* ==========================================================================
   Order page header: status + invoice / print
   ========================================================================== */

.order-head-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.order-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ==========================================================================
   Account dashboard
   ========================================================================== */

.acct-shell {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.acct-card {
    position: sticky;
    top: 92px;
    background: var(--shop-card);
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-r);
    padding: 22px;
    box-shadow: var(--shop-shadow);
}

.acct-id {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.acct-id-text { min-width: 0; }

.acct-name {
    font-size: 1.12rem;
    font-weight: 700;
    margin: 0 0 3px;
    overflow-wrap: anywhere;
}

.acct-mail {
    margin: 0;
    font-size: .8rem;
    color: var(--shop-muted);
    overflow-wrap: anywhere;
}

.acct-since {
    margin: 2px 0 0;
    font-size: .72rem;
    color: var(--shop-dim);
}

.acct-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 18px;
}

.acct-mini-stats > div {
    padding: 10px 6px;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-r-sm);
    background: rgba(255, 255, 255, .02);
    text-align: center;
}

.acct-mini-stats strong {
    display: block;
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
}

.acct-mini-stats span {
    font-size: .66rem;
    color: var(--shop-dim);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.acct-tabs {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 18px;
}

.acct-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: var(--shop-r-sm);
    background: none;
    color: var(--shop-muted);
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    text-align: start;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.acct-tab:hover {
    background: rgba(255, 255, 255, .04);
    color: var(--shop-text);
}

.acct-tab.is-active {
    background: var(--shop-grad-soft);
    border-color: rgba(124, 92, 255, .34);
    color: #fff;
}

.acct-tab:focus-visible {
    outline: 2px solid var(--shop-cyan);
    outline-offset: 2px;
}

.acct-tab-icon { font-size: 1rem; }

.acct-tab-badge {
    margin-inline-start: auto;
    min-width: 20px;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(124, 92, 255, .3);
    color: #e5deff;
    font-size: .68rem;
    font-weight: 700;
    text-align: center;
}

.acct-side-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--shop-border);
}

.acct-main { min-width: 0; }

.acct-panel {
    display: none;
    background: var(--shop-card);
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-r);
    padding: 26px;
    box-shadow: var(--shop-shadow);
}

.acct-panel.is-active {
    display: block;
    animation: acctFade .22s ease;
}

@keyframes acctFade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: none; }
}

.acct-panel-head { margin-bottom: 20px; }

.acct-panel-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.acct-panel-sub {
    margin: 0;
    font-size: .84rem;
    color: var(--shop-muted);
}

.acct-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.acct-kpi {
    position: relative;
    padding: 18px 18px 16px;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-r-sm);
    background: linear-gradient(160deg, rgba(124, 92, 255, .1), rgba(255, 255, 255, .015));
}

.acct-kpi.is-warn {
    border-color: rgba(245, 158, 11, .34);
    background: linear-gradient(160deg, rgba(245, 158, 11, .12), rgba(255, 255, 255, .015));
}

.acct-kpi strong {
    display: block;
    margin-top: 8px;
    font-size: 1.35rem;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.acct-kpi small {
    font-size: .74rem;
    color: var(--shop-dim);
}

.acct-kpi-icon {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    font-size: 1.1rem;
    opacity: .85;
}

.acct-alert {
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-r-sm);
    font-size: .86rem;
    line-height: 1.6;
    color: var(--shop-muted);
}

.acct-alert strong { color: var(--shop-text); }
.acct-alert a { color: var(--shop-cyan); font-weight: 700; }

.acct-alert.is-warn {
    background: rgba(245, 158, 11, .09);
    border-color: rgba(245, 158, 11, .3);
}

.acct-alert.is-info {
    background: rgba(34, 211, 238, .08);
    border-color: rgba(34, 211, 238, .26);
}

.acct-cols {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.acct-col {
    padding: 18px;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-r-sm);
    background: rgba(255, 255, 255, .015);
}

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

.acct-col-head h3 {
    margin: 0;
    font-size: .96rem;
    font-weight: 700;
}

.acct-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--shop-cyan);
    font: inherit;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
}

.acct-link:hover { text-decoration: underline; }

.acct-feed {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.acct-feed li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-r-sm);
    background: var(--shop-card-2);
}

.acct-feed-icon { font-size: 1rem; }

.acct-feed-main {
    flex: 1 1 auto;
    min-width: 0;
}

.acct-feed-main strong { display: block; font-size: .86rem; }

.acct-feed-main small {
    display: block;
    font-size: .74rem;
    color: var(--shop-dim);
    margin-top: 2px;
}

.acct-feed-go {
    font-weight: 700;
    color: var(--shop-muted);
    text-decoration: none;
}

.acct-feed-go:hover { color: var(--shop-cyan); }

.acct-actions {
    display: grid;
    gap: 8px;
}

.acct-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-r-sm);
    background: var(--shop-card-2);
    text-decoration: none;
    transition: border-color .16s ease, transform .16s ease;
}

.acct-action:hover {
    border-color: rgba(124, 92, 255, .5);
    transform: translateX(2px);
}

.acct-action strong { display: block; font-size: .88rem; }
.acct-action small { display: block; font-size: .74rem; color: var(--shop-dim); margin-top: 2px; }

.acct-dl { margin-bottom: 18px; }

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

.acct-dl-head h3 {
    margin: 0 0 3px;
    font-size: 1rem;
    font-weight: 700;
}

.acct-dl-head p { margin: 0; font-size: .78rem; }

.acct-dl-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.acct-panel .acct-downloads,
.acct-panel .acct-licences,
.acct-panel .acct-tickets {
    list-style: none;
    margin: 0;
    padding: 0;
}

.acct-divider {
    border: 0;
    border-top: 1px solid var(--shop-border);
    margin: 26px 0;
}

.acct-panel .acct-form {
    max-width: 460px;
}

/* ==========================================================================
   Invoice
   ========================================================================== */

.invoice-body { background: var(--shop-bg); }

.invoice-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 12px 0;
    background: rgba(7, 8, 16, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--shop-border);
}

.invoice-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.invoice-sheet {
    max-width: 940px;
    margin: 32px auto 64px;
    padding: 40px 44px;
    background: #0f111c;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-r);
    box-shadow: var(--shop-shadow-lg);
}

.invoice-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--shop-border);
}

.invoice-seller h1 {
    margin: 8px 0 4px;
    font-size: 1.4rem;
    font-weight: 800;
}

.invoice-seller p {
    margin: 0 0 4px;
    font-size: .85rem;
    color: var(--shop-muted);
    max-width: 42ch;
}

.invoice-contact a { color: var(--shop-cyan); }

.invoice-meta {
    position: relative;
    text-align: end;
    min-width: 240px;
}

.invoice-title {
    margin: 0 0 10px;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -.02em;
    text-transform: uppercase;
    background: var(--shop-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.invoice-meta dl { margin: 0; display: grid; gap: 5px; }

.invoice-meta > dl > div {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    font-size: .82rem;
}

.invoice-meta dt { color: var(--shop-dim); }
.invoice-meta dd { margin: 0; font-weight: 600; }

.invoice-stamp {
    display: inline-block;
    margin-top: 14px;
    padding: 5px 14px;
    border: 2px solid;
    border-radius: 8px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    transform: rotate(-3deg);
}

.invoice-stamp.is-paid {
    border-color: rgba(34, 197, 94, .6);
    color: #86efac;
}

.invoice-stamp.is-due {
    border-color: rgba(245, 158, 11, .6);
    color: #fcd9a0;
}

.invoice-parties {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 24px 0;
}

.invoice-party h2 {
    margin: 0 0 8px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--shop-dim);
}

.invoice-party p { margin: 0 0 4px; font-size: .88rem; }

.invoice-licence { margin-top: 8px; }

.invoice-hash code {
    word-break: break-all;
    font-size: .7rem;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .86rem;
}

.invoice-table th,
.invoice-table td {
    padding: 12px 10px;
    text-align: start;
    border-bottom: 1px solid var(--shop-border);
    vertical-align: top;
}

.invoice-table thead th {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--shop-dim);
    border-bottom-color: var(--shop-border-2);
}

.invoice-table .num {
    text-align: end;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.invoice-totals {
    display: flex;
    justify-content: flex-end;
    padding: 22px 0 6px;
}

.invoice-totals dl {
    width: min(340px, 100%);
    margin: 0;
    display: grid;
    gap: 10px;
}

.invoice-totals dl > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: .9rem;
}

.invoice-totals dt { color: var(--shop-muted); }
.invoice-totals dd { margin: 0; text-align: end; font-variant-numeric: tabular-nums; }
.invoice-totals dd small { display: block; font-size: .74rem; color: var(--shop-dim); }

.invoice-save dt, .invoice-save dd { color: #86efac; }

.invoice-grand {
    padding-top: 12px;
    border-top: 1px solid var(--shop-border-2);
}

.invoice-grand dt { color: var(--shop-text); font-weight: 700; }

.invoice-grand dd strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
}

.invoice-grand dd span { font-size: .86rem; color: var(--shop-muted); }

.invoice-rate {
    width: min(340px, 100%);
    margin: 6px 0 0 auto;
    text-align: end;
    font-size: .74rem;
    color: var(--shop-dim);
}

.invoice-foot {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--shop-border);
    font-size: .82rem;
    line-height: 1.7;
}

.invoice-foot p { margin: 0 0 6px; }
.invoice-foot a { color: var(--shop-cyan); }

/* ==========================================================================
   Responsive — the same pages, desktop and phone
   ========================================================================== */

@media (max-width: 1100px) {
    .acct-shell { grid-template-columns: 1fr; }
    .acct-card { position: static; }

    /* Tab bar turns into a horizontal scroller. */
    .acct-tabs {
        flex-direction: row;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 6px;
        scrollbar-width: thin;
    }

    .acct-tab {
        width: auto;
        flex: 0 0 auto;
        border: 1px solid var(--shop-border);
    }

    .acct-tab-badge { margin-inline-start: 4px; }

    .acct-side-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .acct-side-actions .btn { flex: 1 1 140px; }
}

@media (max-width: 980px) {
    .acct-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .acct-cols { grid-template-columns: 1fr; }

    .shop-region.is-strip {
        margin: 12px 0 0;
        width: 100%;
        justify-content: space-between;
    }

    .prod-pay-strip .shop-region { margin-top: 10px; }
}

@media (max-width: 760px) {
    .invoice-sheet { margin: 18px 12px 48px; padding: 26px 20px; }
    .invoice-parties { grid-template-columns: 1fr; }
    .invoice-meta { text-align: start; min-width: 0; }
    .invoice-meta > dl > div { justify-content: flex-start; }
    .invoice-totals { justify-content: stretch; }
    .invoice-rate { text-align: start; }
    .invoice-title { font-size: 1.4rem; }

    /* Keep the money columns readable instead of squashing the table. */
    .invoice-table thead th:nth-child(2),
    .invoice-table td:nth-child(2) { display: none; }
}

@media (max-width: 640px) {
    .shop-header-actions .shop-region-text small { display: none; }
    .shop-header-actions .shop-region-btn { padding: 6px 10px; font-size: .7rem; }

    .shop-region-line { align-items: flex-start; flex-direction: column; }
    .shop-region-swap { margin-left: 0; }

    .order-head-side { align-items: flex-start; }
    .order-head-actions { width: 100%; }
    .order-head-actions .btn { flex: 1 1 auto; }

    .acct-panel { padding: 20px 16px; }
    .acct-kpis { gap: 10px; }
    .acct-kpi { padding: 14px; }
    .acct-kpi strong { font-size: 1.1rem; margin-top: 4px; }
    .acct-kpi-icon { position: static; display: block; margin-bottom: 2px; }

    .acct-feed li { flex-wrap: wrap; }
    .acct-feed .shop-status { order: 3; }

    .acct-dl-head-actions { width: 100%; }
    .acct-dl-head-actions .btn { flex: 1 1 auto; }

    .pay-method { padding: 12px; }
    .pay-method-amount { font-size: .72rem; }
}

/* On the narrowest phones the header pill would crowd the cart, and the switch
   is still reachable from the nav sheet and the store page itself. */
@media (max-width: 520px) {
    .shop-header-actions > .shop-region { display: none; }
}

/* ==========================================================================
    Storefront on a phone — library.php
   --------------------------------------------------------------------------
   A phone gets a different shape of the same page: the filters collapse behind
   one button, the category rail becomes a thumb-scroller, cards sit two to a
   row and the pager keeps only the pages worth tapping.

   The panel is *never* hidden by CSS alone — shop.js adds `.is-collapsed`, so
   the filters still work with scripting off, and the toolbar markup stays
   readable to assistive tech.
   ========================================================================== */

/* ----------------------------- Toolbar pieces ----------------------------- */

.shop-toolbar-head {
    min-width: 0;
}

/* On desktop the panel and the sort label have no box of their own: their
   controls sit straight inside the toolbar row, exactly as before. */
.shop-toolbar-panel,
.shop-toolbar-sort {
    display: contents;
}

.shop-toolbar-toggle {
    display: none;
}

.shop-toolbar-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--shop-grad);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Jumping to an anchor must clear the sticky header. */
#products,
#results {
    scroll-margin-top: 88px;
}

/* ----------------------------- Pager details ----------------------------- */

.shop-pager-gap {
    color: var(--shop-dim);
    padding: 0 2px;
    user-select: none;
}

.shop-pager-note {
    margin: 14px 0 0;
    text-align: center;
    font-size: .8rem;
    color: var(--shop-dim);
}

.shop-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* ----------------------------- Toast ----------------------------- */

/* Add-to-cart feedback that does not depend on the width of one button. */
.shop-toast {
    position: fixed;
    inset-inline: 0;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    width: max-content;
    max-width: min(90vw, 420px);
    margin: 0 auto;
    padding: 13px 20px;
    border-radius: 999px;
    background: rgba(18, 20, 31, .97);
    border: 1px solid var(--shop-border-2);
    box-shadow: var(--shop-shadow-lg);
    color: var(--shop-text);
    font-size: .88rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}

.shop-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.shop-toast.is-error {
    border-color: rgba(239, 68, 68, .5);
    color: #fca5a5;
}

.shop-toast.is-success {
    border-color: rgba(34, 197, 94, .45);
    color: #a7f3d0;
}

/* ----------------------------- Tablet / phone ----------------------------- */

@media (max-width: 980px) {
    .shop-toolbar {
        padding: 14px 0;
    }

    .shop-toolbar-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .shop-section-title {
        font-size: 1.12rem;
    }

    /* One bar: [Filters] [Sort]. Everything else waits for a tap. */
    .shop-toolbar-form {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 8px;
        width: 100%;
    }

    .shop-toolbar-toggle {
        grid-column: 1;
        grid-row: 1;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 44px;
        padding: 10px 14px;
        border-radius: var(--shop-r-sm);
        background: rgba(255, 255, 255, .05);
        border: 1px solid var(--shop-border-2);
        color: var(--shop-text);
        font-size: .88rem;
        font-weight: 600;
        white-space: nowrap;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .shop-toolbar-toggle[aria-expanded="true"] {
        border-color: var(--shop-violet);
        background: rgba(124, 92, 255, .18);
        color: #d6cdff;
    }

    .shop-toolbar-sort {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        min-width: 0;
    }

    .shop-toolbar-sort > span {
        display: none;
    }

    .shop-toolbar-sort select {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        min-height: 44px;
    }

    .shop-toolbar-panel {
        grid-column: 1 / -1;
        grid-row: 2;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        padding: 12px;
        border: 1px solid var(--shop-border);
        border-radius: var(--shop-r-sm);
        background: rgba(255, 255, 255, .03);
    }

    .shop-toolbar-panel .shop-field-inline {
        flex: 1 1 100%;
    }

    .shop-toolbar-panel .shop-field-inline > span {
        display: none;
    }

    .shop-toolbar-panel select {
        width: 100%;
        min-height: 44px;
    }

    .shop-toolbar-panel .shop-check {
        flex: 1 1 calc(50% - 5px);
        justify-content: center;
        gap: 10px;
        min-height: 44px;
        padding: 0 12px;
        border: 1px solid var(--shop-border);
        border-radius: var(--shop-r-sm);
        background: rgba(255, 255, 255, .03);
        color: var(--shop-text);
        font-size: .86rem;
        font-weight: 500;
    }

    .shop-toolbar-panel .shop-check:has(input:checked) {
        border-color: rgba(124, 92, 255, .5);
        background: rgba(124, 92, 255, .16);
        color: #d6cdff;
    }

    .shop-toolbar-panel .shop-check input {
        width: 18px;
        height: 18px;
    }

    .shop-toolbar-apply {
        grid-column: 1 / -1;
        grid-row: 3;
        display: none;
    }

    .shop-toolbar-form.is-collapsed > .shop-toolbar-panel,
    .shop-toolbar-form.is-collapsed > .shop-toolbar-apply {
        display: none;
    }

    .shop-toolbar-form:not(.is-collapsed) > .shop-toolbar-apply {
        display: inline-flex;
        width: 100%;
        min-height: 46px;
    }

    /* Categories: one swipeable rail instead of six stacked rows. */
    .shop-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
        scroll-padding-inline-start: var(--gutter);
        margin: 4px calc(var(--gutter) * -1) 0;
        padding: 2px var(--gutter) 10px;
    }

    .shop-chips::-webkit-scrollbar {
        display: none;
    }

    .shop-chip {
        flex: 0 0 auto;
        scroll-snap-align: center;
        min-height: 42px;
        -webkit-tap-highlight-color: transparent;
    }

    .shop-chip:hover {
        transform: none;
    }

    .shop-active-filters {
        gap: 6px;
    }

    .shop-filter-tag {
        padding: 7px 12px;
        font-size: .78rem;
    }

    #products,
    #results {
        scroll-margin-top: 84px;
    }
}

/* iOS zooms the page when a field under 16px is focused. */
@media (max-width: 768px) {
    .shop-search input[type="search"],
    .shop-field select,
    .shop-field input {
        font-size: 16px;
    }

    .shop-body {
        -webkit-tap-highlight-color: rgba(124, 92, 255, .18);
    }

    .shop-body button,
    .shop-body .btn,
    .shop-body .shop-chip {
        touch-action: manipulation;
    }
}

@media (max-width: 640px) {
    .shop-hero {
        padding: 24px 0 18px;
    }

    .shop-hero-title {
        margin: 0 0 8px;
        font-size: 1.45rem;
        line-height: 1.15;
    }

    .shop-hero-lead {
        font-size: .86rem;
        line-height: 1.5;
        margin-bottom: 4px;
    }

    /* The field gets its own row, so the magnifier joins the grid instead of
       floating over the middle of the form. */
    .shop-search {
        display: grid;
        grid-template-columns: 20px minmax(0, 1fr);
        align-items: center;
        gap: 8px;
        padding: 10px 10px 12px;
        border-radius: var(--shop-r-sm);
    }

    .shop-search-icon {
        position: static;
        transform: none;
        display: inline-flex;
        grid-column: 1;
        grid-row: 1;
        justify-content: center;
    }

    .shop-search input[type="search"] {
        grid-column: 2;
        grid-row: 1;
        padding-left: 14px;
    }

    .shop-search .btn {
        grid-column: 1 / -1;
        min-height: 46px;
    }

    .shop-region-line {
        gap: 6px 10px;
        padding: 10px 12px;
        font-size: .8rem;
    }

    .shop-region-swap {
        margin-left: 0;
        font-size: .78rem;
    }

    /* Two cards per row: more browsing, less scrolling. */
    .shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .shop-grid-wrap {
        padding: 20px 0 0;
    }

    .p-card:hover {
        transform: none;
        box-shadow: var(--shop-shadow);
    }

    .p-card-body {
        gap: 8px;
        padding: 12px;
    }

    .p-card-cat {
        display: block;
        max-width: 100%;
        padding: 0;
        background: none;
        border: 0;
        border-radius: 0;
        font-size: .7rem;
        font-weight: 600;
        letter-spacing: .01em;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        color: var(--shop-muted);
    }

    .p-card-tags {
        margin-bottom: 8px;
        gap: 5px;
    }

    .p-card-tags .p-tag:nth-child(n+3) {
        display: none;
    }

    .p-card-title {
        font-size: .92rem;
        line-height: 1.3;
    }

    .p-card-title a {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .p-card-tagline {
        font-size: .78rem;
        line-height: 1.45;
    }

    .p-card-meta {
        gap: 5px;
    }

    .p-card-meta .p-chip:nth-child(n+3) {
        display: none;
    }

    .p-chip {
        font-size: .68rem;
        padding: 3px 7px;
    }

    .p-card-price {
        padding-top: 10px;
    }

    .p-card-price-main {
        flex-wrap: wrap;
        gap: 4px 6px;
    }

    .p-card-price-main strong {
        font-size: 1.06rem;
    }

    .p-card-usd {
        font-size: .76rem;
    }

    .p-card-was {
        gap: 6px;
        font-size: .72rem;
    }

    .p-card-off,
    .p-card-featured {
        top: 8px;
        left: 8px;
        padding: 4px 9px;
        font-size: .68rem;
    }

    .p-card-soon {
        bottom: 8px;
        left: 8px;
        font-size: .66rem;
    }

    /* Two big taps on their own rows, then the two quiet links share one. */
    .p-card-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        margin-top: 2px;
    }

    .p-card-actions form,
    .p-card-add {
        grid-column: 1 / -1;
    }

    .p-card-actions > :only-child {
        grid-column: 1 / -1;
    }

    .p-card-actions .btn {
        min-height: 40px;
        padding: 9px 6px;
        font-size: .78rem;
    }

    .p-card-add.is-in-cart {
        background: rgba(34, 197, 94, .12);
    }

    /* Pager: numbers on top, then a wide Previous / Next pair. */
    .shop-pager {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 28px;
    }

    .shop-pager-nums {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .shop-pager-step {
        width: 100%;
        justify-content: center;
        text-align: center;
        min-height: 44px;
    }

    .shop-pager-step:first-of-type {
        grid-column: 1;
        grid-row: 2;
    }

    .shop-pager-step:last-of-type {
        grid-column: 2;
        grid-row: 2;
    }

    .shop-pager-num {
        min-width: 40px;
        height: 40px;
        padding: 0 8px;
        font-size: .84rem;
    }

    .shop-pager-note {
        margin-top: 12px;
    }

    .shop-empty {
        padding: 48px 18px;
    }

    .shop-empty-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .shop-section-head {
        gap: 6px;
    }
}

/* Below this the cards would be too narrow to read a price. */
@media (max-width: 340px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }

    .p-card-tagline {
        -webkit-line-clamp: 3;
    }
}




