:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-soft: #f7f7f7;
    --ink: #222222;
    --muted: #717171;
    --line: #dddddd;
    --line-soft: #ebebeb;
    --accent: #ff385c;
    --accent-dark: #d90b3d;
    --green: #008a05;
    --amber: #b15d00;
    --danger: #c13515;
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
    font: inherit;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 24px;
    min-height: 84px;
    padding: 16px clamp(20px, 5vw, 72px);
    border-bottom: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    width: 154px;
    height: auto;
}

.admin-sidebar .brand-logo,
.auth-card .brand-logo {
    width: 164px;
}

.nav {
    display: inline-flex;
    justify-self: center;
    gap: 26px;
}

.nav-item {
    min-height: 38px;
    color: var(--muted);
    font-weight: 800;
    text-decoration: none;
}

.nav-item.active,
.nav-item:hover {
    color: var(--ink);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.search {
    flex: 1;
    min-width: 0;
}

.search input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    outline: 0;
    padding: 0 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cart-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    padding: 0 14px;
    font-weight: 800;
}

.cart-button strong {
    display: grid;
    min-width: 23px;
    height: 23px;
    place-items: center;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
}

.header-link {
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.header-link.strong {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border-radius: 999px;
    background: var(--surface-soft);
    padding: 0 13px;
}

.account-menu {
    position: relative;
}

.account-menu summary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    list-style: none;
    padding: 0 12px 0 6px;
    font-weight: 800;
}

.account-menu summary::-webkit-details-marker {
    display: none;
}

.account-menu summary span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 13px;
}

.account-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    display: grid;
    width: 210px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.account-menu-panel a,
.account-menu-panel button {
    width: 100%;
    border: 0;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    padding: 13px 15px;
    text-align: left;
    text-decoration: none;
    font-weight: 800;
}

.account-menu-panel a:hover,
.account-menu-panel button:hover {
    background: var(--surface-soft);
}

.inline-form {
    margin: 0;
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    width: min(1600px, 100%);
    margin: 0 auto;
    border-top: 1px solid var(--line-soft);
    padding: 28px clamp(20px, 5vw, 72px);
}

.site-footer p {
    color: var(--muted);
    margin-top: 8px;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-end;
    gap: 14px;
}

.site-footer nav a {
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.content-page {
    display: grid;
    gap: 24px;
    max-width: 960px;
}

.content-page-head {
    display: grid;
    gap: 6px;
}

.content-body {
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #fff;
    padding: clamp(22px, 4vw, 42px);
    line-height: 1.75;
}

.content-body h2,
.content-body h3 {
    margin-top: 22px;
}

.content-body h2:first-child,
.content-body h3:first-child {
    margin-top: 0;
}

.content-body p,
.content-body li {
    color: var(--muted);
}

.page-editor-panel {
    max-width: 1100px;
}

.page-editor-panel .note-editor {
    border-color: var(--line) !important;
    border-radius: 10px;
    overflow: hidden;
}

main {
    width: min(1600px, 100%);
    margin: 0 auto;
    padding: 28px clamp(20px, 5vw, 72px) 56px;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1 {
    max-width: 840px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.02;
}

h2 {
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.1;
}

h3 {
    font-size: 16px;
    line-height: 1.25;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero {
    display: grid;
    gap: 24px;
    padding: 28px 0 10px;
}

.home-slider {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
}

.home-slider-track {
    display: flex;
    transition: transform 260ms ease;
    will-change: transform;
}

.home-slide {
    position: relative;
    flex: 0 0 100%;
    min-height: clamp(360px, 48vw, 560px);
    overflow: hidden;
}

.home-slide img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
}

.home-slide::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.24) 56%, rgba(0, 0, 0, 0.06));
    content: "";
}

.home-slide-copy {
    position: absolute;
    inset: auto auto clamp(26px, 5vw, 58px) clamp(22px, 5vw, 58px);
    z-index: 1;
    display: grid;
    max-width: 620px;
    gap: 12px;
    color: #fff;
}

.home-slide-copy .eyebrow,
.home-slide-copy p {
    color: rgba(255, 255, 255, 0.82);
}

.home-slide-copy h1 {
    color: #fff;
}

.home-slide-copy .button {
    width: fit-content;
}

