:root {
    --primary-red: #c00000;
    --nav-bg: #1f1f1f;
    --bg-color: #f4f4f4;
    --text-dark: #222222;
    --text-meta: #777777;
    --price-green: #28a745;
    --price-orange: #f57c00;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: Arial, Helvetica, sans-serif; }
body { background-color: var(--bg-color); }

/* Header & Auth */
.top-header { background-color: #000; border-bottom: 2px solid var(--primary-red); }
.auth-bar { width: 100%; background-color: #111; padding: 10px 20px; border-bottom: 1px solid #333; }
.auth-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: flex-end; gap: 10px; }
.auth-container button { padding: 8px 16px; border: none; color: white; font-size: 13px; font-weight: bold; border-radius: 3px; cursor: pointer; transition: background 0.2s; }
.btn-login { background-color: var(--primary-red); }
.btn-login:hover { background-color: #a00000; }
.btn-register { background-color: #7a0000; }
.btn-register:hover { background-color: #5a0000; }


.banner-container {display: block;width: 100%;max-width: 1015px; height: 19.5vw;max-height: 190px;margin: 0 auto;background-image: url('images/header.jpg');background-size: cover;background-position: center;background-repeat: no-repeat;}

/*.banner-container { width: 100%; max-width: 985px; margin: 0 auto; display: block; background-image: url('images/header.jpg'); background-size: contain; background-position: center; background-repeat: no-repeat; aspect-ratio: 985 / 165; text-decoration: none; }*/

/*.banner-container { width: 100%; max-width: 1200px; margin: 0 auto; display: block; background-image: url('images/header.jpg'); background-size: cover; background-position: center; background-repeat: no-repeat; aspect-ratio: 12/1; text-decoration: none; }*/

/* Navigation */
.main-nav { background-color: var(--nav-bg); border-bottom: 1px solid #333; }
.main-nav ul { list-style: none; display: flex; max-width: 1200px; margin: 0 auto; padding: 0 20px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.main-nav ul::-webkit-scrollbar { display: none; }
.main-nav ul li a { color: #fff; text-decoration: none; padding: 15px 25px; display: block; font-size: 14px; font-weight: 500; }
.main-nav ul li.active, .main-nav ul li a:hover { background-color: var(--primary-red); }

/* Auction Grid (Index) */
.auction-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; max-width: 1200px; margin: 30px auto; padding: 0 20px; }
.auction-card { background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); display: flex; flex-direction: column; }
.image-container { position: relative; height: 220px; background-color: #e9e9e9; }
.image-container img { width: 100%; height: 100%; object-fit: contain; background-color: #000000}
.lot-badge { position: absolute; top: 10px; left: 10px; background-color: var(--primary-red); color: white; padding: 4px 8px; font-size: 13px; font-weight: bold; border-radius: 4px; }
.wishlist-icon { position: absolute; top: 12px; right: 12px; font-size: 18px; color: #000; cursor: pointer; }
.countdown-timer { position: absolute; bottom: 10px; right: 10px; background-color: rgba(0,0,0,0.7); color: white; padding: 4px 8px; font-size: 13px; border-radius: 4px; display: flex; align-items: center; gap: 5px; }
.card-body { padding: 20px; flex-grow: 1; }
.fowl-title { font-size: 18px; color: var(--text-dark); margin-bottom: 4px; }
.fowl-meta { font-size: 12px; color: var(--text-meta); margin-bottom: 20px; }
.pricing-table { display: flex; flex-direction: column; gap: 8px; }
.price-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.price-label { color: var(--text-dark); }
.price-value { font-weight: bold; }
.text-green { color: var(--price-green); }
.text-red { color: var(--primary-red); }
.text-orange { color: var(--price-orange); }
.bold-price { font-size: 16px; }
.btn-view-bid { width: 100%; background-color: var(--primary-red); color: white; border: none; padding: 15px; font-size: 14px; font-weight: bold; cursor: pointer; text-transform: uppercase; transition: background 0.2s; }
.btn-view-bid:hover { background-color: #a00000; }

/* =========================================================
   Details Page (View/Bid)
   ========================================================= */
.breadcrumb-container { max-width: 1200px; margin: 15px auto; padding: 0 20px; display: flex; justify-content: space-between; font-size: 13px; color: #555; }
.breadcrumb a, .pagination a { color: #555; text-decoration: none; }
.breadcrumb a:hover, .pagination a:hover { text-decoration: underline; color: var(--primary-red); }
.breadcrumb span { font-weight: bold; color: #333; }

.details-wrapper { max-width: 1200px; margin: 0 auto 50px; padding: 0 20px; }
.details-grid { display: grid; grid-template-columns: 350px 1fr 320px; gap: 30px; background: #fff; padding: 20px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); margin-bottom: 30px; }

/* Details: Images */
.main-image { position: relative; height: 350px; background: #e9e9e9; margin-bottom: 10px; border-radius: 4px; overflow: hidden; }
.main-image img { width: 100%; height: 100%; object-fit: contain; background-color: #000000 }
.lot-badge-large { position: absolute; top: 15px; left: 15px; background: var(--primary-red); color: white; padding: 6px 12px; font-weight: bold; border-radius: 4px; font-size: 16px; }
.thumbnails { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.thumbnails img { width: 100%; height: 80px; object-fit: cover; border-radius: 4px; cursor: pointer; border: 2px solid transparent; }
.thumbnails img:hover { border-color: var(--primary-red); }

/* Details: Specs */
.details-title { font-size: 24px; color: #222; margin-bottom: 5px; }
.details-meta { font-size: 13px; color: #777; margin-bottom: 20px; }
.action-links { display: flex; gap: 15px; margin-bottom: 20px; }
.btn-text { background: none; border: 1px solid #ddd; padding: 6px 12px; border-radius: 4px; cursor: pointer; color: #555; font-size: 13px; }
.btn-text:hover { background: #f9f9f9; }

.specs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs-table td { padding: 12px 0; border-bottom: 1px solid #eee; }
.specs-table tr td:first-child { color: #666; width: 140px; }
.specs-table tr td:last-child { color: #222; font-weight: 500; }

/* Details: Bidding Dashboard */
.bidding-dashboard { background: #fff; }
.timer-box { background: var(--primary-red); color: white; padding: 15px; border-radius: 4px; text-align: center; margin-bottom: 20px; }
.timer-title { font-size: 14px; margin-bottom: 10px; font-weight: bold; }
.timer-countdown { display: flex; justify-content: center; gap: 10px; }
.time-unit { display: flex; flex-direction: column; align-items: center; background: rgba(0,0,0,0.2); padding: 8px 12px; border-radius: 4px; min-width: 55px; }
.time-unit span { font-size: 24px; font-weight: bold; line-height: 1; }
.time-unit small { font-size: 10px; text-transform: uppercase; margin-top: 5px; }

.pricing-large { margin-bottom: 25px; }
.pricing-large .price-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.pricing-large .label { color: #555; font-size: 15px; }
.pricing-large .value { font-weight: bold; }

.input-group { position: relative; margin-bottom: 15px; }
.currency-symbol { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #555; font-weight: bold; }
.input-group input { width: 100%; padding: 15px 15px 15px 35px; border: 1px solid #ccc; border-radius: 4px; font-size: 16px; font-weight: bold; }
.btn-place-bid, .btn-buyout { width: 100%; padding: 15px; font-size: 16px; font-weight: bold; color: white; border: none; border-radius: 4px; cursor: pointer; margin-bottom: 10px; text-transform: uppercase; }
.btn-place-bid { background: var(--primary-red); }
.btn-place-bid:hover { background: #a00000; }
.btn-buyout { background: #fbc02d; color: #333; }
.btn-buyout:hover { background: #f9a825; }
.bid-increment { text-align: center; font-size: 12px; color: #777; }

/* Details: Tabs & Tables */
.tabs-section { background: #fff; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); overflow: hidden; }
.tabs-header { display: flex; border-bottom: 1px solid #eee; background: #fafafa; overflow-x: auto; }
.tab { padding: 15px 25px; font-size: 14px; font-weight: bold; color: #666; cursor: pointer; text-transform: uppercase; border-right: 1px solid #eee; }
.tab.active { background: var(--primary-red); color: white; }

.tabs-content { display: grid; grid-template-columns: 2fr 1fr; }
.bidders-table-wrapper { padding: 20px; border-right: 1px solid #eee; }
.bidders-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bidders-table th { text-align: left; padding: 10px; border-bottom: 2px solid #eee; color: #777; font-weight: 500; }
.bidders-table td { padding: 15px 10px; border-bottom: 1px solid #eee; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; border-radius: 50%; color: white; font-weight: bold; font-size: 12px; margin-right: 10px; }
.avatar.blue { background: #1976d2; }
.avatar.purple { background: #7b1fa2; }
.badge-leading { background: #2e7d32; color: white; padding: 4px 8px; border-radius: 3px; font-size: 11px; font-weight: bold; }

.recent-bids-sidebar { padding: 20px; }
.recent-bids-sidebar h3 { font-size: 16px; margin-bottom: 20px; color: #333; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.recent-list { list-style: none; }
.recent-list li { display: flex; align-items: center; font-size: 13px; margin-bottom: 15px; color: #555; }
.recent-list .action { margin-left: 10px; flex-grow: 1; }
.recent-list .time { color: #999; font-size: 11px; }

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .details-grid { grid-template-columns: 1fr; }
    .tabs-content { grid-template-columns: 1fr; }
    .bidders-table-wrapper { border-right: none; border-bottom: 1px solid #eee; }
}

@media (max-width: 768px) {
    .auth-container button { flex: 1; padding: 12px 10px; font-size: 14px; }
    .auction-grid { grid-template-columns: 1fr; }
}