/* YepCY Site Styles */

/* Promoted products/news — marketplace highlighting */
.product-card.promoted,
.news-card.promoted {
	border: 1px solid var(--bs-primary);
	box-shadow: 0 0 0 1px rgba(var(--bs-primary-rgb), 0.15);
}

/* Page content fixes */
.page-empty-content {
	position: relative;
	z-index: 1;
	margin-top: 1rem;
	margin-bottom: 2rem;
}

/* Custom utilities */
.fa-10x {
    font-size: 10rem;
}

/* Hero section */
.hero-section {
    border-radius: 0 0 1rem 1rem;
}

/* Site header */
.site-header {
    border-bottom: 1px solid rgba(0,0,0,.125);
}

.navbar-brand {
    font-size: 1.5rem;
}

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

/* Cards */
.card {
    transition: transform 0.2s ease-in-out;
}

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

/* Language switcher */
.language-switcher .dropdown-toggle {
    border: none;
    background: none;
    color: inherit;
}

.language-switcher .dropdown-toggle:hover {
    background-color: rgba(0,0,0,.05);
}

/* Theme switcher */
.theme-switcher .btn {
    border: none;
    background: none;
    color: inherit;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 2rem;
    }
    
    .fa-10x {
        font-size: 6rem;
    }
}

/* Glass morphism theme compatibility */
.glass-theme {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Space theme compatibility */
.space-theme {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Water theme compatibility */
.water-theme {
    background: linear-gradient(135deg, #667eea 0%, #64b3f4 100%);
}

/* Product cards */
.product-card-img {
    height: 220px;
    object-fit: cover;
}

.product-card-img-placeholder {
    height: 220px;
}

.product-card .card-title a:hover {
    color: var(--bs-primary) !important;
}

/* Product detail */
.product-thumbnails img:hover {
    border-color: var(--bs-primary) !important;
    opacity: 0.8;
}

.product-description img {
    max-width: 100%;
    height: auto;
}

/* Variant selector */
.variant-item:hover > div {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 1px var(--bs-primary);
}

.variant-item.active > div {
    box-shadow: 0 0 0 1px var(--bs-primary);
}

/* Site Search */
.site-search-wrapper {
    max-width: 480px;
    width: 100%;
}

.site-search-input:focus {
    box-shadow: none;
    border-color: var(--bs-primary);
}

.site-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: var(--bs-body-color);
    border-bottom: 1px solid var(--bs-border-color-translucent, rgba(0,0,0,.05));
    transition: background-color 0.15s;
}

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

.search-result-item:hover,
.search-result-item.active {
    background-color: var(--bs-tertiary-bg, #f8f9fa);
    color: var(--bs-body-color);
}

.search-result-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 0.375rem;
    flex-shrink: 0;
}

.search-result-img-placeholder {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    background: var(--bs-tertiary-bg, #f8f9fa);
    color: var(--bs-secondary-color, #6c757d);
    flex-shrink: 0;
}

.search-result-info {
    min-width: 0;
    flex: 1;
}

.search-result-title {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-price {
    font-size: 0.8rem;
    color: var(--bs-primary);
    font-weight: 600;
}

.search-no-results {
    padding: 1rem;
    text-align: center;
    color: var(--bs-secondary-color, #6c757d);
    font-size: 0.9rem;
}

.search-show-all {
    display: block;
    padding: 0.6rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--bs-primary, #0d6efd);
    text-decoration: none;
    border-top: 1px solid var(--bs-border-color, #dee2e6);
    background: var(--bs-tertiary-bg, #f8f9fa);
}

.search-show-all:hover {
    background: var(--bs-secondary-bg, #e9ecef);
}

@media (max-width: 768px) {
    .site-search-wrapper {
        max-width: 100%;
    }

    .site-search-results {
        max-height: 300px;
    }
}

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}