* {
    font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", sans-serif;
}

/* ========================================
   전체 레이아웃
   ======================================== */
.products-wrapper {
    max-width: 10000px;
    margin: 50px auto;
    padding: 0 60px;
}

/* 데스크톱에서만 왼쪽 마진 추가 */
@media (min-width: 1025px) and (max-width: 1700px) {
    .products-wrapper {
        margin-left: 5%;
        margin-right: 5%;
        margin-top: 1.5%;
    }
}

@media (min-width: 1701px) {
    .products-wrapper {
        margin-left: 15%;
        margin-right: 15%;
        margin-top: 1.5%;
    }
}

.logotext1 {
    font-size: 16px;
    font-weight: bold;
    color: rgba(122, 66, 9, 0.719);
}

/* ========================================
   사이드바
   ======================================== */
.sidebar {
    width: 100%;
}

.sidebar-title {
    margin-top: 10px;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.main-category-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-category-item {
    margin-bottom: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: visible;
    height: auto;
}

.main-category-link {
    display: block;
    padding: 15px 20px;
    color: #333;
    background: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.main-category-link:hover {
    background: #f5f5f5;
}

.main-category-link.active {
    background: #f0f0f0;
}

.main-category-link::after {
    content: '▼';
    position: absolute;
    right: 20px;
    transition: transform 0.3s;
    font-size: 12px;
}

.main-category-item.open .main-category-link::after {
    transform: rotate(180deg);
}

.sub-category-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fafafa;
}

.main-category-item.open .sub-category-container {
    max-height: 10000px;
    overflow: visible;
    transition: max-height 0.5s ease;
}

.main-category-item:not(.open) .category-link,
.main-category-item:not(.open) .subcategory-link {
    background: transparent !important;
    color: #333 !important;
    font-weight: normal !important;
}

.main-category-item:not(.open) .category-link.active,
.main-category-item:not(.open) .subcategory-link.active {
    background: transparent !important;
    color: #333 !important;
    font-weight: normal !important;
}

.category-menu {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.category-item {
    margin-bottom: 5px;
}

.category-link {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 15px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.category-link:hover {
    background: #f5f5f5;
}

.category-link.active {
    background: #333;
    color: white;
    font-weight: bold;
}

.subcategory-menu {
    list-style: none;
    padding: 10px 15px;
    margin: 5px 0 0 0;
    display: none;
    background: #f9f9f9;
    border-radius: 5px;
}

.category-item.expanded .subcategory-menu {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding: 0 15px;
    }
    to {
        opacity: 1;
        max-height: 200px;
        padding: 10px 15px;
    }
}

/* 하드웨어 링크가 확장되었을 때만 검은색 */
.category-item.expanded > .category-link {
    background: #333 !important;
    color: white !important;
    font-weight: bold !important;
}

.subcategory-link {
    display: block;
    padding: 8px 15px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    border-radius: 3px;
    margin-bottom: 3px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.subcategory-link:hover {
    background: #e8e8e8;
    color: #333;
}

.subcategory-link.active {
    background: #333;
    color: white;
    font-weight: bold;
}

/* ========================================
   제품 영역 (데스크톱)
   ======================================== */
.products-content {
    flex: 1;
    display: none;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.filter-options {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
}

.view-toggle {
    display: flex;
    gap: 5px;
}

.view-btn {
    padding: 8px 10px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s;
}

.view-btn:hover {
    background: #f5f5f5;
}

.view-btn.active {
    background: #333;
    color: white;
    border-color: #333;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    transition: all 0.3s;
}

.products-grid.grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    padding-bottom: 100%;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    background: #333;
    color: white;
    font-size: 12px;
    border-radius: 20px;
    font-weight: bold;
    z-index: 1;
}

.favorite-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1;
}

.favorite-btn:hover {
    background: #333;
    color: white;
    border-color: #333;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 6px;
    color: #333;
}

.product-code {
    font-size: 12px;
    color: #999;
}

/* 4열 그리드 스타일 */
.products-grid.grid-4 .product-image { 
    padding-bottom: 100%; 
}

.products-grid.grid-4 .favorite-btn { 
    bottom: 8px;
    right: 8px;
    width: 32px;
    height: 32px; 
}

.products-grid.grid-4 .product-badge { 
    top: 8px;
    right: 8px; 
    font-size: 10px;
    padding: 3px 8px;
}

.products-grid.grid-4 .product-name { 
    font-size: 12px;
}

.products-grid.grid-4 .product-code { 
    font-size: 11px;
}

.products-grid.grid-4 .product-info { 
    padding: 12px;
}

/* ========================================
   카테고리별 제품 그리드 (모바일용)
   ======================================== */
.category-products-grid {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
    margin-top: 10px;
    height: auto;
    min-height: 0;
}

.category-products-grid.mobile-products-grid {
    display: grid;
    grid-auto-rows: auto;
    height: auto;
}

.category-products-grid .product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: auto;
}

.category-products-grid .product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    background: #f5f5f5;
    overflow: hidden;
    flex-shrink: 0;
}

