/* Tema 2 — Modern UI shell + homepage sections */

body.ui-theme-modern {
    background: #f7f7f8;
}

body.ui-theme-modern .preloader {
    z-index: 9999;
}

/* Compact header */
body.ui-theme-modern header.modern-header {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
body.ui-theme-modern header.modern-header .modern-header-inner {
    height: 4rem;
}
body.ui-theme-modern header.modern-header img {
    max-height: 2.5rem !important;
}

/* Search */
body.ui-theme-modern #searchBar.modern-search {
    top: 4rem;
    border: 0;
    background: transparent;
    padding: 0.5rem 0 0.75rem;
}
body.ui-theme-modern #searchBar.modern-search form {
    padding-top: 0;
    padding-bottom: 0;
}
body.ui-theme-modern #searchBar.modern-search #searchInput {
    border-radius: 9999px;
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 0.85rem 3rem 0.85rem 3rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
body.ui-theme-modern #searchBar.modern-search .modern-search-icon {
    color: var(--theme-color);
}
body.ui-theme-modern main.modern-main {
    margin-top: 8.5rem;
    padding-top: 0.75rem;
    padding-bottom: 6rem;
}

/* Sol sabit sosyal ikonlar — modern tema */
body.ui-theme-modern .modern-floating-social {
    z-index: 40;
}
body.ui-theme-modern .modern-floating-social a i {
    color: #4b5563;
    transition: color 0.15s ease;
}
body.ui-theme-modern .modern-floating-social a:hover i {
    color: var(--theme-color);
}

/* Quick actions — otomatik tam genişlik dağılımı */
.modern-quick-actions {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.55rem;
    margin: 0.75rem 0 1.1rem;
}
.modern-quick-actions a,
.modern-quick-actions button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 5.5rem;
    padding: 0.7rem 0.35rem;
    border-radius: 0.95rem;
    border: 0;
    background: #fff;
    color: #111827;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    min-width: 0;
    grid-column: span 3;
}
.modern-quick-actions .span-3 { grid-column: span 3; }
.modern-quick-actions .span-4 { grid-column: span 4; }
.modern-quick-actions .span-6 { grid-column: span 6; }
.modern-quick-actions .span-12 { grid-column: span 12; }
.modern-quick-actions a:hover,
.modern-quick-actions button:hover {
    background: #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}
.modern-quick-actions a:active,
.modern-quick-actions button:active {
    transform: scale(0.97);
}
.modern-quick-actions .qa-icon {
    width: auto;
    height: auto;
    font-size: 1.45rem;
    line-height: 1;
    color: var(--theme-color);
}

/* Announcements modern */
.modern-announce {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 0.95rem;
    background: color-mix(in srgb, var(--theme-color) 12%, #fff);
    border: 1px solid color-mix(in srgb, var(--theme-color) 20%, #fff);
    margin-bottom: 1rem;
}
.modern-announce .qa-icon {
    width: auto;
    height: auto;
    font-size: 1.45rem;
    color: var(--theme-color);
    flex-shrink: 0;
}
.modern-announce .announce-body {
    flex: 1;
    min-width: 0;
}
.modern-announce .announce-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--theme-color);
    margin-bottom: 0.15rem;
}
.modern-announce .announce-text {
    font-size: 0.8rem;
    color: #374151;
    line-height: 1.35;
}
.modern-announce .announce-btn {
    flex-shrink: 0;
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
    background: var(--theme-color);
    border-radius: 9999px;
    padding: 0.45rem 0.75rem;
    white-space: nowrap;
}

/* ========== Slider (görseldeki ana carousel) ========== */
.modern-slider-section {
    margin-bottom: 0.85rem;
}
.modern-slider-section .modernMainSlider {
    position: relative;
    width: 100%;
    height: 190px;
    border-radius: 1.15rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}
.modern-slider-section .swiper-slide {
    height: 190px !important;
}
.modern-slider-card {
    position: relative;
    display: block;
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: #111827;
    color: #fff;
}
.modern-slider-img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.modern-slider-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    /* Okunabilirlik: her zaman koyu katman (inline style üzerine ek güç) */
    background:
        linear-gradient(105deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.48) 52%, rgba(0, 0, 0, 0.22) 100%) !important;
}
.modern-slider-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 1rem 1.15rem 1.55rem;
    max-width: 82%;
}
.modern-slider-label {
    display: inline-flex;
    align-items: center;
    background: var(--theme-color);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 0.35rem;
    padding: 0.22rem 0.48rem;
    margin-bottom: 0.4rem;
}
.modern-slider-eyebrow {
    font-size: 0.78rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.15rem;
    line-height: 1.25;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65), 0 2px 12px rgba(0, 0, 0, 0.45);
}
.modern-slider-title {
    margin: 0;
    font-size: 1.28rem;
    font-weight: 800;
    line-height: 1.18;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7), 0 3px 14px rgba(0, 0, 0, 0.5);
}
.modern-slider-title .title-main {
    display: block;
    color: #fff;
}
.modern-slider-title .title-accent {
    display: block;
    color: #fff;
    text-shadow:
        0 0 0.5px var(--theme-color),
        0 1px 3px rgba(0, 0, 0, 0.75),
        0 0 18px color-mix(in srgb, var(--theme-color) 55%, transparent);
}
.modern-slider-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.7rem;
    background: var(--theme-color);
    color: #fff !important;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 700;
    padding: 0.62rem 1.15rem;
    border-radius: 9999px;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-color) 40%, transparent);
}
.modern-slider-cta i {
    font-size: 0.75rem;
}
.modern-slider-dots {
    position: absolute !important;
    bottom: 0.55rem !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 3;
    display: flex !important;
    justify-content: center;
    gap: 0.2rem;
}
.modern-slider-dots .swiper-pagination-bullet {
    width: 7px !important;
    height: 7px !important;
    margin: 0 3px !important;
    border-radius: 9999px !important;
    background: rgba(255, 255, 255, 0.7) !important;
    opacity: 1 !important;
}
.modern-slider-dots .swiper-pagination-bullet-active {
    background: var(--theme-color) !important;
    width: 8px !important;
    height: 8px !important;
}

