/* ══════════════════════════════════════════════════════════════
   MODERN PAGES CSS - FLORAL DESIGN SYSTEM
   Category, Product Search, Product Card Styles
   ══════════════════════════════════════════════════════════════ */

:root {
    --primary-color: #e91e63;
    --primary-dark: #c2185b;
    --secondary-color: #4caf50;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --floral-rose: #e8b4b8;
    --floral-blush: #f9e4e8;
    --floral-sage: #9caf88;
    --floral-cream: #faf8f5;
    --floral-dark: #2d3436;
    --floral-muted: #636e72;
    --floral-gold: #d4a574;
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-hover: 0 12px 40px rgba(0,0,0,0.12);
    --radius-lg: 20px;
    --radius-md: 12px;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ══════════════════════════════════════════════════════════════
   PRODUCT CARD STYLES
   ══════════════════════════════════════════════════════════════ */

.product-card-wrapper {
    height: 100%;
}

.product-card-modern {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* Image Section */
.product-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: linear-gradient(135deg, #faf8f5 0%, #f5f0eb 100%);
}

.product-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

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

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

/* Badges */
.product-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.badge-discount {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.badge-new {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* Same Day Badge */
.badge-same-day {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    z-index: 2;
}

.badge-same-day i {
    font-size: 0.85rem;
    color: #ffeb3b;
}

/* Quick View Overlay */
.product-overlay {
    position: absolute;
    inset: 0;
    background: rgba(45, 52, 54, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 3;
}

.product-card-modern:hover .product-overlay {
    opacity: 1;
    visibility: visible;
}

.btn-quick-view {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    color: #2d3436;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.product-card-modern:hover .btn-quick-view {
    transform: translateY(0);
}

.btn-quick-view:hover {
    background: #e91e63;
    color: white;
}

/* Content Section */
.product-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    font-size: 0.75rem;
    color: #9caf88;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-bottom: 6px;
}

.product-title {
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 auto;
    line-height: 1.4;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a {
    color: #2d3436;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #e91e63;
}

/* Price Section */
.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1rem 0;
}

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

.price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e91e63;
}

/* View Button */
.btn-view-product {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-view-product:hover {
    background: linear-gradient(135deg, #c2185b 0%, #ad1457 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

/* ══════════════════════════════════════════════════════════════
   PRODUCTS GRID - CSS Grid Layout
   ══════════════════════════════════════════════════════════════ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Products Grid içindeki card wrapper'lar için */
.products-grid > .product-card-wrapper {
    width: 100%;
}

/* ══════════════════════════════════════════════════════════════
   BOOTSTRAP ROW COMPATIBILITY
   Home/Index gibi row g-4 kullanan yerler için
   ══════════════════════════════════════════════════════════════ */

.row > .product-card-wrapper {
    /* Bootstrap row içinde kullanıldığında col davranışı */
    flex: 0 0 auto;
    width: 25%; /* col-lg-3 gibi */
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
}

@media (max-width: 1199px) {
    .row > .product-card-wrapper {
        width: 33.333333%; /* col-lg daha küçükken 3'lü */
    }
}

@media (max-width: 991px) {
    .row > .product-card-wrapper {
        width: 33.333333%; /* col-md-4 */
    }
}

@media (max-width: 767px) {
    .row > .product-card-wrapper {
        width: 50%; /* col-sm-6 */
    }
}

@media (max-width: 575px) {
    .row > .product-card-wrapper {
        width: 50%; /* 2 sütun */
    }
}

/* ══════════════════════════════════════════════════════════════
   CATEGORY HERO SECTION
   ══════════════════════════════════════════════════════════════ */

.category-hero-modern {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--floral-blush) 0%, var(--floral-cream) 100%);
}

.category-hero-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 8s ease;
}

.category-hero-modern:hover img {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(45, 52, 54, 0.3) 0%, rgba(45, 52, 54, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: white;
    padding: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* Simple Hero (no image) */
.category-hero-simple {
    background: linear-gradient(135deg, var(--floral-blush) 0%, white 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.category-hero-simple::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--floral-rose) 0%, transparent 70%);
    opacity: 0.3;
}

.category-hero-simple h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    color: var(--floral-dark);
    margin: 0;
    position: relative;
}

/* ══════════════════════════════════════════════════════════════
   SEARCH HERO SECTION
   ══════════════════════════════════════════════════════════════ */

.search-hero {
    background: linear-gradient(135deg, var(--floral-blush) 0%, white 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.search-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--floral-rose) 0%, transparent 70%);
    opacity: 0.2;
    animation: floatBg 15s ease-in-out infinite;
}

.search-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--floral-sage) 0%, transparent 70%);
    opacity: 0.15;
    animation: floatBg 20s ease-in-out infinite reverse;
}

