/* ============================================
   WLS Auction Frontend - Production Styles
   Modern, responsive auction page design
   RTL Support for Hebrew
   ============================================ */

/* ============================================
   1. CONTAINER & LAYOUT - RTL SUPPORT
   ============================================ */

   .wls-auction-page {
    min-height: 100vh;
    background: #f8f9fa;
    padding: 0;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    direction: rtl;
}

.wls-auction-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* ============================================
   2. AUCTION PAGE HEADER - LUXURY DESIGN
   ============================================ */

.wls-auction-page-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 40px 60px;
    margin: -30px -20px 40px -20px;
    border-bottom: 4px solid #d4af37;
    position: relative;
    overflow: hidden;
}

.wls-auction-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(212, 175, 55, 0.03) 10px,
        rgba(212, 175, 55, 0.03) 20px
    );
    pointer-events: none;
}

.wls-auction-main-title {
    margin: 0 0 20px 0;
    font-size: 42px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.wls-auction-main-title .fa-gavel {
    font-size: 48px;
    color: #d4af37;
    animation: hammer-swing 2s ease-in-out infinite;
}

@keyframes hammer-swing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

.wls-auction-main-title .auction-label {
    color: #ff3333;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.wls-auction-main-title .product-name {
    color: #ffffff;
    font-weight: 700;
}

.wls-header-countdown {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 50px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 1;
}

.wls-header-countdown .fa-clock {
    font-size: 24px;
    color: #d4af37;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.wls-header-countdown .countdown-label {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

.wls-countdown-timer-header {
    color: #d4af37;
    font-size: 28px;
    font-weight: 900;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

@media (max-width: 768px) {
    .wls-auction-page-header {
        padding: 30px 20px;
        margin: -30px -20px 30px -20px;
    }

    .wls-auction-main-title {
        font-size: 28px;
    }

    .wls-auction-main-title .fa-gavel {
        font-size: 32px;
    }

    .wls-header-countdown {
        padding: 12px 20px;
    }

    .wls-countdown-timer-header {
        font-size: 20px;
    }
}

/* ============================================
   2A. HIDE STOCK NOTIFICATION FORM
   ============================================ */

.cwginstock-subscribe-form {
    display: none !important;
}

/* ============================================
   2B. INLINE AUCTION TITLE - COMPACT & ELEGANT
   ============================================ */

.wls-auction-inline-title {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.wls-auction-inline-title .auction-prefix {
    color: #000000;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wls-auction-inline-title .auction-prefix .fa-gavel {
    color: #ff3333;
    font-size: 1em;
    animation: hammer-swing-inline 2s ease-in-out infinite;
}

@keyframes hammer-swing-inline {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-12deg); }
    75% { transform: rotate(12deg); }
}

.wls-auction-inline-title .auction-product-name {
    color: #ff3333;
    font-weight: 800;
}

/* ============================================
   3. AUCTION BOX - LUXURY REDESIGN
   ============================================ */
span.wls-timer-text {
    margin: auto;
}

.wls-header-right {
    max-width: fit-content;
}
#wls-auction-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    border: 3px solid #e0383f;
    border-radius: 20px;
    padding: 20px 7%;
    margin-top: 25px;
    box-shadow:
        0 20px 60px rgba(212, 175, 55, 0.2),
        0 0 0 1px rgba(212, 175, 55, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.8);
    position: relative;
    overflow: hidden;
    background: #f4f3ef;
}

#wls-auction-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.wls-auction-countdown {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin: 0 0 40px 0;
    color: #1a1a1a;
    position: relative;
    z-index: 1;
}

.wls-countdown-timer {
    display: inline-block;
    background: linear-gradient(135deg, #ff3333 0%, #cc0000 100%);
    color: white;
    padding: 10px 30px 7px;
    margin: auto;
    border-radius: 50px;
    font-size: 36px;
    font-weight: 900;
    font-family: 'Courier New', monospace;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    box-shadow:
        0 10px 30px rgba(255, 51, 51, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.2);
    /* margin-top: 15px; */
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow:
            0 10px 30px rgba(255, 51, 51, 0.4),
            inset 0 1px 0 rgba(255,255,255,0.2);
    }
    50% {
        box-shadow:
            0 10px 40px rgba(255, 51, 51, 0.6),
            0 0 30px rgba(255, 51, 51, 0.4),
            inset 0 1px 0 rgba(255,255,255,0.2);
    }
}

.wls-current-price {
    text-align: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 50px 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.wls-price-value {
    display: block;
    font-size: 72px;
    font-weight: 900;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    text-shadow:
        0 0 20px rgba(212, 175, 55, 0.5),
        2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1;
}

.wls-price-label {
    display: block;
    font-size: 24px;
    color: #d4af37;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.wls-join-auction-section {
    text-align: center;
    margin: 40px 0;
    position: relative;
    z-index: 1;
}

.wls-join-btn {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 800;
    padding: 25px 60px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow:
        0 15px 40px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.5);
    position: relative;
}

.wls-join-btn:hover {
    opacity: 0.95;
}

.auction-bid-history {
    background: rgba(26, 26, 26, 0.03);
    padding: 30px;
    border-radius: 15px;
    position: relative;
    z-index: 1;
}

.auction-bid-history h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #d4af37;
    padding-bottom: 10px;
}

