/**
 * SpotMart Reverse Auction Styles
 */

/* ========================================
   General Styles
   ======================================== */

.spotmart-reverse-auctions-browse,
.spotmart-my-auction-bids,
.spotmart-my-reverse-auctions,
.spotmart-create-reverse-auction {
    padding: 20px 0;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* ========================================
   Filters
   ======================================== */

.spotmart-auctions-filters,
.spotmart-bids-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.filter-group select,
.filter-group input {
    min-width: 180px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* ========================================
   Auctions Grid
   ======================================== */

.spotmart-auctions-grid {
    display: grid;
    gap: 20px;
}

.spotmart-auctions-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.spotmart-auctions-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

@media (max-width: 992px) {
    .spotmart-auctions-grid.columns-3,
    .spotmart-auctions-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .spotmart-auctions-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Auction Card
   ======================================== */

.spotmart-auction-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.spotmart-auction-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.spotmart-auction-card .auction-image {
    position: relative;
    padding-top: 60%;
    background: #f5f5f5;
    overflow: hidden;
}

.spotmart-auction-card .auction-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotmart-auction-card .auction-content {
    padding: 15px;
}

.spotmart-auction-card .auction-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #333;
}

.spotmart-auction-card .auction-title a {
    color: inherit;
    text-decoration: none;
}

.spotmart-auction-card .auction-title a:hover {
    color: #0073aa;
}

.spotmart-auction-card .auction-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.spotmart-auction-card .auction-meta-item {
    display: flex;
    justify-content: space-between;
}

.spotmart-auction-card .auction-meta-item .label {
    color: #888;
}

.spotmart-auction-card .auction-meta-item .value {
    font-weight: 600;
    color: #333;
}

.spotmart-auction-card .auction-countdown {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #e67e22;
}

.spotmart-auction-card .auction-actions {
    padding: 15px;
    border-top: 1px solid #eee;
}

.spotmart-auction-card .button {
    display: block;
    width: 100%;
    text-align: center;
}

/* ========================================
   Auction Status Badge
   ======================================== */

.auction-status-badge,
.reverse-auction-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.reverse-auction-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #6c5ce7;
    color: #fff;
    z-index: 1;
}

.auction-status-badge.status-active {
    background: #27ae60;
    color: #fff;
}

.auction-status-badge.status-pending {
    background: #f39c12;
    color: #fff;
}

.auction-status-badge.status-ended,
.auction-status-badge.status-closed {
    background: #95a5a6;
    color: #fff;
}

.auction-status-badge.status-won {
    background: #27ae60;
    color: #fff;
}

/* ========================================
   Single Product Auction Details
   ======================================== */

.spotmart-auction-details {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.auction-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

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

.auction-info-item {
    padding: 12px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
}

.auction-info-item .label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 4px;
}

.auction-info-item .value {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.auction-info-item.current-bid {
    background: #e8f5e9;
    border-color: #a5d6a7;
}

.auction-info-item.current-bid .value {
    color: #27ae60;
}

/* Countdown */
.auction-countdown {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #fff3cd;
    border-radius: 6px;
    margin-bottom: 20px;
}

.countdown-label {
    font-weight: 600;
    color: #856404;
}

.countdown-timer {
    font-size: 18px;
    font-weight: 700;
    color: #856404;
    font-family: monospace;
}

/* ========================================
   Bid Form
   ======================================== */

.spotmart-bid-form-container {
    margin-top: 20px;
}

.spotmart-bid-form {
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.spotmart-bid-form .form-row {
    margin-bottom: 15px;
}

.spotmart-bid-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.spotmart-bid-form input[type="text"],
.spotmart-bid-form input[type="number"],
.spotmart-bid-form textarea,
.spotmart-bid-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.spotmart-bid-form textarea {
    resize: vertical;
    min-height: 80px;
}

.bid-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.bid-input-wrapper .currency-symbol {
    padding: 10px 12px;
    background: #f5f5f5;
    border-right: 1px solid #ddd;
    color: #666;
    font-weight: 600;
}

.bid-input-wrapper input {
    border: none;
    border-radius: 0;
}

.bid-info {
    margin-bottom: 15px;
    padding: 12px;
    background: #e7f3ff;
    border-radius: 6px;
}

.bid-info p {
    margin: 0;
    font-size: 13px;
    color: #0066cc;
}

.form-actions {
    margin-top: 20px;
}

.form-actions .button {
    padding: 12px 24px;
    font-size: 16px;
}

/* Your bid status */
.your-bid-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: 500;
}

.your-bid-status.winning {
    background: #d4edda;
    color: #155724;
}

.your-bid-status.outbid {
    background: #f8d7da;
    color: #721c24;
}

.your-bid-status .status-icon {
    font-size: 18px;
    font-weight: 700;
}

/* Auction messages */
.auction-ended-message,
.auction-pending-message,
.auction-owner-message,
.auction-login-message,
.auction-seller-only-message {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.auction-ended-message h4,
.auction-pending-message h4,
.auction-owner-message h4,
.auction-seller-only-message h4 {
    margin: 0 0 10px;
    color: #333;
}

.auction-ended-message .winner-message {
    color: #27ae60;
    font-weight: 600;
}

/* ========================================
   Bid History
   ======================================== */

.spotmart-bid-history {
    margin: 20px 0;
}

.bid-history-table {
    width: 100%;
    border-collapse: collapse;
}

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

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

.bid-history-table .bid-row.status-active,
.bid-history-table .bid-row.action-new_bid:first-child {
    background: #e8f5e9;
}

.bid-history-table .bid-action {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    color: #555;
}

.bid-row.action-new_bid .bid-action {
    background: #d4edda;
    color: #155724;
}

.bid-row.action-bid_update .bid-action {
    background: #fff3cd;
    color: #856404;
}

.bid-history-table .bid-amount {
    font-weight: 600;
    color: #27ae60;
}

.bid-history-table .bid-time {
    color: #888;
    font-size: 13px;
}

.bid-history-table .bid-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.bid-row.status-active .bid-status {
    background: #27ae60;
    color: #fff;
}

.bid-row.status-outbid .bid-status {
    background: #e67e22;
    color: #fff;
}

.bid-row.status-won .bid-status {
    background: #2ecc71;
    color: #fff;
}

.bid-row.status-lost .bid-status {
    background: #95a5a6;
    color: #fff;
}

.no-bids {
    padding: 30px;
    text-align: center;
    color: #888;
    background: #f8f9fa;
    border-radius: 8px;
}

/* ========================================
   Shop Loop Styles
   ======================================== */

.reverse-auction-loop-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
}

.reverse-auction-loop-info .current-bid-label {
    color: #666;
    font-size: 12px;
}

.reverse-auction-loop-info .bid-info-line {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
}

.reverse-auction-loop-info .current-bid-value {
    font-size: 18px;
    font-weight: 700;
    color: #27ae60;
}

.reverse-auction-loop-info .bid-count {
    color: #888;
    font-size: 13px;
}

.reverse-auction-loop-info .auction-ends {
    color: #e67e22;
    font-size: 12px;
}

.reverse-auction-loop-info .bid-count {
    color: #666;
    font-size: 12px;
}

.reverse-auction-loop-info .view-details-btn {
    margin-top: 10px;
    padding: 8px 20px;
    background: #0073aa;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.reverse-auction-loop-info .view-details-btn:hover {
    background: #005a87;
    color: #fff !important;
}

/* Bid flash animation */
@keyframes bidFlash {
    0% { background-color: #fff3cd; }
    100% { background-color: transparent; }
}

.bid-flash {
    animation: bidFlash 1s ease-out;
}

/* ========================================
   Create Auction Form
   ======================================== */

.spotmart-create-reverse-auction {
    max-width: 800px;
}

.spotmart-create-reverse-auction h3 {
    margin: 0 0 10px;
}

.spotmart-create-reverse-auction .description {
    color: #666;
    margin-bottom: 20px;
}

.spotmart-auction-form {
    background: #fff;
    padding: 25px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.spotmart-auction-form .form-row {
    margin-bottom: 20px;
}

.spotmart-auction-form .form-row-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 576px) {
    .spotmart-auction-form .form-row-group {
        grid-template-columns: 1fr;
    }
}

.spotmart-auction-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.spotmart-auction-form label .required {
    color: #dc3545;
}

.spotmart-auction-form input[type="text"],
.spotmart-auction-form input[type="number"],
.spotmart-auction-form input[type="date"],
.spotmart-auction-form input[type="datetime-local"],
.spotmart-auction-form textarea,
.spotmart-auction-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.spotmart-auction-form .field-description {
    margin: 5px 0 0;
    font-size: 12px;
    color: #888;
}

/* Image upload */
.image-upload-container,
.image-upload-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.image-preview,
#auction-image-preview {
    width: 100px;
    height: 100px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f8f9fa;
}

.image-preview img,
#auction-image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.image-required-notice {
    width: 100%;
    flex-basis: 100%;
    margin-top: 10px !important;
}

/* Disabled dropdown styles */
.spotmart-disabled,
select.spotmart-disabled {
    opacity: 0.6;
    background-color: #f5f5f5 !important;
    cursor: not-allowed;
}

/* Native date picker styles */
input.native-date-picker {
    position: relative;
    z-index: 1;
    cursor: pointer;
    background: #fff;
}

input.native-date-picker::-webkit-calendar-picker-indicator {
    cursor: pointer;
    padding: 5px;
    margin-right: -5px;
}

/* Ensure the form row containing the native date picker has proper stacking context */
.form-row:has(input.native-date-picker) {
    position: relative;
    z-index: 10;
}

/* Form sections */
.create-auction-form .form-section {
    background: #fff;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 20px;
}

.create-auction-form .form-section h3 {
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 18px;
    color: #333;
}

.create-auction-form .form-row {
    margin-bottom: 15px;
}

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

.create-auction-form .form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.create-auction-form .form-row .required {
    color: #dc3545;
}

.create-auction-form .form-row input[type="text"],
.create-auction-form .form-row input[type="number"],
.create-auction-form .form-row input[type="date"],
.create-auction-form .form-row input[type="datetime-local"],
.create-auction-form .form-row textarea,
.create-auction-form .form-row select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.create-auction-form .form-row select:focus,
.create-auction-form .form-row input:focus,
.create-auction-form .form-row textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.create-auction-form .form-row-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.create-auction-form .form-row.half {
    margin-bottom: 0;
}

.create-auction-form .input-with-prefix {
    display: flex;
    align-items: stretch;
}

.create-auction-form .input-with-prefix .prefix {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    color: #666;
}

.create-auction-form .input-with-prefix input {
    border-radius: 0 4px 4px 0;
    flex: 1;
}

.create-auction-form .form-actions {
    display: flex;
    gap: 10px;
    padding-top: 10px;
}

.create-auction-form .field-description {
    margin: 5px 0 0;
    font-size: 12px;
    color: #888;
}

@media (max-width: 576px) {
    .create-auction-form .form-row-group {
        grid-template-columns: 1fr;
    }

    .create-auction-form .form-row.half {
        margin-bottom: 15px;
    }
}

/* ========================================
   My Auctions Header
   ======================================== */

.spotmart-auctions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.spotmart-auctions-header h3 {
    margin: 0;
}

/* ========================================
   Bids List (My Bids)
   ======================================== */

.spotmart-bids-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.spotmart-bid-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    gap: 20px;
}

