/* Ormix.lv CSS - Based on STYLE_GUIDE.md */

/* ==================== CSS Variables ==================== */
:root {
    /* Primary (Red) */
    --color-primary: #b6171f;
    --color-primary-dark: #bd2e35;
    --color-primary-darker: #ac1a21;

    /* Secondary (Bronze) */
    --color-secondary: #c09862;
    --color-secondary-hover: #B98C56;
    --color-secondary-light: #daccb9;

    /* Neutrals */
    --color-dark: #1f1917;
    --color-gray-700: #454545;
    --color-gray-600: #585858;
    --color-gray-500: #787878;
    --color-gray-400: #bdbcbb;
    --color-gray-200: #e3e3e1;
    --color-gray-100: #f5f5f5;
    --color-white: #fdfdfd;

    /* Semantic */
    --color-text: #585858;
    --color-text-secondary: #787878;
    --color-link: #b6171f;
    --color-link-hover: #ac1a21;
    --color-border: #bdbcbb;
    --color-background: #f5f5f5;

    /* Fonts */
    --font-heading: 'Roboto Condensed', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --font-display: 'Roboto Slab', serif;

    /* Sizes */
    --container-width: 1210px;
    --header-height: 100px;
    --header-height-mobile: 48px;
}

/* ==================== Reset & Base ==================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.4;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-background);
}

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

a:hover {
    color: var(--color-link-hover);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin: 0 0 1rem;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 34px;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 18px;
}

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

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ==================== Layout ==================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
}

#wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#content {
    flex: 1;
    padding: 20px 0;
}

/* Two-column layout */
.page-layout {
    display: flex;
    gap: 2%;
}

.sidebar {
    width: 23%;
    flex-shrink: 0;
}

.main-content {
    width: 75%;
}

/* ==================== Top Panel ==================== */
.top-panel {
    background: var(--color-dark);
    padding: 8px 0;
}

.top-panel .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-panel .menu ul {
    display: flex;
    gap: 20px;
}

.top-panel .menu a {
    color: var(--color-secondary);
    font-size: 16px;
    font-family: var(--font-heading);
    font-weight: 400;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.top-panel .menu a svg {
    position: relative;
    top: 2px;
}

.top-panel .menu a:hover {
    color: var(--color-primary);
}

/* User name / Login link - white color */
.top-panel .menu li:first-child a {
    color: #fff;
}

.top-panel .menu li:first-child a:hover {
    color: var(--color-primary);
}

.top-panel__right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logout-link {
    color: var(--color-secondary);
    font-size: 16px;
    padding-right: 5px;
    font-family: var(--font-heading);
    font-weight: 400;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.logout-link svg {
    position: relative;
    top: 2px;
}

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

.admin-link {
    color: var(--color-primary) !important;
    font-weight: 500 !important;
}

.admin-link:hover {
    color: #d64a52 !important;
}

.langs {
    display: flex;
    gap: 10px;
}

.langs a {
    color: var(--color-gray-500);
    font-size: 14px;
    font-weight: 700;
}

.langs a.active {
    color: #fff;
}

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

/* ==================== Header ==================== */
#header {
    position: relative;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    z-index: 0;
    pointer-events: none;
}

.header-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1;
    object-fit: cover;
}

#header .container {
    position: relative;
    z-index: 1;
}

.h__wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    flex-shrink: 0;
}

.logo-small {
    display: none;
}

.h__contact {
    flex-shrink: 0;
}

.h__contact .phone {
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--color-dark);
}

.h__contact .email {
    font-size: 14px;
    color: var(--color-gray-600);
}

.h__center-group {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.h__search {
    display: flex;
    width: 100%;
    max-width: 400px;
}

.h__search input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--color-border);
    border-right: none;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.h__search input:focus {
    border-color: var(--color-primary);
}

.search-btn {
    padding: 10px 15px;
    background: var(--color-secondary);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    color: #fff;
}

.search-btn:hover {
    background: var(--color-secondary-hover);
}

.h__user {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    margin-right: 15px;
}

.user-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-white);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.user-link:hover {
    color: var(--color-secondary);
}

.user-link svg {
    fill: currentColor;
}

.user-link--logout {
    color: var(--color-gray-400);
    font-size: 13px;
}

.user-link--logout:hover {
    color: var(--color-white);
}

.h__basket {
    flex-shrink: 0;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: var(--color-gray-100);
    border-radius: 4px;
    color: var(--color-dark);
}

.cart-link:hover {
    background: var(--color-gray-200);
    color: var(--color-dark);
}

