/* --------------------------------------
   Catalog layout (Mobile First)
-----------------------------------------*/

/* ==========================================
   БАЗОВЫЕ СТИЛИ (Мобильные устройства)
   ========================================== */

/* Base container - мобильный layout (вертикальный) */
.catalog-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
    min-height: 100vh;
}

/* Sidebar - скрыт на мобильных */
.catalog-sidebar {
    display: none;
    width: 100%;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 2rem;
}

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

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #b77b3b;
}

/* --------------------------------------
   Categories list
-----------------------------------------*/
.category-list,
.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-link.disabled-category {
    color: #9aa0a6;
    cursor: not-allowed;
    opacity: 0.95;
    font-weight: 700;
    background: #f3f4f6;
    border-left-color: #cfcfcf;
    pointer-events: none;
}

.category-link.disabled-category:hover {
    background: #f3f4f6;
    color: #9aa0a6;
    border-left-color: #cfcfcf;
}

.category-item {
    margin-bottom: 0.5rem;
    position: relative;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2.25rem 0.75rem 1rem;
    color: #555;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    width: 100%;
    box-sizing: border-box;
}

.category-link:hover,
.category-link.active {
    background: #f8f9fa;
    color: #8a551cae;
    border-left-color: #b77b3b;
}

.category-link.active {
    font-weight: 600;
}

/* Контейнер для категории и кнопки раскрытия */
.category-link-container {
    display: flex;
    align-items: center;
    width: 100%;
}

.category-link-container .category-link {
    flex: 1;
    padding-right: 0.5rem;
}

/* Кнопка раскрытия категорий */
.category-expand-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    margin-left: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
}

.category-expand-btn:hover {
    background: rgba(183, 123, 59, 0.1);
}

.category-expand-btn:focus {
    outline: 2px solid #b77b3b;
    outline-offset: 2px;
}

/* Стрелочка раскрытия категорий */
.category-arrow {
    font-size: 0.75rem;
    color: #666;
    transition: transform 0.2s ease;
}

/* Catalog landing */
.catalog-landing {
    padding: 1rem 0 2rem;
}

.landing-hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.landing-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #333;
}

.landing-subtitle {
    color: #666;
}

.landing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.landing-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
    padding: 14px;
    min-height: 300px;
}

.landing-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #ddd;
}

.landing-card-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    color: #333;
}

.landing-card-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.image-placeholder {
    color: #bbb;
    font-size: 1.5rem;
}

.landing-card-title {
    font-weight: 800;
    font-size: 1.25rem;
}

.landing-card-toggle {
    margin: 8px 4px 0 0;
    background: #f7f7f7;
    border: 1px solid #eee;
    border-radius: 8px;
    color: #666;
    cursor: pointer;
    padding: 6px 8px;
    float: right;
}

.landing-card-toggle:hover {
    background: #eee;
}

.landing-sublist {
    display: none;
    list-style: none;
    margin: 8px 0 0 0;
    padding: 0;
    clear: both;
}

.landing-sublist li a {
    display: block;
    padding: 6px 8px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
}

.landing-sublist li a:hover {
    background: #f7f4ef;
}

.landing-subrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.landing-subrow .category-link {
    flex: 1;
}

.landing-subexpand {
    background: #f7f7f7;
    border: 1px solid #eee;
    border-radius: 8px;
    color: #666;
    cursor: pointer;
    padding: 4px 6px;
}

.landing-subexpand:hover {
    background: #eee;
}

.landing-subchildren {
    display: none;
    list-style: none;
    margin: 6px 0 0 0;
    padding: 0;
}

.landing-subchildren li a {
    display: block;
    padding: 6px 8px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
}

.landing-subchildren li a:hover {
    background: #f7f4ef;
}

.landing-card.expanded .landing-card-toggle i {
    transform: rotate(180deg);
}