@keyframes floatBg {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.search-hero-content {
    position: relative;
    z-index: 1;
}

.search-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 400;
    color: var(--floral-dark);
    margin-bottom: 0.5rem;
}

.search-hero .search-query {
    color: var(--floral-rose);
    font-style: italic;
}

.search-hero p {
    color: var(--floral-muted);
    font-size: 1rem;
    margin: 0;
}

/* Inline Search Box */
.search-box-inline {
    max-width: 500px;
    margin-top: 1.5rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    background: white;
    border-radius: 50px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
}

.search-input-wrapper:focus-within {
    border-color: var(--floral-rose);
    box-shadow: 0 0 0 4px rgba(232, 180, 184, 0.2);
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

.search-input-wrapper button {
    padding: 1rem 1.75rem;
    background: var(--floral-dark);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.search-input-wrapper button:hover {
    background: #1a1f20;
}

/* Active Filters Tags */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: white;
    border: 1px solid var(--floral-rose);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--floral-dark);
}

.filter-tag i {
    color: var(--floral-rose);
}

/* ══════════════════════════════════════════════════════════════
   BREADCRUMB
   ══════════════════════════════════════════════════════════════ */

.breadcrumb-modern {
    background: white;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 0;
}

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

.breadcrumb-modern .breadcrumb-item a {
    color: var(--floral-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 0.875rem;
}

.breadcrumb-modern .breadcrumb-item a:hover {
    color: var(--floral-rose);
}

.breadcrumb-modern .breadcrumb-item.active {
    color: var(--floral-dark);
    font-weight: 500;
}

.breadcrumb-modern .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: var(--floral-rose);
}

/* ══════════════════════════════════════════════════════════════
   CHILD CATEGORIES
   ══════════════════════════════════════════════════════════════ */

