body.store-v2 .store-main,
body.store-v2 .product-main {
    position: relative;
    z-index: 1;
}

.store-hero-text {
    background: #eff6ff;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    width: 100%;
}

.store-section > h2,
.product-main > section > h2 {
    background: #eff6ff;
    border-radius: 0.75rem;
    padding: 0.4rem 0;
    display: block;
    width: 100%;
    font-size: 1.75rem;
    line-height: 1.25;
    font-weight: 700;
    color: #64748b;
}

@media (min-width: 768px) {
    .store-section > h2,
    .product-main > section > h2 {
        font-size: 2rem;
    }
}

.store-card {
    animation: storeRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.store-section {
    scroll-margin-top: 168px;
}

a.cat-pill,
button.cat-pill {
    border-radius: 0.75rem;
    text-decoration: none;
    transition: background-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.cat-pill[aria-selected="true"] {
    background: #0836a9;
    color: #fff;
}

.cat-pill[aria-selected="false"] {
    background: #f1f5f9;
    color: #111827;
}

.cat-pill[aria-selected="false"]:hover {
    background: #e2e8f0;
}

.store-card h3 a:not(.store-group-link) {
    text-decoration: none;
}

.store-card h3 a:not(.store-group-link):hover {
    color: #2563eb;
}

a.store-group-link {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

a.store-group-link:hover {
    color: #1e3a8a;
}

.store-desc p,
.store-desc li {
    position: relative;
    margin: 0.35rem 0;
    padding-left: 1rem;
}

.store-desc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.store-desc > p::before,
.store-desc li::before {
    content: "•";
    color: #0ea5e9;
    position: absolute;
    left: 0;
}

.store-desc p:has(ul),
.store-desc p:has(li) {
    padding-left: 0;
}

.store-desc p:has(ul)::before,
.store-desc p:has(li)::before {
    content: none;
}

.store-prose p {
    margin: 0.6rem 0;
}

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

.btn-cart,
.store-qty-btn {
    cursor: pointer;
    user-select: none;
}

.btn-cart:not(.hidden) {
    min-width: 7.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: #fff;
    border: 0;
}

.btn-cart:hover {
    background: #1d4ed8;
}

.store-qty-btn:not(.hidden) {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 1.25rem;
    line-height: 1;
    color: #0f172a;
}

.store-qty-btn:hover {
    background: #f8fafc;
}

#sec-merch .item-price,
.merch-buy .item-price {
    flex-shrink: 0;
}

#sec-merch .item-cart,
.merch-buy .item-cart {
    margin-left: auto;
}

#sec-merch article.store-card > a.block {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    flex-shrink: 0;
}

#sec-merch article.store-card > a.block img {
    position: absolute;
    inset: 1rem;
    width: calc(100% - 2rem);
    height: calc(100% - 2rem);
    max-width: none;
    max-height: none;
    margin: 0;
    object-fit: contain;
    object-position: center;
}

#sec-merch article.store-card h3 {
    min-height: 2.75em;
}

.store-v2 .product-gallery {
    padding: 1.75rem 1.75rem 2rem;
}

.product-gallery-thumbs {
    display: flex;
    gap: 0.875rem;
    margin-top: 1.5rem;
    padding: 0.25rem 0.25rem 0.35rem;
}

.product-gallery-thumbs .gallery-thumb {
    width: 5rem;
    height: 5rem;
    padding: 0.5rem;
}

.gallery-thumb {
    box-sizing: border-box;
    border: 2px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
}

.gallery-thumb[aria-selected="true"] {
    border-color: #2563eb;
}

.gallery-main {
    animation: galleryFade 0.35s ease both;
}

@keyframes galleryFade {
    from { opacity: 0.55; }
    to { opacity: 1; }
}

body.store-v2 .cart-notice {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    z-index: 50;
    width: min(920px, calc(100% - 1.5rem));
    height: auto;
    background: #0f172a;
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
}

body.store-v2 .cart-notice .cart-notice-content-wrapper,
body.store-v2 .cart-notice .cart-notice-content {
    height: auto;
    max-width: none;
}