/* --------------------------------------
   Price filter
-----------------------------------------*/
.price-filter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.price-inputs {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.price-input {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.9rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    box-sizing: border-box;
    width: calc(50% - 0.25rem);
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.price-input:hover {
    border-color: #c8c8c8;
}

.price-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(183,123,59,0.18);
}

.price-separator {
    color: #666;
    font-weight: 600;
    flex-shrink: 0;
    padding: 0 0.25rem;
}

.apply-filter-btn {
    background: #b77b3b;
    color: #fff;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.apply-filter-btn:hover {
    background: #a06a2f;
}

/* Selects for brand and sort */
.brand-select,
.sort-select,
.styled-select select {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    padding: 0.6rem 0.9rem;
    width: 100%;
    box-sizing: border-box;
    appearance: none;
}

.brand-select:focus,
.sort-select:focus,
.styled-select select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(183,123,59,0.18);
}

.styled-select {
    position: relative;
}

.styled-select::after {
    content: '';
    position: absolute;
    right: 0.8rem;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23b77b3b' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E");
    background-size: 16px 16px;
    pointer-events: none;
}

.ui-select {
    position: relative;
}

.ui-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.6rem 0.9rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ui-select-trigger:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(183,123,59,0.18);
}

.ui-select.open .ui-select-trigger {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(183,123,59,0.18);
}

.ui-select-trigger::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 0.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708'/%3E%3C/svg%3E");
    background-size: 16px 16px;
    transition: transform 0.2s ease;
}

.ui-select.open .ui-select-trigger::after {
    transform: rotate(180deg);
}

.ui-select-options {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    max-height: 280px;
    overflow-y: auto;
    z-index: 50;
    padding: 6px;
    display: none;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
}