.category-products-grid .product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.category-products-grid .product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background: #333;
    color: white;
    font-size: 11px;
    border-radius: 15px;
    font-weight: bold;
    z-index: 2;
}

.category-products-grid .favorite-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s;
}

.category-products-grid .favorite-btn:hover {
    background: white;
    transform: scale(1.1);
}

.category-products-grid .product-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.category-products-grid .product-name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-products-grid .product-code {
    font-size: 12px;
    color: #999;
}

.category-products-grid .no-products-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 14px;
}

/* 4열 그리드 (모바일) */
.category-products-grid.grid-view-4 {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px;
}

.category-products-grid.grid-view-4 .product-card {
    border-radius: 5px;
    height: auto;
}

.category-products-grid.grid-view-4 .product-image {
    aspect-ratio: 1 / 1;
}

.category-products-grid.grid-view-4 .favorite-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
    bottom: 6px;
    right: 6px;
}

.category-products-grid.grid-view-4 .product-badge {
    font-size: 9px;
    padding: 3px 8px;
    top: 6px;
    right: 6px;
}

.category-products-grid.grid-view-4 .product-info {
    padding: 8px;
}

.category-products-grid.grid-view-4 .product-name {
    font-size: 11px;
    margin-bottom: 3px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-products-grid.grid-view-4 .product-code {
    font-size: 10px;
}

/* 모바일 헤더 */
.mobile-products-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    margin-top: 10px;
}

.mobile-sort-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background: white;
}

.mobile-view-toggle { 
    display: flex; 
    gap: 5px; 
}

.mobile-view-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.mobile-view-btn.active {
    background: #333;
    color: white;
    border-color: #333;
}

/* ========================================
   위시리스트 & 모달
   ======================================== */
.wishlist-link {
    position: fixed;
    right: 40px;
    top: 40px;
    z-index: 1000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wishlist-icon {
    font-size: 24px;
    transition: transform 0.3s;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.wishlist-link:hover .wishlist-icon {
    transform: scale(1.15);
}

.wishlist-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background: #e74c3c;
    color: white;
    font-size: 13px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.product-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    padding: 20px;
    overflow-y: auto;
}

.product-modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    background: white;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalFadeIn 0.3s;
    display: flex;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 35px;
    height: 35px;
    background: #333;
    color: white;
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #555;
}

.modal-body {
    display: flex;
    gap: 0;
    padding: 0;
    width: 100%;
}

.modal-image-section {
    flex: 0 0 45%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.modal-main-image {
    width: 100%;
    height: 100%;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-info-section {
    flex: 0 0 55%;
    padding: 30px;
    overflow-y: auto;
}

.modal-category {
    font-size: 11px;
    color: #999;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.modal-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #000;
    letter-spacing: -1px;
}

.modal-subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 25px;
}

.modal-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 25px 0;
}

.modal-description {
    margin-bottom: 25px;
}

