:root {
    --water: #12343b;
    --water-light: #1f5c63;
    --copper: #c46a2b;
    --sand: #f3ead8;
    --panel: #fffaf0;
    --ink: #172121;
    --muted: #64706b;
    --border: #d9cdb8;
    --danger: #8b2f2f;
    --success-bg: #d8f3dc;
    --warning-bg: #fff3cd;
    --danger-bg: #f8d7da;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--sand);
    color: var(--ink);
}

.announcement-bar {
    background: var(--copper);
    color: white;
    text-align: center;
    padding: 8px 16px;
    font-weight: bold;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--water);
    color: white;
    padding: 18px 40px;
}

.logo {
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 1px;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
}

nav a:hover {
    color: var(--copper);
}

.hero {
    min-height: 460px;
    display: flex;
    align-items: center;
    padding: 60px 40px;
    background:
        linear-gradient(135deg, rgba(18, 52, 59, 0.95), rgba(31, 92, 99, 0.9));
    color: white;
}

.hero-content {
    max-width: 680px;
}

.hero h1 {
    font-size: 3.3rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.button,
button {
    display: inline-block;
    background: var(--copper);
    color: white;
    padding: 12px 18px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.button:hover,
button:hover {
    filter: brightness(0.95);
}

.secondary-button {
    background: #e8dcc7;
    color: var(--water);
}

.danger-button {
    background: var(--danger);
    color: white;
}

.section {
    padding: 55px 40px;
    max-width: 1000px;
    margin: auto;
}

.site-footer {
    background: var(--water);
    color: white;
    text-align: center;
    padding: 28px 20px;
}

.site-footer a {
    color: white;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--copper);
}

.section-heading {
    max-width: 700px;
    margin-bottom: 30px;
}

.section-heading h2 {
    font-size: 2.2rem;
    margin: 5px 0 10px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 320px));
    gap: 24px;
    margin-top: 30px;
}

.product-card {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 18px;
    border-radius: 10px;
    max-width: 320px;
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #ddd;
    border-radius: 8px;
}

.shop-product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition:
        opacity .45s ease,
        transform .30s ease;
}

.shop-product-image.fade {
    opacity: 0;
}

.product-card:hover .shop-product-image {
    transform: scale(1.015);
}

.product-category {
    color: var(--copper);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    margin-bottom: 0;
}

.product-detail {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    max-width: 1100px;
    margin: auto;
}

.product-gallery {
    width: 460px;
    max-width: 100%;
}

.main-product-image {
    width: 100%;
    max-width: 460px;
    height: auto;
    display: block;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: white;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.product-thumbnail {
    width: 75px !important;
    height: 75px !important;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    background: white;
}

.product-thumbnail.selected {
    border-color: var(--copper);
}

.product-info {
    flex: 1;
}

.weight-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.weight-button {
    padding: 10px 18px;
    border: 2px solid var(--water);
    background: white;
    color: var(--water);
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
}

.weight-button:hover:not(:disabled),
.weight-button.selected {
    background: var(--water);
    color: white;
}

.weight-button:disabled,
.weight-button.disabled {
    background: #d7d7d7;
    border-color: #b0b0b0;
    color: #777;
    cursor: not-allowed;
    opacity: 0.7;
}

.product-price {
    font-size: 1.6rem;
    font-weight: bold;
    margin-top: 20px;
}

.stock-status {
    color: var(--water-light);
    font-weight: bold;
}

.out-of-stock {
    color: var(--danger);
    font-weight: bold;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.admin-table th,
.admin-table td {
    padding: 10px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
}

.admin-table input[type="text"],
.admin-table input[type="number"] {
    width: 100%;
    box-sizing: border-box;
    padding: 6px;
}

.flash-container {
    max-width: 1000px;
    margin: 20px auto 0 auto;
    padding: 0 40px;
}

.flash-message,
.cart-message {
    background: var(--success-bg);
    color: var(--water);
    border: 1px solid #95d5b2;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    margin-bottom: 10px;
}

.cart-message {
    display: none;
    margin-top: 15px;
}

.cart-message.show {
    display: block;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.dashboard-card,
.admin-card,
.feature-card,
.cart-summary,
.checkout-summary,
.checkout-form,
.confirmation-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
}

.dashboard-card p {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0;
}

.admin-dashboard-section,
.admin-order-detail,
.admin-orders-section,
.shop-section,
.cart-section,
.checkout-section {
    max-width: 1300px;
}

.admin-product-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    background: #ddd;
    display: block;
}

.placeholder-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #777;
    text-align: center;
}

