/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    color: #1a1a1a;
    font-size: 14px;
    line-height: 1.4;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== MOBILE WRAPPER ===== */
.mobile-wrapper {
    max-width: 430px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 20px rgba(0,0,0,0.12);
}

/* ===== TOP NAVIGATION ===== */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo svg text {
    font-family: Arial Black, Arial, sans-serif;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.navigation-menu-wrapper {
    gap: 2px;
}

.menu-item {
    display: flex;
    align-items: center;
}

.navigation-menu-user,
.favorites-wrapper,
.basket-wrapper-link {
    text-decoration: none;
    color: inherit;
}

.ty-nav-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    -webkit-mask-image: var(--icon-url);
    mask-image: var(--icon-url);
    -webkit-mask-size: cover;
    mask-size: cover;
    background-image: var(--icon-url);
    background-size: cover;
}

.icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #1a1a1a;
    transition: background 0.15s;
    position: relative;
}

.icon-btn:hover {
    background: #f5f5f5;
}

.cart-btn {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #F27A1A;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ===== STORE HEADER CARD ===== */
.m-header-card {
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.46) 0%, rgba(0, 0, 0, 0) 100%), #492424;
    min-height: 117px;
}

.m-header-card__wrapper {
    position: relative;
    padding: 12px 40px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-header-card__wrapper__back {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-header-card__wrapper__seller {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.m-header-seller__logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.m-header-seller__info {
    flex: 0 1 auto;
    min-width: 0;
}

.m-header-seller__info__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 0;
}

.m-header-seller__info__title h1 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.score {
    background-color: #049B24;
    border-radius: 4px;
    padding: 2px 6px;
    flex-shrink: 0;
}

.score-actual {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

.m-header-card__wrapper__seller__follow-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    padding-left: 12px;
    overflow: visible;
}

.button-wrapper {
    display: inline-flex;
    align-items: center;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s;
    position: relative;
}

.button__with-coupon {
    background: #fff;
    border-radius: 8px;
    padding: 6px 12px 6px 22px;
    min-height: 36px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.coupon-icon-badge {
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: #ff4fa3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(255, 79, 163, 0.4);
}

.coupon-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.15;
    color: #ff4fa3;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
}

.coupon-text span {
    display: block;
}

.button-wrapper:hover {
    opacity: 0.92;
}

.button-wrapper.following {
    background: #fff;
}

.button-wrapper.following .coupon-text {
    color: #4caf50;
}

.button-wrapper.following .coupon-icon-badge {
    background: #4caf50;
}

.m-header-card__wrapper__seller__follow-wrapper__followers {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    white-space: nowrap;
}

.m-header-card__wrapper__seller__follow-wrapper__followers b {
    font-weight: 700;
    color: #fff;
}

.search-bar-container {
    padding: 0 14px 12px;
}

.search-bar-container form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px;
}

.search-bar-container form img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.search-bar-container form input {
    border: none;
    background: none;
    outline: none;
    font-size: 13px;
    color: #333;
    width: 100%;
    font-family: inherit;
}

.search-bar-container form input::placeholder {
    color: #999;
}

.avatar-placeholder {
    background: linear-gradient(135deg, #F27A1A, #e65c00) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.avatar-placeholder::after {
    content: 'KM';
}

/* ===== TAB NAVIGATION ===== */
.tab-nav {
    display: flex;
    background: #fff;
    border-bottom: 2px solid #f0f0f0;
    position: sticky;
    top: 57px;
    z-index: 99;
}

.tab-item {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}

.tab-item.active {
    color: #F27A1A;
    border-bottom-color: #F27A1A;
    font-weight: 700;
}

.tab-item:hover:not(.active) {
    color: #333;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 0;
    background: #f5f5f5;
}

/* ===== SECTION HEADER ===== */
.section-header {
    padding: 14px 14px 10px;
    background: #fff;
    margin-bottom: 4px;
}

.section-header h2 {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 0 4px 4px;
    background: #f0f0f0;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    background: #fff;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: transform 0.15s;
}

.wishlist-btn:hover {
    transform: scale(1.1);
}

.wishlist-btn:hover svg {
    stroke: #F27A1A;
}

/* ===== PRODUCT IMAGE ===== */
.product-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: #f9f9f9;
    overflow: hidden;
}

.product-image-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.2s;
}

