.nav-sale {
    color: var(--secondary);
}

.section-soft {
    background: var(--card-bg);
}

.narrow {
    max-width: 920px;
}

.cg-hero-slider {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: #0b1220;
}

.cg-hero-slide {
    display: grid;
    grid-template-columns: minmax(360px, 50%) minmax(0, 50%);
    min-height: 560px;
}

.cg-hero-slider .cg-hero-slide {
    display: none;
}

.cg-hero-slider .cg-hero-slide.active {
    display: grid;
}

.cg-hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    padding: 64px max(28px, calc((100vw - 1280px) / 2)) 64px max(28px, calc((100vw - 1280px) / 2));
    color: #fff;
    clip-path: polygon(0 0, 100% 0, calc(100% - 74px) 100%, 0 100%);
    background: linear-gradient(135deg, #101827 0%, #1b3764 52%, #14b8a6 100%);
}

.cg-hero-copy::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 110px;
    clip-path: polygon(38% 0, 100% 0, 62% 100%, 0 100%);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.cg-hero-copy h1 {
    max-width: 620px;
    font-size: 3rem;
    line-height: 1.08;
    letter-spacing: 0;
}

.cg-hero-copy p {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
    line-height: 1.7;
}

.cg-hero-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cg-hero-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
}

.cg-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cg-hero-media {
    min-width: 0;
    margin-left: -74px;
    clip-path: polygon(74px 0, 100% 0, 100% 100%, 0 100%);
}

.cg-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cg-hero-empty {
    display: grid;
    place-content: center;
    gap: 10px;
    min-height: 420px;
    padding: 40px;
    text-align: center;
    color: var(--text-primary);
}

.cg-slider-btn {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    cursor: pointer;
}

.cg-slider-btn.prev {
    left: 18px;
}

.cg-slider-btn.next {
    right: 18px;
}

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

