/* ====== SHARED STYLES - Chocolaterie Smikky ====== */
:root {
    --chocolate-dark: #3C1518;
    --chocolate-medium: #69140E;
    --chocolate-warm: #A44200;
    --caramel: #BF9E7F;
    --caramel-light: #D4C5B2;
    --cream: #FFF8F0;
    --accent-orange: #F79007;
    --gold: #C9A96E;
    --white: #FFFFFF;
    --text-dark: #2C1810;
    --text-light: #5C4A3A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    background: var(--cream);
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.625;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2 { font-family: 'Pacifico', cursive; line-height: 1.3; font-weight: 400; }
h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.25; }
p { max-width: 70ch; margin-left: auto; margin-right: auto; }
img { max-width: 100%; height: auto; display: block; }

/* ====== ACCESSIBILITY: Focus States ====== */
:focus-visible {
    outline: 2px solid var(--accent-orange);
    outline-offset: 3px;
    border-radius: 4px;
}
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent-orange);
    outline-offset: 3px;
}
/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    padding: 0.8rem 1.5rem;
    background: var(--accent-orange);
    color: var(--white);
    font-weight: 700;
    border-radius: 0 0 8px 8px;
    z-index: 100000;
    transition: top 0.2s;
    text-decoration: none;
}
.skip-link:focus {
    top: 0;
}

/* ====== SCROLL PROGRESS ====== */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px;
    background: var(--accent-orange); z-index: 10001;
    width: 0%; box-shadow: 0 0 8px rgba(247,144,7,0.4);
}

/* ====== NAVIGATION ====== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000; padding: 1rem 2rem;
    transition: all 0.4s ease; background: transparent;
}
.navbar.scrolled {
    background: rgba(60, 21, 24, 0.95);
    backdrop-filter: blur(15px);
    padding: 0.7rem 2rem;
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}
.navbar.navbar-dark {
    background: rgba(60, 21, 24, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}
.nav-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
}
.nav-logo {
    display: flex; align-items: center; gap: 0.8rem;
    text-decoration: none;
}
.nav-logo img {
    height: 55px; width: auto;
    transition: transform 0.3s;
    filter: brightness(0) invert(1);
}
.nav-logo:hover img { transform: scale(1.05); }
.nav-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem; font-weight: 700;
    color: var(--white); letter-spacing: 2px;
    display: none;
}
.nav-logo-text span { color: var(--accent-orange); }
.nav-links { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-links a {
    color: var(--white); text-decoration: none; font-size: 0.9rem;
    font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    transition: color 0.3s; position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--accent-orange);
    transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--accent-orange); }

/* Dropdown */
.nav-dropdown {
    position: relative;
}
.nav-dropdown > a {
    display: flex; align-items: center; gap: 0.3rem;
}
.nav-dropdown > a .dropdown-arrow {
    font-size: 0.6rem;
    transition: transform 0.3s;
}
.nav-dropdown:hover > a .dropdown-arrow {
    transform: rotate(180deg);
}
.dropdown-menu {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background: #3C1518;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(201,169,110,0.2);
    border-radius: 12px;
    padding: 0.8rem 0;
    min-width: 220px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    margin-top: 0.5rem;
    z-index: 1001;
}
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.dropdown-menu li { }
.dropdown-menu a {
    display: block;
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap;
    transition: all 0.2s;
}
.dropdown-menu a::after { display: none !important; }
.dropdown-menu a:hover {
    color: var(--accent-orange) !important;
    background: rgba(255,255,255,0.05);
    padding-left: 1.8rem;
}

