/* Isolated layout for the modern individual auction page. */
body.modern-auction-page { background: #f7f7f7; }
.modern-detail-page { padding: 30px 20px 46px; color: #171717; font-family: Arial,sans-serif; }
.modern-detail-container { width: 100%; max-width: 1220px; margin: 0 auto; }
.modern-detail-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; color: #737373; font-size: 12px; }
.modern-detail-breadcrumb a { color: #737373; text-decoration: none; }
.modern-detail-breadcrumb strong { color: #303030; font-weight: 600; }
.modern-detail-page h1 { margin: 0 0 22px; color: #151515; font: 700 30px/1.15 Arial,sans-serif; }
.modern-detail-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .94fr) minmax(270px, .8fr); gap: 18px; align-items: start; }
.modern-detail-card, .modern-product-description { box-sizing: border-box; border: 1px solid #e0e0e0; border-radius: 7px; background: #fff; }
.modern-product-gallery-card { overflow: hidden; }
.modern-product-zoom { position: relative; display: block; cursor: zoom-in; }
.modern-product-main-image { display: block; width: 100%; height: 375px; object-fit: contain; background: #f6f6f6; }
.modern-product-zoom-hint { position: absolute; right: 12px; bottom: 12px; padding: 7px 10px; border-radius: 4px; background: rgba(16,16,16,.82); color: #fff; font-size: 12px; font-weight: 700; opacity: 0; transition: opacity .18s ease; }
.modern-product-zoom:hover .modern-product-zoom-hint, .modern-product-zoom:focus .modern-product-zoom-hint { opacity: 1; }
.modern-product-thumbs { display: flex; gap: 8px; min-height: 78px; padding: 12px; overflow-x: auto; border-top: 1px solid #eee; }
.modern-product-thumb { display: block; flex: 0 0 64px; width: 64px; height: 64px; border: 1px solid #ddd; border-radius: 5px; overflow: hidden; cursor: zoom-in; }
.modern-product-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.modern-product-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 14px; }
.modern-product-actions a { padding: 9px 11px; border: 1px solid #ddd; border-radius: 4px; color: #333; font-size: 12px; font-weight: 700; text-decoration: none; }
.modern-product-actions a:hover { border-color: #c99a25; color: #9a6c05; }
.modern-bid-card { overflow: hidden; }
.modern-live-panel { padding: 20px; text-align: center; }
.modern-auction-state { display: inline-block; padding: 6px 9px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.modern-auction-state.is-live { background: #d92531; color: #fff; }
.modern-auction-state.is-future { background: #f2e7cc; color: #815c06; }
.modern-auction-state.is-closed { background: #e8e8e8; color: #666; }
.modern-start-label { margin: 10px 0 0; color: #6b6b6b; font-size: 14px; }
.modern-start-label strong { display: block; margin-top: 2px; color: #bb8716; font-size: 20px; }
.modern-current-price { padding: 16px 0 13px; border-bottom: 1px solid #ececec; text-align: left; }
.modern-current-price span, .modern-countdown-label { display: block; color: #6e6e6e; font-size: 13px; font-weight: 700; }
.modern-current-price strong { display: block; margin-top: 4px; color: #141414; font-size: 43px; line-height: 1; }
.modern-countdown-wrap { padding: 17px 0 9px; }
.modern-live-panel .timer { margin: 5px 0 0; color: #e12626; font-size: 39px; font-weight: 700; line-height: 1; }
.modern-current-bidder { display: grid; grid-template-columns: 42px 1fr; gap: 0 9px; align-items: center; max-width: 220px; margin: 4px auto 16px; text-align: left; }
.modern-current-bidder img { grid-row: 1 / 3; width: 42px; height: 42px; border-radius: 50%; background: #eee; }
.modern-current-bidder span { color: #777; font-size: 12px; }
.modern-current-bidder strong { color: #222; font-size: 14px; }
.modern-bid-action { margin-top: 7px; }
.modern-bid-action .bid-button-link, .modern-disabled-bid { display: block; box-sizing: border-box; width: 100%; padding: 15px 12px; border: 0; border-radius: 4px; background: #c99a25; color: #111; font-size: 17px; font-weight: 700; text-decoration: none; cursor: pointer; }
.modern-bid-action .bid-button-link:hover { background: #b78518; }
.modern-bid-action .bid-button-link strong { float: right; padding: 3px 7px; border-radius: 3px; background: #685c40; color: #fff; font-size: 12px; }
.modern-disabled-bid { background: #e9e9e9; color: #767676; cursor: default; }
.modern-bid-note { margin: 12px 0 0; color: #686868; font-size: 12px; line-height: 1.45; }
.modern-live-panel .bid-message { margin-top: 10px; }
.modern-price-summary { margin: 17px -20px -20px; padding: 14px 20px; border-top: 1px solid #e8e8e8; background: #fafafa; }
.modern-price-summary div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; text-align: left; }
.modern-price-summary span { color: #777; font-size: 13px; }
.modern-price-summary strong, .modern-price-summary a { color: #202020; font-size: 14px; font-weight: 700; text-decoration: none; }
.modern-price-summary a { color: #9a6b08; }
.modern-auction-features { display: flex; border-top: 1px solid #e9e9e9; background: #fcfcfc; }
.modern-auction-features span { flex: 1; padding: 11px 8px; border-right: 1px solid #e9e9e9; color: #666; font-size: 11px; line-height: 1.35; text-align: center; }
.modern-auction-features span:last-child { border-right: 0; }
.modern-auction-features b { display: block; margin-bottom: 3px; color: #a3720b; font-size: 12px; }
.modern-history-card { overflow: hidden; }
.modern-history-card h2 { margin: 0; padding: 17px; border-bottom: 1px solid #e6e6e6; color: #222; font-size: 18px; }
.modern-history-card table { width: 100%; border-collapse: collapse; font-size: 12px; }
.modern-history-card th { padding: 11px 10px; color: #777; text-align: left; }
.modern-history-card td { padding: 10px; border-top: 1px solid #eee; vertical-align: middle; }
.modern-history-user { display: flex; align-items: center; gap: 6px; }
.modern-history-user img { width: 23px; height: 23px; border-radius: 50%; background: #eee; }
.modern-no-bids { padding: 28px 10px !important; color: #999; text-align: center; }
.modern-auction-details { margin-top: 0; padding: 16px; border-top: 1px solid #e6e6e6; background: #fafafa; }
.modern-auction-details h3 { margin: 0 0 10px; color: #222; font-size: 15px; }
.modern-auction-details p { display: flex; justify-content: space-between; gap: 10px; margin: 7px 0; color: #777; font-size: 12px; }
.modern-auction-details strong { color: #333; font-weight: 600; text-align: right; }
.modern-product-description { margin: 20px 0 0; padding: 26px 30px; }
.modern-product-description h2 { margin: 0 0 16px; color: #171717; font-size: 23px; }
.modern-product-description-body { color: #444; font-size: 15px; line-height: 1.7; }
.modern-product-description-body p:first-child { margin-top: 0; }
.modern-product-description-body img { max-width: 100%; height: auto; }
.modern-gallery-open { overflow: hidden; }
.modern-gallery-modal { display: none; position: fixed; z-index: 10050; inset: 0; padding: 34px 20px; align-items: center; justify-content: center; background: rgba(0,0,0,.82); }
.modern-gallery-modal.is-open { display: flex; }
.modern-gallery-dialog { position: relative; display: flex; align-items: center; justify-content: center; width: min(100%, 1040px); min-height: 180px; max-height: 100%; }
.modern-gallery-image { display: block; max-width: 100%; max-height: calc(100vh - 100px); border-radius: 6px; background: #fff; object-fit: contain; }
.modern-gallery-close, .modern-gallery-nav { position: absolute; z-index: 1; display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer; color: #fff; font-family: Arial,sans-serif; }
.modern-gallery-close { top: -30px; right: 0; width: 34px; height: 34px; border-radius: 50%; background: #202020; font-size: 29px; line-height: 1; }
.modern-gallery-nav { top: 50%; width: 46px; height: 54px; border-radius: 4px; background: rgba(16,16,16,.75); font-size: 46px; line-height: 1; transform: translateY(-50%); }
.modern-gallery-prev { left: 12px; }
.modern-gallery-next { right: 12px; }
.modern-gallery-close:hover, .modern-gallery-nav:hover { background: #c99a25; }
.modern-gallery-count { position: absolute; bottom: -31px; left: 50%; margin: 0; padding: 5px 10px; border-radius: 3px; background: rgba(16,16,16,.75); color: #fff; font-size: 12px; font-weight: 700; transform: translateX(-50%); }
@media (max-width: 970px) { .modern-detail-grid { grid-template-columns: minmax(260px, 1fr) minmax(300px, 1fr); } .modern-history-card { grid-column: 1 / -1; } }
@media (max-width: 640px) { .modern-detail-page { padding: 16px 12px 84px; } .modern-detail-page h1 { font-size: 24px; } .modern-detail-breadcrumb { font-size: 11px; } .modern-detail-grid { display: block; } .modern-detail-card { margin-bottom: 14px; } .modern-product-main-image { height: 330px; } .modern-product-zoom-hint { opacity: 1; } .modern-live-panel { padding: 18px; } .modern-current-price strong { font-size: 38px; } .modern-live-panel .timer { font-size: 34px; } .modern-product-description { margin-top: 14px; padding: 20px; } .modern-product-description h2 { font-size: 21px; } .modern-gallery-modal { padding: 20px 10px; } .modern-gallery-image { max-height: calc(100vh - 86px); } .modern-gallery-nav { width: 38px; height: 48px; font-size: 38px; } .modern-gallery-prev { left: 3px; } .modern-gallery-next { right: 3px; } }
.modern-buy-now-link { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; padding: 12px 14px; border: 1px solid #c99a25; border-radius: 4px; color: #8a6209; font-size: 14px; font-weight: 700; text-decoration: none; }
.modern-buy-now-link:hover { background: #fff8e8; }
.modern-buy-now-link strong { color: #1a1a1a; font-size: 16px; }
.modern-bidbutler-entry { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; border-top: 1px solid #e6e6e6; background: #fffaf0; }
.modern-bidbutler-entry strong { display: block; color: #252525; font-size: 14px; }
.modern-bidbutler-entry span { display: block; margin-top: 3px; color: #70634c; font-size: 12px; }
.modern-bidbutler-open, .modern-bidbutler-actions button { border: 0; border-radius: 4px; background: #c79828; color: #171717; cursor: pointer; font: 700 13px Arial,sans-serif; }
.modern-bidbutler-open { flex: 0 0 auto; min-height: 38px; padding: 10px 14px; white-space: nowrap; }
.modern-bidbutler-open:hover, .modern-bidbutler-actions button:hover { background: #af821c; }
.modern-bidbutler-open:focus, .modern-bidbutler-actions button:focus { outline: 3px solid rgba(199,152,40,.28); outline-offset: 2px; }
.modern-bidbutler-modal { display: none; position: fixed; z-index: 10060; inset: 0; padding: 22px; align-items: center; justify-content: center; background: rgba(12,12,12,.62); }
.modern-bidbutler-modal.is-open { display: flex; }
.modern-bidbutler-dialog { position: relative; box-sizing: border-box; width: min(100%, 470px); padding: 30px; border-top: 4px solid #c79828; border-radius: 6px; background: #fff; box-shadow: 0 24px 64px rgba(0,0,0,.26); }
.modern-bidbutler-dialog h2 { margin: 0 36px 8px 0; color: #1a1a1a; font-size: 24px; }
.modern-bidbutler-intro { margin: 0 0 20px; color: #606060; font-size: 14px; line-height: 1.5; }
.modern-bidbutler-close { position: absolute; top: 12px; right: 13px; width: 33px; height: 33px; border: 0; border-radius: 50%; background: #f0f0f0; color: #555; cursor: pointer; font: 700 24px/1 Arial,sans-serif; }
.modern-bidbutler-close:hover { background: #e4e4e4; color: #111; }
.modern-bidbutler-form label { display: block; margin: 14px 0 6px; color: #303030; font: 700 13px Arial,sans-serif; }
.modern-bidbutler-form input { box-sizing: border-box; width: 100%; height: 43px; padding: 9px 11px; border: 1px solid #d8d8d8; border-radius: 4px; background: #fff; color: #222; font: 15px Arial,sans-serif; }
.modern-bidbutler-form input:focus { border-color: #c79828; outline: 0; box-shadow: 0 0 0 3px rgba(199,152,40,.16); }
.modern-bidbutler-balance { margin: 15px 0 0; color: #666; font-size: 13px; }
.modern-bidbutler-balance strong { color: #9a6b08; }
.modern-bidbutler-status { min-height: 18px; margin: 12px 0 0; font-size: 13px; line-height: 1.4; }
.modern-bidbutler-status.is-success { color: #218144; }
.modern-bidbutler-status.is-error { color: #bd3434; }
.modern-bidbutler-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.modern-bidbutler-actions a { color: #8f640d; font-size: 13px; font-weight: 700; text-decoration: none; }
.modern-bidbutler-actions button { padding: 12px 15px; }
body.modern-bidbutler-open { overflow: hidden; }
@media (max-width: 640px) { .modern-bidbutler-entry { align-items: flex-start; } .modern-bidbutler-entry span { max-width: 200px; } .modern-bidbutler-modal { padding: 12px; } .modern-bidbutler-dialog { padding: 25px 20px 20px; } .modern-bidbutler-dialog h2 { font-size: 21px; } .modern-bidbutler-actions { align-items: stretch; flex-direction: column-reverse; } .modern-bidbutler-actions a { padding: 9px 0; text-align: center; } .modern-bidbutler-actions button { width: 100%; } }