.feature-item,
.account-card,
.empty-state,
.auth-panel,
.bank-box {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.feature-item i,
.empty-state i {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 12px;
}

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.product-filter-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.product-filter-form .filter-select {
    min-width: 170px;
}

.content-with-sidebar {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.content-with-sidebar > aside {
    width: 280px;
    min-width: 280px;
}

.content-with-sidebar > main {
    min-width: 0;
}

.content-with-sidebar .sidebar-categories {
    width: 100%;
    position: sticky;
    top: 18px;
    overflow: visible;
}

.content-with-sidebar .sidebar-link {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    text-align: left;
}

.content-with-sidebar .sidebar-item {
    display: block;
    width: 100%;
}

.content-with-sidebar .sidebar-submenu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-height: none;
    overflow: visible;
}

.content-with-sidebar .sidebar-item:hover .sidebar-submenu {
    display: flex;
    max-height: none;
}

.content-with-sidebar .sidebar-submenu a {
    display: block;
    width: 100%;
    text-align: left;
}

.main-nav .nav-inner {
    position: relative;
}

.main-nav .nav-item {
    position: static;
}

.main-nav .mega-menu-wide {
    left: 0;
    right: auto;
    width: min(900px, calc(100vw - 40px));
    min-width: 0;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 22px;
    padding: 22px 24px;
}

.main-nav .mega-col h4 {
    margin-bottom: 10px;
    line-height: 1.35;
}

.main-nav .mega-col ul li a {
    padding: 7px 0;
    line-height: 1.35;
}

.sidebar-categories .sidebar-header {
    padding: 14px 18px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.sidebar-categories .sidebar-link {
    padding: 11px 18px;
}

.sidebar-categories .sidebar-submenu {
    width: 100%;
    max-height: none;
    overflow: visible;
    padding: 4px 0 8px 30px;
}

.sidebar-categories .sidebar-submenu a {
    padding: 7px 10px;
    font-size: 0.84rem;
    line-height: 1.25;
}

.sidebar-categories .sidebar-grandchildren {
    gap: 0;
    padding-left: 12px;
}

.sidebar-categories .sidebar-grandchildren a {
    padding: 6px 10px;
}

.content-with-sidebar .sidebar-link.active,
.content-with-sidebar .sidebar-submenu a.active {
    color: var(--text-primary);
    font-weight: 700;
}

.content-with-sidebar .sidebar-link.active {
    background: rgba(255, 255, 255, 0.02);
    border-left-color: rgba(255, 255, 255, 0.12);
}

.content-with-sidebar .sidebar-link.active .count {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.content-with-sidebar .sidebar-link:hover,
.content-with-sidebar .sidebar-submenu a:hover,
.content-with-sidebar .sidebar-link.active:hover,
.content-with-sidebar .sidebar-submenu a.active:hover {
    color: var(--primary);
}

.content-with-sidebar .sidebar-grandchildren {
    display: grid;
    gap: 4px;
    padding-left: 12px;
}

.content-with-sidebar .sidebar-grandchildren a {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.content-with-sidebar .sidebar-link .count {
    margin-left: auto;
}

.content-with-sidebar .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.content-with-sidebar .product-card {
    border-radius: 8px;
}

.content-with-sidebar .product-image {
    aspect-ratio: 4 / 3;
    padding: 12px;
}

.content-with-sidebar .product-info {
    padding: 16px;
}

.content-with-sidebar .product-category {
    font-size: 0.72rem;
    margin-bottom: 6px;
    letter-spacing: 0;
}

.content-with-sidebar .product-title {
    font-size: 0.92rem;
    line-height: 1.3;
}

.content-with-sidebar .product-rating {
    margin-bottom: 8px;
}

.content-with-sidebar .price-current {
    font-size: 1.08rem;
}

.content-with-sidebar .price-old {
    font-size: 0.78rem;
}

.content-with-sidebar .add-to-cart {
    margin-top: 12px;
    padding: 10px;
    font-size: 0.82rem;
}

.gallery-main {
    position: relative;
}

.gallery-main .js-gallery-main {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.gallery-thumb {
    border: 2px solid transparent;
    cursor: pointer;
}

.gallery-thumb.active {
    border-color: var(--primary);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}

.service-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}

.service-strip span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.product-tabs pre {
    white-space: pre-wrap;
    line-height: 1.8;
    font-family: inherit;
}

.product-tabs {
    margin-top: 42px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    overflow: hidden;
}

.product-tabs .tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-bottom: 1px solid var(--border);
    background: var(--card-bg);
}

.product-tabs .tab-buttons button {
    min-height: 54px;
    padding: 0 22px;
    border: 0;
    border-right: 1px solid var(--border);
    color: var(--text-secondary);
    background: transparent;
    cursor: pointer;
    font-weight: 800;
}

.product-tabs .tab-buttons button.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.product-tabs.js-tabs .tab-panel {
    display: none;
    padding: 28px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.product-tabs.js-tabs .tab-panel.active {
    display: block;
}

.product-short-description,
.product-long-description {
    display: grid;
    gap: 10px;
}

.product-short-description {
    margin-bottom: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.product-short-description h3,
.product-long-description h3 {
    color: var(--text-primary);
    font-size: 1.05rem;
}

.product-copy {
    max-width: 1180px;
    color: var(--text-secondary);
    line-height: 1.85;
    white-space: normal;
}

.tech-spec-list {
    display: grid;
    gap: 8px;
    max-width: 980px;
}

.tech-spec-row {
    display: grid;
    grid-template-columns: minmax(150px, 230px) 18px minmax(0, 1fr);
    align-items: baseline;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.025);
}

.tech-spec-label {
    color: var(--text-secondary);
    font-weight: 700;
}

.tech-spec-separator {
    color: var(--primary);
    font-weight: 900;
    text-align: center;
}

.tech-spec-value {
    color: var(--text-primary);
    font-weight: 700;
}

.stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 900;
    letter-spacing: 0;
}

.product-detail-meta {
    align-items: flex-start;
}

.product-detail-meta .stock-pill {
    margin-top: -7px;
    padding: 7px 11px;
    line-height: 1.2;
}

.product-detail-actions .js-favorite-toggle.is-active {
    color: #fff;
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.18);
}

.stock-pill.in-stock {
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.14);
}

.stock-pill.out-of-stock {
    color: #fecaca;
    border: 1px solid rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.16);
}

.reviews-list {
    display: grid;
    gap: 14px;
}

.review-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
}

.review-avatar {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-weight: 900;
}

.review-body {
    min-width: 0;
}

.review-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.review-head strong {
    display: block;
    color: var(--text-primary);
}

.review-head span:not(.stars) {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.review-body p {
    color: var(--text-secondary);
    line-height: 1.75;
}

.cart-qty-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cart-qty-input {
    width: 72px;
    min-height: 38px;
    text-align: center;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.summary-row.total {
    font-size: 1.12rem;
    border-bottom: 0;
}

.checkout-form h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.optional,
.muted-link {
    color: var(--text-muted);
}

.check-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
}

.auth-register-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.auth-register-callout span {
    color: var(--text-secondary);
    font-weight: 700;
}

.auth-register-callout .btn {
    min-width: 150px;
    justify-content: center;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    color: #fff;
    background: var(--surface-hover);
    font-weight: 900;
}

.btn-secondary:hover {
    color: #fff;
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.12);
}

.agreement-line {
    align-items: flex-start;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.agreement-line input {
    margin-top: 5px;
}

.agreement-link {
    display: inline;
    color: var(--primary);
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.agreement-link:hover {
    color: #fff;
}

.modal-open {
    overflow: hidden;
}

.agreement-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.agreement-modal[hidden] {
    display: none;
}

.agreement-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
}

.agreement-modal-panel {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: min(720px, calc(100vh - 40px));
    overflow: auto;
    padding: 28px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--card-bg);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.agreement-modal-panel h2 {
    padding-right: 44px;
    margin-bottom: 18px;
}

.agreement-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--text-secondary);
    background: var(--surface);
}

