.woocommerce-page .site-main,
.post-type-archive-product .site-main {
    padding: 5px 0;
}

/* Header de productos */
.woocommerce-products-header {
    margin-bottom: 30px;
    text-align: center;
}

.woocommerce-products-header__title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.term-description,
.page-description {
    max-width: 600px;
    margin: 0 auto;
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
}

body.dark-mode .woocommerce-products-header__title {
    color: #f8f9fa;
}

body.dark-mode .term-description,
body.dark-mode .page-description {
    color: #adb5bd;
}

/* ==========================================================================
   3. LAYOUT DE TIENDA CON SIDEBAR
   ========================================================================== */
.shop-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.shop-container.has-sidebar .shop-content {
    flex: 1;
    min-width: 0;
}

.shop-container.no-sidebar {
    display: block;
}

/* Sidebar de tienda */
.shop-sidebar {
    flex: 0 0 280px;
    position: sticky;
    top: 90px;

}

.shop-sidebar .widget {
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.shop-sidebar .widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
    margin: 0 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

body.dark-mode .shop-sidebar .widget {
    background: #2d2d2d;
    border-color: #3d3d3d;
}

body.dark-mode .shop-sidebar .widget-title {
    color: #f8f9fa;
}

/* ==========================================================================
   4. BARRA DE CONTROL DE TIENDA
   ========================================================================== */
.woocommerce-result-count {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
    float: left;
    padding: 10px 0;
}

.woocommerce-ordering {
    float: right;
    margin: 0;
}

.woocommerce-ordering select {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 10px 40px 10px 15px;
    font-size: 0.9rem;
    color: #212529;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.woocommerce-ordering select:hover,
.woocommerce-ordering select:focus {
    border-color: var(--primary-color);
    outline: none;
}

body.dark-mode .woocommerce-ordering select {
    background-color: #2d2d2d;
    border-color: #3d3d3d;
    color: #f8f9fa;
}

/* Clearfix */
.woocommerce::before,
.woocommerce::after {
    content: '';
    display: table;
    clear: both;
}

/* ==========================================================================
   5. GRID DE PRODUCTOS
   ========================================================================== */
ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    list-style: none !important;
    padding: 0 !important;
    margin: 25px 0 !important;
}

ul.products.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

ul.products.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

ul.products.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

ul.products.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

ul.products.columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

ul.products li.product,
.product-card-item {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    float: none !important;
}

/* ==========================================================================
   6. TARJETA DE PRODUCTO - Diseño del bloque
   ========================================================================== */
.product-card-block {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(225, 175, 26, 0.2);
}

/* Imagen del producto */
.product-card-block .product-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.product-card-block .product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-block:hover .product-image img {
    transform: scale(1.08);
}

.product-card-block .product-image a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Quick View Overlay */
.product-card-block .product-image::after {
    content: '👁️ Ver Detalles';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    color: #fff;
    padding: 40px 15px 15px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

.product-card-block:hover .product-image::after {
    opacity: 1;
    transform: translateY(0);
}

/* Badges */
.product-card-block .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 4;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-card-block .badge-sale {
    background: linear-gradient(135deg, #ff4757 0%, #c0392b 100%);
    color: #fff;
    animation: shake-badge 2.5s ease-in-out infinite;
}

@keyframes shake-badge {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10% {
        transform: rotate(-3deg);
    }

    20% {
        transform: rotate(3deg);
    }

    30% {
        transform: rotate(0deg);
    }
}

.product-card-block .badge-featured {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #1a1a1a;
}

/* Detalles del producto */
.product-card-block .product-details {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-block .product-category {
    font-size: 0.7rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-block .product-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.4;
    color: #212529;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.product-card-block .product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.product-card-block .product-title a:hover {
    color: var(--primary-color);
}

/* Precios */
.product-card-block .product-price {
    margin-bottom: 15px;
    font-weight: 800;
    font-size: 1.15rem;
    color: #212529;
}

.product-card-block .product-price del {
    color: #adb5bd;
    font-weight: 400;
    font-size: 0.8em;
    margin-right: 8px;
    text-decoration: line-through;
}

.product-card-block .product-price ins {
    text-decoration: none;
    color: #e74c3c;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, transparent 100%);
    padding: 2px 6px;
    border-radius: 4px;
}

.product-card-block .add-to-cart-btn.loading {
    pointer-events: none;
}

.product-card-block .add-to-cart-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.product-card-block .add-to-cart-btn.added {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
}

.product-card-block .add-to-cart-btn.added i::before {
    content: '\f00c';
}

*/

/* ==========================================================================
   7. PAGINACIÓN
   ========================================================================== */
.woocommerce-pagination {
    margin-top: 40px;
    text-align: center;
    clear: both;
}

.woocommerce-pagination ul {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-pagination ul li {
    margin: 0;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    color: #495057;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.woocommerce-pagination ul li a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(225, 175, 26, 0.3);
}

.woocommerce-pagination ul li span.current {
    background: var(--secondary-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(225, 175, 26, 0.3);
}

body.dark-mode .woocommerce-pagination ul li a,
body.dark-mode .woocommerce-pagination ul li span {
    background: #2d2d2d;
    border-color: #3d3d3d;
    color: #f8f9fa;
}

body.dark-mode .woocommerce-pagination ul li a:hover,
body.dark-mode .woocommerce-pagination ul li span.current {
    background: var(--primary-color);
    color: #fff;
}

/* ==========================================================================
   8. BREADCRUMBS
   ========================================================================== */
.woocommerce-breadcrumb {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 20px;
    padding: 10px 0;
}

.woocommerce-breadcrumb a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.woocommerce-breadcrumb a:hover {
    color: var(--primary-color);
}

/* ==========================================================================
   9. MENSAJES Y NOTIFICACIONES
   ========================================================================== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.woocommerce-message {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
    border-left: 4px solid #4CAF50;
    color: #2E7D32;
}

.woocommerce-info {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(33, 150, 243, 0.05) 100%);
    border-left: 4px solid #2196F3;
    color: #1565C0;
}

.woocommerce-error {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.1) 0%, rgba(244, 67, 54, 0.05) 100%);
    border-left: 4px solid #F44336;
    color: #C62828;
}

body.dark-mode .woocommerce-message {
    background: rgba(76, 175, 80, 0.15);
    color: #81C784;
}

body.dark-mode .woocommerce-info {
    background: rgba(33, 150, 243, 0.15);
    color: #64B5F6;
}

body.dark-mode .woocommerce-error {
    background: rgba(244, 67, 54, 0.15);
    color: #EF9A9A;
}

/* ==========================================================================
   10. PRODUCTOS RELACIONADOS Y UPSELLS
   ========================================================================== */
.related.products,
.upsells.products,
.cross-sells {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 3px solid var(--primary-color);
    position: relative;
}

.related.products::before,
.upsells.products::before,
.cross-sells::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

.related.products>h2,
.upsells.products>h2,
.cross-sells>h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 25px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

body.dark-mode .related.products>h2,
body.dark-mode .upsells.products>h2,
body.dark-mode .cross-sells>h2 {
    color: #f8f9fa;
}

/* Grid para relacionados/upsells */
.related.products ul.products,
.upsells.products ul.products,
.cross-sells ul.products {
    grid-template-columns: repeat(4, 1fr);
}

/* ==========================================================================
   11. DARK MODE
   ========================================================================== */
body.dark-mode .product-card-block {
    background: linear-gradient(135deg, #2d2d2d 0%, #252525 100%);
    border-color: #3d3d3d;
}

body.dark-mode .product-card-block:hover {
    border-color: rgba(225, 175, 26, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

body.dark-mode .product-card-block .product-title,
body.dark-mode .product-card-block .product-title a {
    color: #f8f9fa;
}

body.dark-mode .product-card-block .product-category {
    color: var(--primary-color);
}

body.dark-mode .product-card-block .product-price {
    color: #f8f9fa;
}

body.dark-mode .product-card-block .product-image {
    background: linear-gradient(135deg, #3d3d3d 0%, #2d2d2d 100%);
}

body.dark-mode .product-card-block .add-to-cart-btn {
    background: var(--primary-color);
    color: #1a1a1a;
}

body.dark-mode .product-card-block .add-to-cart-btn:hover {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    color: #1a1a1a;
}

/* ==========================================================================
   12. RESPONSIVE - TABLETS GRANDES
   ========================================================================== */
@media (max-width: 1200px) {
    ul.products {
        grid-template-columns: repeat(3, 1fr);
    }

    ul.products.columns-5,
    ul.products.columns-6 {
        grid-template-columns: repeat(4, 1fr);
    }

    .related.products ul.products,
    .upsells.products ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   13. RESPONSIVE - TABLETS
   ========================================================================== */
@media (max-width: 992px) {
    .shop-container {
        flex-direction: column;
    }

    .shop-sidebar {
        position: static;
        flex: none;
        width: 100%;
        max-height: none;
        margin-bottom: 30px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .shop-sidebar .widget {
        margin-bottom: 0;
    }

    ul.products,
    ul.products.columns-3,
    ul.products.columns-4,
    ul.products.columns-5,
    ul.products.columns-6 {
        grid-template-columns: repeat(3, 1fr);
    }

    .related.products ul.products,
    .upsells.products ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   14. RESPONSIVE - MÓVILES
   ========================================================================== */
@media (max-width: 768px) {
    .categories-products-wrapper {
        padding: 20px 0;
    }

    .woocommerce-products-header__title {
        font-size: 1.5rem;
    }

    .woocommerce-result-count {
        float: none;
        display: block;
        margin-bottom: 10px;
    }

    .woocommerce-ordering {
        float: none;
        display: block;
    }

    .woocommerce-ordering select {
        width: 100%;
    }

    ul.products,
    ul.products.columns-2,
    ul.products.columns-3,
    ul.products.columns-4,
    ul.products.columns-5,
    ul.products.columns-6 {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .related.products ul.products,
    .upsells.products ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .shop-sidebar {
        grid-template-columns: 1fr;
    }

    .product-card-block {
        border-radius: 12px;
    }

    .product-card-block .product-details {
        padding: 14px;
    }

    .product-card-block .product-category {
        font-size: 0.65rem;
        margin-bottom: 6px;
    }

    .product-card-block .product-title {
        font-size: 0.9rem;
        margin-bottom: 8px;
        min-height: 2.5em;
    }

    .product-card-block .product-price {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .product-card-block .add-to-cart-btn {
        padding: 10px 12px;
        font-size: 0.8rem;
        border-radius: 8px;
    }

    .product-card-block .badge {
        top: 8px;
        left: 8px;
        padding: 4px 10px;
        font-size: 0.65rem;
    }

    /* Disable quick view overlay on mobile */
    .product-card-block .product-image::after {
        display: none;
    }

    .related.products>h2,
    .upsells.products>h2 {
        font-size: 1.25rem;
    }

    .woocommerce-pagination ul li a,
    .woocommerce-pagination ul li span {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   15. RESPONSIVE - MÓVILES PEQUEÑOS
   ========================================================================== */
@media (max-width: 400px) {

    ul.products,
    ul.products.columns-2,
    ul.products.columns-3,
    ul.products.columns-4,
    ul.products.columns-5,
    ul.products.columns-6 {
        gap: 10px;
    }

    .product-card-block .product-details {
        padding: 12px;
    }

    .product-card-block .product-title {
        font-size: 0.85rem;
    }

    .product-card-block .product-price {
        font-size: 0.95rem;
    }

    .product-card-block .add-to-cart-btn {
        padding: 8px 10px;
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   16. ANIMACIÓN DE ENTRADA
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

ul.products li.product {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

ul.products li.product:nth-child(1) {
    animation-delay: 0.05s;
}

ul.products li.product:nth-child(2) {
    animation-delay: 0.1s;
}

ul.products li.product:nth-child(3) {
    animation-delay: 0.15s;
}

ul.products li.product:nth-child(4) {
    animation-delay: 0.2s;
}

ul.products li.product:nth-child(5) {
    animation-delay: 0.25s;
}

ul.products li.product:nth-child(6) {
    animation-delay: 0.3s;
}

ul.products li.product:nth-child(7) {
    animation-delay: 0.35s;
}

ul.products li.product:nth-child(8) {
    animation-delay: 0.4s;
}

ul.products li.product:nth-child(9) {
    animation-delay: 0.45s;
}

ul.products li.product:nth-child(10) {
    animation-delay: 0.5s;
}

ul.products li.product:nth-child(11) {
    animation-delay: 0.55s;
}

ul.products li.product:nth-child(12) {
    animation-delay: 0.6s;
}

/* ==========================================================================
   17. MOBILE SIDEBAR TOGGLE & OVERLAY
   ========================================================================== */

/* Toggle Button - Fixed on mobile */
.shop-sidebar-toggle {
    display: none;
    position: fixed;

    left: 20px;
    z-index: 999;
    background: var(--primary-color, #e1af1a);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 14px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    align-items: center;
    gap: 8px;
}

.shop-sidebar-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.shop-sidebar-toggle i {
    font-size: 1.1rem;
}

/* Sidebar Overlay */
.shop-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.shop-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Header for Mobile */
.sidebar-header-mobile {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--primary-color, #e1af1a);
    color: #fff;
    margin: -20px -20px 20px -20px;
    border-radius: 0;
}

.sidebar-header-mobile h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.3s ease;
}

.sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   18. AJAX PAGINATION STYLES
   ========================================================================== */
.tikitopro-ajax-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.tikitopro-ajax-pagination .ajax-page-btn {
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    color: #495057;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tikitopro-ajax-pagination .ajax-page-btn:hover {
    background: var(--primary-color, #e1af1a);
    border-color: var(--primary-color, #e1af1a);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(225, 175, 26, 0.3);
}

.tikitopro-ajax-pagination .ajax-page-btn.active {
    background: var(--primary-color, #e1af1a);
    border-color: var(--primary-color, #e1af1a);
    color: #fff;
    box-shadow: 0 4px 15px rgba(225, 175, 26, 0.3);
}

body.dark-mode .tikitopro-ajax-pagination .ajax-page-btn {
    background: #2d2d2d;
    border-color: #3d3d3d;
    color: #f8f9fa;
}

body.dark-mode .tikitopro-ajax-pagination .ajax-page-btn:hover,
body.dark-mode .tikitopro-ajax-pagination .ajax-page-btn.active {
    background: var(--primary-color, #e1af1a);
    color: #fff;
}

/* ==========================================================================
   19. RESPONSIVE - MOBILE SIDEBAR BEHAVIOR
   ========================================================================== */
@media (max-width: 992px) {

    /* Show toggle button on mobile */
    .shop-sidebar-toggle {
        display: flex;
    }

    /* Show overlay on mobile */
    .shop-sidebar-overlay {
        display: block;
    }

    /* Sidebar becomes slide-in panel */
    .shop-sidebar {
        position: fixed !important;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        max-height: 100vh;
        z-index: 1001;
        overflow-y: auto;
        transition: left 0.3s ease;
        background: #fff;
        border-radius: 0;
        box-shadow: 5px 0 30px rgba(0, 0, 0, 0.2);
        padding: 20px;
        display: block;
        grid-template-columns: none;
    }

    .shop-sidebar.active {
        left: 0;
    }

    /* Show mobile header */
    .sidebar-header-mobile {
        display: flex;
    }

    /* Widget styling for mobile */
    .shop-sidebar .widget {
        margin-bottom: 15px;
    }

    body.dark-mode .shop-sidebar {
        background: #1a1a1a;
    }

    /* Prevent body scroll when sidebar open */
    body.sidebar-open {
        overflow: hidden;
    }
}

@media (max-width: 768px) {
    .shop-sidebar-toggle {
        left: 0%;
        padding: 7px 7px;
        font-size: 15px;
        top: 50%;
        height: 90px;
    }

    .shop-sidebar {
        width: 280px;
        left: -290px;
    }

    .tikitopro-ajax-pagination .ajax-page-btn {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 0.85rem;
    }
}