:root {
    --bg: #12080a;
    --bg-soft: #1b0d10;
    --panel: rgba(35, 12, 16, 0.9);
    --panel-light: rgba(55, 20, 28, 0.94);
    --primary: #6a1021;
    --primary-strong: #8f1830;
    --gold: #d4b273;
    --gold-soft: #f0dfb5;
    --text: #f5eadb;
    --muted: #cbb7a2;
    --border: rgba(212, 178, 115, 0.28);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    --radius: 18px;
    --max-width: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top right, rgba(143, 24, 48, 0.28), transparent 30%),
        radial-gradient(circle at bottom left, rgba(106, 16, 33, 0.35), transparent 26%),
        linear-gradient(180deg, #090304 0%, #12080a 36%, #170a0c 100%);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.site-shell,
.admin-shell {
    min-height: 100vh;
}

.container {
    width: min(var(--max-width), calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(16px);
    background: rgba(13, 5, 7, 0.82);
    border-bottom: 1px solid rgba(212, 178, 115, 0.18);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}


.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    flex-direction: row;
}

.brand-text {
    display: inline-flex;
    flex-direction: column;
    gap: 0.15rem;
}

.brand-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.22));
}

.footer-brand {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
}

.footer-brand-logo {
    width: 86px;
    height: 86px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.22));
}

.brand {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.08em;
}

.brand-top {
    color: var(--gold);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.brand-main {
    font-size: 1.4rem;
}

.main-nav,
.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
}

.main-nav a,
.admin-nav a {
    color: var(--muted);
    font-size: 1.02rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.admin-nav a:hover {
    color: var(--gold-soft);
    transform: translateY(-1px);
}

.cart-pill,
.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(106, 16, 33, 0.82), rgba(59, 12, 19, 0.82));
    border: 1px solid rgba(212, 178, 115, 0.25);
    box-shadow: var(--shadow);
}

.cart-pill span,
.tag {
    color: var(--gold-soft);
    font-weight: 700;
}


.nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.profile-pill-wrap {
    position: relative;
}

.profile-pill-toggle {
    cursor: pointer;
    color: var(--text);
    font: inherit;
}

.profile-pill-icon {
    font-size: 0.75rem;
    line-height: 1;
    opacity: 0.85;
}

.profile-pill-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 0.55rem);
    min-width: 220px;
    padding: 0.6rem;
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    border-radius: 18px;
    background: rgba(25, 10, 13, 0.97);
    border: 1px solid rgba(212, 178, 115, 0.22);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.profile-pill-wrap:hover .profile-pill-dropdown,
.profile-pill-wrap:focus-within .profile-pill-dropdown,
.profile-pill-wrap.is-open .profile-pill-dropdown {
    display: flex;
}

.profile-pill-dropdown a {
    color: var(--text);
    padding: 0.72rem 0.85rem;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease;
}

.profile-pill-dropdown a:hover {
    background: rgba(212, 178, 115, 0.08);
    color: var(--gold-soft);
}


.wishlist-inline-form {
    display: block;
}

.wishlist-inline-form .button,
.inline-form .button-small {
    width: 100%;
}

.mobile-product-actions {
    display: none;
}

.cart-item-meta strong,
.mini-product-meta strong {
    display: block;
    color: var(--gold-soft);
    margin-bottom: 0.15rem;
}

.cart-item-meta small {
    color: var(--muted);
    word-break: break-word;
}

.cart-qty-field {
    max-width: 100%;
}

.cart-line-total {
    justify-self: end;
    text-align: right;
    color: var(--gold-soft);
}

.checkout-form h2,
.order-summary h2 {
    margin-top: 0;
}

.empty-state {
    grid-column: 1 / -1;
}


.hero-section,
.page-hero {
    padding: 4rem 0 2rem;
}

.hero-grid,
.checkout-grid,
.cart-layout,
.product-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.hero-section h1,
.page-hero h1,
.section-heading h2,
.product-summary h1,
.admin-page-header h1,
.auth-card h1 {
    font-family: 'Cinzel', serif;
    line-height: 1.1;
    margin: 0 0 0.8rem;
}

.hero-section h1 {
    font-size: clamp(2.3rem, 5vw, 4.2rem);
}

