/* Shared styles for all sub-sites */
:root {
    --ek-text: #101010;
    --ek-muted: #767678;
    --ek-border: #e3e5e8;
    --ek-bg: #f4f6fa;
    --ek-primary: #2563eb;
    --ek-green: #03c75a;
    --ek-radius: 6px;
    --bs-body-font-family: 'Inter', system-ui, sans-serif;
    --bs-body-color: var(--ek-text);
}

body {
    background: #fff;
    font-size: .875rem;
}

a {
    text-decoration: none;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1250px;
    }
}

.c-orange { color: #f97316; }
.c-teal { color: #0d9488; }
.c-purple { color: #7c3aed; }
.c-pink { color: #db2777; }

/* Brand */
.brand {
    display: inline-flex;
    flex-shrink: 0;
}
.brand-logo {
    height: 62px;
    width: auto;
}
@media (max-width: 575.98px) {
    .brand-logo {
        height: 42px;
    }
    .btn-login {
        padding: .5rem .7rem;
    }
    .btn-login .label {
        display: none;
    }
}

/* Top bar */
.topbar {
    background: var(--ek-bg);
    font-size: .75rem;
    color: var(--ek-muted);
    padding: .5rem 0;
}
.topbar a {
    color: var(--ek-muted);
}
.topbar a:hover {
    color: var(--ek-text);
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--ek-border);
}
.header-search {
    position: relative;
    align-items: center;
    max-width: 520px;
    border: 2px solid var(--ek-green);
    border-radius: 6px;
    overflow: hidden;
}
.header-search > .bi-search {
    position: absolute;
    left: 14px;
    color: var(--ek-muted);
}
.header-search .form-control {
    border: 0;
    padding: .55rem 2.125rem .55rem 2.04rem;
    box-shadow: none;
    font-size: .875rem;
}
.header-search .search-kbd {
    color: #9ca3af;
    padding: 0 0.637rem;
}
.header-search .btn {
    border-radius: 0;
    padding: .55rem 0.85rem;
}
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #303038;
    font-size: 1.1rem;
}
.icon-btn:hover {
    background: var(--ek-bg);
}
.shop-search {
    border-color: #0b5cff;
}
.shop-search .search-cat {
    border: 0;
    border-left: 1px solid var(--ek-border);
    background: transparent;
    color: #606060;
    font-size: .82rem;
    padding: 0 0.637rem;
    max-width: 150px;
    outline: 0;
    align-self: stretch;
}
.shop-search .btn-primary {
    background: #0b5cff;
    border-color: #0b5cff;
}
.food-search {
    border-color: #f2541b;
}
.food-search .btn {
    border-radius: 0;
    background: #f2541b;
    color: #fff;
}
.food-search .btn:hover {
    background: #d9440f;
    color: #fff;
}
.cart-btn {
    position: relative;
}
.cart-badge {
    position: absolute;
    top: 3px;
    right: 1px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 6px;
    background: #ef4444;
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
}
.category-nav a.active {
    background: #eaf2ff;
    color: #0b5cff;
    font-weight: 600;
}
.btn-login {
    background: var(--ek-bg);
    border: 0;
    border-radius: 6px;
    padding: .6rem 1.02rem;
    font-weight: 500;
    font-size: .875rem;
}
.btn-login .bi {
    font-size: 1.1rem;
    vertical-align: -2px;
    margin-right: .25rem;
}

.category-nav {
    display: flex;
    gap: .25rem;
    overflow-x: auto;
    padding-bottom: .9rem;
    scrollbar-width: none;
}
.category-nav::-webkit-scrollbar {
    display: none;
}
.category-nav a {
    flex: 1 0 74px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .35rem;
    font-size: .68rem;
    line-height: 1.15;
    color: #606060;
    padding: .35rem .15rem;
    border-radius: 6px;
}
.category-nav a:hover {
    background: var(--ek-bg);
    color: var(--ek-text);
}
.cat-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

/* Shared page building blocks */
.crumbs {
    font-size: .8rem;
    color: var(--ek-muted);
    margin-bottom: 1rem;
}
.crumbs a {
    color: var(--ek-muted);
}
.crumbs a:hover {
    color: var(--accent, var(--ek-primary));
}
.crumbs .bi {
    font-size: .65rem;
    margin: 0 .3rem;
}
.crumbs span {
    color: var(--ek-text);
}
.card-box {
    background: #fff;
    border: 1px solid var(--ek-border);
    border-radius: var(--ek-radius);
    padding: 1.147rem 1.19rem 1.19rem;
    box-shadow: none;
}
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}
.section-head h2 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.see-all {
    font-size: .75rem;
    color: var(--ek-primary);
    font-weight: 500;
    white-space: nowrap;
}
.page-title {
    font-size: 1.6rem;
    font-weight: 800;
}
.back-crumb {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--ek-muted);
    font-size: .85rem;
    margin-bottom: .75rem;
}
.btn-ek {
    border-radius: 6px;
    font-weight: 600;
    padding: .55rem 0.935rem;
}
.panel {
    background: #fff;
    border: 1px solid var(--ek-border);
    border-radius: 6px;
    padding: 1.275rem;
}
.panel h2 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1rem;
}
.panel-sub {
    color: var(--ek-muted);
    font-size: .8rem;
    margin: -.8rem 0 1.25rem;
}
.panel .form-control,
.panel .form-select {
    padding: .6rem 0.722rem;
    border-radius: 6px;
}
.profile-nav {
    background: #fff;
    border: 1px solid var(--ek-border);
    border-radius: 6px;
    padding: .5rem;
}
.profile-nav a {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .7rem 0.722rem;
    border-radius: 6px;
    color: #606060;
    font-weight: 500;
}
.profile-nav a:hover {
    background: var(--ek-bg);
}
.profile-nav a.active {
    background: #eaf2ff;
    color: var(--ek-primary);
}
/* Saved addresses (profile + checkout pickers) */
.addr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.85rem;
}
.addr-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1.5px solid var(--ek-border);
    border-radius: 6px;
    padding: 0.85rem 0.935rem;
    color: var(--ek-text);
}
.addr-card.default {
    border-color: #93b8ff;
    background: #f7faff;
}
.addr-top {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .55rem;
}
.addr-icon {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: #eaf2ff;
    color: var(--ek-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.addr-badge {
    margin-left: auto;
    font-size: .68rem;
    font-weight: 700;
    color: var(--ek-primary);
    background: #eaf2ff;
    padding: .15rem .55rem;
    border-radius: 6px;
}
.addr-line {
    margin: 0 0 .35rem;
    font-size: .88rem;
}
.addr-meta {
    font-size: .78rem;
    color: var(--ek-muted);
}
.addr-meta .bi {
    margin-right: .25rem;
}
.addr-actions {
    display: flex;
    align-items: center;
    gap: .4rem;
    margin-top: auto;
    padding-top: .8rem;
}
.addr-add {
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 150px;
    border-style: dashed;
    color: var(--ek-muted);
    font-weight: 600;
}
.addr-add:hover {
    color: var(--ek-primary);
    border-color: var(--ek-primary);
}
.empty-box {
    text-align: center;
    border: 1px dashed #cfd6e0;
    border-radius: 6px;
    padding: 2.55rem 1.275rem;
    color: var(--ek-muted);
}
.empty-box > i {
    font-size: 2.6rem;
    color: #b6c0cd;
}
.empty-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ek-text);
    margin: .75rem 0 .35rem;
}
.min-w-0 {
    min-width: 0;
}

