.whatsapp-chat img { display: none!important; }

body.logged-in .inspiration-login-prompt,
body.logged-in .signin-cta,
body.logged-in .sign-in-prompt,
body.logged-in #btnOpenSignup,
body.logged-in .btn-inspiration-login-small { display: none !important; }

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #333333;
    --text-color: #1a1a1a;
    --text-light: #555555;
    --text-muted: #888888;
    --bg-color: #ffffff;
    --bg-light: #f9f9f9;
    --border-color: #e8e8e8;
    --border-light: #f0f0f0;
    --font-heading: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-sans: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s ease;
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}
.product-layout { display: grid !important; grid-template-columns: 2fr 1fr !important; gap: 60px !important; align-items: start !important; }

.main-image, .main-image img, .thumbnail-item, .thumbnail-item img,
.btn-add-to-cart, .btn-wishlist, .qty-btn, .quantity-input,
.quantity-input input, .panel-select, .color-swatch-large,
.btn-apply-upholstery, .upholstery-panel, .modal-content, .tab-btn { border-radius: 0 !important; }

.breadcrumb { padding: 20px 0; background: var(--bg-color); }
.breadcrumb-list { display: flex; align-items: center; gap: 10px; font-size: 12px; list-style: none; margin: 0; padding: 0; }
.breadcrumb-list li { display: flex; align-items: center; gap: 10px; }
.breadcrumb-list li:not(:last-child)::after { content: '/'; color: var(--text-muted); }
.breadcrumb-list a { color: var(--text-light); }
.breadcrumb-list a:hover { color: var(--text-color); }
.breadcrumb-list .current { color: var(--text-muted); }

.product-page { padding: 20px 0 !important; }

.product-gallery { position: relative; min-height: 400px; background: var(--bg-color) !important; display: flex; flex-direction: column; max-width: 800px; margin: 0 auto; }
.main-image { display: block; margin-bottom: 10px !important; background: var(--bg-color) !important; position: relative; width: 100%; max-width: 800px; }
.main-image img { width: 100%; max-width: 800px; aspect-ratio: 1/1 !important; object-fit: contain; background: var(--bg-color) !important; display: block; }
.image-zoom-btn { display: none; }

/* Thumbnail list - sized for 5+ images */
.thumbnail-list { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; gap: 6px !important; padding: 0 !important; background: var(--bg-color) !important; }
.thumbnail-list > *, .thumbnail-list > * > *, .thumbnail-list a, .thumbnail-list div, .thumbnail-list figure { width: 85px !important; height: 85px !important; min-width: 85px !important; max-width: 85px !important; min-height: 85px !important; max-height: 85px !important; cursor: pointer; border: 2px solid transparent !important; transition: var(--transition); overflow: hidden !important; display: block !important; margin: 0 !important; padding: 0 !important; }
.thumbnail-list img { width: 100% !important; height: 100% !important; aspect-ratio: 1/1; object-fit: cover !important; }
.thumbnail-list > *:hover, .thumbnail-list a:hover { border-color: var(--primary-color) !important; opacity: 0.9; }
.thumbnail-list > *.active, .thumbnail-list > *.selected { border-color: var(--primary-color) !important; }
.thumbnail-item { width: 85px !important; height: 85px !important; cursor: pointer; border: 2px solid transparent; transition: var(--transition); overflow: hidden; }
.thumbnail-item:hover { border-color: var(--primary-color); opacity: 0.9; }
.thumbnail-item.active, .thumbnail-item.selected { border-color: var(--primary-color); }
.thumbnail-item img { width: 100% !important; height: 100% !important; aspect-ratio: 1/1; object-fit: cover; }