.hero-text,
.page-hero p,
.section-heading p,
.medieval-panel p,
.product-card p,
.product-summary p,
.auth-card p,
.helper-text {
    color: var(--muted);
    font-size: 1.1rem;
}

.eyebrow,
.product-meta,
.category-label {
    margin: 0 0 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.82rem;
    color: var(--gold);
}

.medieval-panel {
    position: relative;
    background: linear-gradient(180deg, rgba(34, 12, 16, 0.96), rgba(24, 8, 11, 0.98));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    overflow: hidden;
}

.medieval-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(240, 223, 181, 0.06);
    border-radius: calc(var(--radius) - 6px);
    pointer-events: none;
}

.hero-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-list,
.detail-list {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
    color: var(--muted);
}

.feature-list li,
.detail-list li {
    margin-bottom: 0.55rem;
}

.hero-actions,
.button-row,
.toolbar,
.showcase-admin-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    justify-content: space-between;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 46px;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.button-gold {
    background: linear-gradient(135deg, #d4b273, #b58844);
    color: #2a1206;
}

.button-ghost {
    border-color: rgba(212, 178, 115, 0.35);
    background: rgba(255, 255, 255, 0.02);
    color: var(--gold-soft);
}

.full-width {
    width: 100%;
}

.section-spacing {
    padding: 1.6rem 0 2rem;
}

.section-heading {
    margin-bottom: 1.25rem;
}

.category-grid,
.product-grid,
.stat-grid,
.mini-product-grid {
    display: grid;
    gap: 1.2rem;
}

.category-grid,
.stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-grid.grid_3,
.mini-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-grid.grid_4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.product-card,
.category-card,
.stat-card,
.mini-product-card {
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.product-card:hover,
.category-card:hover,
.stat-card:hover,
.mini-product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 178, 115, 0.42);
}

.product-card img,
.mini-product-card img,
.cart-row img,
.product-gallery img {
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
}

.product-card img {
    height: 250px;
}

.product-card-body {
    padding-top: 1rem;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1rem 0;
    font-size: 1.18rem;
}

.large-price {
    font-size: 1.4rem;
}

.price-old {
    color: rgba(245, 234, 219, 0.6);
    text-decoration: line-through;
}


.product-origin-card {
    margin-top: 0.9rem;
    padding: 0.85rem 0.95rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 178, 115, 0.14);
}

.product-origin-label {
    display: inline-block;
    margin-bottom: 0.55rem;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(245, 234, 219, 0.72);
}

.product-origin-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.origin-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    background: rgba(199, 163, 94, 0.12);
    border: 1px solid rgba(199, 163, 94, 0.24);
    color: rgba(245, 234, 219, 0.9);
    font-size: 0.78rem;
    line-height: 1.2;
}

.site-footer {
    margin-top: 3rem;
    border-top: 1px solid rgba(212, 178, 115, 0.15);
    background: rgba(7, 2, 3, 0.62);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    padding: 2rem 0;
}

