.lux-woo-widget-container {
    font-family: inherit;
    --lux-dark: #0a0a0a;
    --lux-brown: #2d2520;
    --lux-gold: #d4af37;
    --lux-cream: #faf5e5;
    background-color: var(--lux-dark);
    color: var(--lux-cream);
    padding: 0 0 40px 0;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Hero */
.lux-hero-section {
    position: relative;
    padding: 100px 20px;
    text-align: center;
    background-size: cover;
    background-position: center;
    width: 100%;
    box-sizing: border-box;
}
.lux-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 10, 10, 0.7);
    z-index: 1;
}
.lux-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}
.lux-hero-title {
    color: var(--lux-gold);
    font-size: 3rem;
    margin-bottom: 20px;
    word-break: break-word;
}
.lux-hero-subtitle {
    font-size: 1.2rem;
    color: #ddd;
}

/* Categories Grid */
.lux-categories-wrapper {
    padding: 40px 20px;
    width: 100%;
    box-sizing: border-box;
}
.lux-categories-grid {
    display: grid;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}
.lux-category-card {
    background: var(--lux-brown);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 15px;
    box-sizing: border-box;
    width: 100%;
}
.lux-category-card:hover, .lux-category-card.active {
    border-color: var(--lux-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}
.lux-category-card.active .lux-cat-name {
    color: var(--lux-gold);
}
.lux-cat-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}
.lux-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lux-cat-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0; /* Prevent flex blowout */
}
.lux-cat-name {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #fff;
    transition: color 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lux-cat-count {
    font-size: 0.85rem;
    color: #aaa;
}

/* Products Area */
.lux-products-area {
    padding: 0 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Sorting Header */
.lux-products-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    width: 100%;
}

/* CUSTOM WRAPPER FIX FOR VISIBILITY */
.lux-custom-select-wrapper {
    position: relative;
    display: inline-block;
    min-width: 250px;
    background-color: #fff;
    border: 1px solid var(--lux-gold);
    border-radius: 6px;
    overflow: hidden;
}

/* The visible label sitting over the select */
.lux-custom-select-label {
    position: absolute;
    top: 0;
    left: 0;
    right: 30px; /* Space for the arrow */
    bottom: 0;
    padding: 12px 20px;
    color: #000;
    font-size: 1rem;
    font-weight: 600;
    pointer-events: none; /* Let clicks pass through to the real select */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    z-index: 2;
}

/* Custom black arrow */
.lux-custom-select-wrapper::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23000000%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 2;
}

/* The real select element hidden but functional */
.lux-custom-select-wrapper select.lux-sort-select {
    width: 100%;
    height: 100%;
    padding: 12px 20px;
    opacity: 0; /* Hide the native text rendering */
    cursor: pointer;
    position: relative;
    z-index: 3;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: none;
    background: transparent;
}

/* Make sure dropdown options still look decent if opacity tricks apply to them in some browsers */
.lux-custom-select-wrapper select.lux-sort-select option {
    color: #000;
    background-color: #fff;
}

.lux-ajax-products-container {
    position: relative;
    min-height: 300px;
    width: 100%;
}
.lux-loader {
    display: none;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 40px; height: 40px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--lux-gold);
    border-radius: 50%;
    animation: lux-spin 1s linear infinite;
    z-index: 10;
}
@keyframes lux-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.lux-products-content {
    transition: opacity 0.3s ease;
    width: 100%;
}

.lux-products-grid {
    display: grid;
    gap: 30px;
    width: 100%;
}

/* Product Card */
.lux-product-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
}
.lux-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border-color: rgba(212, 175, 55, 0.3);
}

.lux-product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    flex-shrink: 0;
    width: 100%;
}
.lux-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.lux-product-card:hover .lux-product-image img {
    transform: scale(1.05);
}
.lux-sale-badge {
    position: absolute;
    top: 15px; left: 15px;
    background: var(--lux-gold);
    color: #000;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 3px;
    z-index: 2;
}

.lux-product-info {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    width: 100%;
    box-sizing: border-box;
}

.lux-product-details-wrap {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.lux-product-title {
    font-size: 1.1rem;
    margin: 0 0 10px 0;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.lux-product-title a {
    color: #fff;
    text-decoration: none;
}
.lux-product-title a:hover {
    color: var(--lux-gold);
}

.lux-product-price {
    color: var(--lux-gold);
    font-size: 1.1rem;
    margin-bottom: 20px;
    height: 24px;
}
.lux-product-price del {
    color: #888;
    font-size: 0.9rem;
    margin-right: 5px;
}

.lux-product-actions {
    margin-top: auto;
    width: 100%;
}
.lux-product-actions .button,
.lux-product-actions .add_to_cart_button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: var(--lux-gold);
    color: #000;
    padding: 12px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lux-product-actions .button:hover,
.lux-product-actions .add_to_cart_button:hover {
    background: #fff;
    color: #000;
}

.lux-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.lux-page-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 40px; height: 40px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}
.lux-page-btn:hover, .lux-page-btn.active {
    background: var(--lux-gold);
    color: #000;
    border-color: var(--lux-gold);
}

/* =========================================
   Responsive Breakpoints
========================================= */

/* 1024px - Tablet */
@media (max-width: 1024px) {
    .lux-categories-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .lux-products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px;
    }
    .lux-hero-title {
        font-size: 2.5rem;
    }
}

/* 768px - Small Tablet */
@media (max-width: 768px) {
    .lux-hero-section {
        padding: 80px 20px;
    }
    .lux-hero-title {
        font-size: 2rem;
    }
    .lux-hero-subtitle {
        font-size: 1.1rem;
    }
    .lux-custom-select-wrapper {
        width: 100%;
        min-width: unset;
    }
    .lux-products-header {
        justify-content: center;
    }
    .lux-categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    .lux-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
}

/* 480px - Mobile */
@media (max-width: 480px) {
    .lux-hero-section {
        padding: 60px 15px;
    }
    .lux-categories-wrapper {
        padding: 20px 15px;
    }
    .lux-products-area {
        padding: 0 15px 30px;
    }
    
    .lux-categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .lux-category-card {
        padding: 10px;
        flex-direction: column;
        text-align: center;
    }
    .lux-cat-img {
        margin-right: 0;
        margin-bottom: 10px;
        width: 50px;
        height: 50px;
    }
    .lux-cat-name {
        font-size: 0.95rem;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: unset;
    }
    .lux-cat-count {
        font-size: 0.8rem;
    }
    
    .lux-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .lux-product-info {
        padding: 12px 10px;
    }
    .lux-product-title {
        font-size: 0.95rem;
        min-height: 42px;
    }
    .lux-product-price {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    .lux-product-actions .button,
    .lux-product-actions .add_to_cart_button {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

/* 390px - Small Mobile */
@media (max-width: 390px) {
    .lux-hero-title {
        font-size: 1.8rem;
    }
    .lux-hero-subtitle {
        font-size: 1rem;
    }
}

/* 360px - Very Small Mobile */
@media (max-width: 360px) {
    .lux-categories-grid {
        grid-template-columns: repeat(1, 1fr) !important;
    }
    .lux-category-card {
        flex-direction: row;
        text-align: left;
    }
    .lux-cat-img {
        margin-bottom: 0;
        margin-right: 15px;
    }
    .lux-product-title {
        font-size: 0.9rem;
    }
}