@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --file-green: #007F38;
    --file-green-dark: #006B2E;
    --file-mint: #EAF5EE;
    --file-amber: #F5AB00;
    --file-amber-hover: #E09C00;
    --file-cream: #FDF5DC;
    --file-bg: #F2F3F5;
    --file-card: #FFFFFF;
    --file-text: #1F2937;
    --file-muted: #6B7280;
    --file-border: #E5E7EB;
    --file-red: #E11D48;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--file-bg);
    color: var(--file-text);
    min-height: 100vh;
}

/* Responsive Website Shell */
.app-shell {
    width: 100%;
    min-height: 100vh;
    background-color: var(--file-bg);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.page-container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
}

.header-inner {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
}

/* Views */
.view {
    display: none;
    flex-direction: column;
    flex: 1;
    padding-bottom: 36px;
}

.view.active {
    display: flex;
}

.view.no-bottom-nav {
    padding-bottom: 100px;
}

/* ================= HOME HEADER ================= */
.home-header {
    background-color: var(--file-green);
    padding: 12px 16px 14px;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.brand-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-bottom: 12px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.desktop-nav-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}

.desktop-nav-btn:hover,
.desktop-nav-btn.active {
    background: #FFFFFF;
    color: var(--file-green);
    border-color: #FFFFFF;
}

.brand-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #F5AB00;
    border: 2px solid #A4D65E;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-text {
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1;
}

.admin-quick-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}

.header-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.header-pill {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    min-height: 46px;
}

.header-pill-icon {
    color: var(--file-green);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.header-pill-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.header-pill-label {
    font-size: 11px;
    color: #6B7280;
    font-weight: 500;
    line-height: 1.2;
}

.header-pill-value {
    font-size: 13px;
    color: #111827;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ================= BANNER CAROUSEL ================= */
.banner-wrapper {
    padding: 10px 10px 4px;
}

.banner-carousel {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #DCEEF8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.banner-slides {
    display: flex;
    transition: transform 0.35s ease;
}

.banner-slide {
    min-width: 100%;
    height: 190px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, #CBE7F5 0%, #E7F4FB 55%, #C1E2F3 100%);
    overflow: hidden;
}

.banner-slide.slide-2 {
    background: linear-gradient(135deg, #E8F5EC 0%, #D1ECD9 100%);
}

.banner-slide.slide-3 {
    background: linear-gradient(135deg, #FFF3D1 0%, #FFE6A3 100%);
}

.banner-title {
    font-size: 21px;
    font-weight: 800;
    color: #1E3A5F;
    line-height: 1.15;
    z-index: 2;
}

.banner-title span {
    color: #B4236C;
}

.banner-badge-yeni {
    position: absolute;
    top: 44px;
    right: 92px;
    background: #3B8C45;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 50% 50% 50% 4px;
    transform: rotate(-8deg);
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.banner-visual-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    z-index: 2;
}

.banner-cta-btn {
    background-color: #B4236C;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(180, 35, 108, 0.35);
}

.banner-bottles {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    position: absolute;
    right: 12px;
    bottom: 6px;
}

.bottle-card {
    width: 62px;
    height: 112px;
    border-radius: 14px 14px 8px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 800;
    font-size: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
    position: relative;
    padding: 6px 4px;
    text-align: center;
}

.bottle-black {
    background: linear-gradient(160deg, #2D2D32 0%, #111113 100%);
    transform: rotate(-6deg);
}

.bottle-pink {
    background: linear-gradient(160deg, #9F1D5C 0%, #6A0D3A 100%);
    transform: rotate(4deg);
}

.bottle-cap {
    width: 20px;
    height: 14px;
    background: #1A1A1D;
    border-radius: 4px 4px 0 0;
    position: absolute;
    top: -11px;
}

.banner-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 5;
}

.banner-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #F5AB00;
    opacity: 0.75;
    cursor: pointer;
    transition: all 0.2s;
}

.banner-dot.active {
    background: var(--file-green);
    opacity: 1;
    width: 9px;
    height: 9px;
}

/* ================= CATEGORY GRID ================= */
.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    padding: 14px 10px 28px;
}

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

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 9px;
        padding: 8px 10px 18px;
    }
}

.category-card {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 8px 6px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 124px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.12s ease;
    text-align: center;
}

.category-card:active {
    transform: scale(0.97);
}

.category-img-wrap {
    width: 96px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.category-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.category-name {
    font-size: 12px;
    font-weight: 600;
    color: #1F2937;
    line-height: 1.22;
}

/* Special Badge Icons for First 3 Categories */
.cat-badge-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 800;
}

.cat-badge-new {
    background: #F5A623;
    position: relative;
    overflow: hidden;
}

.cat-badge-deals {
    background: #F01E28;
}

.cat-badge-glutenfree {
    background: #0B0B0C;
}

/* ================= SUB-PAGE HEADER (CHECKOUT & CATEGORY) ================= */
.sub-header {
    background-color: var(--file-green);
    color: #FFFFFF;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 0 14px;
}

.sub-header-back {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #FFFFFF;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
}

.sub-header-title {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.1px;
}

/* ================= FiLE STYLE CATEGORY & SUBCATEGORY BARS ================= */
.category-header-green {
    background-color: #0C8446 !important;
    height: 52px;
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 18px;
    box-shadow: none;
    border-bottom: none;
}

/* Sarı / Altın Kategori Barı */
.category-bar-yellow {
    background-color: #FCAF13;
    position: sticky;
    top: 52px;
    z-index: 45;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.category-bar-yellow::-webkit-scrollbar {
    display: none;
}

.category-tabs-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    min-width: max-content;
}

.cat-tab-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 600;
    color: #FFFFFF;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
    line-height: 1.25;
}