.footer-grid h3,
.footer-grid h4,
.order-summary h2,
.product-summary h1,
.product-gallery h2,
.admin-page-header h1,
.stat-card strong,
.showcase-admin-card h2,
.medieval-panel h2,
.medieval-panel h3,
.category-card h3 {
    color: var(--gold-soft);
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-grid li {
    margin-bottom: 0.5rem;
    color: var(--muted);
}

.compact-hero {
    padding-bottom: 0;
}

.product-detail-grid {
    align-items: start;
}

.product-gallery {
    display: grid;
    gap: 1rem;
}

.product-gallery img {
    min-height: 280px;
}

.buy-box,
.login-form,
.checkout-form,
.inline-form {
    display: grid;
    gap: 0.85rem;
}

label {
    display: grid;
    gap: 0.35rem;
    color: var(--gold-soft);
}

input,
textarea,
select {
    width: 100%;
    min-height: 46px;
    font-size: 16px;
    border-radius: 12px;
    border: 1px solid rgba(212, 178, 115, 0.2);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    padding: 0.85rem 1rem;
    font: inherit;
}

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

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

.form-grid .full {
    grid-column: 1 / -1;
}

.cart-table {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cart-row,
.mini-product-card {
    display: grid;
    grid-template-columns: 90px 1fr 100px 120px;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 178, 115, 0.1);
}

.mini-product-card {
    grid-template-columns: 70px 1fr;
}

.cart-row img,
.mini-product-card img {
    height: 90px;
}

.order-summary {
    position: sticky;
    top: 110px;
    height: fit-content;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(212, 178, 115, 0.12);
}

.summary-line.total {
    font-size: 1.2rem;
    color: var(--gold-soft);
}

.notice-error {
    margin: 1rem 0;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: rgba(179, 28, 53, 0.2);
    border: 1px solid rgba(255, 123, 123, 0.25);
    color: #ffd0d6;
}

.auth-layout {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.auth-card {
    width: min(100%, 500px);
}

.maintenance-layout {
    position: relative;
}

.maintenance-team-login {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(212, 178, 115, 0.26);
    background: rgba(16, 5, 7, 0.58);
    color: var(--secondary);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.maintenance-team-login:hover {
    background: rgba(26, 9, 12, 0.82);
    color: #f5dfb4;
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .maintenance-team-login {
        top: 0.9rem;
        right: 0.9rem;
        padding: 0.5rem 0.8rem;
        font-size: 0.78rem;
    }
}

.admin-shell {
    display: grid;
    grid-template-columns: 290px 1fr;
}

.admin-sidebar {
    min-height: 100vh;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(8, 3, 4, 0.95), rgba(21, 7, 9, 0.98));
    border-right: 1px solid rgba(212, 178, 115, 0.12);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    position: sticky;
    top: 0;
}

.admin-brand {
    margin-bottom: 2rem;
}

.admin-nav {
    flex-direction: column;
    align-items: stretch;
}

.admin-main {
    padding: 2rem;
}

.admin-user-box,
.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 178, 115, 0.12);
    border-radius: 16px;
    padding: 1rem;
}

.admin-page-header {
    margin-bottom: 1.4rem;
}

.stat-card span {
    display: block;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.stat-card strong {
    font-size: 2rem;
    font-family: 'Cinzel', serif;
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
    margin-top: 1.4rem;
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 0.9rem 0.7rem;
    border-bottom: 1px solid rgba(212, 178, 115, 0.08);
}

th {
    color: var(--gold-soft);
    font-family: 'Cinzel', serif;
    font-size: 0.86rem;
}

td {
    color: var(--muted);
    font-size: 1rem;
}

.showcase-admin-card + .showcase-admin-card {
    margin-top: 1.2rem;
}

@media (max-width: 1100px) {
    .hero-grid,
    .checkout-grid,
    .cart-layout,
    .product-detail-grid,
    .admin-grid-2,
    .footer-grid,
    .category-grid,
    .product-grid.grid_4,
    .product-grid.grid_3,
    .product-grid.highlight,
    .form-grid,
    .stat-grid,
    .mini-product-grid {
        grid-template-columns: 1fr 1fr;
    }

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

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

@media (max-width: 760px) {
    .nav-wrapper,
    .main-nav,
    .hero-actions,
    .button-row,
    .showcase-admin-head,
    .toolbar,
    .cart-row,
    .hero-grid,
    .checkout-grid,
    .cart-layout,
    .product-detail-grid,
    .admin-grid-2,
    .footer-grid,
    .category-grid,
    .product-grid.grid_4,
    .product-grid.grid_3,
    .product-grid.highlight,
    .form-grid,
    .stat-grid,
    .mini-product-grid {
        grid-template-columns: 1fr;
    }

    .main-nav {
        justify-content: flex-start;
    }

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

    .admin-main {
        padding: 1rem;
    }

    .site-header {
        position: static;
    }

    .order-summary {
        position: static;
    }
}

.flash-wrap {
    margin-top: 1rem;
}

.notice-success,
.notice-error,
.notice-info {
    margin: 1rem 0;
    padding: 0.9rem 1rem;
    border-radius: 12px;
}

.notice-success {
    background: rgba(60, 116, 69, 0.22);
    border: 1px solid rgba(114, 190, 112, 0.25);
    color: #d4ffd0;
}

.notice-info {
    background: rgba(93, 69, 143, 0.2);
    border: 1px solid rgba(172, 146, 235, 0.25);
    color: #ece0ff;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.stat-chip {
    min-width: 130px;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(212, 178, 115, 0.16);
    background: rgba(255, 255, 255, 0.03);
}

.stat-chip strong {
    display: block;
    font-family: 'Cinzel', serif;
    color: var(--gold-soft);
}

.stat-chip span {
    color: var(--muted);
    font-size: 0.95rem;
}

.split-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
}

.slim-gap {
    margin-bottom: 1rem;
}

.meta-line {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    color: var(--muted);
    font-size: 0.98rem;
}

.shop-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.filter-panel {
    position: sticky;
    top: 110px;
}

.empty-state {
    grid-column: 1 / -1;
}

.top-space {
    margin-top: 1rem;
}

.variant-box {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(212, 178, 115, 0.12);
}

.variant-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
}