.home-slider-control {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
    cursor: pointer;
    font-size: 26px;
    font-weight: 900;
    transform: translateY(-50%);
}

.home-slider-control.prev {
    left: 14px;
}

.home-slider-control.next {
    right: 14px;
}

.home-slider-dots {
    position: absolute;
    right: 22px;
    bottom: 20px;
    z-index: 2;
    display: flex;
    gap: 8px;
}

.home-slider-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    padding: 0;
}

.home-slider-dots button.active {
    width: 28px;
    background: #fff;
}

.booking-search {
    display: grid;
    grid-template-columns: 1.3fr 1fr 0.8fr auto;
    align-items: center;
    width: min(900px, 100%);
    min-height: 72px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow);
}

.booking-search label {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 0 24px;
    border-right: 1px solid var(--line-soft);
}

.booking-search span {
    font-size: 12px;
    font-weight: 800;
}

.booking-search input {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--ink);
    outline: 0;
}

.booking-search select {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--ink);
    outline: 0;
}

.booking-search button {
    min-height: 48px;
    margin-right: 12px;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    padding: 0 22px;
    font-weight: 800;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    padding: 0 18px;
    font-weight: 800;
    text-decoration: none;
}

.button.primary {
    background: var(--accent);
    color: #fff;
}

.button.ghost {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
}

.button.full {
    width: 100%;
}

.shop-toolbar {
    position: sticky;
    top: 84px;
    z-index: 9;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 18px;
    margin: 24px -1px 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
}

.inline-toolbar {
    position: static;
    grid-template-columns: 1fr;
    margin-top: 42px;
}

.featured-products {
    margin-top: 18px;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.chip {
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    padding: 0 14px;
    font-weight: 800;
}

.chip.active,
.chip:hover {
    border-color: var(--line);
    background: var(--surface-soft);
    color: var(--ink);
}

.product-count {
    color: var(--muted);
    font-weight: 800;
    white-space: nowrap;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 34px 24px;
}

.announcement-strip {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 8px;
    background: linear-gradient(135deg, #111 0%, #2a2a2a 68%, #ff385c 100%);
    color: #fff;
    padding: clamp(18px, 3vw, 28px);
}

.announcement-strip .eyebrow,
.announcement-strip p {
    color: rgba(255, 255, 255, 0.76);
}

.announcement-strip h2 {
    color: #fff;
}

.announcement-strip p {
    max-width: 760px;
    margin-top: 8px;
    line-height: 1.6;
}

.newsletter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: 18px;
    margin-top: 40px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: clamp(20px, 4vw, 34px);
}

.newsletter-panel p {
    color: var(--muted);
    margin-top: 8px;
}

.newsletter-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.newsletter-form input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    outline: 0;
    padding: 0 16px;
}

.product-card[hidden] {
    display: none;
}

.empty-state {
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--muted);
    margin-top: 18px;
    padding: 18px;
    font-weight: 800;
}

.product-media {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--surface-soft);
}

.product-media img {
    width: 100%;
    aspect-ratio: 1.05 / 1;
    object-fit: cover;
}

