/* Single Product Page Styles for Golf Cart Auctions */
/* Note: Bootstrap 3.4.1 - lightweight build with grid classes only */

/* Layout Structure */
.single-product-wrapper {
    padding: 30px 0;
}

/* Override WooCommerce default layouts */
.woocommerce div.product,
.woocommerce-page div.product {
    margin: 0;
}

.woocommerce div.product div.images,
.woocommerce-page div.product div.images,
.woocommerce div.product div.summary,
.woocommerce-page div.product div.summary {
    margin: 0;
    width: 100%;
    float: none;
}

/* WooCommerce Gallery Styling */
.woocommerce-product-gallery {
    position: relative;
    margin-bottom: 30px;
    width: 100% !important;
}

/* Fix gallery columns for mobile */
.woocommerce-product-gallery--columns-4 .flex-control-thumbs li {
    width: 24.2%;
    margin-right: 1%;
}

@media (max-width: 767px) {
    .woocommerce-product-gallery--columns-4 .flex-control-thumbs li {
        width: 32%;
        margin-right: 1.33%;
    }
    
    .woocommerce-product-gallery--columns-4 .flex-control-thumbs li:nth-child(3n) {
        margin-right: 0;
    }
}

.woocommerce-product-gallery__wrapper {
    margin: 0;
}