.variant-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
}

.admin-top-align {
    align-items: start;
}

.admin-form-spacing {
    margin-top: 1rem;
}

.checkbox-grid {
    display: grid;
    gap: 0.7rem;
    margin: 1rem 0 1.25rem;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--muted);
}

.check-row input {
    width: auto;
    min-height: auto;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.button-small {
    min-height: 38px;
    padding: 0.55rem 0.85rem;
    font-size: 0.8rem;
}

.compact-inline {
    display: inline-flex;
}

.admin-flash-wrap {
    margin-bottom: 1rem;
}

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

    .filter-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .split-heading,
    .meta-line,
    .variant-list li {
        flex-direction: column;
        align-items: flex-start;
    }
}

.notice-warning {
    margin: 1rem 0;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    background: rgba(168, 111, 27, 0.16);
    border: 1px solid rgba(212, 178, 115, 0.3);
    color: var(--gold-soft);
}

.discount-line strong {
    color: #9df1b6;
}

.coupon-box {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(212, 178, 115, 0.18);
}

.coupon-form,
.coupon-applied {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.coupon-form input {
    flex: 1 1 220px;
}

.summary-panel {
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 178, 115, 0.15);
}

.product-main-viewer {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(212, 178, 115, 0.18);
    background: rgba(255, 255, 255, 0.02);
}

.product-main-viewer img {
    width: 100%;
    aspect-ratio: 4 / 4;
    object-fit: cover;
}

.product-thumb-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(74px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.product-thumb {
    padding: 0;
    border: 1px solid rgba(212, 178, 115, 0.18);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

.product-thumb.is-active {
    border-color: rgba(212, 178, 115, 0.7);
    box-shadow: 0 0 0 2px rgba(212, 178, 115, 0.18);
}

.product-thumb img {
    width: 100%;
    height: 82px;
    object-fit: cover;
}

.admin-current-image {
    margin-top: 0.8rem;
    max-height: 260px;
    width: auto;
    border-radius: 14px;
    border: 1px solid rgba(212, 178, 115, 0.16);
}

.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
}

.gallery-card {
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 178, 115, 0.16);
}

.gallery-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.gallery-card-body {
    padding: 0.9rem;
}

.gallery-card-body small {
    display: block;
    margin-top: 0.5rem;
    color: var(--muted);
    word-break: break-word;
}

@media (max-width: 860px) {
    .coupon-form,
    .coupon-applied {
        flex-direction: column;
        align-items: stretch;
    }

    .product-thumb-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}


.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;
}

.nav-content {
    display: contents;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.28rem;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(212, 178, 115, 0.22);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--gold-soft);
}

.admin-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.data-table table {
    min-width: 680px;
}

