:root {
    --bg-main: #f3eee4;
    --bg-elevated: #fcfaf6;
    --bg-soft: #f5f0e7;
    --accent: #b88955;
    --accent-strong: #c79b6b;
    --text-main: #2b241d;
    --text-muted: #74614d;
    --danger: #c45151;
    --ok: #4ba873;
    --border-soft: rgba(98, 77, 55, 0.2);
    --bg-glow-a: rgba(184, 137, 85, 0.18);
    --bg-glow-b: rgba(184, 137, 85, 0.12);
    --surface-navbar: rgba(243, 238, 228, 0.94);
    --footer-bg: #eee7db;
    --font-serif: "Cinzel", serif;
    --font-sans: "Montserrat", sans-serif;
}

html.theme-dark,
body.theme-dark {
    --bg-main: #111214;
    --bg-elevated: #181a1d;
    --bg-soft: #1f2226;
    --accent: #c89a6b;
    --accent-strong: #ddb185;
    --text-main: #f2f4f6;
    --text-muted: #a7adb4;
    --border-soft: rgba(255, 255, 255, 0.1);
    --bg-glow-a: rgba(200, 154, 107, 0.16);
    --bg-glow-b: rgba(200, 154, 107, 0.11);
    --surface-navbar: rgba(17, 18, 20, 0.92);
    --footer-bg: #0e0f11;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
    background: var(--bg-main);
    color-scheme: light;
}

html.theme-dark {
    color-scheme: dark;
}

body {
    min-height: 100%;
    background:
        radial-gradient(1000px 450px at 10% -20%, var(--bg-glow-a), transparent 58%),
        radial-gradient(900px 350px at 100% 0%, var(--bg-glow-b), transparent 62%),
        var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
}

body.mobile-mode * {
    scroll-behavior: auto;
}

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

.main-navbar {
    position: sticky;
    top: 0;
    z-index: 1200;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 20px 5%;
    background: var(--surface-navbar);
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(10px);
    overflow: visible;
}

.logo {
    font-family: var(--font-serif);
    font-size: 24px;
    letter-spacing: 2.2px;
    margin-right: 0;
    white-space: nowrap;
    flex: 0 0 auto;
}

.logo a {
    display: inline-flex;
    align-items: center;
    color: var(--text-main);
}

.admin-logo-word {
    color: #d4af37;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    flex: 1 1 auto;
    width: auto;
    margin: 0;
    position: relative;
    padding: 0 10px;
    gap: clamp(10px, 1.4vw, 18px);
}

html:not(.auth-ready) #profName,
html:not(.auth-ready) #profEmail,
html:not(.auth-ready) #profileInitials,
html:not(.auth-ready) #profAvatar,
html:not(.auth-ready) #profileRoleTitle,
html:not(.auth-ready) #profileAccountDetails,
html:not(.auth-ready) #profileAddressList,
html:not(.auth-ready) #userOrdersList,
html:not(.auth-ready) #userMessageThreads {
    opacity: 0;
}

html.auth-ready #profName,
html.auth-ready #profEmail,
html.auth-ready #profileInitials,
html.auth-ready #profAvatar,
html.auth-ready #profileRoleTitle,
html.auth-ready #profileAccountDetails,
html.auth-ready #profileAddressList,
html.auth-ready #userOrdersList,
html.auth-ready #userMessageThreads {
    opacity: 1;
    transition: opacity 0.16s ease;
}

html.has-session:not(.auth-ready) #navAuthLink,
html.has-session:not(.auth-ready) .profile-menu-item {
    opacity: 0;
    pointer-events: none;
}

html.auth-ready #navAuthLink,
html.auth-ready .profile-menu-item {
    opacity: 1;
    transition: opacity 0.12s ease;
}

.nav-links li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
}

.nav-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 8px 0;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, background 0.24s ease, box-shadow 0.24s ease;
    font-weight: 600;
}

.nav-links a.active {
    color: var(--accent);
    border-color: var(--accent);
}

.main-navbar .nav-links > li:not(.nav-brand-item):not(#headerCartWrapper) > a,
.main-navbar .nav-links > li:not(.nav-brand-item):not(#headerCartWrapper) > .profile-menu-toggle {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 9px 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
    line-height: 1;
    min-height: 36px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.main-navbar .nav-links > li:not(.nav-brand-item):not(#headerCartWrapper) > a::before,
.main-navbar .nav-links > li:not(.nav-brand-item):not(#headerCartWrapper) > .profile-menu-toggle::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    opacity: 0;
    background:
        radial-gradient(ellipse at var(--hover-x, 18%) var(--hover-y, 50%), rgba(223, 185, 105, 0.78) 0 18%, rgba(190, 139, 75, 0.66) 42%, rgba(143, 98, 54, 0.36) 68%, transparent 72%),
        linear-gradient(135deg, rgba(190, 139, 75, 0.38), rgba(228, 190, 111, 0.28));
    clip-path: circle(0 at var(--hover-x, 18%) var(--hover-y, 50%));
    transition:
        clip-path 0.48s cubic-bezier(0.2, 0.72, 0.18, 1),
        opacity 0.22s ease;
}

.nav-brand-item {
    position: static;
    transform: none;
    margin: 0;
    z-index: 2;
    grid-column: 3;
    justify-self: center;
}

.nav-brand-item .logo {
    display: block;
    transform: none;
}

.nav-brand-item a {
    color: var(--text-main);
    text-transform: none;
    border-bottom: none;
    font-size: inherit;
    letter-spacing: inherit;
}

.order-link-item {
    margin-left: 0;
}

#headerCartWrapper {
    margin-left: 0;
    position: relative;
    flex: 0 0 auto;
}

.brand-gap-left {
    margin-right: 0;
}

.brand-gap-right {
    margin-left: 0;
}

.brand-wordmark {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.brand-trademark {
    font-size: 0.45em;
    line-height: 1;
    margin-left: 3px;
    transform: translateY(-0.35em);
}

.screen-banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    margin: 20px auto 10px;
    width: min(1240px, calc(100% - 28px));
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.45);
}

.screen-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
}

.screen-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to right, rgba(10, 11, 13, 0.68), rgba(10, 11, 13, 0.22) 20%, rgba(10, 11, 13, 0.22) 80%, rgba(10, 11, 13, 0.68)),
        linear-gradient(to bottom, rgba(10, 11, 13, 0.66), rgba(10, 11, 13, 0.28) 24%, rgba(10, 11, 13, 0.28) 76%, rgba(10, 11, 13, 0.66));
}

