/* SEAMOM'S SEAFOOD — mobile-first global styles
   Upload to: public_html/assets/css/style.css */

:root {
    --brand: #087f8c;
    --brand-dark: #075e68;
    --brand-light: #e6f7f8;
    --accent: #ffb703;
    --text: #17212b;
    --muted: #667482;
    --surface: #ffffff;
    --page: #f4f7f9;
    --border: #e1e8ed;
    --success: #16834a;
    --danger: #c62828;
    --radius: 16px;
    --shadow: 0 8px 24px rgba(18, 43, 56, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        "Noto Sans Tamil", sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--brand-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button {
    cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

:focus-visible {
    outline: 3px solid rgba(8, 127, 140, 0.35);
    outline-offset: 2px;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

.page-section {
    padding-block: 24px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
}

.section-heading h1,
.section-heading h2,
.section-heading h3 {
    margin: 0;
    line-height: 1.25;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 0.875rem;
}

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    padding-block: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--text);
}

.brand__logo {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 14px;
    object-fit: contain;
    background: var(--brand-light);
}

.brand__name {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.2;
}

.brand__slogan {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    text-align: center;
    transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
    background: var(--brand-dark);
    color: #fff;
    text-decoration: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn--secondary {
    border-color: var(--border);
    background: #fff;
    color: var(--text);
}

.btn--secondary:hover {
    background: #f0f5f7;
    color: var(--text);
}

.btn--danger {
    background: var(--danger);
}

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

.btn--block {
    width: 100%;
}

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

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

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

.form-field {
    display: grid;
    gap: 6px;
}

.form-field label {
    font-size: 0.92rem;
    font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea,
.input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cbd6de;
    border-radius: 10px;
    background: #fff;
    color: var(--text);
}

.form-field textarea {
    min-height: 110px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.input:focus {
    border-color: var(--brand);
    outline: 3px solid rgba(8, 127, 140, 0.12);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eaf0f3;
    color: #344451;
    font-size: 0.8rem;
    font-weight: 800;
}

.pill--open {
    background: #e4f6eb;
    color: #126b3b;
}

.pill--closed {
    background: #fde9e9;
    color: #a61d24;
}

.notice {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.notice--error {
    border-color: #f3c4c4;
    background: #fff4f4;
    color: #8f1b1b;
}

.notice--success {
    border-color: #b8e4c9;
    background: #f0fbf4;
    color: #155d32;
}

.branch-list {
    display: grid;
    gap: 12px;
}

.branch-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.branch-row__main {
    display: flex;
    flex: 1;
    min-width: 0;
    min-height: 62px;
    align-items: center;
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
}

.branch-row__main:hover {
    background: var(--brand-dark);
    color: #fff;
    text-decoration: none;
}

.branch-row__areas {
    min-width: 78px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    color: var(--brand-dark);
    font-weight: 800;
}

.ticker {
    overflow: hidden;
    padding: 10px 0;
    background: var(--brand-dark);
    color: #fff;
    white-space: nowrap;
}

.ticker__text {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-scroll 24s linear infinite;
}

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

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

.product-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
}

.product-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #e9eff2;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__body {
    display: grid;
    gap: 8px;
    padding: 12px;
}

.product-card__name {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.product-card__price {
    color: var(--brand-dark);
    font-size: 1.05rem;
    font-weight: 900;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.quantity-control button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 800;
}

.quantity-control output {
    min-width: 3ch;
    font-weight: 800;
    text-align: center;
}

.category-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 10px;
    scrollbar-width: thin;
}

.category-chip {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-weight: 700;
}

.category-chip[aria-pressed="true"] {
    border-color: var(--brand);
    background: var(--brand-light);
    color: var(--brand-dark);
}

.cart-bar {
    position: sticky;
    z-index: 10;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 18px 0;
    padding: 14px;
    border-radius: 16px;
    background: #132b35;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

th {
    background: #f0f5f7;
    font-size: 0.88rem;
    white-space: nowrap;
}

tr:last-child td {
    border-bottom: 0;
}

.site-footer {
    margin-top: 36px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    background: #fff;
    color: var(--muted);
    text-align: center;
}

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.gap-1 { gap: 8px; }

@media (min-width: 700px) {
    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .branch-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1000px) {
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .container {
        width: min(100% - 24px, 1120px);
    }

    .site-header__inner {
        min-height: 66px;
        gap: 8px;
    }

    .brand__logo {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .brand__name {
        font-size: 0.94rem;
    }

    .brand__slogan {
        font-size: 0.75rem;
    }

    .header-actions .btn {
        min-height: 40px;
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .card {
        padding: 14px;
    }

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

    .branch-row__main {
        min-height: 58px;
        padding: 12px;
    }

    .branch-row__areas {
        min-width: 68px;
        padding-inline: 8px;
    }

    .product-grid {
        gap: 10px;
    }

    .product-card__body {
        padding: 10px;
    }

    .btn {
        padding: 10px 12px;
    }

    th,
    td {
        padding: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
