:root {
    --primary: #e11d48;
    --primary-dark: #9f1239;
    --primary-soft: #fff1f5;
    --white: #ffffff;
    --black: #1f2937;
    --muted: #64748b;
    --light: #f8fafc;
    --border: #e2e8f0;
    --success: #1ea76a;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
    --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.06);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top right, rgba(225, 29, 72, 0.06), transparent 30rem), var(--light);
    color: var(--black);
    line-height: 1.5;
}

.site-footer {
    margin-top: 64px;
    padding: 48px 16px 20px;
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-top: 4px solid var(--primary);
}

.site-footer-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.8fr) repeat(2, minmax(160px, 1fr));
    gap: 40px;
    padding-bottom: 36px;
}

.site-footer .brand {
    width: fit-content;
    color: var(--white);
}

.site-footer-brand p {
    max-width: 360px;
    margin: 18px 0 0;
    color: #94a3b8;
    font-size: 0.95rem;
}

.lang-switch {
    display: inline-flex;
    gap: 6px;
    margin-top: 16px;
}

.lang-switch-link {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lang-switch-link:hover {
    color: var(--white);
    border-color: var(--primary);
}

.lang-switch-link.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.site-footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.site-footer-column h2 {
    margin: 0 0 8px;
    color: var(--white);
    font-size: 1rem;
}

.site-footer-column a {
    color: #94a3b8;
    font-size: 0.92rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer-column a:hover {
    color: var(--white);
    transform: translateX(3px);
}

.site-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    color: #94a3b8;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 0.85rem;
}

.site-footer-bottom strong {
    color: var(--white);
}

.site-footer p {
    margin: 0;
}

.messaging-layout {
    align-items: start;
}

.conversation-heading,
.message-compose-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.conversation-heading h2 {
    margin: 0;
}

.conversation-heading > span {
    color: var(--muted);
    font-size: 0.85rem;
}

.message-search {
    display: flex;
    gap: 8px;
    margin: 18px 0;
}

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

.conversation-item {
    position: relative;
    display: block;
    margin: 8px 0;
    padding: 14px 42px 14px 14px;
    color: var(--black);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.conversation-item:hover,
.conversation-item.active {
    background: var(--primary-soft);
    border-color: rgba(225, 29, 72, 0.35);
}

.conversation-item strong,
.conversation-item span,
.conversation-item small {
    display: block;
}

.conversation-item span {
    margin-top: 3px;
    color: var(--muted);
}

.conversation-item small {
    overflow: hidden;
    margin-top: 6px;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.message-count {
    display: inline-flex;
    min-width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    color: var(--white);
    background: var(--primary);
    border-radius: 999px;
    font-size: 0.75rem;
    line-height: 1;
}

.conversation-item .message-count {
    position: absolute;
    top: 14px;
    right: 14px;
}

.message-thread {
    min-height: 360px;
}

.message-bubble {
    max-width: 85%;
    margin: 14px 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f1f5f9;
}

.message-bubble.message-own {
    margin-left: auto;
    color: var(--white);
    background: var(--primary);
}

.message-bubble > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.85rem;
}

.message-bubble small {
    opacity: 0.75;
}

.message-bubble p {
    margin: 8px 0 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

.message-compose {
    margin-top: 22px;
}

.message-compose textarea {
    width: 100%;
    resize: vertical;
}

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

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

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

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(225, 29, 72, 0.3);
    outline-offset: 2px;
}

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

.topbar {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(14px);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    font-size: 1.1rem;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #fb7185, var(--primary-dark));
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(225, 29, 72, 0.25);
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.nav a {
    color: var(--muted);
    font-weight: 600;
    transition: color 0.2s ease;
}

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

.nav .nav-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 0;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--white);
}

.nav .nav-lang-switch .lang-switch-link {
    padding: 4px 8px;
    color: var(--muted);
}

.nav .nav-lang-switch .lang-switch-link.active,
.nav .nav-lang-switch .lang-switch-link:hover {
    color: var(--white);
}

.actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #f43f5e, var(--primary-dark));
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(225, 29, 72, 0.24);
}

