@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --gray: #a7a7a7;
    --dark: #000000;
    --light: #f8f9fa;
}

.navbar {
    transition: all 0.3s;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

#searchOverlay {
    transition: opacity 0.4s ease;
    opacity: 0;
    visibility: hidden;
}

#searchOverlay.active {
    opacity: 1;
    visibility: visible;
}

#searchInput:focus {
    outline: none;
    box-shadow: none;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
}

/* Hero / carousel sits flush under the sticky navbar (no white strip) */
.carousel-section {
    margin-top: 0;
    padding-top: 0;
}

#heroCarousel.carousel {
    margin-top: 0;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 9999;
}

.nav-link {
    color: #333 !important;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 0px solid #000000;
}

.nav-link:hover,
.nav-link.active {
    color: #000000 !important;
    border-bottom: 1px solid #000000;
}

/* Accent (replaces previous gold styling). Use neutral black/gray for accents. */
:root {
    --accent-bg: #f5f5f5;
    /* light gray background for accents */
    --accent-foreground: #333333;
    /* main accent color (dark gray) */
}

.text-accent {
    color: var(--accent-foreground) !important;
}

.bg-accent {
    background-color: var(--accent-bg) !important;
}

.btn-accent {
    background: var(--accent-foreground);
    color: #fff;
    font-weight: 600;
    border: none;
}

.btn-accent:hover {
    transform: translateY(-2px);
    background: #c5c5c5;
}

.card {
    transition: all 0.3s;
    border: none;
}

.product-img {
    transition: all 0.3s;
    scale: 1;
}

/* Product card image: smooth scale only (instant src swap — no opacity animation = no lag) */
img.product-hover-swap {
    transition: transform 0.25s ease;
}

.product-img:hover {
    scale: 1.2;
}

h1,
h2,
h3 {
    font-family: 'Montserrat', sans-serif;
}

a {
    color: black;
    text-decoration: none;
}

.text-gold {
    /* legacy class — kept for backwards compatibility. Prefer .text-accent */
    color: var(--accent-foreground);
}

.hero-img {
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
}

.hover-shadow {
    transition: all 0.4s;
}

.hover-shadow:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.hero-section {
    background: linear-gradient(rgba(255, 255, 255, 0.829)), url("https://images.unsplash.com/photo-1523381210434-271e8be1f52b");
    background-position: fixed;
    background-size: cover;
    padding-top: 200px;
    padding-bottom: 100px;
}

.hero-img {
    overflow: hidden;
    transform: translateY(0px);
    animation: translat 5s linear infinite;
    animation-delay: 0s;
}

.hero-img:hover {
    animation: none;
}

@keyframes translat {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* .hero-section .col-6:nth-child(1) .hero-img {
    animation-delay: .1s;
}

.hero-section .col-6:nth-child(2) .hero-img {
    animation-delay: .2s;
}

.hero-section .col-6:nth-child(3) .hero-img {
    animation-delay: .3s;
} */

#searchOverlay {
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

#searchOverlay.active {
    opacity: 1;
    pointer-events: auto;
}

#searchInput {
    font-size: 2.5rem !important;
    font-weight: 300;
    border: none !important;
    outline: none !important;
}

#searchInput::placeholder {
    color: #aaa;
}

.input_text {
    transform: translate(0, 20px);
}

/* Gold underline on focus */
#searchInput:focus {
    border-bottom: 1px solid var(--accent-foreground) !important;
}

/* Utilities for product images */
.product-thumb {
    width: 100px;
    height: 100px;
    object-fit: cover;
    display: inline-block;
}

.product-thumb-sm {
    width: 90px;
    height: 90px;
    object-fit: cover;
    display: inline-block;
}

.product-main {
    max-height: 600px;
    object-fit: contain;
    width: 100%;
}

/* Button utilities */
.rounded-pill {
    border-radius: 9999px !important;
}

/* Card product image sizing */
.product-card-img {
    object-fit: cover;
}

/* Larger card image variant */
.product-card-lg {
    height: 350px;
    object-fit: cover;
    width: 100%;
}

/* Sticky offset for elements that need top offset when using sticky positioning */
.sticky-offset {
    top: 100px !important;
}

/* Input width utilities */
.input-w-160 {
    width: 160px !important;
}

.input-w-140 {
    width: 140px !important;
}

.td-width-200 {
    width: 200px !important;
}

.td-width-120 {
    width: 120px !important;
}

/* Search overlay defaults (was inline in header.php) */
#searchOverlay {
    z-index: 9999;
    display: none;
}

.container-max-1000 {
    max-width: 1000px !important;
}

/* Tighter product card spacing on mobile */
@media (max-width: 575.98px) {
    .row.row-cols-2.row-cols-sm-2.row-cols-lg-3.row-cols-xl-4,
    .row.row-cols-2.row-cols-md-3.row-cols-lg-4 {
        --bs-gutter-x: 0.6rem;
        --bs-gutter-y: 0.8rem;
    }

    .product-card-img-wrap {
        margin-bottom: 0.4rem !important;
    }
}