.search-modal-overlay {
	 display: none;
	 position: fixed;
	 top: 0;
	 left: 0;
	 right: 0;
	 bottom: 0;
	 background-color: rgba(0,0,0,0.5);
	 z-index: 9998;
	 opacity: 0;
	 transition: opacity 0.3s ease;
}
 .search-modal-overlay.active {
	 display: block;
	 opacity: 1;
}
 .search-modal {
	 display: flex;
	 flex-direction: column;
	 position: fixed;
	 top: 0;
	 left: 50%;
	 transform: translateX(-50%) translateY(-100%);
	 width: 100%;
	 max-width: 100%;
	 z-index: -1;
	 background: transparent;
	 padding: 0;
	 opacity: 0;
	 visibility: hidden;
	 pointer-events: none;
	 transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}
 .search-modal.active {
	 z-index: 9999;
	 opacity: 1;
	 visibility: visible;
	 pointer-events: auto;
	 transform: translateX(-50%) translateY(0);
	 transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
	 animation: fadeIn 0.2s ease, slideInFromTop 0.2s ease;
}
 .search-modal-header {
	 display: flex;
	 align-items: center;
	 justify-content: center;
	 gap: 1rem;
	 background: #fff;
	 padding: 1rem;
}
 @media (min-width: 768px) {
	 .search-modal-header {
		 gap: 2rem;
		 padding: 1rem 2rem;
	}
}
 .search-modal .search-input-wrapper {
	 position: relative;
	 max-width: 380px;
	 flex: 1;
}
 .search-modal .search-input-wrapper .search-input-container {
	 position: relative;
}
 .search-modal .search-input-wrapper .search-icon {
	 position: absolute;
	 left: 1rem;
	 top: 50%;
	 transform: translateY(-50%);
	 width: 20px;
	 height: 20px;
	 color: #6b7280;
}
 .search-modal .search-input-wrapper .search-modal-input {
	 width: 100%;
	 padding: 12px 40px;
	 height: 48px;
	 border: 1px solid #d1d5db;
	 border-radius: 9999px;
	 background-color: #f3f4f6;
	 font-size: 14px;
	 color: #1f2937;
	 transition: border-color 0.15s ease;
}

 .search-modal .search-input-wrapper .search-modal-input:focus {
	 outline: none;
	 border-color: #9ca3af;
}
 .search-modal .search-input-wrapper .search-modal-input::placeholder {
	 color: #9ca3af;
	 font-size: 14px;
}
 .search-modal .search-input-wrapper .search-clear-btn {
	 display: none;
	 position: absolute;
	 right: 0.75rem;
	 top: 50%;
	 transform: translateY(-50%);
	 width: 16px;
	 height: 16px;
	 padding: 0;
	 border: none;
	 background: transparent;
	 cursor: pointer;
	 color: #1f2937;
}
 .search-modal .search-input-wrapper .search-clear-btn.visible {
	 display: flex;
	 align-items: center;
	 justify-content: center;
}
 .search-modal .search-close-btn {
	 padding: 0;
	 border: none;
	 background: transparent;
	 cursor: pointer;
	 color: #6b7280;
}
 .search-modal .search-close-btn svg {
	 width: 32px;
	 height: 32px;
}
 @media (min-width: 768px) {
	 .search-modal .search-close-btn svg {
		 width: 32px;
		 height: 32px;
	}
}
 .search-modal-body {
	 height: 100%;
	 border: none;
	 overflow-y: auto;
	 margin-top: 10px;
}
 .search-modal-body::-webkit-scrollbar {
	 width: 8px;
}
 .search-modal-body::-webkit-scrollbar-track {
	 background: #f3f4f6;
}
 .search-modal-body::-webkit-scrollbar-thumb {
	 background: #d1d5db;
	 border-radius: 4px;
}
 .search-modal-body::-webkit-scrollbar-thumb:hover {
	 background: #9ca3af;
}
 .search-modal .search-results-container {
	 margin: 0 auto;
	 max-width: calc(80%);
	 overflow: hidden;
	 border-radius: 0.5rem;
	 background: #fff;
	 padding: 1.5rem;
}
 @media (min-width: 768px) {
	 .search-modal .search-results-container {
		 padding: 2.5rem 5rem;
	}
}
 @media (min-width: 1024px) {
	 .search-modal .search-results-container {
		 max-width: 80rem;
	}
}
 .search-modal .search-results-section h3 {
	 margin-bottom: 1rem;
	 font-size: 16px;
	 font-weight: 700;
	 margin-top: 10px;
	 color: #1f2937;
}
 .search-modal .trending-section {
	 margin-bottom: 2rem;
}
 .search-modal .trending-section .trending-label {
	 margin-bottom: 1rem;
	 font-size: 16px;
	 font-weight: 700;
	 color: #1f2937;
}
 .search-modal .trending-section .trending-items-grid {
	 display: flex;
	 gap: 0.5rem;
	 overflow-x: auto;
	 padding-bottom: 0.5rem;
}
 .search-modal .trending-section .trending-items-grid::-webkit-scrollbar {
	 height: 4px;
}
 .search-modal .trending-section .trending-items-grid::-webkit-scrollbar-track {
	 background: #f3f4f6;
}
 .search-modal .trending-section .trending-items-grid::-webkit-scrollbar-thumb {
	 background: #d1d5db;
	 border-radius: 2px;
}
 .search-modal .trending-section .trending-item {
	 cursor: pointer;
}
 .search-modal .trending-section .trending-item .trending-link {
	 display: inline-block;
	 padding: 0.5rem 1rem;
	 background-color: #f3f4f6;
	 color: #1f2937;
	 text-decoration: none;
	 border-radius: 9999px;
	 white-space: nowrap;
	 font-size: 14px;
	 transition: background-color 0.15s ease;
	 cursor: pointer;
}
 .search-modal .trending-section .trending-item .trending-link:hover {
	 background-color: #e5e7eb;
	 color: #111827;
}
 .search-modal .trending-section .trending-item:hover .trending-link {
	 background-color: #e5e7eb;
	 color: #111827;
}
 .search-modal .products-grid {
	 display: flex;
	 gap: 16px;
	 overflow-x: auto;
	 overflow-y: hidden;
	 scroll-snap-type: x mandatory;
	 -webkit-overflow-scrolling: touch;
	 padding-bottom: 12px;
	 margin-bottom: 16px;
	 cursor: grab;
	 user-select: none;
}
 .search-modal .products-grid:active {
	 cursor: grabbing;
}
 .search-modal .products-grid::-webkit-scrollbar {
	 height: 6px;
}
 .search-modal .products-grid::-webkit-scrollbar-track {
	 background: #f3f4f6;
}
 .search-modal .products-grid::-webkit-scrollbar-thumb {
	 background: #c92c33;
	 border-radius: 3px;
}
 @media (max-width: 767px) {
	 .search-modal .products-grid .product-card {
		 flex: 0 0 160px;
		 scroll-snap-align: start;
	}
}
 @media (min-width: 768px) and (max-width: 1023px) {
	 .search-modal .products-grid .product-card {
		 flex: 0 0 calc(21.333%);
		 min-width: 200px;
		 scroll-snap-align: start;
	}
}
 @media (min-width: 1024px) {
	 .search-modal .products-grid .product-card {
		 flex: 0 0 calc(13%);
		 min-width: 220px;
		 scroll-snap-align: start;
	}
}
 .search-modal .product-card {
	 display: block;
}

