/* CSS-Structure-5A: Store Show page styles split from public-polish.css. */

/* Late-phase public/admin polish: compact V1-like navigation and smaller page scale. */

.store-page-shell-section {
    padding-top: 32px;
}

.store-page-shell {
    width: min(1240px, calc(100% - 48px));
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: 24px;
}

.store-detail-maincard {
    padding: clamp(18px, 2vw, 28px);
}

.store-detail-hero {
    gap: 22px;
}

.store-logo-box-large {
    width: 76px;
    height: 76px;
    border-radius: 18px;
}

.store-detail-titleblock h1 {
    max-width: 12ch;
    font-size: clamp(2.05rem, 3.1vw, 3.25rem);
    line-height: 1.02;
}

.store-domain-large,
.store-detail-summary,
.store-detail-summary-secondary {
    font-size: 1rem;
    line-height: 1.55;
}

.store-detail-utility {
    padding: clamp(18px, 2vw, 24px);
}

.store-trust-badge-rail {
    gap: 10px;
}

.store-detail-sidebar {
    gap: 18px;
}

.store-detail-sidebar .info-card,
.store-detail-sidebar .store-related-card {
    padding: 22px;
}

.store-offers-section .section-head h2 {
    font-size: clamp(2rem, 3.2vw, 3.2rem);
    line-height: 1.05;
}

@media (max-width: 980px) {
    .store-page-shell {
        grid-template-columns: 1fr;
    }
}

.store-detail-titleblock h1 {
    font-size: clamp(2.05rem, 3.3vw, 3.2rem);
    line-height: 1.04;
}

.store-detail-summary,
.store-detail-summary-secondary {
    font-size: 1rem;
    line-height: 1.55;
}

.store-rating-widget {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin: 12px 0 16px;
}

