/* ============================================
   PRODUCT DETAIL - INTIME ASSIST
   Premium Product Detail Page
   Mobile-first → Desktop configurator layout
   ============================================ */

/* ============================================
   RESET & BASE
   ============================================ */

.product-modal-main.ebay-layout,
.product-modal-main.ebay-layout * {
    box-sizing: border-box;
}

.product-modal-main.ebay-layout .product-modal-gallery-section {
    background: transparent !important;
    padding: 0 !important;
}

.product-modal-main.ebay-layout .product-modal-info-section {
    padding: 0 !important;
}

/* ============================================
   MAIN LAYOUT - Mobile First (single column)
   ============================================ */

.product-modal-main.ebay-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    margin: 0 auto;
    padding: 0 !important;
    background: #fafafa !important;
    align-items: stretch;
}

/* ============================================
   GALLERY SECTION - Mobile (full width)
   ============================================ */

.product-modal-gallery-section.ebay-gallery {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    position: relative;
    overflow: visible;
    overflow-x: hidden;
    background: #f0f0f0;
    z-index: 1;
}

.ebay-gallery-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

/* Fixed back button - always visible on mobile */
.ebay-mobile-back-btn {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 200;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #333;
    font-size: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    -webkit-tap-highlight-color: transparent;
    transition: all 0.15s ease;
}

.ebay-mobile-back-btn:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 1);
}

/* Mobile Top Bar - heart and zoom buttons */
.ebay-mobile-top-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 14px;
    background: #f0f0f0;
    z-index: 12;
}

.ebay-mobile-top-right {
    display: flex;
    gap: 8px;
}

.ebay-mobile-top-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #555;
    font-size: 15px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    -webkit-tap-highlight-color: transparent;
    transition: all 0.15s ease;
}

.ebay-mobile-top-btn:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.95);
}

.ebay-mobile-top-btn .fas.fa-heart,
.ebay-mobile-top-btn .fa-heart.fas {
    color: #ef4444;
}

/* HIDE vertical thumbnails on mobile */
.ebay-thumbnails-vertical {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
}

/* Main Image Container - Full bleed on mobile */
.ebay-main-image-container {
    position: relative;
    background: transparent;
    overflow: visible;
    aspect-ratio: 4 / 3;
    max-height: 55vh;
    max-height: min(55dvh, 420px);
    width: 100%;
    touch-action: pan-y pinch-zoom;
    border: none;
    margin-bottom: -50px;
    z-index: 6;
}

.ebay-main-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.ebay-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.25s ease;
    user-select: none;
    -webkit-user-drag: none;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.1));
}

/* Carousel Dots - Mobile */
.ebay-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 12px 0;
    background: #fafafa;
}

.ebay-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d4d4d4;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ebay-carousel-dot.active {
    background: #1a1a1a;
    width: 26px;
    border-radius: 4px;
}

/* Image Actions - HIDDEN on mobile (replaced by top bar) */
.ebay-image-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: none;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    z-index: 10;
    pointer-events: auto;
}

.ebay-image-action-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #333;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    -webkit-tap-highlight-color: transparent;
}

.ebay-image-action-btn:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 1);
}

.ebay-wishlist-count {
    display: none;
}

/* Navigation Arrows - HIDDEN on mobile */
.ebay-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: none !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    font-size: 13px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.ebay-nav-prev { left: 12px; }
.ebay-nav-next { right: 12px; }

/* Popularity Badge */
.ebay-popularity-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: #1a1a1a;
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Share Section - Hidden on mobile */
.ebay-share-section {
    display: none;
}

.ebay-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 8px 0;
    font-size: 13px;
    color: #999;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.2s ease;
}

.ebay-share-btn:hover {
    color: #1a1a1a;
}

/* ============================================
   PRODUCT INFO SECTION - Mobile
   White card with rounded top corners
   ============================================ */

.product-modal-info-section.ebay-info {
    width: 100% !important;
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    background: #fff !important;
    border-radius: 20px 20px 0 0;
    margin-top: 20px;
    padding-top: 40px;
    position: relative;
    z-index: 5;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.04);
}

.ebay-info .product-modal-info-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px;
    padding: 28px 22px 20px !important;
}

/* Pull handle indicator on mobile */
.ebay-info .product-modal-info-content::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin: 0 auto 20px;
}

/* Product Title */
.product-modal-title.ebay-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    line-height: 1.3;
    margin: 0 0 6px 0 !important;
    letter-spacing: -0.3px;
}

