:root {
    color-scheme: light;
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: #111827;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #ffffff;
    color: inherit;
    font-family: inherit;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #dc2626;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus-visible {
    color: #b91c1c;
}

button,
input,
select,
textarea {
    font: inherit;
}

main {
    display: block;
}

/* Custom scrollbar for mega menu */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #dc2626;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #b91c1c;
}

/* Remove number input spinners for a cleaner price input */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.bg-hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.bg-cta-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.header-product-search {
    display: none;
    max-width: 34rem;
    min-width: 18rem;
}

@media (min-width: 768px) {
    .header-product-search {
        display: block;
    }
}

[data-product-gallery] [data-gallery-open] {
    cursor: zoom-in;
}

[data-product-gallery] [data-gallery-main] {
    background: #ffffff;
    object-fit: contain;
}

[data-product-gallery] [data-gallery-open]:focus-visible,
[data-product-gallery] [data-gallery-thumb]:focus-visible {
    outline: 3px solid #fecaca;
    outline-offset: 3px;
}

[data-product-gallery] [data-gallery-thumb][aria-current="true"] {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px #fee2e2;
}

[data-product-gallery] [data-gallery-modal] {
    align-items: stretch;
    background: rgba(0, 0, 0, 0.85);
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 100;
}

[data-product-gallery] [data-gallery-prev],
[data-product-gallery] [data-gallery-next],
[data-product-gallery] [data-gallery-close] {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-product-gallery] [data-gallery-prev]:hover,
[data-product-gallery] [data-gallery-next]:hover,
[data-product-gallery] [data-gallery-close]:hover {
    background: rgba(255, 255, 255, 0.2);
}

[data-product-gallery] [data-gallery-prev]:focus-visible,
[data-product-gallery] [data-gallery-next]:focus-visible,
[data-product-gallery] [data-gallery-close]:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.35);
    outline-offset: 3px;
}

[data-product-gallery] [data-gallery-modal-image] {
    height: auto;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    width: auto;
}