/* ========== Banner: kayan slider + altında yan yana 2'li ========== */
.modern-banner-section {
    margin: 0.55rem 0 0.65rem;
}
.modern-banner-slider-section .modernBannerSlider {
    position: relative;
    width: 100%;
    height: 118px;
    border-radius: 0.95rem;
    overflow: hidden;
}
.modern-banner-slider-section .swiper-slide {
    height: 118px !important;
}
.modern-banner-slider-section .modern-banner-card {
    height: 118px;
    border-radius: 0.95rem;
}
.modern-banner-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}
.modern-banner-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.95rem;
    width: 100%;
    height: 108px;
    color: #fff;
    display: block;
    text-decoration: none;
    background: #141414;
}
.modern-banner-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.modern-banner-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
    z-index: 1;
}
.modern-banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.7rem 0.9rem;
}
.modern-banner-texts {
    flex: 1 1 auto;
    min-width: 0;
}
.modern-banner-line1,
.modern-banner-line2 {
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75), 0 0 8px rgba(0, 0, 0, 0.45);
}
.modern-banner-sub {
    margin-top: 0.15rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.modern-banner-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    color: #fff;
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.5rem 0.9rem;
    border-radius: 9999px;
    white-space: nowrap;
}
.modern-banner-cta i {
    font-size: 0.7rem;
}
.modern-banner-dots {
    position: absolute !important;
    bottom: 0.3rem !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 3;
}
.modern-banner-dots .swiper-pagination-bullet {
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.45);
    opacity: 1;
}
.modern-banner-dots .swiper-pagination-bullet-active {
    background: var(--theme-color);
}
@media (max-width: 639px) {
    .modern-banner-card {
        height: 96px;
    }
    .modern-banner-line1,
    .modern-banner-line2 {
        font-size: 0.72rem;
    }
    .modern-banner-sub {
        display: none;
    }
    .modern-banner-cta {
        padding: 0.38rem 0.5rem;
        font-size: 0;
        gap: 0;
    }
    .modern-banner-cta i {
        font-size: 0.72rem;
    }
}
/* Boş durum kutuları */
.modern-empty-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
    padding: 1.75rem 1rem;
    border-radius: 0.95rem;
    background: #fff;
    border: 1px dashed #e5e7eb;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    color: #6b7280;
}
.modern-empty-box i {
    font-size: 1.5rem;
    color: var(--theme-color);
    opacity: 0.85;
    margin-bottom: 0.25rem;
}
.modern-empty-box strong {
    font-size: 0.95rem;
    font-weight: 800;
    color: #111827;
}
.modern-empty-box span {
    font-size: 0.78rem;
    line-height: 1.35;
}