/* Shipping Info - HIDDEN on mobile */
.ebay-shipping-info {
    display: none;
    align-items: center;
    gap: 0;
    font-size: 11px;
    color: #999;
    padding: 0 0 12px;
    border-bottom: 1px solid #f0f0f0;
}

.ebay-shipping-info span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ebay-shipping-info i {
    font-size: 10px;
    color: #bbb;
}

.ebay-separator {
    margin: 0 8px;
    color: #ddd;
    font-size: 8px;
}

/* ============================================
   PRICE SECTION
   ============================================ */

.ebay-price-section {
    padding: 8px 0 16px;
    border-bottom: none;
}

.ebay-price-current {
    font-size: 34px;
    font-weight: 800;
    color: #1a1a1a;
    display: block;
    letter-spacing: -1px;
    line-height: 1.1;
}

.ebay-price-old-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.ebay-price-old {
    font-size: 15px;
    color: #aaa;
    text-decoration: line-through;
}

.ebay-discount-percent {
    font-size: 12px;
    color: #fff;
    font-weight: 700;
    background: #1a1a1a;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.ebay-price-details-btn {
    display: none;
}

/* ============================================
   TRUST BADGES
   ============================================ */

.ebay-trust-badges {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 0;
    padding: 16px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.ebay-trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0;
    border-radius: 0;
    border: none;
    position: relative;
    overflow: hidden;
    flex: 1;
    background: transparent;
}

.ebay-trust-badge i {
    font-size: 16px;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 50%;
    color: #555;
    text-align: center;
}

.ebay-trust-badge-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.ebay-trust-badge-title {
    font-size: 11px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.2;
    text-align: center;
}

.ebay-trust-badge-desc {
    display: none;
}

/* ============================================
   CONDITION SECTION
   ============================================ */

.ebay-condition-section {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 0;
    border-top: none;
    border-bottom: 1px solid #f0f0f0;
}

.ebay-condition-label {
    font-size: 13px;
    color: #888;
}

.ebay-condition-value {
    font-size: 13px;
    font-weight: 600;
    color: #2e7d32;
    background: #e8f5e9;
    padding: 2px 10px;
    border-radius: 20px;
}

.ebay-condition-info {
    color: #ccc;
    font-size: 12px;
    cursor: help;
}

/* ============================================
   DESCRIPTION SECTION
   ============================================ */

.ebay-description-section {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.ebay-description-text {
    font-size: 14px;
    color: #444;
    line-height: 1.65;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ebay-read-more-btn {
    background: none;
    border: none;
    color: #1a1a1a;
    font-size: 13px;
    cursor: pointer;
    padding: 10px 0 0;
    font-weight: 700;
    display: inline-block;
    letter-spacing: 0.2px;
    -webkit-tap-highlight-color: transparent;
}

/* Stock Section */
.ebay-stock-section {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    flex-wrap: wrap;
}

/* ============================================
   QUANTITY SECTION
   ============================================ */

.ebay-quantity-section {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0 16px;
    border-bottom: 1px solid #f0f0f0;
}

.ebay-quantity-label {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 600;
}

.ebay-quantity-selector {
    display: flex;
    align-items: center;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.ebay-qty-btn {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 11px;
    transition: background 0.15s ease;
}

.ebay-qty-btn:active {
    background: #f0f0f0;
}

.ebay-qty-input {
    width: 40px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    -moz-appearance: textfield;
    background: transparent;
}

.ebay-qty-input::-webkit-outer-spin-button,
.ebay-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.ebay-sold-count {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 600;
    background: none;
    padding: 0;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
}

/* ============================================
   ACTION BUTTONS - Hidden on mobile
   ============================================ */

.ebay-actions-section {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 20px 0;
}

.ebay-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.2px;
}

.ebay-btn-primary {
    background: #1a1a1a;
    color: white;
    border: none;
}

.ebay-btn-primary:hover {
    background: #333;
}

.ebay-btn-secondary {
    background: #fff;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
}

.ebay-btn-secondary:hover {
    background: #f5f5f5;
}

.ebay-btn-tertiary {
    background: #f5f5f5;
    color: #555;
    border: 1.5px solid #e0e0e0;
}

.ebay-btn-tertiary:hover {
    background: #eee;
}

/* WhatsApp */
.ebay-whatsapp-section {
    display: none;
    padding-top: 4px;
}

.ebay-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: transparent;
    color: #25D366;
    border: 1.5px solid #c8e6c9;
    font-size: 15px;
    font-weight: 700;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ebay-whatsapp-btn:hover {
    background: #25D366;
    color: #fff;
    border-color: #25D366;
}

.ebay-whatsapp-btn i {
    font-size: 18px;
}

/* ============================================
   ITEM SPECIFICS - Accordion on Mobile
   ============================================ */

.ebay-item-specifics-section {
    background: #fff;
    border-top: 1px solid #eee;
    margin-top: 8px;
    padding: 0 18px;
}

.ebay-about-tabs {
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.ebay-tab-btn {
    background: none;
    border: none;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    cursor: pointer;
    border-bottom: none;
    margin-bottom: 0;
    flex: 1;
    text-align: left;
}

.ebay-accordion-arrow {
    font-size: 12px;
    color: #aaa;
    transition: transform 0.3s ease;
    padding: 16px 4px;
}

.ebay-about-tabs.expanded .ebay-accordion-arrow {
    transform: rotate(180deg);
}

.ebay-about-content {
    padding: 0;
    max-width: 100%;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.ebay-about-tabs.expanded + .ebay-about-content {
    max-height: 3000px;
    padding: 12px 0 24px;
}

.ebay-item-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #aaa;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 6px;
}

.ebay-meta-note {
    font-style: italic;
}

.ebay-item-number strong {
    font-weight: 600;
    color: #555;
}

.ebay-specs-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 12px 0 12px;
}

.ebay-specs-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px;
    color: #aaa;
    font-size: 13px;
}

.ebay-specs-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #e5e5e5;
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: pdpSpin 0.7s linear infinite;
}

