.shop-directory-hero,
.shop-detail-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 2rem;
    border-radius: 1.25rem;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 211, 165, 0.5), transparent 34%),
        linear-gradient(135deg, #c94900, #ff7900 58%, #ff9b47);
    overflow: hidden;
}

.shop-directory-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.shop-directory-hero h1,
.shop-detail-hero h1 {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.65rem);
    line-height: 1.05;
}

.shop-directory-hero > div > p:last-child,
.shop-detail-location {
    margin: 0.75rem 0 0;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.93);
}

.shop-directory-hero-count,
.shop-detail-rating-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 8.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(7px);
}

.shop-directory-hero-count strong {
    font-size: 2rem;
    line-height: 1;
}

.shop-directory-hero-count span,
.shop-detail-rating-box span {
    margin-top: 0.25rem;
    font-size: 0.85rem;
}

.shop-directory-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.48fr) auto;
    gap: 0.75rem;
    margin: 0 0 2rem;
    padding: 0.85rem;
    border: 1px solid #e8edf3;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
}

.shop-directory-search label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    padding: 0 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.7rem;
    color: #f26a14;
}

.shop-directory-search input {
    width: 100%;
    border: 0;
    padding: 0.75rem 0;
    color: #1f2937;
    background: transparent;
}

.shop-directory-search input:focus {
    box-shadow: none;
}

.shop-directory-map-panel {
    margin: 0 0 2rem;
    padding: 1.1rem;
    border: 1px solid #e5eaf0;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 7px 22px rgba(15, 23, 42, 0.06);
}

.shop-directory-map-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 0.8rem;
}

.shop-directory-map-heading .shop-directory-eyebrow {
    margin-bottom: 0.2rem;
    color: #e85f00;
}

.shop-directory-map-heading h2 {
    margin: 0;
    color: #1e293b;
    font-size: 1.2rem;
}

.shop-directory-map-heading > span {
    padding: 0.4rem 0.65rem;
    border-radius: 999px;
    color: #0f766e;
    font-size: 0.82rem;
    font-weight: 700;
    background: #dff8f2;
}

.shop-directory-map {
    width: min(100%, 54rem);
    min-height: 20rem;
    aspect-ratio: 1.14 / 1;
    margin-inline: auto;
    overflow: hidden;
    border-radius: 0.8rem;
    background: #e2e8f0;
}

.shop-directory-map-panel > p {
    margin: 0.7rem 0 0;
    color: #64748b;
    font-size: 0.85rem;
}

.shop-directory-map-popup {
    display: grid;
    gap: 0.25rem;
    min-width: 12rem;
}

.shop-directory-map-popup strong {
    color: #1e293b;
    font-size: 0.95rem;
}

.shop-directory-map-popup span {
    color: #64748b;
    font-size: 0.82rem;
}

.shop-directory-map-popup a {
    margin-top: 0.25rem;
    color: #c2410c;
    font-size: 0.84rem;
    font-weight: 800;
}

.shop-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.shop-directory-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e7ebf0;
    border-radius: 1.1rem;
    background: #fff;
    color: #182235;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shop-directory-card:hover {
    color: #182235;
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.13);
}

.shop-directory-card-image {
    position: relative;
    height: 13rem;
    background: #fff1e8;
}

.shop-directory-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-directory-coupon,
.shop-detail-coupon {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 800;
}

.shop-directory-coupon {
    position: absolute;
    right: 0.7rem;
    bottom: 0.7rem;
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
    color: #165b34;
    background: #d9f8e7;
}

.shop-directory-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.1rem;
}

.shop-directory-card h2 {
    margin: 0;
    font-size: 1.16rem;
    line-height: 1.2;
}

.shop-directory-location {
    margin: 0.5rem 0;
    color: #e85f00;
    font-size: 0.9rem;
    font-weight: 700;
}

.shop-directory-description {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 1rem;
    color: #5d6777;
    font-size: 0.92rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.shop-directory-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
    color: #64748b;
    font-size: 0.83rem;
}

.shop-directory-stars {
    display: inline-flex;
    gap: 0.1rem;
    color: #f59e0b;
}

.shop-directory-empty,
.shop-not-found {
    padding: 3.5rem 1.5rem;
    border: 1px dashed #cbd5e1;
    border-radius: 1rem;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
}

.shop-directory-empty i,
.shop-not-found i {
    margin-bottom: 0.8rem;
    color: #f26a14;
    font-size: 2rem;
}

.shop-directory-empty h2,
.shop-not-found h1 {
    margin: 0;
    color: #1e293b;
}

.shop-directory-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    color: #64748b;
}

