/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #f8fafc;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.5;
}

/* ============================================
   HEADER
   ============================================ */
.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 640px) {
    .header-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
@media (min-width: 1024px) {
    .header-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    gap: 0.75rem;
}
@media (min-width: 768px) {
    .header-top {
        height: 64px;
        gap: 1rem;
    }
}

/* Logo */
.logo-placeholder {
    width: 110px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
}
.logo-placeholder img {
    max-height: 36px;
    width: auto;
    object-fit: contain;
}
@media (max-width: 640px) {
    .logo-placeholder {
        width: 80px;
        height: 30px;
    }
    .logo-placeholder img {
        max-height: 30px;
    }
}

/* Search */
.search-bar {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 9999px;
    overflow: hidden;
    border: 1.5px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
    flex: 1;
    max-width: 600px;
}
.search-bar:focus-within {
    border-color: #008081;
    box-shadow: 0 0 0 3px rgba(0, 128, 129, 0.15);
}
.search-bar input {
    width: 100%;
    background: transparent;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    outline: none;
    border: none;
    min-width: 0;
}
.search-bar button {
    background: #008081;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}
.search-bar button:hover {
    background: #006b6b;
}
.search-bar svg {
    width: 18px;
    height: 18px;
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
@media (min-width: 640px) {
    .header-icons {
        gap: 0.5rem;
    }
}

.location-wrapper {
    display: none;
    align-items: center;
    gap: 0.25rem;
    color: #374151;
    cursor: pointer;
    font-size: 0.75rem;
}
.location-wrapper:hover {
    color: #008081;
}
@media (min-width: 640px) {
    .location-wrapper {
        display: flex;
    }
}
.location-wrapper svg {
    width: 16px;
    height: 16px;
}
.location-text {
    display: none;
}
@media (min-width: 1024px) {
    .location-text {
        display: inline;
    }
}

.header-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition: background 0.15s;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}
.header-icon:hover {
    background: #f1f5f9;
}
.header-icon svg {
    width: 18px;
    height: 18px;
    stroke: #374151;
}
.header-icon .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    color: white;
    font-size: 9px;
    width: 17px;
    height: 17px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}
.badge-red {
    background: #ef4444;
}
.badge-teal {
    background: #008081;
}

/* Category Nav */
.category-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 0.25rem;
}
.category-nav button {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s;
    flex-shrink: 0;
}
.category-nav .cat-default {
    background: #f1f5f9;
    color: #374151;
}
.category-nav .cat-default:hover {
    background: #e5e7eb;
}
.category-nav .cat-colored {
    color: white;
}
.category-nav .cat-colored:hover {
    opacity: 0.85;
}

/* Category Colors */
.cat-pazar {
    background-color: #00C853;
}
.cat-bakkal {
    background-color: #8E24AA;
}
.cat-taam {
    background-color: #FF1744;
}
.cat-ziraat {
    background-color: #FFC107;
}
.cat-zannat {
    background-color: #8D6E63;
}
.cat-eczahane {
    background-color: #29B6F6;
}
.cat-sevk {
    background-color: #1565C0;
}
.cat-ticaret {
    background-color: #212121;
}

/* ============================================
   MAIN LAYOUT
   ============================================ */
.main-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    background: #f8fafc;
}
.main-container {
    width: 100%;
    max-width: 1280px;
    padding: 1.25rem 1rem;
}
@media (min-width: 640px) {
    .main-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
@media (min-width: 1024px) {
    .main-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* ============================================
   HERO
   ============================================ */
.hero-section {
    background: linear-gradient(to right, #008081, #006060);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    margin-bottom: 2.5rem;
}
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    color: white;
}
@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        padding: 2rem 3rem;
    }
}
.hero-text {
    max-width: 36rem;
    text-align: center;
}
@media (min-width: 768px) {
    .hero-text {
        text-align: left;
    }
}
.hero-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}
@media (min-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
}
.hero-text p {
    font-size: 1rem;
    color: #ccfbf1;
    margin-top: 0.5rem;
}
@media (min-width: 768px) {
    .hero-text p {
        font-size: 1.125rem;
    }
}
.hero-btn {
    background: white;
    color: #008081;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    border: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 0.75rem;
}
.hero-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}
.hero-image {
    display: none;
}
@media (min-width: 768px) {
    .hero-image {
        display: block;
    }
}
.hero-image img {
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-height: 12rem;
    object-fit: cover;
}

/* ============================================
   FEATURES
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.feature-card {
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid #f3f4f6;
}
.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    background: rgba(0, 128, 129, 0.08);
    color: #008081;
    flex-shrink: 0;
    font-size: 1.125rem;
}
.feature-title {
    font-weight: 600;
    font-size: 0.875rem;
}
.feature-desc {
    font-size: 0.75rem;
    color: #6b7280;
}

/* ============================================
   SECTION WRAPPER
   ============================================ */
.section-wrapper {
    margin-bottom: 2.5rem;
}
.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.section-title .dot {
    color: #008081;
    font-size: 1.5rem;
}
.section-title h2 {
    font-size: 1.25rem;
    font-weight: 700;
}
@media (min-width: 768px) {
    .section-title h2 {
        font-size: 1.5rem;
    }
}