.ui-select.open .ui-select-options {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ui-select-group {
    padding: 8px 12px;
    font-weight: 600;
    color: #555;
}

.ui-select-option {
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.ui-select-option.brand-child {
    color: #666;
}

.ui-select-option.brand-child.selected {
    color: #333;
}

.ui-select-option:hover {
    background: #f8f9fa;
    color: var(--color-primary);
}

.ui-select-option.selected {
    background: rgba(183,123,59,0.12);
    border-left: 3px solid var(--color-primary);
}

/* --------------------------------------
   Main content
-----------------------------------------*/
.catalog-main {
    display: flex;
    flex-direction: column;
    flex: 1 1 0%;
    min-width: 0;
    order: 1;
}

.catalog-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.catalog-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Кнопка фильтра - мобильный размер */
.filter-toggle-btn {
    background: #b77b3b;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(183, 123, 59, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-toggle-btn:hover {
    background: #a06a2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(183, 123, 59, 0.4);
}

.filter-toggle-btn:active {
    transform: translateY(0);
}

.filter-toggle-btn i {
    pointer-events: none;
}

.catalog-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.products-count {
    color: #666;
    font-size: 1rem;
}

/* Products grid - мобильный (1 колонка) */
.catalog-products {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
}

/* "Load More" button */
.load-more-container {
    margin-top: 2rem;
    text-align: center;
    display: none;
}

.load-more-container.active {
    display: block;
}

.load-more-btn {
    background: #b77b3b;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 10px rgba(183, 123, 59, 0.3);
}

.load-more-btn:hover {
    background: #a06a2f;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(183, 123, 59, 0.4);
}

.load-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(183, 123, 59, 0.3);
}

.load-more-btn i {
    transition: transform 0.5s ease;
}

.load-more-btn.loading i {
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pagination - скрыт на мобильных */
.catalog-pagination {
    margin-top: 0.75rem;
    margin-bottom: 2rem;
    display: none;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    height: 0;
    overflow: hidden;
}

.catalog-pagination.loaded {
    opacity: 1;
    visibility: visible;
    height: auto;
    overflow: visible;
}

.pagination {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #555;
    text-decoration: none;
    background: #fff;
    transition: all .2s;
}

.pagination-link:hover {
    border-color: #b77b3b;
    color: #8a551cae;
}

.pagination-link.active {
    background: #b77b3b;
    color: #fff;
    border-color: #b77b3b;
    cursor: default;
}

.pagination-link.disabled,
.pagination-link[aria-disabled="true"] {
    opacity: .5;
    pointer-events: none;
}

.pagination-ellipsis {
    padding: 0 6px;
    color: #999;
}

/* Catalog Loader */
.catalog-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem 0;
    background-color: rgba(240, 240, 240, 0.7);
    border-radius: 12px;
    opacity: 1;
    transition: opacity 0.4s ease;
    grid-column: 1 / -1;
}

.catalog-loader.hidden {
    opacity: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
}

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

.box-loader i {
    font-size: 40px;
    color: #777;
    animation: pulse 1.5s infinite ease-in-out;
}

.loading-text {
    color: #555;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 1.5rem 0 0;
    text-align: center;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* "Товары не найдены" */
.no-products-found {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 1px dashed #e0e0e0;
}

.no-products-found i {
    font-size: 2.5rem;
    color: #565656;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.no-products-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.no-products-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    max-width: 450px;
}

/* Модальное окно "Нет товаров" */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: translateY(-50px);
    transition: transform 0.3s ease-in-out;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

.modal-icon {
    font-size: 3rem;
    color: #b77b3b;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.organization-details {
    text-align: left;
    margin-top: 20px;
}

.organization-details dt {
    font-weight: bold;
    margin-top: 10px;
    color: #333;
}

.organization-details dd {
    margin-left: 0;
    margin-bottom: 5px;
    color: #666;
}

.delivery-text {
    margin-top: 20px;
    text-align: left;
    padding: 15px;
    background-color: #fdfdfd;
    border-radius: 8px;
}

.delivery-text h3 {
    font-size: 1.5rem;
    margin-top: 25px;
    margin-bottom: 15px;
    color: #222;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.delivery-text p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

.delivery-text strong {
    color: #222;
}

.delivery-text ul {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 15px;
    padding-left: 0;
}

.delivery-text li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #555;
}

.delivery-text hr {
    border: 0;
    border-top: 1px dashed #ccc;
    margin: 30px 0;
}

.legal-notice {
    margin-top: 25px;
    padding: 20px;
    background-color: #f0f8ff;
    border-left: 6px solid #b77b3b;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Модальное окно фильтров - мобильная версия (выезжает снизу) */
.filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear 0.5s;
}

.filter-modal.active {
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.filter-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.filter-modal.active .filter-modal-overlay {
    opacity: 1;
}

.filter-modal-content {
    position: fixed;
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 85vh;
    background: #fff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
    z-index: 2001;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.filter-modal.active .filter-modal-content {
    transform: translateY(0);
}

.filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
    position: relative;
}

/* Индикатор для свайпа */
.filter-modal-header::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
}

.filter-modal-header h3 {
    margin: 0;
    margin-top: 12px;
    font-size: 1.3rem;
    color: #333;
    font-weight: 700;
}

.filter-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.filter-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.filter-modal-body {
    padding: 1.25rem;
    flex: 1;
    overflow-y: auto;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group:last-of-type {
    margin-bottom: 0;
}

.filter-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

/* Стили для раскрытых категорий */
.category-list .category-item.parent-category.expanded .category-link {
    background: #f8f9fa;
    color: #8a551cae;
    border-left-color: #b77b3b;
}

.category-list .category-item.parent-category.expanded .category-expand-btn {
    background: none;
}

.category-list .category-item.parent-category.expanded .category-arrow {
    color: #666;
}

.category-list .category-item[class*="child-of-"] .category-link {
    padding-left: 1.75rem;
    background: #fbfbfb;
    border-left-color: rgba(183,123,59,0.25);
}

.category-list .category-item[class*="child-of-"] .category-link:hover,
.category-list .category-item[class*="child-of-"] .category-link.active {
    background: #f7f4ef;
    border-left-color: #b77b3b;
}

/* ==========================================
   СРЕДНИЕ ЭКРАНЫ (>= 480px) - 2 колонки
   ========================================== */
@media (min-width: 480px) {
    .catalog-products {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .box-loader i {
        font-size: 50px;
    }
    
    .loading-text {
        font-size: 0.9rem;
    }
}

/* ==========================================
   ПЛАНШЕТЫ (>= 769px)
   ========================================== */
@media (min-width: 769px) {
    /* Layout - горизонтальный */
    .catalog-container {
        flex-direction: row;
        gap: 2rem;
        padding: 2rem 1rem;
    }
    
    /* Sidebar - показываем */
    .catalog-sidebar {
        display: block;
        width: 280px;
        position: sticky;
        top: 2rem;
        order: 1;
    }
    
    .catalog-main {
        order: 2;
    }
    
    /* Скрываем мобильное меню каталога */
    .mobile-catalog-menu {
        display: none;
    }
    
    /* Header */
    .catalog-header {
        flex-wrap: nowrap;
        align-items: center;
        margin-bottom: 2rem;
    }
    
    .catalog-title {
        font-size: 2rem;
    }
    
    .filter-toggle-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    /* Products - 2 колонки */
    .catalog-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Pagination - показываем */
    .catalog-pagination {
        display: flex;
    }
    
    /* Load more - скрываем */
    .load-more-container.active {
        display: none;
    }
    
    /* Loader */
    .catalog-loader {
        padding: 3rem 0;
    }
    
    .box-loader i {
        font-size: 60px;
    }
    
    .loading-text {
        font-size: 1rem;
    }
    
    /* No products */
    .no-products-found {
        padding: 4rem 1rem;
    }
    
    .no-products-found i {
        font-size: 3rem;
    }
    
    .no-products-title {
        font-size: 1.5rem;
    }
    
    .no-products-subtitle {
        font-size: 1rem;
    }
    
    /* Modal */
    .modal-content {
        padding: 30px;
    }
    
    .modal-icon {
        font-size: 4rem;
    }
    
    .modal-title {
        font-size: 1.8rem;
    }
    
    .modal-subtitle {
        font-size: 1rem;
    }
    
    /* Filter modal - выдвигается справа */
    .filter-modal-content {
        position: fixed;
        top: 0;
        bottom: 0;
        right: 0;
        left: auto;
        width: 420px;
        max-width: 90%;
        height: 100vh;
        max-height: none;
        border-radius: 0;
        box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
    }
    
    .filter-modal.active .filter-modal-content {
        transform: translateX(0);
    }
    
    .filter-modal-header {
        padding: 1.5rem;
    }
    
    .filter-modal-header::before {
        display: none;
    }
    
    .filter-modal-header h3 {
        font-size: 1.5rem;
        margin-top: 0;
    }
    
    .filter-modal-body {
        padding: 1.5rem;
    }
    
    /* Кастомный скроллбар */
    .filter-modal-body::-webkit-scrollbar {
        width: 8px;
    }
    
    .filter-modal-body::-webkit-scrollbar-track {
        background: #f1f1f1;
    }
    
    .filter-modal-body::-webkit-scrollbar-thumb {
        background: #b77b3b;
        border-radius: 4px;
    }
    
    .filter-modal-body::-webkit-scrollbar-thumb:hover {
        background: #a06a2f;
    }
    
    /* Landing grid */
    .landing-hero {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
    }
    
    .landing-title {
        font-size: 2rem;
    }
    
    .landing-grid {
        grid-template-columns: repeat(2, minmax(260px, 1fr));
    }
}

/* ==========================================
   БОЛЬШИЕ ЭКРАНЫ (>= 992px)
   ========================================== */
@media (min-width: 992px) {
    .landing-grid {
        grid-template-columns: repeat(3, minmax(280px, 1fr));
    }
}

/* ==========================================
   ДЕСКТОП (>= 1025px) - 3 колонки
   ========================================== */
@media (min-width: 1025px) {
    .catalog-products {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}


/* Products CSS with smooth animations */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Animation for cards appearing on page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation for cards appearing on scroll */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.product-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    min-height: 400px; /* Минимальная высота карточки */
    
    /* Initial animation on page load */
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
    
    /* Each card gets delayed animation based on its position */
    animation-delay: calc(var(--card-index, 0) * 0.1s);
}

/* Class for cards that appear during scroll */
.product-card.reveal {
    animation: fadeInScale 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-card .image-container {
    width: 100%;
    height: 250px; /* Фиксированная высота для изображения */
    overflow: hidden;
    position: relative;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-card .image-container > div {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.product-card .fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b77b3b;
    cursor: pointer;
    transition: transform 0.15s ease, color 0.2s ease, box-shadow 0.2s ease;
    z-index: 2;
}
.product-card .fav-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.product-card .fav-btn.active {
    color: #e23;
    animation: favPulse 300ms ease;
}
@keyframes favPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.product-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Показывает всё изображение без обрезки */
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover img {
    transform: scale(1.08);
}

/* Placeholder для отсутствующих изображений */
.product-card .placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 3rem;
    border: 2px dashed #dee2e6;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.product-card .placeholder-image span {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: #6c757d;
    transition: color 0.3s ease;
}

/* Контролы количества на карточках товаров */
.product-card .quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0.5rem;
    flex-wrap: nowrap;
}

.product-card .quantity-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #b77b3b;
    background: white;
    color: #b77b3b;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
    vertical-align: middle;
}

.product-card .quantity-btn:hover {
    background: #b77b3b;
    color: white;
}

.product-card .quantity-btn:active {
    transform: scale(0.95);
}

.product-card .quantity-display {
    font-weight: bold;
    color: #333;
    min-width: 30px;
    text-align: center;
    font-size: 16px;
    line-height: 32px;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.product-card:hover .product-info {
    transform: translateY(-3px);
}

.product-info h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Ограничиваем название двумя строками */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.6rem; /* Фиксированная высота для названия */
    transition: color 0.3s ease;
}

.product-card:hover .product-info h2 {
    color: #b77b3b;
}

.product-info .price {
    color: #b77b3b;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
    /* Removed hover effects for price */
}

/* Дополнительная информация о товаре */
.product-info .category {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.product-card:hover .product-info .category {
    color: #444;
}

.product-info .description {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Ограничиваем описание тремя строками */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
    transition: color 0.3s ease;
}

.product-card:hover .product-info .description {
    color: #333;
}

/* Balanced button hover animation */
@keyframes balancedGlow {
    0% { box-shadow: 0 4px 8px rgba(183, 123, 59, 0.2); }
    50% { box-shadow: 0 4px 15px rgba(183, 123, 59, 0.35); }
    100% { box-shadow: 0 4px 8px rgba(183, 123, 59, 0.2); }
}

.product-info .add-to-cart {
    background: #b77b3b; /* Более мягкий и современный цвет */
    color: white;
    border: none;
    padding: 0.9rem 1.5rem; /* Увеличенный padding */
    border-radius: 10px; /* Более закругленные углы */
    font-weight: 700; /* Более жирный шрифт */
    cursor: pointer;
    transition: all 0.3s ease; /* Более плавная анимация */
    margin-top: auto;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Добавление тени */
    overflow: hidden; /* Скрываем искру до появления */
}

@keyframes sparkle-wave {
    0% {
        left: -100%;
        opacity: 0;
        transform: skewX(-20deg) scale(0.8);
    }
    20% {
        opacity: 1;
        transform: skewX(-20deg) scale(1);
    }
    80% {
        opacity: 1;
        transform: skewX(-20deg) scale(1);
    }
    100% {
        left: 150%;
        opacity: 0;
        transform: skewX(-20deg) scale(0.8);
    }
}

.product-info .add-to-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 30%; /* Ширина искры */
    height: 100%;
    background: rgba(255, 255, 255, 0.4); /* Цвет искры */
    transform: skewX(-20deg); /* Наклон искры */
    transition: none; /* Отключаем переход для мгновенного появления */
    z-index: 2; /* Поверх кнопки */
    animation: none; /* Изначально анимация не активна */
}

.product-info .add-to-cart:hover::before {
    animation: sparkle-wave 0.5s ease-in-out forwards; /* Применяем анимацию при наведении */
}

.product-info .add-to-cart:hover {
    background: #a06a2f; /* Немного темнее при наведении */
    transform: translateY(-3px); /* Более выраженный эффект поднятия */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* Усиление тени при наведении */
}


.product-info .add-to-cart:hover::before {
    left: 100%;
}

.product-info .add-to-cart:active {
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Состояние "нет в наличии" */
.product-card.out-of-stock .image-container::after {
    content: "Нет в наличии";
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(62, 62, 62, 0.75);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.product-card.out-of-stock .add-to-cart {
    background: #6c757d;
    cursor: not-allowed;
}

.product-card.out-of-stock .add-to-cart:hover {
    background: #6c757d;
    transform: none;
    box-shadow: none;
    animation: none;
}





:root {
    --pd-primary: #b77b3b;
    --pd-primary-hover: #a06a2f;
    --pd-text: #111;
    --pd-text-secondary: #555;
    --pd-border: #e5e5e5;
    --pd-bg: #fff;
    --pd-gap: 40px;
}

/* Force full width overriding container */
.main {
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Layout */
.pd-wrapper {
    display: flex;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    gap: var(--pd-gap);
    background: var(--pd-bg);
    min-height: calc(100vh - 80px);
}

/* Left Column: Visuals */
.pd-visuals {
    flex: 1 1 50%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Desktop sticky visual */
@media (min-width: 992px) {
    .pd-visuals {
        position: sticky;
        top: 100px;
        align-self: flex-start;
        /* Removed overflow and max-height to prevent internal scrolling */
    }
}

.pd-image-stage {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    /* Optional: subtle border or shadow if desired, but kept clean as requested */
    padding: 10px;
}

.pd-main-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
}

/* Thumbnails (below image) */
.pd-thumbs-container {
    width: 100%;
}

.pd-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center; /* Center thumbs */
}

.thumb {
    width: 70px;
    height: 70px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #f9f9f9;
    cursor: pointer;
    padding: 4px;
    transition: all 0.2s ease;
}

.thumb:hover, .thumb.active {
    border-color: var(--pd-primary);
    transform: translateY(-2px);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    pointer-events: none;
}

/* Right Column: Details */
.pd-details {
    flex: 1 1 40%;
    min-width: 300px;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
}

.pd-content-inner {
    max-width: 600px;
}

/* Breadcrumbs */
.pd-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--pd-text-secondary);
    margin-bottom: 20px;
}

.pd-crumb-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

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

.pd-crumb-sep {
    color: #ccc;
    font-size: 12px;
}

/* Title & Price */
.pd-title {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--pd-text);
    margin-bottom: 16px;
}

.pd-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--pd-border);
}