.cart-count {
    background: var(--color-primary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

.cart-total {
    font-weight: 700;
}

.navigation-btn,
.cart-btn {
    display: none;
}

/* ==================== Banner Bar ==================== */
.banner-bar {
    background: linear-gradient(to right, var(--color-secondary), #b08050);
    padding: 0;
    font-family: var(--font-heading);
    text-transform: uppercase;
    overflow: hidden;
}

.banner-bar .container {
    position: relative;
}

.banner-bar .container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 100%;
    width: 100vw;
    background: #1f19173d;
}

.banner-bar__content {
    display: flex;
    align-items: center;
}

.banner-bar__main {
    position: relative;
    background: #1f19173d;
    color: #fff;
    padding: 12px 20px;
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.banner-bar__secondary {
    color: #342a2a;
    padding: 6px 20px;
    font-size: 13px;
    line-height: 1.3;
}

/* ==================== Sidebar Sections ==================== */
.sidebar-section {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-header {
    background: var(--color-dark);
    color: #fff;
    padding: 15px;
    margin: 0;
    font-size: 16px;
    text-transform: uppercase;
}

.sidebar-header--gold {
    background: var(--color-secondary);
}

.sidebar-content {
    padding: 10px 0;
}

/* Special Offers Sidebar */
.special-offers-list {
    padding: 0;
}

.special-offers-list li {
    padding: 10px 15px;
    border-bottom: 1px solid var(--color-gray-200);
}

.special-offers-list li:last-child {
    border-bottom: none;
}

.special-offers-list a {
    display: block;
    color: var(--color-text);
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.special-offers-list a:hover {
    color: var(--color-primary);
}

.special-offers-list .price {
    display: block;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 14px;
}

/* Category Sidebar */
.category-sidebar {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.category-sidebar .sidebar-header {
    background: var(--color-dark);
}

.category-list {
    padding: 10px 0;
}

.category-list li {
    border-bottom: 1px solid var(--color-gray-200);
    position: relative;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list>li::before {
    content: '•';
    position: absolute;
    left: 15px;
    top: 10px;
    color: var(--color-secondary);
    font-weight: bold;
}

.category-list>li>a {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px 10px 30px;
    color: var(--color-text);
    font-weight: 600;
}

.category-list>li>a:hover {
    background: var(--color-gray-100);
    color: var(--color-primary);
}

/* Nested category children */
.category-children {
    padding: 0;
    margin: 0;
    background: var(--color-gray-100);
}

.category-children li {
    border-bottom: 1px solid var(--color-gray-200);
    position: relative;
}

.category-children li:last-child {
    border-bottom: none;
}

.category-children li::before {
    content: '–';
    position: absolute;
    left: 25px;
    top: 8px;
    color: var(--color-gray-500);
    font-size: 12px;
}

.category-children a {
    display: flex;
    justify-content: space-between;
    padding: 8px 15px 8px 40px;
    color: var(--color-gray-600);
    font-size: 13px;
}

.category-children a:hover {
    background: var(--color-gray-200);
    color: var(--color-primary);
}

.category-count {
    color: var(--color-gray-500);
    font-size: 13px;
}

/* ==================== Collapsible Navigation Tree ==================== */
.nav-tree {
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-tree__item {
    border-bottom: 1px solid var(--color-gray-200);
}

.nav-tree__item:last-child {
    border-bottom: none;
}

.nav-tree__link-wrapper {
    display: flex;
    align-items: center;
    padding: 0;
}

.nav-tree__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 36px;
    cursor: pointer;
    flex-shrink: 0;
    color: var(--color-secondary);
    font-weight: bold;
}

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

.nav-tree__toggle-icon {
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

.nav-tree__link {
    display: flex;
    justify-content: space-between;
    flex: 1;
    padding: 10px 15px 10px 0;
    color: var(--color-text);
    font-size: 14px;
}

.nav-tree__item:not(.nav-tree__item--has-children) .nav-tree__link {
    padding-left: 28px;
}

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

.nav-tree__item--active>.nav-tree__link-wrapper>.nav-tree__link {
    color: var(--color-primary);
    font-weight: 700;
}

.nav-tree__item--in-path>.nav-tree__link-wrapper>.nav-tree__link {
    font-weight: 600;
}

.nav-tree__name {
    flex: 1;
}

.nav-tree__count {
    color: var(--color-gray-500);
    font-size: 13px;
    margin-left: 8px;
}

/* Nested children */
.nav-tree__children {
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-tree__children .nav-tree__link-wrapper {
    padding-left: 15px;
}

.nav-tree__children .nav-tree__link {
    font-size: 13px;
    padding: 8px 15px 8px 0;
}

.nav-tree__children .nav-tree__item:not(.nav-tree__item--has-children) .nav-tree__link {
    padding-left: 28px;
}

/* Deeper nesting levels */
.nav-tree__children .nav-tree__children .nav-tree__link-wrapper {
    padding-left: 30px;
}

.nav-tree__children .nav-tree__children .nav-tree__children .nav-tree__link-wrapper {
    padding-left: 45px;
}

.nav-tree__children .nav-tree__children .nav-tree__children .nav-tree__children .nav-tree__link-wrapper {
    padding-left: 60px;
}

/* ==================== Product Grid ==================== */
.product-tabs-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
}

.catalog-link-mobile {
    display: none;
}

.product-tabs {
    display: flex;
    gap: 0;
    flex: 1;
}

.product-tab {
    padding: 12px 28px;
    background: var(--color-gray-200);
    color: var(--color-gray-600);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border: 2px solid var(--color-gray-300);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    margin-right: -1px;
    position: relative;
    z-index: 1;
    transition: all 0.2s ease;
}

.product-tab.active {
    background: #fff;
    color: var(--color-primary);
    border-color: var(--color-gray-400);
    border-bottom: 2px solid #fff;
    z-index: 3;
}

.product-tab:hover:not(.active) {
    background: var(--color-gray-100);
    color: var(--color-gray-700);
}

.product-tabs-content {
    border-top: none;
    padding: 20px;
    background: #fff;
    margin-top: -2px;
}

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

.product-card {
    background: #fff;
    border-radius: 4px;
    padding: 15px;
    text-align: center;
    transition: box-shadow 0.2s;
    border: 1px solid var(--color-gray-200);
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-card__image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    margin-bottom: 10px;
}

.product-card__name {
    font-size: 14px;
    margin-bottom: 8px;
    min-height: 40px;
}

.product-card__name a {
    color: var(--color-text);
}

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

.product-card__price {
    font-weight: 700;
    color: var(--color-dark);
    font-size: 16px;
}

/* More Link */
.more-link-container {
    text-align: right;
    margin-top: 15px;
    padding-right: 10px;
}

.more-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.more-link:hover {
    text-decoration: underline;
}

/* ==================== Product Table (Catalog) ==================== */
.goods__table {
    width: 100%;
    background: #fff;
    border-collapse: collapse;
}

.goods__table th {
    background: var(--color-gray-100);
    padding: 12px 10px;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    border-bottom: 2px solid var(--color-border);
}

.goods__table td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--color-gray-200);
    vertical-align: middle;
}

.goods__table tr:nth-child(odd) {
    background: #fff;
}

.goods__table tr:nth-child(even) {
    background: var(--color-gray-100);
}

.goods__table tr:hover {
    background: #fffdf5;
}

.td-photo {
    width: 70px;
}

.td-photo img {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.td-type {
    width: 120px;
    font-weight: 700;
}

.td-type a {
    color: var(--color-text);
}

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

.td-name h3 {
    font-size: 14px;
    margin: 0 0 5px;
}

.td-name h3 a {
    color: var(--color-text);
}

.td-name h3 a:hover {
    color: var(--color-primary);
}

.td-name .price {
    color: var(--color-dark);
    font-weight: 700;
}

.price-tiers {
    font-size: 12px;
    color: #787878;
    margin-top: 5px;
}

.price-tiers-row {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
}

.price-tiers-label {
    min-width: 110px;
    flex-shrink: 0;
}

.price-tiers .tier {
    min-width: 50px;
    text-align: center;
    white-space: nowrap;
}

.price-tiers .tier.active {
    font-weight: 700;
    color: var(--color-dark);
}

.td-status {
    width: 100px;
    text-align: center;
}

.in-stock {
    color: #333;
    font-weight: 700;
}

.out-of-stock {
    color: var(--color-gray-500);
}

/* Mobile price - hidden on desktop */
.mobile-price {
    display: none;
}

.td-specifications {
    width: 60px;
    text-align: center;
}

.ico-pdf {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 4px;
    font-size: 10px;
    line-height: 24px;
    text-align: center;
}

.pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.pdf-link svg {
    flex-shrink: 0;
}

.pdf-link .pdf-text {
    color: #000;
    font-weight: normal;
}

.pdf-link .file-info {
    color: #787878;
    font-size: 0.9em;
    font-weight: normal;
}

.pdf-link:hover .pdf-text {
    text-decoration: underline;
}

.td-order {
    width: 100px;
}

/* ==================== Buttons ==================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-primary {
    background: var(--color-secondary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-secondary-hover);
    color: #fff;
}

/* Consistent flat button styling */
.btn-order,
.btn-order__big,
.btn-order__small {
    display: inline-block;
    border: none;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    background: var(--color-secondary);
    color: #fff;
    transition: background 0.2s;
}

.btn-order {
    padding: 8px 16px;
    font-size: 14px;
}

/* Quantity input in product list */
.qty-input {
    width: 70px;
    padding: 6px 8px;
    border: 1px solid #999;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    margin-right: 8px;
    background: #fff;
}
.qty-input:focus {
    outline: none;
    border-color: var(--color-secondary);
}
.td-order {
    white-space: nowrap;
}

.btn-order__big {
    padding: 12px 30px;
    font-size: 15px;
    line-height: 1;
}

.btn-order__small {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 3px;
}

.btn-order:hover,
.btn-order__big:hover,
.btn-order__small:hover {
    background: var(--color-secondary-hover);
    color: #fff;
}

/* Gray buttons */
.btn-gray,
.btn-gray__big {
    display: inline-block;
    border: none;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    background: var(--color-gray-200);
    color: var(--color-dark);
    transition: background 0.2s;
}

.btn-gray {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-gray__big {
    padding: 12px 30px;
    font-size: 15px;
    line-height: 1;
}

.btn-gray:hover,
.btn-gray__big:hover {
    background: var(--color-gray-400);
    color: var(--color-dark);
}

/* Red buttons */
.btn-red__big {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    background: var(--color-primary);
    color: #fff;
    transition: background 0.2s;
}

.btn-red__big:hover {
    background: var(--color-primary-darker);
    color: #fff;
}

/* Black buttons */
.btn-black__big {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    background: var(--color-dark);
    color: #fff;
    transition: background 0.2s;
}

.btn-black__big:hover {
    background: var(--color-gray-700);
    color: #fff;
}

/* ==================== Alerts ==================== */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* ==================== Profile Menu ==================== */
.profile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-menu li {
    border-bottom: 1px solid var(--color-gray-200);
}

.profile-menu li:last-child {
    border-bottom: none;
}

.profile-menu li a {
    display: block;
    padding: 12px 15px;
    color: var(--color-text);
    text-decoration: none;
    transition: background 0.2s;
}

.profile-menu li a:hover {
    background: var(--color-gray-100);
    color: var(--color-primary);
}

.profile-menu li.active a {
    background: var(--color-gray-100);
    color: var(--color-primary);
    font-weight: 600;
}

/* ==================== Auth Forms ==================== */
.forms-auth {
    margin: 50px auto;
    max-width: 950px;
}

.forms-auth div.fl,
.forms-auth div.fr {
    width: 385px;
    padding: 26px 29px 20px;
    min-height: 262px;
    background: #f5f5f5;
    border-radius: 6px;
    border: solid 1px #e6e6e6;
    position: relative;
    box-sizing: border-box;
}

.forms-auth div.fl.center,
.forms-auth div.fr.center {
    float: none;
    margin: 0 auto;
}

.forms-auth h3 {
    font-size: 23px;
    line-height: 1;
    margin: 0 0 16px;
    color: var(--color-dark);
}

.forms-auth input[type="text"],
.forms-auth input[type="email"],
.forms-auth input[type="password"] {
    display: block;
    margin: 0 0 20px;
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--color-gray-400);
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.forms-auth input[type="text"]:focus,
.forms-auth input[type="email"]:focus,
.forms-auth input[type="password"]:focus {
    outline: none;
    border-color: var(--color-secondary);
}

.forms-auth .controls {
    margin-bottom: 15px;
}

/* Primary action button in auth forms - use bronze/golden color */
.forms-auth .btn-gray__big,
.forms-auth button[type="submit"] {
    color: #fff;
    background: var(--color-secondary);
    border: none;
}

.forms-auth .btn-gray__big:hover,
.forms-auth button[type="submit"]:hover {
    background: var(--color-secondary-hover);
}

.forms-auth label.remember {
    display: block;
    padding: 15px 0 0;
    font-size: 14px;
}

.forgot {
    padding: 0 0 8px;
    line-height: 1;
    font-size: 14px;
}

.forgot a {
    color: var(--color-gray-500);
}

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

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-gray-600);
    cursor: pointer;
}

.remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.required {
    color: var(--color-primary);
}

.register-link,
.login-link {
    margin-top: 20px;
    clear: both;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    text-align: center;
}

.register-link span,
.login-link span {
    display: block;
    margin-bottom: 10px;
    color: var(--color-gray-600);
}

/* Radio group for Private/Company toggle */
.radio-group {
    margin-bottom: 20px;
}

.radio-group label {
    display: inline-block;
    vertical-align: top;
    height: 20px;
    line-height: 20px;
    font-size: 14px;
    min-width: 150px;
    padding-right: 20px;
    white-space: nowrap;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin-right: 6px;
}

.radio-group input:checked+span {
    font-weight: 700;
}

/* Private data columns for registration */
.private__data {
    padding: 20px;
}

.private__data .controls {
    margin: 0 0 20px;
}

.private__data .controls::after {
    content: "";
    display: block;
    clear: both;
}

.private__data-column {
    float: left;
    width: 45%;
}

.private__data-column.left-side {
    margin-left: 5%;
}

.private__data-column label {
    display: block;
    font-size: 14px;
    margin: 0 0 4px;
    line-height: 18px;
}

.private__data-column input[type="text"],
.private__data-column input[type="tel"],
.private__data-column input[type="email"],
.private__data-column input[type="password"] {
    width: 100%;
    display: block;
    padding: 0 12px;
    height: 38px;
    border: 1px solid var(--color-gray-400);
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.private__data-column input[type="text"]:focus,
.private__data-column input[type="tel"]:focus,
.private__data-column input[type="email"]:focus,
.private__data-column input[type="password"]:focus {
    outline: none;
    border-color: var(--color-secondary);
}

.private__data-column input[type="submit"],
.private__data-column .btn-gray__big {
    float: right;
    margin: 10px 0 0 0;
}

@media only screen and (max-width: 768px) {
    .forms-auth {
        margin: 20px auto;
        width: auto;
    }

    .forms-auth div.fl,
    .forms-auth div.fr {
        width: auto;
        padding: 20px;
        min-height: 0;
    }

    .forms-auth h3 {
        font-size: 20px;
    }

    .private__data-column {
        float: none;
        width: 100%;
    }

    .private__data-column.left-side {
        margin-left: 0;
        margin-top: 0;
    }

    .radio-group label {
        display: block;
        margin-bottom: 10px;
    }
}

/* ==================== Filters ==================== */
.filter {
    background: #fff;
    border-radius: 4px;
    margin-bottom: 20px;
}

.filter__header {
    display: none;
}

.filter__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--color-gray-200);
}

.filter__top h3 {
    margin: 0;
    font-size: 16px;
}

.filter__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 15px;
}

.filter__column {
    min-width: 0;
}

.filter__block_header h4 {
    font-size: 14px;
    margin: 0 0 10px;
    color: var(--color-dark);
}

.filter__block {
    max-height: 156px; /* ~6 options */
    overflow-y: auto;
}

.filter__block label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 13px;
    cursor: pointer;
}

.filter__block input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.filter__block_bottom {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--color-gray-200);
}

.filter-option {
    transition: opacity 0.2s;
}

.filter-option--disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.filter-option--disabled input {
    cursor: not-allowed;
}

.filter-option__count {
    color: var(--color-gray-500);
    font-size: 12px;
}

.filter-buttons {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    justify-content: center;
    padding-top: 15px;
    border-top: 1px solid var(--color-gray-200);
}

/* ==================== Breadcrumb ==================== */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
    font-size: 13px;
}

.breadcrumb a {
    color: var(--color-gray-600);
}

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

.breadcrumb span {
    color: var(--color-gray-500);
}

/* Sibling Categories */
.sibling-categories__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-gray-700);
    margin: 20px 0 10px;
}