.product-media a,
.product-title-link {
    color: inherit;
    text-decoration: none;
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

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

.product-meta,
.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.product-meta small,
.price-row small {
    color: var(--muted);
    font-weight: 600;
}

.price {
    font-size: 16px;
    font-weight: 800;
}

.price-stack {
    display: grid;
    gap: 2px;
}

.price-stack small {
    color: var(--muted);
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    background: #fff0f3;
    color: var(--accent-dark) !important;
    padding: 0 9px;
    font-weight: 900 !important;
    white-space: nowrap;
}

.product-card .button {
    min-height: 40px;
    margin-top: 4px;
    border: 1px solid var(--ink);
    background: #fff;
    color: var(--ink);
}

.product-card .button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.product-actions form {
    display: grid;
    gap: 8px;
    margin: 0;
}

.variant-select {
    display: grid;
    gap: 6px;
    grid-column: 1 / -1;
    color: var(--muted);
    font-weight: 800;
}

.variant-select select {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    padding: 0 12px;
}

.product-actions .button {
    width: 100%;
}

td small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

.quantity-form {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.quantity-form input {
    width: 74px;
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 10px;
}

.cart-total {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    border-top: 1px solid var(--line-soft);
    margin-top: 16px;
    padding-top: 16px;
    font-size: 20px;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

.detail-gallery {
    display: grid;
    gap: 14px;
}

.slider-frame {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--surface-soft);
}

.slider-track {
    display: flex;
    transform: translateX(0);
    transition: transform 220ms ease;
    will-change: transform;
}

.slider-slide {
    flex: 0 0 100%;
    min-width: 100%;
    background: var(--surface-soft);
    pointer-events: none;
}

.slider-slide[data-active="true"] {
    pointer-events: auto;
}

.detail-main-image,
.video-slide iframe {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 0.82;
    border: 0;
    background: var(--surface-soft);
}

.detail-main-image {
    object-fit: cover;
}

.slider-control {
    position: absolute;
    top: 50%;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    cursor: pointer;
    font-size: 28px;
    font-weight: 800;
    transform: translateY(-50%);
}

.slider-control.prev {
    left: 12px;
}

.slider-control.next {
    right: 12px;
}

.detail-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 10px;
}

.thumb-button {
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    padding: 0;
}

.thumb-button.active {
    border-color: var(--accent);
}

.thumb-button:focus-visible,
.slider-control:focus-visible {
    outline: 3px solid rgba(255, 56, 92, 0.28);
    outline-offset: 2px;
}

.thumb-button img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.video-thumb {
    display: grid;
    min-height: 92px;
    place-items: center;
    background: var(--surface-soft);
    color: var(--ink);
    font-weight: 800;
    line-height: 1.2;
}

.detail-summary {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 110px;
}

.detail-price {
    justify-content: flex-start;
}

.detail-description {
    display: grid;
    gap: 10px;
}

.detail-description p {
    color: var(--muted);
    line-height: 1.7;
}

.product-reviews-panel {
    margin-top: 22px;
}

.reviews-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.rating-summary {
    display: grid;
    min-width: 130px;
    justify-items: end;
    color: var(--muted);
}

.rating-summary strong {
    color: var(--ink);
    font-size: 34px;
    line-height: 1;
}

.review-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.review-card {
    display: grid;
    gap: 12px;
    border-top: 1px solid var(--line-soft);
    padding-top: 16px;
}

.review-card:first-child {
    border-top: 0;
    padding-top: 0;
}

.review-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.review-card-head div {
    display: grid;
    gap: 3px;
}

.review-card-head small,
.review-card p {
    color: var(--muted);
}

.review-stars {
    color: var(--amber);
    font-weight: 900;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.empty-state {
    margin-top: 14px;
    color: var(--muted);
}

.admin-body {
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    min-height: 100vh;
    background:
        radial-gradient(circle at 96% 0%, rgba(255, 56, 92, 0.08), transparent 28%),
        #f5f6f8;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 18px;
    height: 100vh;
    overflow: hidden;
    padding: 24px 18px;
    background: #111;
    color: #fff;
    box-shadow: 16px 0 40px rgba(17, 17, 17, 0.12);
}

.admin-sidebar .brand {
    min-height: 54px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 18px;
}

.admin-sidebar .brand-logo {
    width: 178px;
    border-radius: 12px;
    background: #fff;
    padding: 9px 12px;
}

.admin-nav {
    display: grid;
    align-content: start;
    gap: 5px;
    overflow-y: auto;
    padding: 2px 4px 8px 0;
    scrollbar-width: thin;
}

.admin-nav span {
    margin: 16px 12px 5px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-nav span:first-child {
    margin-top: 0;
}

.admin-nav a {
    position: relative;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.74);
    padding: 11px 13px;
    font-weight: 800;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.admin-nav a.active,
.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.admin-nav a.active {
    background: #fff;
    color: #111;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.admin-logout {
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 18px;
}

.admin-logout button {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}

.admin-main {
    width: 100%;
    padding: clamp(22px, 4vw, 40px);
}

.auth-body {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: 100vh;
    place-items: center;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 56, 92, 0.22), transparent 30%),
        radial-gradient(circle at 82% 12%, rgba(17, 17, 17, 0.18), transparent 26%),
        linear-gradient(135deg, #fff7f9 0%, #f7f7f7 46%, #eef7ff 100%);
    padding: 24px;
}

.auth-body::before {
    position: fixed;
    inset: 24px;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.44) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.44) 1px, transparent 1px);
    background-size: 48px 48px;
    content: "";
    mask-image: linear-gradient(135deg, #000, transparent 78%);
}

