/* ==========================================================================
   deals-style.css - Consolidated Stylesheet
   ========================================================================== */

:root {
    /* Primary Colors */
    --nearby-green: #1B4FD8;
    --nearby-green-dark: #153aa8;
    --nearby-primary: #1B4FD8;
    --nearby-primary-dark: #113495;

    /* Accent Colors */
    --nearby-pink: #F72585;
    --nearby-accent: #F72585;

    /* Base Colors */
    --nearby-bg: #FAF7F2;
    --nearby-ink: #080d1f;
    --nearby-muted: #5e6472;
    --nearby-line: #edf0ef;
    --nearby-soft: rgba(27, 79, 216, .06);
}

body {
    background: var(--nearby-bg);
    color: var(--nearby-ink);
}

.ends-soon {
    color: var(--nearby-pink);
    font-weight: 700;
}

.header-section,
.slicknav_menu,
#scroll-to-top {
    display: none !important;
}

.footer-section {
    background-color: rgba(255, 253, 250, 1) !important;
}

.nearby-deals-page {
    min-height: 100vh;
    font-family: "Inter", "Nunito", Arial, sans-serif;
    background: linear-gradient(180deg, rgba(250, 247, 242, 1) 0%, rgba(250, 247, 242, 1) 62%, rgba(250, 247, 242, 1) 100%);
}

.deals-container {
    width: min(100%, 1512px);
    margin: 0 auto;
    padding: 0 28px;
}

.deals-main {
    padding: 0 0 48px;
}

.deals-section {
    padding: 10px 15px 34px 15px;
}

.deals-panel {
    border-radius: 20px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-title {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0;
    color: black;
}

.section-copy {
    margin: 0;
    color: #333947;
    font-size: 14px;
}

.view-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--nearby-green);
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}

.deal-empty {
    grid-column: 1 / -1;
    padding: 34px;
    color: var(--nearby-muted);
    border: 1px dashed #dfe4e2;
    border-radius: 16px;
    background: #fff;
    text-align: center;
}


/* ==========================================================================
   1. Shared Header, Nav, Search & Links
   ========================================================================== */

.deals-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--nearby-bg);
    border-bottom: none;
    backdrop-filter: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.deals-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-left: 1.5%;
    margin-right: 1.5%;
    min-height: 86px;
    transition: min-height 0.3s ease;
}

.deals-logo img {
    width: 126px;
    max-width: 100%;
    transition: width 0.3s ease;
}

.deals-search {
    width: 55%;
    position: relative;
}

.deals-search-wrapper {
    display: flex;
    align-items: center;
    height: 60px;
    background-color: #fefcfa;
    border: 1px solid #e7e4dc;
    border-radius: 999px;
    padding: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: height 0.3s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.deals-search-wrapper:focus-within {
    border-color: rgba(27, 79, 216, 0.36);
    box-shadow: 0 10px 30px rgba(27, 79, 216, 0.08);
}

.deals-search-categories-container {
    position: relative;
    display: inline-block;
    height: 100%;
}

.deals-search-categories-trigger {
    height: 100%;
    padding: 0 24px;
    font-size: 16px;
    font-weight: 700;
    color: #0f1734;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    white-space: nowrap;
    user-select: none;
    outline: none;
    transition: font-size 0.3s ease, padding 0.3s ease, opacity 0.2s ease;
}

.deals-search-categories-trigger:hover {
    opacity: 0.8;
}

.deals-search-categories-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 8px;
    background: rgba(65, 66, 70, 0.98);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    padding: 8px 0;
    min-width: 200px;
    z-index: 100;
    display: none;
    backdrop-filter: blur(8px);
}

.deals-search-categories-dropdown.is-open {
    display: block;
}

.deals-search-categories-item {
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #eceae4;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    outline: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.deals-search-categories-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.deals-search-categories-item.is-selected {
    color: #ffffff;
}

.deals-search-categories-item .check-icon {
    width: 16px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    font-size: 12px;
}

.deals-search-categories-item.is-selected .check-icon {
    visibility: visible;
}

.deals-search-divider {
    width: 1px;
    height: 24px;
    background-color: #e7e4dc;
    flex-shrink: 0;
}

.deals-search input {
    flex: 1;
    height: 100% !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 16px !important;
    color: #0b162c !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

.deals-search input::placeholder {
    color: #969594 !important;
    font-weight: 500 !important;
    opacity: 1 !important;
}

.deals-search-button {
    height: 52px;
    background-color: #1b4fd8;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 0 32px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: height 0.3s ease, padding 0.3s ease, font-size 0.3s ease, background-color 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.deals-search-button:hover {
    background-color: #113495;
}

.deals-search-button:active {
    transform: scale(0.98);
}

.deals-search-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: none;
    max-height: 520px;
    overflow: auto;
    padding: 16px;
    border: 1px solid var(--nearby-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 70px rgba(8, 13, 31, .16);
    z-index: 110;
}

.deals-search-panel.is-open {
    display: block;
}

.deals-search-title {
    margin: 0 0 10px;
    color: var(--nearby-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.deals-search-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
}

.deals-search-row:hover {
    background: var(--nearby-soft);
}

.deals-search-row img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 12px;
    background: #eef4f1;
}

.deals-search-row strong,
.deals-search-row span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.deals-search-row span {
    color: var(--nearby-muted);
    font-size: 13px;
}

.deals-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 34px;
}

