/*
|--------------------------------------------------------------------------
| Iran Stores - Store Show UX cleanup
|--------------------------------------------------------------------------
| Small isolated overrides.
| Existing store-show-v2.css remains untouched.
*/

.store-heading {
    min-width: 0;
}

.store-title {
    line-height: 1.35;
}

.store-meta {
    gap: 8px 12px;
}

.store-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.store-hero-actions {
    margin-top: 18px;
}

.store-primary-action,
.store-secondary-action {
    min-height: 44px;
}

.store-trust-strip-clean {
    grid-template-columns: repeat(
        auto-fit,
        minmax(150px, 1fr)
    );
}

.store-trust-strip-clean > div {
    min-width: 0;
}

.store-trust-strip-clean small {
    display: block;
}

.store-trust-strip-clean strong {
    display: block;
    overflow-wrap: anywhere;
}

/*
 * Contact information has one authoritative detailed section.
 * Make it easier to scan.
 */

.contact-list {
    display: grid;
    gap: 10px;
}

.contact-item {
    min-width: 0;
}

.contact-value {
    overflow-wrap: anywhere;
}

/*
 * Seller list is now the single source of seller presentation.
 */

.store-sellers-list {
    gap: 10px;
}

.store-seller-item {
    min-width: 0;
}

/*
 * Mobile:
 * Hero actions should remain easy to tap while the persistent
 * bottom action bar handles the three highest-value actions.
 */

@media (max-width: 768px) {
    .store-hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .store-primary-action,
    .store-secondary-action {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .store-trust-strip-clean {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .store-meta {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .store-hero-actions {
        grid-template-columns: 1fr;
    }

    .store-trust-strip-clean {
        grid-template-columns: 1fr 1fr;
    }
}


/*
|--------------------------------------------------------------------------
| Stage 8D-B - Store hero hierarchy
|--------------------------------------------------------------------------
*/

.store-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.store-title-row .store-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.store-live-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: 260px;
    padding: 9px 12px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 14px;
    background: rgba(248, 250, 252, .92);
    line-height: 1.25;
}

.store-live-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 999px;
    background: #64748b;
    box-shadow: 0 0 0 4px rgba(100, 116, 139, .12);
}

.store-live-copy {
    display: grid;
    gap: 3px;
}

.store-live-copy strong {
    font-size: 13px;
    font-weight: 900;
}

.store-live-copy small {
    font-size: 11px;
    opacity: .72;
}

.store-live-status.is-open .store-live-dot {
    background: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, .12);
}

.store-live-status.is-open strong {
    color: #15803d;
}

.store-live-status.is-online .store-live-dot {
    background: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.store-live-status.is-online strong {
    color: #1d4ed8;
}

.store-live-status.is-closed .store-live-dot {
    background: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, .10);
}

.store-live-status.is-closed strong {
    color: #b91c1c;
}

.store-meta-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.store-meta-chips .store-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 999px;
    background: rgba(248, 250, 252, .9);
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
}

.store-rating-chip {
    cursor: pointer;
}

.store-rating-chip > span {
    color: #f59e0b;
}

.store-rating-chip small {
    opacity: .68;
}

.store-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 9px;
}

.store-hero-actions .store-primary-action {
    min-width: 150px;
}

.store-hero-actions .store-secondary-action {
    min-width: 112px;
}

.store-hero-address {
    margin-top: 14px;
}

.store-hero-address > div {
    border-radius: 14px;
}

#store-rating {
    scroll-margin-top: 90px;
}

@media (max-width: 768px) {
    .store-title-row {
        display: grid;
        gap: 10px;
    }

    .store-live-status {
        width: fit-content;
        max-width: 100%;
    }

    .store-meta-chips {
        gap: 6px;
    }

    .store-meta-chips .store-meta-chip {
        min-height: 32px;
        padding: 5px 9px;
        font-size: 12px;
    }

    .store-hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .store-hero-actions .store-primary-action,
    .store-hero-actions .store-secondary-action {
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .store-title-row .store-title {
        font-size: clamp(22px, 7vw, 30px);
    }

    .store-live-status {
        padding: 8px 10px;
        border-radius: 12px;
    }

    .store-meta-chips {
        align-items: stretch;
    }

    .store-meta-chips .store-meta-chip {
        max-width: 100%;
    }

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

    .store-hero-actions > :first-child {
        grid-column: 1 / -1;
    }
}


/*
|--------------------------------------------------------------------------
| Stage 8D-C - Contact, map and hours UX
|--------------------------------------------------------------------------
*/

#store-contact,
#store-map-section,
#store-hours {
    scroll-margin-top: 90px;
}

/*
 * Contact
 */

.store-contact-card .contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.store-contact-card .contact-item {
    display: grid;
    align-content: start;
    gap: 5px;
    padding: 13px 14px;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 14px;
    background: rgba(248, 250, 252, .72);
}

.store-contact-card .contact-label {
    font-size: 11px;
    font-weight: 800;
    opacity: .62;
}

.store-contact-card .contact-value {
    font-size: 14px;
    font-weight: 750;
    line-height: 1.75;
}

.store-contact-card .contact-value a {
    text-decoration: none;
}

.store-contact-card .contact-value a:hover {
    text-decoration: underline;
}

/*
 * Map
 */

.store-map-card {
    overflow: hidden;
}

.store-map-card .store-section-title {
    margin-bottom: 14px;
}

.store-map-card #store-map,
.store-map-card .store-map,
.store-map-card .map-container {
    border-radius: 14px;
    overflow: hidden;
}

/*
 * Hours
 */

.store-hours-sidebar {
    position: static;
}

.store-hours-public-head {
    gap: 12px;
}

.store-hours-public-status {
    white-space: nowrap;
}

.store-hours-day {
    min-height: 38px;
}

.store-hours-day.today {
    font-weight: 800;
}

.store-hours-today {
    white-space: nowrap;
}

/*
 * Improve desktop content/sidebar rhythm.
 */

.store-layout > main,
.store-layout > aside {
    min-width: 0;
}

.store-layout > aside {
    align-self: start;
}

/*
 * Tablet / mobile
 */

@media (max-width: 768px) {
    .store-contact-card .contact-list {
        grid-template-columns: 1fr;
    }

    .store-contact-card .contact-item {
        padding: 12px;
        border-radius: 12px;
    }

    .store-hours-public-head {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .store-contact-card .contact-value {
        font-size: 13px;
    }

    .store-hours-public-title {
        line-height: 1.55;
    }

    .store-hours-day {
        gap: 8px;
    }
}

/*
 * STORE-LAYOUT-06B
 * Store Show: prevent primary cards from inheriting/resolving
 * to the desktop grid-row height.
 * Verified in-browser: height:auto restores intrinsic card heights.
 */
.store-page .store-layout .store-card {
    height: auto !important;
    block-size: auto !important;
}
