/* ==========================================================================
   STRICT CSS RESET & ISOLATION (LEAK-PROOF FOR THEMES)
   ========================================================================== */
/* Reset container, drawer, and all children to prevent parent theme stylesheet pollution */
.custom-shop-container,
.custom-shop-container *,
.custom-shop-drawer,
.custom-shop-drawer * {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
    text-shadow: none !important;
    box-shadow: none !important;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
}

/* Base font isolation */
.custom-shop-container,
.custom-shop-drawer {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    color: #1A1A1A !important;
    line-height: 1.4 !important;
}

/* Reset headings and paragraphs */
.custom-shop-container h1,
.custom-shop-container h2,
.custom-shop-container h3,
.custom-shop-container p,
.custom-shop-drawer h1,
.custom-shop-drawer h2,
.custom-shop-drawer h3,
.custom-shop-drawer p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: 400 !important;
    color: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    background: none !important;
    text-transform: none !important;
}

/* Reset lists */
.custom-shop-container ul,
.custom-shop-container li,
.custom-shop-drawer ul,
.custom-shop-drawer li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Reset links */
.custom-shop-container a,
.custom-shop-drawer a {
    color: inherit !important;
    text-decoration: none !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: inherit !important;
    font-family: inherit !important;
    font-weight: inherit !important;
    display: inline !important;
}

/* Reset buttons - wipe out custom theme backgrounds, padding, heights and borders */
.custom-shop-container button,
.custom-shop-drawer button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none !important;
    border: none !important;
    color: inherit !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: inherit !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: inherit !important;
    line-height: 1 !important;
    cursor: pointer !important;
    text-align: center !important;
    outline: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    text-transform: none !important;
}

/* Reset select and input elements */
.custom-shop-container input[type="text"],
.custom-shop-container select,
.custom-shop-drawer input[type="text"],
.custom-shop-drawer select {
    display: inline-block !important;
    background: none !important;
    border: none;
    color: inherit !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: inherit !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    outline: none !important;
    border-radius: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    box-sizing: border-box !important;
}

/* Reset dividers */
.custom-shop-container hr {
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 1px !important;
    background: #EBE4D8 !important;
}

/* Reset images */
.custom-shop-container img,
.custom-shop-drawer img {
    border: none !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* ==========================================================================
   DESIGN VARIABLES
   ========================================================================== */
:root {
    --custom-shop-bg-warm: #FAF8F5;
    --custom-shop-text-dark: #1A1A1A;
    --custom-shop-text-muted: #8A8A8A;
    --custom-shop-accent-green: #1B3624;
    --custom-shop-accent-green-hover: #102316;
    --custom-shop-border: #EBE4D8;
    --custom-shop-white: #FFFFFF;
    --custom-shop-transition-soft: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --custom-shop-transition-image: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    --custom-shop-radius-pill: 50px;
    --custom-shop-radius-card: 12px;
    
    /* Pagination Fallbacks */
    --custom-shop-pag-active-bg: var(--custom-shop-accent-green);
    --custom-shop-pag-active-text: var(--custom-shop-white);
    --custom-shop-pag-border: var(--custom-shop-border);
}

/* ==========================================================================
   GRID CONTAINER & LAYOUT
   ========================================================================== */
.custom-shop-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 20px 10px !important;
    box-sizing: border-box !important;
    background-color: transparent !important;
}

.custom-shop-container .custom-shop-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    margin-bottom: 16px !important;
    position: relative !important;
}

.custom-shop-container .custom-shop-title-section {
    flex: 1 !important;
    min-width: 250px !important;
}

.custom-shop-container .custom-shop-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 2.2rem !important;
    font-weight: 400 !important;
    margin: 0 0 4px 0 !important;
    color: var(--custom-shop-text-dark) !important;
    letter-spacing: -0.02em !important;
}

.custom-shop-container .custom-shop-count {
    font-size: 0.9rem !important;
    color: var(--custom-shop-text-muted) !important;
    font-weight: 400 !important;
}