.deals-links a {
    color: var(--nearby-pink);
    font-weight: 600;
    white-space: nowrap;
}

.deals-links .deals-get-in-touch-btn {
    background-color: var(--nearby-pink);
    color: white !important;
    padding: 8px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 1px solid var(--nearby-pink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.deals-links .deals-get-in-touch-btn:hover {
    background-color: transparent;
    color: var(--nearby-pink) !important;
    text-decoration: none;
}

.scroll-arrow {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(12, 20, 37, 0.08);
    background: #fff;
    box-shadow: 0 4px 10px rgba(8, 13, 31, 0.04);
    cursor: pointer;
    color: #333947;
    font-size: 12px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.scroll-arrow:hover {
    background: #faf7f2;
    border-color: rgba(27, 79, 216, 0.2);
}


/* ==========================================================================
   2. Index-Page Specific Components
   ========================================================================== */

.category-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(130px, 1fr));
    gap: 16px;
}

.category-grid.scroll-horizontal {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    justify-content: center !important;
    scroll-behavior: smooth;
    padding-bottom: 12px;
    margin-bottom: -12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-grid.scroll-horizontal .category-card {
    flex: 0 0 170px !important;
    max-width: 170px !important;
    min-width: 170px !important;
}

.category-grid.scroll-horizontal::-webkit-scrollbar {
    display: none;
}

.category-card {
    display: flex;
    min-height: 210px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: .5%;
    /* border: 1px solid var(--nearby-line); */
    /* border-radius: 16px; */
    /* background: #fff; */
    /* box-shadow: 0 12px 30px rgba(8, 13, 31, .07); */
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.category-card:hover,
.category-card.is-active {
    border-color: rgba(27, 79, 216, .28);
    box-shadow: 0 16px 36px rgba(27, 79, 216, .12);
    transform: translateY(-2px);
}

.category-icon-img {
    border-radius: 10%;
}

.category-icon {
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 999px;
    /* background: #e7f6ef; */
}

.category-icon img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.category-name {
    max-width: 100%;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--nearby-ink);
    font-size: 17px;
    font-weight: 800;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-count {
    color: var(--nearby-green);
    font-size: 15px;
    font-weight: 600;
}

.category-card .category-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.category-grid.grid-layout-single {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.category-grid.grid-layout-single .category-card {
    width: 50% !important;
    max-width: 600px;
    min-width: 250px;
    flex-direction: row !important;
    min-height: 130px !important;
    padding: 16px 24px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 16px !important;
}

.category-grid.grid-layout-few {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    width: 100% !important;
}

.category-grid.grid-layout-few .category-card {
    flex: 1 1 calc(25% - 12px) !important;
    min-width: 200px !important;
    flex-direction: row !important;
    min-height: 130px !important;
    padding: 16px 20px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 16px !important;
}

.category-grid.grid-layout-single .category-card .category-icon,
.category-grid.grid-layout-few .category-card .category-icon {
    width: 60px !important;
    height: 60px !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
}

.category-grid.grid-layout-single .category-card .category-icon img,
.category-grid.grid-layout-few .category-card .category-icon img {
    width: 36px !important;
    height: 36px !important;
}

.category-grid.grid-layout-single .category-card .category-text-wrap,
.category-grid.grid-layout-few .category-card .category-text-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    overflow: hidden !important;
    width: 100% !important;
}

.category-grid.grid-layout-single .category-card .category-name,
.category-grid.grid-layout-few .category-card .category-name {
    margin: 0 0 4px 0 !important;
    text-align: left !important;
    font-size: 16px !important;
    width: 100% !important;
}

.category-grid.grid-layout-single .category-card .category-count,
.category-grid.grid-layout-few .category-card .category-count {
    font-size: 13px !important;
    text-align: left !important;
}

/* .module-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 1px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: capitalize;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
    color: var(--nearby-pink);
    background: linear-gradient(135deg, rgba(27, 79, 216, .12), rgba(255, 255, 255, .9));
    border: 1px solid rgba(27, 79, 216, .18);
    box-shadow: 0 10px 30px rgba(27, 79, 216, .08);
} */

.module-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 1px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: capitalize;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;

    color: var(--nearby-pink);

    background: linear-gradient(
        135deg,
        rgba(247, 37, 133, 0.12),
        rgba(255, 255, 255, 0.95)
    );

    border: 1px solid rgba(247, 37, 133, 0.2);

    box-shadow: 0 8px 24px rgba(247, 37, 133, 0.15);
}

.module-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 36px rgba(27, 79, 216, .12);
}

.deal-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(210px, 1fr));
    gap: 24px;
}

.deal-card {
    overflow: hidden;
    min-width: 0;
    border: 1px solid rgba(27, 79, 216, .12);
    border-radius: 22px;
    background: #ffffff;
    /* box-shadow: 0 18px 42px rgba(8, 13, 31, .08); */
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.deal-card:hover {
    transform: translateY(-4px);
    border-color: rgba(27, 79, 216, .2);
    box-shadow: 0 22px 48px rgba(8, 13, 31, .12);
}

.deal-media {
    position: relative;
    aspect-ratio: 1.36 / 1;
    /* background: #f5f7fb; */
}
.offer-cover-img{

}

.deal-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.deal-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 14px;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--nearby-pink), #b10a63);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .01em;
    text-transform: uppercase;
}