@media (max-width: 768px) {
    #wls-auction-section {
        padding: 30px 20px;
    }

    .wls-auction-countdown {
        font-size: 24px;
    }

    .wls-countdown-timer {
        font-size: 28px;
        padding: 12px 30px;
    }

    .wls-price-value {
        font-size: 40px;
    }

    .wls-join-btn {
        font-size: 18px;
        padding: 20px 40px;
    }
}

/* ============================================
   4. BREADCRUMB & NAVIGATION
   ============================================ */

.wls-auction-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.wls-auction-breadcrumb a {
    color: #0073aa;
    text-decoration: none;
}

.wls-auction-breadcrumb a:hover {
    text-decoration: underline;
}

.wls-auction-breadcrumb .separator {
    margin: 0 8px;
    color: #999;
}

/* ============================================
   3. MAIN LAYOUT - PRODUCT PAGE STYLE
   ============================================ */

.wls-auction-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .wls-auction-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ============================================
   4. PRODUCT GALLERY
   ============================================ */

.wls-auction-gallery {
    position: sticky;
    top: 20px;
}

.wls-gallery-main {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.wls-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
}

.wls-gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.wls-gallery-thumbs .thumb {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.wls-gallery-thumbs .thumb:hover,
.wls-gallery-thumbs .thumb.active {
    border-color: #0073aa;
    transform: scale(1.05);
}

.wls-gallery-thumbs .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wls-gallery-placeholder {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
}

/* ============================================
   5. PRODUCT INFO & BIDDING
   ============================================ */

.wls-auction-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.wls-auction-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .wls-auction-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .wls-auction-container {
        padding: 20px 15px;
    }
}

/* ============================================
   17. PRODUCT TABS
   ============================================ */

.wls-auction-tabs {
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
    padding-top: 30px;
}

.tab-headers {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.tab-header {
    padding: 12px 24px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-header:hover {
    color: #333;
}

.tab-header.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

.tab-panes {
    min-height: 200px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.product-description {
    line-height: 1.6;
    color: #555;
}

.product-description p {
    margin-bottom: 15px;
}

.product-attributes {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.product-attributes th,
.product-attributes td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #f0f0f0;
}

.product-attributes th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    width: 30%;
}

.product-attributes td {
    color: #666;
}

/* ============================================
   18. RTL ALIGNMENT FIXES
   ============================================ */

/* Replace left/right with inset for RTL support */
.wls-auction-gallery {
    margin-inline-start: 0;
    margin-inline-end: 0;
}

.wls-auction-info {
    margin-inline-start: 0;
    margin-inline-end: 0;
}

/* Form elements RTL support */
.wls-payment-form .form-row {
    display: flex;
    gap: 15px;
    margin-inline-start: 0;
    margin-inline-end: 0;
}

.wls-payment-form .form-group {
    flex: 1;
}

.wls-payment-form input,
.wls-payment-form select,
.wls-payment-form textarea {
    text-align: right;
    direction: rtl;
}

/* Button alignment */
.wls-btn {
    margin-inline-start: auto;
    margin-inline-end: 0;
}

/* Timer RTL support */
.timer-countdown {
    direction: ltr;
    text-align: center;
}

/* Gallery thumbnails RTL */
.wls-gallery-thumbs {
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .wls-gallery-thumbs {
        justify-content: center;
    }
}

/* ============================================
   2. HEADER SECTION
   ============================================ */

.wls-auction-header-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.wls-auction-breadcrumb {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wls-auction-breadcrumb a {
    color: #007cba;
    text-decoration: none;
    transition: color 0.2s;
}

.wls-auction-breadcrumb a:hover {
    color: #005a87;
    text-decoration: underline;
}

.wls-auction-breadcrumb .separator {
    color: #dee2e6;
}

.wls-auction-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .wls-auction-title {
        font-size: 24px;
    }
}

/* ============================================
   3. COUNTDOWN TIMER
   ============================================ */

.wls-auction-timer {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 30px;
    border-radius: 10px;
    color: #fff;
}

.timer-icon {
    font-size: 36px;
    line-height: 1;
}

.timer-content {
    flex: 1;
}

.timer-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
    font-weight: 500;
}

.timer-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.time-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 12px;
    border-radius: 8px;
    min-width: 60px;
}

.time-segment .value {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 2px;
}

