/* Store Detail Page — matches V0 reference design */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.store-detail-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
}

.store-detail-page .container {
    max-width: 1024px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
}

.store-detail-page .container::before,
.store-detail-page .container::after {
    display: none !important;
    content: none !important;
}

.store-detail-page .container--narrow {
    max-width: 768px !important;
}

/* ─── Section shared styles ─── */
.store-detail-page .section-label {
    font-size: 13px;
    font-weight: 500;
    color: #ef4444;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.store-detail-page .section-heading {
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    color: #1a1a1a;
}

.store-detail-page .section-subtitle {
    color: #8d8d8d;
    font-size: 16px;
    margin-bottom: 32px;
}

/* ─── HERO ─── */
.store-hero {
    position: relative;
    background: linear-gradient(to bottom, rgba(247,247,247,0.5), #fff);
    border-bottom: 1px solid #ebebeb;
    padding: 80px 0 60px;
    text-align: center;
    overflow: hidden;
}

.store-hero__grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(230,200,200,0.35) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(230,200,200,0.35) 1px, transparent 1px);
    background-size: 4rem 4rem;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black 70%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black 70%, transparent 100%);
    pointer-events: none;
}

.store-hero__inner {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid #ebebeb;
    background: #f7f7f7;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 24px;
}

.hero-badge__icon {
    color: #ef4444;
}

.hero-logo {
    margin-bottom: 20px;
}

.hero-logo img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    border: 1px solid #ebebeb;
    object-fit: cover;
}

.hero-headline {
    font-size: 42px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 16px;
    color: #1a1a1a;
    text-wrap: balance;
}

.hero-subtitle {
    font-size: 18px;
    color: #8d8d8d;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #ef4444;
    color: #fff;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-hero-primary:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239,68,68,0.3);
    color: #fff;
    text-decoration: none;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: transparent;
    color: #1a1a1a;
    border: 1px solid rgba(26,26,26,0.3);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-hero-secondary:hover {
    background: rgba(26,26,26,0.05);
    color: #1a1a1a;
    text-decoration: none;
}

/* Stats bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stat-icon-wrap {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid #ebebeb;
    background: #f7f7f7;
    margin-bottom: 4px;
}

.stat-icon {
    color: #ef4444;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: #8d8d8d;
}

/* ─── REFERRAL CODES ─── */
.section-codes {
    padding: 80px 0;
    border-bottom: 1px solid #ebebeb;
}

.store-detail-page .section-codes__header {
    text-align: center !important;
    margin-bottom: 32px;
}

.store-detail-page .section-codes__header .section-label,
.store-detail-page .section-codes__header .section-heading,
.store-detail-page .section-codes__header .section-subtitle {
    text-align: center !important;
}

.store-detail-page .section-codes__header .section-heading {
    font-weight: 700 !important;
    font-size: 36px !important;
}

.store-detail-page .section-codes__header .section-subtitle {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.codes-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
    margin-bottom: 24px;
}

.code-card {
    border: 1px solid #ebebeb;
    border-radius: 14px;
    padding: 20px;
    background: #fff;
    transition: all 0.2s;
}

.code-card:hover {
    border-color: rgba(140,140,140,0.3);
    background: rgba(247,247,247,0.5);
}

.code-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.code-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f7f7f7;
    border: 1px solid #ebebeb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.code-card__avatar-icon {
    color: #8d8d8d;
}

.code-card__meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.code-card__user {
    font-weight: 500;
    font-size: 14px;
    color: #1a1a1a;
}

.code-card__date {
    font-size: 12px;
    color: #8d8d8d;
}

.store-detail-page .code-card__uses {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 999px;
    background: none;
    font-size: 12px;
    font-weight: 500;
    color: #8d8d8d;
    flex-shrink: 0;
}

.store-detail-page .code-card__uses--top {
    color: #ef4444 !important;
}

.store-detail-page .code-card__uses--mid {
    color: #f97316 !important;
}

.code-card__body {
    /* empty */
}

.code-card__code-row {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    padding: 12px 16px;
    background: #fafafa;
    transition: all 0.2s;
    cursor: pointer;
}

.code-card__code-row:hover {
    border-color: rgba(26,26,26,0.3);
    background: #f3f3f3;
}

.code-card__code-row--link {
    background: #fef2f2;
    border-color: #fecaca;
}

.code-card__code-row--link:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}

.code-text {
    flex: 1;
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', monospace;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-detail-page .code-text--link {
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #ef4444 !important;
}

.code-row__icon {
    color: #8d8d8d;
    flex-shrink: 0;
    transition: color 0.2s;
}

.code-card__code-row:hover .code-row__icon {
    color: #1a1a1a;
}

.store-detail-page .code-card__code-row--link .code-row__icon {
    color: #ef4444 !important;
}

