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

:root {
    --primary-blue: #0f2296;
    --primary-blue-hover: #0a176b;
    --secondary-blue: #1e30c0;
    --text-black: #1a1a1a;
    --text-grey: #666666;
    --light-grey: #f5f5f7;
    --border-color: #e5e5ea;
    --star-gold: #ffb700;
    --green-badge: #00994d;
    --pink-bg: #fef5f5;
    --purple-bg: #f7f3ff;
    --yellow-bg: #fffbf0;
    --font-primary: 'Inter', sans-serif;
    --font-title: 'Outfit', sans-serif;
    --border-radius: 12px;
    --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: var(--font-primary);
    color: var(--text-black);
    background-color: #f9f9fc;
    line-height: 1.5;
    padding-bottom: 80px; /* Space for sticky bottom bar */
}

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

/* Page Layout Container */
.app-container {
    max-width: 480px; /* Mobile focused container like PttAVM mobile app */
    margin: 0 auto;
    background-color: #ffffff;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Header Component */
header {
    background-color: #ffffff;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo img, .header-logo span {
    font-family: var(--font-title);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: -0.5px;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-grey);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-black);
    transition: background-color 0.2s ease;
}

.icon-btn:hover {
    background-color: #e5e5ea;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-grey);
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.breadcrumbs::-webkit-scrollbar {
    display: none; /* Hide scrollbar for clean breadcrumb feel */
}

.breadcrumbs a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.breadcrumbs .separator {
    color: #c7c7cc;
}

/* Product Media / Carousel */
.product-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background-color: #ffffff;
    overflow: hidden;
}

.carousel-track-container {
    height: 100%;
    width: 100%;
}

.carousel-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.3s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.media-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
}

.media-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background-color: rgba(58, 58, 60, 0.85);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Product Info */
.product-info-section {
    padding: 16px;
    background-color: #ffffff;
}

.product-title {
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-black);
    line-height: 1.4;
    margin-bottom: 8px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    margin-bottom: 16px;
}

.stars {
    display: flex;
    color: var(--star-gold);
}

.rating-text {
    color: var(--text-grey);
}

.rating-link {
    color: var(--secondary-blue);
    font-weight: 600;
    cursor: pointer;
}

/* Promotional Banners */
.promo-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: var(--border-radius);
    margin-bottom: 12px;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.promo-banner:active {
    transform: scale(0.99);
}

.promo-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-black);
}

.promo-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.promo-banner.kartsiz-taksit {
    background-color: var(--pink-bg);
}

.promo-banner.taksit-avantaji {
    background-color: var(--purple-bg);
}

.promo-banner.ayni-gun {
    background-color: var(--yellow-bg);
}

.double-banners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.double-banners .promo-banner {
    margin-bottom: 0;
    padding: 12px;
}

/* Seller Box */
.seller-box {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.seller-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.seller-label {
    font-size: 13px;
    color: var(--text-grey);
}

.seller-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary-blue);
}

.seller-rating-badge {
    background-color: var(--green-badge);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    display: inline-block;
}

.seller-btn {
    background-color: #ffffff;
    border: 1px solid var(--text-grey);
    color: var(--text-black);
    font-size: 12px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.seller-btn:hover {
    background-color: var(--light-grey);
}

/* Shipping Banner */
.shipping-banner {
    background-color: #f1f8f3;
    border-radius: var(--border-radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.shipping-img-container {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shipping-text-container {
    display: flex;
    flex-direction: column;
}

.shipping-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--green-badge);
}

.shipping-desc {
    font-size: 11px;
    color: var(--text-grey);
}

/* PttAVM Garanti */
.garanti-box {
    background-color: #f6f6fc;
    border-radius: var(--border-radius);
    padding: 16px;
    margin-bottom: 20px;
}

.garanti-title {
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-black);
}

.garanti-items {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.garanti-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.garanti-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-blue);
    box-shadow: var(--shadow-subtle);
}

.garanti-text {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-grey);
    line-height: 1.2;
}