.screen-banner .elegant-container,
.screen-banner .section-title-wrap {
    position: relative;
    z-index: 1;
    max-width: min(920px, calc(100% - 24px));
    margin: 0 auto;
    padding: clamp(18px, 2.8vw, 30px);
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(11, 12, 14, 0.62), rgba(11, 12, 14, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(2px);
}

.screen-banner .classic-subtitle {
    color: #d9ae74;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.screen-banner .main-welcome-title,
.screen-banner h1,
.screen-banner h2,
.screen-banner p,
.screen-banner .elegant-script-description {
    color: #f2ece2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.48);
}

.home-banner::before {
    background-image: url("images/anasayfa.png");
    background-position: center 56%;
}

.collection-banner::before {
    background-image: url("images/anasayfa.png");
    background-position: center 58%;
}

.custom-banner::before {
    background-image: url("images/ozel-siparis.png");
    background-position: center 64%;
}

body.mobile-mode .screen-banner {
    border-radius: 12px;
    margin: 12px auto 8px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.premium-welcome-section {
    padding: 95px 20px;
    text-align: center;
}

.elegant-container {
    width: min(1220px, 100%);
    margin: 0 auto;
}

.classic-subtitle {
    display: inline-block;
    color: var(--accent);
    font-family: var(--font-serif);
    letter-spacing: 3.2px;
    text-transform: uppercase;
    font-size: 12px;
    margin-bottom: 16px;
}

.main-welcome-title {
    font-family: var(--font-serif);
    letter-spacing: 3px;
    font-size: clamp(36px, 5vw, 50px);
    margin-bottom: 22px;
}

.elegant-script-description {
    max-width: 840px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 15px;
}

.home-banner .elegant-container {
    max-width: min(1100px, calc(100% - 24px));
    text-align: left;
}

.home-banner .classic-subtitle,
.home-banner .main-welcome-title {
    display: block;
    text-align: center;
}

.hero-story-shell {
    position: relative;
    max-width: 1030px;
    margin: 0 auto;
    padding: clamp(18px, 2.2vw, 28px) clamp(18px, 4.5vw, 58px) 0;
}

.hero-story-copy {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2.1vw, 24px) clamp(24px, 4vw, 42px);
    align-items: start;
}

.hero-story-copy p {
    margin: 0;
    color: #f2ece2;
    font-size: clamp(14px, 1.08vw, 15.5px);
    line-height: 1.92;
    font-weight: 500;
    text-align: left;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.46);
}

.hero-story-wide {
    grid-column: 1 / -1;
    max-width: 780px;
    margin: 2px auto 0 !important;
    text-align: center !important;
}

.hero-story-ornament {
    position: absolute;
    top: 22px;
    bottom: 42px;
    width: 20px;
    opacity: 0.78;
    pointer-events: none;
}

.hero-story-ornament::before {
    content: "";
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 50%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(229, 189, 133, 0.72), transparent);
}

.hero-story-ornament::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 11px;
    height: 11px;
    border: 1px solid rgba(229, 189, 133, 0.8);
    transform: translate(-50%, -50%) rotate(45deg);
    background: rgba(11, 12, 14, 0.42);
}

.hero-story-ornament-left {
    left: 10px;
}

.hero-story-ornament-right {
    right: 10px;
}

.collection-grid-section,
.order-section {
    padding: 70px 7%;
}

.hero-signature {
    display: block;
    margin: clamp(24px, 3.2vw, 36px) auto 0;
    max-width: 760px;
    font-family: var(--font-serif);
    letter-spacing: 0.7px;
    text-align: center;
    color: #e5bd85 !important;
    line-height: 1.7;
    padding-top: 18px;
    border-top: 1px solid rgba(229, 189, 133, 0.34);
}

.section-title-wrap {
    text-align: center;
    margin-bottom: 36px;
}

.section-title-wrap h1,
.section-title-wrap h2 {
    font-family: var(--font-serif);
    letter-spacing: 2px;
}

.auth-wrapper {
    min-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
}

.auth-card,
#orderForm,
.profile-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.35);
}

.auth-card h2,
.profile-card h2 {
    font-family: var(--font-serif);
    font-size: 26px;
    margin-bottom: 10px;
}

.auth-card p,
.order-section p {
    color: var(--text-muted);
    font-size: 14px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--accent);
    letter-spacing: 1px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: var(--bg-elevated);
    color: var(--text-main);
    padding: 12px;
    font: inherit;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.brand-file-input {
    border: 1px dashed rgba(200, 154, 107, 0.55);
    border-radius: 10px;
    background: var(--bg-elevated);
    color: var(--text-muted);
    padding: 10px;
}

.brand-file-input::file-selector-button {
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #c89a6b, #d9ae84);
    color: #151515;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 9px 12px;
    margin-right: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.submit-btn {
    width: 100%;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #181818;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 13px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(44, 30, 15, 0.16);
    transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
}

.compact-btn {
    width: auto;
    padding: 10px 14px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-top: 8px;
}

.small-outline-btn,
.small-danger-btn {
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(3px);
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.small-outline-btn {
    color: var(--accent);
    border: 1px solid rgba(200, 154, 107, 0.6);
}

.small-danger-btn {
    color: var(--danger);
    border: 1px solid rgba(196, 81, 81, 0.55);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    max-width: 1240px;
    margin: 0 auto;
    align-items: stretch;
}

.product-card {
    background: var(--bg-elevated);
    border-radius: 12px;
    border: 1px solid var(--border-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.product-img-box {
    height: 220px;
    background-position: center;
    background-size: cover;
}

.product-media-frame {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 190px;
    max-height: 340px;
    background:
        linear-gradient(135deg, rgba(200, 154, 107, 0.08), rgba(255, 255, 255, 0.02)),
        var(--bg-soft);
    border-bottom: 1px solid var(--border-soft);
    overflow: hidden;
}

.product-media-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-info h3 {
    font-size: 17px;
}

.product-meta-line {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 4px;
}

.product-price {
    color: var(--accent);
    font-family: var(--font-serif);
    margin-top: 12px;
    font-size: 19px;
}

.card-btn {
    margin-top: auto;
}

.product-card-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
}

.product-card-actions .card-btn {
    margin-top: 0;
}

.product-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.ask-question-btn {
    margin-top: 10px;
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(200, 154, 107, 0.65);
    background: linear-gradient(135deg, rgba(200, 154, 107, 0.12), rgba(200, 154, 107, 0.05));
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 11px;
    cursor: pointer;
    transition: transform 0.24s ease, background 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.cart-wrapper {
    position: relative;
    list-style: none;
    cursor: pointer;
    margin-left: 6px;
    padding-bottom: 12px;
    margin-bottom: -12px;
}

.cart-icon {
    width: 23px;
    height: 23px;
    color: var(--accent);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -9px;
    font-size: 10px;
    border-radius: 99px;
    padding: 2px 6px;
    background: #d4af37;
    color: #1f1a13;
    font-weight: 700;
}

.cart-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 2px);
    width: 300px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 14px;
    display: none;
    z-index: 1300;
}

.cart-dropdown::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
}

.cart-wrapper:hover .cart-dropdown {
    display: block;
}

.mini-cart-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 220px;
    overflow: auto;
    margin-bottom: 10px;
}