/* ==================== Product Detail ==================== */
.product {
    display: flex;
    gap: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 4px;
}

.product__gallery {
    width: 300px;
    flex-shrink: 0;
}

.gallery__photo {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid var(--color-gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery__photo {
    cursor: pointer;
    position: relative;
}

.gallery__photo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gallery__zoom-icon {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    cursor: pointer;
}

.gallery__photo:hover .gallery__zoom-icon {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.image-modal.active {
    display: flex;
}

.image-modal__content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.image-modal__content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.image-modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.image-modal__close:hover {
    color: var(--color-secondary);
}

.image-modal__prev,
.image-modal__next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 32px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 2001;
}

.image-modal__prev:hover,
.image-modal__next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.image-modal__prev {
    left: 20px;
}

.image-modal__next {
    right: 20px;
}

/* Gallery Thumbnails */
.gallery__thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.gallery__thumb {
    width: 60px;
    height: 60px;
    border: 2px solid var(--color-gray-200);
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.gallery__thumb:hover {
    border-color: var(--color-secondary);
}

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

.gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.product__content {
    flex: 1;
}

.product__content-layout {
    display: flex;
    gap: 30px;
}

.product__left {
    flex: 1;
}

.product__right {
    width: 320px;
    flex-shrink: 0;
}

.product__right h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.price-note {
    font-size: 13px;
    color: #787878;
    margin-bottom: 15px;
}

.price-table--vertical {
    width: 100%;
}

.price-table--vertical th,
.price-table--vertical td {
    text-align: left;
    padding: 10px 12px;
}

.price-table--vertical tbody tr:hover {
    background: var(--color-gray-100);
}

.price-table--vertical tbody tr.active {
    background: #fff8e6;
    font-weight: 600;
}

.price-table--vertical tbody tr.active td {
    border-color: #f0d78c;
}

.product__details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 20px;
    margin-bottom: 20px;
}

.product__details dt {
    font-weight: 700;
    color: var(--color-gray-600);
}

.product__details dd {
    margin: 0;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.price-table th,
.price-table td {
    padding: 8px 12px;
    border: 1px solid var(--color-gray-200);
    text-align: center;
}

.price-table th {
    background: var(--color-gray-100);
    font-size: 13px;
}

.product__order {
    background: var(--color-gray-100);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.product__order .row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.product__order .row:last-child {
    margin-bottom: 0;
}

.product__order label {
    font-weight: 700;
    min-width: 120px;
}

.item-count {
    width: 80px;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    text-align: center;
}

.product__total {
    font-size: 18px;
    font-weight: 700;
}

.total-price {
    color: var(--color-primary);
}

.product__specification {
    background: var(--color-gray-100);
    padding: 15px;
    border-radius: 4px;
}

.product__specification table {
    width: 100%;
}

.product__specification td {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-gray-200);
}

.product__specification td:first-child {
    color: var(--color-gray-600);
    width: 40%;
}

/* ==================== Cart / Basket ==================== */
.goods__table-basket .td-qnt input {
    width: 80px;
    padding: 8px;
    border: 1px solid #999;
    border-radius: 4px;
    text-align: center;
    background: #fff;
}

.basket-quantity-stock {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.basket-stock-label {
    color: var(--color-gray-600);
    font-size: 12px;
    white-space: nowrap;
}

.basket-stock-label b {
    color: var(--color-text);
}

.goods__table-basket tr.basket-stock-warning-row td {
    background: #fff1f1;
}

.goods__table-basket tr.basket-stock-warning-row .td-name h3 a,
.goods__table-basket tr.basket-stock-warning-row .basket-stock-label,
.goods__table-basket tr.basket-stock-warning-row .basket-stock-label b {
    color: #b42318;
}

.goods__table-basket tr.basket-stock-warning-row .td-qnt input {
    border-color: #d92d20;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12);
}

.basket-stock-warning {
    margin-top: 16px;
    padding: 16px 18px;
    border: 1px solid #f3b6b6;
    border-radius: 4px;
    background: #fff7f7;
    color: #5f1f1f;
}

.basket-stock-warning strong {
    display: block;
    margin-bottom: 6px;
    color: #b42318;
}

.basket-stock-warning p {
    margin: 0;
    line-height: 1.6;
}

.basket-stock-warning a {
    color: #b42318;
    font-weight: 600;
}

.basket__item-remove {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: var(--color-gray-600);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.basket__item-remove:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.basket__item-remove svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.basket__action-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 4px;
}

.basket__total-price {
    font-size: 20px;
}

.basket__total-price .red {
    color: var(--color-primary);
}

/* ==================== Checkout ==================== */
.checkout-form {
    background: #fff;
    padding: 30px;
    border-radius: 4px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ==================== Search Results ==================== */
.search-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: var(--color-gray-100);
    border-radius: 4px;
}

.results-count {
    font-size: 14px;
    color: var(--color-text);
}

.items-per-page {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.items-per-page a {
    padding: 4px 10px;
    background: var(--color-gray-200);
    color: var(--color-text);
    text-decoration: none;
    border-radius: 3px;
}

.items-per-page a:hover {
    background: var(--color-gray-300);
}

.items-per-page a.active {
    background: var(--color-primary);
    color: #fff;
}

.no-results {
    padding: 40px 20px;
    text-align: center;
    background: var(--color-gray-100);
    border-radius: 4px;
    color: var(--color-text-secondary);
}

/* ==================== Pagination ==================== */
.pager {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 20px;
}

.pager a,
.pager span {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text);
}

.pager a:hover {
    background: var(--color-gray-100);
}

.pager .active {
    background: var(--color-secondary);
    color: #fff;
    border-color: var(--color-secondary);
}

/* ==================== Footer ==================== */
#footer {
    background: var(--color-dark);
    color: #fff;
    padding: 40px 0 20px 20px;
    margin-top: auto;
}

.footer__cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer__col h4 {
    color: var(--color-secondary);
    margin-bottom: 15px;
}

.footer__col p,
.footer__col a {
    color: var(--color-gray-400);
    font-size: 14px;
    line-height: 1.8;
}

.footer__col a:hover {
    color: #fff;
}

.footer__col ul li {
    margin-bottom: 5px;
    color: var(--color-gray-400);
    font-size: 14px;
}

.footer__col--contact {
    max-width: 320px;
}

.footer__contact-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 12px;
    margin: 0;
}

.footer__contact-list dt {
    color: var(--color-gray-500);
    font-size: 14px;
}

.footer__contact-list dd {
    margin: 0;
    font-size: 14px;
}

.footer__contact-list dd a {
    color: var(--color-gray-400);
}

.footer__contact-list dd a:hover {
    color: #fff;
}

.footer__social {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer__social svg {
    width: 16px;
    height: 16px;
}

.footer__bottom {
    border-top: 1px solid var(--color-gray-700);
    padding-top: 20px;
    text-align: center;
    color: var(--color-gray-500);
    font-size: 13px;
}

/* ==================== Mobile Navigation ==================== */
.navigation {
    position: fixed;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    transition: left 0.3s ease;
    z-index: 100;
    overflow-y: auto;
}

.navigation.active {
    left: 0;
}

.navigation .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--color-dark);
}

.navigation .close-btn {
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    position: relative;
    cursor: pointer;
}

.navigation .close-btn::before,
.navigation .close-btn::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: #fff;
    top: 50%;
    left: 50%;
}