.deal-body {
    padding: 20px 18px 20px;
}

.store-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2%;
    margin-top: 3%;
}

.store-logo-wrap {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(12, 20, 37, 0.08);
    background: #fff;
}

.store-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.store-logo-wrap .store-logo-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--nearby-soft);
    color: var(--nearby-green);
    font-weight: 800;
    font-size: 11px;
}


.store-name {
    display: block;
    overflow: hidden;
    color: var(--nearby-green);
    font-size: 15px;
    font-weight: 800;
    text-overflow: ellipsis;
    line-height: normal;
    /* white-space: nowrap; */
}

.store-rating {
    display: none !important;
    color: #5e6472;
    font-size: 12px;
}

.store-rating i {
    color: #ffb000;
    margin-right: 4px;
}

.deal-title {
    min-height: 52px;
    margin: 0 0 18px;
    color: var(--nearby-ink);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
}

.deal-meta {
    display: grid;
    gap: 10px;
    color: #5e6472;
    font-size: 13px;
}

.deal-meta span {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.deal-meta i {
    width: 16px;
}

.deal-meta .ends {
    color: var(--nearby-pink);
    font-weight: 700;
}

.deal-desc {
    font-size: 13px;
    color: #000000;
    line-height: 1.4;
    margin: -10px 0 16px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: pre-line;
}

.deals-scroll-container {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    margin-top: 12px;
}

.deals-scroll-track-wrapper {
    flex-grow: 1;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.deals-scroll-track-wrapper::-webkit-scrollbar {
    display: none;
}

.deal-grid.horizontal-scroll {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 24px;
    padding: 12px 4px 24px;
}

.deal-grid.horizontal-scroll .deal-card {
    width: 260px;
    flex-shrink: 0;
}

.deals-header-static {
    background: var(--nearby-bg) !important;
    border-bottom: none !important;
    backdrop-filter: none !important;
}

.terms-conditions-content, 
.privacy-policy-content {
    font-family: 'Outfit', sans-serif !important;
    max-width: 80%;
    margin: 0 auto;
    padding: 20px 20px;
}
.terms-conditions-content h1, 
.privacy-policy-content h1 {
    font-size: 36px;
    font-weight: 850;
    margin-bottom: 24px;
    text-align: center;
    color: #000;
}
.terms-conditions-content h2, 
.privacy-policy-content h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--nearby-ink);
    margin-top: 24px;
    margin-bottom: 12px;
}
.terms-conditions-content h3, 
.privacy-policy-content h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--nearby-ink);
    margin-top: 20px;
    margin-bottom: 10px;
}
.terms-conditions-content p, 
.terms-conditions-content div, 
.terms-conditions-content li, 
.privacy-policy-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--nearby-muted);
    margin-bottom: 16px;
    text-align: justify;
}
.terms-conditions-content ul {
    padding-left: 20px;
    margin-bottom: 16px;
}


/* ==========================================================================
   3. Category-Detail Page Specific Components
   ========================================================================== */

.category-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-circle-btn {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(12, 20, 37, 0.1);
    background: #fff;
    box-shadow: 0 4px 12px rgba(8, 13, 31, 0.05);
    cursor: pointer;
    color: #0f1734;
    font-size: 16px;
    transition: all 0.2s ease;
}

.back-circle-btn:hover {
    background: #faf7f2;
    transform: scale(1.05);
}

.category-detail-icon-wrap {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(27, 79, 216, 0.05);
}

.category-detail-icon-wrap img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: inherit;
}

.category-detail-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 20px;
}

.category-detail-title {
    margin: 0;
    font-size: 26px;
    font-weight: 850;
    color: #0f1734;
}

.category-detail-tagline {
    margin: 0;
    font-size: 15px;
    color: #5e6472;
    font-weight: 500;
}

.category-detail-count {
    font-size: 13px;
    font-weight: 700;
    color: #e81d63;
}

.grid-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
}

.grid-section-title {
    margin: 0;
    font-size: 20px;
    font-weight: 850;
    color: #0f1734;
}

.pagination-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(12, 20, 37, 0.08);
    padding-top: 24px;
    margin-top: 36px;
}

.pagination-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination-btn {
    display: grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    color: #5e6472;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background: rgba(12, 20, 37, 0.04);
    color: #0f1734;
}

.pagination-btn.is-active {
    background: #ffe3ec;
    color: #e81d63;
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-stats {
    font-size: 14px;
    font-weight: 600;
    color: #5e6472;
}

.deals-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 40px;
    margin-top: 28px;
}

.offers-column {
    min-width: 0;
}

.stores-column {
    background: #fff;
    border: 1px solid rgba(12, 20, 37, 0.06);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(8, 13, 31, 0.04);
    align-self: start;
}

.column-title {
    font-size: 20px;
    font-weight: 850;
    color: #0f1734;
    margin: 0;
}