.shop-directory-pagination a {
    padding: 0.55rem 0.9rem;
    border: 1px solid #fed7aa;
    border-radius: 0.6rem;
    color: #c2410c;
    font-weight: 700;
    background: #fff7ed;
}

.shop-detail-back {
    margin-bottom: 1rem;
}

.shop-detail-back a {
    color: #c2410c;
    font-weight: 700;
}

.shop-detail-rating-box strong {
    margin-top: 0.4rem;
    font-size: 1.2rem;
}

.shop-detail-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 13rem);
    gap: 0.7rem;
    margin-bottom: 1.5rem;
}

.shop-detail-gallery img {
    width: 100%;
    height: 100%;
    border-radius: 0.95rem;
    object-fit: cover;
    background: #fff1e8;
}

.shop-detail-gallery img:first-child {
    grid-row: 1 / span 2;
}

.shop-detail-gallery-empty {
    display: block;
}

.shop-detail-gallery-empty img {
    height: 26.7rem;
    object-fit: contain;
}

.shop-detail-extra-images {
    display: flex;
    gap: 0.7rem;
    overflow-x: auto;
    margin: -0.75rem 0 1.5rem;
}

.shop-detail-extra-images img {
    width: 7rem;
    height: 5rem;
    flex: 0 0 auto;
    border-radius: 0.65rem;
    object-fit: cover;
}

.shop-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(17rem, 0.8fr);
    gap: 1.25rem;
    align-items: start;
}

.shop-detail-main {
    display: grid;
    gap: 1.25rem;
}

.shop-detail-panel {
    padding: 1.5rem;
    border: 1px solid #e5eaf0;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.05);
}

.shop-detail-panel h2 {
    margin: 0 0 1rem;
    color: #192337;
    font-size: 1.25rem;
}

.shop-detail-description {
    margin: 0;
    color: #4b5563;
    line-height: 1.65;
}

.shop-detail-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.15rem;
}

.shop-detail-services span {
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
    color: #0f766e;
    font-size: 0.84rem;
    font-weight: 700;
    background: #dff8f2;
}

.shop-detail-services i {
    margin-right: 0.2rem;
}

.shop-detail-address {
    display: flex;
    gap: 0.6rem;
    margin: 0 0 1rem;
    color: #334155;
    font-weight: 600;
}

.shop-detail-address i {
    color: #dc2626;
}

.shop-detail-map {
    height: 21rem;
    overflow: hidden;
    border-radius: 0.8rem;
}

.shop-detail-map-help {
    margin: 0.75rem 0 0;
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.45;
}

.shop-map-marker {
    background: transparent !important;
    border: 0 !important;
}

.shop-map-marker i {
    display: block;
    color: #dc2626;
    font-size: 2.55rem;
    line-height: 1;
    text-shadow: 0 2px 3px rgba(127, 29, 29, 0.35), 0 0 0.18rem #fff;
}

.shop-detail-contact {
    position: sticky;
    top: 1rem;
}

.shop-detail-coupon {
    margin-bottom: 1.25rem;
    padding: 0.5rem 0.7rem;
    border-radius: 0.55rem;
    color: #166534;
    background: #dcfce7;
}

.shop-detail-phone,
.shop-detail-hours {
    display: flex;
    gap: 0.8rem;
    color: #1e293b;
}

.shop-detail-phone {
    margin-bottom: 1.25rem;
    font-weight: 800;
}

.shop-detail-phone > i,
.shop-detail-hours > i {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #c2410c;
    background: #ffedd5;
}

.shop-detail-phone small,
.shop-detail-hours small {
    display: block;
    margin-bottom: 0.2rem;
    color: #64748b;
    font-weight: 600;
}

.shop-detail-hours p {
    margin: 0;
    color: #334155;
    line-height: 1.5;
}

@media (max-width: 850px) {
    .shop-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-detail-layout {
        grid-template-columns: 1fr;
    }

    .shop-detail-contact {
        position: static;
    }
}

@media (max-width: 600px) {
    .shop-directory-hero,
    .shop-detail-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 1.4rem;
    }

    .shop-directory-hero-count,
    .shop-detail-rating-box {
        align-items: flex-start;
        min-width: 0;
    }

    .shop-directory-search {
        grid-template-columns: 1fr;
    }

    .shop-directory-search .custom-btn {
        width: 100%;
    }

    .shop-directory-map-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .shop-directory-grid {
        grid-template-columns: 1fr;
    }

    .shop-detail-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 12rem 8rem;
    }

    .shop-detail-gallery img:first-child {
        grid-column: 1 / span 2;
        grid-row: auto;
    }

    .shop-detail-gallery-empty img {
        height: 20rem;
    }

    .shop-detail-panel {
        padding: 1.15rem;
    }

    .shop-detail-map {
        height: 16rem;
    }
}
