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

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Shared storefront shell. Icons and labels remain usable without JavaScript. */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position:fixed; top:8px; left:16px; z-index:300; padding:12px 18px; background:var(--text); color:white; border-radius:8px; transform:translateY(-160%); }
.skip-link:focus { transform:translateY(0); }
:focus-visible { outline:3px solid var(--rey-teal); outline-offset:4px; }
.public-topbar { background:var(--rey-ink); color:#e2e9ec; font-size:11px; }
.topbar-inner { max-width:1320px; padding:9px 32px; margin:auto; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.topbar-label { display:flex; align-items:center; gap:8px; font-weight:600; letter-spacing:.025em; }
.topbar-label::before { content:''; width:6px; height:6px; border-radius:50%; background:var(--rey-cyan); }
.public-header { position:sticky; top:0; z-index:100; background:var(--surface); border-bottom:1px solid var(--border); box-shadow:0 3px 12px rgb(25 43 53 / 3%); }
.header-inner { max-width:1320px; min-height:104px; padding:14px 32px; margin:auto; display:flex; align-items:center; gap:32px; }
.brand { display:flex; align-items:center; gap:12px; text-decoration:none; color:var(--text); flex-shrink:0; }
.brand img { display:block; width:70px; height:70px; border-radius:12px; object-fit:contain; background:var(--rey-cyan); }
.brand-copy { display:flex; flex-direction:column; gap:5px; }
.brand-copy strong { font-size:15px; font-weight:800; letter-spacing:.025em; }
.brand-copy small { color:var(--muted); font-size:11px; }
.brand-accent { color:var(--rey-cyan); }
.search-form { min-width:0; flex:1; display:flex; align-items:center; gap:12px; padding:5px 5px 5px 16px; background:var(--bg); border:1px solid var(--border); border-radius:10px; color:var(--muted); }
.search-form:focus-within { outline:2px solid var(--rey-teal); outline-offset:2px; }
.search-form input { min-width:0; flex:1; width:100%; padding:9px 0; border:0; background:transparent; color:var(--text); font:inherit; font-size:13px; outline:none; }
.search-form input::placeholder { color:var(--muted); opacity:1; }
.search-form button { min-height:38px; padding:9px 14px; border:0; border-radius:7px; background:var(--rey-ink); color:white; font:inherit; font-size:12px; font-weight:600; cursor:pointer; }
.search-form button:hover { background:var(--rey-teal-dark); }
.public-nav { display:flex; align-items:center; gap:18px; flex-shrink:0; }
.nav-link { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:44px; font-size:12px; font-weight:600; text-decoration:none; color:var(--text); white-space:nowrap; border-radius:8px; }
.nav-link:hover, .nav-link[aria-current="page"] { color:var(--rey-teal); }
.public-nav .cart-btn { background:var(--rey-cyan); color:var(--rey-ink); padding:11px 13px; min-height:44px; gap:8px; }
.public-nav .cart-btn:hover { background:var(--rey-cyan-hover); }
.cart-btn { position:relative; }
.cart-badge { min-width:19px; height:19px; padding:0 5px; border-radius:6px; background:var(--rey-ink); color:white; font-size:10px; font-weight:700; display:none; align-items:center; justify-content:center; }

/* ─── BUTTONS ─── */
.btn {
    padding: 10px 20px;
    background: var(--accent);
    color: #fff;
    border: 1.5px solid transparent;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: background 0.18s, transform 0.15s, box-shadow 0.18s, border-color 0.18s;
    line-height: 1;
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgb(0 103 127 / 16%);
}

.btn:active { transform: translateY(0); box-shadow: none; }

.btn-secondary { background:var(--surface); color:var(--brand); border-color:var(--border); }
.btn-secondary:hover { background:var(--accent-light); color:var(--brand-dark); box-shadow:none; }

/* Override btn-secondary for content area (outside header) */
.content-area .btn-secondary,
.card .btn-secondary,
.btn-outline {
    background: transparent;
    color: var(--brand);
    border-color: var(--brand);
}

.content-area .btn-secondary:hover,
.card .btn-secondary:hover,
.btn-outline:hover {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 4px 14px rgb(0 103 127 / 14%);
}

.btn-success {
    background: var(--success);
    border-color: var(--success);
}

.btn-success:hover {
    background: #047857;
    box-shadow: 0 4px 14px rgba(5,150,105,0.32);
}

/* ─── MAIN CONTAINER ─── */
.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 36px 32px;
    flex: 1;
}

/* ─── ALERTS ─── */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-warning { background: #FEF3C7; border: 1px solid #F59E0B33; color: #92400E; }
.alert-success { background: var(--success-bg); border: 1px solid #6EE7B733; color: #065F46; }
.alert-error   { background: var(--error-bg); border: 1px solid #FCA5A533; color: #991B1B; }

/* ─── CARDS ─── */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* ─── SECTION TITLE ─── */
.section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 24px;
    color: var(--text);
    letter-spacing: -0.3px;
}

/* ─── BADGES ─── */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.badge-blue   { background: #DBEAFE; color: #1D4ED8; }
.badge-gray   { background: #F3F4F6; color: #4B5563; }
.badge-green  { background: #D1FAE5; color: #065F46; }
.badge-orange { background: #FEF3C7; color: #92400E; }
.badge-red    { background: #FEE2E2; color: #991B1B; }
.badge-brand  { background: var(--accent-light); color: var(--brand); }

/* ─── DIVIDER ─── */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

/* Footer: real destinations only; no invented contact details or commercial promises. */
.public-footer { background:var(--rey-ink); color:#d9e4e9; margin-top:auto; }
.footer-inner { max-width:1320px; padding:42px 32px 24px; margin:auto; }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1.3fr; gap:48px; margin-bottom:32px; }
.footer-brand { display:flex; align-items:center; gap:14px; margin-bottom:14px; color:white; }
.footer-brand img { width:56px; height:56px; border-radius:10px; }
.footer-brand strong { font-size:17px; letter-spacing:.02em; }
.footer-tagline, .footer-col p { max-width:320px; font-size:13px; line-height:1.8; color:#b3c3cc; }
.footer-col h2 { font-size:11px; font-weight:700; letter-spacing:.09em; text-transform:uppercase; color:white; margin-bottom:16px; }
.footer-col a { display:block; width:fit-content; color:#d9e4e9; font-size:13px; line-height:1.7; margin-bottom:8px; text-decoration:none; }
.footer-col a:hover { color:var(--rey-cyan); text-decoration:underline; }
.footer-col .footer-help-link { display:inline-flex; align-items:center; gap:8px; margin-top:12px; color:var(--rey-cyan); }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; gap:16px; padding-top:22px; border-top:1px solid #354650; color:#a8bbc6; font-size:11px; }
.footer-bottom span:last-child { display:flex; align-items:center; gap:8px; }
.footer-bottom span:last-child::before { content:''; width:18px; height:2px; background:var(--rey-gold); }

/* ─── FORM ELEMENTS ─── */
.form-group { margin-bottom: 16px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    background: var(--surface);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgb(0 103 127 / 12%);
}

.form-control::placeholder { color: #9CA3AF; }

select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }

/* ─── EMPTY STATE ─── */
.empty-state {
    text-align: center;
    padding: 64px 24px;
}

.empty-state-icon {
    font-size: 56px;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.empty-state p {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 24px;
}

/* ─── PRICE ─── */
.price-tag {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.5px;
}

.price-tag small {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
}

/* ─── BACK LINK ─── */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    transition: color 0.2s;
}

.back-link:hover { color: var(--brand); }

/* Shared responsive shell; individual page layouts remain progressively replaceable. */
@media (max-width:1100px) {
    .header-inner { gap:22px; }
    .brand-copy small { display:none; }
    .nav-catalog { display:none; }
}
@media (max-width:760px) {
    .topbar-inner { padding:8px 20px; }
    .topbar-note { display:none; }
    .header-inner { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:14px; padding:12px 20px 14px; min-height:0; }
    .brand { gap:9px; }
    .brand img { width:52px; height:52px; border-radius:9px; }
    .brand-copy strong { font-size:12px; max-width:88px; line-height:1.45; }
    .public-nav { gap:14px; }
    .nav-link { font-size:11px; gap:5px; }
    .search-form { grid-column:1 / -1; grid-row:2; width:100%; }
    .search-form input, .form-control { font-size:16px; }
    .container { padding:28px 20px; }
    .footer-inner { padding:32px 20px 24px; }
    .footer-grid { grid-template-columns:1fr 1fr; gap:28px; }
    .footer-grid > :first-child { grid-column:1 / -1; }
    .footer-bottom { align-items:flex-start; flex-direction:column; gap:10px; }
}
@media (max-width:370px) {
    .header-inner { padding-left:14px; padding-right:14px; gap:10px; }
    .brand img { width:46px; height:46px; }
    .brand-copy strong { font-size:10px; max-width:68px; }
    .public-nav { gap:10px; }
    .nav-orders { min-width:44px; }
    .nav-orders span { display:none; }
    .public-nav .cart-btn { padding:10px; }
    .container { padding-left:14px; padding-right:14px; }
}
@media (prefers-reduced-motion:reduce) {
    *, *::before, *::after { scroll-behavior:auto !important; transition:none !important; animation:none !important; }
}