.store-detail-page .code-card__code-row--link:hover .code-text--link,
.store-detail-page .code-card__code-row--link:hover .code-row__icon {
    color: #dc2626 !important;
}

.code-card__hint {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #b3b3b3;
    margin-top: 8px;
}

.codes-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #8d8d8d;
    font-size: 15px;
}

.codes-cta {
    text-align: center;
    margin-top: 24px;
}

.btn-add-code {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    background: #fff;
    transition: all 0.2s;
}

.btn-add-code:hover {
    background: #f7f7f7;
    border-color: #ccc;
    color: #1a1a1a;
    text-decoration: none;
}

/* ─── SIMILAR STORES ─── */
.store-detail-page .section-similar {
    padding: 80px 0;
    border-bottom: 1px solid #ebebeb;
    background: #fafafa;
}

.store-detail-page .stores-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

.store-detail-page .store-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #ebebeb;
    border-radius: 14px;
    padding: 20px;
    background: #fff;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.2s;
}

.store-detail-page .store-card:hover {
    border-color: rgba(239,68,68,0.3);
    background: #f7f7f7;
    text-decoration: none !important;
    color: inherit !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.store-detail-page .store-card__top {
    margin-bottom: 16px;
}

.store-detail-page .store-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #ebebeb;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.store-detail-page .store-card__title {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 4px;
    color: #1a1a1a !important;
}

.store-detail-page .store-card__tagline {
    font-size: 14px;
    color: #8d8d8d !important;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.store-detail-page .store-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.store-detail-page .store-card__offer {
    font-size: 13px;
    font-weight: 500;
    color: #ef4444 !important;
}

.store-detail-page .store-card__arrow {
    color: #8d8d8d;
    transition: all 0.2s;
    flex-shrink: 0;
}

.store-detail-page .store-card:hover .store-card__arrow {
    transform: translateX(4px);
    color: #ef4444;
}

/* ─── TRENDING STORES ─── */
.store-detail-page .section-trending {
    padding: 80px 0;
    border-bottom: 1px solid #ebebeb;
}

.store-detail-page .section-trending__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

.store-detail-page .section-trending__left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.store-detail-page .trending-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fef2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.store-detail-page .trending-icon {
    color: #ef4444;
}

.store-detail-page .section-heading--inline {
    margin: 0 !important;
    font-size: 20px !important;
    font-weight: 600 !important;
}

.store-detail-page .section-trending__sub {
    font-size: 13px;
    color: #8d8d8d;
    margin: 2px 0 0;
}

.store-detail-page .trending-view-all {
    font-size: 14px;
    font-weight: 500;
    color: #ef4444 !important;
    text-decoration: none !important;
    white-space: nowrap;
    padding-top: 4px;
}

.store-detail-page .trending-view-all:hover {
    text-decoration: underline !important;
}

.store-detail-page .trending-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

.store-detail-page .trending-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    background: #fff;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.2s;
}

.store-detail-page .trending-card:hover {
    border-color: rgba(140,140,140,0.3);
    background: #f7f7f7;
    text-decoration: none !important;
}

