:root {
    --bg: #f4f1ee;
    --panel: #f9f6f2;
    --panel-alt: #e7dfd1;
    --header: #f7f3ef;
    --border: #c9c2b8;
    --text: #1f1f1f;
    --muted: #5d5a57;
    --accent: #1fb7b5;
    --accent-dark: #0f8e8c;
    --warning: #f1c45c;
    --error-bg: #fbe3e3;
    --error-text: #9a2d2d;
    --success-bg: #e6f8ec;
    --success-text: #1d6d46;
    --shadow: rgba(18, 18, 18, 0.08);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a {
    color: #0d6efd;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-header {
    background: #f7f5f2;
    border-bottom: 3px solid #16b8ba;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 84px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
}

.logo-link:hover {
    text-decoration: none;
}

.logo-image {
    width: 58px;
    height: 58px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    color: var(--text);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.main-nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav a {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 6px;
    transition: 0.2s ease;
}

.main-nav a:hover {
    background: var(--warning);
    color: #121212;
}

/* Active/current page different from hover: accent background + white text */
.main-nav li.active a {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(31,183,181,0.12);
}

.profile-nav-item {
    position: relative;
}

.profile-nav-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 6px;
}

.profile-nav-trigger:hover,
.profile-nav-trigger:focus-visible {
    background: var(--warning);
    color: #121212;
}

.profile-nav-trigger .profile-nav-icon {
    display: block;
}

.profile-nav-item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-nav-icon {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.profile-nav-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 10;
    min-width: 150px;
    padding: 6px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 8px 18px var(--shadow);
}

.profile-nav-menu a {
    display: block;
    padding: 8px 10px;
    color: var(--text);
    white-space: nowrap;
}

.profile-nav-menu a:hover,
.profile-nav-menu a:focus-visible {
    background: var(--warning);
}

.profile-nav-menu[hidden] {
    display: none !important;
}

.site-main {
    padding: 32px 0 56px;
}

.contact-page {
    padding-top: 20px;
}

.contact-page h1 {
    margin: 0 0 24px;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
}

.business-info,
.enquiry {
    background: rgba(255,255,255,0.15);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 8px 18px var(--shadow);
}

.business-info h2,
.enquiry h2 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.6rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 24px;
}

.col {
    min-width: 0;
}

.col h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.col p,
.col address,
.col li {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
}

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

.hours-list li + li {
    margin-top: 4px;
}

.notice {
    margin: 20px 0;
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 600;
}

.notice.success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid #9ad4b5;
}

.notice.error {
    background: var(--error-bg);
    color: var(--error-text);
    border: 1px solid #e8b0b0;
}

.notice ul {
    margin: 0;
    padding-left: 20px;
}

.contact-form {
    display: grid;
    gap: 18px;
    max-width: 760px;
}

.form-row {
    display: grid;
    gap: 8px;
}

.form-row label {
    font-weight: 700;
}

.required {
    color: #d94747;
}

input,
textarea,
button {
    font: inherit;
}

input,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(31, 183, 181, 0.15);
}

textarea {
    resize: vertical;
    min-height: 140px;
}

.captcha-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    border: 1px dashed var(--border);
    border-radius: 8px;
    background: #f4f4f4;
    color: var(--muted);
    font-size: 0.95rem;
}

.btn-primary {
    width: fit-content;
    padding: 12px 26px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(20, 153, 153, 0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(20, 153, 153, 0.25);
}

.confirmation-modal {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.confirmation-modal.is-open {
    display: flex;
}

.confirmation-modal__content {
    position: relative;
    width: min(480px, 100%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
    padding: 32px 24px 24px;
    text-align: center;
}

.confirmation-modal__content h2 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 2rem;
}

.confirmation-modal__content p {
    margin: 0 0 20px;
    color: var(--muted);
    line-height: 1.6;
}

.confirmation-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
}

.btn-close-modal {
    margin: 0 auto;
}

.site-footer {
    background: #f2efe9;
    border-top: 3px solid #16b8ba;
    margin-top: 24px;
    padding: 22px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-brand,
.footer-links {
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.tea-images {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.product-search-form {
    display: grid;
    grid-template-columns: minmax(180px, 2fr) repeat(2, minmax(120px, 1fr)) minmax(140px, 1fr) auto auto;
    gap: 10px;
    align-items: center;
}

.product-catalogue {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.product-card {
    min-width: 0;
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 18px var(--shadow);
}

.admin-header__guest-button {
    text-decoration: none;
}

.product-admin-actions,
.product-admin-card-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.product-admin-actions {
    margin-bottom: 1rem;
}

.product-admin-card-actions {
    margin-top: 1rem;
}

.product-admin-actions .admin-product-btn,
.product-admin-card-actions .admin-product-btn {
    display: inline-block;
    padding: 0.45rem 0.8rem;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid #555;
    cursor: pointer;
    font: inherit;
}

.product-admin-actions .admin-product-btn--add {
    background: #2f6f45;
    color: #fff;
}

.product-admin-card-actions .admin-product-btn--edit {
    background: #f0ad4e;
    color: #222;
}

.product-admin-card-actions .admin-product-btn--remove {
    background: #b52b2b;
    color: #fff;
}

.product-photo {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 8px;
    background: #eee;
}

.product-name {
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

.product-description {
    overflow-wrap: anywhere;
    white-space: normal;
}

@media (max-width: 820px) {
    .product-search-form {
        grid-template-columns: 1fr 1fr;
    }

    .product-search-form input[type="search"],
    .product-search-form select,
    .product-search-form button,
    .product-search-form a {
        grid-column: span 2;
    }

    .product-catalogue {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 520px) {
    .product-search-form {
        grid-template-columns: 1fr;
    }

    .product-search-form input[type="search"],
    .product-search-form select,
    .product-search-form button,
    .product-search-form a {
        grid-column: auto;
    }

    .product-catalogue {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .header-inner,
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav ul {
        flex-wrap: wrap;
        gap: 10px 18px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .contact-page h1 {
        margin-bottom: 16px;
    }
}
.customer-view-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.7rem 1rem;
    background: #fff3cd;
    border-bottom: 2px solid #c89b3c;
    color: #3d2d0a;
}

.customer-view-banner__button {
    padding: 0.35rem 0.75rem;
    border: 1px solid #765a12;
    border-radius: 4px;
    background: #fff;
    color: #3d2d0a;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
