/* ─── Header city dropdown (details element) ─── */
#citySelector > summary {
    list-style: none;
}
#citySelector > summary::-webkit-details-marker {
    display: none;
}
#citySelector[open] .city-chevron {
    transform: rotate(180deg);
}


/* Reset body margin/padding (prevents gap before Tailwind preflight loads) */
body {
    margin: 0;
    padding: 0;
}

/* Smooth scrollbar */
html {
    scroll-behavior: smooth;
}

/* Line clamp utility (for older browser support) */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product card image zoom fix */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #a7f3d0;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* Focus ring improvements */
*:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Button active state feedback */
button:active,
a:active {
    transform: scale(0.97);
}

/* Announcement bar link hover */
.announcement-bar a:hover {
    text-decoration: underline;
}

/* Flash message auto-hide animation */
@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(100%); }
}

.flash-hide {
    animation: slideOutRight 0.4s ease-in forwards;
}

/* Hide scrollbar for category row */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* Hero slider dots */
.hero-dot {
    cursor: pointer;
    border: none;
    padding: 0;
}
.hero-dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ─── Video Parallax Section ─── */
.video-parallax {
    position: relative;
    overflow: hidden;
    min-height: 70vh;
}
.video-parallax video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    will-change: transform;
}
.video-parallax .parallax-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.video-parallax .parallax-content {
    position: relative;
    z-index: 2;
}

/* ─── Infinite Marquee ─── */
.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 25s linear infinite;
}
.marquee-track:hover {
    animation-play-state: paused;
}
@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ─── Parallax float effect ─── */
@keyframes floatUp {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
.float-anim {
    animation: floatUp 4s ease-in-out infinite;
}
.float-anim-delay {
    animation: floatUp 4s ease-in-out 1s infinite;
}

/* ─── Reveal on scroll ─── */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Stats counter pulse ─── */
@keyframes pulseBorder {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50%      { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}
.pulse-border {
    animation: pulseBorder 2.5s ease-in-out infinite;
}

/* ─── Dual Range Slider (Shop Page) ─── */
.range-slider-container {
    position: relative;
    height: 36px;
    display: flex;
    align-items: center;
}
.range-slider-track {
    position: relative;
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 9999px;
}
.range-slider-fill {
    position: absolute;
    top: 0;
    height: 100%;
    background: #059669;
    border-radius: 9999px;
    pointer-events: none;
}
.range-slider-input {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
}
.range-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #059669;
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
    position: relative;
    z-index: 2;
}
.range-slider-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #059669;
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* ─── Product description / specs rich content ─── */
.product-description p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1rem;
}
.product-description h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.product-description h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}
.product-description ul, .product-description ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.product-description ul { list-style-type: disc; }
.product-description ol { list-style-type: decimal; }
.product-description li { color: #4b5563; line-height: 1.7; }
.product-description strong { color: #1f2937; font-weight: 600; }
.product-description a { color: #059669; text-decoration: underline; }
.product-description a:hover { color: #047857; }
.product-description blockquote {
    border-left: 3px solid #d1d5db;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #6b7280;
    font-style: italic;
}
.product-description img { border-radius: 0.75rem; margin: 1rem 0; max-width: 100%; height: auto; }
.product-description code {
    background: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.375rem;
    font-size: 0.875em;
    color: #ef4444;
}

/* ─── Blog Content (TinyMCE / rich HTML) ─── */
.prose-custom p {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}
.prose-custom h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.prose-custom h2::before {
    content: '';
    width: 4px;
    height: 1.5rem;
    background: #34d399;
    border-radius: 9999px;
    display: inline-block;
    flex-shrink: 0;
}
.prose-custom h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.prose-custom img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    margin: 1.5rem 0;
}
.prose-custom blockquote {
    border-left: 4px solid #34d399;
    background: linear-gradient(to right, #ecfdf5, transparent);
    border-radius: 0 1rem 1rem 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #374151;
    font-size: 1.05rem;
}
.prose-custom blockquote p {
    margin-bottom: 0.25rem;
    color: #374151;
}
.prose-custom blockquote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    font-style: normal;
    font-weight: 600;
}
.prose-custom ul,
.prose-custom ol {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}
.prose-custom li {
    margin-bottom: 0.25rem;
}
.prose-custom a {
    color: #059669;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.prose-custom a:hover {
    color: #047857;
}
.prose-custom pre {
    background: #1f2937;
    color: #f3f4f6;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 1.5rem 0;
}
.prose-custom code {
    background: #f3f4f6;
    color: #dc2626;
    font-size: 0.875rem;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}
.prose-custom pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}
.prose-custom hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 2rem 0;
}