.time-segment .label {
    font-size: 11px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timer-countdown .separator {
    font-size: 24px;
    font-weight: 600;
    opacity: 0.7;
}

/* Timer Urgency States */
.time-segment.urgent {
    background: rgba(255, 193, 7, 0.25);
    animation: pulse-warning 2s ease-in-out infinite;
}

.time-segment.critical {
    background: rgba(220, 53, 69, 0.3);
    animation: pulse-danger 1s ease-in-out infinite;
}

@keyframes pulse-warning {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes pulse-danger {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    50% { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
}

@media (max-width: 768px) {
    .wls-auction-timer {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .time-segment {
        min-width: 50px;
        padding: 6px 10px;
    }

    .time-segment .value {
        font-size: 22px;
    }

    .time-segment .label {
        font-size: 10px;
    }
}

/* ============================================
   4. STATUS BADGES
   ============================================ */

.wls-auction-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
}

.wls-auction-status.status-scheduled {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffc107;
}

.wls-auction-status.status-ended {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

.status-icon {
    font-size: 24px;
    line-height: 1;
}

.status-text {
    flex: 1;
}

/* ============================================
   5. MAIN GRID LAYOUT
   ============================================ */

.wls-auction-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .wls-auction-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   6. PRODUCT GALLERY
   ============================================ */

.wls-auction-gallery {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.wls-gallery-main {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wls-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wls-gallery-main:hover img {
    transform: scale(1.05);
}

.wls-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.wls-gallery-thumbs .thumb {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s ease;
    background: #f8f9fa;
}

.wls-gallery-thumbs .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wls-gallery-thumbs .thumb:hover {
    border-color: #dee2e6;
    transform: translateY(-2px);
}

.wls-gallery-thumbs .thumb.active {
    border-color: #007cba;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.2);
}

/* ============================================
   7. SIDEBAR - PRICING & BIDDING
   ============================================ */

.wls-auction-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Price Card */
.wls-price-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.current-bid-section {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.bid-label {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 500;
}

.bid-value {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.bid-count {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.buy-now-section {
    text-align: center;
    padding-top: 20px;
}

.buy-now-label {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 6px;
}

.buy-now-value {
    font-size: 24px;
    font-weight: 700;
    color: #28a745;
}

/* ============================================
   8. BID CARDS (Progressive Disclosure)
   ============================================ */

.wls-bid-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.wls-bid-card .card-icon {
    font-size: 48px;
    margin-bottom: 15px;
    line-height: 1;
}

.wls-bid-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

.wls-bid-card p {
    color: #6c757d;
    margin: 0 0 20px 0;
    font-size: 15px;
    line-height: 1.5;
}

/* Login Required State */
.wls-bid-card.login-required {
    border: 2px dashed #dee2e6;
}

.wls-bid-card.login-required .card-icon {
    color: #007cba;
}

/* Phone Required State */
.wls-bid-card.phone-required .card-icon {
    color: #17a2b8;
}

/* Payment Required State */
.wls-bid-card.payment-required .card-icon {
    color: #ffc107;
}

/* Bid Ready State */
.wls-bid-card.bid-ready {
    text-align: left;
    border: 2px solid #28a745;
}

/* Auction Ended State */
.wls-bid-card.auction-ended {
    border: 2px dashed #dc3545;
}

.wls-bid-card.auction-ended .card-icon {
    color: #dc3545;
}

/* ============================================
   9. FORMS
   ============================================ */

.wls-verification-form,
.wls-payment-form,
.wls-bid-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #fff;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.form-group input:invalid {
    border-color: #dc3545;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row:last-child {
    margin-bottom: 0;
}

/* Expiry Inputs */
.expiry-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.expiry-inputs input {
    width: 100%;
    text-align: center;
}

.expiry-inputs span {
    font-size: 18px;
    font-weight: 600;
    color: #6c757d;
}

/* Bid Input Wrapper */
.bid-input-wrapper {
    position: relative;
}

.bid-input-wrapper input {
    padding-right: 50px;
}

.currency-symbol {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 700;
    color: #6c757d;
    pointer-events: none;
}

.bid-help {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #6c757d;
}

/* ============================================
   10. BUTTONS
   ============================================ */

.wls-btn {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.wls-btn.large {
    padding: 16px 32px;
    font-size: 18px;
}

.wls-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.wls-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.wls-btn.primary:active {
    transform: translateY(0);
}

.wls-btn.secondary {
    background: #28a745;
    color: #fff;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.wls-btn.secondary:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.wls-btn.pulse {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 4px 30px rgba(102, 126, 234, 0.6);
    }
}

.wls-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-icon {
    display: inline-block;
    margin-left: 8px;
    font-size: 20px;
}

/* ============================================
   11. BID HISTORY
   ============================================ */

.wls-bid-history-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.wls-bid-history-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
}

.bid-history-list {
    max-height: 400px;
    overflow-y: auto;
}

.bid-history-list .loading {
    text-align: center;
    padding: 30px;
    color: #6c757d;
    font-size: 14px;
}

.bid-history-list .no-bids {
    text-align: center;
    padding: 30px;
    color: #6c757d;
    font-size: 14px;
}

.bid-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.bid-item:last-child {
    border-bottom: none;
}

.bid-item:hover {
    background: #f8f9fa;
}

.bid-item.top-bidder {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    margin-bottom: 10px;
}

.bid-icon {
    font-size: 24px;
    line-height: 1;
}

.bid-info {
    flex: 1;
}

.bidder-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.bid-amount {
    font-size: 18px;
    font-weight: 700;
    color: #007cba;
}

.bid-time {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}

/* Scrollbar Styling */
.bid-history-list::-webkit-scrollbar {
    width: 8px;
}

.bid-history-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.bid-history-list::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.bid-history-list::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* ============================================
   12. PRODUCT DETAILS TABS
   ============================================ */

.wls-product-details {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.wls-tabs {
    width: 100%;
}

.tab-headers {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 25px;
}

.tab-header {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    margin-bottom: -2px;
}

.tab-header:hover {
    color: #007cba;
}

.tab-header.active {
    color: #007cba;
    border-bottom-color: #007cba;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

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

.tab-pane h2,
.tab-pane h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
}

.tab-pane p {
    color: #495057;
    line-height: 1.7;
    margin-bottom: 15px;
}

.tab-pane ul {
    padding-right: 20px;
    margin-bottom: 15px;
}

.tab-pane li {
    color: #495057;
    line-height: 1.7;
    margin-bottom: 8px;
}

/* ============================================
   13. TOAST NOTIFICATIONS
   ============================================ */

.wls-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    padding: 16px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    z-index: 99999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 3.7s;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.wls-toast.toast-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.wls-toast.toast-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.wls-toast.toast-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.wls-toast.toast-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.toast-icon {
    font-size: 24px;
    line-height: 1;
}

.toast-message {
    flex: 1;
}

/* ============================================
   14. LOADING STATES
   ============================================ */

.wls-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: wls-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes wls-spin {
    to { transform: rotate(360deg); }
}

.wls-btn .wls-loading {
    margin-left: 0;
    margin-right: 8px;
}

/* ============================================
   15. RTL SUPPORT (Hebrew)
   ============================================ */

[dir="rtl"] .wls-auction-breadcrumb {
    flex-direction: row-reverse;
}

[dir="rtl"] .wls-auction-timer {
    direction: rtl;
}

[dir="rtl"] .timer-countdown {
    flex-direction: row-reverse;
}

[dir="rtl"] .wls-auction-grid {
    direction: rtl;
}

[dir="rtl"] .currency-symbol {
    left: 16px;
    right: auto;
}

[dir="rtl"] .bid-input-wrapper input {
    padding-left: 50px;
    padding-right: 16px;
}

[dir="rtl"] .btn-icon {
    margin-right: 8px;
    margin-left: 0;
}

[dir="rtl"] .wls-toast {
    right: auto;
    left: 20px;
    border-left: none;
    border-right: 4px solid;
}

[dir="rtl"] .tab-pane ul {
    padding-right: 0;
    padding-left: 20px;
}

/* ============================================
   16. RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .wls-auction-header-section {
        padding: 20px;
    }

    .wls-auction-gallery,
    .wls-price-card,
    .wls-bid-card,
    .wls-bid-history-card,
    .wls-product-details {
        padding: 20px;
    }

    .bid-value {
        font-size: 28px;
    }

    .buy-now-value {
        font-size: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .wls-toast {
        min-width: auto;
        max-width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
    }

    .tab-headers {
        gap: 5px;
    }

    .tab-header {
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .wls-auction-title {
        font-size: 20px;
    }

    .wls-bid-card h3 {
        font-size: 18px;
    }

    .wls-btn.large {
        padding: 14px 24px;
        font-size: 16px;
    }

    .wls-gallery-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 8px;
    }
}

/* ============================================
   17. UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.text-muted {
    color: #6c757d;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* ============================================
   18. ACCESSIBILITY
   ============================================ */

.wls-btn:focus,
.form-group input:focus,
.tab-header:focus,
.thumb:focus {
    outline: 3px solid #007cba;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   19. WLS AUCTION SECTION - ORIGINAL AUCTION BOX
   ============================================ */

#wls-auction-section.wls-auction-box {
    background: #ffffff;
    border: 2px solid #e0192e;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(224, 25, 46, 0.1);
    direction: rtl;
}

.wls-auction-countdown {
    background: linear-gradient(135deg, #e0192e 0%, #c01729 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}

.wls-countdown-timer {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.wls-current-price {
    background: #f8f9fa;
    border: 2px solid #e0192e;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.wls-price-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.wls-price-value {
    font-size: 28px;
    font-weight: 700;
    color: #e0192e;
}

.wls-join-auction-section {
    text-align: center;
    margin-bottom: 20px;
}

.wls-join-btn {
    background: linear-gradient(135deg, #e0192e 0%, #c01729 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(224, 25, 46, 0.3);
}

.wls-join-btn:hover {
    opacity: 0.95;
}

.auction-bid-history {
    background: #ffffff;
    border: 2px solid #e0192e;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
}

.auction-bid-history h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.bid-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.bid-history-table th,
.bid-history-table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #e0e0e0;
}

.bid-history-table .amount-col {
    text-align: start;
}

.bid-history-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.bid-history-table tr:hover {
    background: #f8f9fa;
}

.bid-history-table .bid-amount {
    font-weight: 700;
    color: #e0192e;
}

.bid-history-table .bid-time {
    color: #666;
    font-size: 14px;
}

.bid-history-table .bidder {
    font-weight: 600;
    color: #333;
}

/* RTL Support for auction section */
[dir="rtl"] #wls-auction-section.wls-auction-box {
    direction: rtl;
}

[dir="rtl"] .bid-history-table th,
[dir="rtl"] .bid-history-table td {
    text-align: right;
}

/* Responsive design for auction section */
@media (max-width: 768px) {
    #wls-auction-section.wls-auction-box {
        padding: 20px;
        margin: 15px 0;
    }
    
    .wls-auction-countdown {
        padding: 15px;
        font-size: 16px;
    }
    
    .wls-countdown-timer {
        font-size: 20px;
    }
    
    .wls-current-price {
        padding: 15px;
    }
    
    .wls-price-value {
        font-size: 24px;
    }
    
    .wls-join-btn {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .auction-bid-history {
        padding: 20px;
    }
    
    .bid-history-table th,
    .bid-history-table td {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* ============================================
   19. BID INTERFACE STYLING
   ============================================ */

.wls-bid-interface {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 3px solid #d4af37;
    border-radius: 15px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.wls-bid-interface h3 {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: #000000;
    margin-bottom: 30px;
}

.wls-bid-form .wls-form-group {
    margin-bottom: 25px;
}

.wls-bid-form label {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.wls-bid-form input[type="number"] {
    width: 100%;
    padding: 15px 20px;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid #d4af37;
    border-radius: 10px;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.wls-bid-form input[type="number"]:focus {
    outline: none;
    border-color: #ff3333;
    box-shadow: 0 0 0 3px rgba(255, 51, 51, 0.1);
}

.wls-bid-form .wls-help-text {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.wls-bid-submit {
    width: 100%;
    padding: 18px 30px;
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #000000;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.wls-bid-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.4);
}

.wls-bid-submit:active {
    transform: translateY(0);
}

/* ============================================
   20. PAYMENT MODAL STYLING (BODY LEVEL)
   ============================================ */

#wls-payment-modal,
#wls-login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999 !important; /* Ensure highest level */
    overflow-y: auto; /* Allow scrolling for long forms */
}

#wls-payment-modal.show,
#wls-login-modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.wls-modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.wls-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0192e;
}

.wls-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.wls-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wls-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.wls-payment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wls-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wls-form-row {
    display: flex;
    gap: 15px;
}

.wls-form-row .wls-form-group {
    flex: 1;
}

.wls-form-group label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-align: start;
}

.wls-form-group input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.wls-form-group input:focus {
    outline: none;
    border-color: #e0192e;
    box-shadow: 0 0 0 3px rgba(224, 25, 46, 0.1);
}

.wls-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.wls-btn-primary {
    background: #e0192e;
    color: white;
}

.wls-btn-primary:hover {
    background: #c01729;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 25, 46, 0.3);
}

.wls-btn-secondary {
    background: #6c757d;
    color: white;
}

.wls-btn-secondary:hover {
    background: #5a6268;
}

@media (max-width: 768px) {
    .wls-modal-content {
        padding: 20px;
        margin: 20px;
    }
    
    .wls-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .wls-modal-actions {
        flex-direction: column;
    }
}

/* ============================================
   21. SUCCESS MODAL STYLING (BODY LEVEL)
   ============================================ */

#wls-success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000000 !important; /* Ensure highest level, above payment modal */
    overflow-y: auto;
}

#wls-success-modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.wls-success-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: successSlideIn 0.3s ease;
}

@keyframes successSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.wls-success-message h2 {
    font-size: 28px;
    font-weight: 700;
    color: #28a745;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wls-success-message h2::before {
    content: '✅';
    font-size: 32px;
}

.wls-success-message p {
    font-size: 16px;
    color: #666;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.wls-success-message .wls-btn {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    background: #e0192e;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
 

@media (max-width: 768px) {
    .wls-success-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .wls-success-message h2 {
        font-size: 24px;
    }
    
    .wls-success-message p {
        font-size: 15px;
    }
}

/* ============================================
   22. GUEST BID SECTION STYLING
   ============================================ */

.guest-bid-section {
    margin: 20px 0;
    text-align: center;
}

.guest-bid-message {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guest-bid-message .message-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.guest-bid-message p {
    margin: 5px 0;
    font-weight: 600;
    color: #856404;
}

.guest-bid-message p:first-of-type {
    font-size: 16px;
    font-weight: 700;
}

.guest-bid-message p:last-of-type {
    font-size: 14px;
    opacity: 0.8;
}

.wls-btn.secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wls-btn.secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.wls-btn.secondary .btn-icon {
    font-size: 18px;
}

/* ============================================
   23. LUXURY AUCTION BOX STYLING
   ============================================ */

#wls-auction-section.wls-auction-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 3px solid #e0192e !important;
    border-radius: 20px !important;
    padding: 40px !important;
    margin: 20px 0 !important;
    box-shadow: 0 20px 40px rgba(224, 25, 46, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1) !important;
    direction: rtl !important;
    position: relative !important;
    overflow: hidden !important;
}

#wls-auction-section.wls-auction-box::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #e0192e 0%, #c01729 50%, #e0192e 100%) !important;
    z-index: 1 !important;
}

#wls-auction-section.wls-auction-box::after {
    content: '🔨' !important;
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    font-size: 24px !important;
    opacity: 0.1 !important;
    z-index: 0 !important;
}

/* ============================================
   24. AUCTION H1 CUSTOMIZATION
   ============================================ */

.auction-title-red {
    color: #e0192e !important;
    font-weight: 700 !important;
    font-size: 1.2em !important;
}

.auction-hammer-icon {
    color: #e0192e !important;
    margin: 0 8px !important;
    font-size: 1.1em !important;
}

.auction-product-name {
    color: #333 !important;
    font-weight: 600 !important;
}

.auction-countdown-inline {
    color: #e0192e !important;
    font-weight: 700 !important;
    margin-right: 15px !important;
}

.auction-clock-icon {
    color: #e0192e !important;
    margin-left: 5px !important;
}

.auction-timer-inline {
    font-family: 'Courier New', monospace !important;
    font-weight: 700 !important;
    color: #e0192e !important;
}

/* ============================================
   25. COMPACT AUCTION INFO SECTION
   ============================================ */

.wls-auction-info-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    border: 2px solid #d4af37 !important;
    border-radius: 12px !important;
    padding: 20px 25px !important;
    margin: 20px 0 15px 0 !important;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25), 0 0 0 1px rgba(212, 175, 55, 0.1) !important;
    direction: rtl !important;
    position: relative !important;
    overflow: hidden !important;
}

.wls-auction-info-section::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 auto auto 0 !important;
    width: 100% !important;
    height: 3px !important;
    background: linear-gradient(90deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%) !important;
    z-index: 1 !important;
}

.wls-auction-info-section::after {
    content: '⏱️' !important;
    position: absolute !important;
    inset: 15px auto auto 15px !important;
    font-size: 20px !important;
    opacity: 0.08 !important;
    z-index: 0 !important;
}

.wls-auction-timer {
    background: transparent !important;
    color: white !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin-bottom: 15px !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    position: relative !important;
    z-index: 2 !important;
}

.timer-icon {
    display: none !important;
}

.timer-content {
    flex: 1 !important;
}

.timer-label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #d4af37 !important;
    margin-bottom: 8px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.timer-countdown {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace !important;
}

.time-segment {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    background: rgba(212, 175, 55, 0.15) !important;
    color: white !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    min-width: 55px !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
}

.time-segment .value {
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: #ffffff !important;
}

.time-segment .label {
    font-size: 10px !important;
    opacity: 0.85 !important;
    margin-top: 3px !important;
    color: #d4af37 !important;
}

.separator {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #d4af37 !important;
}

.wls-auction-price-info {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
}

.current-bid,
.buy-now-price {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 12px 16px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 10px !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
    box-shadow: none !important;
    flex: 1 !important;
    text-align: center !important;
}

.current-bid {
    border-color: rgba(212, 175, 55, 0.4) !important;
}

.buy-now-price {
    border-color: rgba(76, 175, 80, 0.4) !important;
}

.bid-label,
.buy-now-label {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #d4af37 !important;
    margin-bottom: 6px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.buy-now-label {
    color: #4caf50 !important;
}

.bid-amount,
.buy-now-amount {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace !important;
}

/* ============================================
   26. LUXURY BIDDING SECTION
   ============================================ */

.wls-auction-bidding-section {
    background: linear-gradient(135deg, #2d1810 0%, #1a1a1a 100%) !important;
    border: 2px solid #d4af37 !important;
    border-radius: 12px !important;
    padding: 25px 30px !important;
    margin: 20px 0 15px 0 !important;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25), 0 0 0 1px rgba(212, 175, 55, 0.1) !important;
    direction: rtl !important;
    position: relative !important;
    overflow: hidden !important;
}

.wls-auction-bidding-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, #d4af37 0%, #f4d03f 50%, #d4af37 100%) !important;
    z-index: 1 !important;
}

.wls-auction-bidding-section::after {
    content: '🔨' !important;
    position: absolute !important;
    top: 15px !important;
    left: 15px !important;
    font-size: 20px !important;
    opacity: 0.08 !important;
    z-index: 0 !important;
}

.wls-auction-bidding-section h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #d4af37 !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    position: relative !important;
    z-index: 2 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.wls-bid-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    max-width: 450px !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 2 !important;
}

.wls-bid-form .form-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.wls-bid-form label {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #d4af37 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.wls-bid-form input {
    padding: 12px 18px !important;
    border: 2px solid rgba(212, 175, 55, 0.3) !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

.wls-bid-form input:focus {
    outline: none !important;
    border-color: #d4af37 !important;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.wls-bid-form input.invalid {
    border-color: #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.wls-bid-buttons {
    display: flex !important;
    gap: 15px !important;
    justify-content: center !important;
}

.wls-btn {
    padding: 14px 35px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.wls-btn-primary {
    /* background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%) !important; */
    /* color: #1a1a1a !important; */
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4) !important;
}

.wls-btn-primary:hover {
    transform: translateY(-1px) scale(1.02) !important;
    /* box-shadow: 0 6px 24px rgba(212, 175, 55, 0.6) !important; */
}

.wls-btn-primary:active {
    transform: translateY(0) scale(0.98) !important;
}

.wls-btn-primary.loading {
    pointer-events: none !important;
    opacity: 0.7 !important;
}

.wls-btn-primary.loading::after {
    content: '' !important;
    position: absolute !important;
    width: 16px !important;
    height: 16px !important;
    border: 2px solid #1a1a1a !important;
    border-top-color: transparent !important;
    border-radius: 50% !important;
    animation: wls-btn-spin 0.6s linear infinite !important;
}

@keyframes wls-btn-spin {
    to { transform: rotate(360deg); }
}

.wls-btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #d4af37 !important;
    border: 2px solid rgba(212, 175, 55, 0.3) !important;
    box-shadow: none !important;
}

.wls-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(212, 175, 55, 0.5) !important;
    transform: translateY(-2px) !important;
}

/* Specific button styling for bid and buy now buttons */
.wls-bid-button,
.wls-buy-now-button {
    padding: 14px 35px !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-align: center !important;
    position: relative !important;
    overflow: hidden !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%) !important;
    color: #1a1a1a !important;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4) !important;
    width: 100% !important;
}

.wls-bid-button:hover,
.wls-buy-now-button:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.6) !important;
}

.wls-bid-button:active,
.wls-buy-now-button:active {
    transform: translateY(0) scale(0.98) !important;
}

.wls-bid-button.loading,
.wls-buy-now-button.loading {
    pointer-events: none !important;
    opacity: 0.7 !important;
}

.wls-bid-button.loading::after,
.wls-buy-now-button.loading::after {
    content: '' !important;
    position: absolute !important;
    width: 16px !important;
    height: 16px !important;
    border: 2px solid #1a1a1a !important;
    border-top-color: transparent !important;
    border-radius: 50% !important;
    animation: wls-btn-spin 0.6s linear infinite !important;
}

/* ============================================
   27. LUXURY TABS SECTION
   ============================================ */

.wls-auction-tabs-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 3px solid #e0192e !important;
    border-radius: 20px !important;
    padding: 40px !important;
    margin: 30px 0 !important;
    box-shadow: 0 20px 40px rgba(224, 25, 46, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1) !important;
    direction: rtl !important;
    position: relative !important;
    overflow: hidden !important;
}

.wls-auction-tabs-section::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #e0192e 0%, #c01729 50%, #e0192e 100%) !important;
    z-index: 1 !important;
}