.cat-tab-pill:hover {
    background: rgba(0, 135, 66, 0.35);
}

.cat-tab-pill.active {
    background: #008742 !important;
    color: #FFFFFF !important;
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

/* Beyaz Alt Kategori Barı */
.subcategory-bar-white {
    background-color: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    position: sticky;
    top: 96px;
    z-index: 40;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.subcategory-bar-white::-webkit-scrollbar {
    display: none;
}

.subcategory-tabs-scroll {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 10px 18px;
    min-width: max-content;
}

.subcat-tab-item {
    font-size: 14px;
    font-weight: 500;
    color: #696969;
    background: none;
    border: none;
    padding: 4px 0;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    user-select: none;
    transition: color 0.18s ease;
    line-height: 1.25;
}

.subcat-tab-item:hover {
    color: #0C8446;
}

.subcat-tab-item.active {
    color: #0C8446 !important;
    font-weight: 700;
    border-bottom: 2.5px solid #0C8446;
    margin-bottom: -1px;
}

/* ================= 3-STEP CHECKOUT PROGRESS BAR ================= */
.checkout-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    position: sticky;
    top: 54px;
    z-index: 35;
}

.step-item {
    padding: 10px 6px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #9CA3AF;
    line-height: 1.25;
    position: relative;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-item.done,
.step-item.active {
    background-color: var(--file-mint);
    color: var(--file-green);
    font-weight: 700;
}

.step-item.active-arrow::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    border-left: 10px solid var(--file-mint);
    z-index: 2;
}

/* ================= CHECKOUT STEP 1: ADDRESS ================= */
.checkout-body {
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-heading {
    font-size: 14px;
    font-weight: 700;
    color: #1F2937;
    margin-top: 4px;
    margin-bottom: 2px;
}

.address-card {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 14px 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    cursor: pointer;
}

.radio-dot-wrap {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.radio-dot-wrap.selected .radio-dot-inner {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--file-amber);
}

.address-info {
    flex: 1;
}

.address-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.address-text {
    font-size: 13px;
    color: #4B5563;
    line-height: 1.4;
}

.address-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.icon-action-btn {
    background: none;
    border: none;
    color: var(--file-green);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

.same-billing-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 4px;
    cursor: pointer;
}

.same-billing-text {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--file-green);
}

.add-address-btn {
    background: #FFFFFF;
    border: none;
    border-radius: 10px;
    padding: 14px 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.plus-square-green {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: var(--file-green);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 500;
}

.add-address-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--file-green);
}

/* ================= CHECKOUT STEP 2: DELIVERY TIME ================= */
.time-helper-text {
    text-align: center;
    font-size: 13px;
    color: #4B5563;
    padding: 6px 20px 2px;
    line-height: 1.4;
}