.navigation .close-btn::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.navigation .close-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.navigation .body {
    padding: 20px;
}

.navigation .mobile-search {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-gray-200);
}

.navigation .mobile-search input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--color-gray-300);
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    outline: none;
}

.navigation .mobile-search input:focus {
    border-color: var(--color-primary);
}

.navigation .mobile-search button {
    padding: 12px 15px;
    background: var(--color-primary);
    border: none;
    border-radius: 0 4px 4px 0;
    color: #fff;
    cursor: pointer;
}

.navigation .mobile-search button:active {
    background: var(--color-primary-dark);
}

.navigation .user {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-gray-200);
}

.navigation .menu li {
    border-bottom: 1px solid var(--color-gray-200);
}

.navigation .menu a {
    display: block;
    padding: 15px 0;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 18px;
}

.navigation .address {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-gray-200);
    color: var(--color-gray-600);
}

/* ==================== Responsive ==================== */
@media (max-width: 1210px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .top-panel {
        display: none;
    }

    #header {
        padding: 0;
    }

    .header-video {
        display: none;
    }

    .h__wrap {
        height: var(--header-height-mobile);
        padding: 0 10px;
    }

    .logo-full {
        display: none;
    }

    .logo-small {
        display: block;
        height: 33px;
    }

    .h__contact,
    .h__search,
    .h__basket,
    .h__user,
    .cart-label,
    .cart-total {
        display: none;
    }

    .navigation-btn,
    .cart-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        background: var(--color-secondary);
        border: none;
        color: #fff;
        cursor: pointer;
    }

    .cart-btn {
        margin-left: auto;
    }

    .navigation-btn span {
        width: 20px;
        height: 2px;
        background: #fff;
        position: relative;
    }

    .navigation-btn span::before,
    .navigation-btn span::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 2px;
        background: #fff;
        left: 0;
    }

    .navigation-btn span::before {
        top: -6px;
    }

    .navigation-btn span::after {
        bottom: -6px;
    }

    .banner-bar {
        display: none;
    }

    .page-layout {
        flex-direction: column;
    }

    .sidebar,
    .main-content {
        width: 100%;
    }

    .sidebar {
        display: none;
    }

    .product-tabs-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .catalog-link-mobile {
        display: inline-block;
        text-align: center;
    }

    .product-tab {
        padding: 10px 16px;
        font-size: 14px;
    }

    .product-tabs-content {
        padding: 15px;
    }

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

    /* Product table - card layout on mobile */
    .goods__table {
        display: block;
        font-size: 13px;
    }

    .goods__table thead {
        display: none;
    }

    .goods__table tbody {
        display: block;
    }

    .goods__table td {
        border-bottom: none;
        padding: 0;
    }

    .goods__table tr {
        display: grid;
        grid-template-columns: 70px auto 1fr auto;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "photo name name spec"
            "photo article stock stock"
            "order order order order";
        gap: 6px 12px;
        padding: 12px;
        margin-bottom: 10px;
        background: #fff;
        border: 1px solid var(--color-gray-200);
        border-radius: 8px;
        overflow: hidden;
    }

    .goods__table tr:hover {
        background: #fff;
    }

    /* Photo - top left */
    .td-photo {
        grid-area: photo;
        width: auto;
        align-self: start;
    }

    .td-photo img {
        width: 62px;
        height: 62px;
    }

    /* Article - middle row, before stock */
    .td-type {
        grid-area: article;
        width: auto;
        font-size: 11px;
        align-self: center;
    }

    .td-type::before {
        content: "Article: ";
        font-weight: normal;
        color: var(--color-gray-500);
    }

    /* Name - top right, with PDF icon after */
    .td-name {
        grid-area: name;
    }

    .td-name h3 {
        font-size: 13px;
        margin-bottom: 0;
        display: inline;
    }

    /* Hide price tiers in td-name on mobile - we show it in stock row */
    .price-tiers {
        display: none;
    }

    /* PDF link - after name */
    .td-specifications {
        grid-area: spec;
        display: flex;
        align-items: flex-start;
        width: auto;
    }

    .td-specifications .pdf-link svg {
        width: 20px;
        height: 20px;
    }

    /* Stock - middle row, after article */
    .td-status {
        grid-area: stock;
        display: flex;
        align-items: center;
        gap: 15px;
        width: auto;
        text-align: left;
        font-size: 11px;
    }

    .td-status > span:first-child::before {
        content: "Stock: ";
        font-weight: normal;
        color: var(--color-gray-500);
    }

    /* Mobile price - shown on mobile */
    .mobile-price {
        display: inline;
        color: var(--color-gray-500);
    }

    .mobile-price strong {
        color: var(--color-dark);
    }

    /* Order section - bottom row, aligned right */
    .td-order {
        grid-area: order;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        width: auto;
        margin-top: 6px;
        padding-top: 8px;
        border-top: 1px solid var(--color-gray-200);
    }

    .td-order .qty-input {
        width: 55px;
        padding: 8px;
        font-size: 13px;
    }

    .td-order .btn-order {
        padding: 8px 12px;
        font-size: 12px;
    }

    .product {
        flex-direction: column;
    }

    .product__gallery {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .product__content-layout {
        flex-direction: column;
    }

    .product__right {
        width: 100%;
        order: -1;
        margin-bottom: 20px;
    }

    .filter__header {
        display: block;
        padding: 15px;
        background: var(--color-secondary);
        color: #fff;
        text-align: center;
        font-family: var(--font-heading);
        font-weight: 700;
    }

    .filter__top,
    .filter__content {
        display: none;
    }

    .filter.open .filter__top,
    .filter.open .filter__content {
        display: block;
    }

    /* Hide Show/Hide toggle on mobile - managed by Filters button */
    .filter__toggle {
        display: none;
    }

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

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

    .basket__action-line {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

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

    /* Very small screens - adjust layout */
    .goods__table tr {
        grid-template-columns: 55px auto 1fr auto;
        grid-template-areas:
            "photo name name spec"
            "photo article stock stock"
            "order order order order";
        gap: 4px 8px;
        padding: 10px;
    }

    .td-photo img {
        width: 50px;
        height: 50px;
    }

    .td-type {
        font-size: 10px;
    }

    .td-name h3 {
        font-size: 12px;
    }

    .td-status {
        font-size: 10px;
        gap: 8px;
    }

    .td-order .qty-input {
        width: 50px;
        padding: 6px;
    }

    .td-order .btn-order {
        font-size: 11px;
        padding: 6px 8px;
    }
}

/* ==================== Utilities ==================== */
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

.block-gray {
    background: #fff;
    border-radius: 6px;
}

.fr {
    float: right;
}

.fl {
    float: left;
}

.red {
    color: var(--color-primary);
}

.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

/* Loading overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.overlay.active {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--color-gray-200);
    border-top-color: var(--color-secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ==================== Category Cards (product-card style) ==================== */
.cat__details-list {
    list-style: none;
    padding: 0 0 20px;
    margin: 0 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
}

.cat__details-list li {
    background: #fff;
    border-radius: 4px;
    padding: 15px;
    text-align: center;
    transition: box-shadow 0.2s;
    border: 1px solid var(--color-gray-200);
}

.cat__details-list li:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cat__details-list li.active {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary);
}

