/* ==========================================================================
   TAILOR BAZAR - MODERN SERVICES CATALOG HUB STYLESHEET
   --------------------------------------------------------------------------
   Premium visuals, glassmorphism, responsive grid, and custom inputs.
   ========================================================================== */

:root {
    --brand-indigo: #0062ac;
    --brand-indigo-glow: rgba(0, 98, 172, 0.15);
    --brand-emerald: #d71920;
    --brand-emerald-glow: rgba(215, 25, 32, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(226, 232, 240, 0.8);
    --glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.04);
    --card-radius: 1.5rem;
    --transition-premium: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. HEADER OVERHAUL */
.services-hub-header {
    background: radial-gradient(circle at 0% 0%, #1e1b4b 0%, #0f172a 50%, #311042 100%) !important;
    padding: 4.5rem 0 !important;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.services-hub-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.2;
    pointer-events: none;
}

.services-hub-header .container {
    position: relative;
    z-index: 2;
}

.services-hub-badge {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.services-hub-header h1 {
    font-family: 'Outfit', sans-serif !important;
    font-size: 2.85rem !important;
    font-weight: 800 !important;
    letter-spacing: -1px !important;
    background: linear-gradient(135deg, #ffffff 30%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem !important;
}

.services-hub-header p {
    color: #94a3b8 !important;
    font-size: 1.05rem !important;
    max-width: 600px;
    line-height: 1.6;
}

/* 2. SIDEBAR FILTER OVERHAUL */
.sidebar-filter-panel {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--card-radius) !important;
    padding: 1.75rem !important;
    box-shadow: var(--glass-shadow) !important;
    position: sticky;
    top: 6.5rem;
    height: fit-content;
    z-index: 10;
    transition: var(--transition-premium);
}

.sidebar-filter-panel:hover {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 12px 40px 0 rgba(15, 23, 42, 0.06);
}

.filter-group-header {
    border-bottom: 1px dashed rgba(226, 232, 240, 0.8) !important;
    padding-bottom: 1rem !important;
    margin-bottom: 1.5rem !important;
}

.filter-group-header h3 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.25rem !important;
    color: #0f172a !important;
}

.clear-all-filters-btn {
    color: var(--brand-indigo) !important;
    font-weight: 800 !important;
    font-size: 0.82rem !important;
    transition: var(--transition-premium) !important;
    position: relative;
}

.clear-all-filters-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--brand-indigo);
    transition: var(--transition-premium);
}

.clear-all-filters-btn:hover::after {
    width: 100%;
}

.filter-box-title {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 0.92rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569 !important;
    margin-bottom: 1rem !important;
}

/* CUSTOM CHECKBOX AND RADIO BUTTONS */
.filter-checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: var(--transition-premium);
    display: inline-grid;
    place-content: center;
    background: white;
}

.filter-checkbox-label input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: 0.15s transform cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 1em 1em var(--brand-indigo);
    transform-origin: center;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.filter-checkbox-label input[type="checkbox"]:checked {
    border-color: var(--brand-indigo);
    background-color: #f5f3ff;
}

.filter-checkbox-label input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.filter-radio-label input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: var(--transition-premium);
    display: inline-grid;
    place-content: center;
    background: white;
}

.filter-radio-label input[type="radio"]::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    transform: scale(0);
    transition: 0.15s transform cubic-bezier(0.16, 1, 0.3, 1);
    background-color: var(--brand-indigo);
}

.filter-radio-label input[type="radio"]:checked {
    border-color: var(--brand-indigo);
    background-color: #f5f3ff;
}

.filter-radio-label input[type="radio"]:checked::before {
    transform: scale(1);
}

.filter-checkbox-label:hover input[type="checkbox"],
.filter-radio-label:hover input[type="radio"] {
    border-color: #94a3b8;
    transform: scale(1.05);
}

.filter-checkbox-label span,
.filter-radio-label span {
    font-weight: 600 !important;
    color: #475569;
    font-size: 0.88rem !important;
    transition: var(--transition-premium);
}

.filter-checkbox-label:hover span,
.filter-radio-label:hover span {
    color: #0f172a;
}