.store-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.store-rating-stars button {
    width: 26px;
    height: 26px;
    border: 0;
    background: transparent;
    color: rgba(29, 255, 156, 0.34);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

.store-rating-stars button:hover,
.store-rating-stars button:focus-visible,
.store-rating-stars button.is-active,
.store-rating-stars button.is-selected,
.store-rating-stars button.is-hovered {
    color: var(--rc-accent, #1dff9c);
}

.store-rating-stars button:hover,
.store-rating-stars button:focus-visible {
    transform: translateY(-1px);
}

.store-rating-stars button:disabled {
    cursor: default;
}

.store-rating-widget span,
.store-rating-widget strong {
    color: #9bd8c0;
    font-size: 0.92rem;
}

.store-rating-widget strong {
    display: none;
    color: var(--rc-accent, #1dff9c);
}

.store-rating-widget strong.is-visible {
    display: inline;
}

.store-rating-widget strong.is-error {
    color: #ffb4a9;
}

.store-detail-sidebar .info-card h2,
.store-detail-sidebar .info-card h3 {
    font-size: clamp(1.25rem, 1.7vw, 1.65rem);
    line-height: 1.18;
}

.store-save-form {
    display: inline-flex;
}

.store-save-button.is-saved {
    border-color: rgba(29, 255, 156, 0.34);
    background: rgba(29, 255, 156, 0.12);
    color: #bff9df;
}

/* Store page correction: keep the wide layout, only reduce the scale. */
.store-page-shell {
    width: min(1840px, calc(100% - 64px));
    max-width: none;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
    gap: 24px;
}

.store-page-main {
    min-width: 0;
}

.store-detail-maincard {
    padding: clamp(20px, 2.1vw, 34px);
}

.store-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: clamp(22px, 2vw, 34px);
    align-items: center;
}

.store-detail-brandlock {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

.store-logo-box-large {
    width: 84px;
    height: 84px;
    border-radius: 20px;
}

.store-detail-titleblock h1 {
    max-width: 760px;
    font-size: clamp(2.25rem, 3vw, 3.65rem);
    line-height: 1.02;
}

.store-domain-large,
.store-detail-summary,
.store-detail-summary-secondary {
    max-width: 650px;
}

.store-detail-utility {
    padding: clamp(20px, 1.8vw, 28px);
}

.store-detail-sidebar .info-card {
    padding: 24px;
}

.store-detail-sidebar .info-card h2,
.store-detail-sidebar .info-card h3 {
    font-size: clamp(1.25rem, 1.55vw, 1.85rem);
}

.store-offers-section .section-head h2 {
    max-width: none;
    font-size: clamp(2rem, 3vw, 3.25rem);
}

@media (max-width: 1100px) {
    .store-page-shell,
    .store-detail-hero {
        grid-template-columns: 1fr;
    }
}

/* Store page V1 parity: reduce the whole page scale, not just the sidebar. */
body .store-page-shell-section {
    padding-top: 22px;
    padding-bottom: 36px;
}

body .store-page-shell {
    width: min(1840px, calc(100% - 64px));
    max-width: none;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
    gap: 24px;
    align-items: start;
}

body .store-page-shell-no-sidebar {
    grid-template-columns: 1fr;
}

body .page-breadcrumbs {
    margin-bottom: 18px;
    font-size: 0.86rem;
}

body .store-detail-maincard {
    padding: clamp(26px, 3vw, 42px);
    border-radius: 24px;
    background:
        radial-gradient(circle at 18% 20%, rgba(29, 255, 156, 0.11), transparent 34%),
        linear-gradient(135deg, rgba(11, 42, 30, 0.86), rgba(6, 17, 14, 0.94));
}

body .store-detail-hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.5fr);
    gap: clamp(28px, 4vw, 58px);
    align-items: center;
}

body .store-detail-brandlock {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 22px;
}

body .store-logo-box-large {
    width: 80px;
    height: 80px;
    border-radius: 18px;
}

body .store-detail-titleblock h1 {
    max-width: 18ch;
    font-size: clamp(2rem, 3vw, 3.3rem) !important;
    line-height: 1.03;
}

body .store-domain-large,
body .store-detail-summary,
body .store-detail-summary-secondary {
    max-width: 46ch;
    font-size: 0.94rem;
    line-height: 1.5;
}

body .store-rating-widget {
    margin: 10px 0 8px;
}

body .store-rating-stars button {
    font-size: 1rem;
}

body .hero-actions .nav-cta,
body .hero-actions .ghost-link,
body .store-save-button {
    min-height: 42px;
    padding: 10px 16px;
    font-size: 0.92rem;
}

body .store-detail-utility {
    padding: clamp(20px, 2vw, 28px);
    border-radius: 20px;
}

body .store-hero-spotlight p,
body .store-detail-sidebar p,
body .detail-list {
    font-size: 0.9rem;
    line-height: 1.52;
}

body .store-trust-badge-rail {
    gap: 8px;
    padding: 12px 0;
}

body .store-trust-badge {
    min-height: 64px;
    padding: 11px;
}

body .store-trust-badge strong {
    font-size: 0.96rem;
}

body .store-detail-sidebar {
    gap: 14px;
}

body .store-detail-sidebar .info-card {
    padding: 20px;
    border-radius: 18px;
}

body .store-detail-sidebar .info-card h2,
body .store-detail-sidebar .info-card h3 {
    font-size: clamp(1.08rem, 1.35vw, 1.38rem) !important;
    line-height: 1.15;
}

body .store-offers-section {
    padding-top: 24px;
}

body .store-offers-section .section-head {
    margin-bottom: 16px;
}

body .store-offers-section .section-head h2 {
    max-width: none;
    font-size: clamp(1.9rem, 2.6vw, 2.85rem) !important;
    line-height: 1.05;
}

body .coupon-list-helper {
    font-size: 0.92rem;
}

body .coupon-grid-store {
    gap: 16px;
}

body .coupon-grid-store .coupon-card,
body .coupon-grid-store .coupon-card-simple {
    max-width: 760px;
    padding: 20px;
}

body .store-offers-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    margin: 0 0 18px;
    padding: 18px;
    border: 1px solid rgba(29, 255, 156, 0.13);
    border-radius: 18px;
    background: rgba(9, 30, 22, 0.62);
}

body .store-offers-overview h3 {
    margin: 0 0 8px;
    font-size: 1.12rem;
}

