/* #region --- Genel Stiller ve Reset --- */
:root {
    --font-sans: 'Work Sans', sans-serif;
    --font-serif: 'Playfair Display', serif;

    --color-stone-50: #FDFBF5;   /* Çok Açık Krem / Hover Arka Planı */
    --color-stone-100: #F9F6EE;  /* Ana Sayfa Arka Planı (Açık Bej) */
    --color-stone-200: #EFEBE4;  /* Açık Kenarlıklar ve Vurgular */
    --color-stone-300: #DCD6CC;  /* Biraz Daha Koyu Kenarlıklar */
    --color-stone-400: #A69B8D;  /* Pasif Metin ve İkonlar */
    --color-stone-500: #8C7F70;  /* Orta Ton Metin */
    --color-stone-600: #6D6256;  /* Normal Metin */
    --color-stone-700: #5D534A;  /* Koyu Metin */
    --color-stone-800: #3A352F;  /* Başlıklar ve Butonlar (Koyu Kahve) */
    --color-stone-900: #2A2622;

    --color-red-500: #ef4444;
    --color-emerald-500: #10b981;
    --color-yellow-400: #facc15;
    --color-yellow-500: #eab308;
    
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-stone-100);
    color: var(--color-stone-700);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button, input, textarea {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}

.hidden {
    display: none !important;
}
/* #endregion */

/* #region --- Ana Yapı ve Konteyner --- */
#page-container {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.main-content {
    position: relative;
    z-index: 10;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.brand-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 400;
    color: var(--color-stone-800);
    margin-bottom: 1rem;
}

.brand-subtitle {
    font-size: 1.125rem;
    color: var(--color-stone-600);
    max-width: 42rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.header-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    transition: background-color 0.2s;
    white-space: nowrap;
}
.primary-button {
    background-color: var(--color-stone-800);
    color: white;
}
.primary-button:hover {
    background-color: var(--color-stone-700);
}
.secondary-button {
    border: 1px solid var(--color-stone-300);
    color: var(--color-stone-700);
}
.secondary-button:hover {
    background-color: var(--color-stone-50);
}
/* #endregion */

/* #region --- Filtreleme Alanı --- */
.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.canvas-background { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    display: block; 
}

#particleCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.desktop-sidebar {
    display: none; /* Mobilde gizli */
}

.sidebar-inner {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 2rem;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-stone-800);
}

.clear-filters-button {
    font-size: 0.875rem;
    color: var(--color-stone-500);
    transition: color 0.2s;
}
.clear-filters-button:hover {
    color: var(--color-stone-700);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-title {
    font-weight: 500;
    color: var(--color-stone-700);
    margin-bottom: 0.75rem;
}

/* Kategori Filtresi (YENİ STİLLER) */
#category-filter-desktop, #category-filter-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.category-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    text-align: left;
    background-color: var(--color-stone-50);
    color: var(--color-stone-700);
}
.category-button:hover {
    background-color: var(--color-stone-100);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.category-button.active {
    background-color: var(--color-stone-800);
    color: white;
    box-shadow: var(--shadow-lg);
    transform: translateY(0);
}
.category-button .category-name {
    font-weight: 500;
}
.category-button .category-count {
    font-size: 0.75rem;
    padding: 0.1rem 0.5rem;
    border-radius: 9999px;
    background-color: var(--color-stone-200);
    color: var(--color-stone-600);
    transition: all 0.3s ease;
}
.category-button.active .category-count {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}


/* Fiyat Aralığı */
.price-range-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: var(--color-stone-300);
    border-radius: 2px;
    outline: none;
}
.price-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--color-stone-800);
    border-radius: 50%;
    cursor: pointer;
}
.price-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--color-stone-600);
    margin-top: 0.5rem;
}

/* Beden Filtreleri */
.size-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.size-button {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-stone-300);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}
.size-button:hover {
    border-color: var(--color-stone-500);
}
.size-button.active {
    background-color: var(--color-stone-800);
    color: white;
    border-color: var(--color-stone-800);
}
/* #endregion */

