/**
 * Desktop Single Product Overhaul - Tech Glass Commerce
 * Premium Content Tabs, Reviews Suite & Interactive Zoom Edition
 */

@media screen and (min-width: 1024px) {
    /* Hide mobile-specific layout on desktop */
    .tech-luxury-mobile-layout {
        display: none !important;
    }

    /* Main Desktop Viewport Container */
    .tech-desktop-single-container {
        max-width: 1380px;
        margin: 40px auto 60px auto;
        padding: 0 30px;
        display: grid;
        grid-template-columns: 1.15fr 0.85fr;
        gap: 50px;
        align-items: start;
    }

    /* --- LEFT COLUMN: GALLERY STAGE --- */
    .tech-desktop-gallery-wrap {
        display: grid;
        grid-template-columns: 90px 1fr;
        gap: 20px;
        position: sticky;
        top: 100px;
    }

    .tech-desktop-thumbs-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        max-height: 580px;
        overflow-y: auto;
        scrollbar-width: thin;
    }

    .tech-desktop-thumb-item {
        width: 80px;
        height: 80px;
        border-radius: 12px;
        border: 2px solid transparent;
        overflow: hidden;
        cursor: pointer;
        transition: all 0.25s ease;
        background: rgba(255, 255, 255, 0.6);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    }

    .tech-desktop-thumb-item.active,
    .tech-desktop-thumb-item:hover {
        border-color: #FF4F00;
        transform: translateY(-2px);
    }

    .tech-desktop-thumb-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .tech-desktop-stage-wrap {
        position: relative;
        border-radius: 20px;
        overflow: hidden;
        background: #ffffff;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.8);
        cursor: zoom-in;
    }

    .tech-desktop-main-image {
        width: 100%;
        height: 580px;
        object-fit: cover;
        display: block;
        transition: transform 0.12s ease-out;
        transform-origin: center center;
        will-change: transform, transform-origin;
    }

    .tech-desktop-lightbox-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(8px);
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
        z-index: 10;
    }

    .tech-desktop-lightbox-btn:hover {
        background: #FF4F00;
        color: #ffffff;
        transform: scale(1.08);
    }

    /* --- RIGHT COLUMN: STICKY BUY BOX --- */
    .tech-desktop-buy-box {
        background: rgba(255, 255, 255, 0.75);
        backdrop-filter: blur(16px);
        border-radius: 24px;
        padding: 35px;
        border: 1px solid rgba(255, 255, 255, 0.9);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    }

    .tech-desktop-category-tag {
        display: inline-block;
        padding: 6px 14px;
        border-radius: 30px;
        background: rgba(255, 79, 0, 0.08);
        color: #FF4F00;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
        margin-bottom: 12px;
    }

    .tech-desktop-title {
        font-size: 32px;
        font-weight: 700;
        color: #1a1a1a;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .tech-desktop-price-row {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 20px;
    }

    .tech-desktop-price {
        font-size: 28px;
        font-weight: 700;
        color: #FF4F00;
    }

    /* Live Urgency Pulse Badge */
    .tech-urgency-badge {
        display: flex;
        align-items: center;
        gap: 8px;
        background: #fff4f0;
        border: 1px solid #ffe0d4;
        padding: 10px 16px;
        border-radius: 12px;
        margin-bottom: 25px;
        font-size: 13px;
        color: #d84300;
        font-weight: 600;
    }

    .tech-pulse-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #FF4F00;
        box-shadow: 0 0 0 0 rgba(255, 79, 0, 0.7);
        animation: pulseAnimation 1.6s infinite;
    }

    @keyframes pulseAnimation {
        0% { box-shadow: 0 0 0 0 rgba(255, 79, 0, 0.7); }
        70% { box-shadow: 0 0 0 10px rgba(255, 79, 0, 0); }
        100% { box-shadow: 0 0 0 0 rgba(255, 79, 0, 0); }
    }

    .tech-visualizer-trigger-btn {
        background: none;
        border: none;
        color: #FF4F00;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin-top: 8px;
        text-decoration: underline;
    }

    .tech-desktop-action-row {
        display: grid;
        grid-template-columns: 120px 1fr 1fr;
        gap: 15px;
        margin-top: 30px;
    }

    .tech-qty-box {
        display: flex;
        align-items: center;
        border: 1.5px solid #e2e8f0;
        border-radius: 14px;
        overflow: hidden;
        background: #ffffff;
    }

    .tech-qty-btn {
        width: 36px;
        height: 100%;
        border: none;
        background: #f8fafc;
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
    }

    .tech-qty-input {
        width: 48px;
        text-align: center;
        border: none;
        font-weight: 700;
        font-size: 15px;
    }

    .tech-btn-add-cart,
    .tech-btn-buy-now {
        height: 52px;
        border-radius: 14px;
        font-weight: 700;
        font-size: 15px;
        cursor: pointer;
        transition: all 0.25s ease;
        border: none;
    }

    .tech-btn-add-cart {
        background: #1a1a1a;
        color: #ffffff;
    }

    .tech-btn-add-cart:hover {
        background: #333333;
        transform: translateY(-2px);
    }

    .tech-btn-buy-now {
        background: #FF4F00;
        color: #ffffff;
        box-shadow: 0 8px 20px rgba(255, 79, 0, 0.25);
    }

    .tech-btn-buy-now:hover {
        background: #e04500;
        transform: translateY(-2px);
    }

    .tech-bundle-card {
        margin-top: 35px;
        background: #fdfbf9;
        border: 1px dashed #ffd3c1;
        border-radius: 16px;
        padding: 20px;
    }

    .tech-bundle-title {
        font-size: 15px;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 8px;
    }

    /* ========================================================================== */
    /* 🌟 PREMIUM BELOW-THE-FOLD GLASSMORPHIC TABS HUB                             */
    /* ========================================================================== */
    .tech-desktop-tabs-wrapper {
        max-width: 1380px;
        margin: 40px auto 80px auto;
        padding: 0 30px;
    }

    .tech-tabs-header-pill {
        display: inline-flex;
        background: rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(12px);
        padding: 6px;
        border-radius: 20px;
        border: 1px solid rgba(226, 232, 240, 0.8);
        gap: 8px;
        margin-bottom: 25px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    }

    .tech-tab-link {
        background: transparent;
        border: none;
        padding: 12px 24px;
        border-radius: 14px;
        font-size: 15px;
        font-weight: 700;
        color: #64748b;
        cursor: pointer;
        transition: all 0.25s ease;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .tech-tab-link.active {
        background: #1a1a1a;
        color: #ffffff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .tech-tab-link:hover:not(.active) {
        color: #FF4F00;
        background: rgba(255, 255, 255, 0.9);
    }

    .tech-tab-panel {
        display: none;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(16px);
        border-radius: 24px;
        padding: 40px;
        border: 1px solid rgba(255, 255, 255, 0.9);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
    }

    .tech-tab-panel.active {
        display: block;
        animation: fadeInTab 0.3s ease;
    }

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

    /* --- TAB 1: ARTISAN STORY PANEL --- */
    .tech-story-panel-grid {
        display: grid;
        grid-template-columns: 1fr 340px;
        gap: 40px;
    }

    .tech-artisan-badge-banner {
        display: flex;
        align-items: center;
        gap: 12px;
        background: #f0fdf4;
        border: 1px solid #bbf7d0;
        padding: 14px 20px;
        border-radius: 16px;
        color: #166534;
        font-size: 14px;
        margin-bottom: 25px;
    }

    .tech-craft-card {
        background: #fdfbf9;
        border: 1px solid #f1f5f9;
        padding: 25px;
        border-radius: 20px;
    }

    .tech-craft-card h4 {
        margin: 0 0 10px 0;
        font-size: 16px;
        color: #1a1a1a;
    }

    .tech-craft-card p {
        font-size: 13px;
        color: #64748b;
        line-height: 1.6;
        margin: 0;
    }

    .tech-card-divider {
        border: none;
        border-top: 1px dashed #e2e8f0;
        margin: 18px 0;
    }

    .tech-artisan-meta-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
        font-size: 13px;
    }

    .meta-item {
        display: flex;
        justify-content: space-between;
        color: #475569;
    }

    /* --- TAB 2: SPECS & CARE --- */
    .tech-specs-grid-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .tech-section-subheading {
        font-size: 18px;
        font-weight: 700;
        color: #1a1a1a;
        margin-top: 0;
        margin-bottom: 20px;
    }

    .tech-spec-table {
        background: #ffffff;
        border-radius: 16px;
        border: 1px solid #f1f5f9;
        overflow: hidden;
    }

    .spec-row {
        display: flex;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 1px solid #f1f5f9;
        font-size: 14px;
    }

    .spec-row:last-child {
        border-bottom: none;
    }

    .spec-label {
        color: #64748b;
        font-weight: 600;
    }

    .spec-value {
        color: #1a1a1a;
        font-weight: 700;
    }

    .tech-care-cards-grid {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .care-card {
        display: flex;
        gap: 15px;
        background: #ffffff;
        padding: 16px;
        border-radius: 16px;
        border: 1px solid #f1f5f9;
    }

    .care-icon {
        font-size: 24px;
        background: #fff4f0;
        width: 44px;
        height: 44px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .care-card h5 {
        margin: 0 0 4px 0;
        font-size: 14px;
        color: #1a1a1a;
    }

    .care-card p {
        margin: 0;
        font-size: 12px;
        color: #64748b;
        line-height: 1.5;
    }

    /* --- TAB 3: REVIEWS SUITE OVERHAUL --- */
    .tech-empty-reviews-card {
        text-align: center;
        background: #fdfbf9;
        border: 1px dashed #ffd3c1;
        padding: 35px;
        border-radius: 20px;
        margin-bottom: 35px;
    }

    .empty-stars {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .tech-empty-reviews-card h3 {
        margin: 0 0 6px 0;
        font-size: 20px;
        color: #1a1a1a;
        font-weight: 700;
    }

    .tech-empty-reviews-card p {
        margin: 0;
        color: #64748b;
        font-size: 14px;
    }

    #reviews {
        max-width: 860px;
        margin: 0 auto;
    }

    #reviews #comments h2 {
        font-size: 22px;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 20px;
    }

    #reviews .commentlist {
        list-style: none;
        padding: 0;
        margin: 0 0 40px 0;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    #reviews .commentlist li {
        background: #ffffff;
        border: 1px solid #f1f5f9;
        border-radius: 16px;
        padding: 24px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    }

    #reviews #reply-title {
        font-size: 22px;
        font-weight: 700;
        color: #1a1a1a;
        margin-bottom: 6px;
        display: block;
    }

    #reviews .comment-notes {
        font-size: 13px;
        color: #64748b;
        margin-bottom: 25px;
    }

    #reviews .comment-form-rating {
        margin-bottom: 25px;
        background: #fdfbf9;
        padding: 18px 24px;
        border-radius: 16px;
        border: 1px dashed #ffd3c1;
        display: flex;
        align-items: center;
        gap: 20px;
    }

    #reviews .comment-form-rating label {
        font-weight: 700;
        font-size: 14px;
        color: #1a1a1a;
        margin: 0;
    }

    #reviews .comment-form-rating .stars a {
        color: #FF4F00 !important;
        font-size: 20px;
        margin-right: 6px;
        transition: transform 0.2s ease;
    }

    #reviews .comment-form-rating .stars a:hover {
        transform: scale(1.25);
    }

    #reviews #commentform {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    #reviews .comment-form-rating,
    #reviews .comment-notes,
    #reviews .comment-form-comment,
    #reviews .comment-form-cookies-consent,
    #reviews .form-submit {
        grid-column: span 2;
    }

    #reviews .comment-form-comment label,
    #reviews .comment-form-author label,
    #reviews .comment-form-email label {
        font-size: 13px;
        font-weight: 700;
        color: #334155;
        margin-bottom: 6px;
        display: block;
    }

    #reviews textarea#comment {
        width: 100%;
        min-height: 130px;
        border-radius: 16px;
        border: 1.5px solid #e2e8f0;
        padding: 16px 20px;
        font-family: inherit;
        font-size: 14px;
        color: #1a1a1a;
        background: #ffffff;
        transition: all 0.25s ease;
        box-sizing: border-box;
        resize: vertical;
    }

    #reviews .comment-form-author,
    #reviews .comment-form-email {
        grid-column: span 1;
    }

    #reviews .comment-form-author input,
    #reviews .comment-form-email input {
        width: 100%;
        height: 50px;
        border-radius: 14px;
        border: 1.5px solid #e2e8f0;
        padding: 0 18px;
        font-family: inherit;
        font-size: 14px;
        color: #1a1a1a;
        background: #ffffff;
        transition: all 0.25s ease;
        box-sizing: border-box;
    }

    #reviews textarea#comment:focus,
    #reviews .comment-form-author input:focus,
    #reviews .comment-form-email input:focus {
        outline: none;
        border-color: #FF4F00;
        box-shadow: 0 0 0 4px rgba(255, 79, 0, 0.1);
        background: #ffffff;
    }

    #reviews .comment-form-cookies-consent {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 13px;
        color: #64748b;
    }

    #reviews .comment-form-cookies-consent input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: #FF4F00;
        cursor: pointer;
    }

    #reviews .form-submit #submit {
        background: #FF4F00;
        color: #ffffff;
        border: none;
        padding: 16px 42px;
        border-radius: 16px;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 8px 22px rgba(255, 79, 0, 0.28);
        transition: all 0.25s ease;
        display: inline-block;
    }

    #reviews .form-submit #submit:hover {
        background: #e04500;
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(255, 79, 0, 0.38);
    }

    /* FLOATING STICKY SCROLL BAR */
    .tech-desktop-floating-bar {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%) translateY(120px);
        width: 90%;
        max-width: 1000px;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        padding: 12px 25px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.8);
        display: flex;
        align-items: center;
        justify-content: space-between;
        z-index: 999;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .tech-desktop-floating-bar.visible {
        transform: translateX(-50%) translateY(0);
    }

    /* SIZE VISUALIZER MODAL */
    .tech-size-modal-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(8px);
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .tech-size-modal-backdrop.open {
        opacity: 1;
        pointer-events: auto;
    }

    .tech-size-modal-content {
        background: #ffffff;
        border-radius: 24px;
        width: 90%;
        max-width: 750px;
        max-height: 85vh;
        overflow-y: auto;
        padding: 40px;
        position: relative;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    }

    .tech-modal-close-x {
        position: absolute;
        top: 20px;
        right: 20px;
        background: #f1f5f9;
        border: none;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        font-size: 20px;
        cursor: pointer;
    }
}