/* =========================================
   1. GENEL AYARLAR & TEMA
   ========================================= */
:root {
    --brand-color: #06b6d4;
    /* Cyan-500 */
    --brand-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --brand-dark: #0891b2;
    --text-main: #0f172a;
    --text-secondary: #64748b;
    --text-light: #f8fafc;
    --bg-body: #f8fafc;
    /* Daha temiz bir beyaz/gri */
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-color: #e2e8f0;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --max-width: 1200px;
    --transition-speed: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: 'Outfit', sans-serif;
}

[data-theme="dark"] {
    --brand-color: #22d3ee;
    --brand-gradient: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
    --text-main: #f8fafc;
    --text-secondary: #94a3b8;
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-glass: rgba(30, 41, 59, 0.85);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --border-color: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-y: scroll;
    /* Scrollbar hep açık kalsın (Layout Shift önlemi) */
}

body {
    font-family: var(--font-primary);
    color: var(--text-main);
    background-color: var(--bg-body);
    transition: background-color var(--transition-speed), color var(--transition-speed);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* =========================================
   CRITICAL FIXES (Moved to Top)
   ========================================= */
/* SEPET (CART) */
.cart-grid,
.cart-items-box {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

/* FALLBACK: If user has old HTML where cart-items-box was just a div */
.cart-items-box table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.cart-items-box th,
.cart-items-box td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

/* UNIVERSAL FALLBACK (Class bağımsız stil) */
/* Sol Kolon (Tablo Alanı) */
.cart-grid>div:first-child,
.cart-items-box>table,
.cart-items-box>div:first-child {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

/* Sağ Kolon (Özet Alanı) */
.cart-grid>div:last-child,
.cart-items-box>div:last-child {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 100px;
}

/* Özet Alanındaki Butonlar (Herhangi bir buton) */
.cart-grid>div:last-child button,
.cart-items-box>div:last-child button {
    width: 100%;
    margin-top: 15px;
    padding: 16px;
    background: var(--brand-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

/* İkinci buton (Temizle butonu) genellikle alttadır */
.cart-grid>div:last-child button:last-child,
.cart-items-box>div:last-child button:last-child {
    background: transparent;
    color: var(--text-secondary);
    box-shadow: none;
    border: 1px solid var(--border-color);
}

/* Explicit new wrapper style */
.cart-table-wrapper {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

/* Explicit new wrapper style */
/* UNIVERSAL FALLBACK (Class bağımsız stil - Favoriler) */
#favoritesGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}

@media (max-width: 768px) {
    #favoritesGrid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
}

.order-summary {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 100px;
}

.order-summary h3 {
    margin-bottom: 25px;
    font-size: 1.3rem;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.summary-row.total {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px dashed var(--border-color);
    font-weight: 800;
    color: var(--text-main);
    font-size: 1.2rem;
    align-items: center;
}

.summary-row.total span:last-child {
    color: var(--brand-color);
    font-size: 1.5rem;
}

.coupon-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.coupon-group input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-body);
    font-size: 0.9rem;
}

.checkout-btn {
    width: 100%;
    margin-top: 25px;
    padding: 16px;
    background: var(--brand-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.checkout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

.clear-cart-btn {
    width: 100%;
    margin-top: 15px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    text-decoration: underline;
}

.clear-cart-btn:hover {
    color: #ef4444;
}

/* FAVORITES & MODAL */
.product-modal-content {
    max-width: 900px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
}

.pm-image {
    background: #f1f5f9;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-image img {
    max-height: 400px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

[data-theme="dark"] .pm-image img {
    mix-blend-mode: normal;
}

.pm-details {
    padding: 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.pm-details h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

@media (max-width: 992px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .product-modal-grid {
        grid-template-columns: 1fr;
    }

    .pm-image {
        height: 250px;
    }

    .pm-details {
        padding: 20px;
    }
}

/* END CRITICAL FIXES */





/* =========================================
   2. HEADER & NAV
   ========================================= */
header {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 20px;
    width: 100%;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--brand-color);
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    /* Tamamen bitişik */
    letter-spacing: -0.5px;
    text-decoration: none;
    white-space: nowrap;
}

.logo img {
    height: 32px;
    margin-right: -5px;
    /* Boşluk tamamen kapatıldı + negatif margin */
    display: block;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-menu a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--brand-color);
    transition: width 0.3s;
    border-radius: 2px;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--brand-color);
}

.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 1.1rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: 0.3s;
}

.theme-toggle-btn:hover {
    background: var(--bg-card);
    transform: rotate(15deg);
    border-color: var(--brand-color);
}

.burger {
    display: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-main);
    margin-left: 5px;
}

/* =========================================
   3. BUTONLAR
   ========================================= */
.btn,
.btn-fill,
.btn-outline {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 22px;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.btn-fill,
.btn {
    background: var(--brand-gradient);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.25);
}

.btn:hover,
.btn-fill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(6, 182, 212, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--brand-color);
    color: var(--brand-color);
}

.btn-outline:hover {
    background: var(--brand-color);
    color: #fff;
}

/* =========================================
   4. LAYOUT & CARDS
   ========================================= */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    height: 55vh;
    min-height: 400px;
    /* Biraz küçültüldü */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-bottom: 20px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 700px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.95;
    font-weight: 300;
}

.content-section {
    display: flex;
    align-items: center;
    padding: 60px 20px;
    max-width: var(--max-width);
    margin: 0 auto;
    gap: 50px;
}

.content-section.reverse {
    flex-direction: row-reverse;
}

.content-text {
    flex: 1;
}

.content-text h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.content-text p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.content-img {
    flex: 1;
    display: flex;
    justify-content: center;
}

.content-img img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s;
    max-width: 90%;
}

.content-img img:hover {
    transform: scale(1.02);
}

.product-grid-wrapper {
    display: grid;
    /* auto-fit yerine auto-fill kullanıyoruz ki tek ürün kalınca tüm satıra yayılmasın */
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.pro-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    position: relative;
    height: 100%;
    /* Kartın aşırı büyümesini engellemek için */
    max-width: 450px;
    width: 100%;
}

.pro-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-color);
}