/* Categories — her ekranda 4’lü küçük resimli */
.modern-cat-scroll {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.5rem;
}
.modern-cat-card {
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    grid-column: span 3;
}
.modern-cat-card.span-3,
.modern-cat-card.span-4,
.modern-cat-card.span-6 { grid-column: span 3; }
.modern-cat-card.span-12 { grid-column: span 12; }
.modern-cat-card img {
    width: 100%;
    height: 3.4rem;
    object-fit: cover;
    object-position: center;
    display: block;
    cursor: pointer;
}
.modern-cat-card .cat-meta {
    padding: 0.35rem 0.35rem 0.4rem;
}
.modern-cat-card .cat-name {
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.modern-cat-card .cat-count {
    font-size: 0.55rem;
    color: #6b7280;
    margin-top: 0.05rem;
}

/* Product cards — mobil/tablet: 2 sütun, masaüstü (lg+): 4 sütun */
.modern-products-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.65rem;
}
.modern-product-card {
    background: #fff;
    border-radius: 0.95rem;
    overflow: hidden;
    border: 1px solid #eee;
    position: relative;
    min-width: 0;
    grid-column: span 6; /* mobil/tablet: satırda 2 */
}
.modern-product-card.span-3,
.modern-product-card.span-4,
.modern-product-card.span-6 { grid-column: span 6; }
.modern-product-card.span-12 { grid-column: span 12; }
.modern-product-card .img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f3f4f6;
    overflow: hidden;
}
.modern-product-card .img-wrap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.modern-product-card .img-zoom {
    position: absolute;
    left: 0.45rem;
    top: 0.45rem;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.92);
    border: 0;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    cursor: zoom-in;
}
.modern-product-card .img-zoom i {
    font-size: 0.75rem;
}

/* Lightbox */
.modern-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modern-lightbox.hidden {
    display: none !important;
}
.modern-lightbox img {
    max-width: 96vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
.modern-lightbox-close {
    position: absolute;
    top: 0.75rem;
    right: 0.9rem;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}
.modern-product-card .fav-btn {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 9999px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid color-mix(in srgb, var(--theme-color) 55%, #fecaca);
    color: var(--theme-color);
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.modern-product-card .fav-btn.is-active,
.modern-product-card .fav-btn.text-red-500 {
    color: #ef4444;
}
.modern-product-card .card-body {
    padding: 0.65rem 0.7rem 0.75rem;
}
.modern-product-card .card-title {
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.25;
    color: #111827;
}
.modern-product-card .card-desc {
    margin-top: 0.15rem;
    font-size: 0.62rem;
    color: #6b7280;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.modern-product-card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-top: 0.45rem;
}
.modern-product-card .card-price {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--theme-color);
}
.modern-product-card .plus-btn {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 9999px;
    background: var(--theme-color);
    color: #fff;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    line-height: 1;
    flex-shrink: 0;
}

.modern-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.25rem 0 0.85rem;
}
.modern-section-head h2 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}
.modern-section-head h2 i {
    color: var(--theme-color);
    font-size: 1rem;
}
.modern-section-head a {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--theme-color);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
}
.modern-section-head a i {
    font-size: 0.65rem;
}

