
/* Thetic: Arama modalinda fiyat ve 'From' gizleme */
.wc-product-price,
.wc-price-from,
.wc-price-sale,
.wc-price-regular {
    display: none !important;
}

/* WooCommerce Search Modal Plugin Styles - Birebir Tasarım */

/* Overlay */
.wc-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wc-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Container */
.wc-search-modal {
    position: fixed;
    top: 0;
    right: -600px;
    width: 100%;
    max-width: 600px;
    height: 100vh;
    background: #ffffff;
    z-index: 999999;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.15);
}

.wc-search-modal.active {
    right: 0;
}

/* Modal Content */
.wc-search-content {
    height: 100%;
    overflow-y: auto;
    padding: 0;
}

/* Search Header - Birebir aynı */
.wc-search-header {
    background: #ffffff;
    padding: 1.5rem 2rem 1rem;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: sticky;
    top: 0;
    z-index: 10;
    margin-bottom: 1rem;
}

.wc-search-input-wrapper {
    flex: 1;
    position: relative;
    background: #f8f8f8;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.wc-search-input-wrapper:focus-within {
    border-color: #6b7280;
}

#wcSearchInput {
    width: 100%;
    padding: 1rem 3.5rem 1rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.5;
    outline: none;
    background: #f8f8f8;
    color: #111827;
}

#wcSearchInput::placeholder {
    color: #9ca3af;
}

.wc-search-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
}

.wc-search-btn:hover {
    color: #374151;
}

.wc-search-btn svg {
    width: 20px;
    height: 20px;
}

.wc-search-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 6px;
    margin: 0 -0.5rem 0 0;
}

.wc-search-close:hover {
    color: #374151;
    background: #f3f4f6;
}

.wc-search-close svg {
    width: 24px;
    height: 24px;
}

/* Search Results */
.wc-search-results {
    padding: 0 2rem 2rem;
}

/* Loading */
.wc-loading {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    font-size: 14px;
}

#wc-custom-promo {
    opacity: 0;
    transform: translateX(48px);
    transition: opacity 1.45s ease, transform 1.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

#wc-custom-promo.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.moneyback-box {
    text-decoration: none;
    transition: transform 1.35s ease, box-shadow 1.35s ease, border-color 1.35s ease;
}

.moneyback-box:hover {
    transform: translateX(-2px);
    border-color: #d1d5db;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.moneyback-box--music {
    transition-delay: 0.08s;
}


.moneyback-box--special {
    transition-delay: 0.1s;
}


#wc-custom-promo.is-visible .moneyback-box {
    animation: moneybackCardIn 2.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#wc-custom-promo.is-visible .moneyback-box--music {
    animation-delay: 0.1s;
}

#wc-custom-promo.is-visible .moneyback-box--special {
    animation-delay: 0.15s;
}

@keyframes moneybackCardIn {
    from {
        opacity: 0;
        transform: translateX(42px);
    }

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

/* Section Styling - Birebir aynı */
.wc-section {
    margin-bottom: 2rem;
}

.wc-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.wc-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.wc-view-all {
    color: #111827;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    letter-spacing: 0.025em;
}

.wc-view-all:hover {
    color: #374151;
    text-decoration: none;
}

.wc-view-all svg {
    width: 12px;
    height: 12px;
}

/* Suggestions - Pill tasarımı */
.wc-suggestions {
    display: block;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wc-suggestion {
    background: #f3f4f6;
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
    line-height: 1;
    margin: 0.5rem;
}

.wc-suggestion:hover {
    background: #e5e7eb;
    color: #111827;
    text-decoration: none;
}

/* Product Grid - 3x2 düzeni */
.wc-products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem 1rem;
}

@media (max-width: 1024px) {
    .wc-products-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .wc-products-grid {
        grid-template-columns: 1fr;
    }
}

.wc-product-item {
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 1rem;
    transition: none;
}

.wc-product-item:hover {
    text-decoration: none;
    color: inherit;
}

/* Product Image Container - Birebir boyutlar */
.wc-product-image-container {
    width: 64px;
    height: 80px;
    flex-shrink: 0;
    position: relative;
}

.wc-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.wc-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wc-product-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wc-product-price {
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.wc-price-from {
    color: #dc2626;
    font-weight: 600;
}

.wc-price-sale {
    color: #dc2626;
    font-weight: 600;
}

.wc-price-regular {
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 400;
}

/* Collections Grid - Aynı yapı */
.wc-category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.wc-category-item {
    text-decoration: none;
    color: inherit;
    display: flex;
    gap: 1rem;
}

.wc-category-item:hover {
    text-decoration: none;
    color: inherit;
}

.wc-category-image-container {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.wc-category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.wc-category-info {
    flex: 1;
    display: flex;
    align-items: center;
}

.wc-category-title {
    font-weight: 700;
    font-size: 14px;
    color: #111827;
    margin: 0;
}

/* Empty State */
.wc-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.wc-empty-state h3 {
    color: #111827;
    margin-bottom: 0.5rem;
    font-size: 18px;
    font-weight: 600;
}

.wc-empty-state p {
    margin: 0.5rem 0;
    font-size: 14px;
}

/* Divider */
.wc-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 1.5rem 0;
    border: none;
}

/* Trigger Button */
.wc-search-trigger {
    background: #111827;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.wc-search-trigger:hover {
    background: #374151;
    color: white;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .wc-search-header {
        padding: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .wc-search-results {
        padding: 0 1.5rem 1.5rem;
    }

    .wc-product-image-container {
        width: 96px;
        height: 120px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .wc-search-modal {
        max-width: 100%;
        right: -100%;
    }

    .wc-search-header {
        padding: 1rem;
        gap: 1rem;
    }

    .wc-search-results {
        padding: 0 1rem 1rem;
    }

    .wc-products-grid,
    .wc-category-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .wc-product-image-container {
        width: 64px;
        height: 80px;
    }

    .wc-section {
        margin-bottom: 1.5rem;
    }

    .wc-suggestions {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 1rem;
        margin-bottom: -1rem;
        scroll-snap-type: x mandatory;
    }

    .wc-suggestion {
        flex-shrink: 0;
        scroll-snap-align: start;
    }
}

@media (max-width: 480px) {
    .wc-search-header {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    #wcSearchInput {
        padding: 0.875rem 3rem 0.875rem 0.875rem;
        font-size: 16px;
        /* iOS zoom önleme */
    }

    .wc-search-btn {
        right: 0.75rem;
    }
}

/* Focus states - Accessibility */
.wc-search-btn:focus,
.wc-search-close:focus,
.wc-suggestion:focus,
.wc-view-all:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

#wcSearchInput:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Scrollbar styling */
.wc-search-content::-webkit-scrollbar {
    width: 6px;
}

.wc-search-content::-webkit-scrollbar-track {
    background: transparent;
}

.wc-search-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

.wc-search-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}