.pro-img-box {
    position: relative;
    width: 100%;
    /* Fixed height removed, using aspect-ratio */
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #fff;
    padding: 0;
    /* Zero padding to maximize image size */
    display: flex;
    align-items: center;
    justify-content: center;
}

.pro-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fills the box, removes whitespace */
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    /* mix-blend-mode removed for cleaner look */
}

.pro-card:hover .pro-img-box img {
    transform: scale(1.05);
}

.fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: transform 0.2s;
}

.fav-btn:hover {
    transform: scale(1.1);
    color: red;
}

.pro-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pro-info h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em;
    /* Fixed height for alignment */
}

.pro-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: auto;
    /* Push buttons down */
}

.rating {
    color: #f59e0b;
    font-size: 0.9rem;
    font-weight: 700;
}

.price {
    color: var(--brand-color);
    font-weight: 800;
    font-size: 1.3rem;
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    font-size: 0.7rem;
    border-radius: 20px;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 2;
    letter-spacing: 0.5px;
}

.badge.popular {
    background: linear-gradient(45deg, #f59e0b, #fbbf24);
}

.badge.new {
    background: linear-gradient(45deg, #10b981, #34d399);
}

.badge.sale {
    background: linear-gradient(45deg, #ef4444, #f87171);
}

/* =========================================
   5. FORM & FILTERS & SORT
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    padding: 60px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea,
#searchInput {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-main);
    font-family: inherit;
    transition: 0.3s;
    font-size: 0.95rem;
}

.form-group input:focus,
#searchInput:focus {
    outline: none;
    border-color: var(--brand-color);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.filter-section {
    padding: 30px 0;
    text-align: center;
    margin-bottom: 20px;
}

.search-box-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto 20px;
    width: 90%;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 14px;
    font-size: 1.1rem;
    opacity: 0.5;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.category-filters button {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    cursor: pointer;
    border-radius: 50px;
    color: var(--text-secondary);
    font-weight: 600;
    transition: 0.3s;
}

.category-filters button:hover {
    background: var(--bg-body);
    border-color: var(--brand-color);
}

.category-filters button.active {
    background: var(--brand-color);
    color: white;
    border-color: var(--brand-color);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

/* AUTOCOMPLETE */
.search-box-wrapper {
    position: relative;
    /* Ensure relative positioning for absolute dropdown */
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
}

.autocomplete-list li {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    transition: 0.2s;
    color: var(--text-main);
}

.autocomplete-list li:last-child {
    border-bottom: none;
}

.autocomplete-list li:hover {
    background: var(--bg-body);
    color: var(--brand-color);
}

/* =========================================
   6. MODALS & CHECKOUT & CART
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    max-width: 550px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
}

.close-btn:hover {
    background: #ef4444;
    color: white;
}

/* SEPET */
.cart-table-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}

.cart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.cart-table th {
    padding: 15px;
    color: var(--text-secondary);
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.cart-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.cart-table tr:last-child td {
    border-bottom: none;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-body);
    padding: 4px 8px;
    border-radius: 20px;
    width: fit-content;
    border: 1px solid var(--border-color);
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: var(--shadow-sm);
    color: var(--brand-color);
    transition: 0.2s;
}

.qty-btn:hover {
    background: var(--brand-color);
    color: white;
}

/* =========================================
   7. FOOTER
   ========================================= */
.main-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 25px;
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 700;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    transition: 0.2s;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--brand-color);
    transform: translateX(5px);
    display: inline-block;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    transition: 0.3s;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--brand-color);
    color: white;
    border-color: var(--brand-color);
    transform: translateY(-3px);
}