/* ============================================
   CATEGORY GRID
   ============================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}
.category-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #f3f4f6;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: default;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -12px rgba(0, 0, 0, 0.15);
}
.category-card .cat-inner {
    padding: 0.625rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.category-card .cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}
.category-card .cat-name {
    font-weight: 600;
    font-size: 0.75rem;
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background: white;
    border-radius: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: transform 0.15s, box-shadow 0.15s;
}
.product-card:hover {
    transform: scale(1.01);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.12);
}
.product-card .product-image {
    position: relative;
}
.product-card .product-image img {
    width: 100%;
    height: 128px;
    object-fit: cover;
    border-radius: 0.5rem;
}
.product-card .product-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.625rem;
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    font-weight: 500;
    color: white;
}
.bg-red {
    background: #ef4444;
}
.bg-green {
    background: #22c55e;
}
.bg-blue {
    background: #3b82f6;
}
.product-card .product-title {
    font-weight: 600;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-card .product-seller {
    font-size: 0.625rem;
    color: #6b7280;
}
.product-card .product-rating {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    color: #facc15;
    font-size: 0.625rem;
}
.product-card .product-rating span {
    color: #9ca3af;
    font-size: 0.5625rem;
}
.product-card .product-price {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
    margin-top: 0.125rem;
}
.product-card .product-price .current {
    font-weight: 700;
    color: #008081;
    font-size: 0.875rem;
}
.product-card .product-price .old {
    font-size: 0.625rem;
    text-decoration: line-through;
    color: #9ca3af;
}
.product-card .product-price .discount {
    font-size: 0.625rem;
    color: #ef4444;
    font-weight: 500;
}
.product-card .product-actions {
    display: flex;
    gap: 0.375rem;
    margin-top: 0.375rem;
}
.product-card .product-actions .add-btn {
    background: #008081;
    color: white;
    font-size: 0.625rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    border: none;
    flex: 1;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}
.product-card .product-actions .add-btn:hover {
    background: #006b6b;
}
.product-card .product-actions .wish-btn {
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    padding: 0.25rem;
    background: transparent;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s;
    font-size: 0.75rem;
}
.product-card .product-actions .wish-btn:hover {
    color: #ef4444;
}

/* ============================================
   FLASH DEALS
   ============================================ */
.flash-deals {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    margin-bottom: 2.5rem;
}
.flash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.flash-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.flash-title span:first-child {
    font-size: 1.25rem;
}
.flash-title h3 {
    font-size: 1.125rem;
    font-weight: 700;
}
.flash-timer {
    background: #1e293b;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
}
.flash-link {
    color: #008081;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
}
.flash-link:hover {
    text-decoration: underline;
}
.flash-carousel {
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    padding: 0.75rem 0;
}
.flash-carousel .flash-item {
    min-width: 140px;
    background: #f9fafb;
    padding: 0.625rem;
    border-radius: 0.75rem;
    flex-shrink: 0;
}
.flash-carousel .flash-item img {
    height: 80px;
    width: 100%;
    object-fit: cover;
    border-radius: 0.375rem;
}
.flash-carousel .flash-item .item-name {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.25rem;
}
.flash-carousel .flash-item .item-price {
    color: #008081;
    font-weight: 700;
    font-size: 0.875rem;
}

/* ============================================
   SELLER SECTION
   ============================================ */
.seller-section {
    background: linear-gradient(to bottom right, #008081, #004d4d);
    border-radius: 1rem;
    padding: 1.5rem;
    color: white;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin-bottom: 2.5rem;
}
.seller-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
}
.seller-section p {
    color: #ccfbf1;
    margin-top: 0.25rem;
    font-size: 1rem;
}
.seller-btn {
    background: white;
    color: #008081;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    border: none;
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}
.seller-btn:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
}

/* ============================================
   APP SECTION
   ============================================ */
.app-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}
.app-title {
    font-weight: 700;
    font-size: 1rem;
}
.app-buttons {
    display: flex;
    gap: 0.5rem;
}
.app-btn {
    background: black;
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 0.75rem;
    border: none;
    font-size: 0.75rem;
    cursor: pointer;
}
@media (min-width: 640px) {
    .app-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem 0 1rem;
    margin-top: 1rem;
}
.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .footer-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
@media (min-width: 768px) {
    .footer-container {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 1024px) {
    .footer-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}
.footer-brand {
    font-weight: 700;
    color: #008081;
    font-size: 0.875rem;
}
.footer-heading {
    font-weight: 700;
    font-size: 0.875rem;
}
.footer-links {
    list-style: none;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.footer-links li {
    color: #4b5563;
    font-size: 0.75rem;
    cursor: pointer;
}
.footer-links li:hover {
    color: #008081;
}
.social-icons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 1.25rem;
}
.footer-bottom {
    text-align: center;
    color: #9ca3af;
    font-size: 0.625rem;
    border-top: 1px solid #f3f4f6;
    margin-top: 1rem;
    padding-top: 0.75rem;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ============================================
   SCROLLBAR HIDE
   ============================================ */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}