/* Products Page Styles */
:root {
    --primary-color: #198754;
    --secondary-color: #20c997;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* Logo */
.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

/* Header Top - Mobile Slogan Animation */
.header-top {
    position: relative;
    overflow: hidden;
}

.slogan-scroll-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.slogan-scroll {
    display: inline-flex;
    white-space: nowrap;
    animation: scroll-slogans 15s linear infinite;
    gap: 4rem;
    align-items: center;
}

.slogan-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.slogan-item small {
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

@keyframes scroll-slogans {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Desktop: Hide mobile slogan scroll */
@media (min-width: 768px) {
    .slogan-scroll-wrapper {
        display: none;
    }
}

/* Mobile: Hide desktop phone number */
@media (max-width: 767.98px) {
    .header-top .col-md-6:first-child {
        display: none;
    }
}

/* Navbar */
.navbar {
    padding: 1rem 0;
}

.nav-link {
    font-weight: 500;
    color: #333 !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

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

/* Header Buttons - Minimal Style */
.navbar .btn-minimal {
    background: transparent;
    border: none;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.navbar .btn-minimal:hover {
    background: rgba(25, 135, 84, 0.1);
    color: var(--primary-color);
}

.navbar .btn-minimal i {
    font-size: 1.1rem;
}

.navbar .dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 200px;
    margin-top: 0.5rem;
}

.navbar .dropdown-item {
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    color: #333;
    transition: all 0.3s ease;
}

.navbar .dropdown-item:hover {
    background: rgba(25, 135, 84, 0.1);
    color: var(--primary-color);
    padding-left: 2rem;
}

.navbar .dropdown-item i {
    color: var(--primary-color);
    width: 20px;
}

.navbar .dropdown-divider {
    margin: 0.5rem 0;
    opacity: 0.1;
}

.cart-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.45rem;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 4rem 0 2rem;
    margin-bottom: 0;
}

.page-header h1 {
    margin-bottom: 1rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: white;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

/* Search Box */
.search-box {
    position: relative;
    display: flex;
}

.search-box input {
    border-radius: 25px 0 0 25px;
    border-right: none;
}

.search-box button {
    border-radius: 0 25px 25px 0;
}

/* Category List */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.75rem;
}

.category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--light-color);
    border-radius: 10px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-list a:hover,
.category-list a.active {
    background: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.category-list a i {
    margin-right: 0.5rem;
}

.category-list .count {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Price Filter */
.price-filter .price-inputs {
    margin-bottom: 1rem;
}

/* Rating Filter */
.rating-filter .form-check {
    margin-bottom: 0.75rem;
}

.rating-filter label {
    cursor: pointer;
}

/* Products Toolbar */
.products-toolbar {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.instagram-button {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(225, 48, 108, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease;
    text-decoration: none;
}

    .instagram-button:hover {
        transform: scale(1.1);
        color: white;
        box-shadow: 0 6px 25px rgba(225, 48, 108, 0.6);
    }

/* Mobile Grid Toggle */
.mobile-grid-toggle {
    display: flex;
    align-items: center;
}

.mobile-grid-toggle .btn-group {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
}

.mobile-grid-toggle .grid-btn {
    border-color: #dee2e6;
    color: #6c757d;
    padding: 0.4rem 0.9rem;
    transition: all 0.3s ease;
    background: white;
}

.mobile-grid-toggle .grid-btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

.mobile-grid-toggle .grid-btn.active {
    background-color: #198754;
    border-color: #198754;
    color: white;
}

.mobile-grid-toggle .grid-btn.active:hover {
    background-color: #157347;
    border-color: #157347;
}

.mobile-grid-toggle .grid-btn i {
    font-size: 0.9rem;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.product-image {
    height: 300px;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.product-image:hover .product-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.product-overlay a {
    z-index: 2;
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.product-rating {
    color: #ffc107;
    font-size: 0.9rem;
    margin-bottom: auto;
}

.product-rating span {
    color: #666;
    font-size: 0.85rem;
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Georgia', serif;
    letter-spacing: -.5px;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border: none;
    margin: 0 0.25rem;
    border-radius: 8px;
}

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

.pagination .page-link:hover {
    background: var(--light-color);
}

/* Footer */
.footer {
    background: #1a1a1a !important;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-contact li {
    color: #adb5bd;
}

.footer-contact i {
    color: var(--primary-color);
    width: 20px;
}

.social-links a {
    transition: transform 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    color: white;
}

/* Pagination Modern */
.pagination-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item-modern {
    margin: 0;
}

.page-link-modern {
    background: white;
    border: 1px solid #e0e0e0;
    color: #495057;
    padding: 0.5rem 0.75rem;
    min-width: 40px;
    height: 40px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-link-modern:hover:not(:disabled):not(.active) {
    background: rgba(25, 135, 84, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.page-link-modern.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.page-link-modern:disabled {
    background: #f8f9fa;
    border-color: #e0e0e0;
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.6;
}

.page-link-modern i {
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        position: relative;
        top: 0;
    }
    
    .product-image {
        height: 250px;
    }
}

/* Alert Notifications */
.alert-error {
    background-color: #dc3545 !important;
    color: #fff !important;
    border: none !important;
    font-weight: 500 !important;
}

.alert-success {
    background-color: #198754 !important;
    color: #fff !important;
    border: none !important;
    font-weight: 500 !important;
}

.alert-warning {
    background-color: #ffc107 !important;
    color: #212529 !important;
    border: none !important;
    font-weight: 500 !important;
}

.alert-info {
    background-color: #0dcaf0 !important;
    color: #212529 !important;
    border: none !important;
    font-weight: 500 !important;
}

.alert-danger {
    background-color: #dc3545 !important;
    color: #fff !important;
    border: none !important;
    font-weight: 500 !important;
}

@media (max-width: 768px) {
    .page-header {
        padding: 3rem 0 1.5rem;
    }
    
    /* Products Grid - Mobile optimization */
    #productsGrid {
        gap: 0.5rem !important;
        margin: 0 -0.25rem;
    }
    
    #productsGrid .product-item {
        padding: 0 0.25rem !important;
        margin-bottom: 0.5rem;
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    
    /* Toolbar - Mobile: Görünüm üstte, Varsayılan altta */
    .products-toolbar .d-flex {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: stretch !important;
    }
    
    .mobile-grid-toggle {
        order: 1;
        width: 100%;
        justify-content: center;
        margin-bottom: 0 !important;
    }
    
    .products-toolbar #sortSelect {
        order: 2;
        width: 100% !important;
    }
}

/* Extra Small Mobile (<576px) */
@media (max-width: 575.98px) {
    #productsGrid {
        gap: 0.4rem !important;
        margin: 0 -0.2rem !important;
        display: flex !important;
        flex-wrap: wrap !important;
    }
    
    #productsGrid .product-item {
        padding: 0 0.2rem !important;
        flex: 0 0 calc(50% - 0.2rem) !important;
        max-width: calc(50% - 0.2rem) !important;
        width: calc(50% - 0.2rem) !important;
    }
    
    #productsGrid.row {
        --bs-gutter-x: 0.4rem !important;
    }
}

/* Small Mobile (≥576px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    #productsGrid {
        gap: 0.5rem !important;
        margin: 0 -0.25rem !important;
        display: flex !important;
        flex-wrap: wrap !important;
    }
    
    #productsGrid .product-item {
        padding: 0 0.25rem !important;
        flex: 0 0 calc(50% - 0.25rem) !important;
        max-width: calc(50% - 0.25rem) !important;
        width: calc(50% - 0.25rem) !important;
    }
    
    #productsGrid.row {
        --bs-gutter-x: 0.5rem !important;
    }
}

/* Medium Mobile/Tablet (≥768px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    #productsGrid {
        gap: 0.75rem !important;
        margin: 0 -0.4rem !important;
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .instagram-button {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 80px;
        right: 20px;
    }

    #productsGrid .product-item {
        padding: 0 0.4rem !important;
        flex: 0 0 calc(50% - 0.4rem) !important;
        max-width: calc(50% - 0.4rem) !important;
        width: calc(50% - 0.4rem) !important;
    }
    
    #productsGrid.row {
        --bs-gutter-x: 0.75rem !important;
    }
    
    .footer .col-lg-3,
    .footer .col-lg-4,
    .footer .col-md-6 {
        text-align: center !important;
        margin-bottom: 2rem;
    }
    
    .footer .social-links {
        justify-content: center;
    }
    
    .footer-links,
    .footer-contact {
        text-align: center !important;
    }
    
    .footer-payment-icons,
    .footer-badges {
        justify-content: center;
    }
    
    .products-toolbar .row > div {
        text-align: center !important;
        margin-bottom: 1rem;
    }
    
    .products-toolbar .row > div:last-child {
        margin-bottom: 0;
    }
    
    .products-toolbar .d-flex {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: stretch !important;
    }
    
    .mobile-grid-toggle {
        margin-bottom: 0 !important;
        width: 100%;
        justify-content: center;
        order: 1;
    }
    
    .mobile-grid-toggle .btn-group {
        width: auto;
        margin: 0 auto;
    }
    
    .mobile-grid-toggle .grid-btn {
        flex: none;
    }
    
    .products-toolbar #sortSelect {
        width: 100% !important;
        order: 2;
    }
    
    .products-toolbar .row > div:last-child {
        margin-bottom: 0;
    }
    
    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}

/* Favorite Button */
.product-card {
    position: relative;
}

.product-card .favorite-btn,
.package-card .favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: 10;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.product-card .favorite-btn:hover,
.package-card .favorite-btn:hover {
    color: #ff4d4d;
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(255, 77, 77, 0.2);
}

.product-card .favorite-btn.active,
.package-card .favorite-btn.active {
    color: #ff4d4d;
    background: rgba(255, 245, 245, 0.95);
}

.product-card .favorite-btn i,
.package-card .favorite-btn i {
    font-size: 0.95rem;
}

