/* ================================================================
   LUFA BASKET — PUBLIC SITE MODERN THEME OVERRIDE
   Keeps brown / gold brand palette; refines UX/UI only.
   Loaded after the inline <style> block so it wins cascade.
   ================================================================ */

/* ── Token overrides ─────────────────────────────────────────── */
:root {
    /* Tighten shadows */
    --shadow-sm:  0 1px 4px rgba(0,0,0,0.05);
    --shadow-md:  0 3px 10px rgba(0,0,0,0.08);
    --shadow-lg:  0 6px 20px rgba(0,0,0,0.10);
    --shadow-xl:  0 10px 28px rgba(0,0,0,0.12);
    --shadow-xxl: 0 14px 36px rgba(0,0,0,0.14);

    /* Tighten radii */
    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 14px;

    /* Tighter transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Global ──────────────────────────────────────────────────── */
body { -webkit-font-smoothing: antialiased; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
    min-height: 40px;
    padding: 0.55rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 8px;
    box-shadow: none;
    gap: 0.4rem;
}

/* Remove the sliding shimmer sweep */
.btn::before { display: none; }

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: none; box-shadow: none; }

.btn-primary {
    background: var(--primary-brown);
    color: var(--white);
    box-shadow: none;
}
.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-dark);
    border: 1px solid rgba(139,69,19,0.18);
    box-shadow: none;
}
.btn-secondary:hover {
    background: var(--white);
    border-color: var(--primary-brown);
    color: var(--primary-brown);
    box-shadow: var(--shadow-sm);
}

.btn-outline {
    background: transparent;
    color: var(--primary-brown);
    border: 1px solid rgba(139,69,19,0.35);
    box-shadow: none;
}
.btn-outline:hover {
    background: var(--primary-brown);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-small {
    padding: 0.35rem 0.8rem;
    font-size: 0.75rem;
    min-height: 30px;
}

/* Hero buttons keep a slightly larger size */
.btn-hero {
    min-height: 42px;
    padding: 0.6rem 1.25rem;
    font-size: 0.84rem;
}

/* ── Header ──────────────────────────────────────────────────── */
header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

header.scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none;
}

/* ── Product cards ───────────────────────────────────────────── */
.product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
}

.product-card::before {
    height: 2px;
    background: linear-gradient(90deg, var(--primary-brown), var(--accent-gold));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(139,69,19,0.14);
}

/* ── Testimonial cards ───────────────────────────────────────── */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 1.25rem;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ── Contact cards ───────────────────────────────────────────── */
.contact-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1rem;
}

.contact-card:hover {
    border-color: rgba(139,69,19,0.2);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.contact-icon {
    background: linear-gradient(135deg, var(--primary-brown), var(--accent-gold));
    border-radius: 10px;
    box-shadow: none;
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.faq-item {
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: var(--radius-md);
    box-shadow: none;
    margin-bottom: 6px;
}

.faq-item::before { display: none; }

.faq-item.active {
    border-color: rgba(139,69,19,0.22);
    box-shadow: var(--shadow-sm);
}

.faq-question { padding: 0.85rem 1rem; }
.faq-question h3 { font-size: 0.82rem; }

.faq-toggle-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    font-size: 0.7rem;
    background: var(--light-gray);
}

.faq-item.active .faq-toggle-icon {
    background: var(--primary-brown);
}

/* ── Stat cards (hero) ───────────────────────────────────────── */
.stat {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 0.75rem 1rem;
}

.stat:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ── Section header ──────────────────────────────────────────── */
.section-header { margin-bottom: 2rem; }

.section-title {
    font-size: clamp(1.6rem, 2.6vw, 2.3rem);
    letter-spacing: -0.025em;
}

.section-title::after {
    height: 2px;
    bottom: -8px;
    width: 36px;
}

.section-subtitle { font-size: 0.88rem; line-height: 1.65; }

/* ── Section label chips ─────────────────────────────────────── */
.section-label, .section-tag, .section-chip {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 20px;
}

/* ── About / story cards ─────────────────────────────────────── */
.story-card {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
}

.story-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ── Community stat cards ────────────────────────────────────── */
.impact-stat, .community-stat {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255,255,255,0.12);
}

/* ── Care instruction cards ──────────────────────────────────── */
.care-card {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
}

.care-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ── Modal ───────────────────────────────────────────────────── */
.modal-content, .modal-container {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0,0,0,0.07);
}

/* ── Cart / checkout ─────────────────────────────────────────── */
.cart-item {
    border-bottom: 1px solid var(--medium-gray);
    padding: 0.75rem 0;
}

.cart-item:last-child { border-bottom: none; }

/* ── Notification toasts ─────────────────────────────────────── */
.notification {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
}

/* ── Footer ──────────────────────────────────────────────────── */
footer {
    background: linear-gradient(180deg, #1a110c 0%, #2a160a 100%);
}

.footer-section h3 {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 0.85rem;
}

footer .footer-links a,
.footer-section ul li a {
    font-size: 0.78rem;
    opacity: 0.75;
    transition: opacity var(--transition-fast);
}

footer .footer-links a:hover,
.footer-section ul li a:hover { opacity: 1; color: var(--white); }

footer .copyright { font-size: 0.72rem; opacity: 0.55; }

/* ── Form inputs (contact / checkout) ───────────────────────── */
.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.14);
    font-size: 0.82rem;
    padding: 0.55rem 0.9rem;
    min-height: 38px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-brown);
    box-shadow: 0 0 0 2px rgba(139,69,19,0.1);
    outline: none;
}

/* ── Badges / status chips ───────────────────────────────────── */
.badge, [class*="badge-"], .tag {
    font-size: 0.62rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.03em;
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(139,69,19,0.25); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(139,69,19,0.45); }

/* ── Dark mode overrides ─────────────────────────────────────── */
[data-theme="dark"] .product-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .story-card,
[data-theme="dark"] .care-card,
[data-theme="dark"] .stat {
    background: var(--medium-gray);
    border-color: rgba(255,255,255,0.06);
}

[data-theme="dark"] .faq-item {
    border-color: rgba(255,255,255,0.08);
    background: var(--medium-gray);
}

[data-theme="dark"] .contact-card {
    background: var(--medium-gray);
    border-color: rgba(255,255,255,0.07);
}

[data-theme="dark"] .notification {
    background: var(--medium-gray);
    border-color: rgba(255,255,255,0.08);
}

/* ── Accessibility — focus ring ──────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--primary-brown);
    outline-offset: 2px;
}

/* ── Mobile refinements ──────────────────────────────────────── */
@media (max-width: 768px) {
    .btn       { min-height: 38px; padding: 0.5rem 1rem; font-size: 0.8rem; }
    .btn-hero  { min-height: 40px; }
    .stat      { padding: 0.65rem 0.75rem; }
    .faq-question { padding: 0.75rem 0.85rem; }
    .section-title { font-size: clamp(1.35rem, 5vw, 1.8rem); }
    .section-header { margin-bottom: 1.5rem; }
}

@media (max-width: 480px) {
    .btn       { min-height: 36px; padding: 0.45rem 0.85rem; font-size: 0.78rem; }
    .product-card  { border-radius: 12px; }
    .testimonial-card { border-radius: 12px; }
}