.status-badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e8dcc7;
    color: var(--water);
    font-size: 0.8rem;
    font-weight: bold;
}

.status-good {
    background: var(--success-bg);
    color: var(--water);
}

.status-warning,
.status-pending-payment {
    background: var(--warning-bg);
    color: #664d03;
}

.status-danger,
.status-cancelled {
    background: var(--danger-bg);
    color: #842029;
}

.status-paid,
.status-shipped {
    background: var(--success-bg);
    color: var(--water);
}

.status-processing {
    background: #cff4fc;
    color: #055160;
}

.status-packed {
    background: #e2e3e5;
    color: #41464b;
}

.low-stock-box {
    background: var(--warning-bg);
    border: 1px solid #ffec99;
    color: #664d03;
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
}

.admin-gallery,
.gallery-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.admin-gallery-item,
.gallery-item {
    background: white;
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 8px;
}

.admin-gallery-item img,
.gallery-item img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    display: block;
    margin-bottom: 10px;
}

.shop-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto auto;
    gap: 14px;
    align-items: end;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
    margin: 25px 0;
}

.shop-filters label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}

.shop-filters input,
.shop-filters select,
.admin-card input,
.admin-card textarea,
.admin-card select,
.checkout-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #c8c0b0;
    border-radius: 6px;
}

.featured-carousel-section {
    max-width: 1200px;
}

.featured-carousel {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 10px 0 20px 0;
    scroll-snap-type: x mandatory;
}

.featured-carousel-item {
    flex: 0 0 210px;
    scroll-snap-align: start;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-carousel-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.featured-carousel-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    background: #ddd;
}

.featured-carousel-item span {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

.why-section {
    background: #eadfc9;
    max-width: none;
}

.why-section .section-heading,
.why-section .feature-grid {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}

.cta-section {
    background: var(--water);
    color: white;
    text-align: center;
    padding: 70px 30px;
}

.cta-section h2 {
    font-size: 2.3rem;
    margin-top: 0;
}

.page-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.admin-edit-page {
    max-width: 1100px;
}

.two-column,
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.checkbox-row {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.muted,
.small-note {
    color: var(--muted);
    font-size: 0.9rem;
}

.cart-layout,
.checkout-layout,
.order-detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 18px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    align-items: center;
}

.cart-item-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    background: #ddd;
}

.text-button {
    background: none;
    border: none;
    color: var(--danger);
    padding: 0;
    cursor: pointer;
    font-weight: bold;
}

.summary-line,
.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 14px 0;
}

.checkout-button {
    display: block;
    text-align: center;
    margin-top: 12px;
}

.error-message {
    background: var(--danger-bg);
    color: #842029;
    border: 1px solid #f5c2c7;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
}

.content-page {
    max-width: 850px;
}

.content-body {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px;
    line-height: 1.7;
}

@media (max-width: 1050px) {
    .cart-layout,
    .checkout-layout,
    .order-detail-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 700px) {
    .site-header,
    .page-header {
        flex-direction: column;
    }

    nav a {
        margin-left: 0;
        margin-right: 15px;
    }

    .product-detail {
        flex-direction: column;
    }

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

    .cart-item-image {
        width: 100%;
        height: 220px;
    }

    .two-column,
    .form-row {
        grid-template-columns: 1fr;
    }
}

.contact-section {
    max-width: 1100px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
    align-items: start;
}