/* PREMIUM PRICE RANGE SLIDER */
.price-slider-container input[type="range"] {
    width: 100%;
    height: 6px !important;
    background: #e2e8f0 !important;
    border-radius: 4px !important;
    outline: none !important;
    accent-color: var(--brand-indigo) !important;
    cursor: pointer;
    -webkit-appearance: none;
    transition: var(--transition-premium);
}

.price-slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--brand-indigo);
    border: 3px solid white;
    box-shadow: 0 4px 12px var(--brand-indigo-glow);
    cursor: pointer;
    transition: var(--transition-premium);
}

.price-slider-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.3);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

/* 3. SEARCH & CONTROLS DASHBOARD */
.catalog-dashboard-controls {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border) !important;
    border-radius: 1rem !important;
    padding: 1.25rem 1.5rem !important;
    box-shadow: var(--glass-shadow) !important;
    transition: var(--transition-premium);
    margin-bottom: 1.5rem !important;
}

.catalog-dashboard-controls:hover {
    border-color: rgba(99, 102, 241, 0.2);
}

.search-input-wrapper input {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    padding: 0.85rem 1rem 0.85rem 3rem !important;
    font-weight: 600 !important;
    transition: var(--transition-premium) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
}

.search-input-wrapper input:focus {
    border-color: var(--brand-indigo) !important;
    box-shadow: 0 0 0 4px var(--brand-indigo-glow) !important;
    transform: translateY(-1px);
}

.search-icon {
    left: 1.25rem !important;
    color: #94a3b8 !important;
    font-size: 1.05rem !important;
    z-index: 2 !important;
}

.sort-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-label {
    font-weight: 800 !important;
    color: #475569 !important;
    font-size: 0.85rem !important;
}

.sort-selector-wrapper select {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.75rem 2.25rem 0.75rem 1rem;
    font-weight: 700;
    font-size: 0.88rem;
    color: #0f172a;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 0.9rem;
    transition: var(--transition-premium);
}

.sort-selector-wrapper select:focus {
    border-color: var(--brand-indigo);
    box-shadow: 0 0 0 4px var(--brand-indigo-glow);
}

/* 4. LIVE STATUS BAR */
.catalog-live-status-bar {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 50px;
    padding: 0.65rem 1.5rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.01);
}

.status-left {
    font-size: 0.88rem;
    color: #64748b;
}

.status-left strong {
    color: var(--brand-indigo);
    font-weight: 800;
}

.status-right {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 800 !important;
    color: var(--brand-emerald) !important;
}

/* 5. ITEM CARDS GRID OVERHAUL */
.items-grid {
    gap: 2rem !important;
}

.category-group-header {
    border-bottom: 2px solid #eef2ff !important;
    padding-bottom: 0.75rem !important;
}

.category-group-header h3 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.4rem !important;
    color: #0f172a !important;
}

.category-group-count {
    background: #eef2ff !important;
    color: var(--brand-indigo) !important;
    padding: 0.3rem 0.75rem !important;
    border-radius: 50px !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
}

.item-card {
    border: 1px solid #f1f5f9 !important;
    border-radius: var(--card-radius) !important;
    padding: 1.25rem !important;
    background: white !important;
    transition: var(--transition-premium) !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02) !important;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--delay, 0) * 0.05s);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.item-card:hover {
    transform: translateY(-8px) scale(1.01) !important;
    box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.08) !important;
}

/* Creative Gradient Glow Border */
.creative-glow::after {
    border-radius: var(--card-radius) !important;
    padding: 2px !important;
    background: linear-gradient(135deg, var(--brand-indigo), var(--brand-emerald)) !important;
}

/* Badges on Cards */
.discount-badge-ribbon {
    background: var(--brand-emerald) !important;
    border-radius: 8px !important;
    padding: 0.35rem 0.65rem !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 12px var(--brand-emerald-glow) !important;
    left: 1.25rem !important;
    top: 1.25rem !important;
}

