/* ==========================================================
   ATRIUMMALL — FEATURED SHOPS
========================================================== */

.shop-showcase {
    --shop-primary: var(--public-primary, #3fa57a);
    --shop-primary-dark: var(--public-primary-dark, #2f8e69);
    --shop-bg: var(--public-surface-soft, #f6f8f9);
    --shop-surface: #ffffff;
    --shop-text: var(--public-text, #222222);
    --shop-muted: var(--public-text-muted, #707875);
    --shop-danger: #c73e4d;
    --shop-card-radius: 28px;
    --shop-control-radius: 999px;
    --shop-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
    --shop-shadow-hover: 0 30px 70px rgba(0, 0, 0, 0.16);
    --shop-transition: 0.35s cubic-bezier(0.4, 0.2, 0.2, 1);

    position: relative;

    overflow: hidden;

    padding: 88px 0;

    background: var(--shop-bg);
}

.shop-showcase::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at top right,
            rgba(63, 165, 122, 0.10),
            transparent 43%
        ),
        radial-gradient(
            circle at bottom left,
            rgba(213, 168, 70, 0.07),
            transparent 38%
        );

    pointer-events: none;
}

.shop-showcase > .container {
    position: relative;

    z-index: 1;
}

.shop-showcase [hidden] {
    display: none !important;
}

.shop-showcase__header {
    max-width: 720px;

    margin: 0 auto 42px;
}

.shop-showcase__badge {
    min-height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 14px;
    padding: 8px 18px;

    color: var(--shop-primary-dark);
    background: rgba(63, 165, 122, 0.12);
    border: 1px solid rgba(63, 165, 122, 0.14);
    border-radius: var(--shop-control-radius);

    font-size: 14px;
    font-weight: 800;
}


/* ==========================================================
   TABS
========================================================== */

.shop-tabs {
    position: relative;

    width: min(100%, 820px);

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 14px;

    margin: 0 auto 48px;
}

.shop-tab {
    position: relative;

    z-index: 1;

    min-width: 0;
    min-height: 52px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 12px 20px;

    color: #505957;
    background: var(--shop-surface);
    border: 1px solid rgba(31, 65, 52, 0.08);
    border-radius: var(--shop-control-radius);

    font: inherit;
    font-size: 14px;
    font-weight: 850;
    white-space: nowrap;

    cursor: pointer;

    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.07);

    transition:
        color var(--shop-transition),
        background-color var(--shop-transition),
        border-color var(--shop-transition),
        transform var(--shop-transition),
        box-shadow var(--shop-transition);
}

.shop-tab i {
    font-size: 17px;
}

.shop-tab:hover {
    color: var(--shop-primary-dark);
    border-color: rgba(63, 165, 122, 0.25);

    transform: translateY(-2px);

    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.09);
}

.shop-tab.active {
    color: #ffffff;
    background: var(--shop-primary);
    border-color: var(--shop-primary);

    box-shadow: 0 12px 30px rgba(63, 165, 122, 0.24);
}

.shop-tab:focus-visible,
.shop-slider:focus-visible,
.shop-nav:focus-visible,
.shop-pagination__dot:focus-visible {
    outline: 3px solid rgba(63, 165, 122, 0.28);
    outline-offset: 3px;
}

.shop-tab-indicator {
    position: absolute;

    bottom: -13px;
    left: 0;

    width: 0;
    height: 4px;

    background: var(--shop-primary);
    border-radius: var(--shop-control-radius);

    transition:
        width 0.35s ease,
        left 0.35s ease;
}


/* ==========================================================
   SLIDER
========================================================== */

.shop-slider {
    position: relative;

    width: 100%;
    max-width: 1280px;

    margin: 0 auto;
    padding: 0 72px 46px;
}

.shop-wrapper {
    position: relative;

    width: 100%;
    min-height: 530px;

    overflow: hidden;

    touch-action: pan-y;

    transition: height 0.3s ease;
}

.shop-wrapper.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.shop-wrapper.is-empty {
    min-height: 250px;
}

.shop-track {
    position: relative;

    width: 100%;
    height: 100%;
    min-height: inherit;
}

.shop-slide {
    position: absolute;

    top: 0;
    left: 50%;

    width: min(360px, calc(100vw - 48px));

    opacity: 0;

    pointer-events: none;

    transform: translateX(-50%) scale(0.8);

    transition:
        transform 0.45s ease,
        opacity 0.45s ease;
}

.shop-slide.active {
    z-index: 30;

    opacity: 1;

    pointer-events: auto;

    transform: translateX(-50%) scale(1);
}

.shop-slide.left {
    z-index: 20;

    opacity: 0.58;

    transform:
        translateX(calc(-50% - 390px))
        scale(0.84);
}

.shop-slide.right {
    z-index: 20;

    opacity: 0.58;

    transform:
        translateX(calc(-50% + 390px))
        scale(0.84);
}

.shop-slide.hidden {
    z-index: 0;

    opacity: 0;

    transform: translateX(-50%) scale(0.75);
}


/* ==========================================================
   NAVIGATION + PAGINATION
========================================================== */

.shop-nav {
    position: absolute;

    z-index: 50;

    top: 46%;

    width: 56px;
    height: 56px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    color: var(--shop-primary-dark);
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(31, 65, 52, 0.10);
    border-radius: 50%;

    font-size: 25px;

    cursor: pointer;

    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.13);

    transform: translateY(-50%);

    transition:
        color var(--shop-transition),
        background-color var(--shop-transition),
        border-color var(--shop-transition),
        transform var(--shop-transition),
        box-shadow var(--shop-transition);
}

