html {
    font-size: 16px;
}

body {
    margin: 0;
    color: #22304f;
    background: #f7f5f1;
    font-family: "Segoe UI", Arial, sans-serif;
}

a {
    color: #1d376d;
    text-decoration: none;
}

a:hover {
    color: #142452;
}

.site-shell {
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}

.site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e6e0d7;
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header--overlay {
    background: linear-gradient(180deg, rgba(16, 22, 34, 0.7), rgba(16, 22, 34, 0.14));
    border-bottom-color: rgba(255, 255, 255, 0.14);
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
}

.site-header__inner {
    align-items: center;
    gap: 28px;
    min-height: 92px;
}

.site-header__nav {
    align-items: center;
    flex-grow: 1;
    justify-content: space-between;
}

.site-nav {
    padding-bottom: 0;
    padding-top: 0;
}

.brand {
    display: grid;
    gap: 4px;
    margin-right: 28px;
}

.brand__name {
    color: #12213f;
    display: block;
    font-size: 1.2rem;
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

.brand__tag {
    color: #68738d;
    display: block;
    font-size: 0.73rem;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.site-nav__links {
    align-items: center;
    gap: 20px;
}

.navbar .nav-link {
    color: #233255;
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-transform: uppercase;
}

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

.nav-user {
    color: #5f6b84;
    font-size: 0.9rem;
}

.site-main {
    min-height: calc(100vh - 140px);
}

.site-footer {
    background: #1a2232;
    color: #f4efe8;
    font-size: 0.9rem;
    padding: 22px 0;
}

.site-footer .site-shell {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.btn {
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0;
    padding: 0.72rem 1.1rem;
}

.btn-sm {
    padding: 0.5rem 0.9rem;
}

.btn-primary {
    background: #223a77;
    border-color: #223a77;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #182b58;
    border-color: #182b58;
}

.btn-outline-primary {
    border-color: #223a77;
    color: #223a77;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: #223a77;
    border-color: #223a77;
    color: #ffffff;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.76);
    color: #ffffff;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background: rgba(255, 255, 255, 0.14);
    border-color: #ffffff;
    color: #ffffff;
}

.home-page .brand__name,
.home-page .brand__tag,
.home-page .navbar .nav-link,
.home-page .nav-user,
.home-page .btn-link.nav-link {
    color: #ffffff;
}

.home-page .navbar .nav-link:hover,
.home-page .btn-link.nav-link:hover {
    color: rgba(255, 255, 255, 0.82);
}

.hero-stage {
    background:
        linear-gradient(90deg, rgba(19, 25, 37, 0.8) 0%, rgba(24, 31, 45, 0.56) 42%, rgba(27, 35, 50, 0.28) 100%),
        url("/uploads/imported/categories/vanity-1-cc8c38771d5c.jpg");
    background-position: center;
    background-size: cover;
    min-height: 780px;
    position: relative;
}

.hero-stage::after {
    background: linear-gradient(180deg, rgba(247, 245, 241, 0) 0%, rgba(247, 245, 241, 1) 100%);
    bottom: 0;
    content: "";
    height: 110px;
    left: 0;
    position: absolute;
    right: 0;
}

.hero-stage__content {
    align-items: end;
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 360px);
    min-height: 780px;
    padding-bottom: 94px;
    padding-top: 190px;
    position: relative;
    z-index: 1;
}

.hero-stage__copy {
    color: #ffffff;
    max-width: 760px;
}

.hero-kicker,
.eyebrow {
    color: #cfd8ec;
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-stage__copy h1 {
    color: #ffffff;
    font-size: clamp(3rem, 5vw, 5.2rem);
    line-height: 0.98;
    margin: 18px 0 20px;
    max-width: 860px;
}

.hero-stage__copy p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.08rem;
    line-height: 1.8;
    margin: 0;
    max-width: 650px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-stage__panel {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    color: #ffffff;
    display: grid;
    gap: 18px;
    padding: 22px;
    backdrop-filter: blur(14px);
}

.hero-stage__label {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-stage__collections {
    display: grid;
    gap: 14px;
}

.hero-stage__collections article {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    display: grid;
    gap: 4px;
    padding-top: 14px;
}

.hero-stage__collections article:first-child {
    border-top: 0;
    padding-top: 0;
}

.hero-stage__collections strong {
    font-size: 1rem;
    font-weight: 700;
}

.hero-stage__collections span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    line-height: 1.5;
}

.home-strip {
    margin-top: -26px;
    position: relative;
    z-index: 2;
}

.home-strip__grid {
    background: #f2eee8;
    border: 1px solid #e4ddd2;
    border-radius: 4px;
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
}

.home-strip__grid article {
    background: rgba(255, 255, 255, 0.48);
    display: grid;
    gap: 8px;
    padding: 22px 24px;
}

.home-strip__grid strong {
    color: #152445;
    font-size: 0.96rem;
    text-transform: uppercase;
}

.home-strip__grid span {
    color: #57637d;
    line-height: 1.6;
}

.page-shell {
    max-width: 1440px;
    margin: 0 auto;
    padding: 48px 32px 64px;
}

.products-landing {
    padding-top: 10px;
}

.home-section {
    padding-top: 56px;
}

.home-section--narrow {
    padding-top: 12px;
}

.section-heading {
    align-items: end;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    margin-bottom: 28px;
}

.section-heading h2 {
    color: #132142;
    font-size: clamp(2rem, 3.2vw, 3.1rem);
    line-height: 1.03;
    margin: 14px 0 0;
}

.section-heading p {
    color: #5b6681;
    line-height: 1.8;
    margin: 0;
}

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

.collection-card {
    background: #ffffff;
    border: 1px solid #e6e0d7;
    border-radius: 4px;
    overflow: hidden;
}

.collection-card img {
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    width: 100%;
}

.collection-card__body {
    display: grid;
    gap: 10px;
    padding: 22px;
}

.collection-card__body span {
    color: #7a6751;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.collection-card__body h3 {
    color: #152445;
    font-size: 1.3rem;
    margin: 0;
}

.collection-card__body p {
    color: #59657f;
    line-height: 1.7;
    margin: 0;
}

.editorial-band {
    background: #ffffff;
    border: 1px solid #e6e0d7;
    border-radius: 4px;
    display: grid;
    gap: 26px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    padding: 30px;
}

.editorial-band h2 {
    color: #132142;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.08;
    margin: 14px 0 0;
}

.editorial-band__list {
    display: grid;
    gap: 14px;
}

.editorial-band__list p {
    border-top: 1px solid #ece6de;
    color: #57637d;
    line-height: 1.7;
    margin: 0;
    padding-top: 14px;
}

.editorial-band__list p:first-child {
    border-top: 0;
    padding-top: 0;
}

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

.page-title h1 {
    color: #132142;
    font-size: clamp(2rem, 3.4vw, 3rem);
    margin: 8px 0 0;
}

.page-title--catalog {
    align-items: center;
}

.catalog-note {
    color: #5d6884;
    line-height: 1.7;
}

.catalog-header__actions {
    align-items: end;
    display: grid;
    gap: 10px;
    justify-items: end;
}

.catalog-header__status {
    color: #7a6751;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.category-widget-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.category-widget-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.category-widget-card {
    background: #ffffff;
    border: 1px solid #e6e0d7;
    border-radius: 4px;
    color: #22304f;
    display: grid;
    grid-template-rows: 180px minmax(0, 1fr);
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.category-widget-card:hover {
    border-color: #ccd6ea;
    box-shadow: 0 14px 30px rgba(17, 32, 61, 0.08);
    color: #132142;
    transform: translateY(-2px);
}

.category-widget-card--compact {
    grid-template-rows: 150px minmax(0, 1fr);
}

.category-widget-card__image {
    background: #eff3f8;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.category-widget-card__content {
    display: grid;
    gap: 10px;
    padding: 18px 20px 20px;
}

.category-widget-card strong {
    color: #152445;
    font-size: 1.1rem;
    line-height: 1.35;
}

.category-widget-card__meta {
    color: #60708e;
    line-height: 1.6;
}

.panel {
    background: #ffffff;
    border: 1px solid #e6e0d7;
    border-radius: 4px;
}

.panel-header {
    background: #eff2f8;
    border-bottom: 1px solid #e0e7f2;
    color: #12213f;
    font-weight: 800;
    padding: 15px 18px;
}

.panel-body {
    padding: 18px;
}

.admin-layout,
.catalog-layout {
    display: grid;
    gap: 24px;
    grid-template-columns: 280px minmax(0, 1fr);
}

.side-menu {
    background: #ffffff;
    border: 1px solid #e6e0d7;
    border-radius: 4px;
    padding: 14px 16px;
}

.side-menu a {
    display: block;
    text-decoration: none;
}

.side-menu a.active,
.side-menu a:hover {
    color: #132142;
}

.side-menu--catalog {
    position: sticky;
    top: 108px;
}

.category-link {
    align-items: start;
    border-bottom: 1px solid #eef1f5;
    color: #5b6681;
    display: block;
    padding: 12px 2px;
}

.category-link:last-child {
    border-bottom: 0;
}

.category-link__label {
    display: block;
    line-height: 1.45;
}

.category-link.active .category-link__label,
.category-link:hover .category-link__label {
    color: #132142;
}

.category-link.depth-0 {
    padding-left: 2px;
}

.category-link.depth-0 .category-link__label {
    color: #2c3956;
}

.category-link.depth-1 {
    padding-left: 24px;
}

.category-link.depth-1 .category-link__label {
    color: #52607a;
}

.category-link.depth-2 {
    padding-left: 46px;
}

.category-link.depth-2 .category-link__label {
    color: #6c7890;
}

.category-link.depth-3 {
    padding-left: 68px;
}

.category-link.depth-3 .category-link__label {
    color: #8892a6;
}

.category-link.active.depth-0 .category-link__label,
.category-link.active.depth-1 .category-link__label,
.category-link.active.depth-2 .category-link__label,
.category-link.active.depth-3 .category-link__label,
.category-link:hover.depth-0 .category-link__label,
.category-link:hover.depth-1 .category-link__label,
.category-link:hover.depth-2 .category-link__label,
.category-link:hover.depth-3 .category-link__label {
    color: #132142;
}

.catalog-panel__header {
    font-size: 0.94rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.data-table {
    background: #ffffff;
    border-collapse: collapse;
    width: 100%;
}

.data-table th {
    background: #e8edf8;
    border-bottom: 1px solid #dde4f1;
    color: #11203d;
    font-size: 0.79rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 15px 12px;
    text-transform: uppercase;
}

.data-table td {
    border-bottom: 1px solid #e7ebf2;
    color: #253353;
    padding: 15px 12px;
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: #fbfcff;
}

.product-thumb {
    aspect-ratio: 1;
    background: #f3f5f9;
    border: 1px solid #dde4ef;
    object-fit: contain;
    width: 84px;
}

.product-row__sku {
    color: #132142;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.product-row__link {
    color: #1d376d;
}

.product-row__description {
    color: #5d6884;
    line-height: 1.55;
    margin-top: 6px;
}

.catalog-order-form .form-label {
    color: #5b6681;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.catalog-order-form .form-select {
    border-color: #d6deeb;
    border-radius: 4px;
}

.qty-control {
    display: grid;
    grid-template-columns: 42px 52px 42px;
}

.qty-control button,
.qty-control input {
    background: #ffffff;
    border: 1px solid #d7deea;
    height: 42px;
    text-align: center;
}

.qty-control button {
    color: #1d376d;
    font-weight: 700;
}

.auth-box {
    margin: 84px auto;
    max-width: 460px;
}

.metric-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.metric {
    background: #ffffff;
    border: 1px solid #e6e0d7;
    border-radius: 4px;
    padding: 18px;
}

.metric strong {
    display: block;
    font-size: 1.8rem;
}

.metric span {
    color: #627096;
}

.stack-layout {
    display: grid;
    gap: 24px;
}

.section-title {
    color: #142452;
    font-size: 1.05rem;
    margin: 0 0 16px;
}

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

.import-guide-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.import-guide-card {
    background: #f8faff;
    border: 1px solid #dbe2f0;
    border-radius: 8px;
    display: grid;
    gap: 6px;
    padding: 16px;
}

.import-guide-card strong {
    color: #142452;
}

.import-guide-card span {
    color: #5b668b;
    font-size: 0.94rem;
}

.info-callout {
    background: #f8faff;
    border: 1px solid #dbe2f0;
    border-radius: 8px;
    padding: 16px 18px;
}

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

.detail-grid > div {
    background: #f8faff;
    border: 1px solid #dbe2f0;
    border-radius: 8px;
    display: grid;
    gap: 4px;
    padding: 14px;
}

.detail-grid strong {
    color: #536084;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.code-area {
    font-family: Consolas, "Courier New", monospace;
    min-height: 180px;
}

.content-shell {
    max-width: 980px;
    margin: 0 auto;
}

.content-title {
    color: #101d44;
    font-size: 3rem;
    line-height: 1.05;
    margin: 14px 0 22px;
}

.content-render {
    color: #314067;
    font-size: 1.02rem;
    line-height: 1.8;
}

.content-render img {
    height: auto;
    max-width: 100%;
}

.content-card-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.content-card {
    background: #ffffff;
    border: 1px solid #e6e0d7;
    border-radius: 4px;
    overflow: hidden;
}

.content-card__image {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
}

.content-card__body {
    padding: 18px;
}

.content-card__body h2 {
    font-size: 1.15rem;
    margin: 0 0 10px;
}

.content-card__body p {
    color: #5b668b;
    margin: 0;
}

.content-hero-image {
    border: 1px solid #dbe2f0;
    border-radius: 8px;
    height: auto;
    margin-bottom: 20px;
    max-width: 100%;
}

.product-detail-layout {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

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

.gallery-grid__image {
    aspect-ratio: 1;
    background: #f1f4fa;
    border: 1px solid #dbe2f0;
    border-radius: 8px;
    object-fit: contain;
    width: 100%;
}

.simple-list {
    margin: 0;
    padding-left: 18px;
}

.simple-list li + li {
    margin-top: 8px;
}

.checkout-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
}

.summary-list {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.summary-label {
    color: #6b7280;
    display: block;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.summary-total {
    align-items: center;
    border-top: 1px solid #dbe2f0;
    display: flex;
    font-size: 1.05rem;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
}

.payment-card {
    background: #fff;
    border: 1px solid #dbe2f0;
    border-radius: 8px;
    display: grid;
    gap: 14px;
    padding: 16px;
}

.payment-card--disabled {
    background: #f8fafc;
}

.payment-card__header h3 {
    font-size: 1.1rem;
    margin: 0 0 6px;
}

.payment-card__header p,
.payment-note {
    color: #52607a;
    margin: 0;
}

.category-path-list {
    display: grid;
    gap: 6px;
}

.category-path-chip {
    background: #f4f6fb;
    border: 1px solid #dbe2f0;
    border-radius: 6px;
    display: inline-block;
    padding: 4px 8px;
}

.category-tree-option {
    border: 1px solid #dbe2f0;
    border-radius: 8px;
    display: block;
    padding: 10px 12px;
}

.category-tree-row {
    border-left: 2px solid #dbe2f0;
    min-width: 220px;
    padding-bottom: 2px;
    padding-top: 2px;
}

.stock-pill {
    background: #f2f4f8;
    border: 1px solid #d7deea;
    border-radius: 999px;
    color: #55627d;
    display: inline-flex;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 10px;
}

.stock-pill--ok {
    background: #eaf8ef;
    border-color: #c7ead1;
    color: #1d6a39;
}

#paypal-button-container {
    min-height: 44px;
}

.status-banner {
    border-radius: 8px;
    padding: 16px 18px;
}

.status-banner--success {
    background: #eaf8ef;
    color: #14532d;
}

.status-banner--warning {
    background: #fff7e6;
    color: #8a4b08;
}

@media (min-width: 992px) {
    .site-header__nav {
        display: flex !important;
    }
}

@media (max-width: 991px) {
    .site-header,
    .site-header--overlay {
        position: sticky;
    }

    .site-header--overlay {
        background: rgba(16, 22, 34, 0.94);
    }

    .site-header__nav {
        margin-top: 16px;
    }

    .site-nav__links {
        gap: 10px;
    }

    .nav-actions {
        align-items: stretch;
        flex-direction: column;
        margin-top: 16px;
    }

    .nav-actions .btn,
    .nav-actions form {
        width: 100%;
    }

    .page-title,
    .section-heading,
    .editorial-band,
    .home-strip__grid,
    .home-section,
    .home-strip__grid,
    .home-strip__grid article,
    .admin-layout,
    .catalog-layout,
    .checkout-grid,
    .product-detail-layout,
    .metric-grid,
    .collection-grid,
    .hero-stage__content {
        grid-template-columns: 1fr;
    }

    .hero-stage {
        min-height: 680px;
    }

    .hero-stage__content {
        min-height: 680px;
        padding-top: 150px;
    }

    .hero-stage__panel {
        justify-self: stretch;
    }

    .catalog-header__actions {
        justify-items: start;
    }

    .side-menu--catalog {
        position: static;
    }

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

@media (max-width: 640px) {
    .site-shell,
    .page-shell {
        padding-left: 18px;
        padding-right: 18px;
    }

    .site-footer .site-shell,
    .page-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand__tag {
        font-size: 0.68rem;
        max-width: 170px;
    }

    .hero-stage__copy h1 {
        font-size: 2.55rem;
    }

    .qty-control {
        grid-template-columns: 38px 44px 38px;
    }

    .product-thumb {
        width: 68px;
    }
}
