.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-hover {
    transition: all 0.3s ease;
}

.hidden-item {
    display: none;
}

/* Dark Theme */
body.dark-theme {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-theme header {
    background: linear-gradient(to right, #4a148c, #6a1b9a);
}

body.dark-theme .bg-gray-50 {
    background-color: #1a1a1a;
}

body.dark-theme .bg-white {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

body.dark-theme .bg-gray-100 {
    background-color: #333;
}

body.dark-theme .text-gray-800 {
    color: #e0e0e0;
}

body.dark-theme .text-gray-700 {
    color: #d0d0d0;
}

body.dark-theme .text-gray-600 {
    color: #b0b0b0;
}

body.dark-theme .text-gray-500 {
    color: #999;
}

body.dark-theme .text-gray-400 {
    color: #888;
}

body.dark-theme .shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
}

body.dark-theme input,
body.dark-theme select {
    background-color: #333;
    color: #e0e0e0;
    border-color: #555;
}

body.dark-theme input::placeholder {
    color: #888;
}

body.dark-theme footer {
    background-color: #0a0a0a;
}

body.dark-theme .bg-gray-900 {
    background-color: #000;
}

body.dark-theme .bg-yellow-50 {
    background-color: #3a3a00;
}

/* Modal backdrop blur (all themes) */
#productModal {
    backdrop-filter: blur(6px);
}

/* Modal backdrop in dark theme */
body.dark-theme #productModal {
    background-color: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
}

/* Dark modal container + contrast improvements */
body.dark-theme #productModal>div {
    background-color: #1f2937;
    /* gray-800 */
    color: #e5e7eb;
    /* text-gray-200 */
    border: 2px solid #065f46;
    /* dark green */
    box-shadow: 0 0 0 2px rgba(6, 95, 70, 0.35), 0 18px 40px rgba(0, 0, 0, 0.6);
}

body.dark-theme #productModal .sticky {
    background-color: #111827;
    /* gray-900 */
    border-color: #374151;
    /* gray-700 */
}

body.dark-theme #productModal h2 {
    color: #ecfdf5;
    /* emerald-50 */
}

body.dark-theme #productModal .text-gray-500 {
    color: #9ca3af;
    /* gray-400 */
}

/* Theme toggle button */
.theme-toggle {
    position: fixed;
    top: 10px;
    right: 20px;
    z-index: 9999;
    background: #6a1b9a;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover {
    background: #4a148c;
}

body.dark-theme .theme-toggle {
    background: #7b1fa2;
}

body.dark-theme .theme-toggle:hover {
    background: #9c27b0;
}

/* Search input with icons */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 20px;
    color: #6b7280;
    pointer-events: none;
    z-index: 1;
}

body.dark-theme .search-icon {
    color: #9ca3af;
}

.clear-search {
    position: absolute;
    right: 20px;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 1;
}

.clear-search:hover {
    color: #ef4444;
}

body.dark-theme .clear-search {
    color: #6b7280;
}

body.dark-theme .clear-search:hover {
    color: #f87171;
}

.clear-search.hidden {
    display: none;
}

/* Gradient background overlays - TakeMySpot style */
body {
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

body::before {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
    top: -200px;
    left: -100px;
}

body::after {
    width: 700px;
    height: 700px;
    background: linear-gradient(225deg, #10b981 0%, #14b8a6 50%, #8b5cf6 100%);
    bottom: -250px;
    right: -150px;
}

/* Dark theme gradient adjustments */
body.dark-theme::before {
    opacity: 0.08;
    background: linear-gradient(135deg, #0d9488 0%, #0891b2 100%);
}

body.dark-theme::after {
    opacity: 0.08;
    background: linear-gradient(225deg, #059669 0%, #0d9488 50%, #7c3aed 100%);
}

/* Ensure content is above gradients */
header,
main,
footer,
.bg-white,
.sticky {
    position: relative;
    z-index: 1;
}

/* Modal animation */
#productModal {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#productModal.show {
    opacity: 1;
}

#productModal>div {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#productModal.show>div {
    transform: scale(1);
}

/* Favorite button */
.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.favorite-btn:hover {
    transform: scale(1.1);
    border-color: #ef4444;
}

.favorite-btn svg {
    width: 22px;
    height: 22px;
    transition: all 0.3s ease;
}

.favorite-btn.active svg {
    fill: #ef4444;
    stroke: #ef4444;
}

body.dark-theme .favorite-btn {
    background: rgba(42, 42, 42, 0.95);
    border-color: #555;
}

body.dark-theme .favorite-btn:hover {
    border-color: #f87171;
}

/* Send inquiry button */
.send-inquiry-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
}

.send-inquiry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
}

.send-inquiry-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

body.dark-theme .send-inquiry-btn {
    background: linear-gradient(135deg, #0d9488 0%, #047857 100%);
}

body.dark-theme .send-inquiry-btn:hover {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
}

.favorites-badge {
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}

/* Modal favorite button */
.modal-favorite-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.modal-favorite-btn:hover {
    transform: scale(1.1);
    border-color: #ef4444;
}

.modal-favorite-btn svg {
    width: 26px;
    height: 26px;
    transition: all 0.3s ease;
}

.modal-favorite-btn.active svg {
    fill: #ef4444;
    stroke: #ef4444;
}

body.dark-theme .modal-favorite-btn {
    background: rgba(42, 42, 42, 0.95);
    border-color: #555;
}

body.dark-theme .modal-favorite-btn:hover {
    border-color: #f87171;
}

/* Show favorites button */
.show-favorites-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    color: #374151;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.show-favorites-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.show-favorites-btn.active {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-color: #ef4444;
}

.show-favorites-btn.active:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

body.dark-theme .show-favorites-btn {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #555;
}

body.dark-theme .show-favorites-btn:hover {
    border-color: #f87171;
    color: #f87171;
}

body.dark-theme .show-favorites-btn.active {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border-color: #dc2626;
}

/* Clear all favorites button */
.clear-favorites-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: #ef4444;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    transition: all 0.3s ease;
    border: 1px solid #fecaca;
    cursor: pointer;
}

.clear-favorites-btn:hover {
    background: #fef2f2;
    border-color: #ef4444;
}

/* Close favorites button */
.close-favorites-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: #6366f1;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    transition: all 0.3s ease;
    border: 1px solid #c7d2fe;
    cursor: pointer;
}

.close-favorites-btn:hover {
    background: #f0f4ff;
    border-color: #6366f1;
}

body.dark-theme .close-favorites-btn {
    color: #a5b4fc;
    border-color: #4c1d95;
}

body.dark-theme .close-favorites-btn:hover {
    background: #3b2667;
    border-color: #818cf8;
}

body.dark-theme .clear-favorites-btn {
    color: #f87171;
    border-color: #7f1d1d;
}

body.dark-theme .clear-favorites-btn:hover {
    background: #3a1a1a;
    border-color: #991b1b;
}

/* Show All Button */
#showAllBtn {
    transition: all 0.3s ease;
}

body.dark-theme #showAllBtn {
    background: linear-gradient(to right, #0d9488, #047857);
}

body.dark-theme #showAllBtn:hover {
    background: linear-gradient(to right, #14b8a6, #0d9488);
}
