:root {
    color-scheme: light;
}

body {
    background: #f7f9fc;
}

.hero-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #dfe3e8;
    border-radius: 18px;
    padding: 16px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    animation: float 6s ease-in-out infinite;
    overflow: hidden;
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.mobile-menu {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 60;
}

.mobile-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: min(320px, 90vw);
    background: #fff;
    padding: 24px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    pointer-events: auto;
}

.mobile-menu.open .mobile-menu-overlay {
    opacity: 1;
}

.mobile-menu.open .mobile-menu-panel {
    transform: translateX(0);
}

.drawer,
.modal {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 70;
}

.drawer-overlay,
.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drawer-panel {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: min(360px, 95vw);
    background: #fff;
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.modal-panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    width: min(720px, 92vw);
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.05);
    border-radius: 999px;
    padding: 6px;
}

.drawer.open,
.modal.open {
    pointer-events: auto;
}

.drawer.open .drawer-overlay,
.modal.open .modal-overlay {
    opacity: 1;
}

.drawer.open .drawer-panel {
    transform: translateX(0);
}

.modal.open .modal-panel {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.glass-card {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
}

.skeleton {
    background: linear-gradient(90deg, rgba(226, 232, 240, 0.4), rgba(226, 232, 240, 0.7), rgba(226, 232, 240, 0.4));
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
}

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

.swiper-button-prev,
.swiper-button-next {
    color: #232323;
    background: rgba(255, 255, 255, 0.9);
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid #dfe3e8;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 12px;
}

.dark body {
    background: #0f172a;
    color: #e2e8f0;
}

.dark .bg-white {
    background: #111827 !important;
}

.dark .text-text {
    color: #f8fafc !important;
}

.dark .text-muted {
    color: #94a3b8 !important;
}

.dark .drawer-panel,
.dark .modal-panel {
    background: #111827;
}

.is-loved {
    border-color: #f43f5e !important;
    color: #f43f5e !important;
    background: #fff1f2 !important;
    box-shadow: 0 0 0 3px rgba(244,63,94,0.18), 0 0 12px rgba(244,63,94,0.25) !important;
}

/* Wishlist active glow on product page button */
[data-wishlist-button].is-loved {
    box-shadow: 0 0 0 3px rgba(244,63,94,0.2), 0 0 16px rgba(244,63,94,0.3) !important;
}

/* Cart button active glow */
[data-cart-button].in-cart {
    border-color:#82B440 !important;
    color: #82B440 !important;
    box-shadow: 0 0 0 3px rgba(18,185,129,0.18), 0 0 12px rgba(18,185,129,0.25) !important;
}

/* Gallery main image cursor pointer for lightbox */
[data-gallery-main] {
    cursor: zoom-in;
}

/* Star rating — LTR direction fix removed, rendered 1-5 in PHP */
[data-star-rating] {
    display: flex;
    flex-direction: row;
    gap: 0.25rem;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