.wls-auction-tabs-section::after {
    content: '📊' !important;
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    font-size: 24px !important;
    opacity: 0.1 !important;
    z-index: 0 !important;
}

.wls-auction-tabs-section h3 {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin-bottom: 25px !important;
    text-align: center !important;
    position: relative !important;
    z-index: 2 !important;
}

.wls-bid-history {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-top: 25px !important;
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    z-index: 2 !important;
}

.wls-bid-history th,
.wls-bid-history td {
    padding: 18px 20px !important;
    text-align: right !important;
    border-bottom: 1px solid #e0e0e0 !important;
}

.wls-bid-history th {
    background: linear-gradient(135deg, #e0192e 0%, #c01729 100%) !important;
    font-weight: 700 !important;
    color: white !important;
    font-size: 16px !important;
}

.wls-bid-history tr:hover {
    background: #f8f9fa !important;
}

.wls-bid-history .bid-amount {
    font-weight: 700 !important;
    color: #e0192e !important;
    font-size: 18px !important;
}

.wls-bid-history .bid-time {
    color: #666 !important;
    font-size: 14px !important;
}

.wls-bid-history .bidder {
    font-weight: 600 !important;
    color: #333 !important;
}

/* ============================================
   28. RESPONSIVE LUXURY STYLING
   ============================================ */

@media (max-width: 768px) {
    #wls-auction-section.wls-auction-box,
    .wls-auction-info-section,
    .wls-auction-bidding-section,
    .wls-auction-tabs-section {
        padding: 25px !important;
        margin: 20px 0 !important;
    }

    .wls-auction-timer {
        padding: 20px !important;
    }

    .timer-countdown {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .time-segment {
        min-width: 60px !important;
        padding: 10px 12px !important;
    }

    .wls-bid-buttons {
        flex-direction: column !important;
    }

    .wls-btn {
        padding: 15px 30px !important;
        font-size: 16px !important;
    }
}

/* ============================================
   29. MODAL BODY LOCK (PREVENT SCROLL WHEN MODAL OPEN)
   ============================================ */

body.wls-modal-open {
    overflow: hidden !important;
}

/* Ensure modals are always on top of sticky elements */
.wls-payment-modal,
.wls-success-modal {
    isolation: isolate; /* Create new stacking context */
}

.wls-modal-content,
.wls-success-content {
    position: relative;
    z-index: 1;
    max-height: 90vh;
    overflow-y: auto;
}

/* ============================================
   30. UNIFIED LIVE AUCTION - SIMPLIFIED
   ============================================ */

.wls-unified-auction {
    background: #ffffff;
    border: 1px solid #ddd;
    margin: 20px 0;
}

/* Header */
.wls-auction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    /* background: #f5f5f5; */
    border-bottom: 1px solid #ddd;
}

.wls-header-left,
.wls-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    width: -webkit-fill-available;
}