.pd-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--pd-primary);
}

.pd-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.pd-stock-badge.in-stock {
    background: #e8f5e9;
    color: #2e7d32;
}

.pd-stock-badge.out-of-stock {
    background: #ffebee;
    color: #c62828;
}

/* Options */
.pd-purchase-options {
    margin-bottom: 24px;
}

.pd-option-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pd-option-card {
    position: relative;
    cursor: pointer;
}

.pd-option-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pd-option-content {
    display: flex;
    flex-direction: column;
    padding: 14px;
    border: 1px solid var(--pd-border);
    border-radius: 12px;
    background: #fff;
    transition: all 0.2s ease;
}

.pd-option-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--pd-text);
    margin-bottom: 4px;
}

.pd-option-desc {
    font-size: 13px;
    color: var(--pd-text-secondary);
}

.pd-check-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
    background: var(--pd-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s;
}

/* Checked State */
.pd-option-card input:checked + .pd-option-content {
    border-color: var(--pd-primary);
    background: #fffcf8;
    box-shadow: 0 2px 8px rgba(183, 123, 59, 0.1);
}

.pd-option-card input:checked ~ .pd-check-icon {
    opacity: 1;
    transform: scale(1);
}

.pd-note {
    margin-top: 10px;
    font-size: 13px;
    color: var(--pd-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Add to Cart Button */
.pd-add-btn {
    width: 100%;
    height: 56px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.2s, transform 0.1s;
}

.pd-add-btn:hover {
    background: var(--pd-primary);
}

.pd-add-btn:active {
    transform: scale(0.98);
}

.pd-add-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Description Section */
.pd-description {
    margin-top: 32px;
}

.pd-section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--pd-text);
}

