:root {
    --color-navy: #0a1628;
    --color-navy-light: #132238;
    --color-navy-hover: #1e3a5f;
    --color-navy-hover-soft: #2a4d73;
    --color-accent: #c9a227;
    --color-accent-dark: #a8861f;
    --color-primary: #1e3a5f;
    --color-primary-dark: #152a45;
    --color-text: #1e293b;
    --color-muted: #64748b;
    --color-border: #e2e8f0;
    --color-bg: #f8fafc;
    --color-white: #ffffff;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --container: 1200px;
    --home-section-gap: 4rem;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--color-text); line-height: 1.6; background: var(--color-white); }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }

.alert { padding: 0.85rem 1rem; margin: 1rem auto; border-radius: var(--radius); }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-error p { margin: 0.25rem 0; }
.contact-form-alert { margin: 0 0 1rem; }

.site-header { position: sticky; top: 0; z-index: 100; }
.site-header-top { background: var(--color-white); border-bottom: 1px solid var(--color-border); }
.site-header-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.site-header-brand { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.site-header-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.site-header-contact-row,
.site-header-auth-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.site-logo img { max-height: 52px; }
.site-logo-text { font-weight: 700; font-size: 1.35rem; color: var(--color-navy); text-decoration: none; }
.site-header-meta { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.site-header-top .header-contact,
.site-header-top .header-cart { color: #000; font-size: 0.9rem; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; }
.site-header-top .header-contact:hover,
.site-header-top .header-cart:hover { color: var(--color-primary); text-decoration: none; }
.site-header-top .header-user { font-size: 0.9rem; color: #000; }
.site-header-top .btn-outline { background: transparent; color: #000; border: 1px solid #000; }
.site-header-top .btn-outline:hover { background: var(--color-bg); color: #000; border-color: #000; text-decoration: none; }
.site-header-top .btn-accent { background: var(--color-accent); color: #000; }
.site-header-top .btn-accent:hover { background: var(--color-accent-dark); color: #000; text-decoration: none; }
.cart-badge { background: var(--color-accent); color: var(--color-navy); font-size: 0.75rem; font-weight: 700; padding: 0.1rem 0.45rem; border-radius: 999px; min-width: 1.35rem; text-align: center; }
.cart-badge.is-hidden { display: none; }

.header-cart-wrap { position: relative; }
.header-cart-wrap .header-cart { position: relative; z-index: 2; }
.mini-cart-dropdown {
    position: absolute;
    top: calc(100% + 0.65rem);
    right: 0;
    width: min(360px, calc(100vw - 2rem));
    z-index: 120;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
.header-cart-wrap:hover .mini-cart-dropdown,
.header-cart-wrap.is-open .mini-cart-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.mini-cart-panel {
    background: var(--color-navy);
    color: #e2e8f0;
    border-radius: var(--radius);
    box-shadow: 0 16px 40px rgb(0 0 0 / 0.22);
    overflow: hidden;
}
.mini-cart-empty {
    margin: 0;
    padding: 1.25rem 1rem;
    text-align: center;
    color: #cbd5e1;
    font-size: 0.9rem;
}
.mini-cart-items {
    max-height: 320px;
    overflow-y: auto;
}
.mini-cart-item {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 0.75rem;
    align-items: start;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
.mini-cart-item-thumb {
    display: block;
    width: 64px;
    height: 48px;
    border-radius: 4px;
    overflow: hidden;
    background: rgb(255 255 255 / 0.08);
}
.mini-cart-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.mini-cart-item-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.25rem;
}
.mini-cart-item-body { min-width: 0; }
.mini-cart-item-name {
    display: block;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}
.mini-cart-item-name:hover { color: var(--color-accent); text-decoration: none; }
.mini-cart-item-meta {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    color: #94a3b8;
}
.mini-cart-item-remove {
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.15rem 0.25rem;
}
.mini-cart-item-remove:hover { color: #fff; }
.mini-cart-footer {
    padding: 0.85rem 1rem 1rem;
    background: rgb(0 0 0 / 0.12);
}
.mini-cart-footer.is-hidden { display: none; }
.mini-cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
}
.mini-cart-subtotal strong { color: #fff; font-size: 1rem; }
.mini-cart-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.mini-cart-actions .btn { justify-content: center; text-align: center; }

.frontend-toast-container {
    position: fixed;
    top: 5.5rem;
    right: 1rem;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}
.frontend-toast {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    color: #fff;
    font-size: 0.875rem;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.frontend-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.frontend-toast-success { background: #059669; }
.frontend-toast-error { background: #dc2626; }
.site-header-nav { background: var(--color-navy-light); }
.site-header-nav .menu-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; flex-wrap: wrap; }
.site-header-nav .menu-list a,
.site-header-nav .menu-parent-link {
    color: #fff;
    padding: 0.85rem 1.25rem;
    display: block;
    text-decoration: none;
    font-weight: 500;
}
.site-header-nav .menu-list > .menu-item > a:hover,
.site-header-nav .menu-parent-row .menu-parent-link:hover {
    background: var(--color-navy-hover);
    text-decoration: none;
    color: #fff;
}
.site-header-nav .menu-list .menu-list a:hover {
    background: var(--color-navy-hover-soft);
    text-decoration: none;
    color: #fff;
}
.site-header-nav .menu-submenu-wrap > .menu-list {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-navy);
    border: 1px solid rgb(255 255 255 / 0.1);
    min-width: 220px;
    display: none;
    padding: 0.25rem 0;
    z-index: 10;
}
.site-header-nav .menu-item.has-children { position: relative; }
.site-header-nav .menu-parent-row { display: flex; align-items: stretch; }
.site-header-nav .menu-parent-link { flex: 1; min-width: 0; }
@media (min-width: 769px) {
    .site-header-nav .menu-item.has-children:hover > .menu-submenu-wrap > .menu-list { display: flex; }
}
.menu-submenu-toggle,
.menu-submenu-close-x { display: none; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--color-border); border-radius: var(--radius); color: #000; padding: 0.35rem 0.6rem; font-size: 1.1rem; cursor: pointer; line-height: 1; }

.btn { display: inline-block; padding: 0.6rem 1.1rem; border-radius: var(--radius); border: none; cursor: pointer; font-weight: 600; text-decoration: none; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); text-decoration: none; }
.btn-accent { background: var(--color-accent); color: var(--color-navy); }
.btn-accent:hover { background: var(--color-accent-dark); text-decoration: none; }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgb(255 255 255 / 0.5); }
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); text-decoration: none; }
.btn-secondary { background: var(--color-bg); color: var(--color-text); border: 1px solid var(--color-border); }
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.875rem; }
.btn-block { width: 100%; text-align: center; }
.inline-form { display: inline; margin: 0; }

.hero-slider { position: relative; min-height: 480px; overflow: hidden; background: var(--color-navy); }
.hero-slide { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; opacity: 0; pointer-events: none; transition: opacity 0.6s; display: flex; align-items: center; }
.hero-slide.active { opacity: 1; z-index: 1; pointer-events: auto; }
.hero-slide-content { position: relative; color: #fff; max-width: 560px; padding: 3rem 0; text-shadow: 0 2px 8px rgb(0 0 0 / 0.45); }
.hero-slide-content h1 { font-size: 2.75rem; margin: 0 0 0.75rem; line-height: 1.15; }
.hero-slide-content p { font-size: 1.1rem; opacity: 0.95; }
.hero-prev, .hero-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgb(255 255 255 / 0.2); border: none; color: #fff; font-size: 2rem; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; z-index: 2; }
.hero-prev { left: 1rem; }
.hero-next { right: 1rem; }

.section {
    padding-top: var(--home-section-gap);
    padding-bottom: 0;
}
.section-contact {
    padding-bottom: var(--home-section-gap);
}
.section-about,
.section-contact,
.section-category {
    scroll-margin-top: 8.5rem;
}
.section.alt { background: var(--color-bg); }
.section h2 { margin-top: 0; font-size: 1.85rem; color: var(--color-navy); }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.5rem; }
.section-head-category { margin-bottom: 1.5rem; }
.section-head-category h2 { margin: 0; }
.section-view-all {
    color: var(--color-navy);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: underline;
    white-space: nowrap;
}
.section-view-all:hover {
    color: var(--color-primary);
    text-decoration: underline;
}
.section-empty { color: var(--color-muted); margin: 0; }
.grid { display: grid; gap: 1.5rem; }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.category-products-carousel {
    position: relative;
    width: 100%;
}
.category-products-track-wrap {
    overflow: hidden;
    min-width: 0;
}
.category-products-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.45s ease;
    will-change: transform;
}
.category-products-track .product-card {
    flex: 0 0 auto;
    min-width: 0;
}
.category-products-track .product-card-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
}
.category-products-track .product-card-actions .inline-form {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
}
.category-products-track .product-card-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    white-space: nowrap;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
}
.category-products-track .product-card-actions .inline-form .btn {
    width: 100%;
}
.category-carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 46px;
    height: 46px;
    border: 2px solid var(--color-navy);
    border-radius: 50%;
    background: #fff;
    color: var(--color-navy);
    font-size: 1.85rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transform: translateY(-50%);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.category-carousel-prev { left: 1.25rem; }
.category-carousel-next { right: 1.25rem; }
.category-carousel-arrow:hover,
.category-carousel-arrow:focus-visible {
    background: var(--color-navy);
    color: #fff;
    outline: none;
}
.category-carousel-arrow[hidden] { display: none !important; }

.product-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.product-card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--color-bg); }
.product-card-image { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s; display: block; }
.product-card-image.active { opacity: 1; position: relative; height: 100%; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; }
.product-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 200px; color: var(--color-muted); background: var(--color-bg); }
.product-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: 0.75rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.product-card h3 { margin: 0.35rem 0; font-size: 1.05rem; }
.product-meta { font-size: 0.85rem; color: var(--color-muted); display: flex; gap: 0.75rem; margin: 0.25rem 0; }
.product-price { font-weight: 700; color: var(--color-primary); margin: 0.5rem 0; }
.product-price s { color: var(--color-muted); font-weight: 400; margin-right: 0.35rem; }
.product-card-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.75rem; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.contact-left { display: grid; gap: 1.25rem; align-content: start; }
.contact-info h2 { margin-top: 0; margin-bottom: 0.65rem; }
.contact-info .prose { margin: 0; }
.contact-media .post-carousel {
    margin-bottom: 0;
    aspect-ratio: 16 / 10;
    min-height: 280px;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}
