/* Кнопка корзины в меню/шапке */
.sms-cart-widget-btn {
    display: inline-flex;
    align-items: center;
    background: #0284c7;
    color: #fff !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: #0369a1;
}
.sms-cart-icon {
    margin-right: 6px;
}

/* Фильтры категорий */
.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: 200px;
    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: 600;
    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: #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: 750px;
    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;
}