.shop-prev {
    right: 6px;
}

.shop-next {
    left: 6px;
}

.shop-nav:hover {
    color: #ffffff;
    background: var(--shop-primary);
    border-color: var(--shop-primary);

    transform: translateY(-50%) scale(1.07);

    box-shadow: 0 20px 42px rgba(63, 165, 122, 0.22);
}

.shop-nav:disabled {
    cursor: default;
}

.shop-pagination {
    position: absolute;

    right: 50%;
    bottom: 4px;

    min-height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    transform: translateX(50%);
}

.shop-pagination__dots {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;
}

.shop-pagination__summary {
    min-width: 58px;
    min-height: 32px;

    display: none;
    align-items: center;
    justify-content: center;

    color: var(--shop-primary-dark);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(31, 65, 52, 0.12);
    border-radius: var(--shop-control-radius);

    font-size: 13px;
    font-weight: 800;
    direction: ltr;

    box-shadow: 0 8px 24px rgba(31, 65, 52, 0.10);
}

.shop-pagination__dot {
    width: 9px;
    height: 9px;

    display: block;

    padding: 0;

    background: rgba(47, 142, 105, 0.26);
    border: 0;
    border-radius: 50%;

    cursor: pointer;

    transition:
        width 0.25s ease,
        background-color 0.25s ease;
}

.shop-pagination__dot.is-active {
    width: 25px;

    background: var(--shop-primary);
    border-radius: var(--shop-control-radius);
}


/* ==========================================================
   CARD
========================================================== */

.shop-card {
    position: relative;

    isolation: isolate;

    overflow: hidden;

    direction: rtl;

    color: var(--shop-text);
    background: var(--shop-surface);
    border: 1px solid rgba(31, 65, 52, 0.08);
    border-radius: var(--shop-card-radius);

    box-shadow: var(--shop-shadow);

    will-change: transform;

    transition:
        transform var(--shop-transition),
        box-shadow var(--shop-transition),
        border-color var(--shop-transition);
}

.shop-card:hover {
    border-color: rgba(63, 165, 122, 0.17);

    box-shadow: var(--shop-shadow-hover);
}

.shop-card::before {
    content: "";

    position: absolute;

    z-index: 5;

    inset: 0;

    opacity: 0;

    background:
        radial-gradient(
            260px circle at var(--x, 50%) var(--y, 50%),
            rgba(255, 255, 255, 0.30),
            transparent 68%
        );
    border-radius: inherit;

    pointer-events: none;

    transition: opacity 0.25s ease;
}

.shop-card:hover::before {
    opacity: 1;
}

.shop-card-badge {
    position: absolute;

    z-index: 30;

    top: 17px;
    right: 17px;

    max-width: calc(100% - 34px);
    min-height: 38px;

    display: inline-flex;
    align-items: center;

    gap: 7px;

    padding: 8px 14px;

    color: #ffffff;
    background: var(--shop-primary);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--shop-control-radius);

    font-size: 12px;
    font-weight: 850;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(10px);
}

.shop-card-badge small {
    padding-right: 7px;

    border-right: 1px solid rgba(255, 255, 255, 0.38);

    font-size: 10px;
    font-weight: 800;
}

