/* ============================================
   GUMUSALL - ÜRÜN YÖNETİM SİSTEMİ CSS
   ============================================ */

/* Renkler ve Değişkenler */
:root {
    --primary-color: #0b2845;
    --secondary-color: #25496d;
    --light-color: #fbf7f2;
    --accent-color: #b57a43;
    --text-dark: #1f2c3a;
    --text-light: #6b7787;
    --border-color: #e8ddd2;
    --success-color: #2e7d32;
    --warning-color: #c27a1a;
    --error-color: #c0392b;
}

/* Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--light-color);
}

/* Üst Linkler */
.top-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-link,
.cart-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.back-link:hover,
.cart-link:hover {
    color: var(--secondary-color);
}

.cart-count {
    background-color: var(--error-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 20px;
    background-color: #f9f9f9;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 8px;
    color: #999;
}

/* Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 30px;
}

.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.header-content p {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* ===================================
   TOOLBAR + FILTER PANEL (ACTIVE UI)
   =================================== */

.toolbar {
    max-width: 1200px;
    margin: 0 auto 16px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.toolbar-right {
    display: flex;
    align-items: center;
}

.filter-toggle-btn {
    border: 1px solid #d6cbd0;
    border-radius: 10px;
    background: #fff;
    color: #3e2a33;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 10px 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.filter-toggle-btn:hover {
    background: #f7f2f4;
    border-color: #bda8b1;
}

.product-count-info {
    border: 1px solid #ddd2d7;
    border-radius: 10px;
    background: #fff;
    color: #4f3a44;
    font-size: 15px;
    font-weight: 600;
    padding: 9px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.toolbar-right #sortSelect {
    min-width: 220px;
    border: 1px solid #d8ccd2 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #372730;
    font-size: 15px;
    font-weight: 500;
}

.filter-panel-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(19, 12, 17, 0.45);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s ease, visibility 0.24s ease;
    z-index: 998;
}

.filter-panel-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.filter-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: min(360px, 92vw);
    height: 100vh;
    z-index: 999;
    background: #fff;
    box-shadow: 24px 0 44px rgba(17, 11, 16, 0.24);
    transform: translateX(-102%);
    transition: transform 0.28s ease;
    display: flex;
    flex-direction: column;
}

.filter-panel.active {
    transform: translateX(0);
}

.filter-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 16px;
    border-bottom: 1px solid #ece3e7;
    background: linear-gradient(135deg, #faf6f8, #f3edf1);
}

.filter-panel-header h2 {
    margin: 0;
    font-size: 29px;
    letter-spacing: 0.04em;
    color: #2f2028;
    font-weight: 800;
}

.filter-close-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #d8ccd2;
    border-radius: 8px;
    background: #fff;
    color: #32222a;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-close-btn:hover {
    background: #f6eff3;
}

.filter-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px 12px 18px;
}

.filter-group {
    border: 1px solid #e8dde2;
    border-radius: 12px;
    background: #fff;
    padding: 10px 10px 8px;
    margin-bottom: 10px;
}

.filter-group h3 {
    margin: 0 0 8px;
    font-size: 19px;
    color: #25354c;
    font-weight: 800;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 2px;
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #75545f;
    flex-shrink: 0;
}

.filter-option label {
    font-size: 17px;
    line-height: 1.18;
    color: #2a3e59;
    cursor: pointer;
}

.clear-all-filters-btn {
    width: 100%;
    border: 1px solid #d8ccd2;
    border-radius: 10px;
    background: #fff;
    color: #372730;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    margin-top: 4px;
    transition: all 0.2s ease;
}

.clear-all-filters-btn:hover {
    background: #f7f2f4;
    border-color: #bda8b1;
}

@media (max-width: 768px) {
    .toolbar {
        padding: 0 12px;
        margin-bottom: 12px;
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-left,
    .toolbar-right {
        width: 100%;
    }

    .filter-toggle-btn,
    .product-count-info {
        width: 100%;
        justify-content: center;
    }

    .toolbar-right #sortSelect {
        width: 100%;
        min-width: 0;
    }

    .filter-panel {
        width: min(360px, 96vw);
    }

    .filter-panel-header h2 {
        font-size: 24px;
    }

    .filter-option label {
        font-size: 16px;
    }
}