@keyframes pdpSpin {
    to { transform: rotate(360deg); }
}

.ebay-specs-grid {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #f0f0f0;
}

.ebay-spec-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    gap: 12px;
}

.ebay-spec-item:nth-child(even) {
    padding-left: 0;
    border-left: none;
}

.ebay-spec-label {
    font-size: 13px;
    color: #999;
    min-width: 110px;
    flex-shrink: 0;
}

.ebay-spec-value {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 600;
    word-break: break-word;
}

.ebay-spec-item.seller-notes {
    border-left: none;
    padding-left: 0;
}

.ebay-spec-item.seller-notes .ebay-spec-value {
    font-weight: 400;
    font-style: italic;
    color: #777;
}

.ebay-specs-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px;
    color: #aaa;
    font-size: 13px;
}

.ebay-specs-error i {
    font-size: 20px;
    color: #e53935;
}

.ebay-retry-btn {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ebay-retry-btn:hover {
    background: #333;
}

.ebay-retry-btn:active {
    transform: scale(0.97);
}

/* ============================================
   MOBILE STICKY CTA BAR
   ============================================ */

.product-modal-actions-mobile {
    display: -webkit-flex !important;
    display: flex !important;
    position: relative;
    background: #fff;
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 8px));
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.12);
    z-index: 100;
    border-top: 1px solid #e5e5e5;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
    width: 100%;
}

.mobile-cta-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px 4px;
}