/* #region --- Mobil Filtreler --- */
.mobile-filter-trigger-container {
    margin-bottom: 1.5rem;
}
.mobile-filter-trigger-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: white;
    border: 1px solid var(--color-stone-300);
    border-radius: 0.75rem;
    transition: background-color 0.2s;
}
.mobile-filter-trigger-button:hover {
    background-color: var(--color-stone-50);
}
.mobile-filter-trigger-button i:last-child {
    transition: transform 0.3s;
}
.mobile-filter-trigger-button.open i:last-child {
    transform: rotate(180deg);
}

.mobile-filter-panel {
    position: fixed;
    inset: 0;
    z-index: 40;
}
.mobile-filter-panel.hidden {
    display: none;
}
.mobile-filter-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}
.mobile-filter-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideInUp 0.3s ease;
}
.mobile-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--color-stone-200);
    position: sticky;
    top: 0;
    background-color: white;
}
.close-mobile-filter-button {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--color-stone-100);
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-filter-body {
    padding: 1rem;
    overflow-y: auto;
}
.mobile-filter-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-top: 1px solid var(--color-stone-200);
}
.mobile-footer-button {
    flex: 1;
    padding: 0.75rem;
    border-radius: 0.75rem;
    transition: background-color 0.2s;
}
.mobile-footer-button.clear {
    border: 1px solid var(--color-stone-300);
    color: var(--color-stone-700);
}
.mobile-footer-button.clear:hover {
    background-color: var(--color-stone-50);
}
.mobile-footer-button.apply {
    background-color: var(--color-stone-800);
    color: white;
}
.mobile-footer-button.apply:hover {
    background-color: var(--color-stone-700);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideInUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
/* #endregion */

/* #region --- Ürün Alanı (Toolbar ve Grid) --- */
.products-area {
    width: 100%;
}
.toolbar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}
.toolbar-left, .toolbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}
.toolbar-right {
    flex-direction: column;
}
.product-count {
    color: var(--color-stone-600);
    font-size: 0.875rem;
    order: 2;
}

/* Arama Çubuğu */
.search-bar-container {
    flex-grow: 1;
}
.search-bar-wrapper {
    position: relative;
}
.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-stone-400);
    transition: color 0.3s;
}
.search-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    background-color: white;
    border: 2px solid var(--color-stone-200);
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: all 0.3s;
    outline: none;
    box-shadow: var(--shadow-md);
}
.search-input:hover {
    border-color: var(--color-stone-300);
}
.search-input:focus {
    border-color: var(--color-stone-400);
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}
.search-input:focus + .search-icon {
    color: var(--color-stone-600);
}
.search-clear-button {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-stone-400);
}

/* Görünüm Değiştirme */
.view-mode-toggle {
    display: flex;
    border: 1px solid var(--color-stone-200);
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: white;
}
.view-mode-button {
    padding: 0.5rem;
    transition: all 0.2s;
    color: var(--color-stone-600);
}
.view-mode-button.active {
    background-color: var(--color-stone-800);
    color: white;
}

/* Sıralama Menüsü */
.sort-dropdown-container {
    position: relative;
    width: 100%;
    order: 1;
}
.sort-dropdown-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 1rem;
    background-color: white;
    border: 1px solid var(--color-stone-200);
    border-radius: 0.5rem;
    transition: all 0.2s;
}
.sort-dropdown-button:hover {
    border-color: var(--color-stone-300);
}
.sort-dropdown-button i {
    transition: transform 0.2s;
}
.sort-dropdown-button.open i {
    transform: rotate(180deg);
}
.sort-dropdown-options {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background-color: white;
    border: 1px solid var(--color-stone-200);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 20;
    min-width: 240px; /* veya ihtiyaca göre artır: 260px, 280px */
    padding: 0.5rem 0;
}
.sort-option-button {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.850rem;
    transition: background-color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sort-option-button:hover {
    background-color: var(--color-stone-50);
}
.sort-option-button.active {
    background-color: var(--color-stone-100);
    color: var(--color-stone-800);
    font-weight: 500;
}

/* Ürün Grid */
.product-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    animation: fadeInUp 0.5s ease-out forwards;
}
.product-grid.list-view {
    grid-template-columns: 1fr;
}
.product-grid.grid-view {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: forwards;
}