.auth-card {
    display: grid;
    width: min(480px, 100%);
    gap: 22px;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    padding: clamp(24px, 4vw, 34px);
    box-shadow: 0 28px 80px rgba(17, 17, 17, 0.16);
    backdrop-filter: blur(22px);
}

.auth-card h1 {
    font-size: clamp(30px, 5vw, 44px);
}

.auth-card .brand {
    width: fit-content;
}

.auth-form {
    display: grid;
    gap: 15px;
}

.credential-hint {
    display: grid;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    padding: 13px;
}

.credential-hint strong {
    color: var(--ink);
}

.credential-hint span {
    color: var(--muted);
    font-weight: 800;
}

.auth-form label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-weight: 800;
}

.auth-form input:not([type="checkbox"]) {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--ink);
    outline: 0;
    padding: 0 15px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.auth-form input:not([type="checkbox"]):focus {
    border-color: rgba(255, 56, 92, 0.58);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 56, 92, 0.14);
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.form-error {
    border-radius: 8px;
    background: #ffe5e1;
    color: var(--danger);
    padding: 12px;
    font-weight: 800;
}

.form-status,
.otp-dev {
    border-radius: 8px;
    padding: 12px;
    font-weight: 800;
}

.form-status {
    background: #e7f5ed;
    color: var(--green);
}

.otp-dev {
    background: #fff1d6;
    color: var(--amber);
}

.auth-link {
    color: var(--accent);
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.social-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(17, 17, 17, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}

.auth-card .button.primary.full {
    min-height: 50px;
    box-shadow: 0 12px 28px rgba(255, 56, 92, 0.3);
}

.error-body {
    display: grid;
    min-height: 100vh;
    place-items: center;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 56, 92, 0.2), transparent 28%),
        radial-gradient(circle at 80% 76%, rgba(17, 17, 17, 0.15), transparent 30%),
        linear-gradient(135deg, #fffafa 0%, #f6f7fb 52%, #eef7ff 100%);
    padding: 24px;
}

.error-shell {
    display: grid;
    width: min(760px, 100%);
    gap: 24px;
    padding: 0;
}

.error-card {
    display: grid;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    padding: clamp(26px, 5vw, 48px);
    box-shadow: 0 28px 80px rgba(17, 17, 17, 0.16);
    backdrop-filter: blur(22px);
}

.error-code {
    width: fit-content;
    border-radius: 999px;
    background: #111;
    color: #fff;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 900;
}

.error-card h1 {
    max-width: 680px;
}

.error-card p {
    max-width: 560px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

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

.account-panel {
    display: grid;
    gap: 28px;
    max-width: 820px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #fff;
    padding: clamp(22px, 4vw, 36px);
}

.account-panel > a {
    justify-self: start;
}

.account-details {
    display: grid;
    gap: 14px;
    margin: 0;
}

.account-details div {
    display: grid;
    gap: 5px;
    border-bottom: 1px solid var(--line-soft);
    padding-bottom: 14px;
}

.account-details dt {
    color: var(--muted);
    font-weight: 800;
}

.account-details dd {
    margin: 0;
}

.dashboard-head,
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.dashboard-head {
    margin-bottom: 24px;
    border: 1px solid rgba(17, 17, 17, 0.06);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.74);
    padding: 18px;
    box-shadow: 0 12px 32px rgba(17, 17, 17, 0.05);
    backdrop-filter: blur(14px);
}

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

.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.metric,
.panel,
.customer-card {
    border: 1px solid rgba(17, 17, 17, 0.07);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 32px rgba(17, 17, 17, 0.05);
}

.metric {
    display: grid;
    gap: 7px;
    padding: 20px;
}

.metric span,
.metric small,
.panel-head span,
.customer-card span {
    color: var(--muted);
    font-weight: 700;
}

.metric strong {
    font-size: 30px;
    line-height: 1;
}

.admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 18px;
    margin-bottom: 18px;
}

.panel {
    padding: 20px;
}

