/* Shop detail page — mobile-first (TrustBhai) */
body:has(.shop-detail-page) {
    background: #f0f2f5 !important;
    font-family: "Roboto", sans-serif !important;
}

.shop-detail-page {
    --sd-primary: #5b6ee8;
    --sd-accent: #7c4fbd;
    --sd-bg: #f0f2f5;
    --sd-card: #ffffff;
    --sd-text: #1e293b;
    --sd-muted: #64748b;
    --sd-border: #e2e8f0;
    --sd-radius: 16px;
    --sd-shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 4px 14px rgba(15, 23, 42, .05);
    max-width: 680px;
    margin: 0 auto;
    padding: 0 0 calc(72px + env(safe-area-inset-bottom, 0));
    font-family: "Roboto", sans-serif;
}

.shop-detail-page .page-content,
.shop-detail-page .container,
.shop-detail-page .row,
.shop-detail-page .col-md-12 {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

.shop-detail-page .card-style {
    overflow: hidden;
    margin: 0 !important;
    border-radius: 0 0 var(--sd-radius) var(--sd-radius) !important;
    border: none !important;
    box-shadow: none !important;
    background: var(--sd-bg) !important;
}

.shop-detail-page .divider {
    display: none !important;
}

/* Banner */
.shop-detail-page .shop-banner {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.shop-detail-page .default-banner {
    background: linear-gradient(135deg, var(--sd-primary) 0%, var(--sd-accent) 55%, #db2777 100%) !important;
}

.shop-detail-page .shop-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, .15) 0%,
        rgba(15, 23, 42, 0) 35%,
        rgba(15, 23, 42, .55) 70%,
        rgba(15, 23, 42, .9) 100%
    );
}

.shop-detail-page .shop-name-overlay {
    position: absolute;
    bottom: 52px;
    left: 108px;
    right: 14px;
    z-index: 10;
}

.shop-detail-page .shop-name-text {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: "Roboto", sans-serif !important;
}

.shop-detail-page .shop-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, .18);
    border-radius: 999px;
    padding: 2px 9px;
    backdrop-filter: blur(6px);
}

.shop-detail-page .shop-verified i {
    color: #4ade80;
    font-size: .72rem;
}

.shop-detail-page .shop-verified span {
    color: #fff;
    font-size: .68rem;
    font-weight: 600;
    font-family: "Roboto", sans-serif !important;
}

.shop-detail-page .banner-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 15;
    display: flex;
    gap: 6px;
}

.shop-detail-page .action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: .9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
    backdrop-filter: blur(8px);
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s ease;
}

.shop-detail-page .action-btn:active {
    transform: scale(.92);
}

/* Profile */
.shop-detail-page .profile-section {
    position: relative;
    padding: 0 12px;
    margin-top: -40px;
    z-index: 5;
}

.shop-detail-page .shop-avatar-wrap {
    width: 76px;
    height: 76px;
    border-radius: 16px;
    border: 3px solid #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .15);
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}

.shop-detail-page .shop-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-detail-page .follow-btn {
    border-radius: 999px;
    padding: 8px 16px;
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
    font-family: "Roboto", sans-serif !important;
}

.shop-detail-page .stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: var(--sd-card);
    border-radius: 14px;
    box-shadow: var(--sd-shadow);
    border: 1px solid var(--sd-border);
    overflow: hidden;
    margin: 10px 0 0;
}

.shop-detail-page .stat-box {
    text-align: center;
    padding: 10px 6px;
    border-right: 1px solid var(--sd-border);
}

.shop-detail-page .stat-box:last-child {
    border-right: none;
}

.shop-detail-page .stat-box .stat-num {
    font-size: 1rem;
    font-weight: 800;
    color: var(--sd-text);
    line-height: 1.2;
    display: block;
    font-family: "Roboto", sans-serif !important;
}

.shop-detail-page .stat-box .stat-lbl {
    font-size: .65rem;
    color: var(--sd-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    display: block;
    font-family: "Roboto", sans-serif !important;
}

/* Address + badges */
.shop-detail-page .shop-detail-address {
    padding: 10px 12px 0;
}

.shop-detail-page .shop-detail-address__text {
    font-size: .78rem;
    color: var(--sd-muted);
    margin: 0 0 8px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.45;
    font-family: "Roboto", sans-serif !important;
}

.shop-detail-page .shop-detail-address__text i {
    color: var(--sd-primary);
    margin-top: 2px;
    flex-shrink: 0;
}

.shop-detail-page .shop-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-left: 4px;
}

.shop-detail-page .shop-detail-badges img {
    height: 18px;
    width: auto;
    border-radius: 4px;
}

/* Quick actions */
.shop-detail-page .shop-detail-quick {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 8px;
    padding: 12px;
}

