*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #f7f5f0;
    --surface: #ffffff;
    --border: rgba(58, 77, 40, 0.1);
    --border-hover: rgba(58, 77, 40, 0.22);
    --text: #2c3320;
    --text-sec: #6b7259;
    --green: #4a7c3f;
    --gold: #c4940e;
    --gold-light: #fdf5e0;
}

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
}

/* Grain */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px;
}

.bg-wash {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(106,163,199,0.1) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 30% 80%, rgba(74,124,63,0.07) 0%, transparent 50%),
        radial-gradient(ellipse 50% 35% at 75% 70%, rgba(196,148,14,0.06) 0%, transparent 50%);
}

.glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74,124,63,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transition: transform 0.06s linear, opacity 0.5s ease;
    transform: translate(-50%, -50%);
    opacity: 0;
}
.glow.active { opacity: 1; }
@media (hover: none) { .glow { display: none; } }

/* Container */
.container {
    max-width: 440px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1.25rem 4rem;
    position: relative;
    z-index: 1;
}

/* Logo */
.logo-wrap {
    width: 172px;
    height: 172px;
    border-radius: 50%;
    position: relative;
    margin-bottom: 1.5rem;
    perspective: 600px;
    cursor: pointer;
}
.logo-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.15s ease-out;
    will-change: transform;
    box-shadow: 0 0 0 1px var(--border), 0 12px 40px -8px rgba(44,51,32,0.15), 0 4px 12px -2px rgba(44,51,32,0.08);
}
.logo-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid rgba(74,124,63,0.15);
    transition: border-color 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}
.logo-wrap:hover .logo-ring { border-color: rgba(74,124,63,0.4); transform: scale(1.035); }

/* Typography */
.brand-name {
    font-family: 'Gambetta', serif;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.015em;
    margin-bottom: 0.75rem;
}
.brand-name span { color: var(--green); }

/* Bio */
.bio {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
    margin-bottom: 2rem;
}

.bio-line {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text-sec);
    line-height: 1.5;
    letter-spacing: 0.01em;
}

/* Links */
.links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.section-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-sec);
    align-self: flex-start;
    padding-left: 0.15rem;
    margin-top: 0.6rem;
    margin-bottom: -0.15rem;
}

.link-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease, background 0.3s ease;
}
.link-btn::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 0;
    border-radius: 14px 0 0 14px;
    transition: width 0.3s cubic-bezier(0.16,1,0.3,1);
}
.link-btn:hover::after { width: 3.5px; }
.link-btn:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: 0 8px 24px -6px rgba(44,51,32,0.1); }
.link-btn:active { transform: translateY(0); transition-duration: 0.06s; }