.form-panel {
    max-width: 860px;
}

.settings-layout {
    display: grid;
    gap: 18px;
    max-width: 1040px;
}

.settings-card {
    display: grid;
    gap: 16px;
    border: 1px solid rgba(17, 17, 17, 0.07);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 32px rgba(17, 17, 17, 0.05);
    padding: 20px;
}

.settings-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--line-soft);
    padding-bottom: 14px;
}

.settings-card-head .eyebrow {
    margin-bottom: 5px;
}

.settings-media-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    align-items: end;
    gap: 16px;
}

.settings-preview {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.settings-preview img {
    width: 150px;
    height: 104px;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    object-fit: cover;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
}

.admin-form {
    display: grid;
    gap: 16px;
}

.admin-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 800;
}

.admin-form input:not([type="checkbox"]),
.admin-form select,
.admin-form textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    outline: 0;
    padding: 0 13px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.admin-form input:not([type="checkbox"]):focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: rgba(255, 56, 92, 0.58);
    box-shadow: 0 0 0 4px rgba(255, 56, 92, 0.12);
}

.admin-form textarea {
    min-height: 110px;
    padding-top: 12px;
    resize: vertical;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.editor-toolbar button {
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    padding: 0 12px;
    font-weight: 800;
}

.compact-form {
    max-width: 360px;
    margin-top: 18px;
}

.compact-response-form {
    max-width: 640px;
}

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

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

.variant-editor {
    display: grid;
    gap: 12px;
}

.variant-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line-soft);
    padding-top: 12px;
}

nav[role="navigation"] {
    margin-top: 16px;
}

.text-button {
    border: 0;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    font-weight: 800;
    padding: 0;
    text-decoration: none;
}

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

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.table-actions form {
    margin: 0;
}

.media-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.media-list img {
    width: 76px;
    height: 76px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    object-fit: cover;
}

.table-thumb {
    width: 86px;
    height: 58px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    object-fit: cover;
}

.review-media {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 360px));
    gap: 14px;
    margin-top: 14px;
}

.review-media img,
.review-media video {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: var(--surface-soft);
    object-fit: cover;
}

.payment-review-actions {
    display: grid;
    gap: 16px;
    margin-top: 18px;
    border-top: 1px solid var(--line-soft);
    padding-top: 18px;
}

.payment-method-panel {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: var(--surface-soft);
    padding: 14px;
}

.muted-text {
    color: var(--muted);
    line-height: 1.6;
}

.feedback-list {
    display: grid;
    gap: 18px;
    margin-top: 14px;
}

.feedback-item {
    display: grid;
    gap: 14px;
    border-top: 1px solid var(--line-soft);
    padding-top: 16px;
}

.feedback-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.feedback-summary {
    display: grid;
    gap: 12px;
    color: var(--muted);
}

.tracking-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.tracking-search-panel,
.tracking-result-panel {
    display: grid;
    gap: 18px;
}

.tracking-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--line-soft);
    padding-bottom: 16px;
}

.tracking-summary p,
.tracking-empty p,
.tracking-step small {
    color: var(--muted);
}

.tracking-summary strong {
    white-space: nowrap;
    font-size: 24px;
}

.tracking-timeline {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 4px 0;
}

.tracking-step {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    min-height: 68px;
}

.tracking-step::before {
    position: absolute;
    top: 25px;
    bottom: -7px;
    left: 12px;
    width: 2px;
    background: var(--line);
    content: "";
}

.tracking-step:last-child {
    min-height: 38px;
}

.tracking-step:last-child::before {
    display: none;
}

.tracking-step > span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 2px solid var(--line);
    border-radius: 50%;
    background: #fff;
}

.tracking-step.completed > span {
    border-color: var(--accent);
    background: var(--accent);
}

.tracking-step.completed > span::after {
    width: 8px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    content: "";
    transform: rotate(45deg) translate(-1px, -1px);
}

.tracking-step.current > div strong {
    color: var(--accent-dark);
}

.tracking-step div {
    display: grid;
    align-content: start;
    gap: 4px;
}

.tracking-details {
    border-top: 1px solid var(--line-soft);
    padding-top: 16px;
}

.tracking-empty {
    display: grid;
    gap: 8px;
    min-height: 320px;
    align-content: center;
}

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

