/* ─── Northcore-style ecom — Mobile-first ─────────────────────────── */

:root {
    --bs-body-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Bebas Neue', 'Arial Narrow', sans-serif;
    --font-serif: 'Source Serif 4', Georgia, serif;
    --color-accent: #f6a123;
    --color-teal: #0da19a;
    --color-dark: #020912;
    --color-footer: #3a3a3a;
    --color-badge-bg: rgba(0,0,0,0.04);
    --section-spacing: 2.5rem;
}

body { background: #fff; }

/* ─── Typography ────────────────────────────────────────────────── */

h1, h2, h3, .display-4, .display-5, .display-6 {
    font-family: var(--font-heading);
    letter-spacing: 0.03em;
}

.display-4 { font-size: 2.5rem; }
@media (min-width: 768px) { .display-4 { font-size: 4rem; } }
@media (min-width: 992px) { .display-4 { font-size: 5rem; } }

/* ─── Buttons — square corners like Northcore ───────────────────── */

.btn { border-radius: 0; }
.form-control, .form-select, .input-group-text { border-radius: 0; }

/* Accent button */
.btn-accent {
    background-color: var(--color-accent);
    color: #000;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.btn-accent:hover {
    background-color: #e5931a;
    color: #000;
}

/* ─── Header — white bg, dark text ──────────────────────────────── */

.navbar {
    background: #fff !important;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.navbar .nav-link {
    color: #222 !important;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.navbar .nav-link:hover { color: var(--color-accent) !important; }
.navbar-brand img { max-height: 28px; }

@media (min-width: 992px) {
    .navbar .nav-link { font-size: 1.25rem; }
}

/* ─── Hero ──────────────────────────────────────────────────────── */

.hero-section {
    position: relative;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #000;
    opacity: 0.4;
}
.hero-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero-content {
    position: relative;
    z-index: 2;
}

/* ─── Trust Badges ──────────────────────────────────────────────── */

.trust-badges {
    background: var(--color-badge-bg);
    padding: 1.2rem 0;
}
.trust-badge-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    font-weight: 300;
}
@media (min-width: 768px) {
    .trust-badge-text { font-size: 1.4rem; }
}

/* ─── Collection Cards ──────────────────────────────────────────── */

.collection-card {
    transition: transform 0.3s ease;
    cursor: pointer;
    aspect-ratio: 1/1;
}
.collection-card:hover { transform: scale(1.02); }

.collection-card img {
    filter: grayscale(30%);
    transition: filter 0.4s ease;
}
.collection-card:hover img { filter: grayscale(0%); }

.collection-card-overlay {
    background: rgba(0,0,0,0.25);
    transition: background 0.3s ease;
}
.collection-card:hover .collection-card-overlay {
    background: rgba(0,0,0,0.45);
}
.collection-card-btn {
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
    background-color: var(--color-accent) !important;
    color: #000 !important;
    border: none !important;
    border-radius: 0;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.collection-card:hover .collection-card-btn {
    opacity: 1 !important;
    transform: translateY(0);
}

/* ─── Product Cards ─────────────────────────────────────────────── */

.product-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    border-radius: 0;
}
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.1) !important;
}
.product-card .card-body { padding: 0.875rem; }
.product-card .card-img-top { border-radius: 0; }

/* Price colors */
.price-current { color: var(--color-teal); font-weight: 700; }
.price-was { color: #999; text-decoration: line-through; }

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 2.8em;
}

/* ─── Product Scroll (mobile carousel) ──────────────────────────── */

.product-scroll {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.product-scroll::-webkit-scrollbar { display: none; }
.product-scroll > * { scroll-snap-align: start; }

/* ─── About Section ─────────────────────────────────────────────── */

.about-section h2 {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.5rem;
}
@media (min-width: 768px) {
    .about-section h2 { font-size: 2rem; }
}

/* ─── Thumbnail Gallery ─────────────────────────────────────────── */

.thumbnail-img {
    opacity: 0.6;
    transition: opacity 0.15s;
    cursor: pointer;
}
.thumbnail-img.active,
.thumbnail-img:hover {
    opacity: 1;
    border-color: #222 !important;
}

/* ─── Attribute Selectors ───────────────────────────────────────── */

.btn-check:checked + .btn-outline-dark {
    background-color: #222;
    color: #fff;
}

/* ─── Footer ────────────────────────────────────────────────────── */

footer {
    background-color: var(--color-footer) !important;
}
footer a { color: #f1f1f0 !important; }
footer a:hover { color: var(--color-accent) !important; }

/* ─── Newsletter Section ────────────────────────────────────────── */

.newsletter-section input {
    border: 2px solid rgba(255,255,255,0.55);
    background: transparent;
    color: #fff;
}
.newsletter-section input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-section .btn { background: var(--color-accent); color: #000; border: none; }

/* ─── Responsive Utilities ──────────────────────────────────────── */

html { scroll-behavior: smooth; }
.cursor-pointer { cursor: pointer; }
.object-fit-contain { object-fit: contain; }
.object-fit-cover { object-fit: cover; }
.offcanvas { max-width: 300px; }

@media (max-width: 767.98px) {
    .btn { min-height: 44px; }
    .form-control, .form-select { min-height: 44px; font-size: 16px; }
    .navbar-brand { font-size: 1rem; }
    :root { --section-spacing: 1.5rem; }
}

@media (min-width: 992px) {
    .sticky-lg-top { position: sticky !important; }
}

/* Product description */
.product-description img { max-width: 100%; height: auto; }
.product-description table { width: 100%; overflow-x: auto; display: block; }

/* ─── Nav Hover Dropdowns (pure CSS, no Bootstrap JS) ───────────── */

.nav-hover-dd {
    position: relative;
}

.nav-hover-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    min-width: 200px;
    padding: 0.5rem 0;
    z-index: 1080;
}

.nav-hover-dd:hover > .nav-hover-panel {
    display: block;
}

.nav-hover-link {
    display: block;
    padding: 0.45rem 1.25rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-hover-link:hover {
    background: #f5f5f5;
    color: var(--color-accent, #f6a123);
}