.custom-shop-container .custom-shop-filters-section {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}

/* ==========================================================================
   CATEGORY PILLS & FILTERS
   ========================================================================== */
.custom-shop-container .custom-shop-categories {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.custom-shop-container .custom-cat-pill {
    background-color: transparent !important;
    color: var(--custom-shop-text-dark) !important;
    border: 1px solid var(--custom-shop-border) !important;
    padding: 8px 18px !important;
    border-radius: var(--custom-shop-radius-pill) !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: var(--custom-shop-transition-soft) !important;
    outline: none !important;
    display: inline-flex !important;
}

.custom-shop-container .custom-cat-pill:hover {
    background-color: rgba(27, 54, 36, 0.04) !important;
    border-color: var(--custom-shop-text-dark) !important;
}

.custom-shop-container .custom-cat-pill.active {
    background-color: #F78840 !important;
    border-color: #F78840 !important;
    color: var(--custom-shop-white) !important;
}

.custom-shop-container .custom-shop-categories-select-wrapper {
    display: none !important;
}

.custom-shop-container .custom-cat-select {
    background-color: transparent !important;
    color: var(--custom-shop-text-dark) !important;
    border: 1px solid var(--custom-shop-border) !important;
    padding: 8px 36px 8px 16px !important;
    border-radius: var(--custom-shop-radius-pill) !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    outline: none !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' viewBox='0 0 24 24' stroke='%231A1A1A' stroke-width='2.5'><path stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 11px !important;
    transition: var(--custom-shop-transition-soft) !important;
    width: auto !important;
}

.custom-shop-container .custom-cat-select:hover {
    border-color: var(--custom-shop-text-dark) !important;
}

/* ==========================================================================
   SEARCH BAR
   ========================================================================== */
.custom-shop-container .custom-shop-search-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

.custom-shop-container .custom-search-toggle-btn {
    display: none !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background-color: var(--custom-shop-white) !important;
    border: 1px solid var(--custom-shop-border) !important;
    cursor: pointer !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    transition: var(--custom-shop-transition-soft) !important;
    padding: 0 !important;
    outline: none !important;
}

.custom-shop-container .custom-search-toggle-btn:hover {
    border-color: var(--custom-shop-text-dark) !important;
}

.custom-shop-container .custom-search-toggle-btn svg {
    color: var(--custom-shop-text-dark) !important;
    display: block !important;
}

.custom-shop-container .custom-shop-search-input-container {
    display: flex !important;
    align-items: center !important;
    position: relative !important;
}

.custom-shop-container .custom-shop-search {
    background-color: transparent !important;
    border: 1px solid var(--custom-shop-border) !important;
    padding: 8px 20px !important;
    border-radius: var(--custom-shop-radius-pill) !important;
    font-size: 0.9rem !important;
    width: 200px !important;
    outline: none !important;
    transition: var(--custom-shop-transition-soft) !important;
    color: var(--custom-shop-text-dark) !important;
}

.custom-shop-container .custom-shop-search:focus {
    border-color: var(--custom-shop-text-dark) !important;
    width: 240px !important;
}

.custom-shop-container .clear-search-btn {
    position: absolute !important;
    right: 12px !important;
    background: none !important;
    border: none !important;
    font-size: 1.2rem !important;
    color: var(--custom-shop-text-muted) !important;
    cursor: pointer !important;
    padding: 0 !important;
    line-height: 1 !important;
    z-index: 5 !important;
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
}

.custom-shop-container .clear-search-btn:hover {
    color: var(--custom-shop-text-dark) !important;
}

/* ==========================================================================
   DIVIDER & LAYOUT WRAPPER
   ========================================================================== */
.custom-shop-container .custom-shop-divider {
    border: none !important;
    border-top: 1px solid var(--custom-shop-border) !important;
    margin: 0 0 48px 0 !important;
    width: 100% !important;
}

.custom-shop-container .custom-shop-grid-wrapper {
    position: relative !important;
    min-height: 300px !important;
    margin-top: 16px !important;
}

.custom-shop-container .custom-shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 40px 30px !important;
    transition: opacity 0.3s ease !important;
}