.mini-cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}

.mini-cart-img {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background-position: center;
    background-size: cover;
}

.mini-cart-title {
    font-size: 12px;
    color: var(--text-main);
}

.remove-cart-btn {
    width: 26px;
    height: 26px;
    border-radius: 10px;
    border: 1px solid rgba(196, 81, 81, 0.45);
    background: rgba(196, 81, 81, 0.05);
    color: var(--danger);
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.remove-cart-btn:hover {
    background: rgba(196, 81, 81, 0.14);
    transform: translateY(-1px);
    box-shadow: 0 8px 14px rgba(196, 81, 81, 0.22);
}

.cart-row {
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

.cart-row-main {
    display: flex;
    gap: 14px;
    align-items: center;
}

.cart-row-image {
    width: 86px;
    height: 86px;
    border-radius: 10px;
    background-position: center;
    background-size: cover;
}

.admin-shell {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 18px;
    align-items: start;
}

.admin-side-panel,
.admin-main-panel {
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 16px;
}

.customer-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 680px;
    overflow: auto;
}

.customer-item {
    text-align: left;
    border: 1px solid var(--border-soft);
    border-radius: 9px;
    background: var(--bg-soft);
    color: var(--text-main);
    padding: 12px;
    cursor: pointer;
}

.customer-item.active {
    border-color: rgba(200, 154, 107, 0.8);
    background: rgba(200, 154, 107, 0.15);
}

.customer-item strong {
    display: block;
    font-size: 13px;
}

.customer-item small {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
}

.customer-item span {
    display: block;
    margin-top: 5px;
    color: var(--accent);
    font-size: 11px;
}

.customer-detail-head {
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 12px;
    margin-bottom: 14px;
}

.customer-detail-head h3 {
    font-family: var(--font-serif);
    color: var(--accent);
}

.customer-detail-head p {
    color: var(--text-muted);
    font-size: 12px;
}

.subsection-title {
    font-family: var(--font-serif);
    letter-spacing: 1px;
    color: var(--accent);
    margin: 14px 0 10px;
}

.customer-orders-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-order-card {
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 14px;
}

.admin-order-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
}

.admin-order-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.order-message-title {
    margin-top: 12px;
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 0.8px;
    color: var(--accent);
    text-transform: uppercase;
}

.order-message-inline {
    border-top: 1px solid var(--border-soft);
    margin-top: 8px;
    padding-top: 10px;
}

.admin-orders-toggle {
    margin-bottom: 12px;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    background: var(--bg-soft);
    padding: 10px 12px;
}

.admin-orders-toggle summary {
    cursor: pointer;
    color: var(--accent);
    font-family: var(--font-serif);
    font-size: 14px;
}

.order-actions-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.order-edit-box {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-soft);
}

.admin-thread-card {
    background: var(--bg-elevated);
    border: 1px solid rgba(200, 154, 107, 0.25);
    border-radius: 12px;
    padding: 12px;
}

.thread-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: 10px;
}

.thread-head strong {
    display: block;
}

.thread-head p,
.thread-head span {
    color: var(--text-muted);
    font-size: 12px;
}

.thread-body {
    max-height: 230px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
    resize: vertical;
    min-height: 0;
    padding-right: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.thread-body::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.thread-body.expanded {
    max-height: min(70vh, 680px);
    min-height: 360px;
}

.thread-tools {
    display: flex;
    justify-content: flex-end;
    margin: 8px 0;
}

.mini-tool-btn {
    width: auto;
    padding: 6px 9px;
    font-size: 11px;
}

.thread-msg {
    max-width: min(88%, 620px);
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 12px;
    line-height: 1.36;
    white-space: pre-wrap;
    animation: messageIn 0.22s ease-out;
}

.thread-msg small {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    color: var(--text-muted);
}

.thread-msg-user {
    margin-left: auto;
    background: rgba(75, 168, 115, 0.2);
    border: 1px solid rgba(75, 168, 115, 0.5);
}

.thread-msg-admin {
    background: rgba(200, 154, 107, 0.2);
    border: 1px solid rgba(200, 154, 107, 0.45);
}

.thread-typing-indicator {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: min(88%, 420px);
    border: 1px solid rgba(200, 154, 107, 0.28);
    border-radius: 8px;
    background: rgba(200, 154, 107, 0.1);
    color: var(--text-muted);
    padding: 5px 8px;
    font-size: 11px;
}

.thread-typing-indicator i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.38;
    animation: typingPulse 1s infinite ease-in-out;
}

.thread-typing-indicator i:nth-of-type(2) {
    animation-delay: 0.16s;
}

.thread-typing-indicator i:nth-of-type(3) {
    animation-delay: 0.32s;
}

@keyframes typingPulse {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.32;
    }
    40% {
        transform: translateY(-3px);
        opacity: 1;
    }
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(6px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.user-order-group {
    display: grid;
    gap: 12px;
    padding: 16px 0 8px;
    border-top: 1px solid var(--border-soft);
}

.user-order-group:first-child {
    border-top: none;
    padding-top: 0;
}

.user-order-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.user-order-group-title h2 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(20px, 2vw, 26px);
    letter-spacing: 1px;
    color: var(--accent);
}

.user-order-group-title span {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 30px;
    border: 1px solid rgba(200, 154, 107, 0.38);
    border-radius: 8px;
    color: var(--accent);
    background: rgba(200, 154, 107, 0.08);
    font-weight: 700;
}

.user-order-group-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thread-compose {
    display: flex;
    gap: 6px;
    margin-top: 7px;
}

.thread-compose input {
    flex: 1;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    background: var(--bg-soft);
    color: var(--text-main);
    padding: 8px 10px;
    min-height: 36px;
}

.thread-compose input:focus {
    outline: none;
    border-color: var(--accent);
}

.chat-action-btn {
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #1b1b1b;
    font-weight: 700;
    padding: 8px 11px;
    min-height: 36px;
    cursor: pointer;
    box-shadow: 0 7px 16px rgba(44, 30, 15, 0.14);
    transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
}

.thread-media-wrap {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.thread-media-link {
    display: inline-flex;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    overflow: hidden;
    max-width: 90px;
    padding: 0;
    background: var(--bg-soft);
    color: inherit;
    cursor: pointer;
}

.thread-media-link img {
    width: 90px;
    height: 70px;
    object-fit: cover;
}

.file-link {
    color: var(--accent);
    font-size: 11px;
    padding: 7px 8px;
}

.profile-card {
    max-width: 680px;
    margin: 0 auto;
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 2px);
    left: 50%;
    transform: translate(-50%, 8px) scale(0.98);
    min-width: 268px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 10px;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1300;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s step-end;
}