.mobile-cta-price > div {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.mobile-cta-price-value {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.mobile-cta-price-label {
    font-size: 11px;
    color: #999;
    font-weight: 500;
}

.mobile-actions-row {
    display: flex;
    gap: 8px;
    width: 100%;
    align-items: center;
}

.mobile-action-icon {
    width: 46px;
    height: 46px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 13px;
    cursor: pointer;
    color: #555;
    font-size: 17px;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.mobile-action-icon:active {
    transform: scale(0.93);
    background: #f5f5f5;
}

.mobile-action-icon .fas.fa-heart,
.mobile-action-icon .fa-heart.fas {
    color: #ef4444;
}

.mobile-btn-cart,
.mobile-btn-buy {
    flex: 1;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 13px;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
    letter-spacing: 0.2px;
}

.mobile-btn-cart:active,
.mobile-btn-buy:active {
    transform: scale(0.97);
}

.mobile-btn-cart {
    background: #fff;
    color: #1a1a1a;
    border: 1.5px solid #1a1a1a;
}

.mobile-btn-buy {
    background: #1a1a1a;
    color: #fff;
}

/* ============================================
   RELATED PRODUCTS
   ============================================ */

.product-modal-related {
    border-top: 1px solid #eee;
    margin-top: 8px;
    padding: 20px 18px;
    background: #fff;
}

.product-modal-related .related-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 14px;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* ============================================
   FULLSCREEN IMAGE VIEWER
   ============================================ */

.ebay-image-fullscreen {
    display: none;
    position: fixed;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    height: auto;
    background: rgba(0, 0, 0, 0.97);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    color-scheme: light dark;
    border-radius: 20px;
    overflow: hidden;
}

.ebay-image-fullscreen.active {
    display: flex;
}

.ebay-image-fullscreen img {
    max-width: 95%;
    max-height: 85%;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.ebay-fullscreen-close {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 16px;
    transition: background 0.2s ease;
    z-index: 10001;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ebay-fullscreen-close:active {
    background: rgba(255, 255, 255, 0.25);
}

.ebay-fullscreen-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 16px;
    transition: background 0.2s ease;
    z-index: 10001;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ebay-fullscreen-nav:active {
    background: rgba(255, 255, 255, 0.25);
}

.ebay-fullscreen-prev { left: 12px; }
.ebay-fullscreen-next { right: 12px; }

.ebay-fullscreen-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10001;
}

.ebay-fullscreen-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ebay-fullscreen-dot.active {
    background: #fff;
    width: 18px;
    border-radius: 3px;
}

/* ============================================
   SECTION ORDER (flexbox order) - Mobile
   ============================================ */

.product-modal-title.ebay-title { order: 1; }
.ebay-review-placeholder { order: 2; }
.ebay-price-section { order: 3; }
.ebay-quantity-section { order: 4; }
.ebay-trust-badges { order: 5; }
.ebay-stock-section { order: 6; }
.ebay-condition-section { order: 7; }
.ebay-description-section { order: 8; }
.ebay-shipping-info { order: 9; }
.ebay-actions-section { order: 10; }
.ebay-whatsapp-section { order: 11; }
.ebay-share-section { order: 12; }

/* Hide inline share on mobile (uses gallery share) */
.ebay-share-inline-btn,
.ebay-review-separator {
    display: none;
}

/* ============================================
   REVIEW PLACEHOLDER
   ============================================ */

.ebay-review-placeholder {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 0 4px;
}

.ebay-review-stars {
    display: flex;
    gap: 2px;
}

.ebay-review-stars i {
    font-size: 14px;
    color: #f5a623;
}

.ebay-review-link {
    font-size: 13px;
    color: #999;
    text-decoration: underline;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

/* ============================================
   URGENCY & LOW STOCK
   ============================================ */

.ebay-stock-status.low-stock {
    color: #e65100;
    font-weight: 600;
}

.ebay-urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #d32f2f;
    background: #fff5f5;
    padding: 4px 10px;
    border-radius: 6px;
    animation: pulseUrgency 2s ease-in-out infinite;
}

@keyframes pulseUrgency {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}


/* ============================================
   =============================================
   RESPONSIVE - TABLET & DESKTOP (768px+)
   PREMIUM CONFIGURATOR LAYOUT
   =============================================
   ============================================ */

@media (min-width: 768px) {

    /* === MAIN TWO-PANEL LAYOUT === */
    .product-modal-main.ebay-layout {
        flex-direction: row !important;
        gap: 0 !important;
        padding: 0 !important;
        max-width: 100%;
        margin: 0 auto;
        background: #f7f7f7 !important;
        align-items: stretch;
        min-height: 80vh;
    }

    /* ============================
       LEFT PANEL - Gallery (58%)
       Gray background with header above image
       ============================ */

    .product-modal-gallery-section.ebay-gallery {
        width: 58% !important;
        flex-shrink: 0;
        position: relative;
        align-self: stretch;
        background: #f7f7f7 !important;
        border-radius: 0;
        overflow: visible;
        padding: 0 !important;
        display: flex;
        flex-direction: column;
    }

    /* Gallery inner - image + thumbnails below */
    .ebay-gallery-inner {
        flex-direction: column;
        gap: 0;
        flex: 1;
        display: flex;
        padding: 12px 32px 0;
    }

    /* Thumbnails ABOVE image using flex order */
    .ebay-thumbnails-vertical {
        display: flex !important;
        visibility: visible !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        position: relative !important;
        flex-direction: row;
        gap: 8px;
        flex-shrink: 0;
        max-height: none;
        overflow-x: auto !important;
        scrollbar-width: none;
        padding: 0 0 12px;
        justify-content: center;
        order: 1;
    }

    .ebay-thumbnails-vertical::-webkit-scrollbar {
        display: none;
    }

    /* Main image - order 2 (below thumbnails), overflows the gray bg */
    .ebay-main-image-container {
        aspect-ratio: auto;
        border-radius: 0;
        border: none;
        max-height: none;
        cursor: zoom-in;
        background: transparent;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 340px;
        position: relative;
        order: 2;
        margin-bottom: -100px;
        z-index: auto;
        overflow: hidden;
    }

    .ebay-main-image {
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }

    .ebay-main-image img {
        max-height: 420px;
        max-width: 100%;
        object-fit: contain;
        filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.08));
        transition: transform 0.3s ease, opacity 0.25s ease;
    }

    .ebay-main-image img:hover {
        transform: scale(1.02);
    }

    /* Hide mobile top bar and back button on desktop */
    .ebay-mobile-top-bar {
        display: none !important;
    }

    .ebay-mobile-back-btn {
        display: none !important;
    }

    /* Popularity badge - hide on desktop */
    .ebay-popularity-badge {
        display: none !important;
    }

    /* Image actions - SHOW on desktop */
    .ebay-image-actions {
        display: flex;
        top: 8px;
        right: 8px;
        gap: 4px;
    }

    .ebay-image-action-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        background: transparent;
        box-shadow: none;
        font-size: 16px;
        color: #bbb;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .ebay-image-action-btn:hover {
        background: rgba(0, 0, 0, 0.04);
        color: #1a1a1a;
        box-shadow: none;
    }

    /* Navigation arrows */
    .ebay-nav-arrow {
        display: flex !important;
        opacity: 0;
        transition: opacity 0.2s ease, background 0.2s ease;
        background: rgba(255, 255, 255, 0.85);
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
        width: 38px;
        height: 38px;
        font-size: 12px;
        color: #666;
        border: 1px solid rgba(0, 0, 0, 0.06);
    }

    .ebay-main-image-container:hover .ebay-nav-arrow {
        opacity: 1;
    }

    .ebay-nav-arrow:hover {
        background: #fff;
        color: #1a1a1a;
    }

    .ebay-nav-prev { left: 16px; }
    .ebay-nav-next { right: 16px; }

    /* Thumbnail styles */
    .ebay-thumbnails-vertical .product-modal-thumb,
    .ebay-thumbnails-vertical .ebay-thumb {
        width: 56px;
        height: 56px;
        border-radius: 8px;
        border: 2px solid transparent;
        overflow: hidden;
        cursor: pointer;
        transition: all 0.2s ease;
        background: #eee;
        flex-shrink: 0;
    }

    .ebay-thumbnails-vertical .product-modal-thumb:hover,
    .ebay-thumbnails-vertical .ebay-thumb:hover {
        border-color: #ccc;
    }

    .ebay-thumbnails-vertical .product-modal-thumb.active,
    .ebay-thumbnails-vertical .ebay-thumb.active {
        border-color: #1a1a1a;
        background: #fff;
    }

    .ebay-thumbnails-vertical .product-modal-thumb img,
    .ebay-thumbnails-vertical .ebay-thumb img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 4px;
    }

    /* Hide carousel dots on desktop */
    .ebay-carousel-dots {
        display: none;
    }

    /* Share section - HIDE from gallery on desktop */
    .ebay-share-section {
        display: none;
    }

    /* Share inline button - next to reviews */
    .ebay-review-separator {
        color: #ddd;
        font-size: 12px;
    }

    .ebay-share-inline-btn {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        background: none;
        border: none;
        color: #999;
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
        padding: 0;
        transition: color 0.2s ease;
    }

    .ebay-share-inline-btn:hover {
        color: #1a1a1a;
    }

    .ebay-share-inline-btn i {
        font-size: 11px;
    }

    /* ============================
       RIGHT PANEL - Info (42%)
       White card, scrollable, configurator style
       ============================ */

    .product-modal-info-section.ebay-info {
        flex: 1;
        border-radius: 0;
        margin-top: 0;
        padding-top: 0;
        box-shadow: none;
        background: #fff !important;
        border-left: 1px solid #eee;
        max-height: 100vh;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #ddd transparent;
    }

    .product-modal-info-section.ebay-info::-webkit-scrollbar {
        width: 4px;
    }

    .product-modal-info-section.ebay-info::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 4px;
    }

    .ebay-info .product-modal-info-content {
        padding: 36px 32px 40px !important;
        gap: 0;
        min-height: 100%;
    }

    /* Remove pull handle on desktop */
    .ebay-info .product-modal-info-content::before {
        display: none;
    }

    /* === SECTION ORDER - Buttons always visible === */
    .product-modal-title.ebay-title { order: 1; }
    .ebay-review-placeholder { order: 2; }
    .ebay-price-section { order: 3; }
    .ebay-quantity-section { order: 4; }
    .ebay-actions-section { order: 5; }
    .ebay-whatsapp-section { order: 6; }
    .ebay-shipping-info { order: 7; }
    .ebay-condition-section { order: 8; }
    .ebay-stock-section { order: 9; }
    .ebay-trust-badges { order: 10; }
    .ebay-description-section { order: 11; }

    /* === TITLE === */
    .product-modal-title.ebay-title {
        font-size: 21px !important;
        font-weight: 600 !important;
        letter-spacing: -0.3px;
        color: #1a1a1a !important;
        line-height: 1.35;
        margin-bottom: 4px !important;
        padding-bottom: 0;
    }

    /* === REVIEWS === */
    .ebay-review-placeholder {
        padding: 0 0 12px;
        margin-bottom: 0;
    }

    .ebay-review-stars i {
        font-size: 12px;
        color: #1a1a1a;
    }

    .ebay-review-link {
        font-size: 12px;
        color: #bbb;
    }

    /* === PRICE === */
    .ebay-price-section {
        padding: 12px 0 16px;
        border-top: 1px solid #f0f0f0;
        border-bottom: none;
    }

    .ebay-price-current {
        font-size: 28px;
        font-weight: 800;
        letter-spacing: -0.8px;
        color: #1a1a1a;
    }

    .ebay-price-old-wrapper {
        margin-top: 4px;
    }

    .ebay-price-old {
        font-size: 14px;
        color: #bbb;
    }

    .ebay-discount-percent {
        background: #1a1a1a;
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        padding: 2px 8px;
        border-radius: 4px;
    }

    /* === SHIPPING INFO === */
    .ebay-shipping-info {
        display: flex !important;
        margin: 0;
        padding: 14px 16px;
        background: #f9f9f9;
        border-radius: 10px;
        border: 1px solid #f0f0f0;
        font-size: 11px;
        color: #888;
        margin-bottom: 16px;
    }

    .ebay-separator {
        display: inline;
    }

    /* === CONDITION - Card Block === */
    .ebay-condition-section {
        padding: 14px 16px;
        border: 1px solid #f0f0f0;
        border-radius: 10px;
        background: #fff;
        margin-bottom: 8px;
    }

    .ebay-condition-label {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        color: #999;
        font-weight: 600;
    }

    .ebay-condition-value {
        background: transparent;
        color: #1a1a1a;
        font-size: 14px;
        font-weight: 600;
        padding: 0;
        border-radius: 0;
    }

    .ebay-condition-info {
        color: #ddd;
    }

    /* === STOCK === */
    .ebay-stock-section {
        padding: 4px 0 12px;
    }

    .ebay-stock-status {
        font-size: 13px;
        color: #2e7d32;
        font-weight: 500;
    }

    .ebay-urgency-badge {
        background: transparent;
        color: #aaa;
        font-size: 11px;
        animation: none;
        padding: 0;
    }

    /* === DESCRIPTION - Card Block === */
    .ebay-description-section {
        padding: 16px;
        border: 1px solid #f0f0f0;
        border-radius: 10px;
        background: #fafafa;
        margin-bottom: 16px;
    }

    .ebay-description-text {
        font-size: 13px;
        color: #666;
        line-height: 1.65;
    }

    .ebay-read-more-btn {
        color: #1a1a1a;
        font-weight: 600;
        font-size: 12px;
    }

    /* === QUANTITY - Card Block === */
    .ebay-quantity-section {
        padding: 12px 16px;
        border: 1px solid #f0f0f0;
        border-radius: 10px;
        background: #fff;
        margin-bottom: 8px;
    }

    .ebay-quantity-label {
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        color: #999;
        font-weight: 600;
    }

    .ebay-quantity-selector {
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        background: #fafafa;
    }

    .ebay-qty-btn {
        color: #555;
        width: 40px;
        height: 40px;
    }

    .ebay-qty-input {
        font-size: 15px;
        font-weight: 600;
        width: 44px;
        height: 40px;
    }

    .ebay-sold-count {
        font-size: 11px;
        color: #bbb;
        font-weight: 500;
    }

    /* === TRUST BADGES - Compact Row === */
    .ebay-trust-badges {
        padding: 16px 0;
        border-top: none;
        border-bottom: none;
        gap: 0;
        margin-bottom: 8px;
    }

    .ebay-trust-badge i {
        width: 30px;
        height: 30px;
        font-size: 12px;
        background: #f5f5f5;
        color: #999;
        border: 1px solid #eee;
    }

    .ebay-trust-badge-title {
        font-size: 9px;
        color: #aaa;
        font-weight: 600;
        letter-spacing: 0.2px;
    }

    /* === ACTION BUTTONS === */
    .ebay-actions-section {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 4px 0 8px;
    }

    .ebay-btn {
        border-radius: 10px;
        font-size: 14px;
        font-weight: 600;
        padding: 15px 24px;
        letter-spacing: 0.2px;
    }

    /* Primary - solid dark (like "Finish Configuration") */
    .ebay-btn-primary {
        background: #1a1a1a;
        color: #fff;
        border: none;
        box-shadow: none;
    }

    .ebay-btn-primary:hover {
        background: #2d2d2d;
    }

    .ebay-btn-primary:active {
        transform: scale(0.98);
    }

    /* Secondary - outline */
    .ebay-btn-secondary {
        background: #fff;
        color: #1a1a1a;
        border: 1.5px solid #ddd;
    }

    .ebay-btn-secondary:hover {
        background: #fafafa;
        border-color: #bbb;
    }

    /* Tertiary - hidden on desktop (wishlist already on image) */
    .ebay-btn-tertiary {
        display: none;
    }

    /* WhatsApp */
    .ebay-whatsapp-section {
        display: block;
        padding-top: 0;
        padding-bottom: 16px;
        border-bottom: 1px solid #f0f0f0;
        margin-bottom: 8px;
    }

    .ebay-whatsapp-btn {
        background: transparent;
        color: #25D366;
        border: 1.5px solid #d4edda;
        border-radius: 10px;
        font-size: 13px;
        font-weight: 600;
        padding: 13px 20px;
    }

    .ebay-whatsapp-btn:hover {
        background: #25D366;
        color: #fff;
        border-color: #25D366;
    }

    /* Hide mobile CTA bar */
    .product-modal-actions-mobile {
        display: none !important;
    }

    /* === SPECS SECTION - must cover gallery below === */
    .ebay-item-specifics-section {
        padding: 0 32px;
        border-top: 1px solid #eee;
        background: #fff;
        position: relative;
        z-index: 10;
        margin-top: 100px;
    }

    .ebay-about-content {
        max-height: none !important;
        overflow: visible;
        padding: 20px 0 32px;
    }

    .ebay-accordion-arrow {
        display: none;
    }

    .ebay-tab-btn {
        font-size: 13px;
        font-weight: 600;
        border-bottom: 2px solid #1a1a1a;
        color: #1a1a1a;
        padding: 20px 0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .ebay-specs-title {
        font-size: 12px;
        font-weight: 600;
        color: #999;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .ebay-specs-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        border-top: 1px solid #f0f0f0;
    }

    .ebay-spec-item {
        padding: 12px 0;
        border-bottom: 1px solid #f5f5f5;
    }

    .ebay-spec-item:nth-child(even) {
        padding-left: 16px;
        border-left: 1px solid #f0f0f0;
    }

    .ebay-spec-label {
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #bbb;
        font-weight: 600;
    }

    .ebay-spec-value {
        font-size: 13px;
        color: #1a1a1a;
        font-weight: 500;
    }

    /* === RELATED PRODUCTS === */
    .related-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .product-modal-related {
        padding: 32px;
        border-top: 1px solid #eee;
        background: #fff;
        position: relative;
        z-index: 10;
    }

    .product-modal-related .related-section-title {
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #999;
    }
}