.about-content h2 { margin-top: 0; }
.post-carousel {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
}
.post-carousel-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.post-carousel-image.active { opacity: 1; z-index: 1; }
.post-show-layout .post-carousel {
    max-width: 720px;
    margin: 0 auto 2rem;
}
.blog-show-layout {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0 3rem;
}
.blog-back-link {
    display: inline-block;
    margin-bottom: 1.25rem;
    color: var(--color-navy);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}
.blog-back-link:hover {
    color: var(--color-primary);
    text-decoration: none;
}
.blog-show-title {
    margin: 0 0 1.5rem;
    text-align: center;
    color: var(--color-navy);
    font-size: 2rem;
    line-height: 1.2;
}
.blog-show-layout .post-carousel {
    max-width: 100%;
    width: 100%;
    margin: 0 0 2rem;
}
.blog-show-layout .prose {
    max-width: 100%;
}
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.blog-card { display: flex; flex-direction: column; height: 100%; }
.blog-card-media { display: block; aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.blog-card-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.blog-card-body h3 { margin: 0; font-size: 1.15rem; }
.blog-card-body p { margin: 0; color: var(--color-muted); flex: 1; }
.content-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.contact-form-wrap { background: var(--color-bg); padding: 1.15rem 1.25rem; border-radius: var(--radius); border: 1px solid var(--color-border); }
.contact-form-wrap h3 { margin: 0 0 0.85rem; font-size: 1.1rem; }
.contact-form .form-group { margin-bottom: 0.65rem; }
.contact-form label { display: block; margin-bottom: 0.2rem; font-size: 0.875rem; font-weight: 500; }
.contact-form .form-control {
    padding: 0.42rem 0.65rem;
    font-size: 0.9rem;
    line-height: 1.35;
    min-height: 36px;
}
.contact-form textarea.form-control {
    min-height: 88px;
    resize: vertical;
}
.contact-form .btn { margin-top: 0.35rem; padding: 0.5rem 1.1rem; font-size: 0.9rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.35rem; font-weight: 600; font-size: 0.9rem; }
.form-control { width: 100%; padding: 0.65rem 0.85rem; border: 1px solid var(--color-border); border-radius: var(--radius); font: inherit; }
.form-control:focus { outline: 2px solid var(--color-primary); border-color: var(--color-primary); }
.form-control.is-invalid { border-color: #dc2626; }
.form-control.is-invalid:focus { outline-color: #dc2626; border-color: #dc2626; }
.form-error { display: block; margin-top: 0.35rem; color: #dc2626; font-size: 0.85rem; }
.checkbox-label { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0.75rem 0 1rem; font-size: 0.9rem; }
.field-hint { display: block; margin-top: 0.35rem; color: var(--color-muted); font-size: 0.85rem; line-height: 1.45; }
.field-required { color: #dc2626; }

.auth-section { background: var(--color-bg); min-height: 60vh; }
.auth-container { max-width: 480px; margin: 0 auto; background: #fff; padding: 2rem; border-radius: var(--radius); border: 1px solid var(--color-border); box-shadow: var(--shadow); }
.auth-subtitle { color: var(--color-muted); margin-top: -0.5rem; }
.auth-switch { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; }
.password-field { display: flex; gap: 0.5rem; }
.password-field .form-control { flex: 1; }
.password-toggle { white-space: nowrap; padding: 0.5rem 0.75rem; border: 1px solid var(--color-border); background: #fff; border-radius: var(--radius); cursor: pointer; }

.cart-table-wrap { overflow-x: auto; }
.cart-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.cart-table th, .cart-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-border); text-align: left; }
.cart-table th { background: var(--color-bg); font-weight: 600; }
.cart-table-actions { width: 1%; white-space: nowrap; text-align: right; }
.cart-note { color: var(--color-muted); font-size: 0.9rem; }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; text-decoration: none; }

.prose { max-width: 800px; line-height: 1.75; }
.product-description { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--color-border); }
.product-description > h2 { margin: 0 0 1.25rem; color: var(--color-navy); font-size: 1.5rem; }
.product-description strong {
    display: block;
    margin: 1.5rem 0 0.5rem;
    color: var(--color-navy);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
}
.product-description strong:first-child { margin-top: 0; }
.product-description p { margin: 0 0 1rem; }
.page-header { padding: 2.5rem 0 1rem; }
.page-header--center { text-align: center; }
.page-header h1 { margin: 0; color: var(--color-navy); }
.featured-image { width: 100%; border-radius: var(--radius); margin-bottom: 1.5rem; }

.product-detail { padding: 2rem 0 4rem; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.product-main-image { width: 100%; border-radius: var(--radius); border: 1px solid var(--color-border); display: none; }
.product-main-image.active { display: block; }
.product-main-gallery { position: relative; min-height: 320px; }
.product-thumb-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.product-thumb { padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; cursor: pointer; }
.product-thumb.active { border-color: var(--color-accent); }
.product-thumb img { width: 72px; height: 54px; object-fit: cover; border-radius: 4px; display: block; }
.product-price-lg { font-size: 1.75rem; font-weight: 700; color: var(--color-primary); }

.category-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.category-filter a { padding: 0.35rem 0.75rem; border-radius: 999px; border: 1px solid var(--color-border); color: var(--color-text); font-size: 0.875rem; }
.category-filter a.active { background: var(--color-navy); color: #fff; border-color: var(--color-navy); }

.pagination { display: flex; gap: 1rem; align-items: center; justify-content: center; padding: 2rem 0; }
.empty-state, .text-muted { color: var(--color-muted); }
.text-center { text-align: center; }

.site-footer { background: var(--color-navy); color: #cbd5e1; margin-top: 0; padding-top: 3rem; overflow-x: hidden; }
.site-footer-inner { width: 100%; box-sizing: border-box; }
.site-footer h3, .site-footer h4 { color: #fff; margin-top: 0; }
.footer-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgb(255 255 255 / 0.1);
}
.footer-brand .footer-logo {
    max-height: 72px;
    max-width: 240px;
    object-fit: contain;
    margin-bottom: 0.75rem;
    background: #fff;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
}
.footer-slogan { opacity: 0.9; max-width: 360px; margin: 0; line-height: 1.6; }
.footer-contact-col h4 { margin-bottom: 0.75rem; }
.footer-contact-col p { margin: 0.35rem 0; }
.footer-contact-col a { color: #e2e8f0; }
.footer-contact-col a:hover { color: var(--color-accent); text-decoration: none; }
.footer-middle-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    padding: 2rem 0;
    border-bottom: 1px solid rgb(255 255 255 / 0.1);
}
.footer-links-col .footer-col + .footer-col { margin-top: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.35rem; }
.footer-links a { color: #cbd5e1; }
.footer-links a:hover { color: var(--color-accent); text-decoration: none; }
.footer-payments-col h4 { margin-bottom: 0.75rem; }
.footer-payments { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.footer-payments img { max-height: 36px; background: #fff; padding: 0.3rem 0.55rem; border-radius: 4px; }
.footer-empty { opacity: 0.75; margin: 0; }
.footer-bottom {
    border-top: none;
    padding: 1.25rem 0 2rem;
    font-size: 0.875rem;
    text-align: center;
}
.footer-bottom p { margin: 0; }

.error-page { text-align: center; padding: 5rem 0; }
.error-page h1 { font-size: 4rem; margin: 0; color: var(--color-navy); }

.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    box-shadow: 0 -4px 20px rgb(0 0 0 / 0.25);
}
.cookie-consent[hidden] { display: none !important; }
.cookie-consent-text {
    margin: 0;
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
}
.cookie-consent-text a {
    color: #fff;
    text-decoration: underline;
    margin-left: 0.25rem;
}
.cookie-consent-text a:hover { color: var(--color-accent); }
.cookie-consent-btn {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 0.55rem 1.1rem;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    border-radius: 2px;
    flex-shrink: 0;
}
.cookie-consent-btn:hover,
.cookie-consent-btn:focus-visible {
    background: rgb(255 255 255 / 0.12);
    outline: none;
}

.site-header-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.header-search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border-radius: 999px;
    padding: 0.35rem 0.85rem 0.35rem 0.75rem;
    min-width: 220px;
    max-width: 320px;
    flex: 1 1 220px;
    margin-left: auto;
}
.header-search-btn {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: inherit;
    flex-shrink: 0;
}
.header-search-icon { opacity: 0.55; font-size: 0.95rem; pointer-events: none; }
.header-search-btn:hover .header-search-icon,
.header-search-btn:focus-visible .header-search-icon { opacity: 0.85; }
.header-search-input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font: inherit;
    color: var(--color-text);
    min-width: 0;
}
.header-search-input::placeholder { color: var(--color-muted); }

.search-designs-page { padding: 2rem 0 3rem; background: var(--color-bg); min-height: 60vh; }
.search-designs-form {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    align-items: start;
}
.search-filters {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    position: sticky;
    top: 7rem;
}
.search-filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.search-filters-head h2 { margin: 0; font-size: 1.15rem; color: var(--color-navy); }
.search-filters-reset { font-size: 0.875rem; font-weight: 600; color: var(--color-muted); text-decoration: none; }
.search-filters-reset:hover { color: var(--color-primary); text-decoration: none; }
.filter-group { margin-bottom: 1.25rem; }
.filter-label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; color: var(--color-navy); }
.filter-range-values {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: 0.35rem;
}
.filter-range-dual { display: grid; gap: 0.35rem; }
.filter-range { width: 100%; accent-color: var(--color-accent); }
.filter-checkboxes { display: grid; gap: 0.5rem; }
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}
.filter-checkbox input { accent-color: var(--color-primary); }

.search-results { min-width: 0; }
.search-toolbar {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.search-toolbar-input {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.55rem 0.85rem;
    min-width: 220px;
}
.search-toolbar-icon { opacity: 0.5; }
.search-toolbar-field {
    border: none;
    outline: none;
    width: 100%;
    font: inherit;
    background: transparent;
}
.search-sort {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.55rem 0.85rem;
    font: inherit;
    background: #fff;
    min-width: 180px;
}
.search-results-count { color: var(--color-muted); margin: 0 0 1rem; font-size: 0.9rem; }
.search-results-grid { margin-bottom: 1.5rem; }

.search-design-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.search-design-card-media { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--color-bg); }
.search-design-card-media img { width: 100%; height: 100%; object-fit: cover; }
.search-design-card-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.search-design-card-body h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.search-design-card-desc {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.search-design-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.search-design-tags span {
    font-size: 0.75rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    color: var(--color-muted);
}
.search-design-card-foot { margin-top: auto; display: grid; gap: 0.65rem; }
.search-design-price { font-size: 1.05rem; color: var(--color-primary); }

.checkout-page { background: var(--color-bg); padding-top: 2rem; }
.checkout-container { max-width: 1180px; }
.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 2rem;
    align-items: start;
}
.checkout-main,
.checkout-summary {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}
.checkout-main { padding: 1.5rem; }
.checkout-summary { padding: 1.25rem 1.5rem; }
.checkout-panel + .checkout-panel { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--color-border); }
.checkout-panel h2,
.checkout-summary h2 {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    color: var(--color-navy);
}
.checkout-payment-option {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
}
.checkout-payment-option input { margin-top: 0.2rem; }
.checkout-payment-copy { display: grid; gap: 0.2rem; }
.checkout-payment-copy small { color: var(--color-muted); }
.checkout-warning {
    margin: 0.75rem 0 0;
    color: #b45309;
    font-size: 0.9rem;
}
.checkout-invoice-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    cursor: pointer;
}
.checkout-invoice-fields {
    display: grid;
    gap: 0.75rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease, margin-top 0.25s ease;
}
.checkout-invoice-fields.is-open {
    margin-top: 1rem;
    max-height: 420px;
    opacity: 1;
}
.checkout-invoice-fields[hidden] { display: none !important; }
.checkout-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
.checkout-back-btn,
.checkout-submit-btn {
    min-width: 160px;
    font-weight: 600;
}
.checkout-submit-btn {
    background: #42a5d2;
    border-color: #42a5d2;
    color: #fff;
}
.checkout-submit-btn:hover:not(:disabled) {
    background: #2f95c3;
    border-color: #2f95c3;
    color: #fff;
    text-decoration: none;
}
.checkout-submit-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.checkout-summary-list { display: grid; gap: 1rem; }
.checkout-summary-item {
    display: grid;
    grid-template-columns: 88px 1fr auto;
    gap: 0.85rem;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}
.checkout-summary-thumb {
    position: relative;
    width: 88px;
    height: 66px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--color-bg);
}
.checkout-summary-thumb img,
.checkout-summary-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.checkout-summary-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--color-muted);
}
.checkout-summary-qty {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #64748b;
    color: #fff;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.checkout-summary-info strong {
    display: block;
    line-height: 1.35;
    font-size: 0.98rem;
}
.checkout-summary-price {
    font-weight: 700;
    white-space: nowrap;
}
.checkout-summary-totals {
    margin-top: 1rem;
    display: grid;
    gap: 0.65rem;
}
.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.checkout-summary-total {
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
    font-size: 1.05rem;
}