/* ==========================================================================
   PRODUCT CARD
   ========================================================================== */
.custom-shop-container .custom-product-card {
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    background: transparent !important;
}

.custom-shop-container .product-image-container {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: var(--custom-shop-radius-card) !important;
    overflow: hidden !important;
    background-color: var(--custom-shop-bg-warm) !important;
    margin-bottom: 14px !important;
}

.custom-shop-container .product-main-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: var(--custom-shop-transition-image) !important;
}

.custom-shop-container .custom-product-card:hover .product-main-image {
    transform: scale(1.04) !important;
}

.custom-shop-container .product-badge {
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    background-color: var(--custom-shop-white) !important;
    color: var(--custom-shop-text-dark) !important;
    font-size: 0.7rem !important;
    font-weight: 500 !important;
    padding: 4px 12px !important;
    border-radius: var(--custom-shop-radius-pill) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    z-index: 2 !important;
    letter-spacing: 0.02em !important;
}

.custom-shop-container .product-wishlist-btn {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background-color: var(--custom-shop-white) !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    z-index: 2 !important;
    transition: var(--custom-shop-transition-soft) !important;
    outline: none !important;
    padding: 0 !important;
}

.custom-shop-container .product-wishlist-btn:hover {
    transform: scale(1.08) !important;
}

.custom-shop-container .product-wishlist-btn.active {
    background-color: #FFF0F0 !important;
}

.custom-shop-container .heart-icon {
    width: 17px !important;
    height: 17px !important;
    color: var(--custom-shop-text-dark) !important;
    transition: var(--custom-shop-transition-soft) !important;
    display: block !important;
}

.custom-shop-container .product-wishlist-btn:hover .heart-icon {
    color: #E03E3E !important;
}

.custom-shop-container .product-wishlist-btn.active .heart-icon {
    fill: #E03E3E !important;
    color: #E03E3E !important;
}

/* Info container */
.custom-shop-container .product-info-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 0 2px !important;
    margin-bottom: 12px !important;
}

.custom-shop-container .product-meta-left {
    flex: 1 !important;
}

.custom-shop-container .product-card-category {
    display: block !important;
    font-size: 0.68rem !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: var(--custom-shop-text-muted) !important;
    font-weight: 500 !important;
    margin-bottom: 4px !important;
}

.custom-shop-container .product-card-title {
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    margin: 0 !important;
    line-height: 1.35 !important;
}

.custom-shop-container .product-card-title a {
    color: var(--custom-shop-text-dark) !important;
    text-decoration: none !important;
    transition: var(--custom-shop-transition-soft) !important;
    display: block !important;
}

.custom-shop-container .product-card-title a:hover {
    color: var(--custom-shop-accent-green) !important;
}

.custom-shop-container .product-meta-right {
    text-align: right !important;
    white-space: nowrap !important;
}

.custom-shop-container .product-card-price {
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: var(--custom-shop-text-dark) !important;
}

.custom-shop-container .product-card-price del {
    color: var(--custom-shop-text-muted) !important;
    font-size: 0.85rem !important;
    margin-right: 4px !important;
    font-weight: 400 !important;
    display: inline !important;
}

.custom-shop-container .product-card-price ins {
    text-decoration: none !important;
    color: var(--custom-shop-text-dark) !important;
    display: inline !important;
}

/* ==========================================================================
   BUTTONS AND QUANTITY SELECTORS inside GRID
   ========================================================================== */
.custom-shop-container .product-actions-container {
    width: 100% !important;
    margin-top: auto !important;
}