.agreement-close:hover {
    color: #fff;
    background: var(--danger);
}

.agreement-text {
    display: grid;
    gap: 12px;
    max-height: 430px;
    overflow: auto;
    margin-bottom: 20px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    background: var(--darker);
}

.agreement-text h3 {
    color: var(--text-primary);
    font-size: 1rem;
}

.notice {
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 6px;
    background: rgba(34, 197, 94, 0.14);
    color: var(--success);
}

.notice.error {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
}

.auth-layout,
.contact-layout,
.account-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-bottom: 28px;
}

.contact-grid .contact-address-card {
    grid-column: 1 / -1;
}

.contact-info-card {
    min-height: 178px;
}

.account-shell {
    grid-template-columns: 260px minmax(0, 1fr);
}

.account-menu {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.header-account-action {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 12px;
    align-items: center;
    gap: 9px;
    min-width: 176px;
    max-width: 220px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-primary);
    text-align: left;
}

.header-account-action:hover {
    border-color: rgba(0, 212, 255, 0.42);
    background: rgba(0, 212, 255, 0.08);
}

.header-account-action .account-action-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: var(--glow-primary);
}

.header-account-action .account-action-icon i {
    font-size: 1rem;
}

.header-account-action .account-action-copy {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 7px;
}

.header-account-action .account-action-copy strong,
.header-account-action .account-action-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-account-action .account-action-copy strong {
    flex: 0 0 auto;
    color: var(--text-primary);
    font-size: 0.82rem;
    line-height: 1.15;
}

.header-account-action .account-action-copy span {
    min-width: 0;
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.1;
}

.header-account-action .account-action-arrow {
    color: var(--text-muted);
    font-size: 0.68rem;
}

.header-account-action.is-guest {
    min-width: 154px;
}

.header-account-action.is-guest .account-action-copy span {
    color: var(--text-muted);
}

.account-user-card {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 16px 10px 18px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.account-avatar {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: var(--glow-primary);
}

.account-user-card strong,
.account-user-card small {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-user-card small {
    color: var(--text-muted);
}

.account-user-card em {
    padding: 4px 9px;
    border-radius: 999px;
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
}

.account-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 6px;
    color: var(--text-secondary);
}

.account-menu a.active,
.account-menu a:hover {
    color: #fff;
    background: var(--primary);
}

.account-content {
    display: grid;
    gap: 20px;
}

.account-hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background:
        linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(124, 58, 237, 0.08)),
        var(--surface);
}

.account-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--primary);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.account-hero-card h2 {
    margin-bottom: 4px;
}

.account-hero-card p {
    color: var(--text-secondary);
}

.account-status {
    display: grid;
    justify-items: center;
    gap: 4px;
    min-width: 150px;
    padding: 16px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 8px;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.12);
}

.account-status.verified {
    border-color: rgba(34, 197, 94, 0.38);
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
}

.account-status i {
    font-size: 1.5rem;
}

.account-card h2 {
    margin-bottom: 18px;
}

.account-form .btn {
    margin-top: 4px;
}

.account-address-list {
    display: grid;
    gap: 12px;
}

.account-address-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
}

.account-address-card strong {
    color: var(--text-primary);
}

.account-address-card span {
    display: inline-flex;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #86efac;
    background: rgba(34, 197, 94, 0.12);
    font-size: 0.72rem;
    font-weight: 900;
}

.account-address-card p,
.account-address-card small {
    display: block;
    margin-top: 6px;
    color: var(--text-secondary);
}

.account-address-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    min-width: 180px;
}

.account-address-actions a {
    padding: 7px 9px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    background: var(--surface);
    font-size: 0.78rem;
    font-weight: 800;
}

.account-address-actions a:hover {
    color: #fff;
    border-color: var(--primary);
}

.account-address-actions a.danger {
    color: #fecaca;
    border-color: rgba(239, 68, 68, 0.35);
}

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

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

.order-status {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--primary);
    background: rgba(0, 212, 255, 0.12);
    font-size: 0.78rem;
    font-weight: 800;
}

.empty-state.compact {
    padding: 22px;
    background: var(--card-bg);
}

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

.account-favorites-grid.products-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.account-favorites-grid .product-card {
    border-radius: 8px;
}

.account-favorites-grid .product-image {
    aspect-ratio: 4 / 3;
    max-height: 260px;
    padding: 12px;
}

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

.account-favorites-grid .product-info {
    padding: 16px;
}

