:root {
    --primary-color: #ff6000;
    --secondary-color: #333;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Header */
.header {
    z-index: 1000;
}

.navbar-brand h3,
.navbar-brand .text-primary {
    color: #6348b3 !important;
}

.search-form .form-control {
    border-radius: 20px 0 0 20px;
    border-right: none;
}

.search-form .btn {
    border-radius: 0 20px 20px 0;
    background-color: #6348b3 !important;
    border-color: #6348b3 !important;
}

.search-form .btn:hover {
    background-color: #5238a0 !important;
    border-color: #5238a0 !important;
}

/* Navigation */
.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: color 0.3s;
}

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

/* Mega Menu */
.mega-menu {
    width: 100%;
    max-width: 1200px;
    padding: 1rem;
}

.mega-menu .dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.3s;
}

.mega-menu .dropdown-item:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.sub-menu {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 200px;
    margin-left: 0.5rem;
}

/* Product Card */
.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

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

.product-card img {
    transition: transform 0.3s;
}

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

.favorite-btn {
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.product-card .position-absolute {
    pointer-events: none;
}

.product-card .position-absolute button,
.product-card .position-absolute .badge {
    pointer-events: auto;
}

/* Slider */
.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Filter Sidebar */
.filter-sidebar {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* Product List */
.product-list-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.3s;
}

.product-list-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Product Detail */
.product-gallery {
    position: sticky;
    top: 100px;
}

.product-gallery .main-image {
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    background-color: #fcfcfc;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 600px;
}

.product-main-image {
    max-height: 100%;
    width: auto !important;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

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

.product-gallery .thumbnails img {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.product-gallery .thumbnails img:hover,
.product-gallery .thumbnails img.active {
    border-color: var(--primary-color);
}

/* Cart */
.cart-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.cart-item:last-child {
    border-bottom: none;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #e55500;
    border-color: #e55500;
}

/* Footer */
.footer {
    background-color: #f8f9fa;
    margin-top: auto;
}

.footer a {
    transition: color 0.3s;
}

.footer a:hover {
    color: var(--primary-color) !important;
}

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .mega-menu {
        max-width: 100%;
    }

    .sub-menu {
        position: static;
        margin-left: 1rem;
    }

    .product-gallery {
        position: static;
    }

    .product-gallery .main-image {
        height: 350px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 999;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: #e55500;
}

/* Custom Checkbox & Radio */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Price */
.price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
}

.price-new {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2em;
}

/* Rating Stars */
.rating-stars {
    color: #ffc107;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.product-badges .badge {
    display: block;
    margin-bottom: 0.5rem;
}

/* Flash Products */
.flash-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Category Icons */
.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-color);
    margin: 0 auto 0.5rem;
    font-size: 1.5rem;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 1rem 0;
}

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

.breadcrumb-item.active {
    color: #666;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
}

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

/* Tooltip */
.tooltip {
    font-size: 0.875rem;
}

/* Modal */
.modal-header {
    border-bottom: 2px solid var(--primary-color);
}

.modal-footer .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Alert */
.alert {
    border-radius: 8px;
}

/* Table */
.table-hover tbody tr:hover {
    background-color: rgba(255, 96, 0, 0.05);
}

/* Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 96, 0, 0.25);
}

/* Spinner */
.spinner-border-primary {
    color: var(--primary-color);
}

/* Utilities */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.border-primary-custom {
    border-color: var(--primary-color) !important;
}

/* Filter Hero Sections */
.filter-hero {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.filter-hero:hover {
    transform: translateY(-5px);
}

.filter-icon {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-item {
    animation: fadeInUp 0.5s ease-out both;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Filter Specific Styles */
.filter-hero[style*="populer"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.filter-hero[style*="cok_satan"] {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}

.filter-hero[style*="gunun_firsati"] {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%) !important;
}

.filter-hero[style*="firsat"] {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%) !important;
}

.filter-hero[style*="sizin_icin"] {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%) !important;
}

/* Product Card Hover Effects */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Special Badge Animations */
.badge.bg-danger.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Scroll Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

.loading-shimmer {
    animation: shimmer 2s infinite;
    background: linear-gradient(to right, #f0f0f0 8%, #e0e0e0 18%, #f0f0f0 33%);
    background-size: 1000px 100%;
}

/* Pink outline button */
.btn-outline-pink {
    color: #e91e63;
    border-color: #e91e63;
}

.btn-outline-pink:hover {
    color: #fff;
    background-color: #e91e63;
    border-color: #e91e63;
}

/* Product Grid Animations */
#productGrid .product-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease-out;
}

#productGrid .product-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Filter Hero Hover Effect */
.filter-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.filter-hero:hover::before {
    left: 100%;
}

/* Special Effects for Each Filter */
.filter-hero[style*="populer"] .filter-icon {
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.filter-hero[style*="cok_satan"] .filter-icon {
    color: #ff6b6b;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

.filter-hero[style*="gunun_firsati"] .filter-icon {
    color: #ffd93d;
    text-shadow: 0 0 20px rgba(255, 217, 61, 0.5);
    animation: pulse 1.5s infinite;
}

.filter-hero[style*="firsat"] .filter-icon {
    color: #4ecdc4;
    text-shadow: 0 0 20px rgba(78, 205, 196, 0.5);
}

.filter-hero[style*="sizin_icin"] .filter-icon {
    color: #ff6b9d;
    text-shadow: 0 0 20px rgba(255, 107, 157, 0.5);
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.1);
    }

    50% {
        transform: scale(1);
    }

    75% {
        transform: scale(1.05);
    }
}

/* Page Number Hover */
.pagination .page-link {
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 2px;
}

.pagination .page-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8533 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 96, 0, 0.4);
}