:root {
    --ink: #15181e;
    --muted: #6d7480;
    --line: #e7e9ee;
    --paper: #ffffff;
    --soft: #f6f7f9;
    --accent: #0f766e;
    --warm: #c07f4f;
    --shadow: 0 18px 55px rgba(17, 24, 39, 0.08);
}

* {
    letter-spacing: 0;
}

body {
    font-family: Inter, Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
}

a {
    color: inherit;
}

a:hover {
    color: var(--accent);
    text-decoration: none;
}

.btn {
    border-radius: 6px;
    font-weight: 700;
}

.btn-dark {
    background: var(--ink);
    border-color: var(--ink);
}

.form-control {
    border-color: var(--line);
    border-radius: 6px;
    min-height: 44px;
}

.store-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(231, 233, 238, 0.8);
}

.store-header-inner {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 28px;
    padding-right: 28px;
}

.store-brand,
.admin-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 800;
}

.store-brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-weight: 800;
}

.store-nav {
    align-items: center;
    gap: 24px;
    font-weight: 700;
    font-size: 14px;
}

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

.store-search {
    align-items: center;
    gap: 8px;
    width: 260px;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--soft);
}

.store-search input {
    border: 0;
    outline: 0;
    background: transparent;
    width: 100%;
}

.icon-link,
.cart-link {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    position: relative;
    background: #fff;
}

.cart-count {
    position: absolute;
    right: -2px;
    top: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.store-hero .carousel-item {
    height: min(74vh, 740px);
    min-height: 560px;
    position: relative;
    background: #111;
}

.store-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 13, 18, 0.72), rgba(10, 13, 18, 0.18));
}

.hero-content {
    position: absolute;
    left: clamp(24px, 8vw, 112px);
    top: 50%;
    transform: translateY(-50%);
    max-width: 620px;
    color: #fff;
}

.hero-content span,
.section-heading span,
.promo-content span,
.newsletter-inner span,
.catalog-title span {
    display: block;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 12px;
}

.hero-content span {
    color: #cceee8;
}

.hero-content h1 {
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    font-weight: 800;
    margin-bottom: 20px;
    max-width: 720px;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
    max-width: 520px;
    margin-bottom: 30px;
}

.section-band {
    padding: 82px 0;
}

.section-heading {
    margin-bottom: 34px;
}

.section-heading h1,
.section-heading h2,
.catalog-title h1 {
    font-weight: 800;
    line-height: 1.05;
    margin: 0;
}

.section-heading h2,
.catalog-title h1 {
    font-size: clamp(32px, 4vw, 52px);
}

.flex-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.category-tile {
    position: relative;
    display: block;
    min-height: 220px;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
}

.category-tile img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    transition: transform 0.3s ease;
    opacity: 0.82;
}

.category-tile span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.category-tile:hover img {
    transform: scale(1.05);
}

.product-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 300px);
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
}

.product-scroll-item {
    scroll-snap-align: start;
}

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

.product-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.product-card-image {
    display: block;
    position: relative;
    aspect-ratio: 4 / 5;
    background: var(--soft);
}

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

.product-card-image .badge {
    position: absolute;
    left: 12px;
    top: 12px;
    border-radius: 999px;
    padding: 7px 10px;
}

.product-card-body {
    padding: 16px;
    min-height: 154px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-category {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.product-card h3 {
    font-size: 17px;
    line-height: 1.3;
    font-weight: 800;
    margin: 6px 0 0;
}

.product-card-bottom,
.price-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.price-line {
    justify-content: flex-start;
}

.old-price {
    color: var(--muted);
    text-decoration: line-through;
    font-size: 14px;
}

.promo-band {
    min-height: 520px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}

.promo-band img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 13, 18, 0.78), rgba(10, 13, 18, 0.18));
}

.promo-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
    margin-left: clamp(24px, 8vw, 112px);
}

.promo-content h2 {
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 800;
    line-height: 1.02;
}

.promo-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
}

.service-strip {
    padding: 58px 0;
    background: #10141b;
    color: #fff;
}

.service-item {
    display: grid;
    gap: 10px;
}

.service-item i {
    color: #8ee3d7;
    font-size: 24px;
}

.service-item h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
}

.service-item p {
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
}

.newsletter-band {
    padding: 76px 0;
    background: var(--soft);
}

.newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.newsletter-inner h2 {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
}

.newsletter-inner form {
    display: flex;
    width: min(100%, 480px);
    gap: 10px;
}

.newsletter-inner input {
    flex: 1;
    min-height: 50px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 16px;
}

.catalog-title {
    padding: 70px 0 34px;
    background: var(--soft);
}

.catalog-shell {
    padding: 42px 0 82px;
}

.filter-panel {
    position: sticky;
    top: 100px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: #fff;
}

.filter-head,
.catalog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.filter-head h2,
.order-summary h2,
.admin-panel h2 {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
}