.cat__details-list a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-text);
}

.cat__details-list aside {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

.cat__details-list aside img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    max-height: 120px;
}

.cat__details-list aside .img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
}

.cat__details-list aside+span {
    display: block;
    font-size: 14px;
    line-height: 1.3;
    min-height: 36px;
}

.cat__details-list span i {
    color: #787878;
    font-style: normal;
    display: block;
    margin-top: 4px;
    font-size: 13px;
}

.cat__details-list span span {
    color: var(--color-text);
}

.cat__details-list a:hover span span {
    color: var(--color-primary);
}

/* ===== Simple Category List (4 columns, bulletpointed) ===== */
.discounts-title {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 16px 0;
    padding: 0;
}

.cat__list-simple {
    list-style: disc;
    padding: 0 0 20px 20px;
    margin: 0 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px 20px;
    column-gap: 20px;
}

.cat__list-simple li {
    padding: 4px 0;
    font-size: 14px;
    line-height: 1.4;
}

.cat__list-simple a {
    color: var(--color-dark);
    text-decoration: none;
}

.cat__list-simple a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.cat__list-simple .item-count {
    color: var(--color-text-secondary);
    font-size: 13px;
    margin-left: 4px;
}

/* Responsive: 3 columns on tablets */
@media (max-width: 1024px) {
    .cat__list-simple {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive: 2 columns on mobile */
@media (max-width: 768px) {
    .cat__list-simple {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive: 1 column on small mobile */
@media (max-width: 480px) {
    .cat__list-simple {
        grid-template-columns: 1fr;
    }
}

/* ===== BANNERS FRONT (Slider + Banner) ===== */
.banners-front {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.banner-slider {
    flex: 1;
    position: relative;
    background: #f8f8f8;
    border-radius: 4px;
    overflow: hidden;
    min-height: 300px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-slide {
    position: relative;
    display: none;
}

.slider-slide:first-child {
    display: block;
}

.slider-slide .slider-img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 350px;
    object-fit: cover;
}

.slider-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
}

.slider-description {
    font-size: 16px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.slider-content .btn {
    display: inline-block;
}

.slider-nav {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.slider-prev,
.slider-next {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.slider-prev:hover,
.slider-next:hover {
    background: #fff;
}

.slider-dots {
    display: flex;
    gap: 6px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.2s;
}

.slider-dot.active,
.slider-dot:hover {
    background: #fff;
}

.banner-right {
    width: 320px;
    flex-shrink: 0;
}

.banner-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.btn-dark {
    display: inline-block;
    padding: 8px 16px;
    background: #333;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-dark:hover {
    background: #555;
    color: #fff;
}

/* ===== PARTNERS SECTION (Full Width) ===== */
.partners-fullwidth {
    width: 100%;
    background: var(--color-gray-100);
    border-top: 1px solid var(--color-gray-200);
    border-bottom: 1px solid var(--color-gray-200);
    margin-top: 32px;
    padding: 24px 0;
}

.partners-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.partners-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--color-text);
    text-align: center;
}

.partners-slider {
    display: flex;
    align-items: center;
    gap: 16px;
}

.partners-prev,
.partners-next {
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-gray-300);
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
    z-index: 2;
}

.partners-prev:hover,
.partners-next:hover {
    background: var(--color-gray-50);
    border-color: var(--color-gray-400);
}

.partners-viewport {
    flex: 1;
    overflow: hidden;
}

.partners-track {
    display: flex;
    gap: 20px;
}

.partner-item {
    flex-shrink: 0;
    width: 140px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--color-gray-200);
    border-radius: 4px;
}

.partner-item img {
    max-width: 100%;
    max-height: 56px;
    object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .banners-front {
        flex-direction: column;
    }

    .banner-right {
        width: 100%;
    }

    .partners-container {
        padding: 0 12px;
    }

    .partner-item {
        width: 100px;
        height: 60px;
        padding: 8px;
    }

    .partner-item img {
        max-height: 44px;
    }
}

/* Categories Section (Full Width) */
.categories-fullwidth {
    width: 100%;
    background: #fff;
    padding: 24px 0 24px 20px;
    border-top: 1px solid var(--color-gray-200);
}

/* Category Grid */
.categories-grid {
