/* ============================================
   Auction Page - Product-like Styling
   Enhanced to match single product page
   ============================================ */

/* ============================================
   1. MAIN LAYOUT - SINGLE PRODUCT STYLE
   ============================================ */

   .wls-auction-page {
    background: #ffffff;
    min-height: 100vh;
    direction: rtl;
}

.wls-auction-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.wls-auction-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
    align-items: start;
}

/* ============================================
   2. ENHANCED GALLERY - SINGLE PRODUCT STYLE
   ============================================ */

.wls-auction-gallery {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.modern-gallery-container {
    position: relative;
    width: 100%;
}

.main-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f8f9fa;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image-container:hover img {
    transform: scale(1.05);
}

.thumbnails-row {
    display: flex;
    gap: 10px;
    padding: 15px;
    /* background: #f8f9fa; */
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.thumbnails-row::-webkit-scrollbar {
    display: none;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.thumbnail-item:hover {
    border-color: #e0192e;
    transform: scale(1.05);
}

.thumbnail-item.active {
    border-color: #e0192e;
    box-shadow: 0 0 0 2px rgba(224, 25, 46, 0.2);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    background: #f8f9fa;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active,
.gallery-dot:hover {
    background: #e0192e;
    transform: scale(1.2);
}

/* ============================================
   3. PRODUCT INFO - SINGLE PRODUCT STYLE
   ============================================ */

.wls-auction-info {
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.wls-auction-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.woocommerce-product-rating {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.woocommerce-product-rating .star-rating {
    font-size: 18px;
    color: #ffc107;
}

.woocommerce-review-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.woocommerce-review-link:hover {
    color: #e0192e;
}

.woocommerce-product-details__short-description {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-right: 4px solid #e0192e;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

/* ============================================
   4. ENHANCED TABS - SINGLE PRODUCT STYLE
   ============================================ */

.wls-auction-tabs {
    margin-top: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.wc-tabs {
    display: flex;
    background: #f8f9fa;
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid #e0e0e0;
}

.wc-tabs li {
    flex: 1;
    margin: 0;
}

.wc-tabs li a {
    display: block;
    padding: 20px 25px;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.wc-tabs li.active a,
.wc-tabs li a:hover {
    color: #e0192e;
    background: #ffffff;
    border-bottom-color: #e0192e;
}

.woocommerce-Tabs-panel {
    padding: 30px;
    display: none;
}

.woocommerce-Tabs-panel.active {
    display: block;
}

.woocommerce-Tabs-panel h2 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0192e;
}

/* ============================================
   5. PRODUCT ATTRIBUTES - SINGLE PRODUCT STYLE
   ============================================ */

.woocommerce-product-attributes {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.woocommerce-product-attributes th {
    background: #f8f9fa;
    padding: 15px 20px;
    text-align: right;
    font-weight: 600;
    color: #333;
    border: 1px solid #e0e0e0;
    width: 30%;
}

.woocommerce-product-attributes td {
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    color: #555;
    background: #ffffff;
}

.woocommerce-product-attributes tr:nth-child(even) th,
.woocommerce-product-attributes tr:nth-child(even) td {
    background: #f8f9fa;
}

/* ============================================
   6. REVIEWS - SINGLE PRODUCT STYLE
   ============================================ */

.woocommerce-Reviews {
    margin-top: 20px;
}

.commentlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.commentlist .review {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-right: 4px solid #e0192e;
}

.comment_container {
    display: flex;
    gap: 15px;
}

.comment-text {
    flex: 1;
}

.star-rating {
    font-size: 16px;
    color: #ffc107;
    margin-bottom: 10px;
}

.comment-text .meta {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

.woocommerce-review__author {
    color: #333;
    font-weight: 600;
}

.description {
    color: #555;
    line-height: 1.6;
}

.woocommerce-noreviews {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* ============================================
   7. RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .wls-auction-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .wls-auction-title {
        font-size: 24px;
    }
    
    .thumbnails-row {
        padding: 10px;
        gap: 8px;
    }
    
    .thumbnail-item {
        width: 60px;
        height: 60px;
    }
    
    .wc-tabs {
        flex-direction: column;
    }
    
    .wc-tabs li a {
        padding: 15px 20px;
        border-bottom: 1px solid #e0e0e0;
        border-right: none;
    }
    
    .woocommerce-Tabs-panel {
        padding: 20px;
    }
    
    .woocommerce-product-attributes th,
    .woocommerce-product-attributes td {
        padding: 10px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .wls-auction-container {
        padding: 15px;
    }
    
    .wls-auction-title {
        font-size: 20px;
    }
    
    .woocommerce-product-details__short-description {
        padding: 15px;
        font-size: 14px;
    }
    
    .wc-tabs li a {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .woocommerce-Tabs-panel {
        padding: 15px;
    }
}

/* ============================================
   8. ANIMATIONS & ENHANCEMENTS
   ============================================ */

.thumbnail-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.thumbnail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 25, 46, 0.3);
}

.woocommerce-Tabs-panel {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   9. AUCTION ELEMENTS - SINGLE PRODUCT INTEGRATION
   ============================================ */

.wls-auction-info-section {
    background: #f8f9fa;
    border: 2px solid #e0192e;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    direction: rtl;
}

.wls-auction-timer {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    border-right: 4px solid #e0192e;
}

.timer-icon {
    font-size: 24px;
    color: #e0192e;
}

.timer-content {
    flex: 1;
}

.timer-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.timer-countdown {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Courier New', monospace;
}

.time-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #e0192e;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    min-width: 60px;
}

.time-segment .value {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.time-segment .label {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 2px;
}

.separator {
    font-size: 18px;
    font-weight: 700;
    color: #e0192e;
}

.wls-auction-price-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.current-bid,
.buy-now-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.bid-label,
.buy-now-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.bid-amount,
.buy-now-amount {
    font-size: 20px;
    font-weight: 700;
    color: #e0192e;
}

.wls-auction-bidding-section {
    background: #ffffff;
    border: 2px solid #e0192e;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    direction: rtl;
}

.wls-auction-bidding-section h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.wls-bid-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.wls-bid-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wls-bid-form label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.wls-bid-form input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.wls-bid-form input:focus {
    outline: none;
    border-color: #e0192e;
    box-shadow: 0 0 0 3px rgba(224, 25, 46, 0.1);
}

.wls-bid-form input.invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.wls-bid-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.wls-btn {
    padding: 12px 30px;
    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;
}

.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;
}

.wls-auction-tabs-section {
    background: #ffffff;
    border: 2px solid #e0192e;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    direction: rtl;
}

.wls-auction-tabs-section h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.wls-bid-history {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.wls-bid-history th,
.wls-bid-history td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #e0e0e0;
}

.wls-bid-history th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.wls-bid-history tr:hover {
    background: #f8f9fa;
}

.wls-bid-history .bid-amount {
    font-weight: 700;
    color: #e0192e;
}

.wls-bid-history .bid-time {
    color: #666;
    font-size: 14px;
}

.wls-bid-history .bidder {
    font-weight: 600;
    color: #333;
}

/* ============================================
   10. RESPONSIVE AUCTION ELEMENTS
   ============================================ */

@media (max-width: 768px) {
    .wls-auction-timer {
        flex-direction: column;
        text-align: center;
    }
    
    .timer-countdown {
        justify-content: center;
    }
    
    .time-segment {
        min-width: 50px;
        padding: 6px 10px;
    }
    
    .time-segment .value {
        font-size: 18px;
    }
    
    .current-bid,
    .buy-now-price {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .wls-bid-buttons {
        flex-direction: column;
    }
    
    .wls-bid-history {
        font-size: 14px;
    }
    
    .wls-bid-history th,
    .wls-bid-history td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .wls-auction-info-section,
    .wls-auction-bidding-section,
    .wls-auction-tabs-section {
        padding: 15px;
        margin: 15px 0;
    }
    
    .timer-countdown {
        gap: 5px;
    }
    
    .time-segment {
        min-width: 45px;
        padding: 5px 8px;
    }
    
    .time-segment .value {
        font-size: 16px;
    }
    
    .time-segment .label {
        font-size: 10px;
    }
}

/* ============================================
   11. ACCESSIBILITY
   ============================================ */

.wc-tabs a:focus {
    outline: 2px solid #e0192e;
    outline-offset: 2px;
}

.thumbnail-item:focus {
    outline: 2px solid #e0192e;
    outline-offset: 2px;
}

.wls-btn:focus {
    outline: 2px solid #e0192e;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .woocommerce-product-attributes th,
    .woocommerce-product-attributes td {
        border-width: 2px;
    }
    
    .wc-tabs li a {
        border-bottom-width: 3px;
    }
    
    .wls-auction-info-section,
    .wls-auction-bidding-section,
    .wls-auction-tabs-section {
        border-width: 3px;
    }
}