.pd-text {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.pd-recent-section {
    max-width: 1400px;
    margin: 40px auto 80px;
    padding: 30px 20px;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    border-top: 1px solid var(--pd-border);
}
.pd-recent-inner { max-width: 1200px; margin: 0 auto; }
.pd-recent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.pd-recent-header .pd-section-title {
    margin: 0;
    padding-left: 14px;
    border-left: 4px solid var(--pd-primary);
}
.pd-title + .fav-btn {
    display: inline-flex;
    width: 36px; height: 36px; border-radius: 50%;
    background: #fff; border: 1px solid rgba(0,0,0,0.06); color: #b77b3b;
    align-items:center; justify-content:center; margin-left:8px; cursor:pointer;
    transition: transform .15s ease, color .2s ease;
}
.pd-title + .fav-btn.active { color:#e23; animation: favPulse 300ms ease; }
.recent-slider-wrapper {
    position: relative;
    margin-top: 18px;
    overflow: hidden;
}
.recent-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 6px 4px 24px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.recent-slider::-webkit-scrollbar { display: none; }
.recent-slide {
    flex: 0 0 320px;
    scroll-snap-align: start;
}
.recent-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 5;
    transition: all 0.2s ease;
}
.recent-nav-btn:hover {
    background: var(--pd-primary);
    color: #fff;
    transform: translateY(-50%) scale(1.06);
}
.recent-prev { left: 4px; }
.recent-next { right: 4px; }

@media (max-width: 768px) {
    .recent-nav-btn {
        width: 40px;
        height: 40px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    }
    .recent-prev { left: 2px; }
    .recent-next { right: 2px; }
}

.recent-slide .product-card {
    cursor: pointer;
}

.recent-slider .recent-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 24px;
    border: 1px dashed var(--pd-border);
    border-radius: 12px;
    background: #fff;
    color: var(--pd-text-secondary);
}
.recent-slider .recent-empty .fa-clock {
    display: block;
    font-size: 20px;
    color: var(--pd-primary);
    margin-bottom: 8px;
}
.recent-slider .recent-empty .recent-empty-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 16px;
    background: #111;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.recent-slider .recent-empty .recent-empty-link:hover {
    background: var(--pd-primary);
}