.filter-group {
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.filter-group label {
    font-weight: 800;
    font-size: 13px;
}

.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.filter-check label {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.filter-check em {
    color: var(--muted);
    font-style: normal;
}

.empty-state {
    padding: 70px 24px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.empty-state h1,
.empty-state h2 {
    font-weight: 800;
}

.product-detail {
    padding: 64px 0 40px;
}

.product-gallery {
    display: grid;
    gap: 14px;
}

.product-gallery img {
    width: 100%;
    border-radius: 8px;
    background: var(--soft);
}

.product-summary {
    position: sticky;
    top: 100px;
    padding-left: 22px;
}

.product-summary h1 {
    font-weight: 800;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.02;
    margin: 10px 0 18px;
}

.price-large {
    justify-content: flex-start;
    font-size: 24px;
    margin-bottom: 20px;
}

.product-buy-form {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    margin: 28px 0 10px;
}

.stock-note {
    color: var(--muted);
    font-size: 14px;
}

.feature-table {
    margin-top: 28px;
    border-top: 1px solid var(--line);
}

.feature-table div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.product-description {
    max-width: 820px;
    margin-top: 48px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.product-description h2 {
    font-weight: 800;
}

.cart-page {
    padding: 70px 0;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.cart-items,
.checkout-form,
.order-summary {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.cart-row {
    display: grid;
    grid-template-columns: 86px 1fr 88px 100px 74px;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--line);
}

.cart-row:last-child {
    border-bottom: 0;
}

.cart-row img {
    width: 86px;
    height: 104px;
    object-fit: cover;
    border-radius: 6px;
}

.cart-row h2 {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
}

.cart-row p {
    margin: 4px 0 0;
    color: var(--muted);
}

.order-summary {
    padding: 22px;
}

.order-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.summary-total {
    font-size: 20px;
}

.checkout-form {
    padding: 22px;
}

.success-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    margin-bottom: 18px;
}

.store-footer {
    padding: 58px 0;
    border-top: 1px solid var(--line);
    background: #fff;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    font-weight: 800;
}

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--soft);
    padding: 24px;
}

.auth-panel {
    width: min(100%, 430px);
    padding: 34px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.auth-title {
    font-size: 30px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 24px;
}

.admin-body {
    background: var(--soft);
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 260px;
    background: #10141b;
    color: #fff;
    padding: 24px 18px;
}

.admin-logo {
    color: #fff;
    margin-bottom: 28px;
}

.admin-logo:hover {
    color: #fff;
}

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

.admin-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.76);
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 700;
}

.admin-sidebar nav a.active,
.admin-sidebar nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.admin-shell {
    margin-left: 260px;
    padding: 28px;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-topbar h1 {
    font-size: 30px;
    font-weight: 800;
    margin: 0;
}

.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-panel,
.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 35px rgba(17, 24, 39, 0.04);
}

.admin-panel {
    padding: 22px;
}

.admin-panel .table-responsive {
    margin: 0 -22px -22px;
}

.admin-panel .table {
    background: #fff;
}

.admin-panel-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.admin-panel-head p {
    color: var(--muted);
    margin: 6px 0 0;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.stat-card {
    padding: 20px;
}

.stat-card span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.stat-card strong {
    display: block;
    font-size: 30px;
    margin-top: 8px;
}

.mini-product,
.feature-value-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.mini-product:last-child,
.feature-value-row:last-child {
    border-bottom: 0;
}

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

.table-product img {
    width: 48px;
    height: 58px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--soft);
}

.table-product span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.admin-filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 110px;
    gap: 12px;
    margin-bottom: 18px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(340px, 0.7fr);
    gap: 24px;
}

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

.feature-value-list {
    margin-bottom: 20px;
}

.feature-search-box {
    position: relative;
}

.feature-search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 30;
    max-height: 280px;
    overflow-y: auto;
    display: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.feature-search-result {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
    text-align: left;
}

.feature-search-result:last-child {
    border-bottom: 0;
}

.feature-search-result:hover,
.feature-search-result:focus {
    background: var(--soft);
    outline: 0;
}

.feature-search-result strong {
    font-size: 14px;
}

.feature-search-result span,
.feature-search-empty {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.feature-search-empty {
    padding: 12px 14px;
}

.feature-value-row span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.feature-value-row strong {
    font-size: 18px;
}

.section-builder-form {
    padding-bottom: 4px;
}

.admin-live-alert {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2000;
    max-width: 360px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #10141b;
    color: #fff;
    box-shadow: var(--shadow);
}

@media (max-width: 1199px) {
    .category-grid,
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 991px) {
    .store-header-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .store-hero .carousel-item {
        min-height: 520px;
    }

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

    .cart-layout,
    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .product-summary {
        position: static;
        padding-left: 0;
        margin-top: 28px;
    }

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

    .admin-shell {
        margin-left: 0;
        padding: 18px;
    }

    .admin-sidebar nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .section-band,
    .cart-page {
        padding: 52px 0;
    }

    .flex-heading,
    .newsletter-inner,
    .admin-topbar {
        align-items: stretch;
        flex-direction: column;
    }

    .newsletter-inner form,
    .product-buy-form {
        grid-template-columns: 1fr;
        display: grid;
        width: 100%;
    }

    .category-grid,
    .product-grid {
        grid-template-columns: 1fr;
    }

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

    .cart-row img {
        width: 72px;
        height: 86px;
    }

    .cart-row input,
    .cart-row strong,
    .cart-row button {
        grid-column: 2;
    }

    .footer-links {
        justify-content: flex-start;
        margin-top: 24px;
        flex-wrap: wrap;
    }

    .stat-grid,
    .admin-filter-row {
        grid-template-columns: 1fr;
    }
}