.woocommerce-product-gallery__image {
    width: 100%;
    text-align: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.woocommerce-product-gallery__image img {
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Gallery Thumbnails */
.flex-control-thumbs {
    margin: 15px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.flex-control-thumbs li {
    width: 80px !important;
    height: 80px;
    cursor: pointer;
    margin: 0 10px 10px 0 !important;
    float: none !important;
}

.flex-control-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 2px solid #e9ecef;
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.flex-control-thumbs img:hover,
.flex-control-thumbs img.flex-active {
    border-color: #991b1e;
    opacity: 1;
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    margin-bottom: 30px;
    background: #000;
    border-radius: 8px;
}

.video-container iframe,
.video-container embed,
.video-container object {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Golf Cart Details Below Gallery */
.golf-cart-details-below {
    margin-top: 20px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.golf-cart-details-below h4 {
    margin: 0;
    padding: 15px 20px;
    background: #f8f9fa;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e9ecef;
}

.details-table {
    padding: 0;
}

.detail-row {
    display: flex;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f1f1;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #666;
    min-width: 120px;
    flex-shrink: 0;
}

.detail-value {
    color: #333;
    flex: 1;
}

/* Features & Accessories Below Golf Cart Details */
.features-accessories-below {
    margin-top: 20px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

.features-accessories-below h4 {
    margin: 0;
    padding: 15px 20px;
    background: #f8f9fa;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e9ecef;
}

.features-list-below {
    padding: 15px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    display: inline-block;
    background: #991b1e;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* Product Info Sidebar - Focus on auction-critical info only */
.product-info-sidebar {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.product-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}


/* Auction Info */
.auction-section {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
    margin-top: 20px;
}

.auction-timer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.timer-label {
    font-size: 12px;
    color: #856404;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.timer-value {
    font-size: 20px;
    font-weight: 600;
    color: #991b1e;
}

/* Pricing */
.price-info {
    margin-bottom: 20px;
}

.current-bid {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.bid-amount {
    font-size: 28px;
    font-weight: 700;
    color: #991b1e;
}

.reserve-status {
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 10px;
}

.reserve-met {
    background: #d4edda;
    color: #155724;
}

.reserve-not-met {
    background: #f8d7da;
    color: #721c24;
}

/* Bid Form */
.bid-form {
    margin-top: 20px;
}

.bid-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.bid-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    transition: border-color 0.3s;
}

.bid-input:focus {
    outline: none;
    border-color: #991b1e;
}

.bid-button {
    width: 100%;
    padding: 12px 20px;
    background: #991b1e;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.bid-button:hover {
    background: #7a1518;
}

/* Tabs Navigation */
.product-tabs {
    margin-top: 40px;
}

.tab-nav {
    display: flex;
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 30px;
    gap: 0;
}

.tab-button {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    margin-bottom: -2px;
}

.tab-button:hover {
    color: #991b1e;
    background: transparent;
}

.tab-button.active {
    color: #991b1e;
    border-bottom-color: #991b1e;
}

.tab-content {
    display: none;
}

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

/* Specifications Table */
.specs-table {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.specs-group {
    margin-bottom: 0;
}

.specs-group-header {
    background: #f8f9fa;
    padding: 12px 20px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #dee2e6;
}

.specs-table table {
    width: 100%;
    margin: 0;
}

.specs-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #f1f1f1;
}

.specs-table td:first-child {
    font-weight: 500;
    color: #666;
    width: 40%;
}

.specs-table td:last-child {
    color: #333;
}

.specs-table tr:last-child td {
    border-bottom: none;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 14px;
}

.feature-icon {
    width: 20px;
    height: 20px;
    color: #991b1e;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .quick-specs {
        grid-template-columns: 1fr;
    }
    
    .product-info-sidebar {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    .single-product-wrapper {
        padding: 15px 0;
    }
    
    .product-gallery {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .main-image-container {
        max-width: 100%;
    }
    
    .thumb-item {
        flex: 0 0 60px;
        width: 60px;
        height: 60px;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .bid-amount {
        font-size: 24px;
    }
    
    .tab-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-button {
        padding: 10px 16px;
        font-size: 14px;
        white-space: nowrap;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .specs-table td {
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* Auction Plugin Styles */
.uwa_auction_product_data {
    margin-bottom: 20px;
}

.uwa_auction_product_data p {
    margin-bottom: 10px;
    font-size: 14px;
}

.uwa_auction_product_meta {
    margin-bottom: 15px;
}

.uwa_auction_product_meta strong {
    display: inline-block;
    min-width: 120px;
}

.uwa-auction-price,
.uwa_auction_current_bid,
.uwa_auction_high_bidder,
.uwa_auction_reserve_text {
    margin-bottom: 10px;
}

.uwa-auction-price .woocommerce-Price-amount,
.uwa_auction_current_bid .woocommerce-Price-amount {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #991b1e !important;
    display: block !important;
    margin: 10px 0 !important;
}

/* Main price display */
.woocommerce-Price-amount {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #991b1e !important;
}

/* Reserve price inline display */
.checkreserve .woocommerce-Price-amount,
.uwa_auction_reserve_not_met .woocommerce-Price-amount,
.uwa_auction_reserve_met .woocommerce-Price-amount {
    display: inline !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    color: inherit !important;
    margin: 0 !important;
}

/* Currency symbol for main auction prices only */
.uwa-auction-price .woocommerce-Price-currencySymbol,
.uwa_auction_current_bid .woocommerce-Price-currencySymbol {
    font-size: 28px !important;
    font-weight: 700 !important;
}

/* Normal currency symbol for inline prices */
.checkreserve .woocommerce-Price-currencySymbol,
.uwa_auction_reserve_not_met .woocommerce-Price-currencySymbol,
.uwa_auction_reserve_met .woocommerce-Price-currencySymbol {
    font-size: inherit !important;
    font-weight: inherit !important;
}

/* Auction text labels */
.woo-ua-current.auction,
.woo-ua-current,
span.woo-ua-current {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #666 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 5px !important;
    display: inline !important;
}

/* Ensure proper inline flow for auction price display */
.woocommerce-Price-amount {
    margin-left: 8px !important;
}

/* Custom Bid Section */
.uwa-custom-bid {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.uwa-custom-bid h5 {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
}

/* Auction Form */
.uwa_auction_form {
    margin-top: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Bid Input Section */
.uwa_auction_form .quantity {
    position: relative;
    margin-bottom: 15px;
}

.uwa_auction_form .uwa_currency {
    position: absolute !important;
    left: 15px !important;
    top: 12px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #666 !important;
    z-index: 2 !important;
    background-color: transparent !important;
    height: auto !important;
    width: auto !important;
    text-align: left !important;
    display: inline !important;
    align-items: initial !important;
    justify-content: initial !important;
    padding: 0 !important;
    right: auto !important;
    bottom: auto !important;
    line-height: 1 !important;
}

.uwa_auction_form #uwa_bid_value {
    width: 100% !important;
    padding: 12px 15px 12px 35px !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 6px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    background: #fff !important;
    transition: border-color 0.3s !important;
}

.uwa_auction_form #uwa_bid_value:focus {
    outline: none !important;
    border-color: #991b1e !important;
    box-shadow: 0 0 0 3px rgba(153, 27, 30, 0.1) !important;
}

/* Bid Button */
.uwa_auction_form #placebidbutton {
    width: 100% !important;
    padding: 14px 20px !important;
    background: #991b1e !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.3s !important;
    margin-bottom: 15px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.2 !important;
    text-align: center !important;
}

.uwa_auction_form #placebidbutton:hover {
    background: #7a1518 !important;
}

/* Hide default WooCommerce notices on auction pages - we use custom styling */
.single-product .woocommerce-notices-wrapper {
    display: none !important;
}

.single-product .woocommerce-notices-wrapper .woocommerce-error {
    display: none !important;
}

/* WooCommerce Error Messages */
.woocommerce-error,
.aoc-auction-error {
    background: #fef2f2 !important;
    border: 1px solid #fca5a5 !important;
    color: #dc2626 !important;
    padding: 15px !important;
    margin: 15px 0 !important;
    border-radius: 8px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 999 !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
}

.woocommerce-error li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-error a {
    color: #991b1e !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}

.woocommerce-notices-wrapper {
    display: block !important;
    margin-bottom: 20px !important;
}

/* Bid Hint Section */
.uwa_inc_price_hint {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 18px 15px !important;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.6;
}

/* Override existing padding-top rule */
.uwa_auction_form .uwa_inc_price_hint,
form.uwa_auction_form + .uwa_inc_price_hint {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}

.uwa_inc_price_hint .uwa_inc_price {
    color: #856404;
    font-weight: 500;
}

.uwa_inc_price_hint .woocommerce-Price-amount {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #991b1e !important;
    display: inline !important;
    margin: 0 !important;
}

.uwa_inc_price_hint .woocommerce-Price-currencySymbol {
    font-size: 13px !important;
    font-weight: 600 !important;
}

.uwa_auction_form .qty,
.uwa_auction_form input[type="text"],
.uwa_auction_form input[type="number"] {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.uwa_auction_form .qty:focus,
.uwa_auction_form input[type="text"]:focus,
.uwa_auction_form input[type="number"]:focus {
    outline: none;
    border-color: #991b1e;
}

.uwa_auction_form button[type="submit"],
.uwa_auction_form .single_add_to_cart_button,
.uwa_auction_form .button {
    width: 100%;
    padding: 12px 20px;
    background: #991b1e;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.uwa_auction_form button[type="submit"]:hover,
.uwa_auction_form .single_add_to_cart_button:hover,
.uwa_auction_form .button:hover {
    background: #7a1518;
}

/* Countdown Timer */
.uwa-auction-time {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.uwa-auction-time .uwa-main-auction-product-loop {
    font-size: 20px;
    font-weight: 600;
    color: #991b1e;
}

/* Hide timezone display */
.uwa_auction_product_data p:contains("Timezone") {
    display: none !important;
}

/* Hide non-critical auction metadata */
.uwa_auction_product_data .timezone-display {
    display: none !important;
}

/* Style auction data more cleanly */
.uwa_auction_product_data {
    margin-bottom: 20px;
}

/* Hide SKU on product pages */
.product_meta .sku_wrapper,
.product_meta span.sku_wrapper,
.single-product .product_meta .sku_wrapper {
    display: none !important;
}

.uwa_auction_product_data p {
    margin-bottom: 10px;
    font-size: 14px;
}

.uwa_auction_product_data p:last-child {
    margin-bottom: 0;
}

/* Clean up auction metadata display */
.uwa_auction_product_meta {
    margin-bottom: 15px;
}

.uwa_auction_product_meta p {
    margin-bottom: 8px;
}

/* Hide timezone text specifically */
.single-product-wrapper .entry-summary p {
    font-size: 14px;
}

.single-product-wrapper .entry-summary p:has-text("Timezone") {
    display: none;
}

.uwa_auction_product_data .checkreserve {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 5px;
}

.uwa_auction_product_data .checkreserve.met {
    background: #d4edda;
    color: #155724;
}

.uwa_auction_product_data .checkreserve.not-met {
    background: #f8d7da;
    color: #721c24;
}

/* Bootstrap 3 Missing Utility Classes */
.text-muted {
    color: #6c757d;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-5 {
    margin-top: 3rem;
}

.d-none {
    display: none;
}

.d-block {
    display: block;
}

/* Fix clearfix for rows */
.single-product-wrapper .row:before,
.single-product-wrapper .row:after {
    display: table;
    content: " ";
}

.single-product-wrapper .row:after {
    clear: both;
}

/* Ensure columns float properly */
.single-product-wrapper .col-lg-7,
.single-product-wrapper .col-lg-5 {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

@media (min-width: 1200px) {
    .single-product-wrapper .col-lg-7 {
        float: left !important;
        width: 58.33333333% !important;
    }
    
    .single-product-wrapper .col-lg-5 {
        float: left !important;
        width: 41.66666667% !important;
    }
}

/* Override WooCommerce specific product layout */
.single-product-wrapper .woocommerce-product-gallery {
    float: none !important;
    width: 100% !important;
    margin: 0 0 30px 0 !important;
}

.single-product-wrapper .entry-summary {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Fix WooCommerce tabs */
.woocommerce-tabs {
    clear: both;
    width: 100%;
    margin-top: 40px;
}

/* WooCommerce Tabs Styling */
.woocommerce-tabs .wc-tabs {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 2px solid #dee2e6;
    display: flex;
    gap: 0;
}

.woocommerce-tabs .wc-tabs li {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

.woocommerce-tabs .wc-tabs li a {
    display: block;
    padding: 12px 24px;
    text-decoration: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    background: none;
    transition: all 0.3s;
    margin-bottom: -2px;
}

.woocommerce-tabs .wc-tabs li a:hover {
    color: #991b1e;
    background: transparent;
}

.woocommerce-tabs .wc-tabs li.active a {
    color: #991b1e;
    border-bottom-color: #991b1e;
    background: none;
}

.woocommerce-tabs .wc-tab {
    display: none;
    padding: 30px 0;
}

.woocommerce-tabs .wc-tab.active {
    display: block;
}

/* Override WooCommerce tab panel styling */
.woocommerce-tabs .panel {
    padding: 30px 0;
    border: none;
    background: none;
    box-shadow: none;
}