.product-card:hover .product-image-wrap img {
    transform: scale(1.04);
}

/* ===== ÜRÜN ETİKETLERİ ===== */
.product-sticker {
    position: absolute;
    z-index: 2;
    object-fit: contain;
    pointer-events: none;
    height: auto;
}

/* ===== PRODUCT INFO ===== */
.product-info {
    padding: 8px 10px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hizli-teslimat {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #00b140;
    font-size: 10.5px;
    font-weight: 600;
}

.product-title {
    font-size: 11.5px;
    color: #333;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.stars {
    display: flex;
    gap: 1px;
}

.review-count {
    font-size: 10px;
    color: #888;
}

.cargo-icon {
    margin-left: auto;
}

.kargo-bedava {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #00b140;
    font-size: 10.5px;
    font-weight: 600;
}

.kargo-bedava svg {
    stroke: #00b140;
}

.product-price {
    font-size: 15px;
    font-weight: 800;
    color: #F27A1A;
    margin-top: 2px;
}

/* ===== SATICI PROFİL ===== */
.satici-profil {
    background: #fff;
}

.seller-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fff;
    border-bottom: 1px solid #eee;
}

.seller-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 8px;
    gap: 4px;
    border-right: 1px solid #eee;
}

.seller-stat-item:last-child {
    border-right: none;
}

.seller-stat-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 2px;
    display: block;
}

.seller-stat-item strong {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
}

.seller-stat-item span {
    font-size: 10px;
    color: #888;
    line-height: 1.3;
}

.performance-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
    background: #f5f5f5;
}

.performance-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 72px;
}

.performance-card-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #333;
    line-height: 1.35;
}

.performance-card-title span {
    font-weight: 700;
}

.performance-value {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: right;
    margin-top: 8px;
}

.info-icon-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.review-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.review-tab {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.review-tab.active {
    color: #F27A1A;
    border-bottom-color: #F27A1A;
}

.review-summary {
    padding: 14px;
    background: #fff;
    border-bottom: 8px solid #f5f5f5;
}

.review-summary-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.review-rating-big {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rating-number {
    font-size: 22px;
    font-weight: 800;
    color: #1a1a1a;
}

.rating-stars {
    display: flex;
    gap: 1px;
}

.review-criteria-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #888;
    text-decoration: none;
    text-align: right;
    line-height: 1.3;
    max-width: 110px;
}

.review-count-text {
    font-size: 11px;
    color: #888;
    margin: 0 0 12px;
}

.filter-label {
    font-size: 11px;
    color: #888;
    margin: 0 0 8px;
}

.rating-filters {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.rating-filters::-webkit-scrollbar {
    display: none;
}

.rating-filter-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 10px;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.rating-filter-btn.active {
    border-color: #F27A1A;
    color: #F27A1A;
}

.filter-stars {
    display: flex;
    gap: 1px;
}

.photo-reviews {
    padding: 14px;
    background: #fff;
    border-bottom: 8px solid #f5f5f5;
}

.photo-reviews-title {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin: 0 0 10px;
}

.photo-reviews-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.photo-reviews-scroll::-webkit-scrollbar {
    display: none;
}

.photo-review-thumb {
    width: 72px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.photo-review-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-list {
    background: #f5f5f5;
}

.review-card {
    background: #fff;
    padding: 14px;
    margin-bottom: 8px;
    position: relative;
}

.review-menu-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
}

.review-product {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-right: 24px;
}

.review-product img {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #eee;
    flex-shrink: 0;
}

.review-product strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a;
}

.review-product span {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 6px;
}

.review-meta {
    font-size: 10px;
    color: #aaa;
    margin: 0 0 8px;
}

.review-text {
    font-size: 12px;
    color: #333;
    line-height: 1.5;
    margin: 0;
}

.review-empty {
    padding: 40px 20px;
    text-align: center;
    color: #888;
    font-size: 13px;
    background: #fff;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 431px) {
    body {
        background: #e8e8e8;
    }
}

@media (max-width: 380px) {
    .m-header-seller__info__title h1 {
        max-width: 100px;
    }

}

/* ===== FOOTER ===== */
.site-footer {
    background: #f5f5f5;
    border-top: 1px solid #e8e8e8;
    margin-top: 4px;
}

/* Accordion */
.footer-accordion {
    background: #fff;
}

.accordion-item {
    border-bottom: 1px solid #f0f0f0;
}

.accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    background: #fff;
    text-align: left;
    transition: background 0.15s;
}