.contact-form,
.contact-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    border: 1px solid #c8c0b0;
    border-radius: 6px;
}

@media (max-width: 850px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

.public-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.public-gallery-item {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
}

.public-gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 8px;
}

.status-new {
    background: var(--warning-bg);
    color: #664d03;
}

.status-read {
    background: #cff4fc;
    color: #055160;
}

.status-resolved {
    background: var(--success-bg);
    color: var(--water);
}

/* Admin v3 layout */

.admin-body {
    background: #eef0ec;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 250px;
    background: var(--water);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 22px;
    box-sizing: border-box;
    z-index: 10;
}

.admin-brand {
    margin-bottom: 30px;
}

.admin-brand strong {
    display: block;
    font-size: 1.25rem;
}

.admin-brand span {
    color: #d5c9b5;
    font-size: 0.9rem;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-nav a,
.admin-sidebar-footer a {
    color: white;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 6px;
}

.admin-nav a:hover,
.admin-sidebar-footer a:hover {
    background: rgba(255, 255, 255, 0.12);
}

.admin-sidebar-footer {
    margin-top: auto;
    font-size: 0.9rem;
}

.admin-sidebar-footer p {
    margin: 3px 0;
}

.admin-main {
    margin-left: 250px;
    min-height: 100vh;
}

.admin-page {
    padding: 35px;
    max-width: 1400px;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.admin-page-header h1 {
    margin: 0;
    font-size: 2.2rem;
}

.admin-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.admin-filters {
    max-width: none;
    grid-template-columns: 2fr 1fr auto auto;
}

.table-wrap {
    overflow-x: auto;
}

.actions-cell {
    white-space: nowrap;
}

.admin-flash {
    margin-left: 0;
    max-width: none;
}

.admin-body .site-header,
.admin-body .site-footer {
    display: none;
}

@media (max-width: 900px) {
    .admin-sidebar {
        position: static;
        width: 100%;
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-page {
        padding: 22px;
    }

    .admin-page-header {
        flex-direction: column;
    }

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

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--copper);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    overflow: hidden;
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0 25px 0;
}

.category-tabs a {
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--water);
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
}

.category-tabs a.active,
.category-tabs a:hover {
    background: var(--water);
    color: white;
}

.filter-dropdown {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px;
    margin: 20px 0;
}

.filter-dropdown summary {
    cursor: pointer;
    font-weight: bold;
    color: var(--water);
}

.contact-form-below {
    margin-top: 24px;
}

@media print {
    .site-header,
    .site-footer,
    .announcement-bar,
    button {
        display: none !important;
    }

    body {
        background: white;
    }

    .section {
        padding: 0;
        max-width: none;
    }

    .confirmation-card {
        border: none;
        padding: 0;
    }
}

.product-admin-table form {
    margin: 0;
}

.product-admin-table button {
    padding: 7px 10px;
    font-size: 0.85rem;
    margin-top: 4px;
}

.admin-page input[list] {
    background: white;
}

.admin-edit-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 360px;
    gap: 26px;
    align-items: start;
}

.main-image-preview img {
    width: 100%;
    max-width: 420px;
    max-height: 320px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: white;
}

.admin-preview-card {
    max-width: none;
}

.admin-preview-card img {
    height: 220px;
    object-fit: cover;
}

.variant-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 10px;
    align-items: end;
}

@media (max-width: 1100px) {
    .admin-edit-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .variant-grid {
        grid-template-columns: 1fr;
    }
}

/* Launch visual refresh + responsive polish */

:root {
    --water: #102f3a;
    --water-light: #1d5964;
    --copper: #b96b32;
    --copper-dark: #945326;
    --sand: #f5efe3;
    --panel: #fffaf2;
    --ink: #152025;
    --muted: #6f7a7c;
    --border: #ddd0ba;
    --shadow: 0 12px 30px rgba(16, 47, 58, 0.11);
}

