/**
 * Single Product - Clean Design (Allegro-inspired)
 * Czytelny, minimalistyczny layout
 *
 * @package Keiraezo
 */

/* ============================================
   BASE LAYOUT
   ============================================ */

.single-product-clean {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem 3rem;
    display: block !important;
}

/* Breadcrumb - MUST be full width above gallery */
.single-product-clean > .product-breadcrumb {
    display: flex !important;
    width: 100% !important;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    grid-column: 1 / -1 !important;
}

.product-breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.product-breadcrumb a:hover {
    color: #ff9600;
}

.product-breadcrumb .sep {
    color: rgba(255, 255, 255, 0.3);
}

.product-breadcrumb .current-cat {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   MAIN PRODUCT SECTION
   ============================================ */

.product-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .product-main {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
        align-items: start;
    }
}

@media (min-width: 1024px) {
    .product-main {
        grid-template-columns: minmax(450px, 1fr) minmax(400px, 1fr);
        gap: 3rem;
    }
}

@media (min-width: 1200px) {
    .product-main {
        grid-template-columns: 55% 40%;
        gap: 5%;
    }
}

/* ============================================
   GALLERY
   ============================================ */

.product-gallery {
    position: relative;
    min-width: 0; /* Fix for grid overflow */
}

.product-gallery .woocommerce-product-gallery {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-gallery .woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    object-fit: contain;
    max-height: 550px;
}

.product-gallery .flex-control-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0;
    list-style: none;
}

.product-gallery .flex-control-thumbs li {
    aspect-ratio: 1;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}

.product-gallery .flex-control-thumbs li:hover,
.product-gallery .flex-control-thumbs li.flex-active-slide {
    border-color: #ff9600;
}

.product-gallery .flex-control-thumbs li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   PRODUCT INFO
   ============================================ */

.product-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0; /* Fix for grid overflow */
    max-width: 100%;
}

/* Badges */
.product-badges-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge-sale {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #dc2626;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0.25rem;
}

.badge-new {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background: #059669;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 0.25rem;
}

/* Product Name */
.product-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    margin: 0;
}

@media (min-width: 768px) {
    .product-name {
        font-size: 1.75rem;
    }
}

/* Rating Row */
.product-rating-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.product-rating-row .stars {
    display: flex;
    gap: 0.125rem;
    color: #fbbf24;
}

.product-rating-row .stars i {
    font-size: 0.875rem;
}

.product-rating-row .rating-value {
    font-weight: 600;
    color: white;
}

.product-rating-row .review-count {
    color: rgba(255, 255, 255, 0.5);
}