.view-all-stores-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--nearby-pink);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.view-all-stores-link:hover {
    opacity: 0.8;
}

.category-pill {
    /* display: inline-flex; */
    align-items: center;
    gap: 8px;
    padding: .25% 2.5% .25% 1%;
    border-radius: 999px;
    border: 1px solid rgba(12, 20, 37, 0.08);
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    color: #333947;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.category-pill:hover {
    border-color: rgba(27, 79, 216, 0.2);
    background: #faf7f2;
}

.category-pill.is-active {
    border-color: transparent;
    background: #ffe3ec;
    color: #e81d63;
}

.category-pill img,
.category-pill i {
    width: 18px;
    height: 18px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.offer-list-card {
    display: flex;
    gap: 24px;
    /* align-items: center; */
    padding: 20px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(12, 20, 37, 0.06);
    box-shadow: 0 10px 30px rgba(8, 13, 31, .03);
    margin-bottom: 20px;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.offer-list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(27, 79, 216, 0.06);
    border-color: rgba(27, 79, 216, 0.2);
}

.offer-card-media {
    position: relative;
    width: 180px;
    height: 120px;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
    /* background: #f5f7fb; */
}

.offer-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.offer-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    color: #fff;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--nearby-pink), #b10a63);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(247, 37, 133, 0.35);
}

.offer-card-middle {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.offer-store-logo {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(12, 20, 37, 0.08);
    overflow: hidden;
    flex-shrink: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-store-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.offer-store-logo-initials {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: var(--nearby-soft);
    color: var(--nearby-green);
    font-weight: 800;
    font-size: 16px;
}

.offer-store-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.offer-store-name {
    margin: 0;
    font-size: 19px;
    font-weight: 850;
    color: #0f1734;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.offer-store-meta {
    margin: 0;
    font-size: 13px;
    color: var(--nearby-primary);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* cursor: pointer; */
}

.offer-store-rating {
    display: none !important;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #ffb000;
    margin-top: 4px;
}

.offer-store-description {
    margin: 2px 0 6px 0;
    font-size: 13px;
    color: #000000;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: pre-line;
}

.offer-card-right {
    width: 240px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    flex-shrink: 0;
    align-self: stretch;
}

@media (min-width: 993px) {
    .offer-card-right {
        border-left: 2px dashed rgba(12, 20, 37, 0.1);
        padding-left: 24px;
        position: relative;
    }

    .offer-card-right::before,
    .offer-card-right::after {
        content: '';
        position: absolute;
        left: -11px;
        width: 20px;
        height: 20px;
        background: #faf7f2;
        border: 1px solid rgba(12, 20, 37, 0.08);
        border-radius: 50%;
        z-index: 5;
    }

    .offer-card-right::before {
        top: -31px;
        box-shadow: inset 0 -3px 3px rgba(0, 0, 0, 0.02), 0 1px 0 #faf7f2;
    }

    .offer-card-right::after {
        bottom: -31px;
        box-shadow: inset 0 3px 3px rgba(0, 0, 0, 0.02), 0 -1px 0 #faf7f2;
    }
}

.offer-deal-tag {
    display: flex;
    align-items: center;
    gap: 10%;
    padding: 10px 14px;
    background: #FDE8EF;
    border: 1px dashed #fb83ba;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
}

.offer-deal-tag .tag-icon {
    color: #10b981;
    font-size: 16px;
}

.offer-deal-tag .tag-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.offer-deal-tag strong {
    color: #ff0081;
    font-size: 13px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.offer-deal-tag span {
    color: #524e4e;
    font-size: 12px;
    font-weight: 800;
}

.offer-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #1b4fd8, #113495);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(27, 79, 216, 0.15);
}

.offer-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(27, 79, 216, 0.25);
    background: linear-gradient(135deg, #113495, #0a2266);
    color: #ffffff;
}

.store-list-item {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(12, 20, 37, 0.05);
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.store-list-item:hover {
    transform: translateX(4px);
    border-color: rgba(27, 79, 216, 0.15);
    box-shadow: 0 8px 20px rgba(8, 13, 31, 0.04);
}

.store-list-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(12, 20, 37, 0.08);
    background: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-list-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-list-logo .store-logo-initials {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: var(--nearby-soft);
    color: var(--nearby-green);
    font-weight: 850;
    font-size: 14px;
}

.store-list-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
    min-width: 0;
}

.store-list-name {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #0f1734;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-list-meta {
    display: none !important;
    margin: 0;
    font-size: 12px;
    color: #5e6472;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-list-dist {
    font-size: 12px;
    color: #5e6472;
    font-weight: 650;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.btn-browse-all-stores {
    width: 100%;
    margin-top: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1.5px solid #1b4fd8;
    background: #ffffff;
    color: #1b4fd8;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.btn-browse-all-stores:hover {
    background: #eff6ff;
    transform: translateY(-1px);
}

.category-scroll-container {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    margin-bottom: 24px;
    /* width:80%; */
}

.category-scroll-track-wrapper {
    flex-grow: 1;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.category-scroll-track-wrapper::-webkit-scrollbar {
    display: none;
}

.category-scroll-track {
    display: flex;
    gap: 12px;
    padding: 4px 0;
}


/* ==========================================================================
   4. Store-Detail Page Specific Components
   ========================================================================== */

.store-hero-container {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(8, 13, 31, 0.04);
    border: 1px solid rgba(12, 20, 37, 0.05);
    margin-bottom: 36px;
}

.store-cover-banner {
    position: relative;
    height: 280px;
    width: 100%;
}

.store-cover-banner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.85;
}

.store-back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    color: #0f1734;
    font-size: 15px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 5;
}

.store-back-btn:hover {
    background: #ffffff;
    transform: scale(1.08);
}

.store-details-wrap {
    padding: 0 32px 32px;
    position: relative;
    margin-top: -60px;
}

.store-profile-header {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 24px;
}

.store-logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 24px;
    background: #ffffff;
    padding: 4px;
    box-shadow: 0 12px 32px rgba(8, 13, 31, 0.12);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #ffffff;
}

.store-logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
}

.store-logo-container .store-logo-initials {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    background: #eff6ff;
    color: #1b4fd8;
}

.store-title-area {
    padding-bottom: 8px;
}

.store-title-area .store-name {
    font-size: 32px;
    font-weight: 850;
    color: #0f1734;
    margin: 0 0 8px 0;
    display: block;
    line-height: 1.2;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}


.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.badge-item-rating {
    display: none !important;
    background: #fff8eb;
    color: #d97706;
}

.badge-item-rating i {
    color: #fbbf24;
}

.badge-item-delivery {
    background: #f1f5f9;
    color: #475569;
}

.badge-item-delivery i {
    color: #2563eb;
}

.badge-item-module {
    background: #eff6ff;
    color: #1b4fd8;
}

.store-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    border-top: 1px solid #edf0ef;
    border-bottom: 1px solid #edf0ef;
    padding: 24px 0;
    margin-bottom: 24px;
}

.meta-block {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.meta-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.meta-icon-blue {
    background: #eff6ff;
    color: #2563eb;
}

.meta-icon-pink {
    background: #fff5f5;
    color: #e53e3e;
}

.meta-icon-green {
    background: #f0fdf4;
    color: #16a34a;
}

.meta-info,
.meta-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-value,
.meta-val {
    font-size: 15px;
    font-weight: 800;
    color: #0f1734;
}

.store-actions {
    display: flex;
    gap: 16px;
}

.btn-store-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.btn-action-primary {
    background: #1b4fd8;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 14px rgba(27, 79, 216, 0.2);
}

.btn-action-primary:hover {
    background: #113495;
    transform: translateY(-1px);
    color: #ffffff;
    text-decoration: none;
}

.btn-action-secondary {
    background: #ffffff;
    color: #1b4fd8;
    border: 1.5px solid #1b4fd8;
}

.btn-action-secondary:hover {
    background: #eff6ff;
    transform: translateY(-1px);
    color: #1b4fd8;
    text-decoration: none;
}

.store-items-section {
    padding: 0 8px;
}

.items-grid-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.items-grid-title {
    font-size: 24px;
    font-weight: 850;
    color: #0f1734;
    margin: 0;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.store-item-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(12, 20, 37, 0.06);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(8, 13, 31, 0.02);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.store-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(8, 13, 31, 0.06);
    border-color: rgba(27, 79, 216, 0.12);
}

.item-media {
    position: relative;
    height: 160px;
    background: #f5f7fb;
    overflow: hidden;
}

.item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    background: linear-gradient(135deg, #f72585, #b10a63);
    color: #ffffff;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.item-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.item-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f1734;
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44px;
}

.item-desc {
    font-size: 13px;
    color: #000000;
    margin: 0 0 14px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 38px;
    white-space: pre-line;
}

.item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    border-top: 1px solid #edf0ef;
    padding-top: 14px;
}

.item-price {
    display: flex;
    flex-direction: column;
}

.price-now {
    font-size: 18px;
    font-weight: 850;
    color: #1b4fd8;
}

.price-was {
    font-size: 12px;
    text-decoration: line-through;
    color: #94a3b8;
}

.btn-view-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eff6ff;
    color: #1b4fd8;
    border: none;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.store-item-card:hover .btn-view-item {
    background: #1b4fd8;
    color: #ffffff;
}

.store-shimmer-wrap {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(8, 13, 31, 0.02);
}

.shimmer-anim {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer-pulse 1.5s infinite;
    border-radius: 6px;
}

@keyframes shimmer-pulse {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}


/* ==========================================================================
   5. Deal Detail Modal Component
   ========================================================================== */

.deal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.deal-modal.is-open {
    display: flex;
    opacity: 1;
}