/* Loader ve Sonuç Yok */
.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 16rem;
}
.loader-spinner {
    width: 3rem;
    height: 3rem;
    border: 2px solid var(--color-stone-800);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.no-results-container {
    text-align: center;
    padding: 4rem 0;
}
.no-results-container i {
    font-size: 4rem;
    color: var(--color-stone-300);
    margin-bottom: 1rem;
}
.no-results-container h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-stone-600);
    margin-bottom: 0.5rem;
}
.no-results-container p {
    color: var(--color-stone-500);
    margin-bottom: 1rem;
}

/* #endregion */

/* #region --- Ürün Kartı Stilleri --- */
/* Grid View Card */
.product-card {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
    cursor: pointer;
}
.product-card:hover {
    transform: scale(1.02);
    background-color: rgba(255, 255, 255, 0.25);
}

.product-card-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f5f5f5; /* Resim yüklenene kadar boşluğu doldurur */
    aspect-ratio: 3 / 4; /* YENİ EKLENDİ - Resimlerinizin oranına göre ayarlayın (örn: 1/1, 4/3) */
}
.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: all 0.5s;
}
.product-card:hover .product-card-image {
    transform: scale(1.05);
}

.product-card-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.badge {
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(4px);
}
.badge-new { background-color: rgba(16, 185, 129, 0.85); }
.badge-sale { background-color: rgba(239, 68, 68, 0.85); }

.favorite-button {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--color-stone-600);
}
.favorite-button:hover {
    background-color: rgba(239, 68, 68, 0.9);
    color: white;
}
.favorite-button.is-favorite {
    background-color: rgba(239, 68, 68, 0.9);
    color: white;
}

.product-card-content {
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
}
.product-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.product-card-tag {
    font-size: 0.75rem;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.4);
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    color: var(--color-stone-700);
}
.product-card-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background-color: rgba(255, 255, 255, 0.4);
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    color: var(--color-stone-700);
}
.product-card-rating i { color: var(--color-yellow-500); }

.product-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-stone-800);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    transition: color 0.2s;
}
.product-card:hover .product-card-name {
    color: var(--color-stone-900);
}

.product-card-price-container {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    padding: 0.5rem;
}
.product-card-price-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.product-card-prices {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.original-price {
    text-decoration: line-through;
    color: var(--color-stone-500);
    font-size: 0.875rem;
}
.current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-stone-800);
}
.discount-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-red-500);
    background-color: rgba(239, 68, 68, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
}
/* List View Card */
.product-card.list {
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    border-radius: 1.5rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.product-card.list .product-card-image-wrapper {
    width: 100%;
    height: 16rem;
    flex-shrink: 0;
    border-radius: 1rem;
}
.product-card.list .product-card-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    margin-top: 1rem;
}
.product-card.list .product-card-name { font-size: 1.25rem; }
.product-card.list .description {
    font-size: 0.875rem;
    color: var(--color-stone-700);
    margin: 1rem 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Stoğu olmayan (disabled) beden butonlarının stilini belirler */
.size-button:disabled {
    text-decoration: line-through;  /* Metnin üzerini çizer */
    background-color: #f8f8f8;      /* Arka plan rengini soluklaştırır */
    border-color: #e0e0e0;          /* Kenarlık rengini soluklaştırır */
    color: #b0b0b0;                 /* Metin rengini soluklaştırır */
    cursor: not-allowed;            /* "İzin verilmiyor" imlecini gösterir */
}
/* #endregion */

/* #region --- Ürün Detay Modalı --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.3s ease;
}
.modal-container {
    background-color: white;
    border-radius: 1.5rem;
    max-width: 56rem;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: slideInUp 0.3s ease;
    box-shadow: var(--shadow-xl);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--color-stone-200);
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    z-index: 10;
}
.modal-header h2 { font-size: 1.25rem; font-weight: 700; color: var(--color-stone-800); }
.modal-close-button {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--color-stone-100);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}
.modal-close-button:hover { background-color: var(--color-stone-200); }

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}
.modal-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Modal Image Gallery */
.modal-image-section .main-image-wrapper {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
    background-color: var(--color-stone-100);
}
.modal-image-section .main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease-in-out;
}
.modal-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s;
    z-index: 5;
}
.modal-image-section .main-image-wrapper:hover .modal-nav-arrow {
    opacity: 1;
}
.modal-nav-arrow:hover {
    transform: translateY(-50%) scale(1.1);
}
.modal-nav-arrow.prev { left: 1rem; }
.modal-nav-arrow.next { right: 1rem; }

