/* =====================================================================
   sklep.zmiodem.com.pl - style
   Paleta: głęboka zieleń runa leśnego + złoty miód + ciemny bursztyn
   Sygnatura: plaster miodu (hexagony) jako motyw strukturalny
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Work+Sans:wght@400;500;600&display=swap');

:root {
    --forest: #223224;
    --forest-dark: #16211a;
    --honey: #E8A93B;
    --honey-dark: #B8781E;
    --amber-text: #2B1D0E;
    --cream: #FBF6EA;
    --line: rgba(43, 29, 14, 0.15);
    --white: #ffffff;
    --error: #B3432B;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--cream);
    color: var(--amber-text);
    font-family: 'Work Sans', sans-serif;
    line-height: 1.5;
}

h1, h2, h3, .display {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0;
}

/* --- Hexagon signature pattern --- */
.hex-band {
    height: 28px;
    background-image:
        linear-gradient(30deg, var(--honey) 12%, transparent 12.5%, transparent 87%, var(--honey) 87.5%, var(--honey)),
        linear-gradient(150deg, var(--honey) 12%, transparent 12.5%, transparent 87%, var(--honey) 87.5%, var(--honey)),
        linear-gradient(30deg, var(--honey) 12%, transparent 12.5%, transparent 87%, var(--honey) 87.5%, var(--honey)),
        linear-gradient(150deg, var(--honey) 12%, transparent 12.5%, transparent 87%, var(--honey) 87.5%, var(--honey));
    background-size: 24px 42px;
    background-position: 0 0, 0 0, 12px 21px, 12px 21px;
    opacity: 0.85;
}

header.site {
    background: var(--forest);
    color: var(--cream);
    padding: 40px 24px 32px;
    text-align: center;
}
header.site .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 12px;
    color: var(--honey);
    font-weight: 600;
}
header.site h1 {
    font-size: clamp(28px, 5vw, 42px);
    color: var(--white);
    margin-top: 8px;
}
header.site p.sub {
    margin-top: 10px;
    color: rgba(251,246,234,0.75);
    font-size: 15px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

main {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.section-title {
    font-size: 22px;
    margin-bottom: 4px;
}
.section-hint {
    font-size: 13.5px;
    color: rgba(43,29,14,0.6);
    margin-bottom: 20px;
}

.intro-text {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(43,29,14,0.7);
    max-width: 640px;
    margin: 0 auto 28px;
    text-align: center;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 14px;
}
.product-card .product-name {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.product-card .product-name .hexdot {
    width: 10px; height: 10px;
    background: var(--honey);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    display: inline-block;
}

.variant-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
    border-top: 1px dashed var(--line);
}
.variant-row:first-of-type { border-top: none; }
.variant-size { font-size: 14.5px; }
.variant-price { font-weight: 600; color: var(--honey-dark); font-size: 14.5px; white-space: nowrap; }
.qty-input {
    width: 64px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 15px;
    text-align: center;
    font-family: inherit;
}
.qty-input:focus { outline: 2px solid var(--honey); outline-offset: 1px; }

/* --- Przyciski +/- i usuwania w koszyku (checkout) --- */
.cart-qty-btn {
    width: 26px;
    height: 26px;
    border: 1px solid var(--line);
    background: var(--cream);
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--amber-text);
    cursor: pointer;
    line-height: 1;
    font-family: inherit;
}
.cart-qty-btn:hover { background: var(--honey); border-color: var(--honey); }
.cart-remove-btn {
    width: 26px;
    height: 26px;
    border: 1px solid transparent;
    background: none;
    border-radius: 6px;
    font-size: 13px;
    color: rgba(43,29,14,0.4);
    cursor: pointer;
    font-family: inherit;
}
.cart-remove-btn:hover { color: var(--error); background: #FBEAE6; }

/* --- Karta produktu ze zdjęciem etykiety --- */
.product-card-body {
    display: flex;
    gap: 20px;
    align-items: center;
}
.product-card-body.no-image .product-variants { width: 100%; }
.product-image {
    flex: 0 0 190px;
    width: 190px;
    height: 127px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
}
.product-variants {
    flex: 1;
    min-width: 0;
}
@media (max-width: 480px) {
    .product-card-body { flex-direction: column; align-items: center; }
    .product-image { flex: 0 0 auto; width: 100%; height: auto; max-width: 220px; }
    .product-variants { width: 100%; }
}

fieldset {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px 20px 20px;
    margin-bottom: 18px;
    background: var(--white);
}
legend {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    padding: 0 8px;
    font-size: 16px;
}
label {
    display: block;
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 5px;
    margin-top: 12px;
}
label:first-of-type { margin-top: 0; }
input[type=text], input[type=email], input[type=tel], textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    background: var(--cream);
}
input:focus, textarea:focus { outline: 2px solid var(--honey); outline-offset: 1px; }

.radio-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-top: 8px;
    cursor: pointer;
    background: var(--cream);
}
.radio-option input { margin-top: 3px; }
.radio-option .opt-title { font-weight: 600; font-size: 14.5px; }
.radio-option .opt-desc { font-size: 12.5px; color: rgba(43,29,14,0.6); }

