@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* ShopLeaf Starter. Brand colours come from Settings > Site Settings > Branding (--primary, --secondary). */
:root {
    --sl-accent: var(--primary, #1b810d);
    --sl-accent-2: var(--secondary, #0f3d2e);
    --sl-ink: #17201b;
    --sl-muted: #5c6862;
    --sl-bg: #ffffff;
    --sl-soft: #f3f6f2;
    --sl-line: #e3e9e2;
    --sl-radius: 14px;
    --sl-width: 1200px;
    --sl-top-height: 72px;
    --sl-header-offset: 0px;
}

body {
    margin: 0;
    background: var(--sl-bg);
    color: var(--sl-ink);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.sl-locked { overflow: hidden; }
.sl-main { display: block; min-height: 60vh; }
.sl-main img { max-width: 100%; }

.sl-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--sl-ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.sl-skip:focus { left: 16px; }

/* Header ------------------------------------------------------------- */
.sl-top {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}
.sl-top.scrolled { border-bottom-color: var(--sl-line); box-shadow: 0 6px 24px rgba(16, 32, 22, .06); }
.sl-top-inner {
    max-width: var(--sl-width); margin: 0 auto; padding: 0 24px; box-sizing: border-box;
    height: var(--sl-top-height); display: flex; align-items: center; gap: 24px;
}

.sl-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; min-width: 0; }
.sl-brand-logo { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; }
.sl-brand-name { font-weight: 800; font-size: 20px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sl-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.sl-nav .sl-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.sl-nav .sl-menu-item { position: relative; display: flex; align-items: center; }
.sl-nav .sl-menu a {
    display: block; padding: 8px 14px; border-radius: 999px; color: var(--sl-ink); text-decoration: none;
    font-weight: 500; font-size: 15px; white-space: nowrap; transition: background .15s, color .15s;
}
.sl-nav .sl-menu a:hover { background: var(--sl-soft); }
.sl-nav .sl-menu a[aria-current="page"], .sl-nav .sl-menu > .current-parent > a { color: var(--sl-accent); font-weight: 600; }
.sl-nav .has-children > a { padding-right: 4px; }

.sl-menu-toggle {
    all: unset; box-sizing: border-box; cursor: pointer; width: 24px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
    color: var(--sl-muted); border-radius: 8px;
}
.sl-menu-toggle::before {
    content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg); transition: transform .2s;
}
.sl-menu-toggle:focus-visible { outline: 2px solid var(--sl-accent); }

.sl-nav .sl-submenu {
    list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px;
    background: #fff; border: 1px solid var(--sl-line); border-radius: var(--sl-radius); box-shadow: 0 18px 40px rgba(16, 32, 22, .12);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.sl-nav .sl-submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.sl-nav .sl-submenu .sl-menu-item { display: flex; }
.sl-nav .sl-submenu a { flex: 1; border-radius: 10px; padding: 9px 12px; }
.sl-nav .sl-submenu .sl-submenu { top: -9px; left: calc(100% + 8px); }
.sl-nav .sl-submenu .sl-submenu::before { top: 0; bottom: 0; left: -10px; width: 10px; height: auto; right: auto; }
.sl-nav .sl-submenu .sl-menu-toggle::before { transform: rotate(-45deg); }
.sl-nav .sl-menu-item:hover > .sl-submenu,
.sl-nav .sl-menu-item:focus-within > .sl-submenu,
.sl-nav .sl-menu-item.open > .sl-submenu { opacity: 1; visibility: visible; transform: none; }
.sl-nav .sl-menu > .sl-menu-item.open > .sl-menu-toggle::before { transform: translateY(2px) rotate(225deg); }

.sl-actions { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }
.sl-actions .icon-user {
    position: relative; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 20px; color: var(--sl-ink); background: var(--sl-soft);
}
.sl-actions .icon-user:hover { color: var(--sl-accent); }
.sl-actions .hovermenu {
    display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; padding: 8px; z-index: 60;
    background: #fff; border: 1px solid var(--sl-line); border-radius: var(--sl-radius); box-shadow: 0 18px 40px rgba(16, 32, 22, .12);
    font-family: "Inter", system-ui, sans-serif; font-size: 15px; text-align: left;
}
.sl-actions .hovermenu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.sl-actions .icon-user:hover .hovermenu, .sl-actions .icon-user.open .hovermenu { display: block; }
.sl-actions .hovermenu a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--sl-ink); text-decoration: none; white-space: nowrap; }
.sl-actions .hovermenu a:hover { background: var(--sl-soft); color: var(--sl-accent); }

.sl-burger { all: unset; box-sizing: border-box; display: none; width: 42px; height: 42px; border-radius: 12px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.sl-burger:hover { background: var(--sl-soft); }
.sl-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--sl-ink); transition: transform .2s, opacity .2s; }
.sl-top.menu-open .sl-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sl-top.menu-open .sl-burger span:nth-child(2) { opacity: 0; }
.sl-top.menu-open .sl-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Footer ------------------------------------------------------------- */
.sl-foot { background: #101813; background: color-mix(in srgb, var(--sl-accent-2) 55%, #0b120e); color: rgba(255, 255, 255, .78); margin-top: 0; }
.sl-foot a { color: inherit; text-decoration: none; }
.sl-foot a:hover { color: #fff; }
.sl-foot-inner {
    max-width: var(--sl-width); margin: 0 auto; padding: 64px 24px 40px; box-sizing: border-box;
    display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 48px;
}
.sl-foot .sl-brand { color: #fff; }
.sl-foot-brand .sl-socials { margin-top: 20px; }

.sl-socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sl-social {
    width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .85); transition: background .15s, color .15s, transform .15s;
}
.sl-social:hover { background: var(--sl-accent); color: #fff; transform: translateY(-2px); }
.sl-social-icon {
    width: 18px; height: 18px; background: currentColor;
    -webkit-mask: var(--sl-icon) center / contain no-repeat; mask: var(--sl-icon) center / contain no-repeat;
}
.sl-social-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sl-social.no-icon { width: auto; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.sl-social.no-icon .sl-social-icon { display: none; }
.sl-social.no-icon .sl-social-name { position: static; width: auto; height: auto; clip: auto; }

.sl-foot-links .sl-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 24px 48px; }
.sl-foot-links .sl-menu > li { min-width: 120px; }
.sl-foot-links .sl-menu > li > a { font-weight: 700; color: #fff; }
.sl-foot-links .sl-submenu { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.sl-foot-links .sl-submenu .sl-submenu, .sl-foot-links .sl-menu-toggle { display: none; }

.sl-foot-bottom {
    width: calc(100% - 48px); max-width: calc(var(--sl-width) - 48px); margin: 0 auto; padding: 20px 0 28px; box-sizing: border-box;
    border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: rgba(255, 255, 255, .55);
}

/* Phones and small tablets -------------------------------------------- */
@media (max-width: 900px) {
    /* backdrop-filter would make the fixed menu panel position against the header instead of the window */
    .sl-top { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .sl-top-inner { padding: 0 16px; gap: 12px; }
    .sl-burger { display: inline-flex; }
    .sl-nav {
        display: none; position: fixed; left: 0; right: 0; top: var(--sl-top-height); bottom: 0; z-index: 49;
        background: #fff; overflow-y: auto; padding: 12px 16px 40px; box-sizing: border-box; justify-content: flex-start;
    }
    .sl-top.menu-open .sl-nav { display: block; }
    .sl-nav .sl-menu { flex-direction: column; align-items: stretch; gap: 2px; }
    .sl-nav .sl-menu-item { flex-wrap: wrap; }
    .sl-nav .sl-menu a { flex: 1; font-size: 17px; padding: 12px 14px; border-radius: 12px; }
    .sl-nav .sl-menu-toggle { width: 44px; height: 44px; }
    .sl-nav .sl-submenu, .sl-nav .sl-submenu .sl-submenu {
        position: static; flex-basis: 100%; min-width: 0; display: none; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: 0; border-left: 2px solid var(--sl-line); border-radius: 0; margin: 0 0 6px 16px; padding: 0 0 0 8px;
    }
    .sl-nav .sl-submenu::before { display: none; }
    .sl-nav .sl-menu-item.open > .sl-submenu { display: block; }
    .sl-nav .sl-submenu .sl-menu-toggle::before { transform: translateY(-2px) rotate(45deg); }
    .sl-nav .sl-menu-item.open > .sl-menu-toggle::before { transform: translateY(2px) rotate(225deg); }
    .sl-foot-inner { grid-template-columns: 1fr; gap: 36px; padding: 48px 16px 32px; }
    .sl-foot-bottom { width: calc(100% - 32px); }
}
@media (hover: none) {
    .sl-nav .sl-menu-item:hover > .sl-submenu { opacity: 0; visibility: hidden; }
    .sl-nav .sl-menu-item.open > .sl-submenu, .sl-nav .sl-menu-item:focus-within > .sl-submenu { opacity: 1; visibility: visible; }
}
@media (prefers-reduced-motion: reduce) {
    .sl-top, .sl-nav *, .sl-social, .sl-burger span { transition: none !important; }
}