.search-modal .product-image-link {
    display: block;
    text-decoration: none;
}

.search-modal .product-name-link {
    text-decoration: none;
    color: inherit;
}

.search-modal .product-name-link:hover .product-name {
    color: #c92c33;
}

 .search-modal .product-card .product-card-content {
	 display: flex;
	 flex-direction: column;
	 height: 100%;
	 gap: 0.5rem;
}
 .search-modal .product-card .product-image-wrapper {
	 position: relative;
	 aspect-ratio: 0.75;
	 overflow: hidden;
	 border-radius: 0.5rem;
	 background-color: #f9fafb;
}
 .search-modal .product-card .product-image-wrapper .product-image {
	 width: 100%;
	 height: 100%;
	 object-fit: cover;
}
 .search-modal .product-card .product-info {
	 display: flex;
	 flex: 1;
	 flex-direction: column;
	 justify-content: space-between;
	 gap: 0.5rem;
}
 .search-modal .product-card .product-info .product-name {
	 display: -webkit-box;
	 -webkit-line-clamp: 2;
	 -webkit-box-orient: vertical;
	 overflow: hidden;
	 font-size: 16px;
	 line-height: 1.2;
	 color: #1f2937;
}
 .search-modal .product-card .product-info .product-name:hover {
	 color: #c92c33;
}
 @media (min-width: 1024px) {
	 .search-modal .product-card .product-info .product-name {
		 font-size: 16px;
		 line-height: 1.25;
	}
}
 .search-modal .product-card .product-info .product-sku {
	 margin-top: 0.25rem;
	 font-size: 0.625rem;
	 text-transform: uppercase;
	 color: #6b7280;
}
 @media (min-width: 1024px) {
	 .search-modal .product-card .product-info .product-sku {
		 font-size: 0.75rem;
	}
}
 .search-modal .product-card .product-info .product-pricing {
	 display: flex;
	 align-items: center;
	 gap: 0.25rem;
	 margin-top: auto;
}
 .search-modal .product-card .product-info .product-pricing .product-price {
	 font-size: 16px;
	 font-weight: 700;
	 color: #111827;
}
 .search-modal .product-card .product-info .product-pricing .product-price-old {
	 font-size: 14px;
	 color: #9ca3af;
	 text-decoration: line-through;
}
 @media (min-width: 1024px) {
	 .search-modal .product-card .product-info .product-pricing .product-price-old {
		 font-size: 14px;
	}
}
 .search-modal .product-card .product-info .product-pricing .product-discount {
	 display: flex;
	 align-items: center;
	 gap: 0.25rem;
    padding: 4px 5px;
	 height: 19px;
	 border-radius: 9999px;
	 background-color: #c92c33;
	 color: #fff;
	 font-size: 14px;
	 font-weight: 600;
	 text-transform: uppercase;
}
 @media (min-width: 1024px) {
	 .search-modal .product-card .product-info .product-pricing .product-discount {
		 font-size: 0.875rem;
	}
}
 .search-modal .product-card .product-info .product-item-label {
	 font-size: 11px;
	 color: #c92c33;
	 font-weight: 500;
	 margin-top: 4px;
	 line-height: 1.2;
	 display: -webkit-box;
	 -webkit-line-clamp: 1;
	 -webkit-box-orient: vertical;
	 overflow: hidden;
}
 .search-modal .view-all-container {
	 display: flex;
	 justify-content: center;
	 margin-top: 1rem;
}
 @media (min-width: 768px) {
	 .search-modal .view-all-container {
		 margin-top: 2rem;
	}
}
 .search-modal .view-all-container .view-all-btn {
	 display: inline-flex;
	 align-items: center;
	 justify-content: center;
	 gap: 0.5rem;
	 padding: 0.5rem 1.5rem;
	 height: 37px;
	 border-radius: 9999px;
	 background-color: #171717;
	 color: #fff;
	 font-size: 14px;
	 font-weight: 500;
	 text-transform: uppercase;
	 text-decoration: none;
	 transition: background-color 0.15s ease;
	 border: none;
	 cursor: pointer;
}
 .search-modal .view-all-container .view-all-btn:hover {
	 background-color: #262626;
}
 .search-modal .view-all-container .view-all-btn:active {
	 background-color: #404040;
}
 .search-modal .search-loading, .search-modal .no-results {
	 text-align: center;
	 padding: 2rem;
	 color: #6b7280;
}
 .search-modal .swatch-attribute {
	 margin-top: 8px;
}
 .search-modal .swatch-attribute .swatch-attribute-options {
	 display: flex;
	 flex-wrap: wrap;
	 gap: 6px;
	 align-items: center;
}
 .search-modal .swatch-attribute .swatch-attribute-options .swatch-option {
position: relative;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    padding: 2px;
    height: 16px;
    border: 1px solid #ebecf0;
    width: 40px;
    border-radius: 10px;
}
 .search-modal .swatch-attribute .swatch-attribute-options .swatch-option:hover {
	 border-color: #111;
	 transform: scale(1.1);
	 box-shadow: 0 2px 8px rgba(221, 221, 221, 0.3);
}
 .search-modal .swatch-attribute .swatch-attribute-options .swatch-option.color-selected {
	 border-color: #111;
    border-width: 1px;
}
 body.search-modal-open {
	 overflow: hidden;
}

/* Shimmer Loading Effect */
.search-modal .shimmer-card {
	pointer-events: none;
}

.search-modal .shimmer-card .product-card-content {
	animation: shimmer 1.5s infinite;
}

.search-modal .shimmer-image {
	width: 100%;
	aspect-ratio: 0.75;
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	border-radius: 0.5rem;
	animation: shimmer 1.5s infinite;
}

.search-modal .shimmer-text {
	height: 16px;
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	border-radius: 4px;
	margin-top: 8px;
	animation: shimmer 1.5s infinite;
}

.search-modal .shimmer-title {
	width: 100%;
	height: 20px;
	margin-top: 12px;
}

.search-modal .shimmer-price {
	width: 60%;
	height: 18px;
	margin-top: 8px;
}

@keyframes shimmer {
	0% {
		background-position: -200% 0;
	}
	100% {
		background-position: 200% 0;
	}
}

 @keyframes fadeIn {
	 from {
		 opacity: 0;
	}
	 to {
		 opacity: 1;
	}
}
 @keyframes slideInFromTop {
	 from {
		 transform: translateX(-50%) translateY(-48%);
	}
	 to {
		 transform: translateX(-50%) translateY(0);
	}
}
