body:is(.template-category, .template-search) .products-page-shell,
body.template-search .products-page-shell {
    background: #f5f5f5;
    padding: 24px 0 60px;
}

body:is(.template-category, .template-search) .products-page-shell .products-breadcrumb-section {
    padding: 0 0 24px;
}

body:is(.template-category, .template-search) .products-page-shell .products-page-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

body:is(.template-category, .template-search) .products-page-shell .products-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
    font-size: 14px;
    color: #777;
}

body:is(.template-category, .template-search) .products-page-shell .products-breadcrumb a {
    color: #777;
    text-decoration: none;
}

body:is(.template-category, .template-search) .products-page-shell .products-breadcrumb a:hover {
    color: #D9026D;
}

body:is(.template-category, .template-search) .products-page-shell .products-breadcrumb .current {
    color: #1a1a1a;
    font-weight: 600;
}

body:is(.template-category, .template-search) .products-page-shell .general-products-page {
    padding: 0;
}

body:is(.template-category, .template-search) .products-page-shell .products-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: start;
    width: 100%;
    max-width: 100%;
}

body:is(.template-category, .template-search) .products-page-shell .products-filters-sidebar {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 24px;
    position: static;
    top: auto;
    bottom: auto;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    align-self: start;
}

body:is(.template-category, .template-search) .products-page-shell .filters-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

body:is(.template-category, .template-search) .products-page-shell .price-filter-container {
    margin-top: 10px;
    margin-bottom: 0;
    padding-bottom: 0;
}

body:is(.template-category, .template-search) .products-page-shell .price-filter-container .font-small.font-weight-bold {
    display: block;
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 14px;
}

body:is(.template-category, .template-search) .products-page-shell .price-filter-container input,
body:is(.template-category, .template-search) .products-page-shell .price-filter-container .form-control,
body:is(.template-category, .template-search) .products-page-shell .price-filter-container .form-select,
body:is(.template-category, .template-search) .products-page-shell .price-filter-container .form-quantity {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    box-sizing: border-box;
}

body:is(.template-category, .template-search) .products-page-shell .price-filter-container .btn,
body:is(.template-category, .template-search) .products-page-shell .price-filter-container .btn-default {
    width: 100%;
    margin-top: 12px;
    border-radius: 10px;
    background: #efefef;
    border: 0;
    padding: 14px 18px;
    font-weight: 700;
    color: #1a1a1a;
}

body:is(.template-category, .template-search) .products-page-shell .products-content {
    min-width: 0;
    max-width: 100%;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 20px;
    padding: 28px;
    box-sizing: border-box;
    overflow-x: hidden;
}

body:is(.template-category, .template-search) .products-page-shell .products-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ececec;
}

body:is(.template-category, .template-search) .products-page-shell .products-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 8px;
}

body:is(.template-category, .template-search) .products-page-shell .products-count {
    margin: 0;
    color: #777;
    font-size: 14px;
}

body:is(.template-category, .template-search) .products-page-shell .products-info {
    min-width: 0;
    width: 100%;
}

body:is(.template-category, .template-search) .products-page-shell .products-meta-row,
body.template-category .category-page-shell .products-meta-row,
body.template-category .seasonal-page .products-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

body:is(.template-category, .template-search) .products-page-shell .products-description {
    margin: 0 0 20px;
    color: #666;
    line-height: 1.6;
}

body:is(.template-category, .template-search) .products-page-shell .js-category-controls {
    margin-bottom: 20px;
}

body:is(.template-category, .template-search) .products-page-shell .custom-filters-panel,
body.template-category .seasonal-page .custom-filters-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

body:is(.template-category, .template-search) .products-page-shell .custom-filters-panel__sorting,
body.template-category .seasonal-page .custom-filters-panel__sorting {
    padding-bottom: 24px;
    border-bottom: 1px solid #ececec;
    margin-bottom: 8px;
}