.hamburger {
    display: none; flex-direction: column; cursor: pointer;
    gap: 5px; background: none; border: none; padding: 10px;
    min-width: 44px; min-height: 44px;
    justify-content: center; align-items: center;
}
.hamburger:focus-visible {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
    border-radius: 6px;
}
.hamburger span {
    width: 28px; height: 2px; background: var(--white);
    transition: all 0.3s; display: block;
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.9rem 2.2rem; border-radius: 50px;
    font-size: 0.9rem; font-weight: 700;
    text-decoration: none; text-transform: uppercase;
    letter-spacing: 1.5px; transition: all 0.25s ease;
    border: none; cursor: pointer;
    min-height: 44px;
    touch-action: manipulation;
}
.btn:active {
    transform: scale(0.97);
}
.btn-primary {
    background: var(--accent-orange); color: var(--white);
    box-shadow: 0 4px 20px rgba(247, 144, 7, 0.3);
}
.btn-primary:hover {
    background: #e58306; transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(247, 144, 7, 0.5);
}
.btn-primary:active {
    background: #d17705; transform: scale(0.97);
}
.btn-outline {
    background: transparent; color: var(--white);
    border: 2px solid var(--gold);
}
.btn-outline:hover {
    background: var(--gold); color: var(--chocolate-dark);
    transform: translateY(-2px);
}
.btn-secondary {
    background: var(--chocolate-dark); color: var(--white);
    box-shadow: 0 4px 20px rgba(60, 21, 24, 0.3);
}
.btn-secondary:hover {
    background: var(--chocolate-medium); transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(60, 21, 24, 0.4);
}

/* ====== PAGE HERO BANNER ====== */
.page-hero {
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg,
        rgba(60, 21, 24, 0.92) 0%,
        rgba(105, 20, 14, 0.88) 40%,
        rgba(164, 66, 0, 0.85) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: 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.03'%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");
}
.page-hero h1 {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    color: var(--white);
    margin-bottom: 0.8rem;
    position: relative;
}
.page-hero p {
    font-size: 1.1rem;
    color: var(--caramel-light);
    position: relative;
}
.page-hero .breadcrumb {
    position: relative;
    margin-top: 1.2rem;
}
.page-hero .breadcrumb a {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.page-hero .breadcrumb a:hover {
    color: var(--accent-orange);
}
.page-hero .breadcrumb span {
    color: var(--caramel-light);
    font-size: 0.9rem;
    margin: 0 0.5rem;
}

/* ====== CATEGORY CARDS (assortiment overview) ====== */
.categories-section {
    padding: 5rem 2rem;
    background: var(--cream);
}
.categories-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.category-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s;
    display: block;
}
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(60, 21, 24, 0.15);
}
.category-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}
.category-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.category-card:hover .category-card-img img {
    transform: scale(1.08);
}
.category-card-info {
    padding: 1.2rem 1.5rem;
    text-align: center;
}
.category-card-info h3 {
    font-size: 1.1rem;
    color: var(--chocolate-dark);
    margin-bottom: 0.3rem;
}
.category-card-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ====== GALLERY GRID ====== */
.gallery-section {
    padding: 4rem 2rem 6rem;
    background: var(--cream);
}
.gallery-back {
    max-width: 1200px;
    margin: 0 auto 2rem;
}
.gallery-back a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--chocolate-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(60,21,24,0.06);
}
.gallery-back a:hover {
    color: var(--accent-orange);
    transform: translateX(-3px);
}
.gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}
.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    aspect-ratio: 1;
    background: var(--white);
    box-shadow: 0 2px 15px rgba(60,21,24,0.06);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s;
}
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(60, 21, 24, 0.12);
}
.gallery-loading, .gallery-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    font-size: 1.1rem;
    color: var(--text-light);
    font-family: 'Lato', sans-serif;
}
.gallery-loading::after {
    content: '';
    display: block;
    width: 40px; height: 40px;
    margin: 1.5rem auto 0;
    border: 3px solid var(--caramel-light);
    border-top-color: var(--accent-orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-item:hover img {
    transform: scale(1.06);
}
.gallery-item::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(60,21,24,0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-item:hover::after {
    opacity: 1;
}

/* ====== LIGHTBOX ====== */
.lightbox-overlay {
    position: fixed; inset: 0;
    background: rgba(20, 10, 8, 0.92);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}
.lightbox-overlay.fade-out {
    opacity: 0;
}
.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    object-fit: contain;
    transition: transform 0.3s ease;
}
.lightbox-close {
    position: absolute; top: 1.5rem; right: 2rem;
    background: rgba(255,255,255,0.1); border: none;
    color: var(--white); font-size: 2.5rem;
    cursor: pointer; transition: all 0.25s;
    width: 50px; height: 50px;
    min-width: 44px; min-height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    touch-action: manipulation;
}
.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}
.lightbox-close:focus-visible {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
}
.lightbox-nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: none; color: var(--white);
    font-size: 2rem; cursor: pointer;
    width: 55px; height: 55px;
    min-width: 44px; min-height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s;
    touch-action: manipulation;
}
.lightbox-nav:hover {
    background: rgba(255,255,255,0.25);
}
.lightbox-nav:focus-visible {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
}
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-counter {
    position: absolute;
    bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    color: var(--caramel-light);
    font-size: 0.9rem;
    background: rgba(0,0,0,0.4);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
}