/* ============================================
   RESPONSIVE - DESKTOP (1024px+)
   ============================================ */

@media (min-width: 1024px) {
    .product-modal-gallery-section.ebay-gallery {
        width: 60% !important;
    }

    .ebay-gallery-inner {
        padding: 12px 40px 0;
    }

    .ebay-main-image img {
        max-height: 480px;
    }

    .ebay-thumbnails-vertical .product-modal-thumb,
    .ebay-thumbnails-vertical .ebay-thumb {
        width: 64px;
        height: 64px;
    }

    .ebay-share-section {
        padding: 12px 40px 24px;
    }

    .ebay-info .product-modal-info-content {
        padding: 36px 36px 44px !important;
    }

    .ebay-item-specifics-section {
        padding: 0 40px;
    }

    .related-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-modal-related {
        padding: 36px 40px;
    }
}


/* ============================================
   RESPONSIVE - LARGE DESKTOP (1440px+)
   ============================================ */

@media (min-width: 1440px) {
    .ebay-gallery-inner {
        padding: 16px 56px 0;
    }

    .ebay-main-image img {
        max-height: 540px;
    }

    .ebay-thumbnails-vertical {
        gap: 10px;
    }

    .ebay-thumbnails-vertical .product-modal-thumb,
    .ebay-thumbnails-vertical .ebay-thumb {
        width: 72px;
        height: 72px;
    }

    .ebay-share-section {
        padding: 12px 56px 28px;
    }

    .ebay-info .product-modal-info-content {
        padding: 48px 44px 52px !important;
    }

    .product-modal-title.ebay-title {
        font-size: 25px !important;
    }

    .ebay-price-current {
        font-size: 32px;
    }

    .ebay-item-specifics-section {
        padding: 0 56px;
    }

    .product-modal-related {
        padding: 40px 56px;
    }
}