/* Specs list extracted from description */
.pd-spec-list {
    list-style: none;
    padding: 16px;
    margin: 16px 0 0;
    border: 1px solid var(--pd-border);
    border-radius: 12px;
    background: #fff;
}
.pd-spec-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
    align-items: start;
    padding: 6px 0;
    border-bottom: 1px dashed #eee;
}
.pd-spec-item:last-child { border-bottom: none; }
.pd-spec-name {
    font-weight: 600;
    color: var(--pd-text);
}
.pd-spec-value {
    color: var(--pd-text-secondary);
}

/* Quantity Controls Styling (Generated by JS) */
.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    width: 100%;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--pd-border);
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--pd-text);
}

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

.quantity-display {
    font-size: 18px;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pd-wrapper {
        flex-direction: column;
        gap: 24px;
        padding: 16px;
    }

    .pd-visuals {
        position: static; /* No sticky on mobile */
        max-height: none;
        overflow: visible;
    }

    .pd-main-image {
        max-height: 400px;
    }
    
    .pd-thumbs {
        justify-content: flex-start; /* Left align on mobile for horizontal scroll feel if needed, or keeping center */
        justify-content: center;
    }

    .thumb {
        width: 60px;
        height: 60px;
    }

    .pd-title {
        font-size: 24px;
    }
    
    .pd-price {
        font-size: 24px;
    }
    
    .pd-option-group {
        grid-template-columns: 1fr; /* Stack options on small screens */
    }

    /* Center controls on mobile explicitly */
    .quantity-controls {
        justify-content: center;
        margin-top: 16px;
    }
    .pd-spec-list { padding: 14px; border-width: 1px; }
    .pd-spec-item { padding: 10px 0; }
    .pd-spec-name { font-size: 16px; font-weight: 700; }
    .pd-spec-value { font-size: 16px; color: #222; }
}
    .pd-spec-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }
