@import "font/gilroy.css";
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, Gilroy, "Segoe UI", Roboto, sans-serif;
    background-color: #f9fafb;
    color: #111827;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 448px;
    width: 800px;
    margin: 0 auto;
    background-color: white;
}

.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    padding: 16px;
    background: #fff; /* arka plan şart, yoksa içerik görünüyor */
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.header.hide {
    transform: translateY(-100%);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 16px;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #6b7280;
}

/* Using solid dark background instead of gradient for better contrast */
.banner {
    flex: 1;
    background-color: #f1007d !important;
    color: white !important;
    padding: 4px 16px;
    border-radius: 8px;
    text-align: center;
    margin-left: 10px;
}

.banner span {
    font-size: 14px;
    font-weight: bold;
    color: white !important;
}

.page-title h1 {
    font-size: 17px;
    font-weight: bold;
    color: #111827;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    color: #6b7280;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #f1007d;
    color: white;
    font-size: 12px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Main Content */
.main-content {
    display: flex;
    width: 100%;
    flex: 1;
}

/* Sidebar */
.sidebar {
    width: 80px;
    background-color: white;
    border-right: 1px solid #e5e7eb;
    padding: 10px 0;
    height: 100%;
    position: fixed;
    z-index: 1;
    top: 7%;
}

.categories {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-item {
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    margin: 0 8px;
    background-color: #f9fafb;
    transition: all 0.2s;
}

.category-item:hover {
    background-color: #f3f4f6;
}

.category-item.active {
    background-color: #eff6ff;
    border: 1px solid #dbeafe;
}

.category-icon {
    margin: 0 auto 4px;
    border-radius: 4px;
    overflow: hidden;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-item span {
    font-size: 12px;
    line-height: 1.2;
    color: #6b7280;
    display: block;
}

.category-item.active span {
    color: #2563eb;
}

/* Content Area */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 1px;
}



/* Using solid dark backgrounds instead of gradients for better contrast */
.gradient-purple {
    background-color: #7c3aed !important;
}

.gradient-blue {
    background-color: #2563eb !important;
}

.gradient-green {
    background-color: #059669 !important;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-text h2 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
    color: white !important;
}

.hero-text p {
    font-size: 14px;
    color: white !important;
}

.hero-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(255, 255, 255, 0.25) !important;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Products Section */
.products-section {
    padding: 10px;
}

.section-header {
    border-radius: 8px;
    margin-bottom: 16px;
}

.section-header.red {

    color: white !important;
}

.section-header.blue {
    background-color: #2563eb !important;
    color: white !important;
}

.section-header.green {
    background-color: #10b981 !important;
    color: white !important;
}

.section-header h3 {
    color: #00246b;
    font-size: 18px;
    letter-spacing: -.04rem;
    font-weight: 700;
    display: inline;
    border-bottom: 3px solid currentColor;
}

.products-swiper .swiper-slide {
    width: auto;
}

.product-card {
    text-align: center;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 2px;
    width: 140px;
    display: flex;
    height: 284px;
    flex-flow: column;
}

.product-image {
    aspect-ratio: 1;
    background-color: #f9fafb;
    border-radius: 8px;
    overflow: hidden;
    height: 207px;
}

.product-image img {
    width: 100%;
    height: 200px;
    object-fit: fill;
}

.product-name {
    font-size: 12px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.hero-section .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-section .swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Eğer kırpma istiyorsan cover, tamamen sığdırmak istiyorsan contain */
    border-radius: 8px; /* isteğe bağlı */
}

.product-price {
    font-size: 13px;
    font-weight: bold;
    color: #111827;
}

/* Category Page */
.category-products {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-product-card {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.category-product-content {
    display: flex;
    gap: 16px;
}

.category-product-image {
    width: 80px;
    height: 80px;
    background-color: #f9fafb;
    border-radius: 8px;
    flex-shrink: 0;
    overflow: hidden;
}

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

.category-product-info {
    flex: 1;
}

.category-product-name {
    font-weight: 500;
    color: #111827;
    margin-bottom: 4px;
}

.category-product-description {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
    line-height: 1.4;
}

.category-product-price {
    font-size: 18px;
    font-weight: bold;
    color: #111827;
    margin-bottom: 12px;
}

.add-to-cart-btn {
    width: 100%;
    background-color: #10b981;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.add-to-cart-btn:hover {
    background-color: #059669;
}

/* Cart Page */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.cart-item {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.cart-item-content {
    display: flex;
    gap: 16px;
    align-items: center;
}

.cart-item-image {
    width: 64px;
    height: 64px;
    background-color: #f9fafb;
    border-radius: 8px;
    flex-shrink: 0;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

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

.cart-item-name {
    font-weight: 500;
    color: #111827;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 18px;
    font-weight: bold;
    color: #111827;
}

.cart-total {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-row span:first-child {
    font-size: 18px;
    font-weight: bold;
}

.total-price {
    font-size: 20px;
    font-weight: bold;
    color: #10b981;
}

.back-btn {
    width: 100%;
    background-color: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 24px;
    transition: all 0.2s;
}

.back-btn:hover {
    background-color: #f9fafb;
}

.empty-message {
    text-align: center;
    padding: 32px 0;
    color: #6b7280;
}

.remove-btn {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.remove-btn:hover {
    background-color: #fee2e2;
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: white;
}

/* Responsive */
@media (max-width: 480px) {
    .app-container {
        max-width: 100%;
    }

    .sidebar {
        width: 70px;
        top: 15%;
    }

    .category-item span {
        font-size: 10px;
    }
}

/* Category Banner Styles */
.category-banner {
    margin-bottom: 24px;
}

/* Using solid dark backgrounds for category banners instead of gradients */
.banner-content {
    padding: 24px;
    color: white !important;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 120px;
}

.banner-content.gradient-purple {
    background-color: #7c3aed !important;
}

.banner-content.gradient-blue {
    background-color: #2563eb !important;
}

.banner-content.gradient-green {
    background-color: #059669 !important;
}

.banner-text h2 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
    color: white !important;
}

.banner-text p {
    font-size: 14px;
    color: white !important;
}

.banner-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(255, 255, 255, 0.25) !important;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.banner-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}
