
html, body {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background:#ffffff !important;
  background-color:#ffffff !important;
}

header {
  margin-top: 0 !important;
  padding-top: 0 !important;
  position: relative;
  top: 0 !important;
}

* {
  box-sizing: border-box;
}

body { margin:0 !important; padding:0 !important; font-family: Arial,sans-serif; background:#ffffff !important; background-color:#ffffff !important; }
.main-content { 
    padding: 0 !important; 
    padding-top: 0 !important;
    margin: 0 !important; 
    margin-top: 0 !important;
    max-width:100%; 
    width:100%; 
}

/* ===== Auction Row (eBay-style: 4 visible columns, horizontal scroll for more) ===== */
.auction-row-wrapper { 
  position:relative; 
  margin-bottom:20px; 
  overflow: visible; 
  display: flex;
  justify-content: center;
  width: 100%;
}
.auction-row {
  display: flex !important; /* Flex for horizontal scrolling */
  gap: 20px !important; /* Increased gap for better spacing */
  overflow-x: auto !important; /* Enable horizontal scrolling */
  overflow-y: hidden !important;
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
  width: 100%;
  max-width: 1200px; /* Center and constrain width */
  margin: 0 auto; /* Center the row */
  padding: 0 20px; /* Side padding */
  box-sizing: border-box !important;
  flex-wrap: nowrap !important; /* Prevent wrapping - keep horizontal scroll */
}
/* Hide scrollbar completely - only arrows visible for scrolling */
.auction-row::-webkit-scrollbar { 
    height: 0 !important; 
    width: 0 !important; 
    background: transparent !important; 
    display: none !important;
}
.auction-row { 
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE/Edge */
}

.auction-item {
    flex: 0 0 280px !important; /* Fixed width: eBay-style 4 visible columns (280px × 4 = 1120px + gaps) */
    width: 280px !important; /* Uniform width for consistent cards */
    height: auto; /* Auto height for flexible content */
    min-height: 320px; /* Optimized compact height - modern look */
    background:#ffffff !important;
    border:1px solid #e0e0e0 !important;
    border-radius:10px;
    box-shadow:0 4px 15px rgba(0,0,0,0.1);
    padding:8px;
    text-align:center;
    cursor:pointer;
    transition:transform 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}
.auction-item .wishlist-btn {
    position: absolute;
    top: 12px; /* Not touching top edge */
    right: 12px; /* Not touching right edge */
    background: transparent; /* No circle background */
    border: none; /* No circle border */
    border-radius: 0; /* No circle */
    width: auto; /* No fixed width */
    height: auto; /* No fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
    box-shadow: none; /* No shadow */
    font-size: 20px;
    color: #333; /* Default color */
    padding: 6px; /* Increased for better clickable area and spacing */
}
.auction-item .wishlist-btn:hover {
    background: transparent; /* Keep transparent */
    color: #dc3545; /* Heart turns red on hover */
    transform: none; /* No scale */
}
.auction-item .wishlist-btn.in-wishlist {
    background: transparent; /* No circle */
    color: #dc3545; /* Red when in wishlist */
}
.auction-item .wishlist-btn.in-wishlist i {
    animation: heartBeat 0.3s ease;
}
@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}
.auction-item img { width:100%; height:135px; object-fit:cover; border-radius:8px; margin-bottom:5px; flex-shrink: 0; }
.auction-item h3 { font-size:0.86em; color:#004080; margin-bottom:4px; font-weight:600; line-height:1.2; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }

/* ===== Badges (Condition, Verified, Shipping) ===== */
.auction-badges { 
    display:flex; 
    flex-wrap:nowrap; /* Force badges to stay on ONE line */
    gap:3px; /* Reduced gap to fit better */
    margin-bottom:4px; 
    justify-content:center;
    overflow:hidden; /* Hide overflow if too long */
}
.auction-badge { 
    font-size:7.5px; /* Slightly smaller to fit better */
    padding:2px 4px; /* Slightly smaller padding */
    border-radius:3px; 
    font-weight:600; 
    text-transform:uppercase;
    white-space:nowrap; /* Prevent text wrapping */
    flex-shrink:1; /* Allow badges to shrink if needed */
}
.badge-condition { background:#e8f5e9; color:#2e7d32; }
.badge-verified { background:#fff3e0; color:#e65100; }
.badge-shipping { background:#e3f2fd; color:#1565c0; }
.badge-watchers { background:#f3e5f5; color:#7b1fa2; }

/* ===== Current Bid Display ===== */
.auction-price { margin:3px 0; }
.current-bid { font-size:1.1em; font-weight:700; color:#dc3545; margin-bottom:1px; }
.bid-count { font-size:0.7em; color:#666; }

/* ===== Enhanced Timer ===== */
.auction-item .timer { 
    font-size:0.75em; 
    color:#dc3545; 
    font-weight:700; 
    margin-bottom:5px;
    padding:3px 5px;
    background:#fff3cd;
    border-radius:4px;
    display:inline-block;
}
.auction-item .timer.ending-soon { 
    background:#f8d7da; 
    color:#721c24;
    animation: pulse 1s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ===== Modern Small Buttons ===== */
.auction-actions { 
    display:flex; 
    gap:4px; 
    margin:6px 0; 
    justify-content:center; 
}
/* Single button (only Bid) - same size as individual button in two-button layout, centered */
.auction-actions.single-button {
    justify-content: center;
}
.auction-actions.single-button .bid-btn {
    flex: 0 0 calc(50% - 2px); /* Same width as individual button (50% minus half gap) */
    max-width: calc(50% - 2px); /* Match the width of one button when there are two */
    margin: 0 auto; /* Center it */
}
.auction-item .bid-btn, .auction-item .buy-now-btn { 
    flex:1;
    background:linear-gradient(135deg, #007bff, #0056b3); 
    color:#fff; 
    border:none; 
    border-radius:6px; 
    padding:5px 7px; /* Slightly smaller padding */
    cursor:pointer; 
    font-weight:600; 
    font-size:0.8em; /* Slightly smaller font */
    transition:all 0.2s ease;
    box-shadow:0 2px 4px rgba(0,123,255,0.2);
    display:flex;
    align-items:center;
    justify-content:center;
    gap:3px; /* Slightly smaller gap */
}
.auction-item .bid-btn:hover { 
    background:linear-gradient(135deg, #0056b3, #004085);
    transform:translateY(-1px);
    box-shadow:0 3px 6px rgba(0,123,255,0.3);
}
.auction-item .buy-now-btn {
    background:linear-gradient(135deg, #28a745, #20893a);
    box-shadow:0 2px 4px rgba(40,167,69,0.2);
}
.auction-item .buy-now-btn:hover {
    background:linear-gradient(135deg, #20893a, #1e7e34);
    transform:translateY(-1px);
    box-shadow:0 3px 6px rgba(40,167,69,0.3);
}
.auction-item .bid-btn i, .auction-item .buy-now-btn i {
    font-size:0.9em;
}

/* ===== Watchers & Seller Info ===== */
.auction-item .winning { font-size:0.72em; color:#555; display:flex; align-items:center; justify-content:center; gap:3px; margin-bottom:3px; }
.auction-item .winning img { width:14px; height:14px; border-radius:50%; object-fit:cover; }
.auction-item .watchers-count { font-size:0.68em; color:#888; margin-bottom:3px; display:flex; align-items:center; justify-content:center; gap:3px; }
.auction-item .retail, .auction-item .vendor { font-size:0.68em; color:#777; margin-bottom:2px; }
.auction-item .vendor img.flag { width:12px; height:12px; border-radius:50%; object-fit:cover; margin-left:3px; }

/* ===== Row Arrows (Capsule Style - Same as Fundraising/Sales/Gallery) ===== */
.row-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 6px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(240,240,240,0.9)) !important;
    color: #000 !important;
    font-size: 8px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    z-index: 100 !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease, all 0.3s ease !important;
    border: none !important;
    border-radius: 3px !important; /* Capsule style */
    box-shadow: 0 2px 6px rgba(0,0,0,0.25) !important;
    backdrop-filter: blur(10px) !important;
    line-height: 1 !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
}
.auction-row-wrapper:hover .row-arrow {
    opacity: 1 !important;
}
.row-arrow:hover {
    background: linear-gradient(135deg, rgba(0,123,255,0.9), rgba(0,86,179,0.85)) !important;
    color: #fff !important;
    box-shadow: 0 3px 8px rgba(0,123,255,0.4) !important;
}
/* Position arrows next to cards (closer, not touching) - same as fundraising */
/* Cards are 280px wide, 4 visible = ~1180px, row max-width 1200px, centered */
.row-arrow.left { 
    left: calc((100% - 1200px) / 2 + 5px) !important; /* 5px from left edge of row */
}
.row-arrow.right { 
    right: calc((100% - 1200px) / 2 + 5px - 18px) !important; /* 5px from right edge of row - 18px to move away from card edge */
}
/* Fallback for smaller screens - position at row edges */
@media (max-width: 1200px) {
    .row-arrow.left {
        left: 5px !important; /* Close to left edge of viewport */
    }
    .row-arrow.right {
        right: calc(5px - 18px) !important; /* Close to right edge, moved 18px away from card */
    }
}

/* ===== Pagination ===== */
/* Pagination (Modern Minimal - Google/Amazon Style) */
.pagination{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;margin:25px 0;gap:4px;}
.pagination a,.pagination button,.pagination span{margin:0;padding:6px 10px;min-width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;background:transparent;color:#111;cursor:pointer;border:none;border-radius:4px;font-size:14px;font-weight:400;transition:all 0.2s ease;text-decoration:none;}
.pagination a:hover,.pagination button:hover{background:#f0f0f0;color:#007bff;}
.pagination a.active,.pagination button.active{background:#007bff;color:#fff;font-weight:500;}
.pagination .page-arrow{color:#666;font-size:18px;padding:6px 8px;}
.pagination .page-arrow:hover{color:#007bff;background:#f5f5f5;}
.pagination .page-arrow.disabled{opacity:0.3;cursor:not-allowed;pointer-events:none;}
.pagination .ellipsis{cursor:default;pointer-events:none;color:#999;}
.pagination .page-jump{display:flex;align-items:center;gap:4px;margin-left:8px;padding:4px 8px;background:#f8f8f8;border-radius:6px;}
.pagination .page-jump input{width:50px;padding:4px 6px;border:1px solid #ddd;border-radius:4px;text-align:center;font-size:13px;outline:none;}
.pagination .page-jump input:focus{border-color:#007bff;}
.pagination .page-jump button{padding:4px 10px;background:#007bff;color:#fff;font-size:12px;min-width:auto;height:28px;}
.pagination .page-jump button:hover{background:#0056b3;}

/* Responsive (eBay-style: 4→3→2 visible columns, still scrollable) */
@media(max-width:1024px){ 
    .auction-item {
        flex: 0 0 240px !important; /* 3 visible columns on tablet (240px × 3 = 720px + gaps) */
        width: 240px !important;
    }
    .auction-item img{height:130px;} 
}
@media(max-width:768px){ 
    .auction-item {
        flex: 0 0 200px !important; /* 2 visible columns on mobile (200px × 2 = 400px + gap) */
        width: 200px !important;
    }
    .auction-item img{height:110px;} 
    .row-arrow {
        width: 6px !important;
        height: 40px !important;
        font-size: 8px !important;
        border-radius: 3px !important;
    }
    .row-arrow.left {
        left: 200px !important; /* Closer to cards on mobile */
    }
    .row-arrow.right {
        right: 200px !important; /* Closer to cards on mobile */
    }
}