.modal-image-section .thumbnail-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}
.modal-image-section .thumbnail-button {
    aspect-ratio: 1 / 1;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid var(--color-stone-200);
    transition: all 0.2s;
}
.modal-image-section .thumbnail-button.active { border-color: var(--color-stone-800); }
.modal-image-section .thumbnail-button img { width: 100%; height: 100%; object-fit: cover; }

/* Modal Details */
.modal-details-section .product-name { font-size: 1.875rem; font-weight: 700; color: var(--color-stone-800); margin-bottom: 1rem; }
.modal-details-section .rating-info { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.modal-details-section .stars i { color: var(--color-yellow-400); }
.modal-details-section .price-info { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.modal-details-section .price-info .current-price { font-size: 2.25rem; font-weight: 700; color: var(--color-stone-800); }
.modal-details-section .price-info .original-price { font-size: 1.5rem; }
.modal-details-section .product-description { line-height: 1.6; margin-bottom: 1.5rem; }

.action-group { margin-bottom: 1.5rem; }
.action-group h3 { font-weight: 600; color: var(--color-stone-800); margin-bottom: 0.75rem; }
.action-group .size-button.modal-size-button { margin-right: 0.5rem; margin-bottom: 0.5rem; }

.quantity-selector { display: flex; align-items: center; gap: 0.75rem; }
.quantity-button {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--color-stone-300);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.quantity-value { font-size: 1.125rem; font-weight: 500; min-width: 2rem; text-align: center;}
.add-to-cart-button {
    width: 100%;
    background-color: var(--color-stone-800);
    color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.add-to-cart-button:disabled { background-color: var(--color-stone-400); cursor: not-allowed; }
.add-to-cart-button .loader-spinner {
    width: 1.25rem;
    height: 1.25rem;
    border-color: white;
    border-top-color: transparent;
}

/* Ürün Vurgulama Efekti */
.product-card.product-highlight {
    transition: all 0.5s ease-out;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0,0,0,0.2);
    transform: scale(1.02);
}


/* Modal Comments Section */
.comments-section {
    border-top: 1px solid var(--color-stone-200);
    padding-top: 2rem;
}
.comments-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-stone-800);
    margin-bottom: 1.5rem;
}
.comment-form {
    background-color: var(--color-stone-50);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.comment-form-title {
    font-weight: 600;
    color: var(--color-stone-800);
    margin-bottom: 1rem;
}
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-stone-700);
    margin-bottom: 0.5rem;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-stone-300);
    border-radius: 0.5rem;
    transition: all 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-stone-500);
    box-shadow: 0 0 0 2px rgba(120, 113, 108, 0.2);
}
.form-group textarea {
    resize: vertical;
    min-height: 80px;
}
.rating-input-stars button {
    color: var(--color-stone-300);
    font-size: 1.5rem;
    transition: color 0.2s;
}
.rating-input-stars button.active {
    color: var(--color-yellow-400);
}
.submit-comment-button {
    background-color: var(--color-stone-800);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.comment-card {
    background-color: white;
    border: 1px solid var(--color-stone-200);
    border-radius: 1rem;
    padding: 1.5rem;
}
.comment-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.comment-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.comment-user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--color-stone-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-stone-600);
}
.comment-user-name {
    font-weight: 500;
    color: var(--color-stone-800);
}
.comment-rating .stars i { color: var(--color-yellow-400); font-size: 0.875rem; }
.comment-date {
    font-size: 0.875rem;
    color: var(--color-stone-500);
}
.comment-text {
    line-height: 1.6;
    color: var(--color-stone-600);
}
/* #endregion */

