/* 
 * /dev/products/assets/products.css 
 * VERSION 4.4 - REMOVED FORCED VISIBILITY ON MOBILE
 */

/* GLOBAL RESET: Ensure padding doesn't increase width */
* {
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important; 
    margin: 0;
    padding: 0;
    /* FIX: Ensure full height background to avoid gaps */
    min-height: 100%;
    /* FIX: Handle iPhone Home Bar Safe Area */
    padding-bottom: env(safe-area-inset-bottom);
    background:transparent;
}

/* Main post container */
.product-post {
    margin-bottom: 24px;
    margin-top: 36px;
}

.diiiv{
    display: none;
}

/* Base Title Logic - Hide Mobile Title on Desktop */
.mobile-title {
    display: none;
}


.btn-immerse-overlay {
  right: 5px !important;
    position: absolute !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    z-index: 20 !important;
    width: 57px !important;
    height: 57px !important;
    background: linear-gradient(155deg, #4a174b66 0%, #5b5b5b 100%) !important;
    backdrop-filter: blur(4px) !important;
    border: 1px solid #ffebb85e !important;
    border-radius: 100% !important;
    padding: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}


.product-post-title {
    font-weight: 600;
    color: #353129;
    padding: 0;
    line-height: 0.3;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    text-shadow: none;
    background: none;
    border-left: none;
    border-radius: 0;
    z-index: 9;
    padding-top: 10px;
}

.product-post-title a {
    color: #2d082b;
    text-decoration: none;
    text-shadow: none;
}

.product-post-title a:hover {
    color: #3d0649;
    text-decoration: none;
}

.product-card {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease-in-out;
}
.product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.product-media-region {
    position: relative;
    background-color: #f0f2f5;
    cursor: pointer;
    overflow: hidden; 
    border-radius: 8px 8px 0 0;
}

.product-media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #25091d 0%, #3d0649 100%);
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

.product-image-single {
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 16 / 9;
}
.product-image-single img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-slider-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.image-slider-container::-webkit-scrollbar {
    display: none;
}

.image-slide {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 16 / 9;
}
.image-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
    z-index: 10;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.pc-arrow:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
.pc-arrow.pc-prev {
    left: 12px;
}
.pc-arrow.pc-next {
    right: 12px;
}

/* --- NEW: SLIDER SCROLLING DOTS (Top Center) --- */
.slider-dots-container {
    position: absolute;
    top: 16px; /* Top of slider */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 20;
    padding: 4px 8px;
    background: rgba(0,0,0,0.2); /* Subtle backing for visibility */
    border-radius: 12px;
    backdrop-filter: blur(2px);
    pointer-events: none; /* Let clicks pass through */
}

.slider-dot {
    width: 6px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slider-dot.active {
    background-color: #fff;
    width: 18px; /* Elongated active dot effect */
    border-radius: 6px;
}

.slider-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 6px 8px;
    z-index: 10;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.indicator-dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s;
}
.indicator-dot.active {
    background-color: #fff;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background-color: #fff;
    border-top: 1px solid #e2e8f0;
}

.left-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.right-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 9999px;
    background-color: transparent;
    border: 2px solid transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}

.action-btn:disabled {
    color: #94a3b8;
    background-color: #f1f5f9;
   
    cursor: not-allowed;
}
.action-btn:disabled:hover {
    background-color: #f1f5f9;
  
}

.action-btn.is-loading {
    cursor: wait; 
    opacity: 0.7;
    pointer-events: none; 
}

.action-btn svg {
    stroke-width: 2px;
}

