/* INS Accounting — Lightweight E-commerce Storefront */
*, *::before, *::after { box-sizing: border-box; }
body.shop-page {
    margin: 0;
    font-family: 'Tajawal', system-ui, sans-serif;
    background: #f4f6fb;
    color: #1a2233;
    line-height: 1.6;
}
a { color: var(--shop-primary, #1D3A70); text-decoration: none; }
.shop-container { width: min(1120px, 92vw); margin: 0 auto; }

.shop-header {
    background: #fff;
    border-bottom: 1px solid #e5eaf3;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 12px rgba(29,58,112,.06);
}
.shop-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 0;
}
.shop-brand { display: flex; flex-direction: column; }
.shop-brand__name { font-weight: 800; font-size: 1.15rem; color: var(--shop-primary); }
.shop-brand__tag { font-size: .78rem; color: #64748b; }
.shop-nav { display: flex; gap: 1rem; align-items: center; font-weight: 600; flex-wrap: wrap; justify-content: flex-end; }

.shop-lang {
    display: inline-flex;
    align-items: stretch;
    background: #eef2f8;
    border: 1px solid #dbe3f0;
    border-radius: .65rem;
    overflow: hidden;
}
.shop-lang__btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .65rem;
    font-size: .78rem;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
    transition: background .15s, color .15s;
}
.shop-lang__btn:hover {
    background: #fff;
    color: var(--shop-primary);
}
.shop-lang__btn.is-active {
    background: #fff;
    color: var(--shop-primary);
    box-shadow: inset 0 0 0 1px #dbe3f0;
}
.shop-lang__flag { font-size: .95rem; line-height: 1; }
.shop-lang__label { line-height: 1; }
@media (max-width: 480px) {
    .shop-lang__label { display: none; }
    .shop-lang__btn { padding: .4rem .55rem; }
}

.shop-cart-link { position: relative; }
.shop-badge {
    background: var(--shop-accent);
    color: #fff;
    border-radius: 999px;
    font-size: .7rem;
    padding: .1rem .45rem;
    margin-inline-start: .25rem;
}

.shop-alert {
    padding: .75rem 1rem;
    text-align: center;
    font-weight: 600;
}
.shop-alert--success { background: #dcfce7; color: #166534; }
.shop-alert--error { background: #fee2e2; color: #991b1b; }

.shop-main { min-height: 60vh; padding-bottom: 3rem; }
.shop-hero {
    background: linear-gradient(135deg, var(--shop-primary), var(--shop-accent));
    color: #fff;
    padding: 2.5rem 0 2rem;
}
.shop-hero h1 { margin: 0 0 .5rem; font-size: clamp(1.4rem, 3vw, 2rem); }
.shop-hero p { margin: 0 0 1.25rem; opacity: .92; }
.shop-search {
    display: flex;
    gap: .5rem;
    max-width: 520px;
}
.shop-search input {
    flex: 1;
    border: none;
    border-radius: .65rem;
    padding: .75rem 1rem;
    font: inherit;
}
.shop-search button {
    border: none;
    border-radius: .65rem;
    background: #fff;
    color: var(--shop-primary);
    font-weight: 700;
    padding: .75rem 1.1rem;
    cursor: pointer;
}

.shop-section { padding: 2rem 0; }
.shop-section--top { padding-top: 1.5rem; }
.shop-section__title { margin: 0 0 1rem; font-size: 1.25rem; }
.shop-categories { display: flex; flex-wrap: wrap; gap: .6rem; }
.shop-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #fff;
    border: 1px solid #dbe3f0;
    border-radius: 999px;
    padding: .45rem .85rem;
    font-weight: 600;
    box-shadow: 0 1px 0 rgba(0,0,0,.03);
}
.shop-cat-chip span {
    background: color-mix(in srgb, var(--cat-color, var(--shop-accent)) 18%, white);
    color: var(--cat-color, var(--shop-accent));
    border-radius: 999px;
    font-size: .72rem;
    padding: .1rem .45rem;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1rem;
}
.shop-card {
    background: #fff;
    border-radius: .85rem;
    overflow: hidden;
    border: 1px solid #e8edf5;
    display: flex;
    flex-direction: column;
    transition: transform .15s, box-shadow .15s;
}
.shop-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(29,58,112,.1); }
.shop-card__img { position: relative; aspect-ratio: 1; background: #eef2f8; }
.shop-card__img img { width: 100%; height: 100%; object-fit: cover; }
.shop-card__placeholder {
    width: 100%; height: 100%;
    display: grid; place-items: center;
    font-size: 2rem; font-weight: 800; color: var(--shop-primary);
    background: linear-gradient(145deg, #eef3fb, #dfe8f6);
}
.shop-card__placeholder--lg { min-height: 280px; }
.shop-card__badge {
    background: #991b1b; color: #fff; font-size: .7rem; padding: .2rem .45rem; border-radius: .35rem;
}
.shop-card__body { padding: .85rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.shop-card__cat { font-size: .72rem; color: #64748b; font-weight: 600; }
.shop-card__body h3 { margin: 0; font-size: .98rem; line-height: 1.35; }
.shop-card__price { font-weight: 800; color: var(--shop-primary); margin-top: auto; }

.shop-back { display: inline-block; margin-bottom: .75rem; font-weight: 600; }
.shop-empty { color: #64748b; padding: 1rem 0; }
.shop-pagination { margin-top: 1.5rem; }

/* Pagination */
.shop-pager {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .85rem;
    padding: 1rem 0 .25rem;
}
.shop-pager__info,
.shop-pager__mobile {
    margin: 0;
    color: #64748b;
    font-size: .88rem;
    font-weight: 600;
}
.shop-pager__mobile { display: none; }
.shop-pager__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
}
.shop-pager__btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .55rem .9rem;
    border-radius: .65rem;
    background: #fff;
    border: 1px solid #dbe3f0;
    color: var(--shop-primary);
    font-weight: 700;
    font-size: .88rem;
    white-space: nowrap;
    transition: background .15s, border-color .15s, transform .15s;
}
.shop-pager__btn:hover {
    background: #eef3fb;
    border-color: var(--shop-accent);
    transform: translateY(-1px);
}
.shop-pager__btn--disabled {
    opacity: .45;
    pointer-events: none;
    transform: none;
}
.shop-pager__pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.shop-pager__page span,
.shop-pager__page a {
    display: grid;
    place-items: center;
    min-width: 2.35rem;
    height: 2.35rem;
    padding: 0 .45rem;
    border-radius: .55rem;
    border: 1px solid #dbe3f0;
    background: #fff;
    color: #334155;
    font-weight: 700;
    font-size: .88rem;
    transition: background .15s, color .15s, border-color .15s;
}
.shop-pager__page a:hover {
    border-color: var(--shop-accent);
    color: var(--shop-primary);
    background: #eef3fb;
}
.shop-pager__page.is-active span {
    background: var(--shop-primary);
    border-color: var(--shop-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(29, 58, 112, .22);
}
.shop-pager__dots span {
    display: grid;
    place-items: center;
    min-width: 1.75rem;
    height: 2.35rem;
    color: #94a3b8;
    font-weight: 800;
    letter-spacing: .08em;
}
@media (max-width: 640px) {
    .shop-pager__info { display: none; }
    .shop-pager__mobile { display: block; }
    .shop-pager__pages { display: none; }
    .shop-pager__controls {
        justify-content: space-between;
    }
    .shop-pager__btn {
        flex: 1;
        justify-content: center;
        max-width: calc(50% - .25rem);
    }
}


.shop-product__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}
@media (max-width: 768px) {
    .shop-product__grid { grid-template-columns: 1fr; }
}
.shop-product__media img { width: 100%; border-radius: .85rem; border: 1px solid #e8edf5; }
.shop-product__price { font-size: 1.5rem; font-weight: 800; color: var(--shop-primary); margin: .5rem 0; }
.shop-product__price-row {
    display: flex;
    align-items: baseline;
    gap: .65rem;
    flex-wrap: wrap;
    margin: .5rem 0;
}
.shop-product__price-row .shop-product__price { margin: 0; }
.shop-product__price-old {
    color: #94a3b8;
    text-decoration: line-through;
    font-size: 1.05rem;
    font-weight: 600;
}
.shop-product__offer-badge {
    background: linear-gradient(135deg, #ea580c, #dc2626);
    color: #fff;
    font-weight: 800;
    font-size: .82rem;
    padding: .2rem .55rem;
    border-radius: .45rem;
}
.shop-product__stock { font-weight: 600; }
.shop-product__desc { color: #475569; margin: 1rem 0; }
.shop-add-form { display: flex; flex-wrap: wrap; gap: .65rem; align-items: end; margin-top: 1rem; }
.shop-add-form label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; font-size: .85rem; }
.shop-add-form input[type=number] { width: 80px; padding: .5rem; border-radius: .5rem; border: 1px solid #cbd5e1; }

.shop-btn, .shop-add-form button, .shop-form button {
    border: none;
    border-radius: .65rem;
    background: var(--shop-primary);
    color: #fff;
    font: inherit;
    font-weight: 700;
    padding: .65rem 1.1rem;
    cursor: pointer;
}
.shop-btn-secondary { background: var(--shop-accent); }
.shop-btn--block { display: block; width: 100%; text-align: center; margin-top: .75rem; }
.shop-link-danger { background: none; border: none; color: #b91c1c; cursor: pointer; font: inherit; }

.shop-cart__row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
    align-items: center;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: .75rem;
    padding: .85rem 1rem;
    margin-bottom: .65rem;
}
@media (max-width: 640px) {
    .shop-cart__row { grid-template-columns: 1fr; }
}
.shop-cart__actions { display: flex; flex-direction: column; gap: .35rem; }
.shop-inline-form { display: flex; gap: .35rem; align-items: center; }
.shop-inline-form input { width: 70px; padding: .35rem; border-radius: .4rem; border: 1px solid #cbd5e1; }
.shop-muted { color: #64748b; font-size: .88rem; }

.shop-summary {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: .85rem;
    padding: 1rem 1.1rem;
    margin-top: 1rem;
    max-width: 420px;
}
.shop-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .35rem 0;
}
.shop-summary__grand { border-top: 1px solid #e8edf5; margin-top: .35rem; padding-top: .65rem; font-size: 1.05rem; }
.shop-summary__line { font-size: .9rem; color: #475569; }

.shop-checkout__grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 1.5rem;
    align-items: start;
}
@media (max-width: 768px) {
    .shop-checkout__grid { grid-template-columns: 1fr; }
}
.shop-form label {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    font-weight: 600;
    margin-bottom: .75rem;
}
.shop-form input, .shop-form textarea {
    font: inherit;
    padding: .65rem .75rem;
    border: 1px solid #cbd5e1;
    border-radius: .55rem;
    background: #fff;
}

.shop-success { text-align: center; max-width: 560px; margin: 0 auto; }
.shop-success__icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: #dcfce7; color: #166534;
    display: grid; place-items: center;
    font-size: 2rem; margin: 0 auto 1rem;
}
.shop-success__meta {
    background: #fff; border-radius: .75rem; border: 1px solid #e8edf5;
    padding: 1rem; text-align: start; margin: 1rem 0;
}
.shop-success__meta div { display: flex; justify-content: space-between; padding: .25rem 0; }
.shop-success__items { list-style: none; padding: 0; text-align: start; color: #475569; }

.shop-footer {
    background: #fff;
    border-top: 1px solid #e5eaf3;
    padding: 2rem 0 1.5rem;
    margin-top: 2rem;
    font-size: .92rem;
}
.shop-footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 640px) {
    .shop-footer__grid { grid-template-columns: 1fr; }
}
.shop-footer__copy { margin: 1rem 0 0; color: #94a3b8; text-align: center; font-size: .82rem; }

.mobile-app-downloads.shop-footer .mobile-app-downloads__title {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: .75rem;
}
.mobile-app-downloads.shop-footer .mobile-app-downloads__card {
    display: flex;
    gap: .75rem;
    padding: .85rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.mobile-app-downloads.shop-footer .mobile-app-downloads__icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: var(--shop-primary, #1D3A70); color: #fff; flex-shrink: 0;
}
.mobile-app-downloads.shop-footer .mobile-app-downloads__body strong { color: #0f172a; display: block; }
.mobile-app-downloads.shop-footer .mobile-app-downloads__body span { color: #64748b; font-size: .82rem; display: block; }
.mobile-app-downloads.shop-footer .mobile-app-downloads__actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.mobile-app-downloads.shop-footer .mobile-app-downloads__btn {
    display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .65rem;
    border-radius: 999px; background: var(--shop-accent, #4A76C0); color: #fff !important;
    font-size: .76rem; font-weight: 600; text-decoration: none;
}
.mobile-app-downloads.shop-footer .mobile-app-downloads__grid {
    display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* —— Header upgrade —— */
.shop-brand { display: flex; align-items: center; gap: .75rem; }
.shop-brand__icon {
    width: 42px; height: 42px; border-radius: .75rem;
    background: linear-gradient(135deg, var(--shop-primary), var(--shop-accent));
    color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.shop-brand__text { display: flex; flex-direction: column; }
.shop-nav__link {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .45rem .65rem; border-radius: .55rem; color: #334155; font-weight: 600;
}
.shop-nav__link.is-active, .shop-nav__link:hover { background: #eef2f8; color: var(--shop-primary); }
.shop-btn--sm { padding: .45rem .85rem; font-size: .85rem; }
.shop-btn--outline { background: transparent; border: 2px solid var(--shop-primary); color: var(--shop-primary); }
.shop-btn--outline:hover { background: var(--shop-primary); color: #fff; }
.shop-btn--lg { padding: .9rem 1.2rem; font-size: 1rem; }

.shop-user-menu { position: relative; }
.shop-user-menu__toggle {
    display: inline-flex; align-items: center; gap: .45rem;
    border: 1px solid #dbe3f0; background: #fff; border-radius: 999px;
    padding: .35rem .65rem .35rem .35rem; cursor: pointer; font: inherit; font-weight: 700; color: #1e293b;
}
.shop-user-menu__avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--shop-primary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: .85rem;
}
.shop-user-menu__name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-user-menu__dropdown {
    position: absolute; top: calc(100% + .45rem); inset-inline-end: 0;
    min-width: 210px; background: #fff; border: 1px solid #e5eaf3; border-radius: .75rem;
    box-shadow: 0 12px 32px rgba(15,23,42,.12); padding: .35rem;
    display: none; z-index: 60;
}
.shop-user-menu__dropdown.is-open { display: block; }
.shop-user-menu__dropdown a,
.shop-user-menu__dropdown button {
    display: flex; align-items: center; gap: .5rem; width: 100%;
    padding: .55rem .75rem; border: none; background: none; font: inherit;
    color: #334155; border-radius: .5rem; text-align: inherit; cursor: pointer;
}
.shop-user-menu__dropdown a:hover,
.shop-user-menu__dropdown button:hover { background: #f1f5f9; color: var(--shop-primary); }

.shop-hero__features {
    display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.25rem; font-size: .88rem; opacity: .95;
}
.shop-hero__features span { display: inline-flex; align-items: center; gap: .35rem; }

.shop-alert--inline { border-radius: .65rem; margin-bottom: 1rem; text-align: start; }
.shop-footer__links { display: flex; flex-direction: column; gap: .35rem; }

/* —— Auth —— */
.shop-auth { display: flex; justify-content: center; }
.shop-auth__card {
    width: min(440px, 100%); background: #fff; border-radius: 1rem;
    border: 1px solid #e8edf5; box-shadow: 0 16px 40px rgba(29,58,112,.08); padding: 1.75rem;
}
.shop-auth__card--wide { width: min(640px, 100%); }
.shop-auth__head h1 { margin: 0 0 .35rem; }
.shop-auth__footer { margin: 1.25rem 0 0; text-align: center; color: #64748b; }
.shop-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.shop-form__full { grid-column: 1 / -1; }
.shop-check { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
@media (max-width: 560px) { .shop-form__grid { grid-template-columns: 1fr; } }

/* —— Account dashboard —— */
.shop-account__grid {
    display: grid; grid-template-columns: 260px 1fr; gap: 1.25rem; align-items: start;
}
@media (max-width: 900px) { .shop-account__grid { grid-template-columns: 1fr; } }
.shop-account__sidebar {
    background: #fff; border: 1px solid #e8edf5; border-radius: 1rem; padding: 1rem; position: sticky; top: 5.5rem;
}
.shop-account__user { display: flex; gap: .75rem; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid #eef2f8; margin-bottom: .75rem; }
.shop-account__avatar {
    width: 44px; height: 44px; border-radius: 50%; background: var(--shop-primary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
}
.shop-account__nav { display: flex; flex-direction: column; gap: .25rem; }
.shop-account__nav a,
.shop-account__nav button {
    display: flex; align-items: center; gap: .55rem; padding: .65rem .75rem;
    border-radius: .55rem; color: #475569; font-weight: 600; border: none; background: none; font: inherit; width: 100%; cursor: pointer; text-align: inherit;
}
.shop-account__nav a.is-active,
.shop-account__nav a:hover,
.shop-account__nav button:hover { background: #eef2f8; color: var(--shop-primary); }
.shop-account__logout { margin-top: .5rem; padding-top: .5rem; border-top: 1px solid #eef2f8; }
.shop-account__content { min-width: 0; }
.shop-account__header { margin-bottom: 1.25rem; }
.shop-account__header h1 { margin: 0 0 .35rem; }
.shop-back-link { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: .5rem; font-weight: 600; }

.shop-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; margin-bottom: 1.25rem; }
@media (max-width: 700px) { .shop-stats { grid-template-columns: 1fr; } }
.shop-stat-card {
    background: #fff; border: 1px solid #e8edf5; border-radius: .85rem; padding: 1rem 1.1rem;
}
.shop-stat-card__label { display: block; color: #64748b; font-size: .82rem; margin-bottom: .25rem; }
.shop-stat-card__value { font-size: 1.35rem; color: var(--shop-primary); }

.shop-panel {
    background: #fff; border: 1px solid #e8edf5; border-radius: 1rem; padding: 1.25rem;
}
.shop-panel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.shop-panel__head h2 { margin: 0; font-size: 1.05rem; }
.shop-link { font-weight: 700; color: var(--shop-accent); }
.shop-link--center { display: block; text-align: center; margin-top: .65rem; }

.shop-order-list { display: flex; flex-direction: column; gap: .5rem; }
.shop-order-row {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: .85rem 1rem; border: 1px solid #eef2f8; border-radius: .65rem; transition: border-color .15s, box-shadow .15s;
}
.shop-order-row:hover { border-color: #cbd5e1; box-shadow: 0 4px 14px rgba(15,23,42,.05); }
.shop-order-row__meta { text-align: end; display: flex; flex-direction: column; gap: .25rem; align-items: flex-end; }

.shop-status {
    display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700;
}
.shop-status--confirmed { background: #dcfce7; color: #166534; }
.shop-status--pending { background: #fef3c7; color: #92400e; }
.shop-status--draft { background: #fef3c7; color: #92400e; }
.shop-status--cancelled { background: #fee2e2; color: #991b1b; }

.shop-order-detail__meta {
    display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1.25rem;
    padding-bottom: 1rem; border-bottom: 1px solid #eef2f8;
}
@media (max-width: 560px) { .shop-order-detail__meta { grid-template-columns: 1fr; } }
.shop-order-detail__meta div { display: flex; flex-direction: column; gap: .15rem; }
.shop-order-detail__meta span { color: #64748b; font-size: .82rem; }

.shop-checkout__customer { background: #f8fafc; border-radius: .75rem; padding: 1rem; margin-bottom: 1rem; }
.shop-checkout__customer h2 { margin: 0 0 .75rem; font-size: 1rem; }
.shop-checkout__readonly div { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; }
.shop-checkout__readonly span { color: #64748b; }
.shop-summary--sticky { position: sticky; top: 5.5rem; }
.shop-divider { border: none; border-top: 1px solid #eef2f8; margin: 1rem 0; }
.shop-form--compact label { margin-bottom: .85rem; }

.shop-cart-login-note {
    margin-top: 1rem; padding: 1rem; background: #f8fafc; border-radius: .75rem; border: 1px dashed #cbd5e1; text-align: center;
}
.shop-cart-login-note p { margin: .35rem 0 .75rem; color: #64748b; font-size: .9rem; }

.shop-success__actions { display: flex; flex-direction: column; gap: .65rem; margin-top: 1.25rem; align-items: center; }

/* ——— Premium homepage ——— */
.shop-hero--premium {
    position: relative;
    overflow: hidden;
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
    background:
        radial-gradient(circle at 85% 20%, rgba(255,255,255,.14), transparent 45%),
        radial-gradient(circle at 10% 80%, rgba(255,255,255,.08), transparent 40%),
        linear-gradient(135deg, var(--shop-primary), color-mix(in srgb, var(--shop-accent) 78%, var(--shop-primary)));
}
.shop-hero__grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 2rem;
    align-items: center;
}
@media (max-width: 900px) {
    .shop-hero__grid { grid-template-columns: 1fr; }
    .shop-hero__visual { display: none; }
}
.shop-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    padding: .35rem .85rem;
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: .85rem;
}
.shop-hero__features {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.25rem;
    margin-top: 1.35rem;
    font-size: .88rem;
    opacity: .95;
}
.shop-hero__features span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.shop-search--hero {
    position: relative;
    max-width: 100%;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: .85rem;
    padding: .35rem;
}
.shop-search--hero .shop-search__icon {
    position: absolute;
    inset-inline-start: 1rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: .75;
    pointer-events: none;
}
.shop-search--hero input {
    background: #fff;
    padding-inline-start: 2.5rem;
    border-radius: .65rem;
}
.shop-search--hero button {
    background: color-mix(in srgb, var(--shop-accent) 88%, white);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.shop-hero__visual { position: relative; min-height: 260px; }
.shop-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    animation: shop-float 8s ease-in-out infinite;
}
.shop-hero__orb--1 {
    width: 180px; height: 180px;
    top: 10%; inset-inline-end: 8%;
    background: rgba(255,255,255,.12);
}
.shop-hero__orb--2 {
    width: 120px; height: 120px;
    bottom: 8%; inset-inline-start: 12%;
    background: rgba(255,255,255,.08);
    animation-delay: -3s;
}
@keyframes shop-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.shop-hero__card {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,.96);
    color: #1a2233;
    border-radius: 1.1rem;
    padding: 1.35rem 1.25rem;
    max-width: 260px;
    margin-inline-start: auto;
    box-shadow: 0 18px 40px rgba(15,23,42,.18);
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.shop-hero__card--image {
    max-width: 300px;
    padding: 1rem;
}
.shop-hero__card-media {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: .75rem;
    overflow: hidden;
    margin-bottom: .35rem;
    background: #eef2f8;
}
.shop-hero__card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.shop-hero__card i {
    font-size: 1.75rem;
    color: var(--shop-accent);
}
.shop-hero__card strong { font-size: 1.05rem; }
.shop-hero__card span { color: #64748b; font-size: .88rem; }

.shop-section--tight { padding: 1.25rem 0 1.75rem; }
.shop-section--catalog { padding-top: .5rem; }
.shop-section__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.shop-section__title {
    margin: 0;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}
.shop-section__link {
    font-weight: 700;
    color: var(--shop-accent);
    white-space: nowrap;
}

.shop-categories--cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: .85rem;
}
.shop-cat-card {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: .9rem;
    padding: 1rem;
    transition: transform .15s, box-shadow .15s, border-color .15s;
    box-shadow: 0 1px 0 rgba(15,23,42,.03);
}
.shop-cat-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--cat-color, var(--shop-accent)) 35%, #dbe3f0);
    box-shadow: 0 10px 24px rgba(29,58,112,.08);
}
.shop-cat-card__icon {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: .65rem;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--cat-color, var(--shop-accent)) 16%, white);
    color: var(--cat-color, var(--shop-accent));
    overflow: hidden;
}
.shop-cat-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.shop-cat-card__name { font-weight: 800; color: #1a2233; }
.shop-cat-card__count { font-size: .78rem; color: #64748b; }

.shop-showcase {
    padding: 1.75rem 0;
}
.shop-showcase--offers {
    background: linear-gradient(180deg, #fff7ed 0%, #f4f6fb 100%);
    border-block: 1px solid #fde6c8;
}
.shop-showcase--hot {
    background: linear-gradient(180deg, #fff5f5 0%, transparent 100%);
}
.shop-showcase--new {
    background: linear-gradient(180deg, #eff6ff 0%, transparent 100%);
}
.shop-showcase__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
}
.shop-showcase__title-wrap {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
}
.shop-showcase__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .85rem;
    display: grid;
    place-items: center;
    background: var(--shop-primary);
    color: #fff;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(29,58,112,.18);
}
.shop-showcase--offers .shop-showcase__icon { background: #ea580c; }
.shop-showcase--hot .shop-showcase__icon { background: #dc2626; }
.shop-showcase--new .shop-showcase__icon { background: #2563eb; }
.shop-showcase__title { margin: 0; font-size: 1.35rem; }
.shop-showcase__subtitle { margin: .2rem 0 0; color: #64748b; font-size: .92rem; }
.shop-showcase__link {
    font-weight: 700;
    color: var(--shop-accent);
    white-space: nowrap;
}

.shop-rail {
    display: flex;
    gap: .85rem;
    overflow-x: auto;
    padding: .25rem .15rem 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.shop-rail:focus { outline: 2px solid color-mix(in srgb, var(--shop-accent) 40%, transparent); outline-offset: 4px; }
.shop-rail__item {
    flex: 0 0 min(220px, 78vw);
    scroll-snap-align: start;
}

.shop-grid--catalog {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.shop-card--compact .shop-card__body h3 {
    font-size: .92rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shop-card--offer {
    border-color: color-mix(in srgb, #ea580c 28%, #e8edf5);
}
.shop-card__badges {
    position: absolute;
    top: .5rem;
    inset-inline-start: .5rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    z-index: 2;
}
.shop-card__badge--offer {
    background: linear-gradient(135deg, #ea580c, #dc2626);
    color: #fff;
    font-weight: 800;
    border-radius: .45rem;
    padding: .22rem .5rem;
    font-size: .72rem;
}
.shop-card__badge--oos { position: static; background: #475569; }
.shop-card__quick {
    position: absolute;
    inset: auto 0 0 0;
    padding: .55rem;
    text-align: center;
    background: linear-gradient(transparent, rgba(15,23,42,.72));
    color: #fff;
    font-size: .82rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s, transform .2s;
}
.shop-card:hover .shop-card__quick {
    opacity: 1;
    transform: translateY(0);
}
.shop-card__price-row {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: auto;
}
.shop-card__price-old {
    color: #94a3b8;
    text-decoration: line-through;
    font-size: .82rem;
    font-weight: 600;
}
.shop-card__tiers {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .35rem;
}
.shop-card__tier {
    font-size: .72rem;
    font-weight: 700;
    color: #c2410c;
    background: #ffedd5;
    border: 1px solid #fed7aa;
    border-radius: .4rem;
    padding: .12rem .45rem;
}

.shop-product__tiers {
    margin: .75rem 0;
    padding: .85rem 1rem;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: .75rem;
}
.shop-product__tiers strong {
    display: block;
    margin-bottom: .35rem;
    color: #c2410c;
}
.shop-product__tiers ul {
    margin: 0;
    padding-inline-start: 1.1rem;
    color: #9a3412;
    font-weight: 700;
}
.shop-product__tiers li { margin: .15rem 0; }

.shop-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
    background: #fff;
    border: 1px dashed #dbe3f0;
    border-radius: 1rem;
}
.shop-empty-state i { font-size: 2rem; display: block; margin-bottom: .65rem; opacity: .65; }

.shop-offers-banner {
    margin: -0.5rem 0 0.75rem;
}
.shop-offers-banner__panel {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    min-height: 160px;
    background: linear-gradient(120deg, #0f274f 0%, #1d4a8c 55%, #2a6bb8 100%);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 1.5rem 1.75rem;
}
.shop-offers-banner__panel--image {
    min-height: 200px;
}
.shop-offers-banner__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}
.shop-offers-banner__content {
    position: relative;
    z-index: 1;
    max-width: 36rem;
}
.shop-offers-banner__content h2 {
    margin: 0 0 .4rem;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 800;
}
.shop-offers-banner__content p {
    margin: 0 0 1rem;
    opacity: .92;
    line-height: 1.5;
}
.shop-btn--light {
    background: #fff;
    color: #123567;
}
.shop-btn--light:hover {
    background: #f1f5f9;
    color: #0f274f;
}
@media (max-width: 640px) {
    .shop-offers-banner__panel { padding: 1.25rem; min-height: 140px; }
}