@media (max-width: 980px) {
    .container {
        width: min(var(--max-width), calc(100% - 1.25rem));
    }

    .nav-wrapper {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .nav-content {
        display: none;
        width: 100%;
        margin-top: 0.85rem;
    }

    .nav-content.is-open,
    .admin-nav.is-open {
        display: grid;
    }

    .main-nav {
        width: 100%;
        display: grid;
        gap: 0.4rem;
        padding: 0.4rem;
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(212, 178, 115, 0.12);
    }

    .main-nav a,
    .admin-nav a {
        display: block;
        padding: 0.8rem 0.95rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.02);
    }

    .nav-pills {
        margin-top: 0.85rem;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cart-pill {
        width: 100%;
        justify-content: space-between;
        padding: 0.8rem 0.95rem;
        box-shadow: none;
    }

    .hero-section,
    .page-hero {
        padding-top: 2.6rem;
    }

    .hero-section h1 {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .medieval-panel {
        padding: 1.15rem;
    }

    .product-card img {
        height: 220px;
    }

    .site-footer {
        margin-top: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.5rem 0;
    }

    .shop-layout {
        gap: 1rem;
    }

    .filter-panel {
        position: static;
    }

    .admin-sidebar {
        padding: 1rem;
        gap: 1rem;
    }

    .admin-nav {
        display: none;
        gap: 0.55rem;
        margin-top: 0.8rem;
    }

    .admin-user-box {
        margin-top: 0.25rem;
    }
}

@media (max-width: 760px) {
    body {
        font-size: 1.02rem;
    }

    .brand {
        max-width: calc(100% - 64px);
        gap: 0.65rem;
    }

    .brand-logo {
        width: 46px;
        height: 46px;
    }

    .footer-brand {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand-logo {
        margin: 0 auto;
        width: 74px;
        height: 74px;
    }

    .brand-main {
        font-size: 1.15rem;
    }

    .container {
        width: calc(100% - 1rem);
    }

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

    .main-nav a,
    .admin-nav a {
        min-height: 46px;
        display: flex;
        align-items: center;
    }

    .hero-text,
    .page-hero p,
    .section-heading p,
    .medieval-panel p,
    .product-card p,
    .product-summary p,
    .auth-card p,
    .helper-text {
        font-size: 1rem;
    }

    .button,
    .button-small {
        width: 100%;
    }

    .hero-actions,
    .button-row,
    .toolbar,
    .table-actions,
    .coupon-form,
    .coupon-applied {
        align-items: stretch;
    }

    .product-card img {
        height: 200px;
    }

    .price-row,
    .summary-line,
    .meta-line {
        flex-wrap: wrap;
    }

    .cart-row,
    .mini-product-card {
        grid-template-columns: 1fr;
        padding: 0.9rem;
        gap: 0.75rem;
    }

    .cart-item-meta,
    .mini-product-meta {
        display: grid;
        gap: 0.15rem;
    }

    .cart-qty-field,
    .cart-line-total {
        width: 100%;
        max-width: 100%;
        justify-self: stretch;
        text-align: left;
    }

    .mobile-product-actions {
        position: fixed;
        left: 0.5rem;
        right: 0.5rem;
        bottom: calc(0.5rem + env(safe-area-inset-bottom));
        z-index: 30;
        display: grid;
        gap: 0.55rem;
        padding: 0.75rem;
        border-radius: 18px;
        background: rgba(12, 5, 7, 0.94);
        border: 1px solid rgba(212, 178, 115, 0.18);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(12px);
    }

    .mobile-product-actions .button {
        margin: 0;
    }

    .product-summary {
        padding-bottom: 9.5rem;
    }

    .cart-row img,
    .mini-product-card img {
        width: 100%;
        height: auto;
        max-height: 220px;
        aspect-ratio: 4 / 3;
    }

    .product-main-viewer img,
    .product-gallery img {
        min-height: 0;
    }

    .product-thumb-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .product-thumb img {
        height: 72px;
    }

    .admin-main {
        padding: 0.85rem;
    }

    .admin-page-header,
    .split-heading {
        gap: 0.75rem;
    }

    .data-table {
        padding-bottom: 0.25rem;
    }

    .data-table table {
        min-width: 620px;
    }
}

@media (max-width: 520px) {
    .mobile-product-actions {
        left: 0.35rem;
        right: 0.35rem;
        bottom: calc(0.35rem + env(safe-area-inset-bottom));
        padding: 0.65rem;
    }

    .hero-section,
    .page-hero,
    .section-spacing {
        padding-top: 1.25rem;
    }

    .hero-card,
    .medieval-panel,
    .summary-panel {
        border-radius: 16px;
    }

    .category-grid,
    .product-grid.grid_4,
    .product-grid.grid_3,
    .product-grid.highlight,
    .mini-product-grid,
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .product-card img {
        height: 180px;
    }

    .stat-chip {
        min-width: 0;
        flex: 1 1 calc(50% - 0.8rem);
    }

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

    input,
    textarea,
    select {
        padding: 0.8rem 0.9rem;
    }
}


.order-lookup-grid {
    align-items: start;
}

.order-lookup-head {
    gap: 1rem;
    align-items: flex-start;
}

.order-history-list {
    gap: 1rem;
}

.order-history-entry {
    padding: 1rem 1.1rem;
}


.shop-layout{display:grid;grid-template-columns:minmax(240px,300px) 1fr;gap:1.5rem;align-items:start}.shop-filters{position:sticky;top:1rem}.filter-form label{display:block;margin-bottom:1rem}.compact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-check-grid{display:grid;gap:.5rem}.product-badges{display:flex;flex-wrap:wrap;gap:.4rem;margin-bottom:.75rem}.product-badge{display:inline-flex;padding:.2rem .65rem;border-radius:999px;background:rgba(199,163,94,.18);border:1px solid rgba(199,163,94,.35);font-size:.76rem}.product-badge-soft{background:rgba(255,255,255,.06)}.legal-content{line-height:1.8;white-space:normal}.admin-filter-bar .form-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.summary-panel strong br{display:block}.product-card img{aspect-ratio:4/3;object-fit:cover}.admin-gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem}.gallery-card{background:rgba(255,255,255,.03);border:1px solid rgba(199,163,94,.15);border-radius:18px;overflow:hidden}.gallery-card img{width:100%;aspect-ratio:1/1;object-fit:cover}.gallery-card-body{padding:1rem}.admin-current-image{display:block;max-width:280px;width:100%;border-radius:18px;margin-top:.75rem}
@media (max-width: 900px){.shop-layout{grid-template-columns:1fr}.shop-filters{position:static}.admin-filter-bar .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 640px){.compact-grid,.admin-filter-bar .form-grid{grid-template-columns:1fr}.product-badges{gap:.3rem}}

.narrow-section {
    max-width: 760px;
}

.account-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
}

.account-panel,
.order-card {
    display: grid;
    gap: 14px;
}

.account-orders {
    gap: 16px;
}

.order-card {
    border: 1px solid rgba(212, 175, 55, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    padding: 18px;
}

.order-card-head {
    align-items: start;
}

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


.review-summary-inline{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin:.85rem 0 1rem;color:var(--text-soft,#d9c6a5)}
.review-stars{letter-spacing:.18em;color:#d7b16e;font-size:1rem}
.review-stars.large{font-size:1.35rem}
.review-big-rating{text-align:center;padding:1rem 0}
.review-big-value{font-size:3rem;font-weight:700;line-height:1;color:#fff0d4}
.review-card{padding:1rem 1.1rem;border:1px solid rgba(201,168,106,.18);border-radius:18px;background:rgba(255,255,255,.02)}
.review-card-meta{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap}
.contact-layout,.review-layout{display:grid;grid-template-columns:1.05fr 1fr;gap:1.25rem}
.account-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.admin-review-card h3{margin:0}
@media (max-width: 900px){.contact-layout,.review-layout{grid-template-columns:1fr}.account-stat-grid{grid-template-columns:1fr}}


.status-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    border: 1px solid transparent;
    white-space: nowrap;
}

.status-badge-neutral {
    background: rgba(255,255,255,0.08);
    border-color: rgba(212,184,145,0.28);
    color: var(--parchment);
}

.status-badge-info {
    background: rgba(96, 139, 173, 0.18);
    border-color: rgba(96, 139, 173, 0.35);
    color: #d7ebff;
}

.status-badge-warning {
    background: rgba(196, 148, 82, 0.18);
    border-color: rgba(196, 148, 82, 0.35);
    color: #ffe9c7;
}

.status-badge-accent {
    background: rgba(138, 95, 53, 0.18);
    border-color: rgba(184, 144, 90, 0.4);
    color: #f6dcc0;
}

.status-badge-success {
    background: rgba(92, 142, 101, 0.18);
    border-color: rgba(92, 142, 101, 0.4);
    color: #d8f0dc;
}

.status-badge-danger {
    background: rgba(165, 76, 76, 0.18);
    border-color: rgba(165, 76, 76, 0.4);
    color: #ffd4d4;
}


/* Simplified admin product form */
.muted-text {
    color: var(--muted);
}

.simplified-product-panel {
    overflow: hidden;
}

.product-form-intro {
    margin: 0.35rem 0 0;
}

.simplified-product-form {
    display: grid;
    gap: 1rem;
}

.product-quick-tips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.product-quick-tips span {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(212, 178, 115, 0.14);
    color: var(--gold-soft);
    font-size: 0.95rem;
}

.product-form-section {
    padding: 1rem;
    border-radius: 18px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(212, 178, 115, 0.10);
}

.product-form-section + .product-form-section {
    margin-top: 0.2rem;
}

.product-form-section .section-head h3,
.product-form-section summary {
    margin: 0;
    font-size: 1.2rem;
    color: var(--gold-soft);
    cursor: pointer;
}

.product-form-section .section-head p {
    margin: 0.35rem 0 0;
    color: var(--muted);
}

.compact-grid {
    gap: 0.85rem;
}

.inline-check-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.6rem;
    padding: 0.75rem;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
}

.collapsible-section summary {
    list-style: none;
}

.collapsible-section summary::-webkit-details-marker {
    display: none;
}

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


.profile-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.profile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid rgba(201, 165, 92, 0.16);
    background: rgba(19, 17, 16, 0.76);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.profile-nav-link:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 165, 92, 0.34);
    background: rgba(27, 24, 23, 0.92);
}

.profile-nav-link.is-active {
    border-color: rgba(201, 165, 92, 0.52);
    background: linear-gradient(135deg, rgba(201, 165, 92, 0.18), rgba(34, 28, 25, 0.96));
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.profile-nav-icon {
    width: 2.6rem;
    height: 2.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(201, 165, 92, 0.14);
    font-size: 1.2rem;
    flex: 0 0 2.6rem;
}

.profile-nav-text {
    font-weight: 600;
    letter-spacing: 0.01em;
}

@media (max-width: 720px) {
    .profile-nav {
        grid-template-columns: 1fr;
    }

    .profile-nav-link {
        padding: 0.85rem 0.95rem;
    }
}

/* Profile dashboard, shared wishlist, handmade info */
.account-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.dashboard-tile,
.wishlist-share-panel,
.shared-wishlist-note,
.handmade-story-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 18px;
    padding: 1rem 1.1rem;
}

.share-link-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: rgba(0,0,0,0.2);
    color: #f6efe3;
}

.handmade-story-box {
    margin-top: 1rem;
}

.handmade-story-box h3 {
    margin-bottom: 0.8rem;
}

.handmade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.8rem;
}

