:root {
    --primary-color: #00ff66;
    /* Spring Green */
    --secondary-color: #001f3f;
    /* Prussian Blue */
    --dark-blue: #00162b;
    --light-gray: #f4f7f6;
    --white: #ffffff;
    --text-main: #333e48;
    --text-muted: #777;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
}

[data-bs-theme="dark"] {
    --primary-color: #00ff66;
    --secondary-color: #e0f2fe; 
    --dark-blue: #0f172a; 
    --white: #212529; 
    --light-gray: #2b3035;
    --text-main: #f8f9fa; 
    --text-muted: #adb5bd;
}

body {
    font-family: 'Outfit', 'Inter', 'Jost', sans-serif;
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
}

/* Header Stilleri */
.top-bar {
    font-size: 0.85rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.main-header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.search-input {
    border-radius: 50px 0 0 50px;
    border: 1px solid #e1e1e1;
    height: 48px;
    padding-left: 25px;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: none;
    background-color: #fafafa;
}

.search-btn {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 0 50px 50px 0;
    width: 60px;
    height: 48px;
    border: none;
    transition: var(--transition-smooth);
}

.search-btn:hover {
    background-color: var(--dark-blue);
    transform: none;
}

/* Kategori Menüsü */
.category-menu-header {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 700;
    padding: 12px 15px;
    border-radius: 5px 5px 0 0;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.list-group-item {
    border-left: none;
    border-right: none;
    font-size: 0.95rem;
    padding: 12px 20px;
    color: var(--secondary-color);
}

.list-group-item:hover {
    color: var(--primary-color);
    background-color: #f9f9f9;
}

/* Ana Menü */
.navbar-nav .nav-link {
    font-weight: 600;
    color: var(--secondary-color);
    margin-right: 15px;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* Hero Banner */
.hero-section {
    background-color: var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.hero-content h1 {
    font-weight: 700;
    font-size: 3rem;
    line-height: 1.2;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border: none;
    padding: 10px 30px;
    font-weight: 700;
    color: var(--secondary-color);
}

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

/* Ürün Kartları */
.product-card {
    border: none;
    transition: all 0.3s;
}

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

.product-img-wrap {
    position: relative;
    height: 250px;
    background-color: var(--light-white);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-wrap img {
    max-height: 90%;
    max-width: 90%;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #dc3545;
    color: white;
    padding: 2px 8px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 3px;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--white);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: 0.3s;
}

.product-card:hover .wishlist-btn {
    opacity: 1;
}

.price-new {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-right: 5px;
}

/* Subcategory Flyout Menu */
.category-item {
    cursor: pointer;
    padding: 8px 15px !important;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f8f9fa !important;
}

.category-item:last-child {
    border-bottom: none !important;
}

.subcategory-menu {
    position: absolute;
    top: -1px;
    left: 100%;
    width: 240px;
    background: var(--white);
    z-index: 1050;
    display: none;
    border: 1px solid #eee;
    box-shadow: 10px 0 20px rgba(0, 0, 0, 0.05);
    min-height: 101%;
    border-left: 2px solid var(--primary-color);
}

.category-item:hover {
    background-color: #f8f9fa !important;
    padding-left: 20px !important;
}

.category-item:hover>.subcategory-menu {
    display: block;
}

.subcategory-menu .dropdown-item {
    font-size: 0.9rem;
    padding: 8px 20px;
    color: var(--secondary-color);
    transition: all 0.2s ease;
}

.subcategory-menu .dropdown-item:hover {
    background-color: transparent;
    color: var(--primary-color);
    padding-left: 25px;
}

/* Footer */
.main-footer {
    background-color: #001224; /* Made darker than original secondary color */
    color: #cbd5e0;
    padding: 80px 0 0 0;
    margin-top: 100px;
}

.footer-heading {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-link {
    color: #cbd5e0;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-bottom {
    background: var(--white);
    color: var(--text-main);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
    font-size: 0.85rem;
}