body .store-offers-overview p {
    margin: 0;
    color: var(--rc-muted, #9dc7b7);
    font-size: 0.94rem;
    line-height: 1.5;
}

body .store-offers-jump-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

body .store-offers-jump-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid rgba(29, 255, 156, 0.14);
    border-radius: 999px;
    background: rgba(29, 255, 156, 0.06);
    color: var(--rc-link-text, #1dff9c);
    font-size: 0.84rem;
    font-weight: 800;
}

body .store-faq-list {
    display: grid;
    gap: 0;
    margin-top: 12px;
}

body .store-faq-item {
    padding: 13px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body .store-faq-item strong {
    display: block;
    color: var(--rc-heading-text, #ecfff8);
    font-size: 0.95rem;
    line-height: 1.35;
}

body .store-faq-item p {
    margin: 6px 0 0;
    font-size: 0.88rem;
}

body .store-info-after-offers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

body .store-info-after-offers .info-card {
    padding: 22px;
    border-radius: 20px;
    background:
        linear-gradient(145deg, rgba(29, 255, 156, 0.045), rgba(255, 255, 255, 0.012)),
        rgba(7, 16, 13, 0.86);
}

body .store-info-after-offers .info-card h2,
body .store-info-after-offers .info-card h3 {
    font-size: clamp(1.15rem, 1.45vw, 1.55rem) !important;
    line-height: 1.16;
}

body .store-info-after-offers .store-faq-card {
    grid-column: 1 / -1;
}

body .store-detail-maincard {
    padding: clamp(24px, 2.4vw, 36px);
}

body .store-detail-hero {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.42fr);
    gap: clamp(22px, 3vw, 44px);
}

body .store-detail-maincopy {
    display: grid;
    align-content: center;
    gap: 18px;
}

body .store-detail-brandlock {
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: center;
}

body .store-detail-titleblock {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    min-width: 0;
}

body .store-detail-titleblock .hero-pill.inline-pill {
    width: auto;
    max-width: max-content;
    justify-self: start;
    align-self: flex-start;
    flex: 0 0 auto;
    white-space: nowrap;
}

body .store-detail-titleblock h1 {
    max-width: none;
    font-size: clamp(2rem, 2.65vw, 3.05rem) !important;
    line-height: 1.04;
    white-space: nowrap;
}

body .store-detail-copy-stack {
    display: grid;
    gap: 6px;
    max-width: 60ch;
    margin-top: 6px;
}

body .store-detail-summary,
body .store-detail-summary-secondary {
    margin: 0;
    max-width: 60ch;
    text-align: left;
}

body .store-detail-utility {
    align-self: center;
    padding: clamp(18px, 1.7vw, 24px);
}

body .store-hero-spotlight {
    display: grid;
    gap: 7px;
}

body .store-hero-spotlight p,
body .store-hero-spotlight strong {
    margin: 0;
}

body .store-trust-badge-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 13px 0 0;
    margin-top: 12px;
}

body .store-trust-badge-rating {
    grid-column: span 1;
}

body .store-save-heart {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(29, 255, 156, 0.28);
    border-radius: 999px;
    background: rgba(29, 255, 156, 0.08);
    color: var(--rc-link-text, #1dff9c);
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

body .store-save-heart:hover,
body .store-save-heart:focus-visible {
    background: rgba(29, 255, 156, 0.16);
    border-color: rgba(29, 255, 156, 0.52);
    color: #ecfff8;
}

body .store-save-heart.is-saved {
    background: var(--rc-accent, #1dff9c);
    color: #031611;
    border-color: transparent;
}

body .coupon-grid-store {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

body .coupon-grid-store .coupon-card,
body .coupon-grid-store .coupon-card-simple {
    max-width: none;
    min-height: 0;
    padding: 16px;
    border-radius: 18px;
}

body .coupon-grid-store .coupon-card h3,
body .coupon-grid-store .coupon-card-simple h3 {
    font-size: 1.05rem;
    line-height: 1.25;
}

body .coupon-grid-store .coupon-card p,
body .coupon-grid-store .coupon-card-simple p {
    font-size: 0.9rem;
    line-height: 1.45;
}

body .coupon-grid-store .show-code-button {
    min-height: 48px;
    padding: 12px 16px;
}

body .store-info-after-offers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body .store-info-after-offers .store-about-card,
body .store-info-after-offers .store-faq-card {
    grid-column: 1 / -1;
}

body .store-info-after-offers .store-about-card p {
    max-width: 86ch;
    font-size: 0.98rem;
}

.store-search-box {
    overflow: visible;
}

.store-search-box.has-search-open {
    position: relative;
    z-index: 70;
}

.store-search-results {
    max-height: min(470px, 54vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 90;
}

.clean-search.store-search-box .store-search-results {
    top: calc(100% + 0px);
    left: 0;
    right: 0;
    width: 100%;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.site-search-modal-form.store-search-box {
    position: relative;
    z-index: 4;
}

.site-search-modal-form.store-search-box .store-search-results {
    max-height: min(360px, 42vh);
}

@media (max-width: 1180px) {
    body .store-page-shell,
    body .store-detail-hero,
    body .store-offers-overview,
    body .store-info-after-offers {
        grid-template-columns: 1fr;
    }

    body .store-offers-jump-links {
        justify-content: flex-start;
    }

    body .store-detail-titleblock h1 {
        white-space: normal;
    }

    body .coupon-grid-store {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    body .store-detail-brandlock {
        grid-template-columns: 1fr;
    }

    body .coupon-grid-store {
        grid-template-columns: 1fr;
    }

    body .store-trust-badge-rail,
    body .store-info-after-offers {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .store-page-shell-section {
        padding-top: 14px;
        padding-bottom: 28px;
    }

    .store-page-shell {
        width: min(100%, calc(100% - 24px)) !important;
        gap: 16px !important;
    }

    .page-breadcrumbs {
        display: flex;
        flex-wrap: wrap;
        gap: 6px 9px;
        margin-bottom: 14px !important;
        font-size: 0.8rem !important;
        line-height: 1.45;
    }

    .store-detail-maincard {
        padding: 18px !important;
        border-radius: 22px !important;
    }

    .store-detail-hero,
    .store-detail-brandlock,
    .store-info-after-offers {
        grid-template-columns: 1fr !important;
    }

    .store-detail-maincopy {
        gap: 16px !important;
    }

    .store-detail-brandlock {
        gap: 16px !important;
        justify-items: start;
    }

    .store-logo-box-large,
    .store-logo-box {
        width: 72px !important;
        height: 72px !important;
        border-radius: 18px !important;
    }

    .store-detail-titleblock {
        gap: 8px !important;
    }

    .store-detail-titleblock .hero-pill.inline-pill {
        max-width: 100%;
        white-space: normal;
    }

    .store-detail-titleblock h1 {
        max-width: 100% !important;
        font-size: clamp(2rem, 8vw, 2.65rem) !important;
        line-height: 1.02 !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    .store-domain-large,
    .store-detail-summary,
    .store-detail-summary-secondary,
    .store-detail-copy-stack {
        max-width: 100% !important;
    }

    .store-detail-copy-stack {
        gap: 10px !important;
    }

    .store-rating-widget {
        gap: 8px;
    }

    .store-rating-stars {
        flex-wrap: wrap;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        align-items: stretch;
    }

    .hero-actions .nav-cta,
    .hero-actions .ghost-link,
    .store-save-heart,
    .store-save-form {
        width: 100%;
    }

    .hero-actions .ghost-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0 18px;
        border: 1px solid rgba(29, 255, 156, 0.18);
        border-radius: 999px;
        background: rgba(29, 255, 156, 0.05);
    }

    .store-save-form {
        display: flex;
    }

    .store-save-heart {
        min-height: 44px;
        justify-content: center;
    }

    .store-detail-utility {
        padding: 16px !important;
        border-radius: 18px !important;
    }

    .store-trust-badge-rail,
    .coupon-grid-store {
        grid-template-columns: 1fr !important;
    }

    .store-offers-section {
        padding-top: 18px;
    }

    .store-offers-section .section-head {
        margin-bottom: 14px !important;
    }

    .store-offers-section .section-head h2 {
        font-size: clamp(1.7rem, 7vw, 2.2rem) !important;
    }

    .coupon-list-helper {
        font-size: 0.88rem;
        line-height: 1.55;
    }
}