/* =========================================
   8. RESPONSIVE & MOBILE
   ========================================= */
@media (max-width: 768px) {
    .burger {
        display: block;
    }

    /* A. Mobil Menü (Tam Ekran Blur) */
    .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        /* Default to Light Mode (Explicit) */
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        align-items: center;
        justify-content: center;
        gap: 30px;
        z-index: 2000;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        padding: 0;
    }

    /* Dark Mode Mobile Menu Override */
    [data-theme="dark"] .nav-menu {
        background: rgba(15, 23, 42, 0.98);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu a {
        font-size: 1.5rem;
        /* Default to Dark Text (Light Mode) */
        color: #0f172a !important;
        font-weight: 700;
    }

    /* Dark Mode Text Override */
    [data-theme="dark"] .nav-menu a {
        color: #f8fafc !important;
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        color: var(--brand-color) !important;
    }

    /* Filtreler: Yatay Kaydırma */
    .filter-buttons {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
        scroll-padding: 20px;
        padding-left: 20px;
        padding-right: 20px;
        margin-left: -20px;
        margin-right: -20px;
        /* Konteyner taşması için */
    }

    .category-filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
        scroll-padding: 20px;
        padding-left: 20px;
        padding-right: 20px;
        margin-left: -20px;
        margin-right: -20px;
    }

    .category-filters::-webkit-scrollbar {
        display: none;
    }

    /* Scrollbar gizle */
    .category-filters button {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .logo {
        font-size: 1.2rem;
        gap: 4px;
    }

    .logo img {
        height: 28px;
    }

    .hero {
        height: auto;
        padding: 60px 20px;
        min-height: 350px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .content-section,
    .content-section.reverse {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 40px 20px;
    }

    .content-img img {
        max-width: 100%;
        border-radius: var(--radius-md);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* MOBİL İÇİN ÖZEL SEPET TASARIMI */
    .cart-table thead {
        display: none;
    }

    .cart-table,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
        width: 100%;
    }

    .cart-table tr {
        margin-bottom: 15px;
        border: 1px solid var(--border-color);
        border-radius: 10px;
        background: var(--bg-card);
        overflow: hidden;
    }

    .cart-table td {
        text-align: right;
        border: none;
        padding: 10px 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--bg-body);
    }

    .cart-table td:last-child {
        border-bottom: none;
        justify-content: flex-end;
    }

    .cart-table td:first-child {
        justify-content: flex-start;
    }

    .cart-table td:first-child::before {
        content: "Ürün";
        font-weight: bold;
        display: none;
    }

    .cart-table td:nth-child(2)::before {
        content: "Adet:";
        font-weight: 600;
        color: var(--text-secondary);
    }

    .cart-table td:nth-child(3)::before {
        content: "Fiyat:";
        font-weight: 600;
        color: var(--text-secondary);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toast Notification */
#toast {
    visibility: hidden;
    min-width: 250px;
    background-color: var(--bg-card);
    color: var(--text-main);
    border-left: 5px solid var(--brand-color);
    box-shadow: var(--shadow-lg);
    text-align: center;
    border-radius: var(--radius-sm);
    padding: 16px;
    position: fixed;
    z-index: 3000;
    right: 20px;
    top: 20px;
    font-weight: 600;
    /* Removed bottom/left centering to fix overlap with back-to-top */
}

#toast.show {
    visibility: visible;
    animation: slideDown 0.5s, fadeout 0.5s 2.5s;
}