.profile-dropdown-menu a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    text-align: left;
    font-size: 12px;
    text-transform: none;
    letter-spacing: 0.3px;
    padding: 9px 10px;
    border-radius: 7px;
    border-bottom: none;
}

.profile-menu-divider {
    height: 1px;
    background: var(--border-soft);
    margin: 8px 2px;
}

.profile-logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(196, 81, 81, 0.45);
    border-radius: 8px;
    background: rgba(196, 81, 81, 0.08);
    color: var(--danger);
    padding: 9px 10px;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
}

.logout-door-icon {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    color: var(--danger);
}

.logout-door-icon svg {
    width: 18px;
    height: 18px;
}

.profile-dropdown-menu a.active {
    background: rgba(200, 154, 107, 0.16);
    color: var(--accent);
}

.menu-marker {
    color: var(--accent);
    display: inline-grid;
    place-items: center;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(200, 154, 107, 0.36);
    border-radius: 7px;
    background: rgba(200, 154, 107, 0.08);
}

.menu-marker svg {
    width: 15px;
    height: 15px;
}

body:not(.theme-dark) .nav-brand-item a,
body:not(.theme-dark) .logo a {
    color: #d4af37;
}

body:not(.theme-dark) .nav-links a,
body:not(.theme-dark) .profile-menu-toggle {
    color: #1a1a1a;
}

body:not(.theme-dark) .nav-links a.active,
body:not(.theme-dark) .profile-menu-toggle.active {
    color: #1a1a1a;
    border-color: rgba(26, 26, 26, 0.38);
}

body:not(.theme-dark) .main-navbar .nav-links > li:not(.nav-brand-item):not(#headerCartWrapper) > a,
body:not(.theme-dark) .main-navbar .nav-links > li:not(.nav-brand-item):not(#headerCartWrapper) > .profile-menu-toggle {
    background: rgba(255, 255, 255, 0.74);
    border-color: rgba(26, 26, 26, 0.22);
}

.profile-avatar {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    margin: 0 auto 16px;
    background: linear-gradient(145deg, var(--accent), #a6764f);
    color: #161616;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
}

.profile-details-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-soft);
}

.profile-label {
    color: var(--text-muted);
}

.profile-value {
    font-weight: 600;
}

.authority-panel {
    display: none;
    margin-top: 22px;
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 14px;
}

.authority-panel h3 {
    color: var(--accent);
    margin-bottom: 6px;
}

.panel-desc {
    color: var(--text-muted);
    font-size: 12px;
    margin-bottom: 10px;
}

.authority-form {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    margin-bottom: 12px;
}

.authority-form input {
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--text-main);
    padding: 10px;
}

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

.authority-grid h4 {
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--accent);
}

.admin-permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    margin: 10px 0;
    width: 100%;
}

.admin-permission-grid label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    font-size: 12px;
}

.admin-permission-grid .permission-edit {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border-soft);
    padding-top: 9px;
    color: var(--text-main);
}

.accounting-toolbar {
    display: flex;
    gap: 10px;
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.accounting-toolbar label {
    display: grid;
    gap: 5px;
    color: var(--text-muted);
    font-size: 12px;
}

.accounting-toolbar input {
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--text-main);
    padding: 9px;
}

.accounting-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.accounting-summary-grid div {
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    background: var(--bg-soft);
    padding: 12px;
}

.accounting-summary-grid span,
.accounting-table small {
    color: var(--text-muted);
    font-size: 12px;
}

.accounting-summary-grid strong {
    display: block;
    margin-top: 5px;
    color: var(--accent);
    font-family: var(--font-serif);
    font-size: 20px;
}

.accounting-table-wrap {
    overflow: auto;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
}

.accounting-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

.accounting-table th,
.accounting-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border-soft);
    text-align: left;
    vertical-align: top;
    font-size: 12px;
}

.accounting-table th {
    color: var(--accent);
    background: rgba(200, 154, 107, 0.08);
}

.accounting-edit-btn {
    white-space: nowrap;
}

.recent-users-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recent-user-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    padding: 10px;
    background: var(--bg-soft);
}

.recent-user-card strong {
    display: block;
    font-size: 12px;
}

.recent-user-card small {
    color: var(--text-muted);
    font-size: 11px;
}

.badge-fixed {
    font-size: 10px;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 99px;
    padding: 4px 8px;
}

.recent-user-item {
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--text-main);
    text-align: left;
    padding: 9px 10px;
    cursor: pointer;
}

.recent-user-item span {
    display: block;
    font-size: 12px;
}

.recent-user-item small {
    color: var(--text-muted);
    font-size: 11px;
}

.empty-note {
    color: var(--text-muted);
    font-size: 13px;
}

.cart-toast {
    position: fixed;
    top: 88px;
    right: 18px;
    background: var(--bg-elevated);
    border: 1px solid rgba(200, 154, 107, 0.6);
    border-radius: 10px;
    padding: 10px 12px;
    transform: translateX(130%);
    opacity: 0;
    transition: 0.25s ease;
    z-index: 999;
}

.cart-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.error-banner {
    position: fixed;
    right: 18px;
    top: 92px;
    width: min(380px, calc(100vw - 24px));
    background: #7c1f1f;
    color: #fff;
    border: 1px solid rgba(255, 170, 170, 0.45);
    border-radius: 10px;
    padding: 12px 14px;
    transform: translateX(120%);
    opacity: 0;
    transition: 0.28s ease;
    z-index: 999;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.4);
}

.error-banner strong {
    display: block;
    margin-bottom: 4px;
}

.error-banner p {
    font-size: 13px;
    color: #ffe8e8;
}

.error-banner.show {
    transform: translateX(0);
    opacity: 1;
}

.system-notice {
    position: fixed;
    right: 18px;
    top: 92px;
    width: min(380px, calc(100vw - 24px));
    background: var(--bg-elevated);
    color: var(--text-main);
    border: 1px solid rgba(200, 154, 107, 0.55);
    border-radius: 12px;
    padding: 12px 14px;
    transform: translateX(120%);
    opacity: 0;
    transition: 0.28s ease;
    z-index: 2600;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.system-notice.show {
    transform: translateX(0);
    opacity: 1;
}

.system-notice strong {
    display: block;
    margin-bottom: 4px;
}

.system-notice p {
    color: var(--text-main);
    font-size: 13px;
}

.system-notice.is-error {
    border-color: rgba(196, 81, 81, 0.62);
}

.system-notice.is-warning {
    border-color: rgba(220, 174, 98, 0.62);
}

.dialog-open {
    overflow: hidden;
}

.system-dialog,
.login-widget,
.media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2700;
    display: grid;
    place-items: center;
    padding: 18px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0.24s step-end;
}