/* Accordions */
.accordion {
    border-bottom: 1px solid var(--border-color);
    background-color: #ffffff;
}

.accordion-header {
    width: 100%;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-black);
}

.accordion-arrow {
    color: var(--secondary-blue);
    transition: transform 0.2s ease;
}

.accordion.active .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 16px;
}

.accordion.active .accordion-content {
    max-height: 1000px; /* Safe upper limit for expansion */
    padding-bottom: 16px;
}

.accordion-inner-text {
    font-size: 13px;
    color: var(--text-grey);
    line-height: 1.6;
}

/* Special styling for Description Accordion */
.description-content {
    position: relative;
}

.description-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, #ffffff);
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.description-content.expanded .description-gradient {
    opacity: 0;
}

.view-all-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    background-color: #ffffff;
    border: 1px solid var(--secondary-blue);
    color: var(--secondary-blue);
    font-size: 12px;
    font-weight: 600;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-all-btn:hover {
    background-color: var(--purple-bg);
}

/* Similar Products */
.similar-section {
    padding: 20px 16px;
    background-color: #f9f9fc;
}

.section-title {
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-black);
}

.similar-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.similar-list::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.similar-card {
    flex: 0 0 180px;
    scroll-snap-align: start;
    background-color: #ffffff;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-favorite-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #ffffff;
    border: none;
    box-shadow: var(--shadow-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.card-img-container {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.card-img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-black);
    line-height: 1.3;
    height: 32px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    margin-bottom: 6px;
    color: var(--text-grey);
}

.card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.card-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-black);
}

.card-cart-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid var(--secondary-blue);
    color: var(--secondary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.card-cart-btn:hover {
    background-color: var(--secondary-blue);
    color: #ffffff;
}

/* Footer Section */
footer {
    background-color: #eaf1fa;
    padding: 30px 16px;
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 12px;
}

.footer-column-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links li {
    font-size: 11px;
    color: var(--text-grey);
}

/* Sticky Bottom Action Bar */
.sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
    z-index: 99;
}

.sticky-price-container {
    display: flex;
    flex-direction: column;
}

.sticky-price {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-black);
}