/* ============================================
   RESPONSIVE - SMALL TABLET (600px)
   ============================================ */

@media (max-width: 600px) {
    .ebay-trust-badges {
        gap: 4px;
    }
    .product-modal-related {
        padding: 16px 12px;
    }
}


/* ============================================
   RESPONSIVE - PHONE (480px)
   ============================================ */

@media (max-width: 480px) {
    .product-modal-main.ebay-layout {
        padding: 12px !important;
    }
    .ebay-info-section {
        padding: 0 12px !important;
    }
    .ebay-item-specifics-section {
        padding: 0 12px;
    }
    .related-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}


/* ============================================
   SMALL MOBILE (380px and below)
   ============================================ */

@media (max-width: 380px) {
    .ebay-trust-badges {
        gap: 2px;
    }

    .ebay-trust-badge i {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .ebay-trust-badge-title {
        font-size: 10px;
    }

    .product-modal-title.ebay-title {
        font-size: 19px !important;
    }

    .ebay-price-current {
        font-size: 28px;
    }

    .mobile-btn-cart,
    .mobile-btn-buy {
        height: 44px;
        font-size: 13px;
    }

    .ebay-image-actions {
        top: 8px;
        right: 8px;
        gap: 6px;
    }

    .ebay-image-action-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        font-size: 14px;
    }

    .ebay-popularity-badge {
        bottom: 10px;
        left: 10px;
        font-size: 9px;
        padding: 4px 10px;
    }

    .mobile-cta-price-value {
        font-size: 18px;
    }

    .ebay-info .product-modal-info-content {
        padding: 18px 14px 14px !important;
    }
}