.shop-detail-page .shop-detail-quick__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 54px;
    padding: 8px 4px;
    border-radius: 12px;
    background: var(--sd-card);
    border: 1px solid var(--sd-border);
    box-shadow: var(--sd-shadow);
    color: var(--sd-text);
    text-decoration: none;
    font-size: .68rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .12s ease;
    font-family: "Roboto", sans-serif !important;
}

.shop-detail-page .shop-detail-quick__btn:active {
    transform: scale(.97);
}

.shop-detail-page .shop-detail-quick__btn i {
    font-size: 1rem;
}

.shop-detail-page .shop-detail-quick__btn--call i { color: #16a34a; }
.shop-detail-page .shop-detail-quick__btn--wa i { color: #25d366; }
.shop-detail-page .shop-detail-quick__btn--fb i { color: #1877f2; }
.shop-detail-page .shop-detail-quick__btn--map i { color: #dc2626; }
.shop-detail-page .shop-detail-quick__btn--share i { color: var(--sd-primary); }

/* Content area */
.shop-detail-page .shop-detail-body {
    padding: 0 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shop-detail-page .info-card {
    background: var(--sd-card);
    border-radius: var(--sd-radius);
    padding: 14px;
    box-shadow: var(--sd-shadow);
    border: 1px solid var(--sd-border);
}

.shop-detail-page .info-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.shop-detail-page .info-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
}

.shop-detail-page .info-card-title {
    font-size: .92rem;
    font-weight: 800;
    color: var(--sd-text);
    margin: 0;
    font-family: "Roboto", sans-serif !important;
}

.shop-detail-page .info-card-subtitle {
    font-size: .72rem;
    color: var(--sd-muted);
    margin: 0;
    font-family: "Roboto", sans-serif !important;
}

.shop-detail-page .shop-detail-desc {
    font-size: .82rem;
    color: var(--sd-muted);
    line-height: 1.55;
    margin: 0 0 10px;
    font-family: "Roboto", sans-serif !important;
}

.shop-detail-page .detail-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    background: #f8fafc;
    margin-bottom: 6px;
}

.shop-detail-page .detail-row:last-child {
    margin-bottom: 0;
}

.shop-detail-page .detail-row i {
    font-size: .85rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.shop-detail-page .detail-label {
    font-size: .65rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    line-height: 1.3;
    margin: 0;
    font-family: "Roboto", sans-serif !important;
}

.shop-detail-page .detail-value {
    font-size: .82rem;
    color: var(--sd-text);
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    font-family: "Roboto", sans-serif !important;
}

.shop-detail-page .products-cta .btn-explore:active {
    opacity: .9;
}

/* Product grid on shop detail */
.shop-detail-page .shop-detail-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.shop-detail-page .shop-detail-product {
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    border: 1px solid var(--sd-border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .12s ease, box-shadow .12s ease;
}

.shop-detail-page .shop-detail-product:active {
    transform: scale(.98);
    box-shadow: var(--sd-shadow);
}

.shop-detail-page .shop-detail-product__img-wrap {
    aspect-ratio: 1;
    background: #e2e8f0;
    overflow: hidden;
}

.shop-detail-page .shop-detail-product__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shop-detail-page .shop-detail-product__body {
    padding: 8px 10px 10px;
}

.shop-detail-page .shop-detail-product__name {
    font-size: .72rem;
    font-weight: 700;
    color: var(--sd-text);
    margin: 0 0 4px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: "Roboto", sans-serif !important;
}

.shop-detail-page .shop-detail-product__price {
    font-size: .78rem;
    font-weight: 800;
    color: var(--sd-primary);
    margin: 0;
    font-family: "Roboto", sans-serif !important;
}

.shop-detail-page .shop-detail-section-foot {
    margin-top: 12px;
    text-align: center;
}

.shop-detail-page .shop-detail-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sd-primary), var(--sd-accent));
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    text-decoration: none;
    font-family: "Roboto", sans-serif !important;
}

/* Coupons */
.shop-detail-page .coupon-card {
    border-radius: 12px;
    border: 1.5px dashed #fca5a5;
    background: linear-gradient(135deg, #fff7f7 0%, #fdf2f8 100%);
    padding: 12px;
}

.shop-detail-page .coupon-card h5 {
    font-size: .85rem;
    font-weight: 700;
    color: var(--sd-text);
    margin-bottom: 4px;
    font-family: "Roboto", sans-serif !important;
}

.shop-detail-page .coupon-card h5 a {
    color: inherit;
    text-decoration: none;
}

.shop-detail-page .coupon-empty {
    text-align: center;
    padding: 24px 12px;
}

.shop-detail-page .coupon-empty__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #f1f5f9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: #94a3b8;
    font-size: 1.2rem;
}

.shop-detail-page .coupon-empty p {
    font-family: "Roboto", sans-serif !important;
}

/* Branch offers */
.shop-detail-page .offer-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--sd-shadow);
    border: 1px solid var(--sd-border);
    background: var(--sd-card);
}