.btn-light {
    background: var(--white);
    border-color: var(--border);
    color: var(--black);
}

.btn-light:hover {
    border-color: rgba(225, 29, 72, 0.35);
    color: var(--primary-dark);
    box-shadow: var(--shadow-soft);
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 700;
}

.hero {
    padding: 72px 0 40px;
    background: radial-gradient(circle at 85% 20%, rgba(251, 113, 133, 0.18), transparent 22rem), linear-gradient(180deg, var(--white) 0%, var(--primary-soft) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 32px;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(2.4rem, 4vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.hero-copy p {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
    font-weight: 600;
}

.pills span {
    background: rgba(215, 25, 32, 0.08);
    padding: 10px 14px;
    border-radius: 999px;
}

.hero-visual {
    background: linear-gradient(135deg, #fff8f8, #ffe9e9);
    border: 1px solid rgba(215, 25, 32, 0.15);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.featured-card {
    background: var(--white);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
}

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

.featured-meta {
    padding: 22px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.badge {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(215, 25, 32, 0.08);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.72rem;
}

.section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

.section-header h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    letter-spacing: -0.03em;
}

.section-header a {
    color: var(--primary);
    font-weight: 700;
}

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

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

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

.product-image-link {
    display: block;
    overflow: hidden;
}

.product-image-link img {
    transition: transform 0.25s ease;
}

.product-card:hover .product-image-link img {
    transform: scale(1.04);
}

.product-body {
    padding: 18px;
}

.product-body h3 {
    margin: 0 0 12px;
    font-size: 1.2rem;
}

.product-body h3 a:hover {
    color: var(--primary);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-actions form {
    margin: 0;
}

.shipping-note {
    color: var(--muted);
    font-size: 0.85rem;
}

.price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
}

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

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    margin: 8px 0;
}

.stat-card span {
    color: var(--muted);
    font-weight: 600;
}

.banner {
    background: radial-gradient(circle at 90% 0%, rgba(255,255,255,0.2), transparent 18rem), linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: 24px;
    padding: 46px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 18px 40px rgba(159, 18, 57, 0.22);
}

.banner h3 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.banner p {
    margin: 0;
    opacity: 0.9;
}

.page-header {
    padding: 48px 0 24px;
}

.page-header h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3.3rem);
    letter-spacing: -0.04em;
}

.page-header p {
    color: var(--muted);
    margin-top: 10px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.6fr 0.8fr;
    gap: 22px;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.product-list {
    display: grid;
    gap: 16px;
}

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

.cart-item img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
}

.cart-item h4 {
    margin: 0 0 8px;
}

.cart-item .tiny {
    font-size: 0.82rem;
    color: var(--muted);
}

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

.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row input {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus {
    outline: none;
    border-color: rgba(225, 29, 72, 0.5);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.metric {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
}

.metric strong {
    display: block;
    font-size: 2rem;
    margin-bottom: 8px;
}

.stock-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stock-form input {
    width: 82px;
    min-height: 40px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.stock-form .btn {
    padding: 8px 12px;
    font-size: 0.8rem;
}

.order-product-link {
    color: var(--black);
    font-weight: 700;
}

.order-product-link:hover {
    color: var(--primary);
}

.order-product {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
}

.order-product img {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.seller-product {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 210px;
}

.seller-product img {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
}

.order-table th, .order-table td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
}

.status {
    display: inline-block;
    padding: 6px 10px;
    background: rgba(30, 167, 106, 0.1);
    color: var(--success);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.review-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.review-form select,
.review-form input {
    min-width: 110px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
}

.review-form input {
    min-width: 180px;
}

.review-form .btn {
    padding: 8px 12px;
    font-size: 0.8rem;
}

.return-form {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.return-form select,
.return-form input {
    width: 100%;
    min-width: 180px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
}

.return-form .btn {
    justify-self: start;
    padding: 8px 12px;
    font-size: 0.8rem;
}

.return-status {
    display: grid;
    gap: 3px;
    margin-top: 10px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
}

.return-status small {
    color: var(--muted);
    font-weight: 400;
}

.return-decision {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.return-decision form {
    margin: 0;
}

.return-accept-form {
    display: grid;
    gap: 8px;
}

.return-accept-form input {
    min-width: 220px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.return-decision .btn {
    padding: 8px 12px;
    font-size: 0.8rem;
}

.tiny {
    color: var(--muted);
    font-size: 0.82rem;
}

.review-stars {
    color: var(--primary);
    font-weight: 700;
    margin-top: 6px;
}

.seller-rating strong {
    color: var(--primary);
    font-size: 1.5rem;
}

.review-item {
    padding: 14px 0;
    border-top: 1px solid var(--border);
}

.review-item p {
    margin: 8px 0 0;
    color: var(--muted);
}

.flash {
    max-width: 1200px;
    width: min(1200px, calc(100% - 32px));
    margin: 18px auto 0;
}

.flash-message {
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.flash-success {
    background: rgba(30, 167, 106, 0.12);
    color: #0d7b4f;
    border: 1px solid rgba(30, 167, 106, 0.25);
}

.flash-error {
    background: rgba(215, 25, 32, 0.12);
    color: var(--primary-dark);
    border: 1px solid rgba(215, 25, 32, 0.25);
}

.total-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-weight: 700;
}

.total-line.total {
    border-top: 1px solid var(--border);
    margin-top: 8px;
    font-size: 1.4rem;
    color: var(--primary);
}

.payment-options {
    display: grid;
    gap: 9px;
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--light);
}

.payment-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}

.payment-options label:hover {
    background: var(--white);
}

.payment-panel {
    display: grid;
    gap: 14px;
}

.payment-panel h2 {
    margin: 0;
}

.payment-panel p {
    color: var(--muted);
}

.payment-instructions {
    display: grid;
    gap: 5px;
    padding: 14px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.payment-field {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.payment-field input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.payment-notice {
    margin-bottom: 0;
    font-size: 0.84rem;
}

.shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    padding: 18px;
    margin-bottom: 28px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.shop-search,
.shop-filter {
    display: grid;
    gap: 7px;
    flex: 1;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.shop-filter {
    min-width: 145px;
}

.shop-availability {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.shop-availability input {
    width: auto;
    min-height: 0;
}

.product-meta,
.product-rating {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.product-rating {
    color: #b7791f;
    font-weight: 700;
}

.shop-toolbar input,
.shop-toolbar select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
}

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

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--white);
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.category-chip span {
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--light);
    font-size: 0.72rem;
}

.category-chip:hover,
.category-chip.active {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.category-admin-form {
    display: flex;
    gap: 10px;
    margin: 18px 0;
}

.category-admin-form input {
    flex: 1;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.category-admin-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.results-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
    color: var(--muted);
}

.results-summary strong {
    color: var(--black);
}

.empty-state {
    padding: 48px 24px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.empty-state h1,
.empty-state h2 {
    margin-top: 0;
}

.back-link {
    display: inline-block;
    margin-bottom: 22px;
    color: var(--primary);
    font-weight: 700;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 42px;
    align-items: start;
}

.product-detail-media {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.product-detail-media img {
    width: 100%;
    min-height: 480px;
    object-fit: cover;
}

.product-detail-content {
    padding: 16px 0;
}

.product-detail-content h1 {
    margin: 18px 0 14px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
}

.product-detail-description {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.product-detail-price {
    margin: 24px 0;
    color: var(--primary);
    font-size: 2rem;
    font-weight: 800;
}

.product-benefits {
    display: grid;
    gap: 10px;
    margin: 24px 0;
}

.product-benefits div {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.product-benefits span {
    color: var(--muted);
    font-size: 0.9rem;
}

.purchase-form {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

.purchase-controls {
    display: flex;
    gap: 10px;
}

.purchase-controls input {
    width: 90px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
}

@media (max-width: 900px) {
    .hero-grid,
    .grid-2,
    .product-grid,
    .stats-grid,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .topbar-inner {
        flex-direction: column;
        padding: 18px 0;
    }

    .nav {
        justify-content: center;
    }

    .banner {
        flex-direction: column;
        align-items: flex-start;
    }

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

.admin-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 80px);
}

.admin-sidebar {
    background: linear-gradient(180deg, #170b0c 0%, #2a0d10 100%);
    color: var(--white);
    padding: 28px 18px;
}

.admin-sidebar .brand {
    margin-bottom: 28px;
    color: var(--white);
}

.admin-nav {
    display: grid;
    gap: 10px;
}

.admin-nav a {
    display: block;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--white);
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
}

.admin-panel {
    background: #fff8f8;
    padding: 28px;
}

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

.admin-metric {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 24px rgba(17,17,17,0.04);
}

.admin-metric strong {
    display: block;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.admin-metric span {
    color: var(--muted);
    font-weight: 600;
}

.premium-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 14px 28px rgba(17,17,17,0.04);
}

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

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

.admin-form input, .admin-form select, .admin-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

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

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

.register-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
    background: linear-gradient(180deg, #fff5f5 0%, #f5f5f5 100%);
}

.register-card {
    width: min(560px, 100%);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.password-page {
    min-height: 100vh;
    padding: 32px 16px;
    background: linear-gradient(135deg, #fff5f5 0%, #f7f7fb 100%);
}

.password-layout {
    width: min(1040px, 100%);
    min-height: calc(100vh - 64px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
    align-items: center;
    gap: 56px;
}

.password-intro {
    padding: 20px 0;
}

.password-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 48px;
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 800;
}

.password-intro h1 {
    max-width: 460px;
    margin: 18px 0 12px;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.05;
}

.password-intro > p {
    max-width: 470px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.password-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 30px 0;
}

.password-avatar {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
}

.password-user strong,
.password-user span {
    display: block;
}

.password-user span,
.password-muted {
    color: var(--muted);
    font-size: .9rem;
}

.password-benefits {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    color: var(--text);
    list-style: none;
}

.password-benefits li::before {
    margin-right: 10px;
    color: var(--primary);
    content: '✓';
    font-weight: 800;
}

.password-form-card {
    width: 100%;
    padding: 32px;
}

.password-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.password-card-heading h2 {
    margin: 14px 0 8px;
}

.password-lock {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: #fff0f2;
    font-size: 1.2rem;
}

.password-form-card form {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 82px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    padding: 4px 6px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    font-size: .8rem;
    font-weight: 700;
}

.password-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    color: var(--muted);
    font-size: .8rem;
}

.password-strength-bar {
    width: 100px;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--border);
}

.password-strength-bar span {
    display: block;
    width: 0;
    height: 100%;
    background: #e05252;
    transition: width .2s ease, background .2s ease;
}

.password-strength-bar span.medium { background: #d99a38; }
.password-strength-bar span.strong { background: #2a9d72; }
.password-validation { display: block; margin-top: 7px; font-size: .8rem; }
.password-validation.valid { color: #23845d; }
.password-validation.invalid { color: #c33e4c; }
.password-submit { width: 100%; margin-top: 4px; }
.password-flash { max-width: 1040px; margin: 0 auto 16px; }

.notification {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.notification:last-child { border-bottom: 0; }
.notification-unread { padding-left: 12px; border-left: 3px solid var(--primary); }
.notification p, .notification small { display: block; margin: 4px 0 0; color: var(--muted); }
.order-detail-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.order-detail-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.order-detail-item strong, .order-detail-item span, .order-detail-item small { display: block; margin-bottom: 4px; }
.order-detail-item small { color: var(--muted); }
.payment-address { display: grid; gap: 12px; margin-bottom: 18px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; }
.payment-address legend { padding: 0 6px; font-weight: 800; }
.payment-address textarea { min-height: 72px; }
.seller-order-form { display: grid; gap: 6px; min-width: 150px; }
.seller-order-form select, .seller-order-form input { width: 100%; padding: 8px; border: 1px solid var(--border); border-radius: 8px; }
.stock-unavailable { color: #c33e4c; font-weight: 800; }
.stock-low { color: #b06a19; font-weight: 800; }
.auction-detail-image { width: 100%; max-height: 420px; object-fit: cover; border-radius: 16px; margin-bottom: 20px; }

@media (max-width: 780px) {
    .password-layout {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .password-brand { margin-bottom: 28px; }
    .password-intro { padding: 0; }
    .password-intro h1 { font-size: 2.25rem; }
    .password-form-card { padding: 24px; }
}

.register-card h1 {
    margin: 12px 0 18px;
}

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

.register-card .two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

    .admin-grid,
    .admin-form,
    .register-card .two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container,
    .flash {
        width: min(100% - 24px, 1200px);
    }

    .site-footer {
        margin-top: 40px;
        padding-top: 36px;
    }

    .site-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px 20px;
    }

    .site-footer-brand {
        grid-column: 1 / -1;
    }

    .site-footer-bottom {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    .topbar-inner {
        align-items: stretch;
        gap: 14px;
        min-height: auto;
        padding: 14px 0;
    }

    .brand {
        justify-content: center;
    }

    .nav {
        justify-content: flex-start;
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 2px 0 6px;
        scrollbar-width: thin;
    }

    .nav a {
        flex: 0 0 auto;
        padding: 8px 10px;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: var(--white);
        font-size: 0.88rem;
    }

    .actions {
        justify-content: stretch;
    }

    .actions .btn {
        flex: 1;
        min-width: 0;
        padding: 11px 12px;
        font-size: 0.9rem;
    }

    .hero {
        padding: 40px 0 24px;
    }

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

    .hero-copy p {
        font-size: 1rem;
        line-height: 1.55;
    }

    .hero-actions {
        display: grid;
        gap: 10px;
    }

    .hero-actions .btn,
    .banner .btn {
        width: 100%;
    }

    .hero-visual {
        padding: 12px;
        border-radius: 18px;
    }

    .featured-card img {
        height: 240px;
    }

    .featured-meta,
    .card,
    .total-box,
    .premium-card,
    .register-card {
        padding: 18px;
    }

    .price-row,
    .section-header,
    .product-footer,
    .total-line {
        align-items: flex-start;
        flex-direction: column;
    }

    .section {
        padding: 38px 0;
    }

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

    .product-footer {
        gap: 14px;
    }

    .product-actions {
        width: 100%;
    }

    .product-actions form,
    .product-actions .btn {
        flex: 1;
    }

    .product-footer form,
    .product-footer .btn {
        width: 100%;
    }

    .product-footer .btn,
    .btn {
        min-height: 44px;
    }

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

    .stat-card {
        padding: 16px 10px;
    }

    .stat-card strong {
        font-size: 1.55rem;
    }

    .stat-card span {
        font-size: 0.85rem;
    }

    .banner {
        padding: 28px 20px;
        border-radius: 18px;
    }

    .cart-item {
        gap: 12px;
    }

    .cart-item img {
        width: 100%;
        height: 170px;
    }

    .review-form {
        display: grid;
    }

    .review-form select,
    .review-form input,
    .review-form .btn {
        width: 100%;
        min-width: 0;
        min-height: 44px;
    }

    .return-form select,
    .return-form input,
    .return-form .btn {
        min-width: 0;
        min-height: 44px;
    }

    .return-accept-form input,
    .return-accept-form .btn {
        width: 100%;
        min-width: 0;
        min-height: 44px;
    }

    .shop-toolbar {
        display: grid;
        align-items: stretch;
    }

    .category-admin-form {
        display: grid;
    }

    .category-admin-form .btn {
        width: 100%;
    }

    .shop-toolbar .btn {
        width: 100%;
    }

    .results-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

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

    .product-detail-media img {
        min-height: 300px;
        max-height: 420px;
    }

    .product-detail-content {
        padding: 0;
    }

    .purchase-controls {
        display: grid;
        grid-template-columns: 88px 1fr;
    }

    .purchase-controls .btn {
        width: 100%;
    }

    .admin-panel {
        padding: 18px 12px;
    }

    .admin-sidebar {
        padding: 20px 12px;
    }

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

    .table-wrap {
        margin-right: -6px;
        padding-bottom: 4px;
    }
}
.product-gallery-thumbs{display:flex;gap:8px;margin-top:10px;overflow:auto}.product-gallery-thumbs img{width:64px;height:64px;object-fit:cover;border-radius:8px;border:1px solid #ddd}