.deal-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 22, 44, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.deal-modal-content {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 28px;
    box-shadow: 0 32px 80px rgba(11, 22, 44, 0.25);
    transform: scale(0.9) translateY(40px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.deal-modal-content::-webkit-scrollbar {
    display: none;
}

.deal-modal.is-open .deal-modal-content {
    transform: scale(1) translateY(0);
}

.deal-modal-close {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 10000;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.deal-modal-close:hover {
    transform: scale(1.1) rotate(90deg);
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.deal-modal-body {
    display: flex;
    flex-direction: column;
}

.deal-modal-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* background: #0f172a; */
    overflow: hidden;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
}

.deal-modal-hero img,
.deal-modal-hero video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.deal-modal-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--nearby-pink, #f43f5e), #be123c);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}

.deal-modal-main {
    padding: 28px 32px 32px;
}

.deal-modal-store {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.deal-modal-store-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    object-fit: cover;
    background: #fff;
}

.deal-modal-store-info h3 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 800;
    color: var(--nearby-ink, #0f172a);
}

.deal-modal-store-rating {
    display: none !important;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #475569;
}

.deal-modal-store-rating i {
    color: #eab308;
}

.deal-modal-title {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    color: #0f172a;
}

.deal-modal-desc {
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
}

.deal-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    margin-bottom: 28px;
}

.deal-modal-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.deal-modal-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(27, 79, 216, 0.08);
    color: #1b4fd8;
    font-size: 16px;
}

.deal-modal-item-details span {
    display: block;
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.deal-modal-item-details strong {
    display: block;
    font-size: 14px;
    color: #0f172a;
    font-weight: 700;
}

.deal-modal-actions {
    display: flex;
    gap: 16px;
}

.deal-modal-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.deal-modal-btn-primary {
    background: linear-gradient(135deg, #1b4fd8, #113495);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(27, 79, 216, 0.25);
}

.deal-modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(27, 79, 216, 0.35);
}

.deal-modal-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.deal-modal-btn-secondary:hover {
    background: #e2e8f0;
}

.deal-modal-shimmer {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.shimmer-line {
    height: 16px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer-anim 1.5s infinite;
    border-radius: 8px;
}

.shimmer-hero {
    height: 240px;
    width: 100%;
    border-radius: 20px;
}

@keyframes shimmer-anim {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.deal-hero-date-pill {
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 8px 16px;
    color: rgb(0, 0, 0);
    border-radius: 999px;
    background: #F5E642;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 2;
}

.store-logo-wrapper {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4e50, #f9d423);
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(255, 78, 80, 0.2);
    flex-shrink: 0;
    margin-right: 3%;
}

.store-logo-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: contain;
    border: 2px solid #ffffff;
    background: #ffffff;
}

.badge-rating-new {
    display: none !important;
    align-items: center;
    gap: 6px;
    background: #fff8eb;
    color: #d97706;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.badge-rating-new i {
    color: #fbbf24;
}

.badge-delivery {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    color: #475569;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.badge-delivery i {
    color: #2563eb;
}

.btn-save-store {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1.5px solid #1b4fd8;
    background: #ffffff;
    color: #1b4fd8;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(27, 79, 216, 0.04);
}

.btn-save-store:hover {
    background: #eff6ff;
}

.offer-description-card {
    background: #FDE8EF;
    border: 1px dashed #fb83ba;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.offer-desc-left {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.offer-desc-icon {
    padding-top: 1%;
    font-size: 25px;
    color: #ff0081;
    margin-top: 25px;
}

.offer-desc-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.offer-desc-title {
    font-size: 14px;
    font-weight: 800;
    color: #ff0081;
    margin: 0;
    text-transform: none;
    letter-spacing: normal;
}

.offer-desc-text {
    white-space: pre-line;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.4;
}

.offer-desc-subtext {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    font-weight: 600;
}

.offer-badge-circle {
    position: absolute;
    width: 28px;
    height: 28px;
    background-color: #2d9044;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.offer-badge-circle span {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

.offer-meta-row {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    background: #ffffff;
}

.meta-col {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.meta-col-divider {
    width: 1px;
    background: #e2e8f0;
    align-self: stretch;
}

.meta-icon-container {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}


.modal-action-row {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.btn-action {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}


.redeem-notice-box {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fffbeb;
    border-radius: 12px;
    padding: 14px 18px;
    margin-top: 20px;
    border: 1px solid #fef3c7;
}

.redeem-notice-icon {
    font-size: 16px;
    color: #d97706;
    margin-top: 2px;
    flex-shrink: 0;
}

.redeem-notice-content {
    font-size: 13px;
    font-weight: 700;
    color: #78350f;
    line-height: 1.5;
    margin: 0;
}


/* ==========================================================================
   6. Responsive Layouts & Scopes (Combined & Deduplicated)
   ========================================================================== */

@media (max-width: 1200px) {
    .category-grid:not(.scroll-horizontal),
    .deal-grid {
        grid-template-columns: repeat(4, minmax(180px, 1fr));
    }
}

@media (max-width: 1024px) {
    .items-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .deals-layout-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .offer-list-card {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 20px;
    }

    .offer-card-media {
        width: 100%;
        height: 200px;
    }

    .offer-card-middle {
        width: 100%;
    }

    .offer-card-right {
        width: 100%;
        align-items: center;
        flex-direction: row;
        gap: 16px;
        align-self: auto;
    }

    .offer-deal-tag {
        width: auto;
        flex: 1;
    }
}

@media (max-width: 900px) {
    .deals-header {
        position: relative;
    }

    .deals-container {
        padding: 0 16px;
    }

    .deals-nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px 0;
        min-height: auto;
    }

    .deals-search {
        width: 100%;
        margin: 4px 0;
    }

    .deals-links {
        justify-content: center;
        gap: 24px;
        width: 100%;
    }

    .section-head {
        align-items: center;
        text-align: center;
        flex-direction: column;
        gap: 12px;
    }

    .section-head .view-link {
        margin-top: 4px;
    }

    .category-grid:not(.scroll-horizontal) {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .category-card {
        min-height: 130px;
        padding: 12px 8px;
    }

    .category-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 8px;
    }

    .category-icon img {
        width: 40px;
        height: 40px;
    }

    .category-name {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .category-count {
        font-size: 12px;
    }

    .deal-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .deal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .scroll-arrow {
        display: none !important;
    }

    .category-scroll-track-wrapper {
        -webkit-overflow-scrolling: touch;
    }

    .items-grid-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .category-scroll-container {
        width: 100%;
    }

    .store-profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: -80px;
    }

    .store-title-area .store-name {
        font-size: 22px;
    }

    .store-details-wrap {
        padding: 0 20px 24px;
    }

    .store-logo-container {
        width: 110px;
        height: 110px;
    }

    .store-meta-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .store-actions {
        flex-direction: column;
    }

    .btn-store-action {
        width: 100%;
    }

    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .deal-modal-content {
        width: 95%;
        border-radius: 24px;
        max-height: 95vh;
    }

    .deal-modal-main {
        padding: 20px;
    }

    .deal-modal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .deals-section {
        padding: 20px 0 28px;
    }

    .deals-panel {
        padding-left: 0;
        padding-right: 0;
    }

    .section-title {
        font-size: 22px;
    }

    .section-copy {
        font-size: 13px;
    }

    .deals-search-wrapper {
        height: 50px;
        padding: 2px;
    }

    .deals-search-categories-trigger {
        padding: 0 10px;
        font-size: 13px;
        max-width: 110px;
    }

    .deals-search input {
        padding: 0 8px !important;
        font-size: 13px !important;
    }

    .deals-search-button {
        height: 44px;
        padding: 0 16px;
        font-size: 13px;
    }

    .deals-search-categories-dropdown {
        top: calc(100% + 6px);
        left: 0;
        min-width: 180px;
    }

    .category-grid:not(.scroll-horizontal) {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .category-card {
        min-height: 110px;
    }

    .category-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 6px;
    }

    .category-icon img {
        width: 30px;
        height: 30px;
    }

    .category-name {
        font-size: 13px;
    }

    .deal-card {
        border-radius: 16px;
    }

    .deal-media {
        aspect-ratio: 1.65 / 1;
    }

    .deal-body {
        padding: 12px;
    }

    .store-line {
        gap: 8px;
        margin-bottom: 6px;
    }

    .store-logo-wrap {
        width: 24px;
        height: 24px;
    }
    .store-logo-wrap .store-logo-initials {
        font-size: 9px;
    }

    .store-name {
        font-size: 13px;
    }

    .deal-title {
        font-size: 13px;
        min-height: 36px;
        margin-bottom: 8px;
        line-height: 1.35;
    }

    .deal-meta {
        font-size: 11px;
        gap: 6px;
    }

    .deal-badge {
        top: 10px;
        left: 10px;
        padding: 4px 8px;
        font-size: 10px;
    }

    .deals-header.header-shrink .deals-nav {
        min-height: auto;
    }

    .deals-header.header-shrink .deals-search-wrapper {
        height: 46px;
    }

    .deals-header.header-shrink .deals-search-categories-trigger {
        font-size: 12px;
        padding: 0 8px;
    }

    .deals-header.header-shrink .deals-search-button {
        height: 40px;
        padding: 0 12px;
        font-size: 12px;
    }

    .category-detail-header {
        gap: 14px;
    }

    .back-circle-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .category-detail-icon-wrap {
        width: 60px;
        height: 60px;
    }

    .category-detail-icon-wrap img {
        width: 36px;
        height: 36px;
    }

    .category-detail-title {
        font-size: 20px;
    }

    .category-detail-count {
        font-size: 12px;
    }

    .grid-head-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .pagination-footer-row {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .offer-list-card {
        padding: 10px;
        gap: 12px;
        border-radius: 16px;
    }

    .offer-card-media {
        height: 130px;
        border-radius: 10px;
    }

    .offer-store-logo {
        width: 40px;
        height: 40px;
    }

    .offer-store-name {
        font-size: 15px;
        line-height: 1.3;
    }

    .offer-card-right {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .offer-deal-tag {
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
    }

    .offer-save-btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
        font-size: 14px;
    }

    .stores-column {
        padding: 16px;
        border-radius: 16px;
    }

    .deal-modal-store {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }

    .deal-modal-store .btn-save-store {
        align-self: flex-start;
        width: 100%;
        justify-content: center;
    }

    .offer-description-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .deal-modal-hero {
        aspect-ratio: 4 / 3;
    }
}

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

    .offer-meta-row {
        flex-direction: column;
        gap: 14px;
    }

    .meta-col-divider {
        width: 100% !important;
        height: 1px;
        align-self: stretch;
        background: #e2e8f0;
    }

    .modal-action-row {
        flex-direction: column;
        gap: 12px;
    }

    .btn-action {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .category-grid:not(.scroll-horizontal) {
        grid-template-columns: repeat(2, 1fr);
    }

    .deal-grid {
        grid-template-columns: 1fr;
    }
}

.w-full{
    width:100%;
    max-width:100%;
}

.p-lr-2-5{
    padding-left: 2.5%;
    padding-right: 2.5%;
}

.b-radius-round{
    border-radius: 50%;
}

/* ==========================================================================
   Premium Store Cards and Grid Styles
   ========================================================================== */
.stores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.store-premium-card {
    display: flex;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    height: 200px;
}

.store-premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.store-card-left {
    width: 40%;
    position: relative;
    overflow: hidden;
    background: #f0f3f6;
    flex-shrink: 0;
}

.store-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.store-premium-card:hover .store-cover-img {
    transform: scale(1.05);
}

.store-cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

.store-card-right {
    display: flex;
    flex-direction: column;
    padding: 3% 2%;
}

.store-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.store-card-name {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-favorite-btn {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.store-favorite-btn:hover {
    color: #ef4444;
    border-color: #fee2e2;
    background: #fef2f2;
    transform: scale(1.05);
}

.store-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    /* height: 60%; */
}

.category-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
}

.category-pill i {
    font-size: 12px;
}

.category-pill.grocery {
    background-color: #f0fdf4;
    color: #166534;
}
.category-pill.beverages {
    background-color: #eff6ff;
    color: #1e40af;
}
.category-pill.snacks {
    background-color: #fff7ed;
    color: #9a3412;
}
.category-pill.other {
    height: 65%;
    background-color: rgba(247, 37, 133, 0.08);
    color: #F72585;
    border: 1px solid rgba(247, 37, 133, 0.15);
}
.store-card-right-top{
    display: flex;
    flex-direction: column;
    gap:15px;
}

.store-card-divider {
    border: 0;
    border-top: 1px solid #f1f5f9;
    margin: 12px 0;
}

.store-card-meta {
    display: flex;
    flex-direction: row;
}

.store-meta-col {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.meta-icon-wrapper.geo-icon {
    background-color: #f0fdf4;
    color: #16a34a;
}

.meta-icon-wrapper.tag-icon {
    background-color: #f0fdf4;
    color: #16a34a;
}

.meta-text-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: normal;
    max-width: 50%;
}

.meta-main-text {
    font-size: 14px;
    font-weight: 750;
    color: #1e293b;
}

.meta-sub-text {
    font-size: 12px;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    /* white-space: nowrap; */
}

.stores-load-more-container {
    margin-top: 32px;
}

.btn-load-more {
    background: #ffffff;
    border: 2px solid var(--nearby-green, #16a34a);
    color: var(--nearby-green, #16a34a);
    padding: 12px 32px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 750;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.05);
}

.btn-load-more:hover {
    background: var(--nearby-green, #16a34a);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.15);
}

.btn-load-more:active {
    transform: translateY(1px);
}

@media (max-width: 991px) {
    .stores-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .store-premium-card {
        height: auto;
        flex-direction: column;
    }
    .store-card-left {
        width: 100%;
        height: 160px;
    }
    .store-card-right {
        padding: 16px;
    }
}

.download-app-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 50px;
}

.download-app-logo {
    width: 20%;
}

.download-app-logo-bg {
    background-color: #f0fdf4;
    width: 140px;
    height: 140px;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    
}

.download-app-logo-icon {
    font-size: 70px;
    color: #f72585;
}

.download-app-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.download-app-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

.download-app-subtitle {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.download-features {
    display: flex;
    gap: 30px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.feature-icon-green {
    background-color: #f0fdf4;
    color: #16a34a;
}

.feature-icon-blue {
    background-color: #eff6ff;
    color: #2563eb;
}

.feature-icon-orange {
    background-color: #fff7ed;
    color: #ea580c;
}

.feature-text {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    display: block;
}

.feature-divider {
    width: 1px;
    background-color: #e2e8f0;
    margin-top: 10px;
    height: 60px;
}

.download-app-divider {
    width: 1px;
    height: 120px;
    background-color: #e2e8f0;
    margin: 0 30px;
}

.download-app-buttons {
    width: 25%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.app-btn {
    background-color: #0f172a;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s;
}

.app-btn:hover {
    color: white;
    transform: translateY(-2px);
}

.app-btn-icon {
    font-size: 28px;
}

.app-btn-icon.icon-play {
    color: #ffffff;
}

.app-btn-icon.icon-apple {
    font-size: 32px;
}

.app-btn-content {
    flex-grow: 1;
}

.app-btn-subtitle {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    margin-bottom: 2px;
}

.app-btn-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

.app-btn-arrow {
    opacity: 0.5;
}

@media (max-width: 991px) {
    .download-app-section {
        flex-direction: column !important;
        text-align: center !important;
        padding: 30px !important;
        gap: 30px !important;
    }
    .download-app-logo, .download-app-content, .download-app-buttons {
        width: 100% !important;
    }
    .download-features {
        justify-content: center !important;
    }
    .download-app-divider, .feature-divider {
        display: none !important;
    }
    .download-app-buttons {
        flex-direction: row !important;
        justify-content: center !important;
    }
}

@media (max-width: 768px) {
    .download-app-buttons {
        flex-direction: column !important;
    }
}