 /* ARCHIVE PAGE CSS */
/**
 * WooCommerce Archive Page Styles
 * Add this to your theme's CSS or create a separate file
 */

 /* Tour Card Base */
.tour-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.tour-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.tour-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Image Section */
.tour-image {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.tour-image a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

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

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

.image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f0f2f5;
}

.image-placeholder i {
    font-size: 48px;
    color: #cbd5e1;
}

/* Badges */
.discount-badge,
.featured-badge {
    position: absolute;
    top: 16px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 4px;
}

.discount-badge {
    left: 16px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.featured-badge {
    right: 16px;
    background: rgba(251, 191, 36, 0.9);
    color: #78350f;
}

/* Content Section */
.tour-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tour-header {
    margin-bottom: 16px;
}

.tour-name {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.tour-name a {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tour-name a:hover {
    color: #2563eb;
}

.destinations {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

.destinations i {
    color: #2563eb;
    font-size: 14px;
}

.description {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

/* Meta Info */
.tour-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 30px;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

/* .meta-item stilini güncelle */
.meta-item {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    align-items: center;
    font-size: 14px;
    color: #64748b;
}

.meta-item i {
    color: #2563eb;
    font-size: 16px;
    justify-self: center;
}

.meta-item strong {
    font-weight: 600;
    color: #334155;
}

/* Footer */
.tour-footer {
    margin-top: auto;
}

.rating-price {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
}

/* Rating */
.rating-section {
    flex: 1;
}

.rating-label {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 10px 0;
}

.stars {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stars i {
    font-size: 24px;
    color: #fbbf24;
}

.stars i.far {
    color: #e5e7eb;
}

.rating-count {
    margin-left: 8px;
    font-size: 13px;
    color: #94a3b8;
}

/* Price Section */
.price-section {
    text-align: right;
}

.price-label {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 4px 0;
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 8px;
    justify-content: flex-end;
}

.price {
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
}

/* Book Button */
.book-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.book-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
    color: white;
}

.book-btn i {
    transition: transform 0.3s ease;
}

.book-btn:hover i {
    transform: translateX(4px);
}

/* LIST VIEW STYLES - YATAY GÖRÜNÜM */
.products-wrapper.list-view .tour-card {
    margin-bottom: 24px;
}

.products-wrapper.list-view .tour-card-inner {
    flex-direction: row;
    align-items: stretch;
}

.products-wrapper.list-view .tour-image {
    width: 380px; /* Sabit genişlik */
    min-height: 280px; /* Minimum yükseklik */
    flex-shrink: 0;
}

.products-wrapper.list-view .image-wrapper {
    height: 100%;
}

.products-wrapper.list-view .tour-content {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.products-wrapper.list-view .tour-meta {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.products-wrapper.list-view .rating-price {
    align-items: center;
}

.products-wrapper.list-view .book-btn {
    width: auto;
    padding: 12px 32px;
    align-self: flex-start;
}

/* GRID VIEW STYLES - 3 SÜTUN */
.products-wrapper.grid-view {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.products-wrapper.grid-view .product-item {
    flex: 0 0 calc(33.333% - 16px);
    max-width: calc(33.333% - 16px);
    display: flex;
}

.products-wrapper.grid-view .tour-card {
    width: 100%;
}

.products-wrapper.grid-view .tour-image {
    height: 220px;
}

.products-wrapper.grid-view .tour-content {
    min-height: 380px;
}

.products-wrapper.grid-view .description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive - Tablet */
@media (max-width: 991px) {
    /* List view mobilde dikey olur */
    .tour-meta {
        grid-template-columns: 1fr 1fr;
        gap: 16px 20px;
    }
    
    .products-wrapper.list-view .tour-meta {
        grid-template-columns: 1fr 1fr;
    }

    .products-wrapper.list-view .tour-card-inner {
        flex-direction: column;
        height: auto;
    }
    
    .products-wrapper.list-view .tour-image {
        width: 100%;
        height: 240px;
    }
    
    .products-wrapper.list-view .tour-content {
        padding: 24px;
    }
    
    .products-wrapper.list-view .book-btn {
        width: 100%;
    }
    
    /* Grid view 2 sütun olur */
    .products-wrapper.grid-view .product-item {
        flex: 0 0 calc(50% - 12px);
        max-width: calc(50% - 12px);
    }
}

/* Responsive - Mobile */
@media (max-width: 575px) {
    .tour-content {
        padding: 20px;
    }
    
    .tour-meta {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .meta-item {
        grid-template-columns: 24px 1fr;
    }
    
    .rating-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .price-section {
        text-align: left;
    }
    
    .price-wrapper {
        justify-content: flex-start;
    }
    
    /* Grid view tek sütun olur */
    .products-wrapper.grid-view .product-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .products-wrapper.grid-view {
        gap: 16px;
    }
}

/* Container düzenlemeleri */
.products-wrapper {
    width: 100%;
}

/* Bootstrap row kullanıyorsanız */
.products-wrapper.grid-view .row {
    margin-left: -12px;
    margin-right: -12px;
}

.products-wrapper.grid-view .col-lg-4,
.products-wrapper.grid-view .col-md-6,
.products-wrapper.grid-view .col-12 {
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 24px;
}

/* ========== PAGE HEADER ========== */
.page-title {
    font-family: var(--font-primary);
    font-size: clamp(1.75rem, 4vw, var(--text-h1-size));
    font-weight: var(--text-h1-weight);
    color: var(--color-text-primary);
    line-height: var(--text-h1-line-height);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 120%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-toursce-primary) 0%, var(--color-toursce-secondary) 100%);
    border-radius: 2px;
}

/* ========== SUBCATEGORIES SECTION ========== */
.subcategories-section {
    background: var(--color-gray-50);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
}

.subcategory-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--color-white);
    border: 2px solid transparent;
    border-radius: 30px;
    text-decoration: none;
    color: var(--color-text-primary);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.subcategory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 136, 229, 0.1), transparent);
    transition: left 0.5s ease;
}

.subcategory-card:hover::before {
    left: 100%;
}

.subcategory-card:hover {
    background: linear-gradient(135deg, var(--color-toursce-primary-lighter) 0%, var(--color-toursce-secondary-lighter) 100%);
    border-color: var(--color-toursce-primary);
    color: var(--color-toursce-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.2);
}

.subcategory-icon {
    color: var(--color-toursce-primary);
    font-size: 16px;
    transition: transform 0.3s ease;
}

.subcategory-card:hover .subcategory-icon {
    transform: rotate(15deg);
}

.subcategory-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subcategory-count {
    background: linear-gradient(135deg, #F5F5F5 0%, #EEEEEE 100%);
    color: var(--color-text-muted);
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    padding: 4px 10px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.subcategory-card:hover .subcategory-count {
    background: linear-gradient(135deg, var(--color-toursce-primary) 0%, var(--color-toursce-secondary) 100%);
    color: var(--color-white);
    transform: scale(1.05);
}

/* ========== CATEGORY DESCRIPTION ========== */
.category-description-wrapper {
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-gray-50) 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--color-gray-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.category-description-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(30, 136, 229, 0.05) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.category-description {
    font-size: var(--text-body-size);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-body);
    position: relative;
    z-index: 1;
}

.category-description h2,
.category-description h3 {
    font-family: var(--font-primary);
    color: var(--color-toursce-primary);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    font-weight: var(--font-weight-semibold);
}

.category-description h2 {
    font-size: var(--font-size-2xl);
}

.category-description h3 {
    font-size: var(--font-size-xl);
}

.category-description p {
    margin-bottom: 1rem;
}

.category-description ul,
.category-description ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.category-description li {
    margin-bottom: 0.5rem;
}

.btn-show-more {
    background: none;
    border: none;
    color: var(--color-toursce-primary);
    font-weight: var(--font-weight-semibold);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: 4px;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-show-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-toursce-primary);
    transition: width 0.3s ease;
}

.btn-show-more:hover::after {
    width: 100%;
}

.btn-show-more:hover {
    color: var(--color-toursce-primary-dark);
}

.btn-show-more i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.btn-show-more:hover i {
    transform: translateY(2px);
}

/* ===== SHOP ARCHIVE STYLES =====
   Copy these styles to your external CSS file and remove this <style> block */

/* Main Container */
.toursce-shop-container {
    min-height: 60vh;
    background-color: #f8f9fa;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 5px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 3px;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
}

/* Category Description */
.category-description {
    position: relative;
}

.description-content {
    transition: all 0.3s ease;
}

.description-content.truncated {
    max-height: 100px;
    overflow: hidden;
}

.description-toggle {
    color: #1E88E5;
    font-weight: 500;
    border: none;
    background: none;
    transition: color 0.3s ease;
}

.description-toggle:hover {
    color: #1565C0;
    text-decoration: underline;
}

.description-toggle i {
    transition: transform 0.3s ease;
}

.description-toggle[data-expanded="true"] i {
    transform: rotate(180deg);
}

/* Subcategories Section */
.subcategories-section {
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.subcategories-title {
    font-size: 1.5rem;
    color: #495057;
    font-weight: 500;
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.subcategory-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 100px;
}

.subcategory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: #1E88E5;
}

.subcategory-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.subcategory-card:hover .subcategory-icon {
    background: linear-gradient(135deg, #1E88E5 0%, #1565C0 100%);
}

.subcategory-icon i {
    font-size: 1.5rem;
    color: #1E88E5;
}

.subcategory-card:hover .subcategory-icon i {
    color: #fff;
}

.subcategory-content {
    flex-grow: 1;
    min-width: 0;
}

.subcategory-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.subcategory-count {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Shop Controls */
.shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e9ecef;
    position: relative;
}

.results-count {
    font-weight: 500;
    color: #2c3e50;
}

.controls-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
}

/* View Switcher */
.view-switcher {
    display: flex;
    background: #e9ecef;
    border-radius: 10px;
    padding: 4px;
    position: relative;
}

.view-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
    position: relative;
    z-index: 1;
}

.view-btn:hover {
    color: #1E88E5;
}

.view-btn.active {
    background: #fff;
    color: #1E88E5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Active indicator arrow */
.view-btn.active::before {
    display: none; /* Hide arrow on mobile */
}

/* View mode labels */
.view-btn::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    white-space: nowrap;
    color: #6c757d;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.view-btn.active::after {
    color: #1E88E5;
    font-weight: 600;
    opacity: 1;
}

@media (min-width: 576px) {
    .view-btn.active::before {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid #fff;
        display: block;
    }
    
    .view-btn::after {
        display: none;
    }
}


/* Products Container */
.products-wrapper {
    margin: 2rem 0;
}

/* Product Item Columns */
.products-wrapper.list-view .product-item {
    margin-bottom: 1.5rem;
}

.products-wrapper.grid-view .product-item {
    margin-bottom: 1.5rem;
}

/* Infinite Scroll Components */
.infinite-scroll-components {
    text-align: center;
    padding: 2rem 0;
}

.load-more-trigger {
    height: 50px;
    margin-top: 2rem;
}

/* Pagination */
.pagination-wrapper ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.pagination-wrapper a,
.pagination-wrapper span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 1rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
}

.pagination-wrapper a:hover {
    border-color: #1E88E5;
    color: #1E88E5;
    background: #e3f2fd;
}

.pagination-wrapper .current {
    background: #1E88E5;
    color: #fff;
    border-color: #1E88E5;
}

/* Controls spacing for mobile view labels */
@media (max-width: 575px) {
    .controls-right {
        padding-bottom: 25px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .shop-controls {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .controls-right {
        width: 100%;
        justify-content: center;
    }
    
    
    .subcategories-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .subcategory-card {
        padding: 1rem;
    }
}
/* Mobilde view switcher'ı gizle */
@media (max-width: 767px) {
    .view-switcher {
        display: none !important;
    }
    
    /* Mobilde controls-right'ı yeniden düzenle */
    .controls-right {
        justify-content: flex-end;
        padding-bottom: 0;
    }
    .ordering-form {width:100%}
}