/* ====== FOOTER ====== */
.footer { background: var(--chocolate-dark); color: var(--caramel-light); padding: 4rem 2rem 2rem; }
.footer-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem; margin-bottom: 3rem;
}
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; }
.footer p { font-size: 0.85rem; line-height: 1.8; color: var(--caramel); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
    color: var(--caramel); text-decoration: none; font-size: 0.85rem;
    transition: all 0.25s; display: inline-block;
    padding: 0.2rem 0;
    min-height: 44px;
    display: inline-flex; align-items: center;
}
.footer-links a:hover { color: var(--accent-orange); transform: translateX(3px); }
.footer-bottom {
    max-width: 1200px; margin: 0 auto; padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.8rem; color: var(--caramel); flex-wrap: wrap; gap: 1rem;
}
.fairtrade-badge {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 1rem; background: rgba(255,255,255,0.05);
    border-radius: 8px; margin-top: 1rem; font-size: 0.8rem;
}

/* ====== SECTION HEADER ====== */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 4rem; }
.section-label {
    display: inline-block; font-size: 0.8rem; letter-spacing: 4px;
    text-transform: uppercase; color: var(--accent-orange);
    margin-bottom: 0.8rem; font-weight: 700;
}
.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    color: var(--chocolate-dark); margin-bottom: 1rem; line-height: 1.3;
}
.section-header p { font-size: 1.05rem; color: var(--text-light); line-height: 1.8; }

/* ====== ANIMATIONS ====== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    opacity: 0; transform: translateY(25px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.stagger .fade-in:nth-child(1) { transition-delay: 0s; }
.stagger .fade-in:nth-child(2) { transition-delay: 0.05s; }
.stagger .fade-in:nth-child(3) { transition-delay: 0.1s; }
.stagger .fade-in:nth-child(4) { transition-delay: 0.15s; }
.stagger .fade-in:nth-child(5) { transition-delay: 0.2s; }
.stagger .fade-in:nth-child(6) { transition-delay: 0.25s; }
.stagger .fade-in:nth-child(7) { transition-delay: 0.3s; }
.stagger .fade-in:nth-child(8) { transition-delay: 0.35s; }

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(60, 21, 24, 0.98);
        flex-direction: column; padding: 1.5rem 2rem; gap: 1.2rem;
        text-align: center;
    }
    .nav-links.active { display: flex; }
    .nav-dropdown .dropdown-menu {
        position: static; transform: none;
        background: rgba(255,255,255,0.05);
        border-radius: 8px;
        box-shadow: none;
        opacity: 1; visibility: visible;
        margin-top: 0.5rem;
        padding: 0.5rem 0;
    }
    .dropdown-menu a {
        padding: 0.4rem 1.2rem !important;
        font-size: 0.82rem !important;
    }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .page-hero { padding: 7rem 1.5rem 3rem; }
    .lightbox-nav { width: 40px; height: 40px; font-size: 1.5rem; }
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
}
@media (max-width: 480px) {
    .categories-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
    .category-card-img { height: 150px; }
}

/* ====== ACCESSIBILITY: Reduced Motion ====== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .gallery-item:hover img,
    .category-card:hover .category-card-img img {
        transform: none;
    }
    .lightbox-overlay {
        transition: none;
    }
    .gallery-loading::after {
        animation: none;
        border: 3px solid var(--caramel-light);
    }
}

/* ====== ACCESSIBILITY: High Contrast ====== */
@media (prefers-contrast: high) {
    .category-card {
        border: 2px solid var(--text-dark);
    }
    .gallery-item {
        border: 2px solid var(--text-dark);
    }
    .btn {
        border: 2px solid currentColor;
    }
    .nav-links a::after {
        height: 3px;
    }
}

/* mobile-menu-scroll-fix */
@media (max-width: 768px) {
  .nav-links { max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain; }
  .nav-links > li { flex-shrink: 0; }
  .nav-dropdown:hover .dropdown-menu { transform: none; }
}