@media (max-width: 768px) {
    .spotmart-bid-card {
        flex-direction: column;
        align-items: stretch;
    }
}

.spotmart-bid-card .bid-info {
    flex: 1;
    background: transparent;
    padding: 0;
    margin: 0;
}

.spotmart-bid-card .auction-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
}

.spotmart-bid-card .auction-title a {
    color: #333;
    text-decoration: none;
}

.spotmart-bid-card .auction-title a:hover {
    color: #0073aa;
}

.spotmart-bid-card .bid-details {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #666;
}

.spotmart-bid-card .bid-amount {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.spotmart-bid-card.winning .bid-amount {
    color: #27ae60;
}

.spotmart-bid-card.outbid .bid-amount {
    color: #e67e22;
}

.spotmart-bid-card .bid-actions {
    display: flex;
    gap: 10px;
}

/* ========================================
   Auctions List (My Auctions)
   ======================================== */

.spotmart-auctions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.spotmart-auction-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    gap: 20px;
}

@media (max-width: 768px) {
    .spotmart-auction-row {
        flex-direction: column;
        align-items: stretch;
    }
}

.spotmart-auction-row .auction-info {
    flex: 1;
}

.spotmart-auction-row .auction-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
}

.spotmart-auction-row .auction-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #666;
}

.spotmart-auction-row .auction-stats {
    display: flex;
    gap: 30px;
    align-items: center;
}