/* Loading Spinner */
.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border-left-color: var(--brand-color);
    animation: spin 1s linear infinite;
    margin: 50px auto;
    grid-column: 1/-1;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--brand-gradient);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: 0.3s;
    box-shadow: var(--shadow-md);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    pointer-events: none;
}

#back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

/* Loading & Reveal */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--border-color) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.modal {
    display: none;
    position: fixed;
    z-index: 5000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--bg-card);
    margin: auto;
    padding: 30px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: modalPop 0.3s;
}

@keyframes modalPop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-btn {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--brand-color);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

/* Removed partial duplicate blocks from here */
/* Advanced Filters Styling */
.advanced-filters {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 15px;
}

.price-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-inputs input {
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    width: 100px;
    background: var(--bg-card);
    color: var(--text-main);
}

.price-actions {
    display: flex;
    gap: 10px;
}

.btn-outline.reset-btn {
    border-color: #ef4444;
    color: #ef4444;
}

.btn-outline.reset-btn:hover {
    background: #ef4444;
    color: white;
}

/* Mobile Tweaks for Filters */
@media (max-width: 768px) {
    .advanced-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .price-inputs {
        justify-content: space-between;
    }

    .price-inputs input {
        width: 45%;
        /* Inputs share width */
    }

    .price-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .price-actions button {
        width: 100%;
        justify-content: center;
    }

    .filter-bar {
        padding: 15px !important;
        /* Smaller padding on mobile */
    }
}

/* Navbar Icon Button */
.icon-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    margin-right: 10px;
}

.icon-btn:hover {
    background: var(--bg-body);
    border-color: var(--brand-color);
    color: var(--brand-color);
    transform: rotate(15deg);
}

.sort-dropdown {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    background: var(--bg-card);
    color: var(--text-main);
    width: 100%;
    transition: 0.3s;
}

input,
select,
textarea {
    background-color: var(--bg-card) !important;
    color: var(--text-main) !important;
    border-color: var(--border-color);
}

/* =========================================
   9. LIVE CHAT WIDGET
   ========================================= */
.chat-widget-btn {
    position: fixed;
    bottom: 30px;
    right: 90px;
    /* Stacked left of back-to-top */
    width: 50px;
    height: 50px;
    background: var(--brand-gradient);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2900;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    color: white;
    font-size: 1.5rem;
}

.chat-widget-btn:hover {
    transform: scale(1.1) rotate(-10deg);
}

.chat-window {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 320px;
    height: 450px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 2900;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    pointer-events: none;
}

.chat-window.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.chat-header {
    background: var(--brand-gradient);
    padding: 15px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.chat-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: var(--bg-body);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-msg.bot {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chat-msg.user {
    background: var(--brand-color);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input-area {
    padding: 10px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.chat-option-btn {
    background: transparent;
    border: 1px solid var(--brand-color);
    color: var(--brand-color);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: 0.2s;
}

.chat-option-btn:hover {
    background: var(--brand-color);
    color: white;
}

/* =========================================
   10. SIDEBAR LAYOUT (URUNLER)
   ========================================= */
.product-layout-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.product-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    /* Sticky sidebar under header */
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.mobile-filter-btn-wrapper {
    display: none;
    /* Varsayılan olarak gizle (Desktop) */
}

.product-main {
    flex: 1;
}

.sidebar-block {
    margin-bottom: 30px;
}

.sidebar-block h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-main);
}

.category-list li {
    margin-bottom: 8px;
}

.cat-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
    width: 100%;
    text-align: left;
    padding: 5px 0;
    display: flex;
    justify-content: space-between;
}

.cat-btn:hover,
.cat-btn.active {
    color: var(--brand-color);
    font-weight: 600;
    transform: translateX(5px);
}

.cat-btn.active::after {
    content: '❯';
    font-size: 0.8rem;
}

.search-box-sidebar input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.range-inputs {
    display: flex;
    gap: 5px;
    align-items: center;
}

.range-inputs input {
    width: 100%;
    padding: 8px;
    text-align: center;
}

.sort-bar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

/* =========================================
   14. PRODUCT DETAIL STYLES
   ========================================= */
.product-detail-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    align-items: flex-start;
}