.system-dialog.show,
.login-widget.show,
.media-lightbox.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.24s ease, visibility 0s step-start;
}

.system-dialog-backdrop,
.login-widget-backdrop,
.media-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.68);
    backdrop-filter: blur(8px);
}

.system-dialog-card,
.login-widget-card {
    position: relative;
    width: min(480px, 100%);
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

.system-dialog-card h3,
.login-widget-card h2 {
    font-family: var(--font-serif);
    color: var(--accent);
    margin-bottom: 8px;
}

.system-dialog-card p,
.login-widget-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 14px;
}

.system-dialog-card textarea {
    width: 100%;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    background: var(--bg-soft);
    color: var(--text-main);
    padding: 12px;
    resize: vertical;
    font: inherit;
}

.system-dialog-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.system-dialog-close,
.media-lightbox-close {
    position: absolute;
    right: 14px;
    top: 12px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-soft);
    background: var(--bg-soft);
    color: var(--text-main);
    cursor: pointer;
    font-size: 23px;
    line-height: 1;
}

.auth-switch-link {
    display: inline-flex;
    margin-top: 14px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}

.single-auth-wrapper {
    align-items: center;
}

.auth-panel {
    width: min(460px, 100%);
}

.wide-auth-panel {
    width: min(700px, 100%);
}

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

.welcome-modal-open {
    overflow: hidden;
}

.brand-welcome-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: grid;
    place-items: center;
    padding: 22px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s step-end;
}

.brand-welcome-modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.28s ease, visibility 0s step-start;
}

.brand-welcome-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(720px 420px at 20% 12%, rgba(200, 154, 107, 0.2), transparent 62%),
        radial-gradient(660px 380px at 86% 92%, rgba(93, 57, 29, 0.24), transparent 64%),
        rgba(13, 10, 8, 0.74);
    backdrop-filter: blur(9px);
}

.brand-welcome-card {
    position: relative;
    width: min(1040px, 100%);
    max-height: min(86vh, 820px);
    overflow: auto;
    border: 1px solid rgba(220, 180, 132, 0.34);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(252, 250, 246, 0.96), rgba(239, 229, 213, 0.94)),
        var(--bg-elevated);
    color: #2b241d;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.48);
    transform: translateY(22px) scale(0.98);
    transition: transform 0.3s ease;
}

.brand-welcome-modal.show .brand-welcome-card {
    transform: translateY(0) scale(1);
}

.brand-welcome-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(92, 58, 33, 0.09) 1px, transparent 1px),
        linear-gradient(0deg, rgba(92, 58, 33, 0.055) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 55%);
}

.brand-welcome-close {
    position: sticky;
    top: 16px;
    left: calc(100% - 62px);
    z-index: 3;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin: 16px 16px -58px auto;
    border: 1px solid rgba(43, 36, 29, 0.18);
    border-radius: 50%;
    background: rgba(252, 250, 246, 0.82);
    color: #2b241d;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    box-shadow: 0 12px 24px rgba(44, 30, 15, 0.14);
}

.brand-welcome-hero {
    position: relative;
    padding: clamp(46px, 6vw, 72px) clamp(22px, 6vw, 76px) clamp(28px, 4vw, 42px);
    text-align: center;
    background:
        linear-gradient(to bottom, rgba(30, 22, 15, 0.58), rgba(30, 22, 15, 0.28)),
        url("images/anasayfa.png");
    background-size: cover;
    background-position: center 58%;
    color: #f8efe3;
}

.brand-welcome-hero .classic-subtitle {
    color: #e5bd85;
    margin-bottom: 14px;
}

.brand-welcome-hero h2 {
    font-family: var(--font-serif);
    font-size: clamp(32px, 5vw, 54px);
    letter-spacing: 3px;
    margin-bottom: 16px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.brand-welcome-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: #f2e8da;
    font-size: 15px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.52);
}

.brand-welcome-content {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: clamp(18px, 3.4vw, 34px);
}

.brand-welcome-panel {
    border: 1px solid rgba(98, 77, 55, 0.16);
    border-radius: 18px;
    background: rgba(255, 252, 246, 0.76);
    padding: clamp(16px, 2.4vw, 24px);
    box-shadow: 0 12px 26px rgba(44, 30, 15, 0.08);
}

.brand-welcome-panel.is-featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(200, 154, 107, 0.22), rgba(255, 252, 246, 0.82));
}

.brand-welcome-panel h3 {
    color: #8d6034;
    font-family: var(--font-serif);
    font-size: 18px;
    letter-spacing: 1.2px;
    margin-bottom: 9px;
}

.brand-welcome-panel p {
    color: #584836;
    font-size: 14px;
}

.brand-welcome-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px clamp(18px, 3.4vw, 34px);
    border-top: 1px solid rgba(98, 77, 55, 0.14);
    background: rgba(252, 250, 246, 0.88);
    backdrop-filter: blur(10px);
}

.brand-welcome-actions .submit-btn {
    width: auto;
}

.product-detail-shell {
    min-height: 76vh;
    padding: 44px 20px 64px;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: clamp(20px, 4vw, 44px);
    align-items: start;
}

.product-detail-media {
    position: relative;
    display: grid;
    place-items: center;
    min-height: clamp(320px, 56vw, 640px);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    background: var(--bg-soft);
    overflow: hidden;
}

.product-detail-media img {
    width: 100%;
    height: 100%;
    max-height: 680px;
    object-fit: contain;
    display: block;
}

.product-magnifier-preview {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: min(240px, 38%);
    aspect-ratio: 1;
    border-radius: 12px;
    border: 1px solid rgba(200, 154, 107, 0.58);
    background-repeat: no-repeat;
    background-size: 230%;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: 0.2s ease;
}

.product-magnifier-preview.show {
    opacity: 1;
    transform: translateY(0);
}

.zoom-tool-btn {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(200, 154, 107, 0.62);
    border-radius: 999px;
    background: var(--bg-elevated);
    color: var(--accent);
    padding: 9px 13px;
    cursor: pointer;
    font-weight: 700;
}

.product-detail-info {
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: clamp(20px, 3vw, 30px);
}

.product-detail-info h1 {
    font-family: var(--font-serif);
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    margin-bottom: 18px;
}

.product-back-link {
    margin-bottom: 18px;
}