body.store-v2 .cart-notice .place-order {
    display: inline-flex;
    margin-left: 0.75rem;
    padding: 0.45rem 0.9rem;
    border-radius: 0.75rem;
    background: #3b82f6;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

body.store-v2 .cart-notice .place-order:hover {
    background: #60a5fa;
}

body.store-v2 .cart-section .cart-details-wrapper:not(.hidden) {
    top: 0;
    z-index: 60;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
}

body.store-v2 .cart-section .cart-details {
    width: min(720px, 100%);
    max-height: 88vh;
    margin: 0;
    border-radius: 1.5rem 1.5rem 0 0;
    padding: 1.5rem;
}

body.store-v2 .cart-details .place-order-send,
body.store-v2 .cart-details .cart-clear,
body.store-v2 .cart-details .place-order-cancel {
    float: none;
    color: #0f172a;
    background: #f1f5f9;
    box-shadow: none;
    border: 0;
    border-radius: 0.75rem;
    padding: 0.7rem 1rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

body.store-v2 .cart-details .place-order-send {
    background: #2563eb;
    color: #fff;
}

body.store-v2 main.store-main,
body.store-v2 main.product-main {
    padding-bottom: 6.5rem;
}

@media (prefers-reduced-motion: reduce) {
    .store-card,
    .gallery-main {
        animation: none;
    }
}

/* Утилиты макета, которых нет в собранном tailwind-styles.css */
.aspect-square { aspect-ratio: 1 / 1; }
.object-contain { object-fit: contain; }
.max-h-full { max-height: 100%; }
.max-h-\[280px\] { max-height: 280px; }
.max-w-2xl { max-width: 42rem; }
.max-w-\[240px\] { max-width: 240px; }
.min-w-0 { min-width: 0; }
.min-w-\[1\.5rem\] { min-width: 1.5rem; }
.min-w-\[480px\] { min-width: 480px; }
.min-h-\[280px\] { min-height: 280px; }
.self-start { align-self: flex-start; }
.shrink-0 { flex-shrink: 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabular-nums { font-variant-numeric: tabular-nums; }
.leading-relaxed { line-height: 1.625; }
.h-auto { height: auto; }
.z-40 { z-index: 40; }
.top-16 { top: 4rem; }
.pt-3 { padding-top: 0.75rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.gap-1\.5 { gap: 0.375rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.bg-slate-900 { background-color: #0f172a; }
.bg-amber-50 { background-color: #fffbeb; }
.bg-emerald-50 { background-color: #ecfdf5; }
.bg-white\/20 { background-color: rgb(255 255 255 / 0.2); }
.text-amber-800 { color: #92400e; }
.text-emerald-700 { color: #047857; }
.text-slate-900 { color: #0f172a; }
.text-slate-950 { color: #020617; }
.text-sky-700 { color: #0369a1; }
.text-blue-700 { color: #1d4ed8; }
.border-slate-200\/70 { border-color: rgb(226 232 240 / 0.7); }
.border-slate-200\/80 { border-color: rgb(226 232 240 / 0.8); }
.hover\:bg-slate-800:hover { background-color: #1e293b; }
.hover\:text-sky-800:hover { color: #075985; }
.hover\:shadow-2xl:hover { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.ring-2 { box-shadow: 0 0 0 2px var(--tw-ring-color, rgb(59 130 246 / 0.4)); }
.ring-blue-500\/40 { --tw-ring-color: rgb(59 130 246 / 0.4); }
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.375rem; }

@media (min-width: 640px) {
    .sm\:items-end { align-items: flex-end; }
    .sm\:gap-4 { gap: 1rem; }
    .sm\:p-4 { padding: 1rem; }
    .sm\:p-5 { padding: 1.25rem; }
    .sm\:p-6 { padding: 1.5rem; }
    .sm\:px-4 { padding-left: 1rem; padding-right: 1rem; }
    .sm\:px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
    .sm\:pt-4 { padding-top: 1rem; }
    .sm\:py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
    .sm\:mt-3 { margin-top: 0.75rem; }
    .sm\:mt-6 { margin-top: 1.5rem; }
    .sm\:mt-8 { margin-top: 2rem; }
    .sm\:mt-10 { margin-top: 2.5rem; }
    .sm\:mb-5 { margin-bottom: 1.25rem; }
    .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .sm\:rounded-2xl { border-radius: 1rem; }
    .sm\:rounded-3xl { border-radius: 1.5rem; }
}

@media (min-width: 768px) {
    .md\:grid-cols-\[280px_1fr\] { grid-template-columns: 280px 1fr; }
    .md\:p-6 { padding: 1.5rem; }
    .md\:p-7 { padding: 1.75rem; }
    .md\:p-8 { padding: 2rem; }
    .md\:p-10 { padding: 2.5rem; }
    .md\:py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
    .md\:max-h-\[420px\] { max-height: 420px; }
    .md\:min-h-\[420px\] { min-height: 420px; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-\[1\.05fr_0\.95fr\] { grid-template-columns: 1.05fr 0.95fr; }
}