/* Filtreler */
.filters-section {
    background-color: white;
    padding: 20px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.filters-container {
    max-width: 1200px;
    margin: 0 auto;
}

.filters-container h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--border-color);
    background-color: white;
    color: var(--text-dark);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Ürün Bölümü */
.products-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.products-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

/* Ürün Kartı */
.product-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    background-color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f9f9f9;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--error-color);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.out-of-stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #999;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.product-category {
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
    flex-grow: 1;
}

.product-meta {
    margin-bottom: 10px;
}

.rating {
    font-size: 0.9rem;
    color: var(--warning-color);
}

.rating small {
    color: #999;
    font-size: 0.8rem;
}

.product-price {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.final-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.product-buttons {
    display: flex;
    gap: 8px;
}

.btn-detail,
.btn-add-cart {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-detail {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-detail:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-add-cart {
    background-color: var(--primary-color);
    color: white;
}

.btn-add-cart:hover:not(:disabled) {
    background-color: var(--secondary-color);
}

.btn-add-cart:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* ÜRÜN DETAY SAYFASI */

.product-detail-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.product-detail-container {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.product-detail-image {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#mainImage {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.detail-category {
    color: var(--accent-color);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.detail-rating {
    color: var(--warning-color);
    font-size: 0.95rem;
}

.detail-price {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.detail-price .final-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.discount-info {
    color: var(--error-color);
    font-weight: bold;
}

.stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 4px;
}

.detail-description {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.detail-description h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.detail-specs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.spec {
    display: flex;
    justify-content: space-between;
}

.spec strong {
    color: var(--primary-color);
}

/* Seçenekler */
.size-selector,
.length-selector,
.color-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.size-selector label,
.length-selector label,
.color-selector label {
    font-weight: bold;
    color: var(--text-dark);
}

.size-options,
.length-options,
.color-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-btn,
.length-btn,
.color-btn {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    background-color: white;
    color: var(--text-dark);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.size-btn:hover:not(:disabled),
.length-btn:hover:not(:disabled),
.color-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.size-btn.active,
.length-btn.active,
.color-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.size-btn:disabled,
.length-btn:disabled {
    background-color: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

/* Miktar */
.quantity-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quantity-selector label {
    font-weight: bold;
    color: var(--text-dark);
}

.quantity-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.quantity-controls button {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    background-color: white;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.quantity-controls button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

#quantityInput {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

/* Butonlar */
.detail-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-add-to-cart {
    flex: 1;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-to-cart:hover:not(:disabled) {
    background-color: var(--secondary-color);
}

.btn-add-to-cart:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-wishlist {
    padding: 12px 20px;
    border: 2px solid var(--primary-color);
    background-color: white;
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.btn-wishlist:hover {
    background-color: var(--primary-color);
    color: white;
}

/* İlgili Ürünler */
.related-products {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px;
}

.related-products h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* SEPETİ SAYFASI */

.cart-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.cart-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
}

@media (max-width: 768px) {
    .cart-container {
        grid-template-columns: 1fr;
    }
}

.cart-items {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table thead {
    background-color: #f9f9f9;
    border-bottom: 2px solid var(--border-color);
}

.cart-table th {
    padding: 15px;
    text-align: left;
    font-weight: bold;
    color: var(--primary-color);
}

.cart-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.item-product {
    display: flex;
    gap: 15px;
}

.item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.item-details {
    flex-grow: 1;
}

.item-details h4 {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.item-details small {
    color: var(--text-light);
    display: block;
}

.item-quantity input {
    width: 60px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-align: center;
}

.item-actions {
    text-align: center;
}

.btn-remove {
    padding: 8px 12px;
    background-color: var(--error-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

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

/* Sepet Özeti */
.cart-summary {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 80px;
    height: fit-content;
}

.cart-summary h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.summary-row.total {
    border-bottom: none;
    border-top: 2px solid var(--primary-color);
    padding-top: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.btn-checkout {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-checkout:hover {
    background-color: var(--secondary-color);
}

.btn-continue-shopping,
.btn-continue-shopping-link {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    text-align: center;
    background-color: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-continue-shopping:hover,
.btn-continue-shopping-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Yükleniyor Göstergesi */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Bildirim */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--success-color);
    color: white;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.page-footer {
    text-align: center;
    padding: 20px;
    color: #999;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.8rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .product-detail-container {
        padding: 15px;
    }

    .cart-summary {
        position: static;
    }

    .cart-table {
        font-size: 0.9rem;
    }

    .cart-table th,
    .cart-table td {
        padding: 10px;
    }
}

/* ===================================
   PREMIUM IVY CARD OVERRIDE
   =================================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 40px 5%;
}

.product-card {
    position: relative;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
    background: #fff;
    box-shadow: 0 8px 22px rgba(17, 24, 32, 0.06);
    overflow: hidden;
    padding: 15px;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(240, 240, 240, 0.9);
    border-radius: 20px;
    pointer-events: none;
}

.ornament {
    display: none;
}

.ornament-tl {
    top: -2px;
    left: -4px;
}

.ornament-br {
    right: -4px;
    bottom: -2px;
    transform: rotate(180deg);
}

.product-image-wrapper {
    height: 280px;
    border-radius: 15px;
    border: none;
    background: #f7f7f7;
    margin-bottom: 15px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.35s ease;
    filter: saturate(0.95) contrast(1.02);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.favorite-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(44, 62, 80, 0.08);
    background: rgba(255, 255, 255, 0.94);
    color: #94a1ad;
    box-shadow: 0 10px 24px rgba(20, 28, 40, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
}

.favorite-btn:hover {
    color: #af9e8d;
    transform: scale(1.06);
}

.product-discount {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    border-radius: 999px;
    background: #2c3e50;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
    box-shadow: 0 10px 24px rgba(44, 62, 80, 0.18);
}

.product-new-model-badge {
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.product-discount-offset {
    top: 54px;
}

.product-info {
    padding: 0;
    background: transparent;
}

.product-lineage {
    margin: 0 0 8px;
    font-size: 11px;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #8b98a4;
}

.product-name {
    margin: 10px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 700;
    color: #2c3e50;
    min-height: 0;
}

.product-material-line {
    margin: 0 0 14px;
    color: #6f7c88;
    font-size: 0.92rem;
}

.product-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

.product-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7680;
    font-size: 0.88rem;
}

.product-rating i {
    color: #d69b4d;
}

.product-price {
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: baseline;
    gap: 8px;
}

.original-price {
    font-size: 0.92rem;
    color: #97a3ad;
    text-decoration: line-through;
}

.sale-price {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #2c3e50;
    letter-spacing: 0;
}

.add-to-cart-btn {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 12px;
    background: #2c3e50;
    color: #fff;
    font-size: 0.96rem;
    font-weight: 600;
    letter-spacing: 0;
    cursor: pointer;
    transition: 0.3s;
}

.add-to-cart-btn:hover {
    background: #000;
    transform: none;
    box-shadow: none;
    filter: none;
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
        padding: 24px 0;
    }

    .product-image-wrapper {
        height: 250px;
    }

    .product-name {
        font-size: 1rem;
    }

    .sale-price {
        font-size: 1.18rem;
    }
}

@media (max-width: 520px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 18px 0;
    }

    .product-card {
        padding: 10px;
        border-radius: 18px;
    }

    .product-card::after {
        border-radius: 18px;
    }

    .product-image-wrapper {
        height: 150px;
    }

    .product-lineage {
        font-size: 11px;
        letter-spacing: 0.08em;
    }

    .product-name {
        font-size: 0.9rem;
        margin: 8px 0 6px;
    }

    .product-material-line {
        font-size: 0.78rem;
        margin-bottom: 8px;
    }

    .product-rating {
        font-size: 0.74rem;
    }

    .sale-price {
        font-size: 0.98rem;
    }

    .original-price {
        font-size: 0.7rem;
    }

    .add-to-cart-btn {
        font-size: 0.78rem;
        padding: 10px;
    }
}
.filter-group-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    padding: 10px 0;
    border-bottom: 1px solid #e8ddd2;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #2c1a24;
    transition: color 0.2s;
}

.filter-group-header:hover{
color: #b57a43;
}

.filter-chevron{
    font-size:12px;
    transition: transform 0.3s ease;
    color: #888;
}

.filter-group-header.open .filter-chevron{
    transform: rotate(180deg);
}

.filter-group-body{
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease, padding 0.2s ease;
    padding-top: 0;
}

.filter-group-body.open{
    max-height: 500px;
    padding-top: 8px;
}

/* ===== Premium visual uplift layer (site-wide product experience) ===== */
:root {
    --premium-bg: #f3eadf;
    --premium-surface: #fffaf1;
    --premium-ink: #15293d;
    --premium-muted: #5f7186;
    --premium-gold: #ad7a46;
    --premium-gold-dark: #865b33;
    --premium-line: #dfcfbc;
}

body {
    background:
        radial-gradient(circle at 10% 12%, rgba(173, 122, 70, 0.12), transparent 34%),
        radial-gradient(circle at 86% 84%, rgba(21, 41, 61, 0.08), transparent 38%),
        linear-gradient(180deg, #faf5ec 0%, var(--premium-bg) 100%);
    color: var(--premium-ink);
}

.page-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 18px 32px rgba(13, 24, 37, 0.16);
}

.page-header h1,
.header-content h1 {
    letter-spacing: 0.05em;
    font-size: clamp(32px, 4.2vw, 54px);
}

.toolbar,
.products-section,
.cart-section {
    width: min(1280px, 100%);
}

.products-container,
.cart-items,
.cart-summary,
.product-detail-container {
    border: 1px solid var(--premium-line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 239, 227, 0.94));
    box-shadow: 0 18px 34px rgba(13, 24, 36, 0.1);
}

.product-card {
    border-radius: 16px;
    border: 1px solid #e7d6c2;
    box-shadow: 0 12px 26px rgba(12, 23, 35, 0.08);
}

.product-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 36px rgba(10, 21, 33, 0.16);
}

.product-image-wrapper {
    border-bottom: 1px solid #e9dbc8;
}

.product-name {
    font-size: 18px;
    line-height: 1.3;
    color: #17314b;
}

.product-category {
    color: var(--premium-gold-dark);
    font-weight: 700;
}

.product-description {
    color: var(--premium-muted);
}

.final-price,
.detail-price .final-price,
.final-price-detail {
    color: #16344f;
}

.btn-detail,
.btn-add-cart,
.btn-add-to-cart,
.btn-checkout,
.btn-continue-shopping,
.btn-continue-shopping-link {
    border-radius: 999px;
    min-height: 44px;
    font-weight: 700;
}

.btn-add-cart,
.btn-add-to-cart,
.btn-checkout,
.btn-continue-shopping {
    background: linear-gradient(135deg, var(--premium-gold), var(--premium-gold-dark));
    border: 1px solid #d8b184;
    color: #fff9ef;
}

.btn-detail,
.btn-continue-shopping-link {
    border: 1px solid #c9a87f;
    background: #fffaf1;
    color: #23405e;
}

.btn-add-cart:hover:not(:disabled),
.btn-add-to-cart:hover:not(:disabled),
.btn-checkout:hover,
.btn-continue-shopping:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
}

.btn-detail:hover,
.btn-continue-shopping-link:hover {
    background: #f4eadc;
}

.detail-description,
.detail-specs,
.detail-price,
.stock-status {
    border: 1px solid #e4d5c2;
    border-radius: 14px;
    background: linear-gradient(180deg, #fffdf9, #f8efe2);
}

.stock-status {
    color: #39506a;
}

.summary-row.total {
    color: #1b3651;
    font-weight: 800;
}

.page-footer {
    color: #556a83;
}

@media (max-width: 768px) {
    .products-section,
    .cart-section {
        padding: 0 12px 22px;
    }

    .products-container,
    .cart-items,
    .cart-summary,
    .product-detail-container {
        border-radius: 14px;
        padding: 14px;
    }

    .product-buttons {
        flex-direction: column;
    }
}

/* ===================================
   MOBİL OPTİMİZASYON (Kapsamlı)
   =================================== */

@media (max-width: 768px) {
    /* Header */
    .page-header {
        padding: 28px 14px 22px;
        margin-bottom: 16px;
    }

    .page-header h1,
    .header-content h1 {
        font-size: clamp(26px, 7vw, 36px);
    }

    .header-content p {
        font-size: 0.95rem;
    }

    /* Toolbar */
    .toolbar {
        padding: 0 12px;
        gap: 8px;
    }

    .toolbar-left {
        flex-wrap: nowrap;
    }

    .filter-toggle-btn,
    .product-count-info {
        font-size: 13px;
        padding: 8px 10px;
    }

    /* Ürün grid wrapper */
    .products-section {
        padding: 0 8px 20px;
    }

    .products-container {
        padding: 10px 8px;
        border-radius: 14px;
    }

    /* Ürün kartları */
    .products-grid {
        gap: 12px;
        padding: 14px 0;
    }

    .product-card {
        padding: 10px;
    }

    .product-image-wrapper {
        height: 200px;
    }

    .product-name {
        font-size: 15px;
    }

    .product-footer-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .product-price {
        justify-content: flex-start;
    }

    .add-to-cart-btn {
        padding: 10px;
        font-size: 13px;
    }

    /* Sepet */
    .cart-container {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .cart-table {
        font-size: 0.85rem;
    }

    .cart-table th,
    .cart-table td {
        padding: 8px;
    }
}

@media (max-width: 520px) {
    /* Header daha kompakt */
    .page-header {
        padding: 18px 12px 16px;
        margin-bottom: 10px;
    }

    .page-header h1,
    .header-content h1 {
        font-size: clamp(22px, 6vw, 30px);
        letter-spacing: 0.02em;
    }

    /* Toolbar tek satır */
    .toolbar {
        padding: 0 8px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .toolbar-left {
        flex: 1 1 auto;
        flex-wrap: nowrap;
    }

    .toolbar-right {
        flex: 0 0 auto;
    }

    .toolbar-right #sortSelect {
        font-size: 13px;
        padding: 8px 10px;
        min-width: 0;
        width: 160px;
    }

    .filter-toggle-btn {
        font-size: 12px;
        padding: 8px 10px;
    }

    .product-count-info {
        font-size: 12px;
        padding: 8px 8px;
    }

    /* Ürün grid */
    .products-container {
        padding: 6px 4px;
        border-radius: 12px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 10px 0;
    }

    .product-card {
        padding: 8px;
        border-radius: 14px;
    }

    .product-image-wrapper {
        height: 155px;
    }

    .product-lineage {
        font-size: 10px;
    }

    .product-name {
        font-size: 13px;
        margin: 6px 0 4px;
    }

    .product-material-line {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .product-footer-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        margin-bottom: 8px;
    }

    .product-rating {
        font-size: 11px;
    }

    .sale-price {
        font-size: 15px;
    }

    .original-price {
        font-size: 11px;
    }

    .add-to-cart-btn {
        font-size: 12px;
        padding: 9px 6px;
        border-radius: 8px;
    }

    .favorite-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .product-discount {
        font-size: 11px;
        padding: 5px 8px;
    }

    /* Filter panel */
    .filter-panel {
        width: 96vw;
    }

    .filter-panel-header h2 {
        font-size: 20px;
    }

    .filter-option label {
        font-size: 15px;
    }

    /* Footer */
    .page-footer {
        padding: 14px 12px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .product-image-wrapper {
        height: 200px;
    }

    .product-name {
        font-size: 15px;
    }