.summary-bar {
    position: sticky;
    bottom: 0;
    background: var(--forest);
    color: var(--cream);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.summary-bar .total-label { font-size: 12.5px; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.08em; }
.summary-bar .total-amount { font-family: 'Fraunces', serif; font-size: 26px; color: var(--honey); }

button.submit-btn {
    background: var(--honey);
    color: var(--amber-text);
    border: none;
    padding: 13px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15.5px;
    cursor: pointer;
    font-family: 'Work Sans', sans-serif;
    transition: background 0.15s ease, transform 0.1s ease;
}
button.submit-btn:hover { background: var(--honey-dark); }
button.submit-btn:active { transform: scale(0.98); }
button.submit-btn:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

.error-box {
    background: #FBEAE6;
    border: 1px solid var(--error);
    color: var(--error);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

.confirm-box {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 28px;
    text-align: center;
}
.confirm-box .hexdot-big {
    width: 46px; height: 46px;
    background: var(--honey);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    margin: 0 auto 16px;
}

footer.site {
    text-align: center;
    padding: 24px;
    font-size: 12.5px;
    color: rgba(43,29,14,0.5);
}

/* --- Admin panel --- */
.admin-body { background: var(--forest-dark); min-height: 100vh; }
.admin-shell { max-width: 1100px; margin: 0 auto; padding: 32px 20px 60px; }
.admin-card { background: var(--cream); border-radius: 12px; padding: 24px; }
.login-shell { max-width: 380px; margin: 90px auto; padding: 0 20px; }
table.orders-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.orders-table th { text-align: left; padding: 10px 10px; border-bottom: 2px solid var(--forest); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(43,29,14,0.6); }
table.orders-table td { padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.status-nowe { background: #FDECC8; color: #8A5A00; }
.status-w_realizacji { background: #DCEAFB; color: #1D5AA6; }
.status-wyslane { background: #DCF3DE; color: #1E7A2E; }
.status-anulowane { background: #F5DADA; color: #A32E2E; }
select.status-select { padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line); font-family: inherit; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; color: var(--cream); }
.admin-topbar a, .admin-topbar button { color: var(--honey); background: none; border: 1px solid var(--honey); padding: 8px 14px; border-radius: 6px; text-decoration: none; font-family: inherit; cursor: pointer; font-size: 13.5px; }
.filter-bar { margin-bottom: 16px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-bar select, .filter-bar a.export-link { padding: 8px 12px; border-radius: 6px; border: 1px solid var(--line); font-family: inherit; text-decoration: none; color: var(--amber-text); background: var(--white); font-size: 13.5px; }

/* --- Nawigacja między sklepami --- */
.shop-nav {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 14px 20px;
    background: var(--forest-dark);
}
.shop-nav-link {
    color: rgba(251,246,234,0.75);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 20px;
    transition: background 0.15s ease, color 0.15s ease;
}
.shop-nav-link:hover { background: rgba(232,169,59,0.15); color: var(--cream); }
.shop-nav-link.active { background: var(--honey); color: var(--amber-text); font-weight: 600; }
.shop-nav-link.cart-link { border: 1px solid rgba(232,169,59,0.5); font-weight: 600; }
.shop-nav-link.home-link {
    background: var(--honey);
    color: var(--amber-text);
    font-weight: 700;
    margin-right: 10px;
}
.shop-nav-link.home-link:hover { background: var(--honey-dark); color: var(--cream); }
.cart-badge-count { font-weight: 700; }

/* --- Weryfikacja wieku (miody pitne) --- */
.age-gate {
    position: fixed;
    inset: 0;
    background: rgba(22,33,26,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.age-gate-box {
    background: var(--cream);
    border-radius: 14px;
    padding: 34px 28px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

/* --- Odznaka kategorii w panelu admina --- */
.category-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(34,50,36,0.08);
    color: var(--forest);
    margin-bottom: 4px;
}