.accordion-toggle:hover {
    background: #fafafa;
}

.accordion-toggle .chevron {
    color: #888;
    flex-shrink: 0;
    transition: transform 0.25s;
}

.accordion-toggle[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fafafa;
}

.accordion-body.open {
    max-height: 300px;
}

.accordion-body ul {
    list-style: none;
    padding: 6px 0 10px;
}

.accordion-body ul li a {
    display: block;
    padding: 7px 20px;
    font-size: 13px;
    color: #555;
    transition: color 0.15s;
}

.accordion-body ul li a:hover {
    color: #F27A1A;
}

/* Footer Sections */
.footer-section {
    background: #fff;
    padding: 16px 16px;
    margin-top: 6px;
}

.footer-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Country Select */
.country-select-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    background: #fff;
    width: 100%;
    max-width: 160px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.country-select-btn:hover {
    border-color: #F27A1A;
    box-shadow: 0 0 0 2px rgba(242,122,26,0.1);
}

.flag-icon {
    display: flex;
    align-items: center;
    line-height: 1;
    flex-shrink: 0;
}

.flag-icon img {
    width: 22px;
    height: auto;
    display: block;
    border-radius: 2px;
}

.country-select-btn svg {
    margin-left: auto;
    color: #aaa;
}

/* Payment Logos */
.payment-logos {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.payment-logo {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
    background: #fff;
}

.payment-logo img {
    display: block;
    height: 26px;
    width: auto;
}

/* Cert Logos */
.cert-logos {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.cert-logo {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    flex-shrink: 0;
    background: #fff;
}

.cert-logo img {
    display: block;
    height: 48px;
    width: auto;
}

/* Dark Footer Section */
.footer-dark {
    background: #1a1a1a;
    padding: 24px 16px 20px;
    margin-top: 6px;
}

/* Social Links */
.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 19px;
    transform: translateX(-73px);
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.2s, transform 0.15s;
}

.social-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* App Buttons */
.app-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-width: 270px;
    margin: 0 auto;
    transform: translateX(-59px);
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #111;
    border: 1.5px solid #444;
    border-radius: 10px;
    padding: 9px 16px;
    color: #fff;
    text-decoration: none;
    width: 100%;
    transition: border-color 0.15s, background 0.15s, opacity 0.15s;
}

.app-btn:hover {
    border-color: #888;
    background: #222;
}

.app-btn-svg-only {
    background: none;
    border: none;
    padding: 0;
    border-radius: 0;
    width: 100%;
}

.app-btn-svg-only:hover {
    background: none;
    border: none;
    opacity: 0.85;
}

.app-btn-svg-only svg,
.app-btn-svg-only img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

.app-btn.huawei {
    grid-column: 1;
}

.app-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.app-btn-text small {
    font-size: 9px;
    color: #aaa;
    letter-spacing: 0.2px;
}

.app-btn-text strong {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.app-suffix {
    font-size: 11px;
    font-weight: 400;
    color: #ccc;
}

/* Legal Links */
.footer-legal {
    background: #1a1a1a;
    padding: 16px 16px 12px;
    border-top: 1px solid #2e2e2e;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}

.footer-legal-links a {
    font-size: 11px;
    color: #b0b0b0;
    line-height: 1.4;
    transition: color 0.15s;
}

.footer-legal-links a:hover {
    color: #d0d0d0;
}

.footer-copyright {
    font-size: 11px;
    color: #b0b0b0;
    line-height: 1.5;
    margin: 0;
    padding: 0 16px 24px;
    background: #1a1a1a;
}

@media (max-width: 380px) {
    .social-btn {
        width: 38px;
        height: 38px;
    }
}

/* ===== SITE GİRİŞ SPLASH ===== */
.site-splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #c41e1e;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.site-splash.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-splash-img {
    width: 100%;
    height: 100%;
    max-width: 430px;
    object-fit: cover;
    object-position: center;
    animation: splash-zoom-in 2.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    will-change: transform;
}

@keyframes splash-zoom-in {
    0% {
        transform: scale(1.55);
        opacity: 0.35;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

body.splash-active {
    overflow: hidden;
}