.product-info { padding-top: 5px !important; }
.product-brand { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 6px; }
.product-brand a:hover { color: var(--text-color); }
.product-title { font-family: var(--font-heading); font-size: 28px; font-weight: 400; line-height: 1.25; color: var(--primary-color); margin-bottom: 10px; }
.product-price { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); }
.price-current { font-family: var(--font-heading); font-size: 26px; font-weight: 500; color: var(--primary-color); }
.price-vat { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.product-delivery-block { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; font-size: 12px; }

.sizes-section { margin-bottom: 20px; }
.sizes-section label { display: block; font-size: 14px; font-weight: 400; color: #333; margin-bottom: 10px; }
.size-select { width: 100%; padding: 12px 40px 12px 15px; border: 1px solid #ddd; font-size: 14px; background: white; -webkit-appearance: none; appearance: none; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, #333 50%), linear-gradient(135deg, #333 50%, transparent 50%); background-position: calc(100% - 20px) center, calc(100% - 15px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.size-select:focus { outline: none; border-color: #333; }

.swatches-section { margin-bottom: 20px; }
.swatches-header { margin-bottom: 12px; }
.swatches-header h4 { font-size: 14px; font-weight: 400; color: #333; margin: 0; }
.token-display { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #666; margin-bottom: 12px; }
.token-display i { color: #25D366; }
.token-count { font-weight: 500; }

/* Modern inline swatch selector - Single row with 5-8 swatches */
.swatch-block {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
}
.swatch-block-expanded {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)) !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    max-height: 250px !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    padding: 10px 12px 10px 0 !important;
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
    align-items: start !important;
    align-content: start !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 8px !important;
    background: #fafafa !important;
    margin-top: 5px !important;
}
.swatch-block-expanded::-webkit-scrollbar {
    width: 8px;
}
.swatch-block-expanded::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.swatch-block-expanded::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 4px;
}
.swatch-block-expanded::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Swatch sizing inside expanded grid - main page */
.swatch-block-expanded .swatch-each {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    min-height: 70px !important;
    flex-shrink: 0 !important;
}

/* Swatch sizing for single row display */
.swatch-block .swatch-each {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}
@media (min-width: 1024px) {
    .swatch-block { gap: 12px; }
    .swatch-block .swatch-each { width: 65px; height: 65px; }
}
@media (min-width: 1280px) {
    .swatch-block .swatch-each { width: 70px; height: 70px; }
}
@media (min-width: 1536px) {
    .swatch-block { gap: 14px; }
    .swatch-block .swatch-each { width: 75px; height: 75px; }
}

/* ========== SWATCH STYLES - CLEAN UI ========== */
.swatch-each {
    position: relative;
    cursor: pointer;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}

/* No hover effects - clean selection */
.swatch-each:hover,
.swatch-each:active,
.swatch-each:focus {
    border-color: #e5e5e5;
    outline: none;
}

/* Selected state */
.swatch-each.swatch-selected, .swatch-each.active {
    border-color: #1a1a1a;
}

/* Checkmark indicator */
.swatch-each.swatch-selected::after, .swatch-each.active::after {
    content: '\2713';
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ========== END SWATCH STYLES ========== */

/* Swatch images - smooth transitions */
.swatch-each img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* No hover effect on swatches */
.swatch-each:hover img {
    transform: none;
}

/* Selected state - crisp image */
.swatch-each.swatch-selected img, .swatch-each.active img {
    opacity: 1;
    filter: brightness(1.02) contrast(1.02);
}

/* EzCMS swatch-each-detail structure */
.swatch-each-detail {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.swatch-each-detail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    cursor: pointer;
    border-radius: 4px;
}

/* Swatch image styling */
.swatch-each > img:first-child {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
}
.swatch-each .swatch-each-detail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Force hide swatches - high specificity for EzCMS compatibility */
.swatch-hidden,
.swatch-block .swatch-hidden,
.swatch-block > .swatch-hidden,
div.swatch-hidden,
.col-sm.swatch-hidden,
.col-xs.swatch-hidden,
.col-md.swatch-hidden,
.col-lg.swatch-hidden,
[class*="col-"].swatch-hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Enhanced View All Button - Modern UI/UX */
.swatch-view-all-btn {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border: 2px solid #1a1a1a;
    border-radius: 12px;
    background: linear-gradient(145deg, #ffffff 0%, #f5f5f5 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 10px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
    align-self: center;
    margin: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* View all button responsive sizing */
@media (min-width: 1024px) {
    .swatch-view-all-btn { width: 65px; height: 65px; font-size: 11px; }
}
@media (min-width: 1280px) {
    .swatch-view-all-btn { width: 70px; height: 70px; }
}
@media (min-width: 1536px) {
    .swatch-view-all-btn { width: 75px; height: 75px; font-size: 12px; }
}

/* Subtle shine effect */
.swatch-view-all-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255,255,255,0.4) 50%,
        transparent 60%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.swatch-view-all-btn:hover::before {
    transform: translateX(100%);
}

/* Ripple effect container */
.swatch-view-all-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}
.swatch-view-all-btn:active::after {
    width: 120px;
    height: 120px;
    opacity: 1;
    transition: width 0s, height 0s, opacity 0s;
}

/* Hover state - elegant dark transition */
.swatch-view-all-btn:hover {
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    color: #fff;
    border-color: #1a1a1a;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18), 0 4px 10px rgba(0,0,0,0.12);
}

/* Focus state for accessibility */
.swatch-view-all-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26,26,26,0.2), 0 12px 28px rgba(0,0,0,0.18);
}

/* Active/pressed state */
.swatch-view-all-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Count number styling */
.swatch-view-all-btn .swatch-btn-count {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    display: block;
    letter-spacing: -0.5px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}
.swatch-view-all-btn:hover .swatch-btn-count {
    transform: scale(1.15);
}

/* "View All" text styling */
.swatch-view-all-btn .swatch-btn-text {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.9;
    display: block;
    line-height: 1;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}
.swatch-view-all-btn:hover .swatch-btn-text {
    letter-spacing: 1.5px;
    opacity: 1;
}

/* Arrow icon styling */
.swatch-view-all-btn .swatch-btn-icon {
    font-size: 8px;
    line-height: 1;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: block;
    position: relative;
    z-index: 1;
}
.swatch-view-all-btn:hover .swatch-btn-icon {
    opacity: 1;
    transform: translateY(2px);
}
.swatch-view-all-btn[data-expanded="true"] .swatch-btn-icon {
    transform: rotate(0deg);
}
.swatch-view-all-btn[data-expanded="true"]:hover .swatch-btn-icon {
    transform: translateY(-2px);
}

/* Expanded/Collapse state - subtle indication it's active */
.swatch-view-all-btn[data-expanded="true"] {
    background: linear-gradient(145deg, #f0f0f0 0%, #e8e8e8 100%);
    border-color: #999;
    color: #555;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
}
.swatch-view-all-btn[data-expanded="true"]:hover {
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    border-color: #1a1a1a;
    color: #fff;
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 10px 24px rgba(0,0,0,0.16), 0 3px 8px rgba(0,0,0,0.1);
}
.swatch-view-all-btn[data-expanded="true"] .swatch-btn-text {
    font-size: 7px;
    letter-spacing: 0.8px;
}
.swatch-view-all-btn[data-expanded="true"]:hover .swatch-btn-text {
    letter-spacing: 1.2px;
}

/* Swatch detail modal */
.swatch-inline-detail { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; z-index: 9999; padding: 20px; }
.swatch-inline-detail.active { display: flex; }
.swatch-inline-detail-content { background: #fff; max-width: 380px; width: 100%; padding: 24px; position: relative; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.swatch-inline-detail-content > img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.swatch-inline-detail-info { text-align: center; }
.swatch-inline-name { font-size: 18px; font-weight: 600; color: #1a1a1a; margin-bottom: 16px; }
.swatch-inline-actions { display: flex; gap: 12px; justify-content: center; }
.swatch-select-btn { background: #1a1a1a; color: #fff; border: none; padding: 14px 36px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; text-transform: uppercase; letter-spacing: 0.5px; }
.swatch-select-btn:hover { background: #333; color: #fff; }
.swatch-inline-close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: none; background: #f5f5f5; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #666; border-radius: 50%; transition: all 0.2s; }
.swatch-inline-close:hover { background: #1a1a1a; color: #fff; }

/* Section headings for Top/Base swatches */
.heading-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #666;
    margin: 20px 0 10px 0;
    padding: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.heading-title::before {
    content: '';
    width: 3px;
    height: 14px;
    background: #1a1a1a;
    border-radius: 2px;
}

/* ========== ENHANCED PANEL SWATCH STYLES ========== */
.upholstery-panel-content .heading-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #555;
    margin: 20px 0 12px 0;
    padding: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.upholstery-panel-content .heading-title::before {
    width: 3px;
    height: 16px;
    background: #1a1a1a;
}
.upholstery-panel-content .heading-title:first-of-type {
    margin-top: 0;
}

/* ========== PANEL SWATCH GRID - ENHANCED UI/UX ========== */
.upholstery-panel-content .swatch-block,
#upholsteryPanel .swatch-block,
.upholstery-panel .swatch-block,
.panel-selectors-section .swatch-block {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(55px, 1fr)) !important;
    gap: 20px !important;
    padding: 12px 20px !important;
    background: linear-gradient(180deg, #f8f8f8 0%, #fff 100%) !important;
    margin: 0 -24px !important;
    border-top: 1px solid #e8e8e8 !important;
    border-bottom: 1px solid #e8e8e8 !important;
    align-items: start !important;
}

/* Panel swatch items - premium styling */
.upholstery-panel-content .swatch-each,
#upholsteryPanel .swatch-each,
.upholstery-panel .swatch-each,
.panel-selectors-section .swatch-each {
    border-radius: 0px !important;
    border: 2px solid #e5e5e5 !important;
    background: #fff !important;
    cursor: pointer !important;
    overflow: hidden !important;
    aspect-ratio: 1/1 !important;
    position: relative !important;
}
.upholstery-panel-content .swatch-each.swatch-selected,
.upholstery-panel-content .swatch-each.active,
#upholsteryPanel .swatch-each.swatch-selected,
#upholsteryPanel .swatch-each.active,
.upholstery-panel .swatch-each.swatch-selected,
.upholstery-panel .swatch-each.active,
.panel-selectors-section .swatch-each.swatch-selected,
.panel-selectors-section .swatch-each.active {
    border-color: #1a1a1a !important;
    z-index: 4 !important;
}

/* Panel swatch checkmark - larger and more visible */
.upholstery-panel-content .swatch-each.swatch-selected::after,
.upholstery-panel-content .swatch-each.active::after,
#upholsteryPanel .swatch-each.swatch-selected::after,
#upholsteryPanel .swatch-each.active::after,
.panel-selectors-section .swatch-each.swatch-selected::after,
.panel-selectors-section .swatch-each.active::after {
    content: '\2713' !important;
    position: absolute !important;
    width: 18px !important;
    height: 18px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    top: 3px !important;
    right: 3px !important;
    background: #1a1a1a !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25) !important;
    z-index: 3 !important;
    animation: checkmarkPop 0.2s ease-out !important;
}

/* Panel swatch images */
.upholstery-panel-content .swatch-each img {
    border-radius: 4px !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Panel swatch - no hover effects */
.upholstery-panel-content .swatch-each:hover,
#upholsteryPanel .swatch-each:hover,
.panel-selectors-section .swatch-each:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* ========== PANEL VIEW ALL BUTTON - MODERN UI ========== */
@keyframes shimmerBtn {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 3px 12px rgba(26,26,26,0.1); }
    50% { box-shadow: 0 4px 16px rgba(26,26,26,0.18); }
}
.upholstery-panel-content .swatch-view-all-btn,
#upholsteryPanel .swatch-view-all-btn,
.upholstery-panel .swatch-view-all-btn,
.panel-selectors-section .swatch-view-all-btn {
    border-radius: 12px !important;
    border: 2px solid #1a1a1a !important;
    background: linear-gradient(145deg, #ffffff 0%, #f5f5f5 100%) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    padding: 6px !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.06) !important;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
    align-self: center !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    animation: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Shimmer effect overlay */
.upholstery-panel-content .swatch-view-all-btn::before,
#upholsteryPanel .swatch-view-all-btn::before,
.upholstery-panel .swatch-view-all-btn::before,
.panel-selectors-section .swatch-view-all-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%) !important;
    background-size: 200% 100% !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    z-index: 1 !important;
    pointer-events: none !important;
}
.upholstery-panel-content .swatch-view-all-btn:hover::before,
#upholsteryPanel .swatch-view-all-btn:hover::before,
.upholstery-panel .swatch-view-all-btn:hover::before,
.panel-selectors-section .swatch-view-all-btn:hover::before {
    opacity: 1 !important;
    animation: shimmerBtn 1.5s ease-in-out infinite !important;
}
.upholstery-panel-content .swatch-view-all-btn .swatch-btn-count,
#upholsteryPanel .swatch-view-all-btn .swatch-btn-count,
.upholstery-panel .swatch-view-all-btn .swatch-btn-count,
.panel-selectors-section .swatch-view-all-btn .swatch-btn-count {
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    line-height: 1 !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    position: relative !important;
    z-index: 2 !important;
}
.upholstery-panel-content .swatch-view-all-btn .swatch-btn-text,
#upholsteryPanel .swatch-view-all-btn .swatch-btn-text,
.upholstery-panel .swatch-view-all-btn .swatch-btn-text,
.panel-selectors-section .swatch-view-all-btn .swatch-btn-text {
    font-size: 9px !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    opacity: 0.7 !important;
    line-height: 1 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    z-index: 2 !important;
}
.upholstery-panel-content .swatch-view-all-btn:hover,
#upholsteryPanel .swatch-view-all-btn:hover,
.upholstery-panel .swatch-view-all-btn:hover,
.panel-selectors-section .swatch-view-all-btn:hover {
    border-color: #1a1a1a !important;
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%) !important;
    color: #fff !important;
    transform: translateY(-4px) scale(1.03) !important;
    box-shadow: 0 14px 28px rgba(0,0,0,0.2), 0 6px 12px rgba(0,0,0,0.12) !important;
}
.upholstery-panel-content .swatch-view-all-btn:hover .swatch-btn-count,
#upholsteryPanel .swatch-view-all-btn:hover .swatch-btn-count,
.upholstery-panel .swatch-view-all-btn:hover .swatch-btn-count,
.panel-selectors-section .swatch-view-all-btn:hover .swatch-btn-count {
    transform: scale(1.15) !important;
}
.upholstery-panel-content .swatch-view-all-btn:hover .swatch-btn-text,
#upholsteryPanel .swatch-view-all-btn:hover .swatch-btn-text,
.upholstery-panel .swatch-view-all-btn:hover .swatch-btn-text,
.panel-selectors-section .swatch-view-all-btn:hover .swatch-btn-text {
    opacity: 1 !important;
    letter-spacing: 1.2px !important;
}

/* Icon styling for panel */
.upholstery-panel-content .swatch-view-all-btn .swatch-btn-icon,
#upholsteryPanel .swatch-view-all-btn .swatch-btn-icon,
.upholstery-panel .swatch-view-all-btn .swatch-btn-icon,
.panel-selectors-section .swatch-view-all-btn .swatch-btn-icon {
    font-size: 8px !important;
    opacity: 0.7 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    z-index: 2 !important;
}
.upholstery-panel-content .swatch-view-all-btn:hover .swatch-btn-icon,
#upholsteryPanel .swatch-view-all-btn:hover .swatch-btn-icon,
.upholstery-panel .swatch-view-all-btn:hover .swatch-btn-icon,
.panel-selectors-section .swatch-view-all-btn:hover .swatch-btn-icon {
    opacity: 1 !important;
    transform: translateY(2px) !important;
}
.upholstery-panel-content .swatch-view-all-btn[data-expanded="true"]:hover .swatch-btn-icon,
#upholsteryPanel .swatch-view-all-btn[data-expanded="true"]:hover .swatch-btn-icon,
.upholstery-panel .swatch-view-all-btn[data-expanded="true"]:hover .swatch-btn-icon,
.panel-selectors-section .swatch-view-all-btn[data-expanded="true"]:hover .swatch-btn-icon {
    transform: translateY(-2px) !important;
}

/* Active/pressed state */
.upholstery-panel-content .swatch-view-all-btn:active,
#upholsteryPanel .swatch-view-all-btn:active,
.upholstery-panel .swatch-view-all-btn:active,
.panel-selectors-section .swatch-view-all-btn:active {
    transform: translateY(-2px) scale(0.98) !important;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2) !important;
}

/* Expanded state */
.upholstery-panel-content .swatch-view-all-btn[data-expanded="true"],
#upholsteryPanel .swatch-view-all-btn[data-expanded="true"],
.upholstery-panel .swatch-view-all-btn[data-expanded="true"],
.panel-selectors-section .swatch-view-all-btn[data-expanded="true"] {
    background: linear-gradient(135deg, #f0f0f0 0%, #e5e5e5 100%) !important;
    border-style: solid !important;
    border-color: #888 !important;
    color: #555 !important;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.05) !important;
    animation: none !important;
}
.upholstery-panel-content .swatch-view-all-btn[data-expanded="true"]:hover,
#upholsteryPanel .swatch-view-all-btn[data-expanded="true"]:hover,
.upholstery-panel .swatch-view-all-btn[data-expanded="true"]:hover,
.panel-selectors-section .swatch-view-all-btn[data-expanded="true"]:hover {
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%) !important;
    border-color: #1a1a1a !important;
    color: #fff !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 10px 22px rgba(0,0,0,0.18), 0 4px 8px rgba(0,0,0,0.1) !important;
}
.upholstery-panel-content .swatch-view-all-btn[data-expanded="true"] .swatch-btn-text,
#upholsteryPanel .swatch-view-all-btn[data-expanded="true"] .swatch-btn-text,
.upholstery-panel .swatch-view-all-btn[data-expanded="true"] .swatch-btn-text,
.panel-selectors-section .swatch-view-all-btn[data-expanded="true"] .swatch-btn-text {
    font-size: 9px !important;
}

/* Swatch block - no pseudo content */
.upholstery-panel-content .swatch-block::before {
    content: none !important;
}

/* Panel expanded state - scrollable grid for more swatches */
/* Use .swatch-block.swatch-block-expanded for higher specificity to override base .swatch-block styles */
.upholstery-panel-content .swatch-block.swatch-block-expanded,
#upholsteryPanel .swatch-block.swatch-block-expanded,
.panel-selectors-section .swatch-block.swatch-block-expanded {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(55px, 1fr)) !important;
    gap: 12px !important;
    max-height: 200px !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    padding: 12px !important;
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
    align-items: start !important;
    align-content: start !important;
    border: 1px solid #ccc !important;
    border-radius: 8px !important;
    background: #fff !important;
    margin: 8px 0 !important;
}

/* Ensure wrapper elements (Bootstrap columns etc) don't break grid in expanded state */
.swatch-block-expanded > [class*="col-"],
.swatch-block-expanded > .swatch-wrapper,
.swatch-block-expanded > div:not(.swatch-each):not(.swatch-view-all-btn) {
    display: contents !important;
}
.upholstery-panel-content .swatch-block-expanded::-webkit-scrollbar,
#upholsteryPanel .swatch-block-expanded::-webkit-scrollbar,
.panel-selectors-section .swatch-block-expanded::-webkit-scrollbar {
    width: 6px;
}
.upholstery-panel-content .swatch-block-expanded::-webkit-scrollbar-track,
#upholsteryPanel .swatch-block-expanded::-webkit-scrollbar-track,
.panel-selectors-section .swatch-block-expanded::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
.upholstery-panel-content .swatch-block-expanded::-webkit-scrollbar-thumb,
#upholsteryPanel .swatch-block-expanded::-webkit-scrollbar-thumb,
.panel-selectors-section .swatch-block-expanded::-webkit-scrollbar-thumb {
    background: #999;
    border-radius: 3px;
}
.upholstery-panel-content .swatch-block-expanded::-webkit-scrollbar-thumb:hover,
#upholsteryPanel .swatch-block-expanded::-webkit-scrollbar-thumb:hover,
.panel-selectors-section .swatch-block-expanded::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Responsive Panel Swatches - wrap to fit mobile screen */
/* Mobile panel swatches - wrap within screen width */
@media (max-width: 767px) {
    #upholsteryPanel .swatch-block,
    .upholstery-panel-content .swatch-block,
    .panel-selectors-section .swatch-block {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        overflow-x: visible !important;
        padding: 10px 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    /* Calculate swatch size to fit 5 per row with gaps */
    #upholsteryPanel .swatch-block .swatch-each,
    .upholstery-panel-content .swatch-block .swatch-each,
    .panel-selectors-section .swatch-block .swatch-each {
        width: calc((100% - 40px) / 5) !important;
        max-width: 55px !important;
        height: auto !important;
        min-width: 40px !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        aspect-ratio: 1/1 !important;
    }
    #upholsteryPanel .swatch-view-all-btn,
    .upholstery-panel-content .swatch-view-all-btn,
    .panel-selectors-section .swatch-view-all-btn {
        width: calc((100% - 40px) / 5) !important;
        max-width: 55px !important;
        height: auto !important;
        min-width: 40px !important;
        min-height: unset !important;
        max-height: unset !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        align-self: stretch !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        aspect-ratio: 1/1 !important;
    }
    /* Mobile panel expanded state - scrollable - use higher specificity */
    #upholsteryPanel .swatch-block.swatch-block-expanded,
    .upholstery-panel-content .swatch-block.swatch-block-expanded,
    .panel-selectors-section .swatch-block.swatch-block-expanded {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        max-height: 200px !important;
        overflow-y: scroll !important;
        overflow-x: hidden !important;
        padding: 10px !important;
        border: 1px solid #ccc !important;
        border-radius: 8px !important;
        background: #fff !important;
        margin: 5px 0 !important;
    }
}
@media (min-width: 768px) {
    #upholsteryPanel .swatch-block { display: flex !important; flex-wrap: nowrap !important; justify-content: flex-start !important; gap: 20px !important; }
    #upholsteryPanel .swatch-block .swatch-each { width: 55px !important; height: 55px !important; flex-shrink: 0 !important; }
    #upholsteryPanel .swatch-view-all-btn { width: 55px !important; height: 55px !important; min-width: 55px !important; min-height: 55px !important; max-width: 55px !important; max-height: 55px !important; }
    /* Panel expanded - use higher specificity to override base styles */
    #upholsteryPanel .swatch-block.swatch-block-expanded,
    .upholstery-panel-content .swatch-block.swatch-block-expanded,
    .panel-selectors-section .swatch-block.swatch-block-expanded { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)) !important; gap: 12px !important; max-height: 220px !important; overflow-y: scroll !important; overflow-x: hidden !important; flex-wrap: wrap !important; padding: 12px !important; border: 1px solid #ccc !important; border-radius: 8px !important; background: #fff !important; margin: 8px 0 !important; }
    /* Main page swatch scroll */
    .swatch-block-expanded { max-height: 250px !important; overflow-y: scroll !important; overflow-x: hidden !important; }
}
@media (min-width: 1024px) {
    #upholsteryPanel .swatch-block { gap: 20px !important; }
    #upholsteryPanel .swatch-block .swatch-each { width: 60px !important; height: 60px !important; }
    #upholsteryPanel .swatch-view-all-btn { width: 60px !important; height: 60px !important; min-width: 60px !important; min-height: 60px !important; max-width: 60px !important; max-height: 60px !important; font-size: 12px !important; }
    #upholsteryPanel .swatch-block.swatch-block-expanded,
    .upholstery-panel-content .swatch-block.swatch-block-expanded,
    .panel-selectors-section .swatch-block.swatch-block-expanded { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(55px, 1fr)) !important; gap: 12px !important; max-height: 220px !important; overflow-y: scroll !important; overflow-x: hidden !important; padding: 12px !important; border: 1px solid #ccc !important; border-radius: 8px !important; background: #fff !important; margin: 8px 0 !important; }
    .swatch-block-expanded { max-height: 260px !important; overflow-y: scroll !important; }
}
@media (min-width: 1280px) {
    #upholsteryPanel .swatch-block { gap: 20px !important; }
    #upholsteryPanel .swatch-block .swatch-each { width: 65px !important; height: 65px !important; }
    #upholsteryPanel .swatch-view-all-btn { width: 65px !important; height: 65px !important; min-width: 65px !important; min-height: 65px !important; max-width: 65px !important; max-height: 65px !important; font-size: 12px !important; }
    #upholsteryPanel .swatch-block.swatch-block-expanded,
    .upholstery-panel-content .swatch-block.swatch-block-expanded,
    .panel-selectors-section .swatch-block.swatch-block-expanded { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)) !important; gap: 12px !important; max-height: 240px !important; overflow-y: scroll !important; overflow-x: hidden !important; padding: 12px !important; border: 1px solid #ccc !important; border-radius: 8px !important; background: #fff !important; margin: 8px 0 !important; }
    .swatch-block-expanded { max-height: 280px !important; overflow-y: scroll !important; }
}
@media (min-width: 1440px) {
    #upholsteryPanel .swatch-block { gap: 20px !important; }
    #upholsteryPanel .swatch-block .swatch-each { width: 70px !important; height: 70px !important; }
    #upholsteryPanel .swatch-view-all-btn { width: 70px !important; height: 70px !important; min-width: 70px !important; min-height: 70px !important; max-width: 70px !important; max-height: 70px !important; font-size: 13px !important; }
    #upholsteryPanel .swatch-block.swatch-block-expanded,
    .upholstery-panel-content .swatch-block.swatch-block-expanded,
    .panel-selectors-section .swatch-block.swatch-block-expanded { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(65px, 1fr)) !important; gap: 12px !important; max-height: 260px !important; overflow-y: scroll !important; overflow-x: hidden !important; padding: 12px !important; border: 1px solid #ccc !important; border-radius: 8px !important; background: #fff !important; margin: 8px 0 !important; }
    .swatch-block-expanded { max-height: 300px !important; overflow-y: scroll !important; }
}
@media (min-width: 1920px) {
    #upholsteryPanel .swatch-block { gap: 20px !important; }
    #upholsteryPanel .swatch-block .swatch-each { width: 75px !important; height: 75px !important; }
    #upholsteryPanel .swatch-view-all-btn { width: 75px !important; height: 75px !important; min-width: 75px !important; min-height: 75px !important; max-width: 75px !important; max-height: 75px !important; font-size: 13px !important; }
    #upholsteryPanel .swatch-block.swatch-block-expanded,
    .upholstery-panel-content .swatch-block.swatch-block-expanded,
    .panel-selectors-section .swatch-block.swatch-block-expanded { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)) !important; gap: 12px !important; max-height: 280px !important; overflow-y: scroll !important; overflow-x: hidden !important; padding: 12px !important; border: 1px solid #ccc !important; border-radius: 8px !important; background: #fff !important; margin: 8px 0 !important; }
    .swatch-block-expanded { max-height: 320px !important; overflow-y: scroll !important; }
}
@media (min-width: 2560px) {
    #upholsteryPanel .swatch-block { gap: 20px !important; }
    #upholsteryPanel .swatch-block .swatch-each { width: 80px !important; height: 80px !important; }
    #upholsteryPanel .swatch-view-all-btn { width: 80px !important; height: 80px !important; min-width: 80px !important; min-height: 80px !important; max-width: 80px !important; max-height: 80px !important; font-size: 14px !important; }
    #upholsteryPanel .swatch-block.swatch-block-expanded,
    .upholstery-panel-content .swatch-block.swatch-block-expanded,
    .panel-selectors-section .swatch-block.swatch-block-expanded { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(75px, 1fr)) !important; gap: 12px !important; max-height: 300px !important; overflow-y: scroll !important; overflow-x: hidden !important; padding: 12px !important; border: 1px solid #ccc !important; border-radius: 8px !important; background: #fff !important; margin: 8px 0 !important; }
    .swatch-block-expanded { max-height: 350px !important; overflow-y: scroll !important; }
}

/* Hide old popup view details link */
.swatch-each-view { display: none !important; }

.signup-prompt, .token-depleted { margin-top: 15px; padding: 15px; background: #f9f9f9; border: 1px solid #eee; }
.signup-prompt h4 { margin: 0 0 8px 0; font-size: 14px; font-weight: 500; }
.signup-prompt p { margin: 0 0 12px 0; font-size: 13px; color: #666; }
.token-depleted p { margin: 0; font-size: 13px; color: #666; }
.token-depleted a { color: #333; text-decoration: underline; }

.size-caveat { display: flex; align-items: flex-start; gap: 6px; margin: 12px 0 0 0; padding: 10px 12px; background: #f8f8f8; border-left: 2px solid #ddd; font-size: 10px; line-height: 1.4; color: #888; }
.size-caveat i { color: #aaa; font-size: 10px; flex-shrink: 0; margin-top: 1px; }

/* Larger size caveat on bigger screens */
@media (min-width: 768px) {
    .size-caveat { font-size: 12px; padding: 12px 14px; gap: 8px; }
    .size-caveat i { font-size: 12px; }
}
@media (min-width: 1024px) {
    .size-caveat { font-size: 13px; padding: 14px 16px; line-height: 1.5; }
    .size-caveat i { font-size: 13px; }
}

.purchase-bar { margin: 25px 0 20px; max-width: 100%; }
.purchase-actions-row { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; max-width: 100%; }
.quantity-input { display: flex; align-items: center; border: 1px solid var(--border-color); background: var(--bg-color); flex-shrink: 0; width: 138px; }
.qty-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--text-color); background: transparent; border: none; cursor: pointer; }
.qty-btn:hover { background: var(--bg-light); }
.quantity-input input { width: 50px; height: 44px; border: none; border-left: 1px solid var(--border-color); border-right: 1px solid var(--border-color); text-align: center; font-size: 15px; font-weight: 500; }
.quantity-input input:focus { outline: none; }
.btn-add-to-cart { flex: 1; min-width: 120px; background: #fff; color: #333; padding: 14px 20px; font-size: 13px; font-weight: 400; border: 1px solid #333; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 10px; height: 44px; }
.btn-add-to-cart:hover { background: #333; color: #fff; }
.btn-add-to-cart i { flex-shrink: 0; }
.btn-preview-ai { flex-shrink: 0; width: 200px; background: #1a1a1a; color: #fff; padding: 14px 24px; font-size: 13px; font-weight: 500; border: none; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; gap: 10px; height: 44px; white-space: nowrap; }
.btn-preview-ai:hover { background: #444; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn-preview-ai:active { transform: translateY(0); box-shadow: none; }
.btn-preview-ai i { flex-shrink: 0; }
.btn-wishlist { width: 44px; height: 44px; border: 1px solid var(--border-color); background: var(--bg-color); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--text-color); cursor: pointer; flex-shrink: 0; }
.btn-wishlist:hover { border-color: var(--primary-color); color: var(--primary-color); }

/* Request Price Button for No-Swatch Products */
.btn-request-price-main {
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    padding: 14px 24px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    margin: 25px 0 0 0;
    box-sizing: border-box;
    outline: none;
    white-space: nowrap;
}
.btn-request-price-main:hover {
    background: #444;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.btn-request-price-main:active {
    transform: translateY(0);
    box-shadow: none;
}
.btn-request-price-main:focus {
    outline: none;
}
.btn-request-price-main i {
    flex-shrink: 0;
    font-size: 16px;
}

.contact-options { display: flex; justify-content: flex-start; gap: 12px; margin: 20px 0; padding-top: 15px; border-top: 1px solid #eee; flex-wrap: nowrap; max-width: calc(138px + 12px + 120px + 12px + 200px + 12px + 44px); }
.contact-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}
.contact-option:hover {
    background: #f5f5f5;
    border-color: #999;
    color: #000;
}
.contact-option i {
    font-size: 16px;
}

.design-inspiration-section { background: #f8f8f8; padding: 20px; margin-top: 25px; border: 1px solid #eee; max-width: calc(138px + 12px + 120px + 12px + 200px + 12px + 44px); box-sizing: border-box; }
.design-inspiration-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; flex-wrap: wrap; gap: 10px; }
.design-inspiration-header h3 { font-size: 16px; font-weight: 500; margin: 0; display: flex; align-items: center; gap: 8px; }
.user-status-bar { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.user-greeting { color: #333 !important; display: flex !important; align-items: center !important; gap: 5px !important; font-size: 12px !important; }
.user-greeting span { display: inline-block !important; white-space: nowrap !important; color: #333 !important; visibility: visible !important; }
.btn-logout-small { background: none; border: none; color: #999; font-size: 12px; cursor: pointer; display: flex; align-items: center; gap: 4px; }
.btn-logout-small:hover { color: #333; }

/* ========== YOUR DESIGN SECTION - FIXED ========== */
.your-design-section { margin-bottom: 15px; display: none; }
.your-design-label { font-size: 12px; color: #666; margin: 0 0 10px 0; display: flex; align-items: center; gap: 6px; }
.your-design-preview { background: #fff; border: 1px solid #ddd; overflow: hidden; }
.your-design-image-wrapper {
    position: relative;
    background: #f5f5f5;
    overflow: hidden;
    line-height: 0;
    width: 100%;
    aspect-ratio: 1/1;
}
.your-design-image-wrapper img:not(.watermark-overlay) {
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}

/* Watermark Overlay */
.watermark-overlay {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 12%;
    min-width: 50px;
    max-width: 80px;
    height: auto;
    opacity: 0.4;
    pointer-events: none;
    z-index: 5;
}

/* Loading State */
.your-design-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 2;
}

.ai-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #e0e0e0;
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.your-design-loading p { margin: 0; font-size: 13px; font-weight: 500; color: #666; }

/* Info Bar */
.your-design-info {
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #eee;
    background: #fff;
    box-sizing: border-box;
    gap: 8px;
}
.your-design-selection {
    font-size: 11px;
    font-weight: 500;
    color: #333;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Buttons */
.your-design-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.your-design-actions button {
    background: #fff;
    border: 1px solid #ddd;
    padding: 4px 6px;
    font-size: 9px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 2px;
    white-space: nowrap;
    box-sizing: border-box;
    line-height: 1;
}
.your-design-actions button:hover {
    border-color: #333;
    background: #f5f5f5;
}
.your-design-actions button i {
    font-size: 9px;
}

/* ========== CLIENT DESIGNS GALLERY ========== */
/* Sign-in section for client designs */
.client-designs-signin {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    text-align: center;
}
.client-designs-text {
    flex: 1;
    max-width: 400px;
}
.client-designs-text h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}
.client-designs-text p {
    margin: 0 0 16px 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}
.designs-features {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}
.designs-features span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #888;
}
.designs-features i {
    color: #1a1a1a;
    font-size: 12px;
}
.signin-note {
    margin: 10px 0 0 0 !important;
    font-size: 11px !important;
    color: #999 !important;
}

/* Gallery grid */
#clientDesignsGallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    padding: 15px 0;
}
.client-design-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}
.client-design-card:hover {
    border-color: #1a1a1a;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}
.client-design-image {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}
.client-design-image img:not(.client-design-watermark) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}
.client-design-card:hover .client-design-image img:not(.client-design-watermark) {
    transform: scale(1.05);
}

/* FCI watermark on client design images */
.client-design-watermark {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 20%;
    min-width: 35px;
    max-width: 50px;
    height: auto;
    opacity: 0.5;
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.3s ease;
}
.client-design-card:hover .client-design-watermark {
    opacity: 0.7;
}
.client-design-info {
    padding: 12px 14px;
    background: #fafafa;
    border-top: 1px solid #eee;
}
.client-design-config {
    margin: 0 0 6px 0;
    font-size: 12px;
    color: #666;
    display: flex;
    gap: 4px;
}
.client-design-config:last-of-type {
    margin-bottom: 0;
}
.client-design-config span {
    font-weight: 600;
    color: #1a1a1a;
    min-width: 35px;
}
.client-design-user {
    margin: 10px 0 0 0;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 11px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 6px;
}
.client-design-user i {
    font-size: 11px;
    color: #aaa;
}
#clientDesignsLoading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}
#clientDesignsLoading .ai-spinner {
    width: 32px;
    height: 32px;
    border-width: 3px;
}
#clientDesignsLoading p {
    font-size: 14px;
    color: #666;
}
#clientDesignsEmpty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}
#clientDesignsEmpty i {
    font-size: 48px;
    color: #ddd;
    display: block;
    margin-bottom: 16px;
}
#clientDesignsEmpty h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #666;
}
#clientDesignsEmpty p {
    margin: 0;
    font-size: 13px;
    color: #999;
}

/* Save button - hidden since auto-save is enabled */
#btnSaveYourDesign {
    display: none !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .client-designs-signin {
        padding: 24px 20px;
    }
    .client-designs-text h3 { font-size: 16px; }
    .designs-features { flex-wrap: wrap; }
    #clientDesignsGallery {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }
    .client-design-info { padding: 10px 12px; }
    .client-design-config { font-size: 11px; }
}
/* ========== END CLIENT DESIGNS GALLERY ========== */

/* ========== END YOUR DESIGN SECTION ========== */

.inspiration-login-prompt { background: #fff; border: 1px dashed #ddd; padding: 30px; text-align: center; }
.inspiration-login-prompt i { font-size: 32px; color: #ccc; margin-bottom: 12px; display: block; }
.inspiration-login-prompt span { display: block; font-size: 14px; color: #666; margin-bottom: 15px; }
.btn-inspiration-login-small { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; background: #1a1a1a; color: #fff; border: none; font-size: 13px; cursor: pointer; }
.btn-inspiration-login-small:hover { background: #333; color: #fff; }

.product-tabs { margin-top: 40px; }
.tab-nav { display: flex; border-bottom: 1px solid var(--border-color); flex-wrap: wrap; }
.tab-btn { padding: 18px 25px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-light); border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; border-left: none; border-right: none; border-top: none; cursor: pointer; }
.tab-btn:hover, .tab-btn.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }
.tab-content { padding: 40px 0; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.tab-pane h3 { font-family: var(--font-heading); font-size: 24px; font-weight: 400; margin-bottom: 20px; }
.tab-pane p { color: var(--text-light); margin-bottom: 15px; line-height: 1.8; }
.tab-pane ul { list-style: disc; padding-left: 20px; color: var(--text-light); }
.tab-pane ul li { margin-bottom: 10px; line-height: 1.7; }
.delivery-returns-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 768px) { .delivery-returns-grid { grid-template-columns: 1fr; gap: 30px; } }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border-light); }
.specs-table th, .specs-table td { padding: 15px 0; text-align: left; font-size: 14px; }
.specs-table th { font-weight: 600; width: 40%; color: var(--text-color); }
.specs-table td { color: var(--text-light); }

.upholstery-panel-overlay { position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; background: rgba(0,0,0,0.4) !important; backdrop-filter: blur(2px); z-index: 2500 !important; opacity: 0; visibility: hidden; transition: all 0.3s; }
.upholstery-panel-overlay.active { opacity: 1 !important; visibility: visible !important; }
.upholstery-panel { position: fixed !important; top: 0 !important; right: 0 !important; width: 85vw !important; min-width: 300px !important; max-width: 380px !important; height: 100vh !important; background: #fff !important; z-index: 2600 !important; transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); display: flex !important; flex-direction: column !important; box-shadow: -4px 0 30px rgba(0,0,0,0.15) !important; }
.upholstery-panel.active { transform: translateX(0) !important; }

/* Panel sizing - smaller widths on larger screens */
@media (min-width: 768px) {
    .upholstery-panel { width: 360px !important; max-width: 360px !important; }
}
@media (min-width: 1024px) {
    .upholstery-panel { width: 380px !important; max-width: 380px !important; }
}
@media (min-width: 1440px) {
    .upholstery-panel { width: 400px !important; max-width: 400px !important; }
}
@media (min-width: 1920px) {
    .upholstery-panel { width: 420px !important; max-width: 420px !important; }
}
@media (min-width: 2560px) {
    .upholstery-panel { width: 450px !important; max-width: 450px !important; }
}
.upholstery-panel-header { display: flex !important; align-items: flex-start !important; justify-content: space-between !important; padding: 24px !important; background: #fafafa !important; border-bottom: 1px solid var(--border-color) !important; }
.upholstery-panel-header h3 { font-family: var(--font-heading) !important; font-size: 22px !important; font-weight: 500 !important; margin: 0 0 6px !important; }
.panel-subtitle { font-size: 13px !important; color: var(--text-muted) !important; margin: 0 !important; }
.panel-close { width: 38px !important; height: 38px !important; display: flex !important; align-items: center !important; justify-content: center !important; font-size: 16px !important; color: var(--text-muted); background: #fff !important; border: 1px solid var(--border-color) !important; border-radius: 50% !important; cursor: pointer !important; }
.panel-close:hover { color: #fff !important; background: var(--primary-color) !important; border-color: var(--primary-color) !important; }
.upholstery-panel-content { flex: 1 !important; overflow-y: auto !important; padding: 24px !important; }
.upholstery-panel-footer { padding: 20px 24px !important; border-top: 1px solid var(--border-color) !important; background: #f8f8f8 !important; }

/* Reset color and font for panel elements - allows custom styling */
.upholstery-panel-content * { color: inherit !important; font-family: inherit !important; }
.upholstery-panel-content { color: #1a1a1a !important; font-family: var(--font-sans) !important; }
.upholstery-panel-content label,
.upholstery-panel-content span,
.upholstery-panel-content p,
.upholstery-panel-content div { color: inherit !important; font-family: inherit !important; font-weight: inherit !important; }

/* Utility class to strip all color and font - use on any element */
.reset-styles { color: unset !important; font-family: unset !important; font-size: unset !important; font-weight: unset !important; }
.no-color { color: inherit !important; background-color: transparent !important; }
.no-font { font-family: inherit !important; font-size: inherit !important; font-weight: inherit !important; }

/* ========== RBOX POPUP OVERRIDES ========== */
/* Rbox container and overlay */
.rbox-overlay, .rbox-wrap, [class*="rbox-"] { font-family: var(--font-sans) !important; }
.rbox-content, .rbox-inner, .rbox-body { background: #fff !important; color: #1a1a1a !important; font-family: var(--font-sans) !important; }
.rbox-close, .rbox-close-btn { background: #fff !important; border: 1px solid #ddd !important; color: #666 !important; cursor: pointer !important; }
.rbox-close:hover, .rbox-close-btn:hover { background: #1a1a1a !important; color: #fff !important; border-color: #1a1a1a !important; }

/* Rbox swatch styles */
.rbox-swatch, [class*="rbox-swatch"] { border: 2px solid transparent !important; cursor: pointer !important; }
.rbox-swatch.active, .rbox-swatch.selected, [class*="rbox-swatch"].active { border-color: #1a1a1a !important; box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important; }

/* Rbox buttons */
.rbox-btn, [class*="rbox-"] button, .rbox-inline-sm-wc { background: #fff !important; color: #1a1a1a !important; border: 1px solid #1a1a1a !important; padding: 12px 24px !important; cursor: pointer !important; transition: all 0.2s ease !important; font-family: var(--font-sans) !important; }
.rbox-btn:hover, [class*="rbox-"] button:hover, .rbox-inline-sm-wc:hover { background: #1a1a1a !important; color: #fff !important; }

/* Rbox image popup */
.js-rbox-img { cursor: pointer !important; }

/* Strip inherited colors/fonts from Rbox content */
.rbox-content *, .rbox-inner *, .rbox-body * { color: inherit !important; font-family: inherit !important; }
/* ========== END RBOX OVERRIDES ========== */

/* ========== REQUEST PRICE PANEL ========== */
.request-price-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(2px); z-index: 10000; opacity: 0; visibility: hidden; transition: all 0.3s; }
.request-price-overlay.active { opacity: 1; visibility: visible; }
.request-price-panel { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9); width: 90%; max-width: 500px; max-height: 90vh; background: #fff; z-index: 10001; opacity: 0; visibility: hidden; transition: all 0.3s; display: flex; flex-direction: column; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.request-price-panel.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.request-price-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 24px; background: #fafafa; border-bottom: 1px solid #eee; }
.request-price-header h3 { font-family: var(--font-heading); font-size: 22px; font-weight: 500; margin: 0 0 6px; }
.request-price-header p { font-size: 13px; color: #666; margin: 0; }
.request-price-content { flex: 1; overflow-y: auto; padding: 24px; }
.request-price-product { display: flex; align-items: center; gap: 15px; padding: 15px; background: #f8f8f8; border-radius: 4px; margin-bottom: 20px; }
.request-price-product img { width: 60px; height: 60px; object-fit: cover; border: 1px solid #ddd; }
.request-price-product-info h4 { font-size: 15px; font-weight: 500; margin: 0 0 4px; }
.request-price-product-info p { font-size: 13px; color: #666; margin: 0; }
.request-price-footer { padding: 20px 24px; border-top: 1px solid #eee; background: #f8f8f8; }
.btn-submit { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 15px 20px; background: #1a1a1a; color: #fff; border: none; font-size: 15px; font-weight: 500; cursor: pointer; }
.btn-submit:hover { background: #333; }
.form-group textarea { width: 100%; padding: 13px 15px; border: 1px solid #ddd; font-size: 14px; box-sizing: border-box; min-height: 80px; resize: vertical; font-family: inherit; }
.form-group textarea:focus { outline: none; border-color: #333; }
/* ========== END REQUEST PRICE PANEL ========== */

.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 10000; padding: 20px; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content { background: #fff; width: 100%; max-width: 400px; max-height: 90vh; overflow-y: auto; position: relative; padding: 32px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #999; background: #fff; border: 1px solid #ddd; border-radius: 50%; cursor: pointer; }
.modal-close:hover { color: #fff; background: #1a1a1a; border-color: #1a1a1a; }
.modal-header { text-align: center; margin-bottom: 28px; }
.modal-header h3 { font-size: 22px; font-weight: 500; margin: 0 0 8px; font-family: var(--font-heading); }
.modal-header p { color: #666; font-size: 14px; margin: 0; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: #333; }
.form-group input, .form-group select { width: 100%; padding: 13px 15px; border: 1px solid #ddd; font-size: 14px; box-sizing: border-box; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: #333; }
.btn-submit-login { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 15px 20px; background: #1a1a1a; color: #fff; border: none; font-size: 15px; font-weight: 500; cursor: pointer; }
.btn-submit-login:hover { background: #333; color: #fff; }

.success-modal .modal-content { text-align: center; max-width: 380px; }
.success-icon { width: 70px; height: 70px; background: #4CAF50; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.success-icon i { font-size: 32px; color: #fff; }

.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s; }
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-close { position: absolute; top: 20px; right: 20px; width: 50px; height: 50px; background: rgba(255,255,255,0.1); border: none; color: #fff; font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-content img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox-content { position: relative; }
.lightbox-watermark { position: absolute; bottom: 20px; right: 20px; width: 80px; height: auto; opacity: 0.5; pointer-events: none; z-index: 10; }

@media (max-width: 768px) {
    .product-layout { display: flex !important; flex-direction: column !important; gap: 0 !important; }
    .product-gallery { order: 1; width: calc(100% + 30px) !important; margin: 0 -15px !important; }
    .main-image img { width: 100% !important; height: 45vh !important; min-height: 280px !important; aspect-ratio: unset !important; object-fit: cover !important; }
    .product-info { order: 2; width: 100% !important; padding: 15px 0 !important; }
    .purchase-actions-row { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; gap: 8px !important; }
    .btn-add-to-cart span { display: none !important; }
    .btn-preview-ai span { display: none !important; }
    .upholstery-panel { width: 100% !important; max-width: 100% !important; }

    /* Mobile fixes for your design section */
    .your-design-image-wrapper { width: 100%; aspect-ratio: 1/1; }
    .your-design-info { padding: 6px 8px; }
    .your-design-selection { font-size: 10px; }
    .your-design-actions button { padding: 3px 5px; font-size: 8px; }
    .your-design-actions button i { font-size: 8px; }

    /* Mobile swatch selector - equally distributed across screen width */
    .swatch-block {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0 !important;
        padding: 10px 0 !important;
        width: 100% !important;
        overflow-x: visible !important;
        position: relative !important;
    }
    .swatch-block-expanded {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)) !important;
        gap: 12px !important;
        max-height: 280px !important;
        overflow-y: scroll !important;
        overflow-x: hidden !important;
        padding: 12px !important;
        border: 1px solid #e8e8e8 !important;
        border-radius: 8px !important;
        background: #fafafa !important;
    }
    .swatch-block-expanded .swatch-each {
        width: 80px !important;
        height: 80px !important;
        min-width: 80px !important;
        min-height: 80px !important;
        flex-shrink: 0 !important;
    }
    /* Swatches - flex to fill available space equally - 90px on mobile */
    .swatch-block .swatch-each,
    .swatch-block > div:not(.swatch-view-all-btn),
    .swatch-block > [class*="col-"] {
        width: 90px !important;
        height: 90px !important;
        min-width: 70px !important;
        max-width: 100px !important;
        flex: 1 1 auto !important;
        margin: 0 !important;
        aspect-ratio: 1/1 !important;
    }
    /* View all button - same size as swatches, distributed equally */
    .swatch-block .swatch-view-all-btn {
        width: 90px !important;
        height: 90px !important;
        min-width: 70px !important;
        max-width: 100px !important;
        min-height: unset !important;
        max-height: unset !important;
        flex: 1 1 auto !important;
        margin: 0 !important;
        align-self: center !important;
        box-sizing: border-box !important;
        aspect-ratio: 1/1 !important;
        position: static !important;
        transform: none !important;
    }
    /* Mobile swatch enhanced styles */
    .swatch-each {
        border-width: 2px;
        border-radius: 6px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        transition: all 0.2s ease;
    }
    /* Disable tooltips on mobile (touch devices) */
    .swatch-each::before,
    .swatch-each[data-name]:hover::before,
    .swatch-each[data-name]:hover::after {
        display: none !important;
    }
    /* Keep active feedback for touch */
    .swatch-each:active {
        transform: scale(0.95) !important;
        box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
    }
    .swatch-each.swatch-selected, .swatch-each.active {
        border-color: #1a1a1a !important;
        box-shadow: 0 0 0 2px rgba(26,26,26,0.12), 0 2px 8px rgba(0,0,0,0.12) !important;
    }
    .swatch-each img { border-radius: 4px; }
    /* Mobile checkmark - positioned inside swatch */
    .swatch-each.swatch-selected::after, .swatch-each.active::after {
        width: 16px !important;
        height: 16px !important;
        font-size: 9px !important;
        top: -4px !important;
        right: -4px !important;
        border-width: 1.5px !important;
    }
    .swatch-view-all-btn { font-size: 10px; padding: 4px; }
    .swatch-view-all-btn .swatch-btn-count { font-size: 14px; }
    .swatch-view-all-btn .swatch-btn-text { font-size: 7px; letter-spacing: 0.3px; }
    .swatch-inline-detail { padding: 15px; }
    .swatch-inline-detail-content { max-width: 280px; padding: 16px; }
    .swatch-inline-name { font-size: 15px; margin-bottom: 12px; }
    .swatch-select-btn { padding: 12px 28px; font-size: 12px; }
    .heading-title { font-size: 11px; margin: 16px 0 8px 0; letter-spacing: 1px; }
    .heading-title::before { width: 2px; height: 12px; }

    /* Mobile accordion tabs */
    .tab-nav { display: none !important; }
    .tab-content { padding: 0 !important; }
    .tab-pane { display: block !important; border-bottom: 1px solid #eee; }
    .tab-pane > h3 { font-size: 16px !important; padding: 18px 0; margin: 0 !important; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
    .tab-pane > h3::after { content: '+'; font-size: 20px; font-weight: 300; color: #999; transition: transform 0.3s; }
    .tab-pane.accordion-open > h3::after { content: '-'; }
    /* Hide all content when accordion is closed - use !important to override inline styles */
    .tab-pane:not(.accordion-open) > *:not(h3) { display: none !important; }
    /* When accordion is open, show content with proper padding */
    .tab-pane.accordion-open > *:not(h3) { padding: 0 0 20px 0; }
    /* Client designs: signin shows as flex, gallery as grid - only when accordion open AND not hidden by JS */
    .tab-pane.accordion-open .client-designs-signin:not([style*="display: none"]) { display: flex !important; }
    .tab-pane.accordion-open #clientDesignsGallery:not([style*="display: none"]) { display: grid !important; }
    .tab-pane p, .tab-pane ul, .tab-pane .specs-table { margin-bottom: 15px; }

    /* Mobile thumbnails - sized for 5+ images */
    .thumbnail-list { gap: 4px !important; }
    .thumbnail-list > *, .thumbnail-list > * > *, .thumbnail-list a, .thumbnail-list div, .thumbnail-list figure { width: 65px !important; height: 65px !important; min-width: 65px !important; max-width: 65px !important; min-height: 65px !important; max-height: 65px !important; }
    .thumbnail-item { width: 65px !important; height: 65px !important; }
}

/* Very small screens (iPhone SE, etc.) - equally distributed swatches - 75px */
@media (max-width: 374px) {
    .swatch-block .swatch-each,
    .swatch-block > div:not(.swatch-view-all-btn),
    .swatch-block > [class*="col-"],
    #upholsteryPanel .swatch-block .swatch-each,
    .upholstery-panel-content .swatch-block .swatch-each,
    .panel-selectors-section .swatch-block .swatch-each {
        width: 75px !important;
        height: 75px !important;
        min-width: 60px !important;
        max-width: 85px !important;
    }
    .swatch-block .swatch-view-all-btn,
    #upholsteryPanel .swatch-view-all-btn,
    .upholstery-panel-content .swatch-view-all-btn,
    .panel-selectors-section .swatch-view-all-btn {
        width: 75px !important;
        height: 75px !important;
        min-width: 60px !important;
        max-width: 85px !important;
    }
    .swatch-block,
    #upholsteryPanel .swatch-block,
    .upholstery-panel-content .swatch-block,
    .panel-selectors-section .swatch-block {
        justify-content: space-between !important;
        gap: 0 !important;
        padding: 10px 0 !important;
    }
}

/* Client Designs Sign-in Button */
.btn-signin-designs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #1a1a1a;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-signin-designs:hover {
    background: #1a1a1a;
    color: #fff;
}
.btn-signin-designs i {
    font-size: 14px;
}

@media (max-width: 480px) {
    .product-title { font-size: 18px !important; }
    .price-current { font-size: 18px !important; }
    .modal-content { margin: 15px; padding: 24px; }

    /* Even smaller on mobile */
    .your-design-actions { gap: 3px; }
}

/* ========== PANEL SWATCH EXPANDED - FORCE SCROLL (HIGH SPECIFICITY) ========== */
/* This override ensures scroll works in panel when +55/+37 button is clicked */
#upholsteryPanel .panel-selectors-section .swatch-block.swatch-block-expanded,
#upholsteryPanel .upholstery-panel-content .swatch-block.swatch-block-expanded,
.upholstery-panel .panel-selectors-section .swatch-block.swatch-block-expanded,
.upholstery-panel-content .panel-selectors-section .swatch-block.swatch-block-expanded {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(55px, 1fr)) !important;
    gap: 12px !important;
    max-height: 200px !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    padding: 12px !important;
    margin: 8px 0 !important;
    border: 1px solid #ccc !important;
    border-radius: 0px !important;
    background: #fff !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05) !important;
}

/* Ensure swatches inside expanded container display properly */
#upholsteryPanel .swatch-block.swatch-block-expanded .swatch-each,
.upholstery-panel-content .swatch-block.swatch-block-expanded .swatch-each,
.panel-selectors-section .swatch-block.swatch-block-expanded .swatch-each {
    width: 55px !important;
    height: 55px !important;
    flex-shrink: 0 !important;
}

/* Main row container - centers items vertically */
.panel-selectors-section .row {
    display: flex;
    align-items: center;
}

/* Swatch container column - aligns swatches horizontally */
.panel-selectors-section .row .col-10-sm {
    display: flex;
    align-items: center;
}

/* Button container column - centers button */
.panel-selectors-section .row .col-2-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* More swatches button (+55, +37) styling - SHARP EDGES */
.panel-selectors-section .row .col-2-sm .more-swatch-btn {
    width: 100% !important;
    min-width: 74px !important;
    height: 74px !important;
    border-radius: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    border: 2px solid #d0d0d0 !important;
    background: #ffffff !important;
    color: #333333 !important;
    text-decoration: none !important;
    float: none !important;
    margin: 0 !important;
    transition: all 0.3s ease !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

/* Button hover effect */
.panel-selectors-section .row .col-2-sm .more-swatch-btn:hover {
    background: #f8f8f8 !important;
    border-color: #999999 !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-1px) !important;
}

/* Swatch block - displays swatches in a row with spacing */
.panel-selectors-section .swatch-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Individual swatch - prevents shrinking - SHARP EDGES */
.panel-selectors-section .swatch-each {
    flex-shrink: 0;
}

.panel-selectors-section .swatch-each img {
    border-radius: 0 !important;
}

/* Override swatch-block styles: remove borders, background, margins and padding */
.upholstery-panel-content .panel-selectors-section .swatch-block,
#upholsteryPanel .panel-selectors-section .swatch-block,
.upholstery-panel .panel-selectors-section .swatch-block,
.panel-selectors-section .swatch-block {
    border-top: none !important;
    border-bottom: none !important;
    margin: 0 !important;
    background: transparent !important;
    padding: 0 !important;
}

/* REDESIGN RBOX */

/* Minimal CSS to add vertical scroll without changing width - HIDDEN SCROLLBAR */
.rbox-wrap--inline {
    max-height: 80vh !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.rbox-wrap--inline::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Modal Overlay - subtle improvement */
.rbox-overlay {
    background: rgba(0, 0, 0, 0.65) !important;
}

/* Modal Container - SHARP EDGES */
.rbox-wrap--inline {
    background: #ffffff !important;
    border-radius: 0 !important;
    padding: 32px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12) !important;
    max-width: 720px !important;
}

/* Brand Logo - SHARP EDGES */
.rbox-brand-logo {
    display: block;
    margin-bottom: 16px;
    border-radius: 0 !important;
}

/* Product Title */
.rbox-content .h4.grey-silver {
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin-bottom: 12px !important;
    line-height: 1.3 !important;
}

/* Section Labels (Brand, Top, etc) */
.rbox-content .font-uppercase.font-size-lg {
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.8px !important;
    color: #888888 !important;
    margin-bottom: 8px !important;
    text-transform: uppercase !important;
}

/* Category Title in swatch block */
.swatch-all-block > .font-uppercase.font-size-lg {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin-bottom: 16px !important;
    margin-top: 24px !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid #f0f0f0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Swatch Images - SHARP EDGES */
.swatch-all-each img {
    border-radius: 0 !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    border: 2px solid transparent !important;
}

.swatch-all-each img:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
    border-color: var(--border-color, #e8e8e8) !important;
}

/* Swatch Container */
.swatch-all-each {
    margin-bottom: 20px !important;
    padding: 8px !important;
}

/* Swatch Name/Label */
.swatch-all-each > div:not(.swatch-details) {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #333333 !important;
    margin-top: 10px !important;
    text-align: center !important;
}

/* Select Button Styling - SHARP EDGES */
.swatch-details .btn-peach {
    border-radius: 0 !important;
    padding: 10px 16px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    margin-top: 8px !important;
}

/* Row spacing */
.swatch-all-block .row {
    margin-left: -8px !important;
    margin-right: -8px !important;
}

/* Spacing adjustments */
.spacing-v {
    margin-bottom: 12px !important;
}

/* Override the rbox-close button to match panel-close style */
.rbox-wrap--ajax .rbox-close,
.rbox-wrap--html .rbox-close,
.rbox-wrap--inline .rbox-close {
    position: absolute !important;
    top: -12px !important;
    right: -12px !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    background: #fff !important;
    border: 1px solid var(--border-color, #e8e8e8) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0 !important;
    color: var(--text-muted, #888888) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    z-index: 1000 !important;
    text-decoration: none !important;
    line-height: 1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Hide any child elements */
.rbox-wrap--ajax .rbox-close *,
.rbox-wrap--html .rbox-close *,
.rbox-wrap--inline .rbox-close * {
    display: none !important;
}

/* Add the X icon using ::before */
.rbox-wrap--ajax .rbox-close::before,
.rbox-wrap--html .rbox-close::before,
.rbox-wrap--inline .rbox-close::before {
    content: "\f00d" !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    color: var(--text-muted, #888888) !important;
    display: block !important;
    transition: color 0.2s ease !important;
}

/* Hover state - BLACK background with WHITE icon */
.rbox-wrap--ajax .rbox-close:hover,
.rbox-wrap--html .rbox-close:hover,
.rbox-wrap--inline .rbox-close:hover {
    background: #1a1a1a !important;
    border-color: #1a1a1a !important;
    transform: scale(1.05) !important;
}

.rbox-wrap--ajax .rbox-close:hover::before,
.rbox-wrap--html .rbox-close:hover::before,
.rbox-wrap--inline .rbox-close:hover::before {
    color: #ffffff !important;
}

/* Ensure parent is positioned relatively */
.rbox-wrap {
    position: relative !important;
}

.size-caveat i.fas {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

.loading-subtext {
    display: block;
    font-size: 13px;
    color: #888888;
    margin-top: 8px;
    font-weight: 400;
}
.your-design-loading p {
    margin-bottom: 0;
    font-size: 15px;
    font-weight: 500;
}

/* Updated Quote Button Design - Pounds Icon */
.btn-request-quote-design {
    width: 100%;
    margin-top: 10px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff !important;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.btn-request-quote-design:hover {
    background: linear-gradient(135deg, #2d2d2d 0%, #404040 100%);
    color: #fff !important;
}
.btn-request-quote-design i {
    font-size: 16px;
    flex-shrink: 0;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.btn-request-quote-design:hover i {
    background: rgba(255, 255, 255, 0.15);
}
.btn-request-quote-design .btn-quote-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.btn-request-quote-design .btn-quote-main {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1.2;
    color: #fff !important;
}