.child-categories {
    padding: 2rem 0;
    background: var(--floral-cream);
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 50px;
    color: var(--floral-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.category-chip:hover {
    background: var(--floral-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.category-chip .badge {
    background: var(--floral-rose);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
}

.category-chip:hover .badge {
    background: white;
    color: var(--floral-dark);
}

/* ══════════════════════════════════════════════════════════════
   MAIN CONTENT AREAS
   ══════════════════════════════════════════════════════════════ */

.category-content,
.search-content {
    padding: 3rem 0;
    background: var(--floral-cream);
    min-height: 60vh;
}

/* ══════════════════════════════════════════════════════════════
   FILTER SIDEBAR
   ══════════════════════════════════════════════════════════════ */

.filter-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.filter-header {
    background: linear-gradient(135deg, var(--floral-dark) 0%, #3d4a4c 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-header h5 {
    margin: 0;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.filter-body {
    padding: 1.5rem;
}

.filter-section {
    margin-bottom: 1.75rem;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section h6 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--floral-muted);
    margin-bottom: 1rem;
    font-weight: 600;
}

.filter-input {
    border: 1px solid #e9ecef;
    border-radius: var(--radius-md);
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    width: 100%;
}

.filter-input:focus {
    border-color: var(--floral-rose);
    box-shadow: 0 0 0 3px rgba(232, 180, 184, 0.2);
    outline: none;
}

/* Custom Checkbox */
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

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

.filter-checkbox input {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #ddd;
    cursor: pointer;
    accent-color: var(--floral-rose);
}

.filter-checkbox label {
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--floral-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.filter-checkbox label i {
    font-size: 1rem;
}

/* Category List in Filter */
.category-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 280px;
    overflow-y: auto;
}

.category-filter-list::-webkit-scrollbar {
    width: 4px;
}

.category-filter-list::-webkit-scrollbar-thumb {
    background: var(--floral-rose);
    border-radius: 4px;
}

.category-filter-item {
    margin-bottom: 0.25rem;
}

.category-filter-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-md);
    color: var(--floral-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.category-filter-link:hover {
    background: var(--floral-blush);
    color: var(--floral-dark);
}

.category-filter-link.active {
    background: var(--floral-rose);
    color: white;
    font-weight: 500;
}

.category-filter-link .count-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    background: rgba(0,0,0,0.05);
}

.category-filter-link.active .count-badge {
    background: rgba(255,255,255,0.3);
}

/* Filter Buttons */
.btn-filter {
    width: 100%;
    padding: 0.875rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-filter-primary {
    background: var(--floral-dark);
    color: white;
    border: none;
}

.btn-filter-primary:hover {
    background: #1a1f20;
    color: white;
    transform: translateY(-1px);
}

.btn-filter-secondary {
    background: transparent;
    color: var(--floral-muted);
    border: 1px solid #ddd;
    margin-top: 0.75rem;
}

.btn-filter-secondary:hover {
    background: #f8f9fa;
    color: var(--floral-dark);
}

/* ══════════════════════════════════════════════════════════════
   PRODUCTS HEADER
   ══════════════════════════════════════════════════════════════ */

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.products-info h4 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--floral-dark);
    margin-bottom: 0.25rem;
}

.products-info h4 .highlight {
    color: var(--floral-rose);
}

.products-count {
    color: var(--floral-muted);
    font-size: 0.9rem;
    margin: 0;
}

.products-count strong {
    color: var(--floral-dark);
    font-weight: 600;
}

.sort-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-wrapper label {
    color: var(--floral-muted);
    font-size: 0.875rem;
    white-space: nowrap;
}

.sort-select {
    padding: 0.625rem 2.5rem 0.625rem 1rem;
    border: 1px solid #e9ecef;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--floral-dark);
    background: white;
    cursor: pointer;
    transition: var(--transition-smooth);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23636e72' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.sort-select:focus {
    border-color: var(--floral-rose);
    box-shadow: 0 0 0 3px rgba(232, 180, 184, 0.2);
    outline: none;
}

/* ══════════════════════════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════════════════════════ */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.empty-state-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--floral-blush) 0%, white 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.empty-state-icon::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 2px dashed var(--floral-rose);
    border-radius: 50%;
    opacity: 0.5;
    animation: spin 20s linear infinite;
}

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

.empty-state-icon i {
    font-size: 3rem;
    color: var(--floral-rose);
}

.empty-state h5 {
    color: var(--floral-dark);
    font-weight: 500;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.empty-state p {
    color: var(--floral-muted);
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.btn-browse {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--floral-dark);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.btn-browse:hover {
    background: #1a1f20;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* ══════════════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════════════ */

.pagination-modern {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.pagination-modern .page-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid #e9ecef;
    color: var(--floral-dark);
    font-weight: 500;
    transition: var(--transition-smooth);
    background: white;
    text-decoration: none;
}

.pagination-modern .page-link:hover {
    background: var(--floral-blush);
    border-color: var(--floral-rose);
    color: var(--floral-dark);
}

.pagination-modern .page-item.active .page-link {
    background: var(--floral-dark);
    border-color: var(--floral-dark);
    color: white;
}

.pagination-modern .page-item.disabled .page-link {
    background: #f8f9fa;
    color: #ccc;
    cursor: not-allowed;
}

/* ══════════════════════════════════════════════════════════════
   MOBILE FILTER TOGGLE
   ══════════════════════════════════════════════════════════════ */

.filter-toggle-mobile {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 1rem 2rem;
    background: var(--floral-dark);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-toggle-mobile:hover {
    background: #1a1f20;
    transform: translateX(-50%) translateY(-2px);
}

/* Mobile Filter Overlay */
.filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-overlay.show {
    opacity: 1;
}

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

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE STYLES
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .filter-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 320px;
        height: 100vh;
        z-index: 1060;
        padding: 0;
        background: white;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .filter-sidebar.show {
        display: block;
        transform: translateX(0);
    }

    .filter-sidebar .filter-card {
        border-radius: 0;
        height: 100vh;
        overflow-y: auto;
    }

    .filter-sidebar .filter-header {
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .filter-close {
        display: block;
        margin-left: auto;
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0;
        line-height: 1;
    }

    .filter-toggle-mobile {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .filter-overlay.show {
        display: block;
    }

    .products-col {
        width: 100%;
    }

    .category-content,
    .search-content {
        padding: 2rem 0 5rem;
    }

    .search-hero {
        padding: 2rem 0;
    }

    .search-box-inline {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .category-hero-modern {
        min-height: 240px;
    }

    .products-header {
        flex-direction: column;
        align-items: stretch;
    }

    .sort-wrapper {
        justify-content: space-between;
    }

    .child-categories {
        padding: 1.5rem 0;
    }

    .category-chip {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .search-input-wrapper button span {
        display: none;
    }

    /* Product Card Mobile Adjustments */
    .product-card-content {
        padding: 1rem;
    }

    .product-title {
        font-size: 0.9rem;
        min-height: auto;
    }

    .price-current {
        font-size: 1.1rem;
    }

    .btn-view-product {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .badge-discount,
    .badge-new,
    .badge-same-day {
        padding: 4px 10px;
        font-size: 0.7rem;
    }

    /* Mobile'da overlay yerine her zaman buton görünür */
    .product-overlay {
        display: none;
    }
}

@media (max-width: 575px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .pagination-modern .page-link {
        width: 38px;
        height: 38px;
        font-size: 0.875rem;
    }

    .product-card-modern {
        border-radius: 10px;
    }

    .product-card-image {
        aspect-ratio: 1;
    }
    
    .product-card-content {
        padding: 10px;
    }
    
    .product-category {
        font-size: 0.65rem;
        margin-bottom: 4px;
    }
    
    .product-title {
        font-size: 0.8rem;
        line-height: 1.3;
        min-height: 2.6em;
        margin-bottom: 6px;
    }
    
    .product-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        margin: 8px 0;
    }
    
    .price-old {
        font-size: 0.75rem;
    }
    
    .price-current {
        font-size: 1rem;
    }
    
    .btn-view-product {
        padding: 8px 12px;
        font-size: 0.75rem;
        border-radius: 8px;
        gap: 4px;
    }
    
    .btn-view-product i {
        font-size: 0.85rem;
    }
    
    /* Badges - daha kompakt */
    .product-badges {
        top: 8px;
        left: 8px;
        gap: 4px;
    }
    
    .badge-discount,
    .badge-new {
        padding: 3px 8px;
        font-size: 0.65rem;
        border-radius: 12px;
    }
    
    .badge-same-day {
        bottom: 8px;
        left: 8px;
        padding: 4px 8px;
        font-size: 0.65rem;
        border-radius: 12px;
    }
    
    .badge-same-day i {
        font-size: 0.7rem;
    }
    
    .badge-same-day span {
        display: none;
    }
    
    /* Hover efektini kaldır - mobilde gereksiz */
    .product-card-modern:hover {
        transform: none;
        box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    }
    
    .product-card-modern:hover .product-card-image img {
        transform: none;
    }
}

/* Very small screens */
@media (max-width: 374px) {
    .products-grid {
        gap: 0.5rem;
    }
    
    .product-card-content {
        padding: 8px;
    }
    
    .product-title {
        font-size: 0.75rem;
    }
    
    .price-current {
        font-size: 0.9rem;
    }
    
    .btn-view-product {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
}
