/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; }

body {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    color: #1a1a1a;
    background: #faf9f7;
    line-height: 1.55;
}

a { color: #2c5f8a; }
a:hover { color: #1a3d5c; }

h1, h2, h3 { font-weight: normal; margin: 0 0 0.5em; }

/* ============================================================
   Layout
   ============================================================ */
.site-header {
    background: #1a1a1a;
    color: #faf9f7;
    padding: 0 1rem;
}

.site-nav {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 52px;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.site-nav a { color: #faf9f7; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }

.site-logo { font-size: 1.1rem; font-weight: bold; white-space: nowrap; }

.site-main {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.site-footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
    color: #777;
    border-top: 1px solid #e0ddd8;
    margin-top: 3rem;
}

/* ============================================================
   Flash messages
   ============================================================ */
.flash {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}
.flash--error   { background: #fde8e8; border: 1px solid #e57373; color: #7b1c1c; }
.flash--success { background: #e8f5e9; border: 1px solid #81c784; color: #1b5e20; }

/* ============================================================
   Dashboard — spirit category grid
   ============================================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.category-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1.5px solid #d6d2cb;
    border-radius: 6px;
    padding: 1rem;
    background: #fff;
    text-align: center;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.category-card:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-color: #999;
}

.category-card__name {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.4rem;
}

.category-card__count {
    font-size: 0.85rem;
    color: #666;
}

.spirit-art {
    width: 100%;
    max-height: 100px;
    display: block;
    margin: 0.5rem auto;
}

/* ============================================================
   Cocktail list page
   ============================================================ */
.category-header {
    display: flex;
    align-items: stretch;
    margin-bottom: 2rem;
    border: 1.5px solid #d6d2cb;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.category-header__art {
    width: 150px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    background: #faf9f7;
    border-right: 1.5px solid #d6d2cb;
}

.category-header__art .spirit-art {
    width: 100%;
    max-height: 130px;
    display: block;
}

.category-header__text {
    padding: 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.category-header__title {
    font-size: 2.75rem;
    font-family: Georgia, serif;
    font-weight: normal;
    line-height: 1;
    margin: 0 0 0.4rem;
    letter-spacing: 0.02em;
    color: #1a1a1a;
}

.category-header__meta {
    font-size: 0.875rem;
    color: #888;
    margin: 0;
}

.filter-form {
    margin-bottom: 1.5rem;
}

.filter-form label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.cocktails-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 0;
    border-top: 1px solid #d6d2cb;
}

/* ============================================================
   Cocktail card
   ============================================================ */
.cocktail-card {
    padding: 2rem 0 2rem 0;
    border-bottom: 1px solid #d6d2cb;
    page-break-inside: avoid;
    break-inside: avoid;
}

/* Left-column cards get a right rule; right-column get left padding */
.cocktail-card:nth-child(odd)  { padding-right: 2.5rem; border-right: 1px solid #d6d2cb; }
.cocktail-card:nth-child(even) { padding-left: 2.5rem; }

.cocktail-card__name {
    font-size: 1.2rem;
    font-family: Georgia, serif;
    font-weight: normal;
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}

.cocktail-card__name a {
    color: inherit;
    text-decoration: none;
}

.cocktail-card__name a:hover {
    text-decoration: underline;
}

.cocktail-card__description {
    font-size: 0.9rem;
    color: #555;
    margin: 0 0 0.75rem;
}

.cocktail-card__ingredients {
    display: grid;
    grid-template-columns: max-content 1fr auto;
    column-gap: 0.75rem;
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
    font-size: 0.9rem;
}

.cocktail-card__ingredient {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    align-items: baseline;
    padding: 0.15rem 0;
    border-bottom: 1px dotted #e5e2dc;
}

.cocktail-card__ingredient--oos {
    color: #b45309;
}

.ingredient-amount {
    font-family: 'Courier New', monospace;
    font-size: 0.88rem;
    white-space: nowrap;
    text-align: right;
}

.cocktail-card__ingredients a {
    color: #a16207;
}

.cocktail-card__ingredients a:hover {
    color: #78350f;
}

.oos-badge {
    font-size: 0.8rem;
    color: #b45309;
}

.cocktail-card__notes {
    font-size: 0.9rem;
    color: #888;
    border-left: 2px solid #d6d2cb;
    padding-left: 0.65rem;
    margin-top: 0.85rem;
    line-height: 1.5;
}

.cocktail-card__notes p { margin: 0.2rem 0; }

/* ============================================================
   Inventory table
   ============================================================ */
.inventory-section {
    margin-bottom: 2rem;
    page-break-inside: avoid;
}

.inventory-section h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 0.25rem;
    margin-bottom: 0.5rem;
    page-break-after: avoid;
}

.inventory-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.inventory-table th,
.inventory-table td {
    text-align: left;
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid #e5e2dc;
}

.inventory-table th { font-weight: bold; font-size: 0.8rem; text-transform: uppercase; color: #666; }

.ingredient-row--oos td { color: #b45309; }

.stock-yes { color: #2e7d32; }
.stock-no  { color: #b71c1c; }

/* ============================================================
   Ingredient detail
   ============================================================ */
.ingredient-detail__header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e2dc;
    padding-bottom: 1rem;
}

.ingredient-detail__header h1 { font-size: 1.5rem; }

.ingredient-detail__meta {
    font-size: 0.9rem;
    color: #555;
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.cocktail-group { margin-bottom: 1.5rem; }
.cocktail-group h2 { font-size: 1rem; border-bottom: 1px solid #e5e2dc; padding-bottom: 0.25rem; }
.cocktail-group ul { list-style: none; margin: 0; padding: 0; }
.cocktail-group li { padding: 0.3rem 0; font-size: 0.9rem; }

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

.pagination__link {
    padding: 0.3rem 0.6rem;
    border: 1px solid #d6d2cb;
    border-radius: 3px;
    text-decoration: none;
    color: #2c5f8a;
}

.pagination__link:hover { background: #f0ede8; }

.pagination__current {
    padding: 0.3rem 0.6rem;
    border: 1px solid #1a1a1a;
    border-radius: 3px;
    font-weight: bold;
}

/* ============================================================
   Admin
   ============================================================ */
.admin-body { background: #f4f2ef; }

.admin-header {
    background: #1a1a1a;
    color: #faf9f7;
    padding: 0 1rem;
}

.admin-nav {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem 1.5rem;
    min-height: 48px;
    flex-wrap: wrap;
    padding: 0.5rem 0;
}

.admin-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.5rem 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.admin-nav a { color: #faf9f7; text-decoration: none; font-size: 0.9rem; }
.admin-nav a:hover { text-decoration: underline; }
.admin-nav__divider { width: 1px; background: #555; align-self: stretch; }

.admin-main {
    max-width: 1100px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

/* Admin tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: #fff;
    border: 1px solid #d6d2cb;
    border-radius: 6px;
    overflow: hidden;
}

.admin-table th {
    background: #f0ede8;
    text-align: left;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #555;
    border-bottom: 1px solid #d6d2cb;
}

.admin-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #ece9e3;
    vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }

.admin-table td.actions { white-space: nowrap; }

/* Admin forms */
.admin-form {
    background: #fff;
    border: 1px solid #d6d2cb;
    border-radius: 6px;
    padding: 1.5rem;
    max-width: 640px;
}

.admin-form + .admin-form { margin-top: 1.5rem; }

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.45rem 0.6rem;
    border: 1px solid #c8c3bb;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
    background-color: #fff;
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-size: 10px 6px;
    padding-right: 2rem;
}

.form-group textarea { min-height: 80px; resize: vertical; }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: 2px solid #2c5f8a;
    outline-offset: 1px;
}

.form-hint { font-size: 0.8rem; color: #777; margin-top: 0.25rem; }

.form-error { font-size: 0.8rem; color: #b71c1c; margin-top: 0.25rem; }

/* Ingredient rows in cocktail form */
.ingredient-rows { margin-bottom: 1rem; }

.ingredient-row-item {
    display: grid;
    grid-template-columns: 1fr 80px 100px auto;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.4rem;
    padding: 0.4rem;
    background: #faf9f7;
    border: 1px solid #e5e2dc;
    border-radius: 4px;
}

.ingredient-row-item select,
.ingredient-row-item input { font-size: 0.85rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    border: 1.5px solid transparent;
    font-size: 0.88rem;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    line-height: 1.4;
}

.btn--primary   { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.btn--primary:hover { background: #333; }
.btn--secondary { background: #fff; color: #333; border-color: #c8c3bb; }
.btn--secondary:hover { background: #f0ede8; }
.btn--danger    { background: #b71c1c; color: #fff; border-color: #b71c1c; }
.btn--danger:hover { background: #7f0000; }
.btn--small     { padding: 0.2rem 0.55rem; font-size: 0.8rem; }

/* Admin dashboard stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #fff;
    border: 1px solid #d6d2cb;
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
}

.stat-card__number {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.stat-card__label {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Missing ingredients report */
.missing-group { margin-bottom: 1.5rem; }
.missing-group h2 { font-size: 1rem; border-bottom: 1px solid #e5e2dc; padding-bottom: 0.25rem; }
.missing-cocktail { margin: 0.5rem 0; padding: 0.5rem; background: #fff; border: 1px solid #e5e2dc; border-radius: 4px; }
.missing-cocktail__name { font-weight: bold; margin-bottom: 0.25rem; }
.missing-list { font-size: 0.85rem; color: #b45309; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.missing-item::after { content: ','; }
.missing-item:last-child::after { content: ''; }

/* Stock toggle form inline */
.stock-toggle-form { display: inline; }

/* Section headings in admin */
.section-heading {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 0.3rem;
}

/* Login page */
.login-wrap {
    max-width: 380px;
    margin: 4rem auto;
}

.login-wrap h1 { margin-bottom: 1.5rem; font-size: 1.4rem; }

/* ============================================================
   Site search (nav bar + suggestions dropdown)
   ============================================================ */
.site-search {
    margin-left: auto;
    flex-shrink: 0;
}

.site-search__wrap {
    position: relative;
}

.site-search__input {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 4px;
    color: #faf9f7;
    font-family: inherit;
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
    width: 180px;
    transition: width 0.2s, background 0.2s;
}

.site-search__input::placeholder { color: rgba(250,249,247,0.55); }

.site-search__input:focus {
    outline: 2px solid rgba(255,255,255,0.5);
    outline-offset: 1px;
    width: 220px;
    background: rgba(255,255,255,0.18);
}

/* Suggestions dropdown */
.site-search__suggestions {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    width: 320px;
    max-height: 420px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d6d2cb;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 200;
}

/* Override .site-nav ul / .admin-nav ul flex (higher specificity needed) */
.site-nav .site-search__suggestions,
.admin-nav .site-search__suggestions {
    display: block;
    gap: 0;
}

.site-search__suggestions[hidden] { display: none; }

.search-suggestion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    cursor: pointer;
    color: #1a1a1a;
    font-size: 0.88rem;
    text-decoration: none;
    border-bottom: 1px solid #f0ede8;
}

.search-suggestion:last-child { border-bottom: none; }
.search-suggestion:hover,
.search-suggestion.is-active {
    background: #f0ede8;
    color: #1a1a1a;
}

.search-suggestion__label { flex: 1; min-width: 0; line-height: 1.3; }

/* Group header inside dropdown */
.search-suggestion-group {
    padding: 0.25rem 0.75rem 0.1rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
    background: #faf9f7;
    border-bottom: 1px solid #f0ede8;
}


/* Search results page */
.search-page-form {
    margin-bottom: 1.5rem;
}

.search-page-form__row {
    display: flex;
    gap: 0.5rem;
    max-width: 480px;
}

.search-page-form__row input[type="search"] {
    flex: 1;
    padding: 0.45rem 0.6rem;
    border: 1px solid #c8c3bb;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
}

.search-page-form__row input[type="search"]:focus {
    outline: 2px solid #2c5f8a;
    outline-offset: 1px;
}

.search-results {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.search-results__group { margin-bottom: 1.25rem; }

.search-results__group-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin-bottom: 0.4rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #e5e2dc;
}

.search-results__group-list { list-style: none; margin: 0; padding: 0; }

.search-results__item {
    padding: 0.3rem 0;
    font-size: 0.95rem;
    border-bottom: 1px dotted #e5e2dc;
}

.search-results__item:last-child { border-bottom: none; }

.search-empty { color: #666; font-style: italic; }

.search-back { margin-top: 1rem; font-size: 0.9rem; }

/* ============================================================
   Cocktail detail page
   ============================================================ */

/* Breadcrumb */
.breadcrumb ol {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.3rem;
    font-size: 0.82rem;
    color: #888;
}

.breadcrumb li + li::before {
    content: '›';
    margin-right: 0.3rem;
}

.breadcrumb a { color: #888; }
.breadcrumb a:hover { color: #1a1a1a; }
.breadcrumb [aria-current="page"] { color: #1a1a1a; }

/* Article wrapper */
.cocktail-detail { max-width: 640px; }

.cocktail-detail__header { margin-bottom: 2rem; }

.cocktail-detail__title {
    font-size: 2.2rem;
    font-weight: normal;
    letter-spacing: 0.01em;
    margin-bottom: 0.4rem;
}

.cocktail-detail__description {
    font-size: 1rem;
    color: #555;
    margin: 0;
}

.cocktail-detail__section-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #999;
    border-bottom: 1px solid #e5e2dc;
    padding-bottom: 0.3rem;
    margin-bottom: 0.75rem;
}

.cocktail-detail__ingredients,
.cocktail-detail__method,
.cocktail-detail__equipment,
.cocktail-detail__ratings {
    margin-bottom: 2.25rem;
}

/* Equipment / ad links */
.equipment-list {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
    font-size: 0.875rem;
}

.equipment-list__item { padding: 0.15rem 0; }

.equipment-list__desc {
    display: block;
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.1rem;
}

.affiliate-disclosure {
    font-size: 0.78rem;
    color: #aaa;
    margin: 0;
}

/* Rating summary */
.rating-summary {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.rating-summary__average {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.rating-summary__stars { font-size: 1.2rem; letter-spacing: 0.05em; }

.rating-summary__count { font-size: 0.85rem; color: #888; }

/* Distribution bars */
.rating-distribution { margin-bottom: 1.25rem; }

.rating-bar {
    display: grid;
    grid-template-columns: 2rem 1fr 2rem;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    color: #666;
}

.rating-bar__label { text-align: right; white-space: nowrap; }

.rating-bar__track {
    height: 8px;
    background: #e5e2dc;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar__fill {
    height: 100%;
    background: #a16207;
    border-radius: 4px;
    transition: width 0.3s;
}

.rating-bar__count { text-align: right; }

/* Stars */
.star--filled { color: #a16207; }
.star--empty  { color: #d6d2cb; }

/* Star picker form */
.rating-form { margin-top: 0.5rem; }

.star-picker {
    border: none;
    padding: 0;
    margin: 0 0 0.75rem;
    display: flex;
    gap: 0.25rem;
    direction: ltr;
}

.star-picker__label {
    cursor: pointer;
    font-size: 1.8rem;
    color: #d6d2cb;
    transition: color 0.1s;
    line-height: 1;
}

/* Fill stars on hover and when preceding a hovered label */
.star-picker__label:hover,
.star-picker__label:hover ~ .star-picker__label { /* handled by JS */ }

.star-picker__label:has(input:checked) { color: #a16207; }

/* JS-driven hover highlight: class added by app.js */
.star-picker__label.is-highlighted { color: #a16207; }

.rating-voted {
    font-size: 0.95rem;
    color: #555;
    margin: 0.5rem 0 0;
}

.rating-error {
    font-size: 0.9rem;
    color: #b71c1c;
    margin-bottom: 0.75rem;
}

/* Back link below article */
.detail-back {
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* Screen-reader only utility */
.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;
}

/* ============================================================
   Cocktail card — circle photo (float right, text wraps naturally)
   ============================================================ */
.cocktail-card__photo-link {
    float: right;
    margin: 0.1rem 0 0.75rem 1rem;
    display: block;
}

.cocktail-card__photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* clear float after each card */
.cocktail-card::after {
    content: '';
    display: table;
    clear: both;
}

/* ============================================================
   Cocktail detail — display photo (float right, text wraps)
   ============================================================ */
.cocktail-detail__photo-link {
    float: right;
    margin: 0.25rem 0 1rem 1.75rem;
    cursor: zoom-in;
}

.cocktail-detail__photo {
    width: 260px;
    height: 260px;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

/* contain the float */
.cocktail-detail::after {
    content: '';
    display: table;
    clear: both;
}

/* Lightbox overlay */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
    padding: 1rem;
}

.lightbox-overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-overlay__close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    opacity: 0.8;
}

.lightbox-overlay__close:hover { opacity: 1; }

/* ============================================================
   Admin crop page
   ============================================================ */
#crop-container { max-height: 70vh; }
#crop-container img { display: block; max-width: 100%; max-height: 70vh; }

/* Responsive */
@media (max-width: 600px) {
    .category-grid { grid-template-columns: 1fr 1fr; }
    .category-header__art { width: 90px; padding: 0.75rem; }
    .category-header__title { font-size: 1.8rem; }
    .cocktails-grid { grid-template-columns: 1fr; }
    .cocktail-card:nth-child(odd)  { padding-right: 0; border-right: none; }
    .cocktail-card:nth-child(even) { padding-left: 0; }
    .cocktail-detail__photo-link { float: none; margin: 0 0 1rem; }
    .cocktail-detail__photo { width: 100%; height: auto; }
    .ingredient-row-item { grid-template-columns: 1fr 1fr; }

    .site-nav {
        height: auto;
        min-height: 52px;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.5rem 0 0.75rem;
        align-items: center;
    }

    /* Force search onto its own row below the logo + nav links */
    .site-search {
        flex-basis: 100%;
        order: 10;
        margin-left: 0;
    }

    .site-search__wrap {
        width: 100%;
    }

    .site-search__input,
    .site-search__input:focus {
        width: 100%;
    }

    .site-search__suggestions {
        width: 100%;
        right: 0;
    }
}