.add-to-quote-btn {
    background-color: transparent;
    border-color: #3d0649;
    color: #3d0649;
}
.add-to-quote-btn:hover {
    background: linear-gradient(180deg, #25091d 0%, #3d0649 100%);
    color: #fff;
    border-color: #3d0649;
}
.add-to-quote-btn:hover svg {
    stroke: #fff;
}

.like-button {
    background: linear-gradient(180deg, #25091d 0%, #3d0649 100%);
    color: #fff;
    border-color: transparent;
}
.like-button:hover {
    color: #300831;
    opacity: 0.9;
}
.like-button svg {
    fill: none;
    stroke: #300831;
}
.like-button[data-liked="true"] svg {
    fill: #ef4444;
    stroke: #ef4444;
}

.comment-btn,
.share-button {
    background-color: rgba(61, 6, 73, 0.08);
    color: #4a174b;
    border-color: transparent;
    font-size: 12px;
}
.comment-btn:hover,
.share-button:hover {
    background-color: rgba(61, 6, 73, 0.15);
}
.comment-btn svg,
.share-button svg {
    stroke: #4a174b;
}

#fading-notice-container {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}
.fading-notice {
    background-color: #FBC848;
    color: #25091d;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.fading-notice.visible {
    opacity: 1;
    transform: translateY(0);
}
@media (max-width: 600px) {
    #fading-notice-container { right: 50%; transform: translateX(50%); align-items: center; width: 90%; }
    .fading-notice { width: 100%; text-align: center; }
}

.loader-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(61, 6, 73, 0.15);
    border-radius: 50%;
    border-top-color: #3d0649;
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* View Page Redesign */
.product-view-main { background-color: #fff; border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 24px; }
.product-view-header { padding: 16px 20px; }
.product-view-header h1 { font-size: 24px; font-weight: 700; color: #1a202c; margin: 0; line-height: 1.3; }
.product-media-region-view { position: relative; background-color: #000; max-height: 720px; display: flex; align-items: center; justify-content: center; }
.product-media-region-view .image-slide img { object-fit: contain; max-height: 720px; }
.product-view-actions { display: flex; align-items: center; gap: 8px; padding: 8px 20px; background-color: #f7fafc; border-top: 1px solid #e2e8f0; }
.product-view-actions .action-btn { font-size: 13px; font-weight: 600; color: #4a5568; gap: 8px; padding: 6px 12px; background-color: transparent; }
.product-view-actions .action-btn:hover { background-color: #e2e8f0; }
.product-description-card { border: none; box-shadow: none; }
.product-description-card .sf-card-body { padding: 20px; }
.product-description-card .price { font-size: 20px; font-weight: 700; color: #3d0649; margin-bottom: 16px; }
.product-specifications-card { border: none; box-shadow: none; }
.product-specifications-card .sf-card-header { padding: 12px 20px; background-color: #f7fafc; border-top: 1px solid #e2e8f0; font-weight: 600; }
.product-specifications-card .sf-card-body { padding: 20px; }
.spec-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; color: #4a5568; }
.spec-list li { display: flex; flex-direction: column; }
.spec-list li strong { font-size: 12px; font-weight: 600; color: #718096; text-transform: uppercase; margin-bottom: 2px; }

/* Comments Area */
.comments-area { background-color: #fff; border: 1px solid #e2e8f0; border-radius: 8px; }
.comment-form-container { padding: 20px; }
#comment-form .form-actions { display: flex; justify-content: flex-end; align-items: center; margin-top: 8px; }
.disabled-comment-box { text-align: center; padding: 20px; background-color: #f8fafc; border-radius: 6px; border: 1px solid #e2e8f0; }
.comments-toolbar { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding: 12px 20px; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; background-color: #f7fafc; }
.comments-toolbar label { font-size: 12px; font-weight: 600; color: #4a5568; margin-right: 6px; text-transform: uppercase; }
#comment-sort { padding: 4px 8px; font-size: 14px; max-width: 120px; }
#comment-search { padding: 4px 8px; font-size: 14px; width: 240px; }
.no-results { text-align: center; padding: 30px 20px; color: #718096; }
.comments-list-thread {    padding: 10px;
    zoom: 0.9; }
.comments-list-thread .comment-item.hidden-by-search { display: none; }
.comment-item { display: flex; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #edf2f7; }
.comment-item:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.comment-avatar { width: 32px; height: 32px; border-radius: 50%; background-color: #e2e8f0; flex-shrink: 0; }
.comment-content { min-width: 0; flex-grow: 1; }
.comment-meta { font-size: 13px; color: #718096; margin-bottom: 4px; }
.comment-author { font-weight: 600; color: #2d3748; margin-right: 8px; }
.comment-body { line-height: 1.6; color: #1a202c; word-break: break-word; }
.comment-body p { margin: 0 0 1em 0; }
.comment-body p:last-child { margin-bottom: 0; }
.comment-actions { margin-top: 8px; display: flex; align-items: center; gap: 4px; }
.comment-actions .action-btn { font-size: 12px; font-weight: 700; color: #718096; padding: 4px 8px; border-radius: 4px; }
.comment-actions .action-btn svg { width: 16px; height: 16px; stroke-width: 2.5px; }
.comment-actions .action-btn:hover { background-color: #e2e8f0; color: #2d3748; }
.comment-score { font-size: 12px; font-weight: 700; color: #4a5568; padding: 0 4px; }
.comment-actions .comment-like-btn.liked, .comment-actions .comment-dislike-btn.disliked { color: #3d0649; }
.comment-replies { padding-left: 0; margin-top: 16px; }

/* Category Menu */
.category-menu-card { border: none !important; box-shadow: none !important; background: transparent !important; }
.category-menu-card .card-header { border-bottom: 1px solid var(--border-color); padding-left: 0; padding-right: 0; }
.category-menu-card .card-body { padding: 8px 0; }
.category-menu { list-style: none; padding: 0; margin: 0; }
.category-menu .menu-item { position: relative; display: flex; align-items: center; padding-left: 16px; height: 44px; cursor: pointer; user-select: none; font-weight: 500; color: var(--text-secondary); border-radius: 6px; transition: background-color 0.2s ease, color 0.2s ease; border: none; background: transparent; width: 100%; text-align: left; font-size: 1rem; }
.category-menu a.menu-item { text-decoration: none; }
.category-menu .menu-item:hover { background-color: #f1f5f9; }
.category-menu .menu-item.active { color: var(--text-primary); font-weight: 600; }
.menu-item::before { content: ''; display: none; width: 20px; height: 20px; margin-right: 12px; background-image: url('checkbox-unchecked.svg'); background-size: contain; background-repeat: no-repeat; background-position: center; flex-shrink: 0; }
.menu-item.active::before { background-image: url('checkbox-checked.svg'); }
.submenu { list-style: none; padding-left: 0; margin: 0; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.submenu .menu-item { padding-left: 48px; }
.submenu-toggle .submenu-arrow { transition: transform 0.3s ease-out; }
.submenu-toggle[aria-expanded="true"] .submenu-arrow { transform: rotate(180deg); }
.menu-item:focus-visible { outline: 2px solid var(--primary-color); outline-offset: -2px; border-radius: 4px; }

/* Mobile Product Actions (Hidden on desktop) */
.mobile-product-actions {
    display: none;
}

/* ----------------------------------------
   Mobile & tablet adjustments
   ---------------------------------------- */
@media (max-width: 1024px) {
    /* FIX: Prevent horizontal scroll overflow */
    html, body {
        overflow-x: hidden !important;
        max-width: 100% !important; /* FIX: Changed from 100vw to prevent scrollbar bleed */
        width: 100% !important;
        margin: 0;
        padding: 0;
        /* FIX: Ensure full height background to avoid gaps, and handle safe area */
        min-height: 100%;
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .immerse-modal {
        top: 0 !important;
    }

    .page-wrapper {
        overflow-x: hidden !important; /* Contain bleed */
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important; /* FIX: Changed from 100vw */
        width: 100% !important;
        margin: 0;
    }

    .desktop-title {
        display: none !important;
    }

    .post-title {
        text-align: right!important;
    }

    .diiiv{
        padding-top: 19px;
        display: block;
    }

    /* FIX: Alert Modal Sizing */
    .sf-alert-modal-content {
        background: #ededed !important;
        padding: 13px !important;
        border-radius: 16px !important;
        text-align: center !important;
        box-shadow: 0 10px 40px rgba(37, 9, 29, 0.2) !important;
        animation: modal-fade-in 0.3s !important;
        min-width: auto !important;
        max-width: 92% !important; /* FIX: Prevent touching edges */
        width: 100% !important;
        border-radius: 6px 6px 0 0 !important;
        zoom: 0.65 !important;
        margin: 0 auto;
    }

    #custom-alert-close {
        width: 100% !important;
        padding: 0 24px !important;
        border-radius: 9px;
        height: 56px;
        font-size: 18px;
    }

    /* Hide left and right sidebars on mobile and tablet */
    .left-sidebars-wrapper,
    .left-sidebar,
    .main-sidebar,
    .secondary-sidebar,
    .right-sidebar {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    .desktop-title {
        display: none !important;
    }

    .add-to-quote-btn {
        font-size: 12px;
    }

    .sf-alert-modal-overlay {
        padding: 0px;
        align-items: flex-end !important;
    }

    .like-button svg {
        stroke: #300831 !important;
    }
    
    .hiddi {
       display: none; 
    }

    .app-mobile-menu{
        left: -1px !important;
    }
    .custom-upload-slider{
        border-radius: 25px 65px 128px !important; 
    }

    .part {
        width: 100%;
        padding-right: 34px;
    }

    .logistics-header {
        padding-left: 28px;
        padding-top: 10px;
    }
    
    .like-button {
      border-top-left-radius: 0 !important;
        color: #2e0c26 !important;
        background: rgba(61, 6, 73, 0.08) !important;
        border-color: transparent !important;
        font-size: 12px;
        padding-left: 5px;
        margin-left: 2px;
    }

    .page-wrapper main,
    .sf-container {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        background: transparent;
        border: none;
    }

    /* Make product posts full width and remove side gaps */
    .product-post {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 10px;
        padding-bottom: 22px;
        box-sizing: border-box;
    }

    /* FLAT DESIGN: Remove Card Shadows/Borders for Edge-to-Edge feel */
    .product-card, .reddit-post-card {
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        margin-bottom: 0 !important;
        width: 100% !important;
        max-width: 100% !important; /* FIX: Changed from 100vw */
    }

    /* Media should fill the card width */
    .product-media-region,
    .product-image-single,
    .image-slide {
        width: 100% !important;
        height: 463px !important;
        aspect-ratio: 16 / 9;
        mask-image: linear-gradient(to bottom, black 77%, transparent 100%);
        border-radius: 3px;
    }

    .image-slide img,
    .product-image-single img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

    /* Reduce padding and spacing in the actions area */
    .product-actions {
       padding: 5px !important;
        gap: 12px !important;
        position: absolute;
        width: 100%;
        margin-top: -87px;
        background: transparent;
        border: 0;
    }

    .left-actions, .right-actions {
        gap: 6px !important;
    }
    
    
    .right-actions {
        padding-right: 3px !important;
        margin-right: 1px !important;
    }

    /* FIX: Add to Quote Button - Icon Only on Mobile */
    .add-to-quote-btn span {
        display: none !important; /* Remove text */
    }
    
    .add-to-quote-btn {
        padding: 8px !important;
        width: 44px !important; /* Square-ish touch target */
        height: 44px !important;
        justify-content: center !important;
        border: 1px solid #e2e8f0; 
    }

    /* FIX: Increase SVG Icon Size for Add to Quote specifically */
    .add-to-quote-btn svg {
        width: 24px !important; 
        height: 24px !important;
    }
    
    /* Other actions keep smaller icons */
    .action-btn:not(.add-to-quote-btn) svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* HIDE arrows on mobile as swipe is preferred and dots are at top */
    .pc-arrow {
        display: none !important;
    }

    
    /* HIDE old indicators */
    .slider-indicators {
        display: none !important;
    }
    
    /* SHOW new top dots */
    .slider-dots-container {
        display: flex !important;
        top: 16px !important; /* Force top position */
    }

    /* --- APP-LIKE HEADER REDESIGN (Mobile Only) --- */
    
    .post-content-area {
        padding: 0 !important;
    }

    .post-header.ci8 {
        display: none !important;
        align-items: center !important;
        width: 100% !important;
        margin-bottom: 0 !important;
        gap: 10px !important;
        background: transparent !important;
        border: none !important;
        height: auto !important;
        flex-wrap: nowrap !important;
        padding: 12px 16px !important; 
    }

    .sub-icon {
        width: 36px !important;
        height: 36px !important;
        border-radius: 50% !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
        font-size: 14px !important;
        background-color: #f0f2f5 !important;
        color: #65676b !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 700 !important;
    }

    .sub-link {
        font-size: 15px !important;
        font-weight: 700 !important; 
        color: #050505 !important; 
        text-decoration: none !important;
        margin-right: 4px !important;
    }

    .post-header.ci8 > span {
        font-size: 13px !important;
        color: #65676B !important;
        font-weight: 400 !important;
        white-space: nowrap !important;
    }

    .desktop-title { display: none !important; }
    .mobile-title { display: block !important; }

    .media-container {
        width: 100% !important;
        border: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }

    .product-post-title a {
        color: white;
        text-decoration: none;
        transition: color 0.2s ease-in-out;
        text-shadow: 0px 2px 4px #0c0901ad, 0px 0px 12px #000000;
    }

    .product-post-title {
        font-size: 13px;
        font-weight: 600;
        color: #353129;
        margin: 0 0 12px 0;
        padding: 0 8px;
        line-height: 1.3;
        position: absolute;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        text-shadow: none;
        background: none;
        border-left: none;
        border-radius: 0;
        z-index: 9;
        padding-top: 10px;
        width: 337px;
    }

    .post-footer-actions {
   border-top: 0;
        border-bottom: 0;
        padding: 8px 9px !important;
        gap: 12px !important;
        justify-content: space-between !important;
    }

    .action-pill {
        flex: 1 1 0px !important;
        width: 0 !important;
        height: 40px !important;
        background-color: transparent !important;
        border: 1px solid #e4e6eb !important;
        border-radius: 8px !important;
        color: #050505 !important;
        font-weight: 600 !important;
        font-size: 14px !important;
        justify-content: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
    }
    
    .action-pill svg {
        width: 20px !important;
        height: 20px !important;
        stroke-width: 2px !important;
        flex-shrink: 0;
    }

    .action-pill.like-button[data-liked="true"] {
        background-color:#fbc84880 !important;
        color: #E0245E !important;
        border-color: #ffcdd2 !important;
    }

    /* --- NEW: MOBILE PRICE & QUOTE ACTION BAR --- */
    .mobile-product-actions {
        display: block !important;
        padding: 16px 0 16px !important;
        background-color: transparent !important;
        border-radius: 0;
        margin: 0 16px 20px 16px !important;
        border: none;
    }

    .mobile-price-row {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-bottom: 12px !important;
        padding-bottom: 12px !important;
        border-bottom: 1px dashed #cbd5e0 !important;
    }

    .mobile-quote-btn {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 12px !important;
        font-size: 16px !important;
        border-radius: 8px !important;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05) !important;
    }

    /* 5. SECTIONS: Thick Dividers & Flat Layout */
    
    .product-specs-main {
        border: none !important;
        border-radius: 0 !important;
        padding: 10px !important;
        box-shadow: none !important;
        border-bottom: 8px solid #f0f2f5 !important;
        margin-bottom: 0 !important;
    }

    .comments-section {
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0px !important;
        margin-bottom: 0 !important;
    }
    
    .comment-textarea {
        background-color: #f0f2f5 !important;
        border: none !important;
        border-radius: 24px !important; 
        padding: 12px 20px !important;
        font-size: 15px !important;
    }
    
    .btn-comment-submit {
        width: 100% !important;
        float: none !important;
        margin-top: 12px !important;
        display: block !important;
        height: 44px !important;
        font-size: 15px !important;
        border-radius: 8px !important;
        background-color: #3d0649 !important;
    }

    /* UPDATED: Fading Notice Positioning for Mobile (Top Full Width) */
    #fading-notice-container {
        top: 52px !important;
        bottom: auto !important;
        right: 0 !important;
        left: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        padding: 0 !important;
        align-items: center !important;
    }

    .fading-notice {
        width: 100% !important;
        border-radius: 0 !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 10px !important; 
        box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
        font-size: 13px !important;
    }

    /* STUDIO MOBILE FIXES - FIXED PHANTOM SPACE */
    #immerse-canvas-container, .immerse-canvas-area, .studio-preview-container {
        display: flex !important;
        flex-direction: column !important;
        min-height: 300px !important; 
        height: 50vh !important; 
        width: 100% !important;
        background-color: #f0f2f5 !important;
        /* REMOVED: visibility: visible !important; opacity: 1 !important; - This was causing phantom space */
    }
    #immerse-stage, canvas.studio-canvas {
        width: 100% !important;
        height: 100% !important;
        display: block !important;
    }
    .immerse-sidebar-controls {
        height: 50vh !important;
        width: 100% !important;
        overflow-y: auto !important;
    }
    
    #btn-export-composition {
        width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        border-radius: 10px !important;
        justify-content: center !important;
    }
    #btn-export-composition .btn-text {
        display: none !important;
    }
    .sidebar-main-actions {
        grid-template-columns: 44px 1fr !important;
    }
    
    /* FIX: Correctly width the mobile uploads bar */
    .mobile-uploads-bar {
              margin-left: 0 !important;
        width: 100% !important;
        padding-left: 0px !important;
        padding-right: 0 !important;
    }
}

/* ----------------------------------------
   Specific override for 1280x800 viewport as requested
   ---------------------------------------- */
@media (width: 1280px) and (height: 800px) {
    .sf-container {
        margin: 0 auto;
        width: 761px;
        float: left;
        margin-left: -84px;
        max-width: 95%;
        padding-top: 25px;
    }

    .left-sidebars-wrapper,
    .left-sidebar,
    .main-sidebar,
    .secondary-sidebar,
    .right-sidebar {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    .page-wrapper main,
    .page-wrapper > main {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}