.modal-description h3 {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 15px;
}

.modal-description p {
    line-height: 1.7;
    color: #333;
    font-size: 12px;
}

.modal-spec {
    margin-bottom: 25px;
}

.modal-spec h3 {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 15px;
}

.modal-spec ul {
    list-style: none;
    padding: 0;
}

.modal-spec li {
    padding: 8px 0;
    font-size: 12px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.modal-spec li:last-child {
    border-bottom: none;
}

.modal-actions {
    display: flex;
    gap: 0;
    margin-top: 30px;
}

.modal-btn {
    flex: 1;
    padding: 14px 0;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-btn-inquiry {
    background: #000;
    color: white;
}

.modal-btn-inquiry:hover {
    background: #333;
}

.modal-btn-share {
    background: white;
    color: #000;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-btn-share:hover {
    background: #f5f5f5;
}

.modal-btn-share.wishlisted {
    background: #ffe8e8;
    border-color: #e74c3c;
}

/* ========================================
   플로팅 버튼
   ======================================== */
.floating-kakao {
    position: fixed;
    bottom: 150px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: #FEE500;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 9998;
    cursor: pointer;
}

.floating-kakao:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.floating-kakao-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 2px;
}

.floating-kakao-text {
    font-size: 11px;
    font-weight: bold;
    color: #3C1E1E;
}

/* ========================================
   가로 스크롤 메뉴 스타일 (모바일용)
   ======================================== */
.category-menu-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.category-menu-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.category-menu-scroll-wrapper.dragging {
    cursor: grabbing;
    user-select: none;
}

.category-menu-scroll-wrapper:not(.dragging) {
    cursor: grab;
}

.category-menu-scroll-wrapper .category-link,
.category-menu-scroll-wrapper .subcategory-link {
    cursor: grab;
}

.category-menu-scroll-wrapper.dragging .category-link,
.category-menu-scroll-wrapper.dragging .subcategory-link {
    cursor: grabbing;
}

/* ========================================
   반응형: 데스크톱
   ======================================== */
@media (min-width: 1025px) {
    .products-wrapper {
        display: flex !important;
        gap: 30px;
        align-items: flex-start;
    }
    
    .sidebar {
        width: 200px;
        flex-shrink: 0;
    }
    
    .products-content {
        display: block !important;
        flex: 1;
    }
    
    .category-products-grid {
        display: none !important;
    }
    
    .mobile-products-header {
        display: none !important;
    }
    
    .category-menu-scroll-wrapper {
        overflow: visible;
    }
    
    .category-menu {
        display: block !important;
    }
    
    .category-item {
        cursor: default;
        display: block;
    }
    
    .category-link {
        cursor: pointer;
        display: block;
    }
    
    .category-link:hover {
        padding-left: 20px;
    }
    
    .subcategory-link {
        cursor: pointer;
    }
}

/* 데스크톱 전용: 1800px 이하 → 3배열 */
@media (min-width: 1025px) and (max-width: 1800px) {
    .products-grid.grid-4 { 
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 18px;
    }
}

/* 데스크톱 전용: 1200px 이하 → 2배열 */
@media (min-width: 1025px) and (max-width: 1200px) {
    .products-grid.grid-4 { 
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
}

/* ========================================
   반응형: 모바일 (1024px 이하)
   ======================================== */
@media (max-width: 1024px) {
    .products-wrapper {
        padding: 0 30px;
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .products-content {
        display: none !important;
    }
    
    .mobile-products-header {
        display: flex;
    }
    
    .category-products-grid {
        padding: 15px;
        margin-top: 0;
    }
    
    .main-category-item.open .category-menu-scroll-wrapper {
        padding: 10px 15px;
    }
    
    .main-category-item.open .category-menu {
        display: flex;
        flex-direction: row;
        gap: 10px;
        padding: 0;
        overflow: visible;
    }
    
    .main-category-item.open .category-item {
        margin-bottom: 0;
        width: auto;
        display: inline-block;
    }
    
    .main-category-item.open .category-link {
        white-space: nowrap;
        padding: 10px 20px;
        border: 1px solid #ddd;
        border-radius: 20px;
        background: white;
        display: inline-block;
        height: auto;
        line-height: normal;
    }
    
    .main-category-item.open .category-link:hover {
        padding: 10px 20px;
        background: #f5f5f5;
    }
    
    .main-category-item.open .category-link.active {
        background: #333;
        color: white;
        border-color: #333;
    }
    
    /* 모바일 서브메뉴 - 기본적으로 숨김 */
    .main-category-item.open .subcategory-menu {
        display: none;
        flex-direction: column;
        gap: 5px;
        padding: 10px 15px;
        margin-top: 10px;
        background: #f5f5f5;
        border-radius: 8px;
        overflow: visible;
    }
    
    /* expanded 클래스가 있을 때만 서브메뉴 표시 */
    .main-category-item.open .category-item.expanded .subcategory-menu {
        display: flex !important;
    }
    
    /* 모바일 서브메뉴 링크 */
    .main-category-item.open .subcategory-link {
        padding: 10px 15px;
        background: white;
        border: 1px solid #ddd;
        border-radius: 5px;
        white-space: nowrap;
        font-size: 14px;
    }
    
    .main-category-item.open .subcategory-link:hover {
        background: #f5f5f5;
    }
    
    .main-category-item.open .subcategory-link.active {
        background: #333;
        color: white;
        border-color: #333;
    }
    
    /* 모바일에서 하드웨어가 확장되었을 때 */
    .main-category-item.open .category-item.expanded > .category-link {
        background: #333 !important;
        color: white !important;
        border-color: #333 !important;
    }
}

/* ========================================
   반응형: 태블릿 (768px 이하)
   ======================================== */
@media (max-width: 768px) {
    .products-wrapper { 
        padding: 0 20px; 
    }
    
    .wishlist-link { 
        right: 20px; 
        top: 20px; 
    }
    
    .wishlist-icon { 
        font-size: 30px; 
    }
    
    .modal-content { 
        margin: 0; 
        max-width: 100%; 
        height: 100vh; 
    }
    
    .modal-body { 
        flex-direction: column; 
        height: 100%; 
    }
    
    .modal-image-section { 
        flex: 0 0 40%; 
        padding: 40px 20px; 
    }
    
    .modal-info-section { 
        flex: 1; 
        padding: 40px 20px; 
        max-height: none; 
    }
    
    .floating-kakao { 
        width: 60px; 
        height: 60px; 
        bottom: 90px; 
        right: 20px; 
    }
    
    .floating-kakao-icon { 
        width: 35px; 
        height: 35px; 
    }
}

/* ========================================
   반응형: 800px 이하 - 모바일 4열을 2열로 변경
   ======================================== */
@media (max-width: 800px) {
    .category-products-grid.grid-view-4 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    
    .category-products-grid.grid-view-4 .product-card {
        border-radius: 8px;
    }
    
    .category-products-grid.grid-view-4 .favorite-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
        bottom: 10px;
        right: 10px;
    }
    
    .category-products-grid.grid-view-4 .product-badge {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .category-products-grid.grid-view-4 .product-info {
        padding: 12px;
    }
    
    .category-products-grid.grid-view-4 .product-name {
        font-size: 14px;
        margin-bottom: 5px;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }
    
    .category-products-grid.grid-view-4 .product-code {
        font-size: 12px;
    }
}

/* ========================================
   반응형: 480px 이하
   ======================================== */
@media (max-width: 480px) {
    .products-wrapper {
        padding: 0 15px;
    }
    
    .products-grid, 
    .products-grid.grid-4 { 
        grid-template-columns: 1fr; 
        gap: 20px; 
    }
    
    .category-products-grid,
    .category-products-grid.grid-view-4 { 
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px; 
    }
    
    .mobile-products-header {
        padding: 12px 15px;
    }
    
    .category-products-grid {
        padding: 12px;
    }
}