.sticky-buy-btn {
    background-color: var(--secondary-blue);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sticky-buy-btn:hover {
    background-color: var(--primary-blue);
}

/* Admin Dashboard Styling */
.admin-container {
    max-width: 1200px;
    margin: 30px auto;
    background-color: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    display: flex;
    min-height: 80vh;
    overflow: hidden;
}

.admin-sidebar {
    width: 240px;
    background-color: #1c1c1e;
    color: #ffffff;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-brand {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #2c2c2e;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-nav-item {
    background: none;
    border: none;
    color: #aeaeae;
    text-align: left;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-nav-item:hover, .admin-nav-item.active {
    background-color: #2c2c2e;
    color: #ffffff;
}

.admin-content {
    flex: 1;
    padding: 24px;
    background-color: #f4f4f7;
    overflow-y: auto;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.admin-title {
    font-family: var(--font-title);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-black);
}

.admin-btn {
    background-color: var(--secondary-blue);
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.admin-btn:hover {
    background-color: var(--primary-blue);
}

.admin-btn.btn-secondary {
    background-color: #ffffff;
    color: var(--text-black);
    border: 1px solid var(--border-color);
}

.admin-btn.btn-secondary:hover {
    background-color: var(--light-grey);
}

.admin-btn.btn-danger {
    background-color: #ff3b30;
}

.admin-btn.btn-danger:hover {
    background-color: #d82c22;
}

/* Admin Tables */
.admin-card {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-subtle);
    padding: 16px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.admin-table th, .admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    font-weight: 600;
    color: var(--text-grey);
    background-color: var(--light-grey);
}

.admin-table tr:hover {
    background-color: #fafafc;
}

.thumbnail-cell img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.badge-active {
    background-color: #e3f2fd;
    color: #0d47a1;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.badge-inactive {
    background-color: #eaeaea;
    color: #555555;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Forms styling in Admin */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-grey);
}

.form-group input, .form-group textarea, .form-group select {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-family: var(--font-primary);
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--secondary-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Image preview section */
.image-uploader {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    background-color: var(--light-grey);
    transition: all 0.2s ease;
}

.image-uploader:hover {
    border-color: var(--secondary-blue);
    background-color: #ffffff;
}

.preview-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.preview-thumb {
    position: relative;
    width: 60px;
    height: 60px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.preview-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: rgba(255, 59, 48, 0.9);
    color: #ffffff;
    border: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Floating Scroll to Top button */
.scroll-to-top {
    position: fixed;
    bottom: 90px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-grey);
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-subtle);
    cursor: pointer;
    z-index: 98;
    transition: all 0.2s ease;
}

.scroll-to-top:hover {
    color: var(--secondary-blue);
    background-color: var(--purple-bg);
}

.scroll-to-top.visible {
    display: flex;
}

/* ==========================================
   PHASE 2: CART & CHECKOUT STYLES
   ========================================== */

/* Bottom Navigation Bar (Footer Navigation) */
.bottom-nav-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 8px 0;
    z-index: 99;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.03);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: var(--text-black);
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.nav-item svg {
    color: #8e8e93;
    transition: color 0.2s ease;
}

.nav-item.active {
    color: var(--secondary-blue);
}

.nav-item.active svg {
    color: var(--secondary-blue);
}

/* Special styling for active cart icon in screenshot */
.nav-item.active-cart {
    color: var(--secondary-blue);
}

.nav-item.active-cart .icon-wrapper {
    background-color: #e6e8ff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -12px;
    box-shadow: 0 4px 8px rgba(30, 48, 192, 0.15);
}

.nav-item.active-cart svg {
    color: var(--secondary-blue);
}

/* Coupon Box */
.coupon-container {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
    margin-bottom: 8px;
}

.coupon-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-black);
    cursor: pointer;
}

.coupon-trigger svg {
    color: var(--text-grey);
}

/* Cart Item Group */
.cart-group {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
    margin-bottom: 12px;
}

.cart-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--light-grey);
    margin-bottom: 12px;
}

.cart-group-seller {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
}

.seller-link-arrow {
    color: var(--text-grey);
    margin-left: 2px;
}

.cart-item-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    background-color: #ffffff;
    flex-shrink: 0;
}

.cart-item-checkbox.checked {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
    color: #ffffff;
}

.cart-item-checkbox svg {
    display: none;
    width: 14px;
    height: 14px;
}

.cart-item-checkbox.checked svg {
    display: block;
}

/* Cart Product Card */
.cart-product-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 16px;
}

.cart-product-thumb {
    width: 72px;
    height: 72px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    flex-shrink: 0;
}

.cart-product-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-product-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-black);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-product-shipping {
    font-size: 11px;
    color: var(--text-grey);
}

.cart-product-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.cart-product-price {
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-black);
}

/* Quantity Picker */
.quantity-picker {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2px 6px;
    background-color: #ffffff;
    gap: 12px;
}

.quantity-btn {
    background: none;
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--secondary-blue);
    font-size: 16px;
    font-weight: 600;
}

.quantity-btn.disabled {
    color: #c7c7cc;
    cursor: not-allowed;
}

.quantity-value {
    font-size: 13px;
    font-weight: 600;
    width: 16px;
    text-align: center;
}

/* Cart Actions bar (Tümünü Seç / Seçilenleri Sil) */
.cart-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

.select-all-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.delete-selected-btn {
    color: var(--text-black);
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
}

/* Empty Cart State */
.empty-cart-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    gap: 16px;
    background-color: #ffffff;
}

.empty-cart-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--light-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aeaeae;
}

.empty-cart-title {
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 700;
}

.empty-cart-text {
    font-size: 13px;
    color: var(--text-grey);
    max-width: 240px;
}

/* Checkout Page Styles */
.checkout-header {
    background-color: #ffffff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.checkout-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-title);
    font-size: 17px;
    font-weight: 700;
}

