/* ====================================
   MODERN & COMPACT DESIGN STYLES
   ==================================== */

/* Hero Section - Kompakt */
.hero-compact {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(255, 59, 92, 0.1) 100%);
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.hero-content-modern h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary), #ff3b5c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content-modern p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* Section Header - Modern */
.products-section-modern {
    padding: 40px 0;
}

.section-header-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.section-header-modern h2 {
    font-size: 1.8rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header-modern h2 i {
    color: var(--primary);
}

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

.view-all-link:hover {
    gap: 12px;
    color: var(--accent);
}

/* Products Grid - Compact */
.products-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .products-grid-compact {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
}

/* ====================================
   ADMIN DASHBOARD & ORDERS STYLES
   ==================================== */

/* Admin Filter Tabs */
.filter-tabs-orders {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-tab-order {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-tab-order:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

.filter-tab-order.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

/* Admin Status Badges */
.status-badge-admin {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.status-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-active {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-passive {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

/* Admin Action Buttons */
.action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.action-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.action-btn.success:hover {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.action-buttons {
    display: flex;
    gap: 5px;
}

/* Admin Custom Pagination */
.custom-pagination .pagination {
    margin-bottom: 0;
    gap: 5px;
    display: flex;
}

.custom-pagination .page-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    padding: 6px 12px;
    transition: all 0.2s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-pagination .page-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
}

.custom-pagination .page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.custom-pagination .disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    background: transparent;
}

/* Admin Alerts */
.alert-admin {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
}

.alert-admin-success {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.alert-admin-danger {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.alert-admin-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

/* Admin Code Badge */
.code-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: monospace;
}

/* Stat Icon Colors */
.stat-icon-success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.stat-icon-primary {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.stat-icon-purple {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.stat-icon-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.stat-icon-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Empty State */
.empty-state-table td {
    text-align: center;
    padding: 40px !important;
    color: rgba(255, 255, 255, 0.5);
}

.empty-state-icon {
    opacity: 0.3;
    font-size: 3em;
    margin-bottom: 1rem;
}

/* Admin Outline Button */
.btn-outline-admin {
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    background: transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-admin:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Admin Divider */
.divider-admin {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.border-top-admin {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Admin Lists */
.card-modern {
    background: rgba(26, 31, 46, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.card-modern-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-modern-body {
    padding: 20px;
}

/* Modern Form Controls (Dark UI) */
.form-group { margin-bottom: 16px; }
.form-group label { color: rgba(255,255,255,0.8); font-weight: 600; margin-bottom: 6px; display: block; }
.form-control {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    transition: all 0.2s ease;
}
.form-control::placeholder { color: rgba(255, 255, 255, 0.5); }
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}
select.form-control { appearance: none; background: rgba(26, 31, 46, 0.8); color: #fff; }
select.form-control option { background: rgba(26, 31, 46, 0.95); color: #fff; }
select.form-control optgroup { background: rgba(26, 31, 46, 0.95); color: #fff; }
textarea.form-control { min-height: 120px; resize: vertical; }

/* File input */
.form-control[type="file"] {
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

/* Simple 2-col grid for forms */
.form-grid-col-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 768px) { .form-grid-col-2 { grid-template-columns: 1fr; } }

/* Dark alerts */
.alert { padding: 12px 16px; border-radius: 10px; }
.alert-danger { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.3); color: #fff; }
.alert-success { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); color: #fff; }

/* Admin Tabs */
.nav-tabs-modern {
    border-bottom: 1px solid var(--border);
}

.nav-tabs-modern .nav-link {
    color: var(--text-muted);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.nav-tabs-modern .nav-link:hover {
    color: var(--text);
    border-color: transparent;
}

.nav-tabs-modern .nav-link.active {
    color: var(--primary);
    background: transparent;
    border-bottom-color: var(--primary);
}

/* Admin Checkbox */
.form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Admin Lists */
.list-relaxed {
    line-height: 2;
}

/* Admin Charts & Tables */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.product-detail-cell {
    max-width: 200px;
}

/* User Avatar */
.user-avatar-small {
    background: var(--primary);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Admin Responsive */
@media (max-width: 768px) {
    .welcome-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}


/* Product Card - Modern */
.product-card-modern {
    background: rgba(26, 31, 46, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card-modern:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.2);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio (Square) */
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.product-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-image-placeholder-modern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1), rgba(255, 59, 92, 0.1));
}

.product-image-placeholder-modern i {
    font-size: 3rem;
    color: var(--text-muted);
    opacity: 0.3;
}

.stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(34, 197, 94, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(10px);
}

.stock-badge.out-of-stock {
    background: rgba(239, 68, 68, 0.9);
}

/* Product Info - Modern */
.product-info-modern {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.product-title-modern {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price-modern {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin: 5px 0;
}

.btn-buy-modern {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, var(--primary), #ff3b5c);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-buy-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.4);
}

.btn-buy-modern.disabled {
    background: rgba(128, 128, 128, 0.3);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-buy-modern.disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-buy-modern.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Product Link Styles */
.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-link:hover {
    color: inherit;
}

.product-title-modern.product-link {
    cursor: pointer;
    transition: color 0.2s;
}

.product-title-modern.product-link:hover {
    color: var(--primary);
}

/* Stats Section - Kompakt */
.stats-section {
    padding: 40px 0;
    background: rgba(26, 31, 46, 0.3);
    border-top: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    text-align: center;
    padding: 20px;
    background: rgba(26, 31, 46, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ====================================
   PRODUCTS PAGE - MODERN LAYOUT
   ==================================== */

.products-layout-modern {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    padding: 30px 0;
}

@media (max-width: 992px) {
    .products-layout-modern {
        grid-template-columns: 1fr;
    }
    
    .products-sidebar {
        position: relative !important;
        top: 0 !important;
        max-height: 400px;
        margin-bottom: 30px;
    }
}

/* Sidebar - Modern & Compact */
.products-sidebar {
    background: rgba(26, 31, 46, 0.9);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 90px;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.products-sidebar h3 {
    margin: 0 0 20px 0;
    color: var(--primary);
    font-size: 1.1rem;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 5px;
}

/* Custom Scrollbar */
.category-list::-webkit-scrollbar {
    width: 6px;
}

.category-list::-webkit-scrollbar-track {
    background: rgba(26, 31, 46, 0.3);
    border-radius: 10px;
}

.category-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.category-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.category-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s ease;
    font-size: 0.9rem;
    background: transparent;
}

.category-link:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    transform: translateX(5px);
}

.category-link.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(255, 59, 92, 0.2));
    color: var(--primary);
    font-weight: 600;
    border-left: 3px solid var(--primary);
}

.category-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

/* Search Bar - Modern */
.search-bar-container {
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.search-bar-container form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    background: rgba(26, 31, 46, 0.8);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.95rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-button {
    padding: 12px 25px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* Sub Category Tabs - Compact */
.sub-category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.sub-category-tab {
    padding: 8px 16px;
    background: rgba(26, 31, 46, 0.8);
    border: 1px solid var(--border);
    border-bottom: 3px solid transparent;
    border-radius: 8px 8px 0 0;
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sub-category-tab:hover {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
}

.sub-category-tab.active {
    background: rgba(0, 212, 255, 0.15);
    color: var(--primary);
    font-weight: 600;
}

/* Products Header - Compact */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(26, 31, 46, 0.6);
    border-radius: 8px;
    position: relative;
    z-index: 10;
}

.products-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.results-count {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Products Content Grid */
.products-content {
    position: relative;
    z-index: 1;
}

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

/* Quantity Selector - Compact for Product Cards */
.quantity-select-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    justify-content: center;
}

.qty-btn-compact {
    width: 32px;
    height: 32px;
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid var(--primary);
    border-radius: 6px;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

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

.qty-input-compact {
    width: 50px;
    height: 32px;
    text-align: center;
    background: rgba(5, 8, 16, 0.5);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    line-height: 32px;
    padding: 0;
}

/* Firefox için number input ok butonlarını gizle */
.qty-input-compact {
    -moz-appearance: textfield;
}

/* Chrome, Safari, Edge için number input ok butonlarını gizle */
.qty-input-compact::-webkit-outer-spin-button,
.qty-input-compact::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Pagination - Modern */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    background: rgba(26, 31, 46, 0.6);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination .current {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 600;
}

.pagination .disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content-modern h1 {
        font-size: 1.8rem;
    }
    
    .section-header-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ====================================
   PRODUCT DETAIL PAGE
   ==================================== */

/* Breadcrumb */
.breadcrumb-section {
    padding: 20px 0;
    background: rgba(26, 31, 46, 0.3);
    border-bottom: 1px solid var(--border);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

.breadcrumb-nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-nav a:hover {
    color: var(--primary);
}

.breadcrumb-nav span {
    color: var(--text);
}

.breadcrumb-nav i {
    color: var(--text-muted);
    font-size: 0.7rem;
}

/* Product Detail Section */
.product-detail-section {
    padding: 40px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

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

/* Product Image */
.product-detail-image {
    position: relative;
    background: rgba(26, 31, 46, 0.6);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    height: fit-content;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.product-detail-image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 192, 67, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.3;
}

.stock-badge-large {
    position: absolute;
    top: 50px;
    right: 50px;
    background: rgba(34, 197, 94, 0.95);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

.stock-badge-large.out-of-stock {
    background: rgba(239, 68, 68, 0.95);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

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

.product-detail-title {
    font-size: 2.5rem;
    margin: 0;
    color: var(--text);
    line-height: 1.2;
}

.product-detail-category {
    margin: 10px 0;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.stars {
    display: flex;
    gap: 5px;
    color: #FFD700;
}

.product-rating span {
    font-weight: 600;
    font-size: 1.1rem;
}

.review-count {
    color: var(--text-muted);
    font-size: 0.9rem !important;
}

.product-description {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.product-description p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
}

.product-features-list {
    background: rgba(26, 31, 46, 0.4);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.product-features-list h3 {
    margin-bottom: 15px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-features-list ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.product-features-list li i {
    color: var(--success);
}

/* Info Boxes */
.product-info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-box {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-box i {
    font-size: 2rem;
    color: var(--primary);
}

.info-box strong {
    display: block;
    margin-bottom: 5px;
}

.info-box span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Purchase Box (Sticky) */
.purchase-box {
    position: sticky;
    top: 100px;
    background: rgba(26, 31, 46, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
}

.purchase-box-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.purchase-seller {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
}

.seller-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.seller-badge i {
    color: var(--primary);
}

.seller-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.seller-rating i {
    color: #FFD700;
}

.purchase-price {
    text-align: center;
}

.price-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

/* Quantity Selector */
.quantity-selector {
    padding: 15px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.quantity-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.quantity-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.quantity-input-group input {
    flex: 1;
    height: 40px;
    text-align: center;
    background: rgba(5, 8, 16, 0.5);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 600;
}

.quantity-selector small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
}

.total-price div {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.btn-purchase {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary), #ff3b5c);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-purchase:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.4);
}

.btn-purchase.disabled {
    background: rgba(128, 128, 128, 0.3);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-purchase.disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-whatsapp-detail {
    width: 100%;
    padding: 12px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.btn-whatsapp-detail:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* Product Tabs */
.product-tabs-section {
    padding: 40px 0;
}

.product-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border);
    overflow-x: auto;
}

.tab-btn {
    padding: 15px 25px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--text);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
    background: rgba(26, 31, 46, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s;
}

.tab-content h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

.tab-content h4 {
    margin: 20px 0 10px 0;
    color: var(--text);
}

.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

.feature-list li {
    padding: 10px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 8px;
}

.feature-list li:before {
    content: "✓ ";
    color: var(--success);
    font-weight: bold;
    margin-right: 8px;
}

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

.specs-table tr {
    border-bottom: 1px solid var(--border);
}

.specs-table td {
    padding: 15px;
}

.specs-table td:first-child {
    width: 200px;
    color: var(--text-muted);
}

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

.delivery-step {
    text-align: center;
    padding: 20px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 12px;
}

.delivery-step i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.delivery-step h4 {
    margin-bottom: 10px;
}

.delivery-step p {
    color: var(--text-muted);
}

.return-policy {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.return-policy p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 8px;
}

.return-policy i {
    color: var(--primary);
    margin-top: 2px;
}

@media (max-width: 992px) {
    .product-detail-title {
        font-size: 1.8rem;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .purchase-box {
        position: relative;
        top: 0;
    }
}

/* ==================== MOBİL ÜRÜN LİSTESİ FIX (MODERN STYLES) ==================== */

@media (max-width: 768px) {
    /* 1. Ürün Izgarasını 2'li Yap */
    .products-content .products-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* Zorla 2 kolon */
        gap: 10px !important; /* Aradaki boşluğu azalt */
    }

    /* 2. Sidebar'ı (Kategorileri) Mobilde Gizle (Yer Kaplamasın) */
    .products-sidebar {
        display: none !important; 
    }
    
    .products-layout-modern {
        grid-template-columns: 1fr !important; /* Tek sütuna düşür */
        gap: 15px !important;
    }

    /* 3. Ürün Kartını Sıkılaştır */
    .product-card-modern {
        padding: 8px !important; /* İç boşluğu azalt */
    }

    .product-image-wrapper {
        border-radius: 8px !important;
    }

    /* 4. Yazıları Küçült (Taşmasın) */
    .product-title-modern {
        font-size: 13px !important;
        margin-bottom: 5px !important;
        height: 34px; /* 2 satırda tut */
        overflow: hidden;
    }

    .product-price-modern {
        font-size: 16px !important;
        margin: 5px 0 !important;
    }

    /* 5. Butonları Küçült */
    .btn-buy-modern {
        padding: 8px !important;
        font-size: 12px !important;
        height: 35px !important;
    }

    .quantity-select-compact {
        transform: scale(0.9); /* Miktar seçiciyi biraz ufalt */
        margin: 5px 0 !important;
    }
    
    /* 6. Stok Rozeti */
    .stock-badge {
        font-size: 9px !important;
        padding: 2px 6px !important;
        top: 5px !important;
        right: 5px !important;
    }
}

/* Çok Küçük Ekranlar (iPhone SE vb.) için Tekli */
@media (max-width: 360px) {
    .products-content .products-grid {
        grid-template-columns: 1fr !important; /* Tek kolon */
    }
}