@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; }
    .product-detail-grid { grid-template-columns: 1fr; }
    .footer-top-row,
    .footer-middle-row { grid-template-columns: 1fr; gap: 1.5rem; }
    .about-grid { grid-template-columns: 1fr; }
    .search-designs-form { grid-template-columns: 1fr; }
    .search-filters { position: static; }
    .checkout-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .cookie-consent {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 1rem;
    }
    .cookie-consent-btn { width: 100%; }
    .category-carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    .category-carousel-prev { left: 0.75rem; }
    .category-carousel-next { right: 0.75rem; }
    .site-header-top-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        min-height: 0;
    }
    .site-header-brand {
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .site-header-actions {
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .site-header-contact-row {
        justify-content: center;
        gap: 0.85rem;
        width: 100%;
    }
    .site-header-contact-row .header-email {
        font-size: 0.82rem;
        word-break: break-all;
        justify-content: center;
        text-align: left;
    }
    .site-header-auth-row {
        justify-content: center;
        gap: 0.45rem;
        align-items: center;
        flex-wrap: nowrap;
    }
    .site-header-auth-row .header-auth-btn {
        padding: 0.3rem 0.55rem;
        font-size: 0.78rem;
    }
    .site-header-auth-row .btn-outline,
    .site-header-auth-row .btn-accent {
        min-height: 30px;
    }
    .site-header-auth-row .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 30px;
        padding: 0.3rem 0.55rem;
        margin: 0;
        flex-shrink: 0;
        position: relative;
        z-index: 2;
        pointer-events: auto;
        touch-action: manipulation;
    }
    .site-header-nav { display: none; }
    .site-header-nav.open { display: block; }
    .site-header-nav-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        padding-top: 0.35rem;
        padding-bottom: 0.75rem;
    }
    .header-search-form {
        align-self: center;
        width: auto;
        max-width: min(100%, 260px);
        min-width: 0;
        flex: 0 0 auto;
        margin-left: 0;
        padding: 0.28rem 0.65rem 0.28rem 0.55rem;
    }
    .header-search-input {
        width: 150px;
        font-size: 0.875rem;
    }
    .site-header-nav .menu-list { flex-direction: column; }
    .site-header-nav .menu-parent-row { width: 100%; }
    .menu-submenu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.75rem;
        flex-shrink: 0;
        border: none;
        border-left: 1px solid rgb(255 255 255 / 0.12);
        background: transparent;
        color: #fff;
        font-size: 1.15rem;
        cursor: pointer;
    }
    .menu-submenu-toggle:hover,
    .menu-submenu-toggle:focus-visible {
        background: var(--color-navy-hover);
        outline: none;
    }
    .menu-submenu-close-x {
        display: none;
        align-items: center;
        justify-content: center;
        width: 2.75rem;
        flex-shrink: 0;
        border: none;
        border-left: 1px solid rgb(255 255 255 / 0.12);
        background: transparent;
        color: #fff;
        font-size: 1.35rem;
        line-height: 1;
        cursor: pointer;
    }
    .menu-submenu-close-x:hover,
    .menu-submenu-close-x:focus-visible {
        background: var(--color-navy-hover-soft);
        outline: none;
    }
    .site-header-nav .menu-item.has-children.open > .menu-parent-row .menu-submenu-toggle { display: none; }
    .site-header-nav .menu-item.has-children.open > .menu-parent-row .menu-submenu-close-x { display: inline-flex; }
    .site-header-nav .menu-item.has-children:hover > .menu-submenu-wrap > .menu-list { display: none; }
    .site-header-nav .menu-submenu-wrap { display: none; }
    .site-header-nav .menu-item.has-children.open > .menu-submenu-wrap { display: block; }
    .site-header-nav .menu-submenu-wrap > .menu-list {
        position: static;
        display: none;
        border: none;
        padding: 0;
        background: rgb(0 0 0 / 0.12);
    }
    .site-header-nav .menu-item.has-children.open > .menu-submenu-wrap > .menu-list { display: flex; }
    .site-header-nav .menu-list .menu-list a {
        padding-left: 1.5rem;
    }
    .hero-slide-content h1 { font-size: 2rem; }
    .grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

    :root { --home-section-gap: 2.25rem; }

    .container { padding-left: 1rem; padding-right: 1rem; }

    .section h2,
    .about-content h2,
    .contact-info h2 {
        font-size: 1.25rem;
        line-height: 1.3;
    }
    .section-head {
        margin-bottom: 0.85rem;
        gap: 0.35rem;
    }
    .section-head-category {
        margin-bottom: 0.75rem;
    }
    .section-view-all {
        font-size: 0.82rem;
    }
    .section-about,
    .section-contact,
    .section-category {
        scroll-margin-top: 7rem;
    }

    .category-products-track {
        gap: 1rem;
    }
    .category-products-track .product-card-body {
        padding: 0.75rem;
    }
    .category-products-track .product-category {
        font-size: 0.68rem;
        letter-spacing: 0.03em;
    }
    .category-products-track .product-card h3 {
        font-size: 0.92rem;
        margin: 0.25rem 0;
        line-height: 1.35;
    }
    .category-products-track .product-card h3 a {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .category-products-track .product-meta {
        font-size: 0.78rem;
        gap: 0.5rem;
        margin: 0.15rem 0;
    }
    .category-products-track .product-price {
        font-size: 0.88rem;
        margin: 0.35rem 0;
    }
    .category-products-track .product-card-actions {
        gap: 0.35rem;
        padding-top: 0.5rem;
    }
    .category-products-track .product-card-actions .btn {
        font-size: 0.72rem;
        padding: 0.38rem 0.35rem;
    }
    .category-carousel-arrow {
        width: 34px;
        height: 34px;
        font-size: 1.25rem;
    }
    .category-carousel-prev { left: 0.35rem; }
    .category-carousel-next { right: 0.35rem; }

    .about-grid,
    .contact-grid {
        gap: 1.5rem;
    }
    .about-content .prose,
    .contact-info .prose {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    .contact-left {
        gap: 1rem;
    }
    .contact-media .post-carousel {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }
    .contact-form-wrap {
        padding: 1rem;
    }
    .contact-form-wrap h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    .contact-form label {
        font-size: 0.82rem;
    }
    .contact-form .form-control {
        font-size: 0.9rem;
        padding: 0.5rem 0.65rem;
    }
    .contact-form textarea.form-control {
        min-height: 88px;
    }
    .contact-form .btn {
        width: 100%;
        text-align: center;
        font-size: 0.88rem;
    }

    .site-footer {
        padding-top: 2rem;
    }
    .site-footer .container.site-footer-inner {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
    .footer-top-row {
        padding-bottom: 1.25rem;
        gap: 1.25rem;
    }
    .footer-middle-row {
        display: flex;
        flex-direction: column;
        padding: 1.25rem 0;
        gap: 1.25rem;
        width: 100%;
    }
    .footer-links-col,
    .footer-payments-col,
    .footer-brand,
    .footer-contact-col {
        width: 100%;
        max-width: 100%;
    }
    .footer-links-col .footer-col,
    .footer-payments-col {
        padding: 0;
    }
    .footer-payments {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
        width: 100%;
        max-width: 100%;
    }
    .footer-brand .footer-logo {
        max-height: 56px;
        max-width: 200px;
    }
    .footer-slogan {
        font-size: 0.88rem;
        line-height: 1.55;
    }
    .site-footer h3,
    .site-footer h4 {
        font-size: 0.95rem;
    }
    .footer-contact-col p,
    .footer-links a {
        font-size: 0.85rem;
    }
    .footer-links li {
        margin-bottom: 0.25rem;
    }
    .footer-payments img {
        max-height: 30px;
        width: 100%;
        max-width: 72px;
        object-fit: contain;
        justify-self: start;
    }
    .footer-bottom {
        padding: 1rem 0 1.5rem;
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .site-header-auth-row .header-user { display: none; }

    .section h2,
    .about-content h2,
    .contact-info h2 {
        font-size: 1.12rem;
    }
    .section-view-all {
        font-size: 0.78rem;
    }
    .category-products-track .product-card h3 {
        font-size: 0.88rem;
    }
    .category-products-track .product-card-actions .btn {
        font-size: 0.68rem;
        padding: 0.32rem 0.25rem;
    }

    .grid-4 .product-card-actions,
    .search-designs-grid .product-card-actions {
        flex-direction: column;
    }
    .grid-4 .product-card-actions .btn,
    .search-designs-grid .product-card-actions .btn {
        width: 100%;
        text-align: center;
    }
}

.header-tool-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #000;
    font-size: 0.9rem;
    text-decoration: none;
    white-space: nowrap;
}
.header-tool-link:hover { color: var(--color-primary); text-decoration: none; }
.header-tool-label { font-size: 0.85rem; }
.header-wishlist-link .header-icon { color: #dc2626; }

.btn-wishlist {
    width: 38px;
    height: 38px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #fff;
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}
.btn-wishlist.is-active {
    color: #dc2626;
    border-color: #fecaca;
    background: #fef2f2;
}
.product-card-actions,
.search-design-card-actions,
.account-wishlist-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.account-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    padding: 2.5rem 0 4rem;
    align-items: start;
}
.account-sidebar {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem 0.75rem;
}
.account-sidebar-avatar {
    width: 88px;
    height: 88px;
    margin: 0 auto 1.25rem;
    border-radius: 999px;
    background: #6366f1;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}
.account-user-card {
    display: none;
}
.account-nav { display: grid; gap: 0.15rem; }
.account-nav-link,
.account-nav-button {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    text-align: left;
    padding: 0.7rem 0.85rem;
    border-radius: 4px;
    color: var(--color-text);
    text-decoration: none;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}
.account-nav-icon {
    width: 1.1rem;
    text-align: center;
    opacity: 0.85;
    flex-shrink: 0;
}
.account-nav-link:hover,
.account-nav-button:hover { background: var(--color-bg); text-decoration: none; }
.account-nav-link.active {
    background: #2563eb;
    color: #fff;
}
.account-nav-link.active .account-nav-icon { opacity: 1; }
.account-nav-logout { margin-top: 0.35rem; border-top: 1px solid var(--color-border); padding-top: 0.5rem; }
.account-content { min-width: 0; }
.account-page-title { margin: 0 0 1rem; color: var(--color-navy); font-size: 1.65rem; }
.account-page-head { margin-bottom: 1rem; }
.account-page-head--split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.account-user-inline { display: flex; align-items: center; gap: 1rem; }
.account-panel {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.account-panel--table { padding: 0; overflow: hidden; }
.account-address-form { margin-bottom: 1rem; }
.account-info-list { margin: 0; }
.account-info-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--color-border);
}
.account-info-row:last-child { border-bottom: 0; }
.account-info-row dt {
    margin: 0;
    font-weight: 600;
    color: var(--color-muted);
}
.account-info-row dd { margin: 0; }
.account-empty-row {
    padding: 1rem 1.25rem;
    background: var(--color-bg);
    color: var(--color-muted);
    text-align: center;
}
.header-user-link {
    text-decoration: none;
    color: #000;
}
.header-user-link:hover {
    color: var(--color-primary);
    text-decoration: none;
}
.account-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.account-stat-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem;
}
.account-stat-label {
    display: block;
    font-size: 0.82rem;
    color: var(--color-muted);
    margin-bottom: 0.35rem;
}
.account-stat-card strong { font-size: 1.5rem; color: var(--color-navy); }
.account-quick-links { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.account-table-wrap { overflow-x: auto; }
.account-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}
.account-table th,
.account-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}
.account-table th { background: var(--color-bg); font-weight: 600; }
.account-empty-box {
    padding: 2rem 1rem;
    text-align: center;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    color: var(--color-muted);
}
.account-download-thumb {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 4px;
    display: inline-block;
    background: var(--color-bg);
}
.account-download-thumb--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}
.account-download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.account-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}
.account-wishlist-card {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
}
.account-wishlist-media img,
.account-wishlist-media .product-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.account-wishlist-body { padding: 0.85rem; }

@media (max-width: 900px) {
    .account-layout {
        grid-template-columns: 1fr;
    }
    .account-stats-grid {
        grid-template-columns: 1fr;
    }
    .header-tool-label { display: none; }
}

.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 190;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 10px;
    background: #42a5d2;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgb(30 58 95 / 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
}
.back-to-top[hidden] { display: none !important; }
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover,
.back-to-top:focus-visible {
    background: #2f95c3;
    outline: none;
}
body.cookie-banner-visible .back-to-top {
    bottom: 5.5rem;
}
@media (max-width: 768px) {
    .back-to-top {
        right: 0.75rem;
        bottom: 0.75rem;
        width: 34px;
        height: 34px;
        border-radius: 8px;
        font-size: 1rem;
        box-shadow: 0 4px 12px rgb(30 58 95 / 0.22);
    }
    body.cookie-banner-visible .back-to-top {
        bottom: 5.75rem;
    }
}
@media (max-width: 480px) {
    .back-to-top {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        right: 0.65rem;
        bottom: 0.65rem;
    }
}