.wls-live-dot {
    width: 6px;
    height: 6px;
    background: #e0192e;
    border-radius: 50%;
}

.wls-status-text {
    font-size: 15px;
    font-weight: 600;
    color: #e0192e;
} 

.wls-current-bid-label {
    font-size: 15px;
    color: #666;
}

.wls-current-bid-value {
    font-size: 15px;
    font-weight: 700;
    color: #e0192e;
}

/* Header with minimum bid below */
.wls-current-bid-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

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

.wls-min-bid-label {
    font-size: 13px;
    color: #666;
}

.wls-min-bid-hint {
    font-size: 13px;
    color: #e0192e;
    font-weight: 600;
}

/* Table */
.wls-auction-table {
    width: 100%;
    border-collapse: collapse;
}

.wls-auction-table thead th {
    padding: 10px 15px;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    text-align: right;
    border-bottom: 1px solid #ddd;
    background: #fafafa;
}

.wls-auction-table tbody td {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    font-size: 15px;
}

/* Your Bid Row */
.wls-your-bid-row {
    background: #fff8f8;
    border-right: 3px solid #e0192e;
}

.wls-you-badge {
    display: inline-block;
    padding: 2px 6px;
    background: #e0192e;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-left: 6px;
}

/* Bid Form */
.wls-bid-form-inline {
    margin: 0;
}