/* #region --- Bildirim --- */
.notification-container {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    transition: all 0.5s;
}
.notification-container.hidden {
    opacity: 0;
    transform: translate(-50%, -150%);
}
.notification-content {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(8px);
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}
.notification-content.success {
    background-color: rgba(16, 185, 129, 0.9);
    color: white;
    border-color: var(--color-emerald-500);
}
.notification-content.info {
    background-color: rgba(59, 130, 246, 0.9);
    color: white;
    border-color: #3b82f6;
}

/* Performanslı Box-Shadow Optimizasyonu */
.product-card::after {
  content: '';
  position: absolute;
  /* Ana kart ile aynı pozisyon ve boyutta olmasını sağlar */
  inset: 0; 
  /* Ana kart ile aynı köşe yuvarlaklığı */
  border-radius: 1rem; 
  
  /* DAHA BÜYÜK olan gölgeyi buraya koyuyoruz */
  box-shadow: var(--shadow-xl);
  
  /* Başlangıçta tamamen şeffaf ve GİZLİ */
  opacity: 0; 
  
  /* Sadece şeffaflığı canlandıracağız, bu çok hızlıdır */
  transition: opacity 0.3s ease-out; 
  
  /* Kartın arkasında kalmasını sağlar */
  z-index: -1; 
}

/* Fare ürün kartının üzerine gelince... */
.product-card:hover::after {
  /* ...arkadaki gizli gölge katmanını görünür yap */
  opacity: 1;
}

.sidebar-inner,
.mobile-filter-backdrop,
.modal-overlay,
.product-card,
.modal-header,
.favorite-button {
  /* Tarayıcıya bu elementin pozisyonunun ve içeriğinin
     sık sık değişebileceğini bildirir. */
  will-change: transform;
  
  /* Tarayıcının GPU katmanını oluşturmasını tetiklemek için
     kullanılan yaygın bir tekniktir. */
  transform: translateZ(0);
}


/* #region --- Responsive Tasarım --- */
@media (min-width: 640px) {
    .container { padding: 2rem; }
    .product-grid.grid-view { grid-template-columns: repeat(2, 1fr); }
    .comment-card-header { flex-direction: row; justify-content: space-between; align-items: center;}
}

@media (min-width: 768px) {
    .content-wrapper { flex-direction: row; gap: 2rem; }
    .products-area { width: 100%; }
    .toolbar { flex-direction: row; }
    .toolbar-left, .toolbar-right { width: auto; }
    .toolbar-right { flex-direction: row; order: 2; }
    .product-count { order: 1; }
    .sort-dropdown-container { width: 180px; order: 2;}
    .product-card.list { flex-direction: row; gap: 1.5rem; }
    .product-card.list .product-card-image-wrapper { width: 12rem; height: auto; }
    .product-card.list .product-card-content { margin-top: 0; }
    .modal-content-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
    .brand-title { font-size: 3.75rem; }
    .product-grid.grid-view { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1280px) {
    .mobile-filter-trigger-container { display: none; }
    .desktop-sidebar { display: block; width: 25%; }
    .products-area { width: 75%; }
    .product-grid.grid-view { grid-template-columns: repeat(3, 1fr); }
}
/* #endregion */