.date-card {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 14px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.date-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.slots-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.slot-btn {
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    border: 1.5px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.slot-btn.full {
    background: #F3F4F6;
    color: #4B5563;
    cursor: not-allowed;
}

.slot-btn.available {
    background: var(--file-mint);
    color: #1F2937;
    font-weight: 600;
    padding: 15px 8px;
}

.slot-btn.available.selected {
    border-color: var(--file-green);
    background: #D7EFE0;
    color: var(--file-green-dark);
    font-weight: 700;
}

.slot-time {
    font-size: 13px;
    font-weight: 600;
}

.slot-status {
    font-size: 12px;
    color: #6B7280;
    margin-top: 2px;
}

/* ================= CHECKOUT STEP 3: PAYMENT ================= */
.masterpass-banner {
    background-color: var(--file-cream);
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mp-logo-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mp-circles {
    display: flex;
    align-items: center;
}

.mp-c1 {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #EB001B;
}

.mp-c2 {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #F79E1B;
    margin-left: -10px;
    opacity: 0.92;
}

.mp-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.mp-brand-main {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.mp-brand-sub {
    font-size: 8.5px;
    color: #374151;
}

.mp-desc {
    font-size: 13.5px;
    color: #1F2937;
    line-height: 1.42;
}

.payment-method-header {
    padding: 12px 14px 8px;
    font-size: 14px;
    font-weight: 700;
    color: #1F2937;
}

.payment-method-row {
    background: #FFFFFF;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.payment-method-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-form-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-input {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 14px 14px;
    font-size: 14px;
    font-family: inherit;
    color: #111827;
    outline: none;
}

.card-input:focus {
    border-color: var(--file-green);
}

.card-input::placeholder {
    color: #6B7280;
}

.card-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mp-save-card {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.green-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid var(--file-green);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
}

.green-checkbox.checked {
    background: var(--file-green);
}

.mp-save-text {
    font-size: 13px;
    color: #374151;
    line-height: 1.35;
}

.mp-save-text u {
    color: #111827;
}

/* ================= STICKY BOTTOM CTA BAR ================= */
.sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 680px;
    background: #FFFFFF;
    padding: 12px 14px 16px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
    z-index: 45;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-radius: 12px 12px 0 0;
}

.terms-row {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.terms-radio-ring {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--file-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.terms-radio-ring.checked::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--file-amber);
}

.terms-text {
    font-size: 12.5px;
    color: #1F2937;
    line-height: 1.35;
}

.btn-amber {
    width: 100%;
    background-color: var(--file-amber);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    transition: background 0.15s;
}

.btn-amber:hover {
    background-color: var(--file-amber-hover);
}

.btn-amber:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ================= BOTTOM NAVIGATION (MOBILE ONLY) ================= */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: #FFFFFF;
    border-top: 1px solid #E5E7EB;
    grid-template-columns: repeat(3, 1fr);
    z-index: 50;
}

.app-shell.hide-bottom-nav .bottom-nav {
    display: none !important;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    color: #4B5563;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    font-family: inherit;
}

.nav-item.active {
    color: var(--file-green);
    font-weight: 700;
}

.cart-badge {
    position: absolute;
    top: 6px;
    right: 26%;
    background: var(--file-amber);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 99px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.cart-badge.visible {
    display: flex;
}

/* ================= PRODUCT LISTING & CART ================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 16px 12px;
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
}

.product-card {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    position: relative;
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    color: #FFFFFF;
    z-index: 2;
}

.product-badge.deal { background: #E11D48; }
.product-badge.new { background: #F5AB00; }

.product-img-box {
    width: 100%;
    height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    overflow: hidden;
    border-radius: 8px;
    background: #FFFFFF;
    padding: 4px;
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 2px;
}

.product-unit {
    font-size: 11.5px;
    color: #6B7280;
    margin-bottom: 8px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

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

.old-price {
    font-size: 11px;
    color: #9CA3AF;
    text-decoration: line-through;
}

.current-price {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--file-green);
}

.add-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--file-green);
    color: #FFFFFF;
    border: none;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.qty-control {
    display: flex;
    align-items: center;
    background: var(--file-mint);
    border: 1px solid var(--file-green);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 26px;
    height: 28px;
    background: none;
    border: none;
    color: var(--file-green);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
}

.qty-val {
    min-width: 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--file-green-dark);
}

/* Cart & Search & Account */
.search-bar-box {
    padding: 12px;
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
}

.search-input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1px solid #D1D5DB;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.search-input:focus {
    border-color: var(--file-green);
}

.cart-list {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-item {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.cart-item img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-summary-card {
    margin: 0 12px 12px;
    background: #FFFFFF;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    color: #4B5563;
}

.summary-row.total {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    border-top: 1px solid #E5E7EB;
    padding-top: 8px;
    margin-top: 4px;
}

.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: #6B7280;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 100;
}

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

.modal-sheet {
    width: 100%;
    max-width: 430px;
    background: #FFFFFF;
    border-radius: 16px 16px 0 0;
    padding: 18px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #6B7280;
}

/* Toast */
.toast {
    position: fixed;
    top: 68px;
    left: 50%;
    transform: translateX(-50%);
    background: #111827;
    color: #FFFFFF;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.toast.show {
    opacity: 1;
}

/* ================= YENİ ADRES EKLE (HARİTA + FORM) ================= */
.map-container-wrap {
    position: relative;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    height: 215px;
    background: #E5E7EB;
    overflow: hidden;
}

#address-map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.map-locate-btn {
    position: absolute;
    right: 12px;
    bottom: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #FFFFFF;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 400;
}

.select-wrap {
    position: relative;
    width: 100%;
}

.card-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #FFFFFF;
    padding-right: 38px;
    cursor: pointer;
}

.select-chevron {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.addr-three-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.green-ring-toggle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--file-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #FFFFFF;
}

.green-ring-toggle.checked::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--file-amber);
}