body:is(.template-category, .template-search) .products-page-shell .custom-filters-panel__filters,
body.template-category .seasonal-page .custom-filters-panel__filters {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body:is(.template-category, .template-search) .products-page-shell .custom-filters-panel__categories,
body.template-category .seasonal-page .custom-filters-panel__categories,
body:is(.template-category, .template-search) .products-page-shell .custom-filters-drawer__categories,
body.template-category .seasonal-page .custom-filters-drawer__categories {
    padding-bottom: 18px;
    border-bottom: 1px solid #ececec;
}

body:is(.template-category, .template-search) .products-page-shell .custom-filters-panel__header,
body.template-category .seasonal-page .custom-filters-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body:is(.template-category, .template-search) .products-page-shell .custom-filters-panel__badge,
body.template-category .seasonal-page .custom-filters-panel__badge {
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #D9026D 0%, #E02078 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

body:is(.template-category, .template-search) .products-page-shell .custom-filter-button,
body.template-category .seasonal-page .custom-filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, #D9026D 0%, #E02078 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    position: relative;
}

body:is(.template-category, .template-search) .products-page-shell .custom-filter-button__badge,
body.template-category .seasonal-page .custom-filter-button__badge {
    position: static;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

body:is(.template-category, .template-search) .products-page-shell .custom-filters-drawer,
body.template-category .seasonal-page .custom-filters-drawer {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

body:is(.template-category, .template-search) .products-page-shell .custom-filters-drawer__sorting,
body.template-category .seasonal-page .custom-filters-drawer__sorting {
    padding-bottom: 20px;
    border-bottom: 1px solid #ececec;
}

body:is(.template-category, .template-search) .products-page-shell #filters,
body.template-category .seasonal-page #filters {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body:is(.template-category, .template-search) .products-page-shell .js-accordion-container,
body.template-category .seasonal-page .js-accordion-container {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 1px solid #f2f2f2;
}

body:is(.template-category, .template-search) .products-page-shell .js-accordion-container:last-child,
body.template-category .seasonal-page .js-accordion-container:last-child {
    border-bottom: 0;
}

body:is(.template-category, .template-search) .products-page-shell .checkbox-container,
body.template-category .seasonal-page .checkbox-container {
    display: block;
    margin-bottom: 12px;
}

body:is(.template-category, .template-search) .products-page-shell .chip,
body.template-category .seasonal-page .chip {
    margin: 0 10px 10px 0;
}

body:is(.template-category, .template-search) .products-page-shell .category-controls,
body.template-category .category-page-shell .category-controls,
body.template-category .seasonal-page .category-controls {
    position: static;
    padding: 0;
    margin: 0;
}

body:is(.template-category, .template-search) .products-page-shell .category-controls-container,
body.template-category .category-page-shell .category-controls-container,
body.template-category .seasonal-page .category-controls-container {
    padding: 0;
    text-align: right;
    max-width: none;
    width: auto;
    margin: 0;
}

body:is(.template-category, .template-search) .products-page-shell .js-product-table {
    margin: 0;
}

/* Seasonal listings do not use Bootstrap's row wrapper, so their grid must
   exist at every viewport size instead of only inside the mobile breakpoint. */
body.template-category .seasonal-page .seasonal-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    margin: 0;
}

body.template-category .seasonal-page .seasonal-product-grid > .item-product,
body.template-category .seasonal-page .seasonal-product-grid > .js-item-product {
    width: auto;
    max-width: none;
    min-width: 0;
    flex: none;
    padding: 0;
}

body:is(.template-category, .template-search) .products-page-shell .empty-page-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    min-height: 400px;
}

body:is(.template-category, .template-search) .products-page-shell .empty-page-clock {
    margin-bottom: 40px;
}

body:is(.template-category, .template-search) .products-page-shell .clock-face {
    width: 120px;
    height: 120px;
    border: 4px solid #D9026D;
    border-radius: 50%;
    position: relative;
    background: #fff;
    box-shadow: 0 4px 24px rgba(217, 2, 109, 0.15);
}

body:is(.template-category, .template-search) .products-page-shell .clock-center {
    width: 10px;
    height: 10px;
    background: #D9026D;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

body:is(.template-category, .template-search) .products-page-shell .clock-hand {
    position: absolute;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    border-radius: 3px;
}

body:is(.template-category, .template-search) .products-page-shell .clock-hand-hour {
    width: 4px;
    height: 30px;
    background: #1a1a1a;
    margin-left: -2px;
    animation: productsPageRotateHour 12s linear infinite;
}

body:is(.template-category, .template-search) .products-page-shell .clock-hand-minute {
    width: 3px;
    height: 42px;
    background: #D9026D;
    margin-left: -1.5px;
    animation: productsPageRotateMinute 3s linear infinite;
}

body:is(.template-category, .template-search) .products-page-shell .clock-mark {
    position: absolute;
    background: #333;
}

body:is(.template-category, .template-search) .products-page-shell .clock-mark-12 {
    width: 3px;
    height: 10px;
    top: 6px;
    left: 50%;
    margin-left: -1.5px;
    border-radius: 2px;
}

body:is(.template-category, .template-search) .products-page-shell .clock-mark-3 {
    width: 10px;
    height: 3px;
    right: 6px;
    top: 50%;
    margin-top: -1.5px;
    border-radius: 2px;
}

body:is(.template-category, .template-search) .products-page-shell .clock-mark-6 {
    width: 3px;
    height: 10px;
    bottom: 6px;
    left: 50%;
    margin-left: -1.5px;
    border-radius: 2px;
}

body:is(.template-category, .template-search) .products-page-shell .clock-mark-9 {
    width: 10px;
    height: 3px;
    left: 6px;
    top: 50%;
    margin-top: -1.5px;
    border-radius: 2px;
}

body:is(.template-category, .template-search) .products-page-shell .empty-page-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

body:is(.template-category, .template-search) .products-page-shell .empty-page-text {
    font-size: 16px;
    color: #666;
    max-width: 440px;
    line-height: 1.6;
    margin-bottom: 32px;
}

body:is(.template-category, .template-search) .products-page-shell .empty-page-btn {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(90deg, #D9026D 0%, #E02078 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

body:is(.template-category, .template-search) .products-page-shell .empty-page-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

@keyframes productsPageRotateHour {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes productsPageRotateMinute {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 1019px) {
    body:is(.template-category, .template-search) .products-page-shell .products-layout,
    body.template-category .category-page-shell .products-layout,
    body.template-category .seasonal-page .products-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    body:is(.template-category, .template-search) .products-page-shell .products-filters-sidebar,
    body.template-category .category-page-shell .products-filters-sidebar,
    body.template-category .seasonal-page .products-filters-sidebar {
        display: none;
    }

    body:is(.template-category, .template-search) .products-page-shell .products-content {
        padding: 24px;
        border-radius: 18px;
    }

    body:is(.template-category, .template-search) .products-page-shell .products-header {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    body:is(.template-category, .template-search) .products-page-shell .products-meta-row,
    body.template-category .category-page-shell .products-meta-row,
    body.template-category .seasonal-page .products-meta-row {
        flex-wrap: nowrap;
    }

    body:is(.template-category, .template-search) .products-page-shell .custom-filter-button,
    body.template-category .seasonal-page .custom-filter-button {
        width: auto;
        min-width: 0;
        min-height: 44px;
        padding: 0 16px;
        white-space: nowrap;
    }

    body.template-category .seasonal-page .seasonal-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    body:is(.template-category, .template-search) .products-page-shell,
    body.template-category .seasonal-page {
        padding-bottom: 40px;
    }

    body:is(.template-category, .template-search) .products-page-shell .products-page-container {
        padding: 0 8px;
    }

    body:is(.template-category, .template-search) .products-page-shell .products-content {
        padding: 18px 8px;
        border-radius: 14px;
    }

    body:is(.template-category, .template-search) .products-page-shell .products-header {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 14px;
        padding-bottom: 14px;
    }

    body:is(.template-category, .template-search) .products-page-shell .products-title {
        font-size: 24px;
        line-height: 1.15;
    }

    body:is(.template-category, .template-search) .products-page-shell .products-count {
        font-size: 13px;
        min-width: 0;
    }

    body:is(.template-category, .template-search) .products-page-shell .category-controls,
    body.template-category .category-page-shell .category-controls,
    body.template-category .seasonal-page .category-controls {
        flex: 0 0 auto;
    }

    body:is(.template-category, .template-search) .products-page-shell .custom-filter-button,
    body.template-category .seasonal-page .custom-filter-button {
        width: auto;
        min-width: 0;
        min-height: 40px;
        padding: 0 12px;
        border-radius: 999px;
        font-size: 12px;
    }

    body:is(.template-category, .template-search) .products-page-shell .js-product-table,
    body.template-category .category-page-shell .js-product-table,
    body.template-category .seasonal-page .seasonal-product-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin: 0;
    }

    body:is(.template-category, .template-search) .products-page-shell .js-product-table > .item-product,
    body:is(.template-category, .template-search) .products-page-shell .js-product-table > .js-item-product,
    body.template-category .category-page-shell .js-product-table > .item-product,
    body.template-category .category-page-shell .js-product-table > .js-item-product,
    body.template-category .seasonal-page .seasonal-product-grid > .item-product,
    body.template-category .seasonal-page .seasonal-product-grid > .js-item-product {
        width: auto;
        max-width: none;
        flex: none;
        padding: 0;
        min-width: 0;
    }

    body:is(.template-category, .template-search) .products-page-shell .empty-page-state {
        padding: 50px 16px;
        min-height: 300px;
    }

    body:is(.template-category, .template-search) .products-page-shell .clock-face {
        width: 90px;
        height: 90px;
    }

    body:is(.template-category, .template-search) .products-page-shell .clock-hand-hour {
        height: 22px;
    }

    body:is(.template-category, .template-search) .products-page-shell .clock-hand-minute {
        height: 32px;
    }

    body:is(.template-category, .template-search) .products-page-shell .empty-page-title {
        font-size: 20px;
    }

    body:is(.template-category, .template-search) .products-page-shell .empty-page-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body:is(.template-category, .template-search) .products-page-shell .products-meta-row,
    body.template-category .category-page-shell .products-meta-row,
    body.template-category .seasonal-page .products-meta-row {
        align-items: center;
        gap: 10px;
    }

    body:is(.template-category, .template-search) .products-page-shell .js-product-table,
    body.template-category .category-page-shell .js-product-table,
    body.template-category .seasonal-page .seasonal-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

body.template-category .products-page-shell.seasonal-page .products-breadcrumb-section {
    padding-top: 20px;
}
