* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f6f7f9;
    color: #172033;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}


/* HEADER */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e8ebef;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #ffffff;
    font-weight: 800;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    font-size: 14px;
    font-weight: 600;
}

.main-nav a:hover {
    opacity: .65;
}


/* HERO */

.hero {
    background: #111827;
    color: #ffffff;
    padding: 90px 0 100px;
}

.hero-content {
    text-align: center;
    max-width: 850px;
}

.hero-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    opacity: .65;
}

.hero h1 {
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1;
    margin: 18px 0;
}

.hero p {
    font-size: 18px;
    line-height: 1.7;
    opacity: .78;
    margin: 0 auto 35px;
    max-width: 620px;
}

.search-box {
    background: #ffffff;
    padding: 8px;
    border-radius: 14px;
    display: flex;
    max-width: 780px;
    margin: auto;
}

.search-input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
}

.search-input span {
    color: #7b8494;
    font-size: 25px;
}

.search-input input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 15px 0;
    color: #172033;
}

.search-box button {
    border: 0;
    background: #111827;
    color: #ffffff;
    padding: 0 28px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
}


/* DIRECTORY */

.directory-section {
    padding: 65px 0 90px;
}

.directory-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 45px;
}

.directory-toolbar h2 {
    margin: 0 0 5px;
    font-size: 28px;
}

.directory-toolbar p {
    margin: 0;
    color: #7a8494;
}

.filters {
    display: flex;
    gap: 10px;
}

.filters select,
.filters button {
    border: 1px solid #dfe3e8;
    background: #ffffff;
    border-radius: 9px;
    padding: 11px 13px;
}

.filters button {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
    cursor: pointer;
    font-weight: 600;
}


/* SECTION */

.section-heading {
    margin-bottom: 22px;
}

.section-heading h2 {
    margin: 4px 0 0;
    font-size: 25px;
}

.section-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #7a8494;
}

.normal-heading {
    margin-top: 55px;
}


/* STORE GRID */

.store-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}


/* CARD */

.store-card {
    background: #ffffff;
    border: 1px solid #e7eaf0;
    border-radius: 15px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.store-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(20, 30, 50, .08);
}

.store-card-image {
    height: 175px;
    background: #eef1f5;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.store-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
}

.featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ffffff;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
}

.store-card-body {
    padding: 20px;
}

.store-category {
    font-size: 11px;
    font-weight: 700;
    color: #7b8494;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.store-card h3 {
    font-size: 20px;
    margin: 8px 0;
}

.store-description {
    color: #6e7786;
    font-size: 14px;
    line-height: 1.6;
    min-height: 45px;
}

.store-location {
    color: #626d7c;
    font-size: 13px;
    margin: 15px 0;
}

.view-store-button {
    width: 100%;
    padding: 12px;
    border: 0;
    background: #111827;
    color: #ffffff;
    border-radius: 9px;
    font-weight: 700;
    cursor: pointer;
}

.view-store-button:hover {
    opacity: .88;
}


/* EMPTY */

.empty-state {
    background: #ffffff;
    border: 1px solid #e7eaf0;
    border-radius: 15px;
    padding: 70px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 40px;
}

.empty-state h3 {
    margin-bottom: 8px;
}

.empty-state p {
    color: #737d8d;
}

.button {
    display: inline-block;
    background: #111827;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 8px;
    margin-top: 10px;
}


/* MODAL */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 25, .65);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 500;
}

.modal-overlay.active {
    display: flex;
}

.store-modal {
    width: min(600px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 18px;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .2);
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f1f3f5;
    font-size: 25px;
    cursor: pointer;
    z-index: 2;
}

.modal-store-header {
    padding: 35px 30px 25px;
    text-align: center;
}

.modal-logo {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    object-fit: cover;
    margin-bottom: 15px;
}

.modal-logo-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    background: #eef1f5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    font-weight: 800;
    margin-bottom: 15px;
}

.modal-store-header h2 {
    margin: 0 0 8px;
}

.modal-category {
    color: #717b8a;
    font-size: 13px;
}

.modal-description {
    padding: 0 30px 20px;
    color: #596474;
    line-height: 1.7;
}

.modal-details {
    padding: 0 30px 25px;
}

.modal-detail {
    display: flex;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #edf0f3;
}

.modal-detail-icon {
    width: 30px;
}

.modal-detail-content {
    flex: 1;
}

.modal-detail-content small {
    display: block;
    color: #8a93a0;
    margin-bottom: 3px;
}

.modal-detail-content a {
    color: #111827;
    font-weight: 600;
}

.modal-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 30px 30px;
}

.modal-action {
    text-align: center;
    padding: 13px;
    border-radius: 9px;
    background: #111827;
    color: #ffffff;
    font-weight: 700;
}

.modal-action.secondary {
    background: #eef1f5;
    color: #172033;
}


/* FOOTER */

.site-footer {
    background: #111827;
    color: #ffffff;
    padding-top: 45px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 35px;
}

.footer-inner p {
    color: #9da6b5;
}

.footer-inner a {
    font-weight: 700;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px;
    text-align: center;
    color: #8f99a9;
    font-size: 13px;
}


/* MOBILE */

@media (max-width: 850px) {

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

    .directory-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .filters {
        flex-wrap: wrap;
    }

}

@media (max-width: 600px) {

    .container {
        width: min(100% - 22px, 1180px);
    }

    .header-inner {
        height: 62px;
    }

    .main-nav {
        gap: 12px;
    }

    .main-nav a:first-child {
        display: none;
    }

    .hero {
        padding: 65px 0 70px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .search-box {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
    }

    .search-box button {
        height: 48px;
    }

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

    .filters {
        display: grid;
        grid-template-columns: 1fr;
    }

    .filters select,
    .filters button {
        width: 100%;
    }

    .footer-inner {
        flex-direction: column;
    }

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

}