/* Bottom nav modern */
body.ui-theme-modern .fixed-menu-wrapper.modern-fixed-menu nav {
    padding-top: 0.35rem;
    padding-bottom: calc(0.35rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}
body.ui-theme-modern .modern-fixed-menu .modern-nav-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    height: 4.25rem;
    gap: 0.15rem;
}
body.ui-theme-modern .modern-fixed-menu .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    color: #6b7280;
    text-decoration: none;
    background: transparent;
    border: 0;
    height: 100%;
    font-size: 0.65rem;
    font-weight: 600;
}
body.ui-theme-modern .modern-fixed-menu .nav-item i {
    font-size: 1.2rem;
    line-height: 1;
}
body.ui-theme-modern .modern-fixed-menu .nav-item.is-active,
body.ui-theme-modern .modern-fixed-menu .nav-item:hover {
    color: var(--theme-color);
}
body.ui-theme-modern .modern-fixed-menu .nav-item.is-active .fa-regular.fa-heart {
    font-weight: 900;
    font-family: "Font Awesome 6 Free";
}
body.ui-theme-modern .modern-fixed-menu .qr-center-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
}
body.ui-theme-modern .modern-fixed-menu .qr-center-btn {
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 9999px;
    background: var(--theme-color) !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--theme-color) 45%, transparent);
    transform: translateY(-0.85rem);
    text-decoration: none;
    border: 4px solid #fff;
}
body.ui-theme-modern .modern-fixed-menu .qr-center-btn i {
    font-size: 1.35rem;
    color: #fff !important;
}
body.ui-theme-modern .modern-fixed-menu .qr-center-label {
    position: absolute;
    bottom: 0.15rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--theme-color) !important;
    white-space: nowrap;
}
body.ui-theme-modern .modern-fixed-menu .nav-item.text-red-500,
body.ui-theme-modern .modern-fixed-menu .nav-item .text-red-500 {
    color: var(--theme-color) !important;
}
body.ui-theme-modern .modern-fixed-menu #favoriteCount {
    background: var(--theme-color) !important;
}

body.ui-theme-modern #scrollToTop {
    bottom: calc(7.25rem + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 40;
    right: 0;
    background: var(--theme-color) !important;
}

/* Fallback for hidden call-waiter trigger in modern bottom bar */
body.ui-theme-modern .modern-fixed-menu #callWaiterBtn.hidden {
    display: none !important;
}

@media (min-width: 640px) {
    .modern-quick-actions {
        gap: 0.85rem;
    }
    .modern-quick-actions a,
    .modern-quick-actions button {
        font-size: 0.75rem;
        min-height: 5.75rem;
    }
    .modern-quick-actions .qa-icon {
        font-size: 1.65rem;
    }
    .modern-slider-section .modernMainSlider,
    .modern-slider-card {
        height: 220px;
    }
    .modern-slider-section .swiper-slide {
        height: 220px !important;
    }
    .modern-slider-title {
        font-size: 1.55rem;
    }
    .modern-slider-eyebrow {
        font-size: 0.88rem;
    }
    .modern-banner-slider-section .modernBannerSlider,
    .modern-banner-slider-section .modern-banner-card {
        height: 130px;
    }
    .modern-banner-slider-section .swiper-slide {
        height: 130px !important;
    }
    .modern-banner-grid .modern-banner-card {
        height: 120px;
    }
    .modern-banner-line1,
    .modern-banner-line2 {
        font-size: 0.98rem;
    }
    .modern-slider-cta {
        font-size: 0.92rem;
        padding: 0.7rem 1.3rem;
    }
    .modern-banner-cta {
        font-size: 0.84rem;
        padding: 0.55rem 1rem;
    }
    .modern-cat-scroll,
    .modern-products-grid {
        gap: 0.85rem;
    }
    .modern-cat-card img {
        height: 7rem;
    }
    .modern-cat-card .cat-name {
        font-size: 0.85rem;
    }
    .modern-product-card .card-title {
        font-size: 0.88rem;
    }
    .modern-product-card .card-desc {
        font-size: 0.7rem;
    }
    .modern-product-card .card-price {
        font-size: 0.9rem;
    }
    .modern-product-card .plus-btn {
        width: 2rem;
        height: 2rem;
        font-size: 0.85rem;
    }
}

/* Masaüstü: ürünler yan yana 4 */
@media (min-width: 1024px) {
    .modern-product-card,
    .modern-product-card.span-3 {
        grid-column: span 3;
    }
    .modern-product-card.span-4 { grid-column: span 4; }
    .modern-product-card.span-6 { grid-column: span 6; }
    .modern-product-card.span-12 { grid-column: span 12; }
    .modern-cat-card img {
        height: 4.25rem;
    }
    .modern-cat-card .cat-name {
        font-size: 0.72rem;
    }
}