.handmade-grid div {
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    padding: 0.8rem 0.9rem;
}

.handmade-grid span {
    display: block;
    font-size: 0.8rem;
    opacity: 0.72;
    margin-bottom: 0.2rem;
}

.handmade-grid strong {
    display: block;
    font-size: 1rem;
}

@media (max-width: 700px) {
    .account-dashboard-grid,
    .handmade-grid {
        grid-template-columns: 1fr;
    }
}

.site-header .brand,
.section-heading p,
.page-hero p,
.product-card p,
.helper-text {
    text-wrap: pretty;
}

.product-card h3,
.category-card h3 {
    line-height: 1.2;
}

.product-card-body p {
    min-height: 3.3em;
}

.legal-content p,
.contact-layout p {
    line-height: 1.8;
}


.checkout-payment-methods {
    border: 1px solid rgba(212, 178, 115, 0.18);
    border-radius: 18px;
    padding: 1rem 1.1rem;
    margin: 0;
}

.checkout-payment-methods legend {
    padding: 0 0.35rem;
    font-weight: 700;
}

.payment-method-list {
    display: grid;
    gap: 0.85rem;
}

.payment-method-option {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(212, 178, 115, 0.15);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.payment-method-option input {
    margin-top: 0.25rem;
}

.payment-method-option span {
    display: grid;
    gap: 0.2rem;
}

.payment-method-option small {
    color: var(--muted);
}

.admin-section {
    display: grid;
    gap: 1.5rem;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.admin-card,
.checkout-payment-preview {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(212, 170, 99, 0.22);
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
}

.checkout-payment-preview.compact {
    margin-top: 0.75rem;
    padding: 1rem 1.1rem;
}

.checkout-payment-preview h3 {
    margin-top: 0;
    margin-bottom: 0.85rem;
}

.checkout-payment-preview div + div {
    margin-top: 0.35rem;
}


.order-confirmation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.order-confirmation-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(212, 170, 99, 0.18);
}

.order-confirmation-items {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

.order-confirmation-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.order-confirmation-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.order-confirmation-item-meta {
    text-align: right;
    display: grid;
    gap: 0.25rem;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .order-confirmation-item {
        flex-direction: column;
    }

    .order-confirmation-item-meta {
        text-align: left;
    }
}