.custom-shop-container .custom-add-to-bag-btn {
    display: flex;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    background-color: var(--custom-shop-btn-bg, transparent) !important;
    color: var(--custom-shop-btn-text, var(--custom-shop-text-dark)) !important;
    border-width: var(--custom-shop-btn-border-width, 1px) !important;
    border-style: var(--custom-shop-btn-border-style, solid) !important;
    border-color: var(--custom-shop-btn-border-color, var(--custom-shop-text-dark)) !important;
    padding: 11px 24px !important;
    border-radius: var(--custom-shop-btn-border-radius, var(--custom-shop-radius-pill)) !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: var(--custom-shop-transition-soft) !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    text-align: center !important;
    position: relative !important;
    min-height: 44px !important;
    outline: none !important;
}

.custom-shop-container .custom-add-to-bag-btn:hover {
    background-color: var(--custom-shop-btn-bg-hover, var(--custom-shop-text-dark)) !important;
    color: var(--custom-shop-btn-text-hover, var(--custom-shop-white)) !important;
    border-color: var(--custom-shop-btn-border-color-hover, var(--custom-shop-text-dark)) !important;
}

.custom-shop-container .custom-add-to-bag-btn.select-options-btn {
    background-color: var(--custom-shop-btn-bg, transparent) !important;
    color: var(--custom-shop-btn-text, var(--custom-shop-text-dark)) !important;
    border-color: var(--custom-shop-btn-border-color, var(--custom-shop-text-dark)) !important;
    display: flex !important;
}

.custom-shop-container .custom-add-to-bag-btn.select-options-btn:hover {
    background-color: var(--custom-shop-btn-bg-hover, var(--custom-shop-text-dark)) !important;
    color: var(--custom-shop-btn-text-hover, var(--custom-shop-white)) !important;
    border-color: var(--custom-shop-btn-border-color-hover, var(--custom-shop-text-dark)) !important;
}

.custom-shop-container .custom-add-to-bag-btn.out-of-stock-btn {
    border-color: var(--custom-shop-border) !important;
    color: var(--custom-shop-text-muted) !important;
    cursor: not-allowed !important;
}

.custom-shop-container .custom-add-to-bag-btn.out-of-stock-btn:hover {
    background-color: transparent !important;
    color: var(--custom-shop-text-muted) !important;
}

.custom-shop-container .custom-qty-selector {
    display: flex;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    background-color: rgba(27, 54, 36, 0.02) !important;
    color: var(--custom-shop-accent-green) !important;
    border: 1px solid var(--custom-shop-border) !important;
    padding: 0 16px !important;
    border-radius: var(--custom-shop-btn-border-radius, var(--custom-shop-radius-pill)) !important;
    box-sizing: border-box !important;
    min-height: 44px !important;
    position: relative !important;
    transition: var(--custom-shop-transition-soft) !important;
}

.custom-shop-container .custom-qty-selector:hover {
    border-color: var(--custom-shop-accent-green) !important;
}

.custom-shop-container .qty-change-btn {
    background: none !important;
    border: none !important;
    color: var(--custom-shop-accent-green) !important;
    font-size: 1.25rem !important;
    font-weight: 300 !important;
    cursor: pointer !important;
    padding: 0 10px !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    outline: none !important;
    transition: var(--custom-shop-transition-soft) !important;
    user-select: none !important;
}

.custom-shop-container .qty-change-btn:hover {
    transform: scale(1.2) !important;
    color: var(--custom-shop-accent-green-hover) !important;
}

.custom-shop-container .qty-change-btn:active {
    transform: scale(0.9) !important;
}

.custom-shop-container .qty-display {
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    color: var(--custom-shop-accent-green) !important;
    user-select: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    line-height: 1 !important;
}

.custom-shop-container .custom-qty-selector.loading {
    opacity: 0.6 !important;
    pointer-events: none !important;
}

.custom-shop-container .qty-display .qty-spinner {
    width: 12px !important;
    height: 12px !important;
    border: 1.5px solid currentColor !important;
    border-bottom-color: transparent !important;
    border-radius: 50% !important;
    display: inline-block !important;
    animation: rotation 0.6s linear infinite !important;
}