.product-rating-row .no-reviews {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

/* Price Section */
.product-price-section {
    padding: 1.25rem 1.5rem;
    background: rgba(255, 150, 0, 0.06);
    border: 1px solid rgba(255, 150, 0, 0.15);
    border-radius: 0.75rem;
}

.price-stock-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.price-block {
    flex: 1;
}

.product-price-section .price-current {
    font-size: 2.25rem;
    font-weight: 800;
    color: #ff9600;
    line-height: 1;
}

.product-price-section .price-current .woocommerce-Price-amount {
    color: #ff9600;
}

.product-price-section .price-old {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    text-decoration: none !important;
}

.product-price-section .price-old * {
    text-decoration: none !important;
}

.product-price-section .price-old .label {
    color: rgba(255, 255, 255, 0.5);
}

.product-price-section .price-old .amount {
    color: rgba(255, 255, 255, 0.6);
}

.product-price-section .price-old .amount .woocommerce-Price-amount,
.product-price-section .price-old .amount bdi,
.product-price-section .price-old .amount span.woocommerce-Price-currencySymbol {
    text-decoration: line-through !important;
}

.product-price-section .price-save {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8125rem;
    font-weight: 600;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-price-section .price-save i {
    font-size: 0.75rem;
}

/* Stock Info */
.stock-info {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    white-space: nowrap;
}

.stock-info i {
    font-size: 0.875rem;
}

.stock-info .fa-check-circle {
    color: #10b981;
}

.stock-info .fa-clock {
    color: #f59e0b;
}

.stock-info .fa-times-circle {
    color: #ef4444;
}

.stock-info .stock-text {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.stock-info .stock-qty {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8125rem;
}

/* Product Excerpt */
.product-excerpt {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.5rem;
    border-left: 3px solid rgba(255, 150, 0, 0.3);
}

.product-excerpt p {
    margin: 0;
}

/* ============================================
   ADD TO CART SECTION
   ============================================ */

.product-actions {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.product-actions form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.75rem;
}

.product-actions .quantity {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    overflow: hidden;
}

.product-actions .quantity .qty-minus,
.product-actions .quantity .qty-plus {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s;
}

.product-actions .quantity .qty-minus:hover,
.product-actions .quantity .qty-plus:hover {
    background: rgba(255, 150, 0, 0.2);
    color: #ff9600;
}

.product-actions .quantity input.qty {
    width: 3rem;
    height: 2.75rem;
    text-align: center;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

.product-actions .quantity input.qty:focus {
    outline: none;
}

.product-actions .single_add_to_cart_button {
    flex: 1;
    min-width: 180px;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff9600 0%, #ffb347 100%);
    color: #0a090f;
    border: none;
    border-radius: 0.625rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(255, 150, 0, 0.3);
}

.product-actions .single_add_to_cart_button:hover {
    background: linear-gradient(135deg, #ffb347 0%, #ff9600 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 150, 0, 0.4);
}

.product-actions .single_add_to_cart_button::before {
    content: '\f07a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.9rem;
}

/* ============================================
   DELIVERY INFO
   ============================================ */

.delivery-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.75rem;
    margin-top: 0.5rem;
}

/* Full width delivery info for standard products */
.delivery-info-fullwidth {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    justify-content: space-between;
}

.delivery-info-fullwidth .delivery-item {
    flex: 1;
    min-width: 180px;
    justify-content: center;
}

.delivery-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex: 1;
    min-width: 140px;
}

.delivery-item i {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 150, 0, 0.1);
    color: #ff9600;
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

.delivery-item div {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.delivery-item strong {
    font-size: 0.8125rem;
    font-weight: 600;
    color: white;
    line-height: 1.2;
}

.delivery-item span {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.2;
}

/* ============================================
   TABS SECTION
   ============================================ */

.product-tabs-section {
    margin-top: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    overflow: hidden;
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color 0.2s;
}

.tab-btn:hover {
    color: white;
}

.tab-btn.active {
    color: #ff9600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #ff9600;
}

.tabs-content {
    padding: 1.5rem;
}

.tab-panel {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.tab-panel h2,
.tab-panel h3,
.tab-panel h4 {
    color: white;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.tab-panel h2:first-child,
.tab-panel h3:first-child,
.tab-panel h4:first-child {
    margin-top: 0;
}

.tab-panel p {
    margin-bottom: 1rem;
}

.tab-panel .no-content {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

/* Attributes Table */
.attributes-table table {
    width: 100%;
    border-collapse: collapse;
}

.attributes-table th,
.attributes-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.attributes-table th {
    width: 35%;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.attributes-table td {
    color: white;
}

.sku-info {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.875rem;
}

.sku-info .label {
    color: rgba(255, 255, 255, 0.5);
    margin-right: 0.5rem;
}

.sku-info .value {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   RELATED PRODUCTS OVERRIDE
   ============================================ */

.single-product-clean .related.products {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.single-product-clean .related.products > h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
}

/* ============================================
   REVIEWS IN TAB
   ============================================ */

.tab-panel #reviews {
    padding: 0;
}

.tab-panel #reviews .woocommerce-Reviews-title {
    display: none;
}

.tab-panel .comment-form-rating {
    margin-bottom: 1rem;
}

.tab-panel .comment-form-rating label {
    color: rgba(255, 255, 255, 0.7);
}

.tab-panel .stars a {
    color: #fbbf24;
}

/* ============================================
   HIDE OLD MAGIC STYLES & FIX CONFLICTS
   ============================================ */

/* Hide all old magic elements */
.single-product-clean .product-gallery-magic,
.single-product-clean .product-header-card,
.single-product-clean .product-details-card,
.single-product-clean .trust-badges:not(.delivery-info .trust-badges),
.single-product-clean .product-reviews-section,
.single-product-clean .product-top-section,
.single-product-clean .product-gallery-column,
.single-product-clean .product-info-column {
    display: none !important;
}

/* Hide product name overlay on gallery image */
.product-gallery .woocommerce-product-gallery figcaption,
.product-gallery .woocommerce-product-gallery__image figcaption,
.product-gallery .gallery-item-title,
.product-gallery .flex-caption,
.single-product-clean .flex-caption,
.single-product-clean .woocommerce-product-gallery .flex-caption,
.woocommerce-product-gallery .flex-caption {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Fix: Hide the category link that appears separately */
.single-product-clean > .posted_in,
.single-product-clean > .product_meta,
.single-product-clean > span.posted_in {
    display: none !important;
}

/* Override any old grid/flex from woocommerce.css */
.single-product-clean {
    display: block !important;
}

/* Gallery wrapper - remove old magic styling */
.single-product-clean .product-gallery .woocommerce-product-gallery {
    background: rgba(255, 255, 255, 0.03) !important;
    border-radius: 1rem !important;
    padding: 1rem !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    position: relative !important;
}

/* Remove old gradient borders */
.single-product-clean .product-gallery .woocommerce-product-gallery::before,
.single-product-clean .product-gallery .woocommerce-product-gallery::after {
    display: none !important;
}

/* Gallery image - clean style */
.single-product-clean .product-gallery .woocommerce-product-gallery__image {
    background: transparent !important;
}

.single-product-clean .product-gallery .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: auto !important;
    max-height: 550px !important;
    object-fit: contain !important;
    border-radius: 0.5rem !important;
}

/* Thumbnails clean style */
.single-product-clean .product-gallery .flex-control-thumbs {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.75rem !important;
    margin-top: 1rem !important;
    padding: 0 !important;
    list-style: none !important;
}

.single-product-clean .product-gallery .flex-control-thumbs li {
    aspect-ratio: 1 !important;
    border-radius: 0.5rem !important;
    overflow: hidden !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    cursor: pointer !important;
    transition: border-color 0.2s !important;
}

.single-product-clean .product-gallery .flex-control-thumbs li:hover,
.single-product-clean .product-gallery .flex-control-thumbs li.flex-active-slide {
    border-color: #ff9600 !important;
}

.single-product-clean .product-gallery .flex-control-thumbs li img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* ============================================
   AUCTION LAYOUT - Two Column (Gallery | Sidebar)
   ============================================ */

/* Main auction grid */
.auction-product-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .auction-product-main {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: start;
    }
}

@media (min-width: 1024px) {
    .auction-product-main {
        grid-template-columns: minmax(400px, 1fr) minmax(380px, 480px);
        gap: 2.5rem;
    }
}

/* Auction gallery */
.auction-gallery {
    min-width: 0;
}

/* Auction sidebar (right column) */
.auction-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Auction type badge */
.auction-sidebar .auction-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #ff9600 0%, #ffb347 100%);
    color: #0a090f;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.375rem;
    width: fit-content;
}

.auction-sidebar .auction-type-badge i {
    font-size: 0.875rem;
}

/* Auction Bottom Row - Form left, Delivery right */
.auction-bottom-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 900px) {
    .auction-bottom-row {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: stretch;
    }
}

/* Auction delivery in bottom row - match form height */
.auction-bottom-row .auction-delivery {
    flex-direction: column;
    gap: 1rem;
    margin-top: 0;
    justify-content: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
}

.auction-bottom-row .delivery-item {
    min-width: auto;
    flex: none;
}

/* ============================================
   AUCTION STYLES - Clean Design (shared)
   ============================================ */

.auction-section-clean {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Current Bid Card - base styles */
.auction-current-bid {
    padding: 1.25rem 1.5rem;
    background: rgba(255, 150, 0, 0.06);
    border: 1px solid rgba(255, 150, 0, 0.15);
    border-radius: 0.75rem;
}

.auction-current-bid .bid-main {
    margin-bottom: 0.75rem;
}

.auction-current-bid .bid-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
}

.auction-current-bid .bid-amount {
    font-size: 2.25rem;
    font-weight: 800;
    color: #ff9600;
    line-height: 1;
}

.auction-current-bid .bid-amount .woocommerce-Price-amount {
    color: #ff9600;
}

.auction-current-bid .bid-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auction-current-bid .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
}

.auction-current-bid .stat-item i {
    color: #ff9600;
    font-size: 0.75rem;
}

/* Countdown Timer */
.auction-timer {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
}

.auction-timer .timer-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.75rem;
}

.auction-timer .timer-label i {
    color: #ff9600;
}

.auction-timer .timer-countdown {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Plugin countdown overrides */
.auction-timer .uwa_auction_product_countdown .countdown_section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 150, 0, 0.08);
    border: 1px solid rgba(255, 150, 0, 0.15);
    border-radius: 0.5rem;
    min-width: 54px;
}

.auction-timer .uwa_auction_product_countdown .countdown_amount {
    font-size: 1.375rem;
    font-weight: 700;
    color: #ff9600;
    line-height: 1;
}

.auction-timer .uwa_auction_product_countdown .countdown_section span:last-child {
    font-size: 0.5625rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-top: 0.25rem;
}

.auction-timer .timer-end {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Reserve Status */
.auction-reserve {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
}

.auction-reserve.reserve-met {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.auction-reserve.reserve-not-met {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

/* Bid Form */
.auction-bid-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bid-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bid-input-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.bid-input-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.625rem;
    transition: border-color 0.2s;
}

.bid-input-row:focus-within {
    border-color: #ff9600;
}

.bid-input-row .currency-symbol {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff9600;
}

.bid-input-row .bid-input {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-align: left;
    outline: none;
    width: 100%;
    -moz-appearance: textfield;
}

.bid-input-row .bid-input::-webkit-outer-spin-button,
.bid-input-row .bid-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bid-input-row .bid-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.bid-min-info {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.bid-min-info span {
    color: #ff9600;
    font-weight: 600;
}

/* Bid Submit Button */
.bid-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff9600 0%, #ffb347 100%);
    color: #0a090f;
    border: none;
    border-radius: 0.625rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(255, 150, 0, 0.3);
}

.bid-submit-btn:hover {
    background: linear-gradient(135deg, #ffb347 0%, #ff9600 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 150, 0, 0.4);
}

.bid-submit-btn i {
    font-size: 1.125rem;
}

/* Login Notice */
.auction-login-notice {
    text-align: center;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    padding-top: 0.5rem;
}

.auction-login-notice a {
    color: #ff9600;
    text-decoration: none;
    font-weight: 500;
}

.auction-login-notice a:hover {
    text-decoration: underline;
}

/* Status Messages */
.auction-status-message {
    text-align: center;
}

.auction-status-message > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    border-radius: 0.75rem;
}

.auction-status-message i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.auction-status-message strong {
    font-size: 1.125rem;
}

.auction-status-message span {
    font-size: 0.875rem;
    opacity: 0.8;
}

.auction-status-message .final-price {
    font-size: 1.25rem;
    font-weight: 700;
    opacity: 1;
    margin-top: 0.25rem;
}

.status-upcoming {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.status-failed {
    background: rgba(107, 114, 128, 0.1);
    border: 1px solid rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

.status-reserve-not-met {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.status-ended {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
}

/* Buy Now Section */
.auction-buy-now {
    margin-top: 0.5rem;
}

.buy-now-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.buy-now-divider::before,
.buy-now-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.buy-now-divider span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.buy-now-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 0.625rem;
    color: #10b981;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.buy-now-btn:hover {
    background: #10b981;
    color: white;
}

.buy-now-btn .buy-now-price {
    font-weight: 700;
}

.buy-now-btn .buy-now-price .woocommerce-Price-amount {
    color: inherit;
}

/* ============================================
   AUCTION FORM SECTION - Below Gallery
   ============================================ */

.auction-form-section {
    margin: 0;
}

.auction-form-panel {
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
}

/* Bid Form Layout - Horizontal */
.bid-inline-group {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.bid-inline-group .bid-input-section {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex-wrap: wrap;
}

@media (max-width: 400px) {
    .bid-inline-group .bid-input-section {
        flex-direction: column;
        align-items: stretch;
    }
}

.bid-inline-group .bid-input-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    white-space: nowrap;
}

.bid-inline-group .bid-input-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    transition: border-color 0.2s;
    min-width: 140px;
}

.bid-inline-group .bid-input-row:focus-within {
    border-color: #ff9600;
}

.bid-inline-group .currency-symbol {
    font-size: 1rem;
    font-weight: 600;
    color: #ff9600;
}

.bid-inline-group .bid-input {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    outline: none;
    width: 80px;
    -moz-appearance: textfield;
}

.bid-inline-group .bid-input::-webkit-outer-spin-button,
.bid-inline-group .bid-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bid-inline-group .bid-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.bid-inline-group .bid-min-info {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.bid-inline-group .bid-min-info span {
    color: #ff9600;
    font-weight: 600;
}

/* Submit Button */
.bid-inline-group .bid-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ff9600 0%, #ffb347 100%) !important;
    color: #0a090f !important;
    border: none !important;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(255, 150, 0, 0.3);
    white-space: nowrap;
}

.bid-inline-group .bid-submit-btn:hover {
    background: linear-gradient(135deg, #ffb347 0%, #ff9600 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 150, 0, 0.4);
}

.bid-inline-group .bid-submit-btn i {
    font-size: 0.875rem;
}

/* Buy Now Inline */
.auction-buy-now-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.buy-now-separator {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.buy-now-btn-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
    padding: 0.875rem 1.5rem;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 0.625rem;
    color: #10b981;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.buy-now-btn-inline:hover {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.buy-now-btn-inline i {
    font-size: 0.9375rem;
}

.buy-now-btn-inline .buy-now-price {
    font-weight: 700;
}

.buy-now-btn-inline .buy-now-price .woocommerce-Price-amount {
    color: inherit;
}

/* Auction Info Panel - Compact version for sidebar */
.auction-info-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auction-info-panel .auction-current-bid {
    padding: 1rem 1.25rem;
}

.auction-info-panel .bid-amount {
    font-size: 2rem;
}

.auction-info-panel .auction-timer {
    padding: 0.875rem 1rem;
}

.auction-info-panel .auction-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.auction-info-panel .stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.375rem;
}

.auction-info-panel .stat-item i {
    color: #ff9600;
    font-size: 0.75rem;
}

/* Hide plugin's add to watchlist in auction sidebar */
.auction-sidebar .uwa_add_to_watchlist,
.auction-sidebar .uwa-watchlist-button,
.auction-sidebar .woo-ua-watchlist-button,
.auction-form-panel .uwa_add_to_watchlist,
.auction-form-panel .uwa-watchlist-button,
.auction-form-section .uwa_add_to_watchlist {
    display: none !important;
}

/* Responsive adjustments for auction form */
@media (max-width: 599px) {
    .auction-form-panel {
        padding: 1.25rem 1.5rem;
    }

    .auction-buy-now-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .buy-now-separator {
        text-align: center;
    }
}

@media (max-width: 899px) {
    .auction-bottom-row .auction-delivery {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* ============================================
   SAVINGS BADGE - Modern Design
   ============================================ */

.savings-badge {
    margin-top: 1rem;
}

.savings-badge-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 0.75rem;
    position: relative;
    overflow: hidden;
}

/* Subtle shine effect */
.savings-badge-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: savings-shine 3s ease-in-out infinite;
}

@keyframes savings-shine {
    0%, 100% { left: -100%; }
    50% { left: 100%; }
}

.savings-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 0.625rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.savings-icon i {
    font-size: 1.25rem;
    color: white;
}

.savings-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    flex: 1;
}

.savings-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.savings-amount {
    font-size: 1.375rem;
    font-weight: 700;
    color: #10b981;
    line-height: 1.2;
}

.savings-amount .woocommerce-Price-amount {
    color: #10b981;
}

.savings-percent {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.875rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: 0.5rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .savings-badge-inner {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .savings-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .savings-icon i {
        font-size: 1rem;
    }

    .savings-amount {
        font-size: 1.125rem;
    }

    .savings-percent {
        font-size: 0.8125rem;
        padding: 0.375rem 0.75rem;
    }
}