.wls-bid-form-inline input {
    width: 120px;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

.wls-bid-form-inline input:focus {
    border-color: #e0192e;
    outline: none;
}

.wls-bid-form-inline input::-webkit-inner-spin-button,
.wls-bid-form-inline input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.wls-bid-form-inline input[type=number] {
    -moz-appearance: textfield;
}

/* Buttons */
.wls-actions-cell {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.wls-btn-bid,
.wls-btn-buy {
    padding: 6px 12px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.wls-btn-bid {
    background: #e0192e;
    color: #fff;
}

.wls-btn-bid:hover {
    background: #c01729;
}

.wls-btn-bid.loading {
    opacity: 0.6;
}

.wls-btn-buy {
    background: #333;
    color: #fff;
}

.wls-btn-buy:hover {
    background: #e0192e;
}

/* Combined cell for bid input and buttons */
.wls-bid-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Combined cell for history amount and status/time */
.wls-history-amount-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.wls-history-amount-wrapper .wls-amount {
    font-weight: 600;
    color: #333;
}

/* History Rows */
.wls-history-row {
    background: #fff;
}

.wls-history-row:hover {
    background: #fafafa;
}

.wls-history-row.wls-leading {
    background: #fff8f8;
    border-right: 3px solid #e0192e;
}

.wls-history-row.wls-yours {
    background: #ffffff;
}

/* Recent bids (within last minute) - highlighted */
.wls-history-row.wls-recent {
    background: #fffbea;
    border-left: 3px solid #fbbf24;
    animation: wls-recent-pulse 2s ease-in-out infinite;
}

@keyframes wls-recent-pulse {
    0%, 100% {
        background: #fffbea;
    }
    50% {
        background: #fef3c7;
    }
}

.wls-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 15px;
    font-weight: 600;
}

.wls-badge-leading {
    background: #e0192e;
    color: #fff;
}

.wls-time {
    font-size: 15px;
    color: #999;
}

/* Special Rows */
.wls-login-row td {
    padding: 20px !important;
    text-align: center;
    background: #f0f8ff;
}

.wls-login-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #e0192e;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.wls-login-btn:hover {
    background: #c01627;
}

.wls-ended-row td {
    padding: 15px !important;
    text-align: center;
    color: #e0192e;
    font-weight: 600;
    font-size: 15px;
}

.wls-empty-row td {
    padding: 25px !important;
    text-align: center;
    color: #999;
    font-size: 15px;
}

/* Footer */
.wls-auction-footer {
    display: flex;
    justify-content: space-between;
    padding: 8px 15px;
    /* background: #f5f5f5; */
    border-top: 1px solid #ddd;
    font-size: 15px;
    color: #666;
}

.wls-auction-footer span:last-child {
    color: #e0192e;
    font-weight: 600;
}

/* Mobile */
@media (max-width: 768px) {
    .wls-auction-header {
        flex-direction: column;
        gap: 6px;
        padding: 8px 12px;
    }

    .wls-auction-table thead th,
    .wls-auction-table tbody td {
        padding: 8px 10px;
        font-size: 12px;
    }

    .wls-actions-cell {
        flex-direction: column;
    }

    .wls-btn-bid,
    .wls-btn-buy {
        width: 100%;
    }
}

/* ============================================
   31. LOGIN/SIGNUP MODAL
   ============================================ */

/* Auth Tabs */
.wls-auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.wls-auth-tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 15px;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: -2px;
}