.pdp-image {
    flex: 1;
    min-width: 300px;
}

.pdp-image img {
    width: 100%;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.pdp-info {
    flex: 1;
    min-width: 300px;
}

.detail-badge {
    position: static;
    display: inline-block;
    background: var(--brand-color);
    margin-bottom: 15px;
}

.pdp-title {
    margin: 10px 0 20px;
    color: var(--text-main);
    font-size: 2rem;
    line-height: 1.2;
}

.pdp-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.pdp-rating {
    color: #f59e0b;
    font-weight: 700;
    font-size: 1.2rem;
}

.pdp-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-color);
}

.pdp-desc {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.pdp-actions {
    display: flex;
    gap: 15px;
}

.add-to-cart-btn {
    flex: 2;
    font-size: 1.1rem;
}

.fav-btn-large {
    flex: 1;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-section {
    margin-top: 60px;
}

.related-section h3 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
}

/* Mobile Responsive Sidebar */
@media (max-width: 900px) {
    .product-layout-wrapper {
        flex-direction: column;
    }

    .product-sidebar {
        width: 100%;
        position: static;
        display: none;
        /* Hidden by default */
        order: -1;
        /* Show above products when visible */
        margin-bottom: 20px;
    }

    .product-sidebar.active {
        display: block;
        animation: slideDown 0.3s ease;
    }

    .mobile-filter-btn-wrapper {
        display: block !important;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* General Mobile Optimization */
@media (max-width: 768px) {

    /* Container Padding */
    .container {
        padding: 0 20px;
    }

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    /* Grids */
    /* Grids */
    .product-grid-wrapper {
        grid-template-columns: 1fr;
        /* Single column on mobile */
    }

    /* PDP Mobile */
    .product-detail-wrapper {
        padding: 20px;
        gap: 20px;
    }

    .pdp-image,
    .pdp-info {
        min-width: 100%;
        flex: 100%;
    }

    .pdp-title {
        font-size: 1.5rem;
    }

    .pdp-actions {
        flex-direction: column;
    }

    .add-to-cart-btn,
    .fav-btn-large {
        width: 100%;
        flex: initial;
    }

    /* Navbar */
    /* Navbar - Mobile Sidebar */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background: var(--bg-glass);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1100;
        /* Above Header */
        gap: 30px;
    }

    .nav-menu.active {
        right: 0;
    }

    .burger {
        display: block;
        /* Show burger */
        z-index: 1200;
        /* Above menu */
    }

    /* Global Search */
    .search-box-wrapper {
        width: 90% !important;
        top: 70px !important;
        left: 5% !important;
        transform: none !important;
    }

    /* Chat Button Position - Left on Mobile to avoid overlap */
    .chat-widget-btn {
        bottom: 20px;
        right: auto;
        left: 20px;
    }

    .chat-window {
        bottom: 80px;
        left: 20px;
        right: auto;
        width: 300px;
        height: 50vh;
    }

    /* Comparison Table Scroll */
    .compare-section {
        overflow-x: hidden;
        /* Main section no scroll */
    }

    #compare-content {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.review-author {
    font-weight: 700;
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.review-stars {
    color: #f59e0b;
    margin-bottom: 10px;
}

.star-rating-input span.active {
    color: #f59e0b;
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================
   12. COMPARISON TABLE
   ========================================= */
.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.compare-table th,
.compare-table td {
    padding: 15px;
    border: 1px solid var(--border-color);
    text-align: center;
    vertical-align: top;
}

.compare-table th {
    background: var(--bg-body);
    font-weight: 600;
    text-align: left;
    width: 20%;
}

.compare-table td img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto 10px;
}

/* =========================================
   13. CART & CONTACT LAYOUTS
   ========================================= */
.cart-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.cart-items-box {
    flex: 2;
    min-width: 300px;
}

.cart-summary {
    flex: 1;
    min-width: 280px;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    height: fit-content;
    box-shadow: var(--shadow-sm);
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.contact-info,
.contact-form-box {
    flex: 1;
    min-width: 300px;
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {

    .cart-grid,
    .contact-wrapper {
        flex-direction: column;
    }

    .cart-items-box,
    .cart-summary,
    .contact-info,
    .contact-form-box {
        width: 100%;
        min-width: 0;
        /* Reset */
    }
}

/* =========================================
   15. AUTH & PROFILE STYLES
   ========================================= */
.auth-section {
    padding: 60px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.auth-wrapper {
    max-width: 450px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.auth-tab.active {
    border-bottom-color: var(--brand-color);
    color: var(--text-main);
    font-weight: 700;
}

.profile-section {
    padding: 60px 0;
    min-height: 80vh;
}

.profile-header {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    background: var(--brand-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* Mobile Overrides for Auth/Profile */
@media (max-width: 768px) {
    .auth-wrapper {
        padding: 20px !important;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .profile-header button {
        margin: 0 !important;
        width: 100%;
    }
}

/* =========================================
   13. PRODUCT MODAL REDESIGN
   ========================================= */
.product-modal-content {
    max-width: 900px !important;
    width: 95% !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
}

.product-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 10px;
}

.pm-image {
    background: #fff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* Padding kaldırıldı, tam sığması için */
    box-shadow: var(--shadow-sm);
    max-height: 500px;
    height: 100%;
    /* Yükseklik kapsayıcıya eşitlendi */
    overflow: hidden;
    /* Taşmaları engelle */
}

.pm-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Görsel tamamen doldursun */
}

.pm-details {
    display: flex;
    flex-direction: column;
}

.pm-details h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

#modalDesc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

#modalActions {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

#modalRelated {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .product-modal-grid {
        grid-template-columns: 1fr;
    }

    /* 1. Global Padding & Container */
    .container,
    .navbar {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 2. Chat Widget Position on Mobile */
    .chat-widget-btn {
        right: 20px;
        bottom: 80px;
        /* Above back-to-top roughly or adjusted */
        width: 45px;
        height: 45px;
    }

    .chat-window {
        right: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 60vh;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
    }

    .chat-window.active {
        transform: translateY(0);
    }

    /* 3. Product Layout (Sidebar) */
    .product-layout-wrapper {
        flex-direction: column;
    }

    .product-sidebar {
        display: none;
        /* Hidden by default */
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 3000;
        overflow-y: auto;
        border-radius: 0;
    }

    .product-sidebar.active {
        display: block;
    }

    /* Mobile Filter Toggle Button visibility handled in HTML/JS usually, ensure it's visible */
    .mobile-filter-btn-wrapper {
        display: block;
        /* Assuming this class exists or will be added */
        margin-bottom: 20px;
    }

    /* 4. Font Sizes */
    html {
        font-size: 14px;
        /* Slightly smaller base font */
    }

    h1 {
        font-size: 1.8rem;
    }

    .hero {
        padding: 40px 15px;
    }

}

/* =========================================
   15. ORDER SUMMARY (Sepet Özeti)
   ========================================= */
.order-summary {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 100px;
}

.order-summary h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    color: var(--text-main);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

.coupon-group {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.coupon-group input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-body);
    transition: 0.3s;
}

.coupon-group input:focus {
    border-color: var(--brand-color);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.summary-row.total {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    border-top: 2px solid var(--border-color);
    padding-top: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    background: var(--brand-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: 0.3s;
    box-shadow: var(--shadow-md);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.clear-cart-btn {
    width: 100%;
    padding: 12px;
    font-size: 0.95rem;
    color: #ef4444;
    background: transparent;
    border: 1px solid #ef4444;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: 0.3s;
}


/* =========================================
   16. CART PAGE LAYOUT & RESPONSIVE
   ========================================= */
.cart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 900px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }


    .order-summary {
        position: static;
        width: 100%;
        margin-top: 20px;
    }

    /* Contact Page Mobile */
    .contact-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .contact-info,
    .contact-form-box {
        width: 100%;
        min-width: 100%;
    }

    /* General Form Mobile */
    input,
    select,
    textarea {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* =========================================
   FAVORITES & PRODUCT MODAL
   ========================================= */
.product-modal-content {
    max-width: 900px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
}

.pm-image {
    background: #f1f5f9;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-image img {
    max-height: 400px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

[data-theme="dark"] .pm-image img {
    mix-blend-mode: normal;
}

.pm-details {
    padding: 40px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.pm-details h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .product-modal-grid {
        grid-template-columns: 1fr;
    }

    .pm-image {
        height: 250px;
    }

    .pm-details {
        padding: 20px;
    }
}