table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
}

th,
td {
    padding: 15px 14px;
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
    white-space: nowrap;
}

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

tbody tr:hover {
    background: #fafafa;
}

th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.status {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

.status.paid {
    background: #e7f5ed;
    color: var(--green);
}

.status.pending {
    background: #fff1d6;
    color: var(--amber);
}

.status.refunded {
    background: #ffe5e1;
    color: var(--danger);
}

.inventory-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.inventory-filter-form {
    margin-bottom: 18px;
}

.report-filter-form {
    gap: 14px;
}

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

.report-bars {
    display: grid;
    gap: 13px;
    margin-top: 18px;
}

.report-bar-row {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) 110px;
    align-items: center;
    gap: 12px;
}

.report-bar-row span,
.report-bar-row strong {
    font-size: 13px;
    font-weight: 800;
}

.report-bar-row span {
    color: var(--muted);
}

.report-bar-row strong {
    text-align: right;
}

.stock-positive {
    color: var(--green);
}

.stock-negative {
    color: var(--danger);
}

.inventory-item {
    display: grid;
    gap: 8px;
}

.inventory-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-weight: 800;
}

.bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-soft);
}

.bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
}

.customer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.customer-card {
    display: grid;
    gap: 6px;
    padding: 15px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.invoice-body {
    background: #f7f7f7;
}

.invoice-page {
    width: min(1000px, 100%);
    padding: 28px 20px;
}

.invoice-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 14px;
}

.invoice-sheet {
    display: grid;
    gap: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: clamp(20px, 4vw, 42px);
}

.invoice-header,
.invoice-grid,
.invoice-totals div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.invoice-brand {
    display: grid;
    align-content: start;
    justify-items: end;
    gap: 4px;
}

.invoice-grid {
    align-items: flex-start;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    padding: 18px 0;
}

.invoice-grid > div {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.invoice-grid p {
    color: var(--muted);
}

.invoice-totals {
    display: grid;
    justify-self: end;
    width: min(320px, 100%);
    gap: 10px;
}

.invoice-totals div:last-child {
    border-top: 1px solid var(--line);
    padding-top: 10px;
    font-size: 20px;
}

@media (max-width: 1100px) {
    .site-header,
    .shop-toolbar,
    .admin-grid,
    .tracking-layout {
        grid-template-columns: 1fr;
    }

    .nav,
    .categories {
        justify-self: start;
        justify-content: flex-start;
    }

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

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

    .detail-summary {
        position: static;
    }
}

@media print {
    .invoice-actions {
        display: none;
    }

    .invoice-body {
        background: #fff;
    }

    .invoice-page {
        width: 100%;
        padding: 0;
    }

    .invoice-sheet {
        border: 0;
        padding: 0;
    }
}

@media (max-width: 760px) {
    main,
    .admin-main {
        padding: 18px 16px 42px;
    }

    .booking-search {
        grid-template-columns: 1fr;
        border-radius: 8px;
    }

    .home-slide {
        min-height: 420px;
    }

    .home-slide::after {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.18));
    }

    .home-slide-copy {
        right: 18px;
        bottom: 24px;
        left: 18px;
    }

    .announcement-strip,
    .newsletter-panel,
    .newsletter-form,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .site-footer nav {
        justify-content: flex-start;
    }

    .booking-search label {
        min-height: 68px;
        justify-content: center;
        border-right: 0;
        border-bottom: 1px solid var(--line-soft);
    }

    .booking-search button {
        min-height: 46px;
        margin: 12px;
    }

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

    .admin-sidebar {
        position: static;
        height: auto;
        overflow: visible;
    }

    .admin-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
    }

    .admin-nav span {
        grid-column: 1 / -1;
        margin-top: 12px;
    }

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

    .reviews-head,
    .review-card-head {
        display: grid;
    }

    .rating-summary {
        justify-items: start;
    }

    .form-grid,
    .form-grid.two-columns,
    .variant-row,
    .settings-media-row,
    .report-bar-row,
    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .report-bar-row strong {
        text-align: left;
    }

    .settings-card-head {
        display: grid;
    }

    .settings-actions {
        justify-content: stretch;
    }

    .settings-actions .button {
        width: 100%;
    }
}