/* Map marker (static/js/maps.js) */
.ek-pin span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 0;
    background: #0b5cff;
    transform: rotate(-45deg);
    border: 3px solid #fff;
    box-shadow: none;
}
.ek-pin i {
    transform: rotate(45deg);
    color: #fff;
    font-size: 1rem;
}
.leaflet-container {
    font-family: inherit;
}

/* Footer */
.site-footer {
    background: var(--ek-bg);
    margin-top: 3.5rem;
    color: var(--ek-muted);
    font-size: .8rem;
}
.site-footer h6 {
    font-weight: 700;
    color: var(--ek-text);
    margin-bottom: 1rem;
}
.site-footer li {
    margin-bottom: .55rem;
}
.site-footer a {
    color: var(--ek-muted);
}
.site-footer a:hover {
    color: var(--ek-primary);
}
.footer-about {
    max-width: 320px;
}
.footer-contact i {
    color: var(--ek-text);
    margin-right: .5rem;
}
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #101010;
    color: #fff !important;
}
.footer-bottom {
    border-top: 1px solid var(--ek-border);
    padding: 0.85rem 0;
    font-size: .75rem;
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--ek-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ek-muted);
    box-shadow: none;
    z-index: 1000;
}

/* Soft image zoom: hovering a link or an image's own box gently enlarges
   the image; the frames around images clip it (overflow: hidden). */
img {
    transition: transform .4s ease;
}
a:hover img,
:hover > img {
    transform: scale(1.05);
}
/* Large unframed images: a smaller step stays inside the surrounding padding */
.ev-detail-image:hover,
:hover > .ev-detail-image {
    transform: scale(1.02);
}
/* The brand logo stays still */
a:hover img.brand-logo,
:hover > img.auth-logo {
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    img {
        transition: none;
    }
}
