/* ====================
   General Styles
   ==================== */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
}

/* ====================
   Navigation
   ==================== */

.navbar {
    padding: 0;
}

.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
    margin-right: 0;
}

.navbar-brand img {
    max-height: 100px;
    width: auto;
    display: block;
    /* Alt boşluğu engeller */
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* ====================
   Hero Section
   ==================== */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 500px;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
}

.hero-section img {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* ====================
   Cards
   ==================== */

.card {
    border: none;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.card-img-top {
    height: 250px;
    object-fit: cover;
}

.hover-shadow {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-3px);
}

/* ====================
   Buttons
   ==================== */

.btn {
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(13, 110, 253, 0.25);
}

/* ====================
   Sections
   ==================== */

section {
    padding: 4rem 0;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

/* ====================
   Footer
   ==================== */

footer {
    background-color: var(--dark-color);
}

footer h5,
footer h6 {
    color: #fff;
    margin-bottom: 1rem;
}

footer a {
    color: #adb5bd;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
    text-decoration: none;
}

footer .social-links a {
    display: inline-block;
    margin-right: 1rem;
    transition: transform 0.3s ease;
}

footer .social-links a:hover {
    transform: scale(1.1);
}

/* ====================
   Breadcrumb
   ==================== */

.breadcrumb {
    background-color: var(--light-color);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--secondary-color);
}

/* ====================
   Product Grid
   ==================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    position: relative;
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--danger-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* ====================
   Image Gallery
   ==================== */

.product-gallery {
    position: relative;
}

.product-gallery img {
    border-radius: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-gallery img:hover {
    transform: scale(1.05);
}

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.gallery-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.25rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.gallery-thumbnails img:hover,
.gallery-thumbnails img.active {
    opacity: 1;
}

/* ====================
   Pagination
   ==================== */

.pagination {
    margin-top: 2rem;
}

.page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
    padding: 0.5rem 0.75rem;
}

.page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* ====================
   Loading Animation
   ==================== */

.loading {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ====================
   Responsive
   ==================== */

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .card-img-top {
        height: 200px;
    }
}

/* ====================
   Utilities
   ==================== */

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.text-justify {
    text-align: justify;
}

/* SEO image optimization */
/* ====================
   New Homepage Layout
   ==================== */

/* Category Sidebar */
.category-sidebar .list-group-item {
    border: none;
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    background-color: #f8f9fa;
    color: #495057;
}

.category-sidebar .list-group-item:first-child {
    border-top: 1px solid #dee2e6;
}

.category-sidebar .list-group-header {
    background-color: #e9ecef;
    padding: 0.75rem 1rem;
    font-weight: 700;
    color: #343a40;
    border-bottom: 2px solid #dee2e6;
}

.category-sidebar .list-group-item:hover,
.category-sidebar .list-group-item.active {
    background-color: #e2e6ea;
    color: var(--primary-color);
    padding-left: 1.5rem;
    /* Slide effect */
    z-index: 1;
}

.category-sidebar .badge {
    background-color: #adb5bd;
    font-weight: normal;
}

.category-sidebar .list-group-item:hover .badge {
    background-color: var(--primary-color);
}

/* Feature Boxes (Center Top) */
.feature-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    background-color: white;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.feature-box a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
}

.feature-box i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.feature-box:hover i {
    color: var(--primary-color);
}

/* Detailed Content Area */
.content-area h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.content-area p {
    color: #6c757d;
    text-align: justify;
}

/* Announcement Sidebar (Right) */
.announcement-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.announcement-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #adb5bd;
    margin-bottom: 1.5rem;
    border-bottom: 1px dashed #dee2e6;
    padding-bottom: 0.5rem;
}

.announcement-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #e9ecef;
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-item a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.2s ease;
}

.announcement-item a:hover {
    color: var(--dark-color);
    text-decoration: underline;
}

/* Markalar / Search Box (Left Top) */
.sidebar-box {
    background-color: #e9ecef;
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1.5rem;
}

.sidebar-box h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sidebar-box small {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: #6c757d;
}