.shop-card-badge__score {
    direction: ltr;
    unicode-bidi: isolate;

    font-variant-numeric: tabular-nums;
}

.shop-card-badge--rating {
    color: #5e4510;
    background: #ffd66b;
    border-color: rgba(255, 255, 255, 0.45);
}

.shop-card-badge--discount {
    background: #d95b4f;
}

.shop-image-wrapper {
    position: relative;

    overflow: hidden;

    background: #e9eeeb;
    border-radius:
        var(--shop-card-radius)
        var(--shop-card-radius)
        0
        0;
}

.shop-image {
    width: 100%;
    height: 238px;

    display: block;

    object-fit: cover;

    transition: transform 0.55s ease;
}

.shop-card:hover .shop-image {
    transform: scale(1.055);
}

.shop-image-wrapper::after {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 60%;
    height: 100%;

    background:
        linear-gradient(
            120deg,
            transparent,
            rgba(255, 255, 255, 0.50),
            transparent
        );

    transform: skewX(-20deg);

    pointer-events: none;

    transition: left 0.9s ease;
}

.shop-card:hover .shop-image-wrapper::after {
    left: 180%;
}

.shop-content {
    padding: 22px 24px 24px;
}

.shop-category {
    min-height: 22px;

    display: flex;
    align-items: center;

    gap: 7px;

    margin-bottom: 8px;

    overflow: hidden;

    color: var(--shop-primary-dark);

    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-title {
    margin: 0 0 7px;

    overflow: hidden;

    color: var(--shop-text);

    font-size: 21px;
    font-weight: 900;
    line-height: 1.55;
    text-overflow: ellipsis;
    white-space: nowrap;

    transition: color 0.25s ease;
}

.shop-card:hover .shop-title {
    color: var(--shop-primary-dark);
}

.shop-location {
    margin: 0 0 16px;

    overflow: hidden;

    color: var(--shop-muted);

    font-size: 12px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-rating {
    min-height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-bottom: 8px;
}

.shop-stars {
    position: relative;

    display: inline-grid;

    direction: ltr;

    color: #d9ddda;

    font-size: 19px;
    letter-spacing: 2px;
    line-height: 1;
}

.shop-stars__empty,
.shop-stars__fill {
    grid-area: 1 / 1;
}

.shop-stars__fill {
    width: var(--rating-percent, 0%);

    overflow: hidden;

    color: #f6bd35;

    white-space: nowrap;
}

.shop-rating .rating {
    min-width: 28px;

    color: var(--shop-text);

    font-size: 15px;
    font-weight: 900;
    text-align: center;
}

.shop-rating--empty {
    width: 100%;

    justify-content: center;

    direction: rtl;

    color: var(--shop-muted);

    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.shop-rating--empty i {
    color: #d1a33a;
}

.shop-review {
    margin-bottom: 19px;

    color: var(--shop-muted);

    font-size: 12px;
    text-align: center;
}

.shop-footer {
    min-height: 44px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}

.shop-status {
    display: inline-flex;
    align-items: center;

    color: var(--shop-muted);

    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
}

.shop-status.is-open {
    color: #247d52;
}

.shop-status.is-closed {
    color: var(--shop-danger);
}

.status-dot {
    width: 9px;
    height: 9px;

    display: inline-block;

    margin-left: 8px;

    background: currentColor;
    border-radius: 50%;

    box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 15%, transparent);
}

.shop-footer .btn {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0.68rem 1.18rem;

    border-radius: var(--shop-control-radius);

    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.shop-footer .btn:hover {
    transform: translateX(-3px);

    box-shadow: 0 14px 32px rgba(63, 165, 122, 0.28);
}


/* ==========================================================
   EMPTY + LOADING
========================================================== */

.shop-empty {
    min-height: 250px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 10px;

    padding: 42px 24px;

    color: var(--shop-muted);
    background: rgba(255, 255, 255, 0.66);
    border: 1px dashed rgba(47, 142, 105, 0.25);
    border-radius: var(--shop-card-radius);

    text-align: center;
}

.shop-empty i {
    color: var(--shop-primary);

    font-size: 42px;
}

.shop-empty strong {
    color: var(--shop-text);

    font-size: 17px;
}

.shop-empty span {
    max-width: 470px;

    font-size: 13px;
    line-height: 1.9;
}

.shop-loading {
    position: absolute;

    z-index: 60;

    inset: 0;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    gap: 26px;

    padding-top: 4px;

    background: var(--shop-bg);
}

.shop-skeleton {
    width: min(340px, calc(100vw - 48px));

    padding: 18px;

    background: var(--shop-surface);
    border: 1px solid rgba(31, 65, 52, 0.06);
    border-radius: var(--shop-card-radius);

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.07);
}

.skeleton-image {
    width: 100%;
    height: 220px;

    background: #e5ebe8;
    border-radius: 20px;

    animation: shopSkeletonPulse 1.4s ease-in-out infinite;
}

.skeleton-line {
    height: 14px;

    margin-top: 16px;

    background: #e8eeeb;
    border-radius: var(--shop-control-radius);

    animation: shopSkeletonPulse 1.4s ease-in-out infinite;
}

.skeleton-line.short {
    width: 45%;
}

@keyframes shopSkeletonPulse {
    0%,
    100% {
        opacity: 0.45;
    }

    50% {
        opacity: 1;
    }
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1199px) {
    .shop-slide {
        width: min(340px, calc(100vw - 48px));
    }

    .shop-slide.left {
        transform:
            translateX(calc(-50% - 330px))
            scale(0.82);
    }

    .shop-slide.right {
        transform:
            translateX(calc(-50% + 330px))
            scale(0.82);
    }
}

@media (max-width: 991px) {
    .shop-showcase {
        padding: 72px 0;
    }

    .shop-slider {
        padding: 0 4px 70px;
    }

    .shop-slide.left,
    .shop-slide.right {
        opacity: 0;

        pointer-events: none;
    }

    .shop-nav {
        top: auto;
        bottom: 0;

        width: 48px;
        height: 48px;

        font-size: 21px;

        transform: none;
    }

    .shop-prev {
        right: calc(50% - 82px);
    }

    .shop-next {
        left: calc(50% - 82px);
    }

    .shop-nav:hover {
        transform: scale(1.05);
    }

    .shop-pagination {
        bottom: 8px;
    }

    .shop-pagination__dots {
        display: none;
    }

    .shop-pagination__summary {
        display: inline-flex;
    }
}

@media (max-width: 767px) {
    .shop-showcase {
        padding: 58px 0;
    }

    .shop-showcase__header {
        margin-bottom: 32px;
    }

    .shop-tabs {
        gap: 9px;

        margin-bottom: 38px;
    }

    .shop-tab {
        min-height: 48px;

        gap: 6px;

        padding: 10px 9px;

        font-size: 12px;
    }

    .shop-tab i {
        font-size: 15px;
    }

    .shop-tab-indicator {
        bottom: -10px;
    }
}

@media (max-width: 575px) {
    .shop-showcase__badge {
        min-height: 36px;

        padding-inline: 15px;

        font-size: 12px;
    }

    .shop-tabs {
        width: auto;

        display: flex;
        justify-content: flex-start;

        gap: 9px;

        margin-inline: -12px;
        padding: 2px 12px 12px;

        overflow-x: auto;
        overscroll-behavior-inline: contain;

        scroll-padding-inline: 12px;
        scroll-snap-type: inline mandatory;
        scrollbar-width: none;
    }

    .shop-tabs::-webkit-scrollbar {
        display: none;
    }

    .shop-tab {
        min-width: 146px;

        flex: 0 0 auto;

        scroll-snap-align: center;
    }

    .shop-tab-indicator {
        display: none;
    }

    .shop-slide {
        width: min(340px, calc(100vw - 36px));
    }

    .shop-card {
        border-radius: 24px;
    }

    .shop-image-wrapper {
        border-radius: 24px 24px 0 0;
    }

    .shop-image {
        height: 218px;
    }

    .shop-content {
        padding: 20px;
    }

    .shop-card-badge {
        top: 14px;
        right: 14px;

        max-width: calc(100% - 28px);
    }

    .shop-title {
        font-size: 20px;
    }

    .shop-loading {
        gap: 0;
    }

    .shop-skeleton:not(:first-child) {
        display: none;
    }
}

@media (max-width: 399px) {
    .shop-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .shop-footer .btn {
        width: 100%;
    }

    .shop-status {
        min-height: 32px;

        justify-content: center;
    }
}


/* ==========================================================
   REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {
    .shop-showcase *,
    .shop-showcase *::before,
    .shop-showcase *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }
}