.creative-corner-tag {
    border-radius: 8px !important;
    padding: 0.35rem 0.65rem !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    left: 1.25rem !important;
    top: 1.25rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.creative-corner-tag.bestseller {
    background: linear-gradient(135deg, #f97316, #ea580c) !important;
}

.creative-corner-tag.hot {
    background: linear-gradient(135deg, var(--brand-indigo), #3b82f6) !important;
}

.creative-corner-tag + .discount-badge-ribbon {
    top: 3.1rem !important;
}

/* Wishlist Button */
.card-wishlist-btn {
    top: 1.25rem !important;
    right: 1.25rem !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    transition: var(--transition-premium) !important;
}

.card-wishlist-btn:hover {
    background: white !important;
    border-color: #f43f5e !important;
    transform: scale(1.15) !important;
}

.card-wishlist-btn i.active {
    animation: heartBeat 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Card Image Wrapper */
.item-img-container {
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    max-width: 1024px;
    max-height: 1024px;
    border-radius: 1rem !important;
    background: #ffffff !important;
    margin-bottom: 1.25rem !important;
    overflow: hidden;
    position: relative;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-img-container .item-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border-radius: 1rem !important;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.item-card:hover .item-img-container .item-img {
    transform: scale(1.06);
}

/* Rating badge */
.item-rating {
    margin-bottom: 0.5rem !important;
}

.rating-badge {
    background: #f5f3ff !important;
    color: var(--brand-indigo) !important;
    font-weight: 800 !important;
    font-size: 0.78rem !important;
    padding: 0.2rem 0.5rem !important;
    border-radius: 6px !important;
}

.reviews-count {
    color: #64748b !important;
    font-size: 0.78rem !important;
    font-weight: 500;
}

/* Card Title */
.item-title {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.25rem !important;
    color: #0f172a !important;
    margin-bottom: 0.5rem !important;
}

.item-card p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card pricing */
.item-pricing-container {
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
    margin: auto 0 1rem 0 !important;
}

.deal-price {
    font-size: 1.35rem !important;
    color: #0f172a !important;
    font-weight: 800 !important;
}

.original-price {
    font-size: 0.85rem !important;
    color: #94a3b8 !important;
    text-decoration: line-through;
    font-weight: 600;
}

.discount-percent {
    background: #ecfdf5 !important;
    color: var(--brand-emerald) !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    padding: 0.2rem 0.5rem !important;
    border-radius: 6px !important;
    text-transform: uppercase;
}

/* Card actions */
.item-action-row {
    margin-top: 0 !important;
}

.btn-customize-book {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    font-size: 0.88rem !important;
    padding: 0.8rem 1.25rem !important;
    border-radius: 0.75rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-premium) !important;
}

.btn-customize-book i {
    transition: var(--transition-premium);
}

.item-card:hover .btn-customize-book {
    background: var(--brand-indigo) !important;
    color: white !important;
    border-color: var(--brand-indigo) !important;
    box-shadow: 0 4px 12px var(--brand-indigo-glow);
}

.item-card:hover .btn-customize-book i {
    transform: translateX(4px);
}

.quick-add-btn {
    border-radius: 0.75rem !important;
    width: 44px !important;
    height: 44px !important;
    background: #ecfdf5 !important;
    color: var(--brand-emerald) !important;
    border: 1px solid rgba(16, 185, 129, 0.15) !important;
    transition: var(--transition-premium) !important;
}

.quick-add-btn:hover {
    background: var(--brand-emerald) !important;
    color: white !important;
    transform: scale(1.1) !important;
    box-shadow: 0 4px 12px var(--brand-emerald-glow) !important;
}

/* 6. SKELETAL LOADERS */
.skeletal-loader-card {
    height: 400px !important;
    border-radius: var(--card-radius) !important;
    border: 1px solid #f1f5f9 !important;
    background: linear-gradient(90deg, #f8fafc 25%, #f1f5f9 50%, #f8fafc 75%) !important;
    background-size: 200% 100% !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.01) !important;
}

/* 7. EMPTY STATE OVERHAUL */
.catalog-empty-state {
    border-radius: var(--card-radius) !important;
    border: 2px dashed #cbd5e1 !important;
    background: white !important;
    box-shadow: var(--glass-shadow) !important;
}

.catalog-empty-state i {
    color: var(--brand-indigo) !important;
}

/* 8. MOBILE RESPONSIVENESS OVERRIDES & FILTERS DRAWER */

/* Backdrop styling */
.filter-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1999;
    transition: var(--transition-premium);
}
.filter-backdrop.active {
    display: block;
}

/* Controls layout styling */
.controls-right-side {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile Filter Button styling */
.mobile-filter-toggle-btn {
    display: none; /* Hidden on desktop */
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    font-size: 0.88rem;
    color: #0f172a;
    cursor: pointer;
    transition: var(--transition-premium);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.mobile-filter-toggle-btn:hover {
    border-color: var(--brand-indigo);
    background: #f8fafc;
    color: var(--brand-indigo);
}

.filter-count-badge {
    background: var(--brand-indigo);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.15rem 0.45rem;
    border-radius: 50%;
    margin-left: 0.25rem;
}

/* Close filters button styling */
.filter-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.close-filters-btn {
    display: none; /* Hidden on desktop */
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1rem;
    color: #64748b;
    cursor: pointer;
    transition: var(--transition-premium);
}

.close-filters-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Body lock when filters drawer is open */
body.filters-open {
    overflow: hidden !important;
}

@media (max-width: 991px) {
    .services-page-layout {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Transform Sidebar Filter Panel into Slide-in Drawer */
    .sidebar-filter-panel {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        max-width: 320px !important;
        height: 100vh !important;
        z-index: 2000 !important;
        background: white !important;
        box-shadow: 0 10px 40px rgba(15, 23, 42, 0.15) !important;
        transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
        overflow-y: auto !important;
        margin-bottom: 0 !important;
        border-radius: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        padding: 2rem 1.75rem !important;
    }

    .sidebar-filter-panel.open {
        left: 0 !important;
    }

    .close-filters-btn {
        display: inline-flex;
    }

    .mobile-filter-toggle-btn {
        display: inline-flex;
    }

    .controls-right-side {
        width: auto;
    }

    /* Hide the sort label on mobile/tablet to avoid select dropdown squishing */
    .sort-label {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .services-hub-header {
        display: none !important;
    }

    .services-hub-section {
        margin-top: 6.875rem !important;
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .services-page-layout {
        margin-top: 0 !important;
        gap: 1rem !important;
    }

    .catalog-dashboard-controls {
        margin-bottom: 0.75rem !important;
        padding: 0.75rem 1rem !important;
    }

    .catalog-live-status-bar {
        display: none !important;
    }

    .controls-right-side {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }

    .sort-selector-wrapper {
        width: 100% !important;
        margin: 0 !important;
    }

    .sort-selector-wrapper select {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .mobile-filter-toggle-btn {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Tighten grid card gap on mobile */
    .services-content-panel .items-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }

    /* Reduce category header spacing */
    .category-group-header {
        margin-top: 1rem !important;
        margin-bottom: 0.5rem !important;
        padding-bottom: 0.25rem !important;
    }

    /* Tighten item card internal padding */
    .item-card {
        padding: 0.75rem !important;
    }

    .item-img-container {
        margin-bottom: 0.75rem !important;
    }

    .item-card p {
        margin-bottom: 0.75rem !important;
    }

    .item-pricing-container {
        padding-top: 0.75rem !important;
        margin: auto 0 0.5rem 0 !important;
    }

    .item-action-row {
        margin-top: 0.75rem !important;
    }
}

@media (max-width: 575px) {
    .services-hub-header h1 {
        font-size: 2rem !important;
    }
    
    .services-hub-header p {
        font-size: 0.95rem !important;
    }

    .services-content-panel .items-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.6rem !important;
    }

    /* Card styling on mobile */
    .item-card {
        padding: 0.5rem !important;
        border-radius: 0.75rem !important;
    }

    /* Hide description on mobile to keep cards compact and uniform */
    .item-card p {
        display: none !important;
    }

    /* Card title smaller */
    .item-title {
        font-size: 0.85rem !important;
        margin-bottom: 0.25rem !important;
        line-height: 1.3 !important;
        height: 2.3rem !important; /* height for exactly 2 lines */
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* Badges adjust */
    .discount-badge-ribbon,
    .creative-corner-tag {
        font-size: 0.6rem !important;
        padding: 0.2rem 0.4rem !important;
        left: 0.5rem !important;
        top: 0.5rem !important;
        border-radius: 4px !important;
    }

    .creative-corner-tag + .discount-badge-ribbon {
        top: 2rem !important;
    }

    /* Wishlist button adjust */
    .card-wishlist-btn {
        top: 0.5rem !important;
        right: 0.5rem !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 0.8rem !important;
        border-radius: 50% !important;
    }

    /* Image Container adjust */
    .item-img-container,
    .item-img-container .item-img,
    .skeleton-img-wrapper {
        border-radius: 0.5rem !important;
    }

    .item-img-container {
        margin-bottom: 0.5rem !important;
    }

    /* Pricing container adjust */
    .item-pricing-container {
        padding-top: 0.4rem !important;
        margin-bottom: 0.4rem !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 0.25rem !important;
    }

    .deal-price {
        font-size: 0.92rem !important;
        white-space: nowrap !important;
        letter-spacing: -0.2px !important;
    }

    .original-price {
        font-size: 0.75rem !important;
    }

    .discount-percent {
        font-size: 0.6rem !important;
        padding: 0.1rem 0.3rem !important;
    }

    /* Action row adjust: Hide secondary plus button and make the main button full width & smaller */
    .item-action-row {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        margin-top: 0.4rem !important;
    }

    .quick-add-btn {
        display: none !important;
    }

    .btn-customize-book {
        background: var(--brand-indigo) !important;
        color: white !important;
        border-color: var(--brand-indigo) !important;
        font-size: 0.75rem !important;
        padding: 0.4rem 0.6rem !important;
        border-radius: 0.5rem !important;
        width: 100% !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.25rem !important;
    }

    /* Category headers styling adjust for mobile */
    .category-group-header h3 {
        font-size: 1.1rem !important;
    }

    .category-group-count {
        font-size: 0.65rem !important;
        padding: 0.15rem 0.45rem !important;
    }

    /* Search input adjust for mobile */
    .search-input-wrapper input {
        font-size: 0.82rem !important;
        padding: 0.65rem 1rem 0.65rem 2.5rem !important;
    }

    .search-icon {
        left: 0.95rem !important;
        font-size: 0.9rem !important;
    }
}

/* Remove colorful gradient border and click highlights on mobile screens */
@media (max-width: 991px) {
    .creative-glow::after,
    .creative-glow:hover::after,
    .creative-glow:focus::after,
    .creative-glow:active::after,
    .item-card::after,
    .item-card:hover::after,
    .item-card:focus::after,
    .item-card:active::after {
        display: none !important;
        opacity: 0 !important;
        content: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .creative-glow,
    .creative-glow:hover,
    .creative-glow:focus,
    .creative-glow:active,
    .item-card,
    .item-card:hover,
    .item-card:focus,
    .item-card:active {
        border-color: #f1f5f9 !important;
        outline: none !important;
        box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03) !important;
        -webkit-tap-highlight-color: transparent !important;
    }
}

/* Extracted layout styling classes from services.blade.php */
.services-hub-header-margin {
    margin-top: 6.875rem;
}
.services-hub-section-styled {
    background: #f8fafc;
    padding: 3rem 0;
}
.price-slider-container-padded {
    padding-top: 0.5rem;
}
.price-range-labels-styled {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--slate-900);
}
.price-slider-display-indigo {
    color: var(--indigo-600);
}
.star-icon-yellow {
    color: #eab308;
    font-size: 0.8rem;
}

/* ==========================================
   SKELETON SHIMMER PLACEHOLDER & LAZY IMAGES
   ========================================== */
.skeleton-img-wrapper {
    position: relative;
    background: #e2e8f0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 1rem;
}

.skeleton-img-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.25) 20%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer-effect 1.5s infinite;
}

@keyframes shimmer-effect {
    100% {
        transform: translateX(100%);
    }
}

.skeleton-img-wrapper img {
    opacity: 0;
    transition: opacity 0.45s ease-in-out;
}

.skeleton-img-wrapper.loaded {
    background: transparent !important;
}

.skeleton-img-wrapper.loaded::after {
    display: none !important;
}

.skeleton-img-wrapper.loaded img {
    opacity: 1 !important;
}

.catalog-dashboard-controls-no-margin {
    margin-top: 0;
}
.filter-badge-hidden {
    display: none;
}
.catalog-live-status-bar-margin {
    margin-bottom: 1.5rem;
}
.catalog-items-grid-columns {
    grid-template-columns: repeat(3, 1fr);
}
#search-clear {
    display: none;
}