.back-arrow-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-black);
    display: flex;
    align-items: center;
}

.ssl-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    color: #4a4a4a;
    font-weight: 600;
}

.ssl-badge-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #007aff;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

/* Checkout Summary Section */
.checkout-summary-bar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 14px 16px;
    margin-bottom: 8px;
}

.summary-toggle {
    width: 100%;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.summary-items-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.summary-toggle.active + .summary-items-list {
    max-height: 500px;
    padding-top: 12px;
}

.summary-product-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid var(--light-grey);
}

.summary-product-thumb {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.summary-product-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.summary-product-title {
    flex: 1;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.summary-product-price {
    font-size: 12px;
    font-weight: 700;
}

/* Warning Banner (e.g. Kapıda ödeme uyarısı) */
.warning-banner {
    background-color: #fff8e1;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 8px 16px;
    font-size: 11px;
    color: #b78103;
    line-height: 1.4;
    font-weight: 500;
}

/* Delivery / Payment Cards */
.checkout-card {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin: 0 16px 12px 16px;
    overflow: hidden;
}

.checkout-card-header {
    padding: 14px 16px;
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
}

.checkout-card-body {
    padding: 16px;
}

/* Radio Option Styling */
.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    position: relative;
    padding: 12px 0;
}

.radio-option:not(:last-child) {
    border-bottom: 1px solid var(--light-grey);
}

.radio-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    transition: border-color 0.15s ease;
}

.radio-circle::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--secondary-blue);
    display: none;
}

.radio-option.selected .radio-circle {
    border-color: var(--secondary-blue);
}

.radio-option.selected .radio-circle::after {
    display: block;
}

.radio-label-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.radio-title {
    font-size: 13px;
    font-weight: 700;
}

/* Address details body */
.address-sub-card {
    background-color: #f7f9fc;
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.address-details-text {
    font-size: 12px;
    color: var(--text-black);
    line-height: 1.4;
}

.no-address-box {
    background-color: #f7f9fc;
    border-radius: 8px;
    padding: 16px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.no-address-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-grey);
    font-weight: 500;
}

.add-address-btn {
    background-color: var(--secondary-blue);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.add-address-btn:hover {
    background-color: var(--primary-blue);
}

/* Payment Tabs inside accordion / card */
.payment-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 12px;
}

.payment-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-grey);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.payment-tab.active {
    color: var(--secondary-blue);
}

.payment-tab.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-blue);
}

.payment-tab-content {
    display: none;
}

.payment-tab-content.active {
    display: block;
}

.bank-instruction {
    font-size: 11px;
    color: var(--text-grey);
    line-height: 1.4;
    margin-bottom: 12px;
}

/* Bank Grid */
.bank-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.bank-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #4a4a4a;
    background-color: #ffffff;
    cursor: pointer;
    height: 48px;
    text-align: center;
    transition: all 0.2s ease;
}

.bank-item:hover, .bank-item.selected {
    border-color: var(--secondary-blue);
    background-color: var(--purple-bg);
    color: var(--secondary-blue);
}

.other-banks-link {
    display: block;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--secondary-blue);
    margin-top: 12px;
}

/* Bottom Agreement bar */
.agreement-container {
    padding: 16px;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 11px;
    color: var(--text-black);
    line-height: 1.4;
    margin-bottom: 80px; /* space for bottom bar */
}

.agreement-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    background-color: #ffffff;
}

.agreement-checkbox.checked {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
    color: #ffffff;
}

.agreement-checkbox svg {
    display: none;
    width: 12px;
    height: 12px;
}

.agreement-checkbox.checked svg {
    display: block;
}

/* Modals (Adres Ekle) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

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

.modal-content {
    width: 100%;
    max-width: 480px;
    background-color: #ffffff;
    border-radius: 20px 20px 0 0;
    padding: 20px 16px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 700;
}

.modal-close-btn {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--light-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-grey);
}

/* Badge for Form labels */
.required-star {
    color: #ff3b30;
    margin-left: 2px;
}