.shop-detail-page .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Font Awesome isolation */
.shop-detail-page .detail-label,
.shop-detail-page .detail-value,
.shop-detail-page .info-card-title,
.shop-detail-page .info-card-subtitle,
.shop-detail-page .shop-name-text,
.shop-detail-page .stat-num,
.shop-detail-page .stat-lbl,
.shop-detail-page .shop-detail-quick__btn span {
    font-family: "Roboto", sans-serif !important;
    font-style: normal !important;
}

.shop-detail-page .detail-row i,
.shop-detail-page .info-card-icon i,
.shop-detail-page .action-btn i,
.shop-detail-page .shop-detail-quick__btn i,
.shop-detail-page .shop-verified i,
.shop-detail-page .products-cta i {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "Font Awesome 5 Brands" !important;
    font-style: normal !important;
}

.shop-detail-page .fab {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands" !important;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.shop-detail-page .shop-detail-quick__btn--share i { color: var(--sd-primary); }
.shop-detail-page .shop-detail-quick__btn--offer i { color: #f97316; }

/* Store / supermarket offers */
.shop-detail-page .shop-detail-store-offers {
    background: var(--sd-card);
    border: 1px solid var(--sd-border);
    border-radius: var(--sd-radius);
    box-shadow: var(--sd-shadow);
    padding: 12px;
}

.shop-detail-page .shop-detail-store-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b, #ef4444 55%, #db2777);
    color: #fff;
    text-decoration: none;
    margin-bottom: 12px;
}

.shop-detail-page .shop-detail-store-banner__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.shop-detail-page .shop-detail-store-banner__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shop-detail-page .shop-detail-store-banner__text strong {
    font-size: .88rem;
    font-weight: 800;
    font-family: "Roboto", sans-serif !important;
}

.shop-detail-page .shop-detail-store-banner__text span {
    font-size: .68rem;
    opacity: .9;
    font-family: "Roboto", sans-serif !important;
}

.shop-detail-page .shop-detail-store-banner__cta {
    font-size: .68rem;
    font-weight: 700;
    white-space: nowrap;
    font-family: "Roboto", sans-serif !important;
}

.shop-detail-page .shop-detail-offer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.shop-detail-page .shop-detail-offer-card {
    display: block;
    background: #f8fafc;
    border: 1px solid var(--sd-border);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.shop-detail-page .shop-detail-offer-card.is-expired {
    opacity: .55;
}

.shop-detail-page .shop-detail-offer-card__img {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #e2e8f0;
}

.shop-detail-page .shop-detail-offer-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shop-detail-page .shop-detail-offer-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fb923c, #ef4444);
    color: #fff;
    font-size: 1.4rem;
}

.shop-detail-page .shop-detail-offer-card__badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: .58rem;
    font-weight: 700;
    color: #fff;
    font-family: "Roboto", sans-serif !important;
}

.shop-detail-page .shop-detail-offer-card__badge.is-active {
    background: #16a34a;
}

.shop-detail-page .shop-detail-offer-card__badge.is-expired {
    background: #dc2626;
}

.shop-detail-page .shop-detail-offer-card__body {
    padding: 8px;
}

.shop-detail-page .shop-detail-offer-card__title {
    font-size: .72rem;
    font-weight: 700;
    color: var(--sd-text);
    margin: 0 0 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: "Roboto", sans-serif !important;
}

.shop-detail-page .shop-detail-offer-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: .62rem;
    color: var(--sd-muted);
    font-family: "Roboto", sans-serif !important;
}

.shop-detail-page .shop-detail-offer-card__meta i {
    font-size: .58rem;
}

.shop-detail-page .shop-detail-store-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--sd-border);
}

.shop-detail-page .shop-detail-store-link {
    flex: 1;
    min-width: calc(50% - 4px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--sd-primary), var(--sd-accent));
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    text-decoration: none;
    font-family: "Roboto", sans-serif !important;
}

.shop-detail-page .shop-detail-store-link--muted {
    background: #f1f5f9;
    color: var(--sd-text);
    border: 1px solid var(--sd-border);
}

@media (min-width: 768px) {
    .shop-detail-page {
        padding-top: 8px;
    }

    .shop-detail-page .card-style {
        border-radius: var(--sd-radius) !important;
        box-shadow: var(--sd-shadow) !important;
        overflow: hidden;
    }

    .shop-detail-page .shop-banner {
        border-radius: var(--sd-radius) var(--sd-radius) 0 0;
    }
}