/* ============================================
   CROSS-BROWSER COMPATIBILITY
   ============================================ */

.product-modal-main.ebay-layout,
.ebay-main-image-container {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.product-modal-scroll {
    -webkit-overflow-scrolling: touch;
}

@supports not (gap: 16px) {
    .ebay-info .product-modal-info-content > * {
        margin-bottom: 14px;
    }
    .ebay-info .product-modal-info-content > *:last-child {
        margin-bottom: 0;
    }
    .mobile-actions-row > * + * {
        margin-left: 8px;
    }
    .ebay-trust-badges > * + * {
        margin-left: 4px;
    }
    .ebay-review-placeholder > * + * {
        margin-left: 8px;
    }
    .ebay-review-stars > * + * {
        margin-left: 2px;
    }
}

@supports not (aspect-ratio: 1 / 1) {
    .ebay-main-image-container {
        height: 0;
        padding-bottom: 75%;
        max-height: 55vh;
        position: relative;
    }
    .ebay-main-image-container .ebay-main-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

@media screen and (max-width: 768px) {
    .product-modal-actions-mobile {
        position: relative !important;
        width: 100% !important;
        flex-shrink: 0 !important;
    }
}

.ebay-main-image img,
.ebay-thumbnails-vertical img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.ebay-carousel-dot {
    min-width: 10px;
    min-height: 10px;
    -webkit-tap-highlight-color: transparent;
}

.ebay-qty-btn {
    min-width: 44px;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
}

.mobile-btn-cart,
.mobile-btn-buy {
    min-height: 46px;
    -webkit-tap-highlight-color: transparent;
}

.ebay-trust-badge i {
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    line-height: 1;
}
