/* Кнопка корзины в меню/шапке */
.sms-cart-widget-btn {background-color: #f8f5e9;
    display: inline-flex;
    align-items: center;
    color: #093540!important;
    padding: 8px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}
.sms-cart-widget-btn:hover {
    background: #96bc4d;
    color: #ffffff!important;
}
.sms-cart-icon {margin-right: 6px;width: 25px;height: auto;}

/* Фильтры категорий */
.sms-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}
.sms-cat-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}
.sms-cat-btn:hover {
    background: #e2e8f0;
}
.sms-cat-btn.active {
    background: #0284c7;
    color: #fff;
    border-color: #0284c7;
}

/* Витрина и сетка */
.sms-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.sms-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}
.sms-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}
.sms-card-img-link {
    height: 180px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.sms-card-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.sms-card:hover .sms-card-img-link img {
    transform: scale(1.04);
}
.sms-no-img {
    color: #94a3b8;
    font-size: 14px;
}
.sms-card-body {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.sms-card-title {
    font-size: 16px;
    margin: 0 0 10px;
    font-weight: 500;
    line-height: 1.3;
}
.sms-card-title a {
    /*color: #1e293b;*/
    text-decoration: none;
}
.sms-card-title a:hover {
    color: #0284c7;
}
.sms-card-price-wrap {
    margin-bottom: 15px;
}
.sms-card-price {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

/* Бейджи и кнопки "Под заказ" */
.sms-preorder-badge {
    display: inline-block;
    background: #fef3c7;
    color: #b45309;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}
.sms-preorder-badge-sm {
    color: #b45309;
    font-weight: 600;
}
.sms-btn-preorder {
    background: #d97706 !important;
}
.sms-btn-preorder:hover {
    background: #b45309 !important;
}

.sms-card-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Контрол количества (+ / -) */
.sms-qty-controls {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    background: #f8fafc;
}
.sms-qty-controls button {
    background: #f1f5f9;
    border: none;
    width: 28px;
    height: 32px;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    color: #334155;
    transition: background 0.15s;
}
.sms-qty-controls button:hover {
    background: #e2e8f0;
}
.sms-qty-controls input {
    width: 38px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    -moz-appearance: textfield;
}
.sms-qty-controls input::-webkit-outer-spin-button,
.sms-qty-controls input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Кнопка добавления */
.sms-add-to-cart-btn {
    background: #F26522;
    /*background: #16a34a;*/
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    flex-grow: 1;
}
.sms-add-to-cart-btn:hover {
    background: #15803d;
}

/* Корзина */
#sms-cart-app {
    max-width: 850px;
    margin: 20px auto;
}
.sms-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}
.sms-table th, .sms-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}
.sms-del-btn {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}
.sms-delivery-section {
    background: #f8fafc;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}
.sms-delivery-section h3 {
    margin-top: 0;
    font-size: 16px;
}
.sms-radio-label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
}
.sms-totals {
    text-align: right;
    margin-bottom: 30px;
}
.sms-final-total {
    color: #0f172a;
    font-size: 24px;
}

/* Форма */
.sms-form-group {
    margin-bottom: 12px;
}
.sms-form-group input {
    width: 100%;
    max-width: 420px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-sizing: border-box;
}
#sms-submit-btn {
    background: #0284c7;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
#sms-submit-btn:hover {
    background: #0369a1;
}
.sms-success-box {
    background: #dcfce7;
    color: #166534;
    padding: 20px;
    border-radius: 8px;
}
.sms-error-msg {
    color: #dc2626;
    margin-top: 10px;
}

/* Виджет списка категорий в сайдбаре */
.sms-cat-widget-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}
.sms-cat-widget-title {font-size: 18px;margin: 0 0 15px 0;padding-bottom: 10px;border-bottom: 2px solid #0284c7;color: #f26522;}
.sms-cat-vertical-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    max-height: 520px; /* Если категорий много, появится аккуратная полоса прокрутки */
    overflow-y: auto;
}
.sms-cat-vertical-list li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f1f5f9;
}
.sms-cat-vertical-list li:last-child {
    border-bottom: none;
}
.sms-cat-vertical-list li a {
    padding: 7px 8px 12px 17px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 8px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.sms-cat-vertical-list li a:hover {
    background: #f8f5e9;
    color: #0284c7;
    padding-left: 12px;
}
.sms-cat-vertical-list li.active a {
    background: #e0f2fe;
    color: #0284c7;
    font-weight: 700;
}
.sms-cat-count-badge {
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}
.sms-cat-vertical-list li.active .sms-cat-count-badge {
    background: #0284c7;
    color: #ffffff;
}

/* Красивый тонкий скроллбар для списка категорий */
.sms-cat-vertical-list::-webkit-scrollbar {
    width: 5px;
}
.sms-cat-vertical-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.sms-privacy-wrap {
    margin-top: 15px;
    margin-bottom: 20px;
}
.sms-checkbox-label a {
    color: #0284c7;
    text-decoration: underline;
}
.sms-checkbox-label a:hover {
    color: #0369a1;
}
/* =============================================================
   СТАТУСЫ НАЛИЧИЯ (КЛАССЫ ДЛЯ КАТАЛОГА И КАРТОЧКИ)
   ============================================================= */
.stock {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    float: right;
    margin: -35px 0 5px;
    font-size: .92em;
}

.stock-rel {
    float: right;
    margin: -27px 0 5px;
    font-size: 12px;
}
.stock.in-stock, .instock-badge {
    color: #16a34a; /* Зеленый */
}
.stock.out-of-stock, .ofstock-badge {
    color: #dc2626; /* Красный */
}
.stock.on-backorder, .onbackorder-badge {
    color: #d97706;
}
.stock.preorder, .preorder-badge {
    color: #0284c7;
}

/* =============================================================
   СЕТКА КАТЕГОРИЙ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ [sms_categories_grid]
   ============================================================= */
.sms-categories-grid-wrapper {
    margin: 25px 0 40px 0;
}
.sms-cat-tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.sms-cat-tile {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.sms-cat-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    /*border-color: #0284c7;*/
    border-color: #f26522;
}
.sms-cat-tile-img-box {
    width: 100%;
    height: 180px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.sms-cat-tile-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.sms-cat-tile:hover .sms-cat-tile-img-box img {
    transform: scale(1.05);
}
.sms-cat-tile-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.sms-cat-tile-title {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}
.sms-cat-tile-count {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
}
.sms-cat-tile-arrow {
    margin-top: auto;
    font-size: 14px;
    font-weight: 600;
    color: #0284c7;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.sms-cat-tile:hover .sms-cat-tile-arrow {
    text-decoration: underline;
}

.site-content-contain {
    max-width: 1200px;
    display: flex;
    margin: 0 auto;
    padding: 0;
}

.site-contain {
    width: 74%;
}
#sms-cust-privacy {
    margin-top: 3px;
    width: auto;
}
.sms-product-grid {
    flex: 1 1 250px;
  min-width: 0;
  background: #F8F9FB;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 25px;
}
.sms-single-price {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #f26522;
}