.product-detail-facts {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.product-detail-facts p {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 10px;
}

.product-detail-facts strong {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.product-detail-facts span {
    color: var(--accent);
    text-align: right;
    font-weight: 700;
}

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

.product-detail-empty {
    text-align: center;
    padding: 80px 20px;
}

.media-lightbox-card {
    position: relative;
    width: min(1040px, 100%);
    max-height: 88vh;
    display: grid;
    gap: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
}

.media-lightbox-card img {
    max-width: 100%;
    max-height: 74vh;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 10px;
}

.media-lightbox-card figcaption {
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}

.file-preview-list {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.file-preview-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 34px;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    background: var(--bg-soft);
    padding: 8px;
}

.file-preview-thumb,
.file-preview-file {
    width: 54px;
    height: 54px;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: var(--bg-elevated);
    color: var(--accent);
    overflow: hidden;
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 10px;
    text-align: center;
}

.file-preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-meta {
    min-width: 0;
}

.file-preview-meta span,
.file-preview-meta small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-preview-meta small {
    color: var(--text-muted);
    font-size: 11px;
}

.file-remove-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(196, 81, 81, 0.48);
    background: rgba(196, 81, 81, 0.08);
    color: var(--danger);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.login-gated-form {
    position: relative;
}

.login-gated-form input,
.login-gated-form textarea {
    cursor: pointer;
}

.checkout-shell {
    padding: 38px 20px 58px;
    min-height: 78vh;
}

.checkout-title {
    margin-bottom: 20px;
}

.checkout-title h1 {
    font-size: 36px;
}

.checkout-title p {
    color: var(--text-muted);
    margin-top: 8px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.85fr);
    gap: 20px;
    align-items: start;
}

.checkout-main {
    display: grid;
    gap: 14px;
}

.checkout-card {
    max-width: 100%;
}

.checkout-card h3,
.checkout-summary h3 {
    font-family: var(--font-serif);
    color: var(--accent);
    margin-bottom: 12px;
}

.promo-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.promo-entry input {
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    background: var(--bg-elevated);
    color: var(--text-main);
    padding: 12px;
    font: inherit;
}

.promo-card .empty-note {
    margin-top: 8px;
}

.checkout-complete-btn {
    margin-top: 2px;
}

.checkout-summary {
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 18px;
    position: sticky;
    top: 110px;
}

.checkout-items-list {
    display: grid;
    gap: 10px;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.checkout-item-row {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.checkout-item-row img {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg-soft);
}

.checkout-item-row strong,
.checkout-item-row small {
    display: block;
}

.checkout-item-row strong {
    font-size: 13px;
}

.checkout-item-row small {
    color: var(--text-muted);
    font-size: 11px;
}

.checkout-item-row span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 6px;
}

.summary-ok {
    color: var(--ok);
}

.summary-total {
    color: var(--accent);
    font-family: var(--font-serif);
    font-size: 17px;
    border-top: 1px solid var(--border-soft);
    padding-top: 8px;
}

.summary-back-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--text-muted);
    text-decoration: underline;
    font-size: 12px;
}

.checkout-address-list {
    display: grid;
    gap: 10px;
}

.checkout-address-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    cursor: pointer;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: var(--bg-soft);
    padding: 12px;
}

.checkout-address-card.selected {
    border-color: rgba(200, 154, 107, 0.75);
    background: rgba(200, 154, 107, 0.12);
}

.checkout-address-card strong,
.checkout-address-card small,
.checkout-address-card em {
    display: block;
}

.checkout-address-card strong {
    color: var(--accent);
}

.checkout-address-card small,
.checkout-address-card em {
    color: var(--text-muted);
    font-size: 12px;
    font-style: normal;
}

.checkout-billing-preview {
    margin-top: 10px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: var(--bg-soft);
    padding: 12px;
}

.checkout-billing-preview strong {
    color: var(--accent);
}

.checkout-billing-preview p {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 4px;
}

.checkout-address-add {
    margin-top: 10px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: var(--bg-soft);
    padding: 12px;
}

.checkout-address-add summary {
    cursor: pointer;
    color: var(--accent);
    font-weight: 700;
}

.checkout-address-add form {
    margin-top: 12px;
}

.checkout-login-required {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    background: var(--bg-soft);
    padding: 12px;
}

.checkout-login-required p {
    color: var(--text-muted);
}

.site-footer {
    margin-top: 48px;
    border-top: 1px solid var(--border-soft);
    background: var(--footer-bg);
    padding: 30px 7% 90px;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.footer-inner h4 {
    color: var(--accent);
    margin-bottom: 8px;
    font-family: var(--font-serif);
}

.footer-inner p {
    color: var(--text-muted);
    font-size: 13px;
}

.quick-contact-dock {
    position: fixed;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 60;
}

.quick-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(200, 154, 107, 0.6);
    background: var(--bg-elevated);
    color: var(--accent);
    font-size: 12px;
    letter-spacing: 0.4px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

.quick-contact-btn svg {
    width: 18px;
    height: 18px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    border: 1px solid transparent;
}

.order-status-details {
    margin: 10px 0 12px;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.order-status-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
    list-style: none;
    color: var(--text-main);
    font-weight: 700;
}

.order-status-details summary::-webkit-details-marker {
    display: none;
}

.order-status-details summary::after {
    content: "+";
    color: var(--accent);
    font-weight: 800;
}

.order-status-details[open] summary::after {
    content: "-";
}

.order-status-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
    border-top: 1px solid var(--border-soft);
}

.order-status-step {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-height: 76px;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 10px;
    color: var(--text-muted);
    background: var(--bg-soft);
}

.order-status-step.is-done,
.order-status-step.is-current {
    border-color: rgba(200, 154, 107, 0.68);
    color: var(--text-main);
    background: rgba(200, 154, 107, 0.1);
}

.order-status-symbol {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(200, 154, 107, 0.42);
    color: var(--accent);
    font-weight: 800;
}

.order-status-step strong,
.order-status-step small {
    display: block;
}

.order-status-step small {
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.45;
    color: var(--text-muted);
}

.order-rejected-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-top: 1px solid rgba(196, 81, 81, 0.32);
    background: rgba(196, 81, 81, 0.08);
}

.order-rejected-panel strong {
    color: var(--danger);
}

.order-rejected-panel p {
    color: var(--text-muted);
    margin-top: 4px;
    font-size: 12px;
}