.link-btn.youtube::after { background: #ff3b30; }
.link-btn.youtube:hover { background: rgba(255,59,48,0.03); }
.link-btn.instagram::after { background: #e1306c; }
.link-btn.instagram:hover { background: rgba(225,48,108,0.03); }
.link-btn.facebook::after { background: #1877f2; }
.link-btn.facebook:hover { background: rgba(24,119,242,0.03); }
.link-btn.tiktok::after { background: #010101; }
.link-btn.tiktok:hover { background: rgba(1,1,1,0.02); }
.link-btn.pootlr::after { background: var(--green); }
.link-btn.pootlr:hover { background: rgba(74,124,63,0.04); }
.link-btn.contact::after { background: var(--gold); }
.link-btn.contact:hover { background: rgba(196,148,14,0.03); }
.link-btn.shop::after { background: var(--green); }
.link-btn.shop:hover { background: rgba(74,124,63,0.04); }

.link-icon {
    width: 36px; height: 36px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    margin-right: 0.85rem; border-radius: 10px;
    transition: transform 0.25s ease, background 0.25s ease;
}
.link-btn:hover .link-icon { transform: scale(1.06); }
.link-icon svg { width: 18px; height: 18px; }

.link-btn.youtube .link-icon { background: rgba(255,59,48,0.08); color: #ff3b30; }
.link-btn.youtube:hover .link-icon { background: rgba(255,59,48,0.14); }
.link-btn.instagram .link-icon { background: rgba(225,48,108,0.08); color: #e1306c; }
.link-btn.instagram:hover .link-icon { background: rgba(225,48,108,0.14); }
.link-btn.facebook .link-icon { background: rgba(24,119,242,0.08); color: #1877f2; }
.link-btn.facebook:hover .link-icon { background: rgba(24,119,242,0.14); }
.link-btn.tiktok .link-icon { background: rgba(1,1,1,0.06); color: #222; }
.link-btn.tiktok:hover .link-icon { background: rgba(1,1,1,0.1); }
.link-btn.pootlr .link-icon { background: rgba(74,124,63,0.1); color: var(--green); }
.link-btn.pootlr:hover .link-icon { background: rgba(74,124,63,0.18); }
.link-btn.contact .link-icon { background: rgba(196,148,14,0.1); color: var(--gold); }
.link-btn.contact:hover .link-icon { background: rgba(196,148,14,0.18); }
.link-btn.shop .link-icon { background: rgba(74,124,63,0.1); color: var(--green); }
.link-btn.shop:hover .link-icon { background: rgba(74,124,63,0.18); }

.link-label { flex: 1; }
.link-arrow { color: var(--text-sec); flex-shrink: 0; opacity: 0; transform: translateX(-6px); transition: opacity 0.25s ease, transform 0.25s ease; }
.link-btn:hover .link-arrow { opacity: 0.6; transform: translateX(0); }

.link-btn.disabled { cursor: default; opacity: 0.45; }
.link-btn.disabled:hover { background: var(--surface); border-color: var(--border); transform: none; box-shadow: none; }
.link-btn.disabled:hover::after { width: 0; }
.link-btn.disabled:hover .link-icon { transform: none; }
.link-btn.disabled:hover .link-arrow { opacity: 0; }

.badge {
    font-size: 0.6rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
    color: var(--gold); background: var(--gold-light); padding: 0.18rem 0.5rem;
    border-radius: 20px; margin-left: 0.55rem; line-height: 1;
}

/* Featured card */
.featured-card {
    width: 100%;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, rgba(74,124,63,0.06) 0%, rgba(196,148,14,0.05) 100%);
    border: 1px solid rgba(74,124,63,0.18);
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.featured-icon {
    width: 36px; height: 36px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(74,124,63,0.1); border-radius: 10px;
    font-size: 1.1rem; line-height: 1;
}
.featured-body { display: flex; flex-direction: column; gap: 0.1rem; }
.featured-kicker {
    font-size: 0.6rem; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--green);
}
.featured-title {
    font-size: 0.84rem; font-weight: 500; color: var(--text); line-height: 1.35;
}

/* Product cards */
.products-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}
.product-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: 0 8px 24px -6px rgba(44,51,32,0.1); }
.product-card:active { transform: translateY(0); transition-duration: 0.06s; }

.product-img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--bg); }

.product-body { padding: 0.7rem 0.75rem 0.8rem; display: flex; flex-direction: column; gap: 0.2rem; flex: 1; }
.product-name { font-size: 0.82rem; font-weight: 600; line-height: 1.3; display: flex; align-items: center; justify-content: space-between; gap: 0.3rem; }
.product-name svg { flex-shrink: 0; color: var(--text-sec); opacity: 0; transition: opacity 0.25s ease, transform 0.25s ease; transform: translateX(-3px); }
.product-card:hover .product-name svg { opacity: 0.5; transform: translateX(0); }
.product-detail { font-size: 0.73rem; font-weight: 300; color: var(--text-sec); line-height: 1.4; }
.product-tag { display: inline-block; font-size: 0.58rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--green); background: rgba(74,124,63,0.08); padding: 0.15rem 0.45rem; border-radius: 20px; margin-top: 0.25rem; align-self: flex-start; }

/* Shop page category spacing */
.products-grid { margin-top: 0.5rem; }
.products-grid + .section-label { margin-top: 1.5rem; }

.affiliate-note {
    margin-top: 2rem;
    padding: 0.8rem 1rem;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text-sec);
    line-height: 1.55;
    text-align: center;
    background: rgba(74,124,63,0.04);
    border: 1px solid rgba(74,124,63,0.1);
    border-radius: 10px;
}

.footer { margin-top: 2.5rem; font-size: 0.72rem; font-weight: 300; color: var(--text-sec); letter-spacing: 0.04em; }

/* Animate in */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: revealUp 0.6s cubic-bezier(0.16,1,0.3,1) forwards;
}
@keyframes revealUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Shop page header */
.page-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.page-header .logo-wrap {
    width: 48px;
    height: 48px;
    margin-bottom: 0;
}
.page-header .logo-inner {
    box-shadow: 0 0 0 1px var(--border), 0 4px 12px -4px rgba(44,51,32,0.1);
}
.page-header .logo-ring { inset: -3px; }
.page-title {
    font-family: 'Gambetta', serif;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.015em;
    flex: 1;
}
.back-link {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--green);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: opacity 0.2s ease;
}
.back-link:hover { opacity: 0.7; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-sec);
    font-size: 0.88rem;
}

@media (max-width: 480px) {
    .container { padding: 2.25rem 1rem 3.5rem; }
    .logo-wrap { width: 148px; height: 148px; }
    .brand-name { font-size: 1.4rem; }
    .link-btn { padding: 0.82rem 1rem; font-size: 0.88rem; }
    .link-icon { width: 32px; height: 32px; margin-right: 0.7rem; }
    .link-icon svg { width: 16px; height: 16px; }
    .products-grid { gap: 0.5rem; }
    .product-body { padding: 0.6rem 0.65rem 0.7rem; }
    .page-header .logo-wrap { width: 40px; height: 40px; }
    .page-title { font-size: 1.1rem; }
}