.account-favorites-grid .product-category {
    font-size: 0.72rem;
    margin-bottom: 6px;
    letter-spacing: 0;
}

.account-favorites-grid .product-title {
    font-size: 0.94rem;
    line-height: 1.35;
}

.account-favorites-grid .price-current {
    font-size: 1.08rem;
}

.account-favorites-grid .price-old {
    font-size: 0.78rem;
}

.account-favorites-grid .add-to-cart {
    margin-top: 12px;
    padding: 10px;
    font-size: 0.82rem;
}

.favorite-product-card {
    position: relative;
}

.favorite-remove-form {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
}

.favorite-mini-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 112px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
}

.favorite-mini-image {
    position: relative;
    display: block;
    width: 112px;
    height: 84px;
    overflow: hidden;
    border-radius: 6px;
    background: var(--darker);
}

.favorite-mini-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorite-mini-image span {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 3px 6px;
    border-radius: 4px;
    color: #fff;
    background: var(--danger);
    font-size: 0.72rem;
    font-weight: 900;
}

.favorite-mini-body {
    min-width: 0;
}

.favorite-mini-body span {
    display: block;
    margin-bottom: 5px;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.favorite-mini-body h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin: 0 0 7px;
    color: var(--text-primary);
    font-size: 0.92rem;
    line-height: 1.35;
}

.favorite-mini-body strong {
    color: var(--primary);
    font-size: 1rem;
}

.favorite-mini-actions {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.favorite-mini-actions .btn {
    min-width: 92px;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
}

.favorite-remove {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 6px;
    color: #fecaca;
    background: rgba(239, 68, 68, 0.12);
}

.favorite-remove:hover {
    color: #fff;
    background: var(--danger);
}

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

.stats-grid span,
.stats-grid a {
    display: grid;
    gap: 6px;
    padding: 18px;
    border-radius: 8px;
    background: var(--card-bg);
}

.stats-grid a:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
}

.stats-grid strong {
    color: var(--primary);
    font-size: 1.4rem;
}

.map-wrap iframe {
    width: 100%;
    min-height: 430px;
    border: 0;
    border-radius: 8px;
}

.contact-newsletter {
    margin-top: 30px;
}

.bank-box {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.footer .footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.35fr) repeat(4, minmax(140px, 0.9fr));
    gap: 28px;
    align-items: start;
}

.footer .footer-col {
    min-width: 0;
}

.footer .footer-brand p {
    max-width: 360px;
}

.policy-card {
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
}

.policy-content {
    color: var(--text-secondary);
    line-height: 1.85;
    white-space: normal;
}

.policy-admin-form {
    gap: 22px;
}

.policy-admin-block {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
}

.policy-active-line {
    align-self: end;
    min-height: 44px;
    margin: 0;
}

.empty-state {
    display: grid;
    justify-items: center;
    gap: 12px;
    text-align: center;
}

.empty-state.success i {
    color: var(--success);
}

@media (max-width: 992px) {
    .cg-hero-slide,
    .auth-layout,
    .contact-layout,
    .account-shell {
        grid-template-columns: 1fr;
    }

    .cg-hero-copy {
        clip-path: none;
        padding-right: 28px;
    }

    .cg-hero-copy::after {
        display: none;
    }

    .cg-hero-media {
        margin-left: 0;
        clip-path: none;
    }

    .feature-grid,
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .content-with-sidebar > aside {
        width: 100%;
        min-width: 0;
    }

    .content-with-sidebar .sidebar-categories {
        position: static;
    }

    .content-with-sidebar .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .account-favorites {
        grid-template-columns: 1fr;
    }

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

    .account-favorites-grid.products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .cg-hero-copy h1 {
        font-size: 2.1rem;
    }

    .feature-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .products-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .product-filter-form {
        justify-content: stretch;
    }

    .product-filter-form .filter-select {
        width: 100%;
        min-width: 0;
    }

    .content-with-sidebar .products-grid {
        grid-template-columns: 1fr;
    }

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

    .account-hero-card {
        align-items: stretch;
        flex-direction: column;
    }

    .account-address-card {
        flex-direction: column;
    }

    .account-address-actions {
        justify-content: flex-start;
        min-width: 0;
    }

    .auth-register-callout {
        align-items: stretch;
        flex-direction: column;
    }

    .form-grid.two,
    .account-favorites {
        grid-template-columns: 1fr;
    }

    .tech-spec-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .tech-spec-separator {
        display: none;
    }

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

    .review-head {
        flex-direction: column;
    }

    .account-favorites-grid.products-grid {
        grid-template-columns: 1fr;
    }

    .favorite-mini-card {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .favorite-mini-image {
        width: 86px;
        height: 70px;
    }

    .favorite-mini-actions {
        grid-column: 1 / -1;
        grid-template-columns: 1fr auto;
        justify-items: stretch;
    }
}