body {
    background:
        radial-gradient(circle at top left, rgba(185, 107, 50, 0.10), transparent 35%),
        var(--sand);
    color: var(--ink);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(16, 47, 58, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.brand-link {
    min-width: 0;
}

.logo {
    white-space: nowrap;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 16px;
}

nav a {
    margin-left: 0;
}

.hero {
    background:
        linear-gradient(135deg, rgba(16, 47, 58, 0.96), rgba(29, 89, 100, 0.88)),
        radial-gradient(circle at 80% 20%, rgba(185, 107, 50, 0.35), transparent 25%);
}

.hero h1 {
    letter-spacing: -1.5px;
}

.button,
button {
    background: var(--copper);
    border-radius: 999px;
    box-shadow: none;
}

.button:hover,
button:hover {
    background: var(--copper-dark);
    filter: none;
}

.secondary-button {
    background: #eadcc6;
    color: var(--water);
}

.product-card,
.admin-card,
.dashboard-card,
.contact-form,
.contact-card,
.cart-item,
.cart-summary,
.checkout-summary,
.checkout-form,
.confirmation-card,
.content-body {
    box-shadow: var(--shadow);
}

.product-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(16, 47, 58, 0.16);
}

.product-grid {
    grid-template-columns: repeat(auto-fill, minmax(230px, 320px));
    justify-content: center;
}

.category-tabs {
    position: sticky;
    top: 78px;
    z-index: 20;
    background: rgba(245, 239, 227, 0.92);
    backdrop-filter: blur(10px);
    padding: 10px 0;
}

.filter-dropdown {
    box-shadow: var(--shadow);
}

/* Admin sidebar condensed */

.admin-sidebar {
    width: 235px;
    padding: 18px;
}

.admin-brand {
    color: white;
    text-decoration: none;
    margin-bottom: 22px;
}

.admin-nav {
    gap: 10px;
}

.admin-nav details {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 6px;
}

.admin-nav summary {
    cursor: pointer;
    padding: 9px 10px;
    font-weight: bold;
    color: #f5efe3;
}

.admin-nav a {
    display: block;
    font-size: 0.94rem;
    padding: 8px 10px;
    margin-left: 8px;
}

.admin-main {
    margin-left: 235px;
}

.admin-page {
    padding: 28px;
}

.admin-table {
    min-width: 760px;
}

.actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.actions-cell form {
    display: inline;
}

/* Better small screens */

@media (max-width: 950px) {
    .site-header {
        align-items: flex-start;
        padding: 14px 18px;
    }

    .brand-link {
        margin-bottom: 10px;
    }

    nav {
        justify-content: flex-start;
    }

    nav a {
        font-size: 0.92rem;
    }

    .section {
        padding: 36px 18px;
    }

    .hero {
        min-height: 380px;
        padding: 45px 22px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

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

    .product-card {
        max-width: none;
    }

    .shop-product-image,
    .product-card img {
        height: 240px;
    }

    .category-tabs {
        top: 120px;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 12px;
    }

    .category-tabs a {
        white-space: nowrap;
    }

    .admin-sidebar {
        position: static;
        width: 100%;
        max-height: none;
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-page {
        padding: 18px;
    }

    .admin-page-header {
        flex-direction: column;
    }

    .admin-header-actions {
        width: 100%;
    }

    .admin-header-actions .button,
    .admin-header-actions button {
        width: 100%;
        text-align: center;
    }

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

    .admin-filters,
    .shop-filters {
        grid-template-columns: 1fr;
    }

    .actions-cell {
        flex-direction: column;
        align-items: stretch;
    }

    .actions-cell .button,
    .actions-cell button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .logo-mark {
        width: 36px;
        height: 36px;
    }

    .logo {
        font-size: 1.05rem;
    }

    nav {
        gap: 6px 10px;
    }

    nav a {
        font-size: 0.85rem;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

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

    .admin-card,
    .dashboard-card {
        padding: 16px;
    }

    .table-wrap {
        margin-left: -6px;
        margin-right: -6px;
    }
}

.launch-checklist {
    line-height: 1.9;
}

.launch-checklist li {
    margin-bottom: 6px;
}