.spotmart-auction-row .stat-item {
    text-align: center;
}

.spotmart-auction-row .stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.spotmart-auction-row .stat-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
}

.spotmart-auction-row .auction-actions {
    display: flex;
    gap: 10px;
}

/* ========================================
   Pagination
   ======================================== */

.spotmart-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 30px;
}

.spotmart-pagination .page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.spotmart-pagination .page-number:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.spotmart-pagination .page-number.active {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

.spotmart-pagination .page-number.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   Real-time connection indicator
   ======================================== */

.sse-connection-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.sse-connection-status.connected {
    background: #d4edda;
    color: #155724;
}

.sse-connection-status.connecting {
    background: #fff3cd;
    color: #856404;
}

.sse-connection-status.disconnected {
    background: #f8d7da;
    color: #721c24;
}

.sse-connection-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.sse-connection-status.connected::before {
    background: #28a745;
}

.sse-connection-status.connecting::before {
    background: #ffc107;
    animation: pulse 1s infinite;
}

.sse-connection-status.disconnected::before {
    background: #dc3545;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========================================
   Button Styles
   ======================================== */

.button.button-primary {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

.button.button-primary:hover {
    background: #005a87;
    border-color: #005a87;
}

.button.button-secondary {
    background: #f5f5f5;
    border-color: #ddd;
    color: #333;
}

.button.button-secondary:hover {
    background: #e5e5e5;
}

.button.button-danger {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.button.button-danger:hover {
    background: #c82333;
    border-color: #c82333;
}

.button i {
    margin-right: 6px;
}

/* ========================================
   Toast Notifications
   ======================================== */

#spotmart-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.spotmart-toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    font-size: 14px;
    line-height: 1.4;
}

.spotmart-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.spotmart-toast-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.spotmart-toast-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.spotmart-toast-warning {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.spotmart-toast-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.spotmart-toast .toast-message {
    flex: 1;
    margin-right: 10px;
}

.spotmart-toast .toast-close {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
    padding: 0;
    color: inherit;
}

.spotmart-toast .toast-close:hover {
    opacity: 1;
}

/* ========================================
   Hide Tabs for Reverse Auction Products
   ======================================== */

.product-type-reverse_auction .reviews_tab,
.product-type-reverse_auction .seller_tab,
.product-type-reverse_auction #tab-title-reviews,
.product-type-reverse_auction #tab-title-seller,
body.single-product.product-type-reverse_auction .woocommerce-tabs .reviews_tab,
body.single-product.product-type-reverse_auction .woocommerce-tabs .seller_tab,
body.single-product.reverse-auction-product .reviews_tab,
body.single-product.reverse-auction-product .seller_tab,
body.single-product.reverse-auction-product #tab-title-reviews,
body.single-product.reverse-auction-product #tab-title-seller {
    display: none !important;
}

/* Also hide the tab panels */
.product-type-reverse_auction #tab-reviews,
.product-type-reverse_auction #tab-seller,
body.single-product.reverse-auction-product #tab-reviews,
body.single-product.reverse-auction-product #tab-seller {
    display: none !important;
}

/* ========================================
   Hide Bid Form on Shop/Archive Pages
   ======================================== */

/* Hide the full bid form container on shop pages */
body.archive .eael-product-reverse_auction .spotmart-bid-form-container,
body.post-type-archive-product .eael-product-reverse_auction .spotmart-bid-form-container,
body.tax-product_cat .eael-product-reverse_auction .spotmart-bid-form-container,
.woocommerce-shop .eael-product-reverse_auction .spotmart-bid-form-container,
.woocommerce ul.products li.product .spotmart-bid-form-container,
ul.products li.product-type-reverse_auction .spotmart-bid-form-container {
    display: none !important;
}

/* Hide Elementor add-to-cart wrapper bid form on shop pages */
body.archive .eael-single-product-add-to-cart .spotmart-bid-form-container,
body.post-type-archive-product .eael-single-product-add-to-cart .spotmart-bid-form-container,
.woocommerce-shop .eael-single-product-add-to-cart .spotmart-bid-form-container {
    display: none !important;
}

/* Show the View Details button on shop pages */
.reverse-auction-view-details {
    text-align: center;
    padding: 10px;
}

.reverse-auction-view-details .view-details-btn,
.eael-product-reverse_auction .view-details-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #0073aa;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.reverse-auction-view-details .view-details-btn:hover,
.eael-product-reverse_auction .view-details-btn:hover {
    background: #005a87;
    color: #fff !important;
}

/* ========================================
   Enhanced Countdown Timer Section
   ======================================== */

.auction-countdown-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    color: #fff;
}

.auction-countdown-section .countdown-title {
    margin: 0 0 15px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.countdown-timer-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-value {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 15px;
    min-width: 50px;
    display: inline-block;
}

.countdown-unit .countdown-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
    opacity: 0.8;
    font-weight: 500;
}

.countdown-separator {
    font-size: 32px;
    font-weight: 700;
    opacity: 0.6;
    padding: 0 5px;
    align-self: flex-start;
    margin-top: 5px;
}

.countdown-end-date {
    margin-top: 15px;
    font-size: 12px;
    opacity: 0.8;
}

.countdown-ended {
    padding: 20px;
}

.countdown-ended span {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Urgent countdown state (less than 1 hour) */
.auction-countdown-section.urgent {
    background: linear-gradient(135deg, #e53935 0%, #d32f2f 100%);
    animation: urgentPulse 1s ease-in-out infinite;
}

.auction-countdown-section.urgent .countdown-value {
    background: rgba(255, 255, 255, 0.3);
}

/* Warning countdown state (less than 1 day) */
.auction-countdown-section.warning {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

@keyframes urgentPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(229, 57, 53, 0);
    }
}

/* Responsive adjustments for countdown */
@media (max-width: 576px) {
    .auction-countdown-section {
        padding: 15px;
    }

    .countdown-value {
        font-size: 28px;
        padding: 8px 12px;
        min-width: 40px;
    }

    .countdown-separator {
        font-size: 24px;
    }

    .countdown-unit {
        min-width: 50px;
    }

    .countdown-unit .countdown-label {
        font-size: 10px;
    }
}

@media (max-width: 400px) {
    .countdown-value {
        font-size: 22px;
        padding: 6px 10px;
        min-width: 35px;
    }

    .countdown-separator {
        font-size: 20px;
        padding: 0 2px;
    }

    .countdown-unit {
        min-width: 40px;
    }
}