/* ================= LOADING SCREEN & SMS 3D SECURE ================= */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 300;
}

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

.loading-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 28px 32px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    text-align: center;
    max-width: 300px;
    width: 85%;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--file-mint);
    border-top-color: var(--file-green);
    border-radius: 50%;
    animation: fileSpin 0.85s linear infinite;
}

@keyframes fileSpin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 14px;
    font-weight: 600;
    color: #1F2937;
    line-height: 1.4;
}

.sms-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sms-top-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sms-shield {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--file-mint);
    color: var(--file-green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sms-summary-box {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sms-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #4B5563;
}

.sms-desc {
    font-size: 13px;
    color: #4B5563;
    line-height: 1.45;
    text-align: center;
}

.sms-code-input {
    width: 100%;
    padding: 14px;
    border: 1.5px solid #D1D5DB;
    border-radius: 8px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 10px;
    text-align: center;
    color: #111827;
    outline: none;
    font-family: inherit;
}

.sms-code-input:focus {
    border-color: var(--file-green);
}

.sms-timer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: #6B7280;
}

.sms-resend-btn {
    background: none;
    border: none;
    color: var(--file-green);
    font-weight: 600;
    font-size: 12.5px;
    cursor: pointer;
    font-family: inherit;
}

.sms-cancel-btn {
    background: none;
    border: none;
    color: #6B7280;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px;
    font-family: inherit;
}

/* ================= RESPONSIVE WEBSITE & MOBILE ================= */
.checkout-steps,
.checkout-body,
.masterpass-banner,
.payment-method-header,
.payment-method-row,
.card-form-body,
.search-bar-box,
#cart-content {
    width: 100%;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.banner-slide {
    height: 250px;
}

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

@media (max-width: 768px) {
    .home-header {
        padding: 12px 12px 14px;
    }

    .brand-bar {
        justify-content: center;
    }

    .desktop-nav {
        display: none;
    }

    .bottom-nav {
        display: grid;
    }

    .view {
        padding-bottom: 72px;
    }

    .banner-slide {
        height: 190px;
    }

    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 12px;
    }

    .sticky-cta-bar {
        max-width: 100%;
        border-radius: 0;
    }
}

/* ================= PRODUCT DETAIL MODAL ================= */
.product-detail-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.product-detail-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.product-detail-modal-card {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: modalPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    0% { transform: scale(0.92) translateY(15px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

.detail-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #4b5563;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s, color 0.2s;
}

.detail-close-btn:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #111827;
}

.detail-hero-box {
    position: relative;
    width: 100%;
    height: 250px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border-bottom: 1px solid #f1f3f5;
}

.detail-hero-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.detail-hero-box .product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 2;
}

.detail-content {
    padding: 20px;
}

.detail-cat-slug {
    font-size: 12px;
    font-weight: 600;
    color: #007F38;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.detail-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.35;
    margin: 0 0 6px;
}

.detail-unit-badge {
    display: inline-block;
    font-size: 13px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 14px;
    font-weight: 500;
}

.detail-price-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    background: #f9fafb;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #edf2f7;
}

.detail-prices {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-prices .old-price {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
}

.detail-prices .current-price {
    font-size: 22px;
    font-weight: 800;
    color: #007F38;
}

.detail-price-box .discount-pill {
    background: #fee2e2;
    color: #dc2626;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
}

.detail-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 16px 0;
}

.detail-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
}

.detail-desc {
    font-size: 13.5px;
    color: #4b5563;
    line-height: 1.55;
    margin: 0;
}

.detail-trust-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 18px 0;
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 12px;
    padding: 12px 14px;
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 600;
    color: #166534;
}

.detail-footer-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.detail-qty-box {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.detail-qty-box .qty-btn {
    width: 38px;
    height: 42px;
    background: #f9fafb;
    border: none;
    font-size: 18px;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s;
}

.detail-qty-box .qty-btn:hover {
    background: #e5e7eb;
}

.detail-qty-box .qty-val {
    min-width: 36px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.btn-detail-add {
    flex: 1;
    height: 44px;
    background: #007F38;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    box-shadow: 0 4px 12px rgba(0, 127, 56, 0.25);
}

.btn-detail-add:hover {
    background: #00662d;
}

.btn-detail-add:active {
    transform: scale(0.98);
}

@media (max-width: 600px) {
    .product-detail-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .product-detail-modal-card {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
        max-width: 100%;
        max-height: 85vh;
        animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    @keyframes modalSlideUp {
        0% { transform: translateY(100%); }
        100% { transform: translateY(0); }
    }
}