.wls-auth-tab:hover {
    color: #666;
}

.wls-auth-tab.active {
    color: #e0192e;
    border-bottom-color: #e0192e;
}

/* Auth Tab Content */
.wls-auth-tab-content {
    display: none;
}

.wls-auth-tab-content.active {
    display: block;
}

/* Remember Me Checkbox */
.wls-remember-me {
    margin: 0;
}

.wls-remember-me label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: normal;
}

.wls-remember-me input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Full Width Button */
.wls-btn-full {
    width: 100%;
    justify-content: center;
}

/* Form Footer */
.wls-form-footer {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.wls-form-footer a {
    color: #e0192e;
    text-decoration: none;
    font-size: 14px;
}

.wls-form-footer a:hover {
    text-decoration: underline;
}

.wls-form-footer small {
    font-size: 13px;
    color: #999;
}

.wls-form-footer small a {
    font-size: 13px;
}

/* ============================================
   TOTAL OFFERS COUNT
   ============================================ */
.wls-auction-total-offers {
    text-align: center;
    padding: 12px 0;
    margin-top: 15px;
    font-size: 13px;
    color: #666;
    border-top: 1px solid #f0f0f0;
}

/* ============================================
   AUCTION RULES SECTION
   ============================================ */
.wls-auction-rules {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px 20px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.wls-auction-rules h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.wls-auction-rules ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wls-auction-rules li {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    padding: 3px 0;
    padding-right: 18px;
    position: relative;
}

.wls-auction-rules li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: #999;
    font-weight: bold;
}