.custom-shop-container .btn-loader {
    width: 16px !important;
    height: 16px !important;
    border: 2px solid currentColor !important;
    border-bottom-color: transparent !important;
    border-radius: 50% !important;
    display: inline-block;
    box-sizing: border-box !important;
    animation: rotation 0.6s linear infinite !important;
    position: absolute !important;
}

.custom-shop-container .custom-add-to-bag-btn.added-success {
    background-color: var(--custom-shop-accent-green) !important;
    border-color: var(--custom-shop-accent-green) !important;
    color: var(--custom-shop-white) !important;
}

.custom-shop-container .no-products-found {
    grid-column: 1 / -1 !important;
    text-align: center !important;
    padding: 60px 20px !important;
    font-size: 1rem !important;
    color: var(--custom-shop-text-muted) !important;
    border: 1px dashed var(--custom-shop-border) !important;
    border-radius: var(--custom-shop-radius-card) !important;
    display: block !important;
}

/* ==========================================================================
   SKELETON SHIMMER LOADER
   ========================================================================== */
.custom-shop-container .custom-shop-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 40px 30px !important;
    width: 100% !important;
}

.custom-shop-container .skeleton-card {
    display: flex !important;
    flex-direction: column !important;
}

.custom-shop-container .skeleton-image {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: var(--custom-shop-radius-card) !important;
    background: linear-gradient(90deg, #F5F2EC 25%, #EBE4D8 50%, #F5F2EC 75%) !important;
    background-size: 200% 100% !important;
    animation: skeleton-loading 1.5s infinite !important;
    margin-bottom: 14px !important;
}

.custom-shop-container .skeleton-text-row {
    display: flex !important;
    justify-content: space-between !important;
    margin-bottom: 12px !important;
}

.custom-shop-container .skeleton-text-left {
    flex: 1 !important;
}

.custom-shop-container .skeleton-line {
    height: 12px !important;
    background: linear-gradient(90deg, #F5F2EC 25%, #EBE4D8 50%, #F5F2EC 75%) !important;
    background-size: 200% 100% !important;
    animation: skeleton-loading 1.5s infinite !important;
    border-radius: 4px !important;
}

.custom-shop-container .skeleton-category {
    width: 40% !important;
    height: 8px !important;
    margin-bottom: 8px !important;
}

.custom-shop-container .skeleton-title {
    width: 75% !important;
    height: 12px !important;
}

.custom-shop-container .skeleton-price {
    width: 40px !important;
    height: 12px !important;
}

.custom-shop-container .skeleton-button {
    width: 100% !important;
    height: 44px !important;
    border-radius: var(--custom-shop-radius-pill) !important;
    background: linear-gradient(90deg, #F5F2EC 25%, #EBE4D8 50%, #F5F2EC 75%) !important;
    background-size: 200% 100% !important;
    animation: skeleton-loading 1.5s infinite !important;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================================
   AJAX PAGINATION
   ========================================================================== */
.custom-shop-container .custom-shop-pagination-container {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 56px !important;
    width: 100% !important;
    flex-wrap: wrap !important;
}

.custom-shop-container .pag-pill {
    background-color: transparent !important;
    color: var(--custom-shop-text-dark) !important;
    border: 1px solid var(--custom-shop-pag-border) !important;
    cursor: pointer !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    transition: var(--custom-shop-transition-soft) !important;
    outline: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.custom-shop-container .pag-pill.pag-number {
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
}

.custom-shop-container .pag-pill.pag-nav-arrow {
    padding: 0 16px !important;
    height: 42px !important;
    border-radius: var(--custom-shop-radius-pill) !important;
}

.custom-shop-container .pag-pill:hover {
    background-color: rgba(27, 54, 36, 0.04) !important;
    border-color: var(--custom-shop-text-dark) !important;
}

.custom-shop-container .pag-pill.active {
    background-color: var(--custom-shop-pag-active-bg) !important;
    border-color: var(--custom-shop-pag-active-bg) !important;
    color: var(--custom-shop-pag-active-text) !important;
}

.custom-shop-container .custom-load-more-btn {
    background-color: transparent !important;
    color: var(--custom-shop-text-dark) !important;
    border: 1px solid var(--custom-shop-text-dark) !important;
    padding: 12px 36px !important;
    border-radius: var(--custom-shop-radius-pill) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: var(--custom-shop-transition-soft) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    position: relative !important;
    min-width: 180px !important;
    min-height: 48px !important;
    outline: none !important;
}

.custom-shop-container .custom-load-more-btn:hover {
    background-color: var(--custom-shop-text-dark) !important;
    color: var(--custom-shop-white) !important;
}

.custom-shop-container .custom-load-more-btn.loading {
    border-color: var(--custom-shop-border) !important;
    color: var(--custom-shop-text-muted) !important;
    cursor: not-allowed !important;
}

.custom-shop-container .custom-load-more-btn.loading:hover {
    background-color: transparent !important;
    color: var(--custom-shop-text-muted) !important;
}

/* ==========================================================================
   RESPONSIVE LAYOUT SWITCHES & MEDIA QUERIES
   ========================================================================== */
@media (max-width: 991px) {
    .custom-shop-container .custom-shop-grid,
    .custom-shop-container .custom-shop-skeleton-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .custom-shop-container .custom-shop-body-layout {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 24px !important;
    }
    .custom-shop-container .custom-shop-sidebar-section {
        width: 100% !important;
        order: -1 !important;
    }
}

@media (max-width: 767px) {
    .custom-shop-container .custom-shop-header {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .custom-shop-container .custom-shop-filters-section {
        width: 100% !important;
        justify-content: space-between !important;
        gap: 12px !important;
    }
}

@media (max-width: 575px) {
    .custom-shop-container .custom-shop-grid,
    .custom-shop-container .custom-shop-skeleton-grid {
        grid-template-columns: 1fr !important;
    }
    
    .custom-shop-container .custom-shop-categories {
        display: none !important;
    }
    
    .custom-shop-container .custom-shop-categories-select-wrapper {
        display: block !important;
        width: 100% !important;
    }
    
    .custom-shop-container .custom-cat-select {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .custom-shop-container .custom-shop-filters-section {
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    
    .custom-shop-container .custom-shop-search-wrapper {
        width: 100% !important;
        display: block !important;
    }
    
    /* Hide search toggle icon since the search field is now permanently visible in the second row */
    .custom-shop-container .custom-search-toggle-btn {
        display: none !important;
    }
    
    .custom-shop-container .custom-shop-search-input-container {
        display: flex !important;
        position: relative !important;
        top: auto !important;
        right: auto !important;
        transform: none !important;
        z-index: 1 !important;
        background-color: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        overflow: visible !important;
    }
    
    .custom-shop-container .custom-shop-search-input-container .custom-shop-search {
        border: 1px solid var(--custom-shop-border) !important;
        border-radius: var(--custom-shop-radius-pill) !important;
        padding: 8px 36px 8px 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        background-color: transparent !important;
    }
    
    .custom-shop-container .custom-shop-search-input-container .clear-search-btn {
        right: 12px !important;
    }
}

/* Columns customization overrides for Elementor */
.custom-shop-container .custom-shop-grid.columns-1,
.custom-shop-container .custom-shop-skeleton-grid.columns-1 {
    grid-template-columns: 1fr !important;
}
.custom-shop-container .custom-shop-grid.columns-2,
.custom-shop-container .custom-shop-skeleton-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr) !important;
}
.custom-shop-container .custom-shop-grid.columns-3,
.custom-shop-container .custom-shop-skeleton-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr) !important;
}
.custom-shop-container .custom-shop-grid.columns-4,
.custom-shop-container .custom-shop-skeleton-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}

@media (max-width: 991px) {
    .custom-shop-container .custom-shop-grid.columns-3,
    .custom-shop-container .custom-shop-skeleton-grid.columns-3,
    .custom-shop-container .custom-shop-grid.columns-4,
    .custom-shop-container .custom-shop-skeleton-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 575px) {
    .custom-shop-container .custom-shop-grid.columns-2,
    .custom-shop-container .custom-shop-skeleton-grid.columns-2,
    .custom-shop-container .custom-shop-grid.columns-3,
    .custom-shop-container .custom-shop-skeleton-grid.columns-3,
    .custom-shop-container .custom-shop-grid.columns-4,
    .custom-shop-container .custom-shop-skeleton-grid.columns-4 {
        grid-template-columns: 1fr !important;
    }
}


/* ==========================================================================
   BODY LAYOUTS AND SIDEBAR COLUMNS
   ========================================================================== */
.custom-shop-container .custom-shop-body-layout {
    display: flex !important;
    gap: 40px !important;
    width: 100% !important;
    align-items: flex-start !important;
}

.custom-shop-container .custom-shop-sidebar-section {
    width: 260px !important;
    flex-shrink: 0 !important;
}

.custom-shop-container .custom-shop-main-content {
    flex-grow: 1 !important;
}

/* Header alignments when layout-filter-top is active */
.custom-shop-container.layout-filter-top.align-filter-left .custom-shop-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
}
.custom-shop-container.layout-filter-top.align-filter-left .custom-shop-title-section {
    text-align: left !important;
}
.custom-shop-container.layout-filter-top.align-filter-left .custom-shop-filters-section {
    justify-content: flex-start !important;
    width: 100% !important;
}

.custom-shop-container.layout-filter-top.align-filter-center .custom-shop-header {
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
}
.custom-shop-container.layout-filter-top.align-filter-center .custom-shop-title-section {
    text-align: center !important;
}
.custom-shop-container.layout-filter-top.align-filter-center .custom-shop-filters-section {
    justify-content: center !important;
    width: 100% !important;
}

.custom-shop-container.layout-filter-top.align-filter-right .custom-shop-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-end !important;
}

/* Sidebar Specific Styles on Desktop */
@media (min-width: 992px) {
    .custom-shop-container.layout-filter-left .custom-shop-sidebar-section .custom-shop-filters-section,
    .custom-shop-container.layout-filter-right .custom-shop-sidebar-section .custom-shop-filters-section {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 24px !important;
        width: 100% !important;
    }
    
    .custom-shop-container.layout-filter-left .custom-shop-sidebar-section .custom-shop-categories,
    .custom-shop-container.layout-filter-right .custom-shop-sidebar-section .custom-shop-categories {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    .custom-shop-container.layout-filter-left .custom-shop-sidebar-section .custom-cat-pill,
    .custom-shop-container.layout-filter-right .custom-shop-sidebar-section .custom-cat-pill {
        width: 100% !important;
        justify-content: flex-start !important;
    }
    
    .custom-shop-container.layout-filter-left .custom-shop-sidebar-section .custom-shop-search-wrapper,
    .custom-shop-container.layout-filter-right .custom-shop-sidebar-section .custom-shop-search-wrapper {
        width: 100% !important;
    }
    
    .custom-shop-container.layout-filter-left .custom-shop-sidebar-section .custom-shop-search-input-container,
    .custom-shop-container.layout-filter-right .custom-shop-sidebar-section .custom-shop-search-input-container {
        display: flex !important;
        width: 100% !important;
    }
    
    .custom-shop-container.layout-filter-left .custom-shop-sidebar-section .custom-shop-search,
    .custom-shop-container.layout-filter-right .custom-shop-sidebar-section .custom-shop-search {
        width: 100% !important;
    }
    
    .custom-shop-container.layout-filter-left .custom-shop-sidebar-section .custom-search-toggle-btn,
    .custom-shop-container.layout-filter-right .custom-shop-sidebar-section .custom-search-toggle-btn {
        display: none !important;
    }
}