.store-detail-page .trending-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.store-detail-page .trending-card__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.store-detail-page .trending-card__name {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

.store-detail-page .trending-card__offer {
    font-size: 13px;
    color: #ef4444;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ─── HOW IT WORKS ─── */
.store-detail-page .section-how {
    padding: 80px 0 !important;
    border-bottom: 1px solid #ebebeb !important;
    background: #fff !important;
}

.store-detail-page .section-how .section-label {
    text-align: center !important;
}

.store-detail-page .section-how .section-heading {
    text-align: center !important;
    margin-bottom: 8px !important;
}

.store-detail-page .section-how .section-subtitle {
    text-align: center !important;
    color: #6b6b6b !important;
    font-size: 16px !important;
    margin-bottom: 48px !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.store-detail-page .steps-grid {
    display: grid !important;
    gap: 32px !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    position: relative !important;
}

.store-detail-page .step-card {
    text-align: center !important;
    position: relative !important;
    padding: 0 8px !important;
}

/* Horizontal connector line between steps (desktop) */
.store-detail-page .step-card:not(:last-child)::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: 32px !important;
    right: -16px !important;
    width: calc(100%) !important;
    height: 1px !important;
    background: #ebebeb !important;
    z-index: 0 !important;
}

.store-detail-page .step-icon-wrap {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 64px !important;
    height: 64px !important;
    border-radius: 16px !important;
    border: 1px solid #ebebeb !important;
    background: #fff !important;
    margin-bottom: 16px !important;
    z-index: 1 !important;
}

.store-detail-page .step-icon {
    color: #ef4444 !important;
}

.store-detail-page .step-number {
    position: absolute !important;
    top: -8px !important;
    right: -8px !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background: #1a1a1a !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    padding: 0 !important;
    border: none !important;
}

.store-detail-page .step-title {
    font-size: 16px !important;
    font-weight: 500 !important;
    margin: 0 0 6px !important;
    color: #1a1a1a !important;
}

.store-detail-page .step-body {
    font-size: 14px !important;
    color: #8d8d8d !important;
    margin: 0 auto !important;
    max-width: 240px !important;
    line-height: 1.5 !important;
}

/* Hide connectors on small screens */
@media (max-width: 600px) {
    .store-detail-page .step-card:not(:last-child)::after {
        display: none !important;
    }
    .store-detail-page .steps-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ─── ABOUT ─── */
.section-about {
    padding: 80px 0;
    border-bottom: 1px solid #ebebeb;
}

.about-intro,
.about-paragraph {
    font-size: 16px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-headline {
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.about-image {
    margin: 24px 0;
    border-radius: 12px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.feature-bullets {
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-bullet {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.feature-emoji {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1.6;
}

.feature-bullet div {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.feature-bullet strong {
    color: #1a1a1a;
}

.store-hashtag {
    font-size: 14px;
    color: #ef4444;
    font-weight: 500;
    margin-top: 16px;
}

/* ─── FAQ ─── */
.store-detail-page .section-faq {
    padding: 80px 0;
    border-bottom: 1px solid #ebebeb;
}

.store-detail-page .section-faq .section-faq__header {
    text-align: center !important;
    margin-bottom: 40px;
}

.store-detail-page .section-faq .section-faq__header .section-label,
.store-detail-page .section-faq .section-faq__header .section-heading,
.store-detail-page .section-faq .section-faq__header .section-subtitle {
    text-align: center !important;
}

.store-detail-page .section-faq .section-faq__header .section-heading {
    font-weight: 700 !important;
    font-size: 36px !important;
}

.store-detail-page .faq-accordion {
    margin-top: 0;
}

.store-detail-page .faq-item {
    border-bottom: 1px solid #ebebeb !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

.store-detail-page .faq-item:first-child {
    border-top: 1px solid #ebebeb !important;
}

.store-detail-page .faq-question {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 20px 0 !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
    text-align: left !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    line-height: 1.5 !important;
    gap: 16px !important;
    margin: 0 !important;
    box-shadow: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    text-decoration: none !important;
}

.store-detail-page .faq-question:hover {
    color: #555 !important;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.store-detail-page .faq-question:focus {
    outline: none !important;
    box-shadow: none !important;
    background: none !important;
}

.store-detail-page .faq-chevron {
    flex-shrink: 0;
    transition: transform 0.2s;
    color: #8d8d8d !important;
}

.store-detail-page .faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.store-detail-page .faq-answer {
    padding: 0 0 20px !important;
    font-size: 15px !important;
    color: #8d8d8d !important;
    line-height: 1.7 !important;
    background: transparent !important;
}

.store-detail-page .faq-answer a {
    color: #ef4444 !important;
    text-decoration: underline !important;
}

/* ─── PAGINATION OVERRIDE ─── */
.store-detail-page .pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.store-detail-page .pagination li a,
.store-detail-page .pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    font-size: 14px;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.2s;
}

.store-detail-page .pagination li.active span {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.store-detail-page .pagination li a:hover {
    background: #f7f7f7;
}

/* ─── RESPONSIVE ─── */
@media (min-width: 640px) {
    .store-detail-page .codes-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .store-detail-page .stores-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .store-detail-page .steps-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .store-detail-page .trending-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 768px) {
    .store-detail-page .hero-headline {
        font-size: 56px;
    }
    .store-detail-page .hero-subtitle {
        font-size: 20px;
    }
    .store-detail-page .section-heading {
        font-size: 36px;
    }
}

@media (min-width: 1024px) {
    .store-detail-page .hero-headline {
        font-size: 68px;
    }
    .store-detail-page .codes-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .store-detail-page .stores-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .store-detail-page .steps-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    .store-detail-page .trending-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 639px) {
    .store-detail-page .store-hero {
        padding: 48px 0 40px;
    }
    .store-detail-page .hero-headline {
        font-size: 32px;
    }
    .store-detail-page .hero-ctas {
        flex-direction: column;
        margin-bottom: 32px;
    }
    .store-detail-page .btn-hero-primary,
    .store-detail-page .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
    .store-detail-page .stats-bar {
        gap: 24px;
    }
    .store-detail-page .section-codes,
    .store-detail-page .section-similar,
    .store-detail-page .section-how,
    .store-detail-page .section-about,
    .store-detail-page .section-faq,
    .store-detail-page .section-trending {
        padding: 48px 0;
    }
}