.order-contact-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.order-contact-actions a {
    border: 1px solid rgba(200, 154, 107, 0.55);
    border-radius: 8px;
    padding: 8px 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

.status-active {
    color: var(--accent);
    border-color: rgba(200, 154, 107, 0.6);
}

.status-completed {
    color: #95f0b7;
    border-color: rgba(149, 240, 183, 0.55);
}

.status-cancelled {
    color: #ffb3b3;
    border-color: rgba(255, 179, 179, 0.5);
}

.inline-check {
    font-size: 12px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-select {
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--text-main);
    padding: 10px;
    min-width: 220px;
}

.profile-theme-switch {
    margin-top: 8px;
    border-top: 1px solid var(--border-soft);
    padding-top: 9px;
}

.theme-switch-title {
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 0.4px;
    margin: 0 0 7px;
}

.theme-switch-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.theme-choice-btn {
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    padding: 7px 8px;
    font-size: 11px;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.theme-choice-btn.active {
    color: var(--accent);
    border-color: rgba(200, 154, 107, 0.72);
    background: rgba(200, 154, 107, 0.12);
}

.admin-session-tools {
    position: fixed;
    top: 78px;
    left: 10px;
    z-index: 3600;
    display: grid;
    gap: 8px;
}

.adasu-secret-trigger {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 6px;
    background: #ff00bd;
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(255, 0, 189, 0.25);
}

.admin-session-tools.is-stealth-secret {
    top: 86px;
    left: 8px;
}

.admin-session-tools.is-stealth-secret .adasu-secret-trigger {
    opacity: 0;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    transition: opacity 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.admin-session-tools.is-stealth-secret:hover .adasu-secret-trigger,
.admin-session-tools.is-stealth-secret .adasu-secret-trigger:focus-visible {
    opacity: 1;
    border-color: rgba(255, 0, 200, 0.42);
    background: rgba(255, 0, 200, 0.1);
    color: rgba(255, 0, 200, 0.8);
    box-shadow: 0 0 0 7px rgba(255, 0, 200, 0.08);
}

.super-switch-toggle,
.admin-return-btn {
    border: 1px solid rgba(200, 154, 107, 0.72);
    border-radius: 8px;
    background: rgba(24, 20, 16, 0.9);
    color: var(--accent);
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.super-switch-panel {
    display: none;
    width: min(260px, calc(100vw - 22px));
    max-height: 330px;
    overflow: auto;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    background: var(--bg-elevated);
    padding: 8px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.admin-session-tools.open .super-switch-panel {
    display: grid;
    gap: 7px;
}

.super-switch-admin {
    display: grid;
    gap: 2px;
    width: 100%;
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    background: var(--bg-soft);
    color: var(--text-main);
    text-align: left;
    padding: 9px;
    cursor: pointer;
}

.super-switch-admin:hover {
    border-color: rgba(200, 154, 107, 0.75);
    background: rgba(200, 154, 107, 0.12);
}

.super-switch-admin span {
    font-size: 12px;
    font-weight: 700;
}

.super-switch-admin small,
.super-switch-panel p {
    color: var(--text-muted);
    font-size: 11px;
}

.adasu-love-screen {
    position: fixed;
    inset: 0;
    z-index: 6000;
    display: none;
    place-items: start center;
    min-height: 100dvh;
    background: #ff00c8;
    color: #ffffff;
    text-align: center;
    padding: 72px 28px 34px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.adasu-love-screen.show {
    display: grid;
}

.adasu-love-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    place-items: center;
    transition: transform 0.32s ease;
}

.adasu-love-heart {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: clamp(88px, 22vw, 230px);
    line-height: 0.9;
    filter: drop-shadow(0 18px 28px rgba(142, 0, 96, 0.35));
    transition: transform 0.22s ease, filter 0.22s ease;
}

.adasu-love-heart:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 22px 34px rgba(142, 0, 96, 0.45));
}

.adasu-heart-hint {
    font-size: clamp(18px, 4vw, 34px);
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 8px 18px rgba(142, 0, 96, 0.35);
    margin: 0;
}

.adasu-love-screen h1 {
    max-width: 1000px;
    font-size: clamp(44px, 12vw, 150px);
    line-height: 0.94;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 12px 28px rgba(142, 0, 96, 0.32);
}

.adasu-love-close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.adasu-love-memory {
    position: relative;
    z-index: 3;
    display: none;
    width: min(94vw, 820px);
    margin: 18px auto 0;
    place-items: center;
    gap: 14px;
}

.adasu-love-screen.memory-open {
    align-content: start;
}

.adasu-love-screen.memory-open .adasu-love-content {
    display: none;
    pointer-events: none;
}

.adasu-love-screen.memory-open .adasu-love-memory {
    display: grid;
}

.adasu-love-memory img {
    width: min(88vw, 560px);
    max-height: 68vh;
    object-fit: contain;
    border-radius: 18px;
    border: 3px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 30px 90px rgba(88, 0, 58, 0.58);
    background: rgba(255, 255, 255, 0.16);
}

.adasu-love-audio {
    width: min(88vw, 520px);
    accent-color: #ff00c8;
}

.admin-tabs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.admin-tab-btn {
    border: 1px solid var(--border-soft);
    background: var(--bg-soft);
    color: var(--text-main);
    border-radius: 10px;
    padding: 16px 14px;
    min-height: 74px;
    width: 100%;
    cursor: pointer;
    text-align: left;
    font-weight: 600;
}

.admin-tab-btn.active,
.admin-tab-btn:hover {
    border-color: rgba(200, 154, 107, 0.7);
    background: rgba(200, 154, 107, 0.13);
    color: var(--accent);
}

.admin-screen-panel {
    margin-bottom: 22px;
}

.status-jump-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.status-jump-card {
    width: 100%;
    border: 1px solid rgba(200, 154, 107, 0.42);
    border-radius: 12px;
    background: rgba(200, 154, 107, 0.09);
    color: var(--text-main);
    padding: 16px 14px;
    text-align: left;
    cursor: pointer;
}

.status-jump-card strong {
    display: block;
    font-size: 28px;
    line-height: 1;
    color: var(--accent);
}

.status-jump-card span {
    display: block;
    margin-top: 8px;
    font-weight: 600;
}

.tab-highlight {
    font-size: 15px;
}

.order-progress-track {
    margin: 8px 0 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.order-progress-item {
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11px;
    color: var(--text-muted);
}

.order-progress-item.is-current {
    border-color: rgba(200, 154, 107, 0.68);
    color: var(--accent);
    background: rgba(200, 154, 107, 0.12);
}

.profile-top-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.profile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-decoration: none;
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 8px 12px;
    border-bottom: 1px solid transparent;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    cursor: pointer;
    min-width: clamp(48px, 9vw, 132px);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.profile-nav-icon {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(200, 154, 107, 0.48);
    border-radius: 8px;
    color: var(--accent);
    background: rgba(200, 154, 107, 0.08);
}

.profile-nav-icon svg {
    width: 15px;
    height: 15px;
}

.profile-menu-toggle.active {
    color: var(--accent);
    border-color: var(--accent);
}

.profile-menu-item {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: -12px;
}

.profile-menu-item.open .profile-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s step-start;
}

.profile-menu-item:hover .profile-dropdown-menu,
.profile-menu-item:focus-within .profile-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s step-start;
}

.footer-contact-links {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(200, 154, 107, 0.55);
    border-radius: 999px;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.02);
    padding: 6px 12px;
    font-size: 12px;
}

@media (hover: hover) and (pointer: fine) {
    .nav-links a:hover,
    .profile-menu-toggle:hover {
        color: var(--accent);
        border-color: var(--accent);
        background: rgba(200, 154, 107, 0.08);
        transform: none;
    }

    .main-navbar .nav-links > li:not(.nav-brand-item):not(#headerCartWrapper) > a:hover::before,
    .main-navbar .nav-links > li:not(.nav-brand-item):not(#headerCartWrapper) > .profile-menu-toggle:hover::before {
        opacity: 1;
        clip-path: circle(145% at var(--hover-x, 18%) var(--hover-y, 50%));
    }

    body:not(.theme-dark) .main-navbar .nav-links > li:not(.nav-brand-item):not(#headerCartWrapper) > a:hover,
    body:not(.theme-dark) .main-navbar .nav-links > li:not(.nav-brand-item):not(#headerCartWrapper) > .profile-menu-toggle:hover {
        color: #21180f;
        border-color: rgba(184, 137, 85, 0.88);
        background: rgba(228, 190, 111, 0.18);
        box-shadow:
            0 10px 24px rgba(184, 137, 85, 0.18),
            inset 0 1px 0 rgba(255, 255, 255, 0.28);
    }

    body:not(.theme-dark) .nav-brand-item a:hover,
    body:not(.theme-dark) .logo a:hover {
        color: #000000;
    }

    .submit-btn:hover {
        filter: brightness(1.05);
        transform: translateY(-2px);
        box-shadow: 0 14px 26px rgba(44, 30, 15, 0.28);
    }

    .small-outline-btn:hover,
    .small-danger-btn:hover,
    .ask-question-btn:hover,
    .chat-action-btn:hover,
    .brand-file-input::file-selector-button:hover,
    .footer-contact-btn:hover,
    .status-jump-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 22px rgba(0, 0, 0, 0.2);
    }

    .ask-question-btn:hover {
        background: linear-gradient(135deg, rgba(200, 154, 107, 0.2), rgba(200, 154, 107, 0.1));
        border-color: rgba(200, 154, 107, 0.82);
    }

    .profile-dropdown-menu a:hover {
        background: rgba(200, 154, 107, 0.16);
        color: var(--accent);
    }

    .theme-choice-btn:hover {
        transform: translateY(-1px);
        border-color: rgba(200, 154, 107, 0.68);
        color: var(--accent);
    }
}

.submit-btn:active,
.small-outline-btn:active,
.small-danger-btn:active,
.ask-question-btn:active,
.chat-action-btn:active,
.status-jump-card:active,
.footer-contact-btn:active,
.brand-file-input::file-selector-button:active {
    transform: translateY(1px) scale(0.985);
}

@media (max-width: 980px) {
    .hero-story-shell {
        padding-left: clamp(14px, 3vw, 28px);
        padding-right: clamp(14px, 3vw, 28px);
    }

    .hero-story-copy {
        gap: 16px 24px;
    }

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

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

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

    .checkout-summary {
        position: static;
    }
}

@media (max-width: 760px) {
    .main-navbar {
        display: flex;
        flex-wrap: wrap;
        padding: 12px 12px;
    }

    .logo {
        margin-right: 0;
        order: 1;
    }

    .nav-links {
        order: 3;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 8px 0 0;
        width: 100%;
        flex: 0 0 100%;
        min-width: 0;
        margin: 0;
        overflow: visible;
    }

    .nav-links li {
        flex: 1 1 min(118px, 45%);
    }

    .nav-brand-item {
        position: static;
        transform: none;
        grid-column: auto;
        justify-self: auto;
    }

    #headerCartWrapper {
        order: 2;
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        margin-left: auto;
    }

    .main-navbar .nav-links > li:not(.nav-brand-item):not(#headerCartWrapper) > a,
    .main-navbar .nav-links > li:not(.nav-brand-item):not(#headerCartWrapper) > .profile-menu-toggle {
        padding: 9px 10px;
        font-size: 11px;
        letter-spacing: 0.3px;
        white-space: nowrap;
    }

    .logo {
        font-size: 20px;
    }

    .profile-label-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .profile-menu-toggle {
        padding: 7px;
        min-width: 42px;
        min-height: 42px;
        border-radius: 8px;
    }

    .profile-nav-icon {
        width: 28px;
        height: 28px;
    }

    .profile-nav-icon svg {
        width: 17px;
        height: 17px;
    }

    .profile-dropdown-menu {
        left: auto;
        right: 0;
        transform: translateY(8px) scale(0.98);
        min-width: min(280px, calc(100vw - 24px));
    }

    .profile-menu-item.open .profile-dropdown-menu,
    .profile-menu-item:hover .profile-dropdown-menu,
    .profile-menu-item:focus-within .profile-dropdown-menu {
        transform: translateY(0) scale(1);
    }

    .home-banner .elegant-container {
        max-width: calc(100% - 12px);
        padding: 18px 14px 22px;
    }

    .hero-story-shell {
        padding: 14px 4px 0;
    }

    .hero-story-copy {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hero-story-copy p,
    .hero-story-wide {
        text-align: left !important;
        font-size: 14px;
        line-height: 1.84;
    }

    .hero-story-ornament {
        display: none;
    }

    .hero-signature {
        margin-top: 22px;
        padding-top: 14px;
        font-size: 14px;
    }

    .user-order-group-title {
        align-items: flex-start;
    }

    .brand-gap-left,
    .brand-gap-right {
        margin: 0;
    }

    .thread-compose,
    .authority-form {
        grid-template-columns: 1fr;
        display: grid;
    }

    .thread-compose {
        display: flex;
        flex-direction: column;
    }

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

    .order-status-flow,
    .order-rejected-panel {
        grid-template-columns: 1fr;
    }

    .order-contact-actions {
        justify-content: stretch;
    }

    .order-contact-actions a {
        flex: 1 1 120px;
        text-align: center;
    }

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

    .brand-welcome-modal {
        padding: 12px;
    }

    .brand-welcome-card {
        max-height: 88vh;
        border-radius: 18px;
    }

    .brand-welcome-content {
        grid-template-columns: 1fr;
    }

    .brand-welcome-panel.is-featured {
        grid-column: auto;
    }

    .brand-welcome-actions {
        flex-direction: column-reverse;
    }

    .brand-welcome-actions .small-outline-btn,
    .brand-welcome-actions .submit-btn {
        width: 100%;
    }

    .responsive-form-grid,
    .promo-entry,
    .checkout-item-row {
        grid-template-columns: 1fr;
    }

    .checkout-login-required,
    .product-detail-actions,
    .system-dialog-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .checkout-login-required {
        display: grid;
    }

    .product-detail-shell,
    .checkout-shell,
    .collection-grid-section,
    .order-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .product-magnifier-preview {
        display: none;
    }

    .file-preview-item {
        grid-template-columns: 46px minmax(0, 1fr) 34px;
    }
}
