/**
 * CS2 Web Prototype
 * Design System: Antique Bronze & Black Leather
 */

:root {
    /* Colors */
    --bg-main: #0a0a09; /* Deep Antique Black Leather Base */
    --bg-sidebar: #100f0d; /* Slightly lighter leather for separation */
    --bg-card: #151310; /* Dark brown-black for cards */
    --bg-card-hover: #1c1914;
    
    --accent-primary: #b8860b; /* Tarnished Antique Bronze/Gold */
    --accent-primary-hover: #daa520; /* Golden Brown Specular Highlight */
    --accent-secondary: #8b6508; /* Darker vintage gold */
    --accent-glow: rgba(184, 134, 11, 0.4); /* Bronze glow */
    
    --text-primary: #e6dac3; /* Warm, aged paper/gold text */
    --text-secondary: #a39070; /* Muted vintage text */
    --text-muted: #6b5c43;
    
    --border-light: rgba(184, 134, 11, 0.15); /* Bronze tint borders */
    --border-highlight: rgba(184, 134, 11, 0.4);
    
    /* Wears (CS Quality Colors - slightly muted/vintage) */
    --wear-fn: #00e000;
    --wear-mw: #00d099;
    --wear-ft: #e0e000;
    --wear-ww: #e09900;
    --wear-bs: #b34732;
    
    /* Shadows & Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    --shadow-glow: 0 0 15px var(--accent-glow);
    --shadow-inset: inset 0 2px 10px rgba(0,0,0,0.8);
    
    /* Layout */
    --sidebar-width: 340px;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

/* Reset & BaseStyles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    /* Simulated fine grain black leather texture */
    background-color: var(--bg-main);
    background-image: radial-gradient(circle at 50% 0%, #161512 0%, #0a0a09 100%), url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.price,
.logo-text {
  font-family: "Outfit", sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

input,
button,
select {
  font-family: inherit;
  outline: none;
  border: none;
}

button {
  cursor: pointer;
  background: transparent;
}

/* App Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  overflow-y: auto;
}

/* Logo Area (Text Emblem) */
.logo-container {
    padding: 40px 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid var(--border-light);
    background: radial-gradient(circle at center, rgba(184, 134, 11, 0.15) 0%, transparent 70%);
    box-shadow: 0 5px 20px -5px rgba(0,0,0,0.9);
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--accent-primary);
    text-transform: uppercase;
    text-align: center;
    /* Creating the raised antique bronze effect with multiple shadows */
    text-shadow: 
        1px 1px 0px #ffe599, /* Specular highlight on top left */
        -1px -1px 0px rgba(0,0,0,0.8), /* Inner shadow */
        3px 3px 5px rgba(0,0,0,0.9), /* Deep base drop shadow */
        0 0 20px rgba(184, 134, 11, 0.4); /* Bronze ambient glow */
    background: linear-gradient(180deg, #ffdf80 0%, var(--accent-primary) 40%, #5c4308 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; /* Makes gradient visible inline */
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.7));
    transition: var(--transition-normal);
}

.logo-text:hover {
    transform: scale(1.02);
    filter: drop-shadow(3px 6px 10px rgba(0,0,0,0.9));
}

/* Filters */
.filters-container {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Inputs */
.search-input-wrapper,
.float-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  transition: var(--transition-normal);
}

.search-input-wrapper:focus-within,
.float-input-wrapper:focus-within {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.search-input-wrapper i {
    position: absolute;
    left: 14px;
    color: var(--accent-primary);
}

.search-input-wrapper input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
}

.float-input-wrapper input {
    width: 100%;
    padding: 12px 14px;
    background: transparent;
    color: var(--text-primary);
    font-size: 14px;
}

/* Price Inputs */
.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-inputs input {
    flex: 1;
    width: 100%;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-size: 14px;
    text-align: center;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-inset);
}

.price-inputs input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px var(--accent-glow), var(--shadow-inset);
}

.price-inputs .separator {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Store Tabs */
.store-tabs {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--border-radius-md);
    padding: 4px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-inset);
}

.store-tab {
    flex: 1;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-normal);
}

.store-tab.active {
    background: linear-gradient(180deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
    color: #000;
    box-shadow: var(--shadow-sm);
    text-shadow: 0 1px 1px rgba(255,255,255,0.3);
}

.store-tab:hover:not(.active) {
    color: var(--accent-primary);
    background: rgba(184, 134, 11, 0.05);
}

/* Wear Buttons */
.wear-buttons {
    display: flex;
    gap: 6px;
}

.wear-btn {
    flex: 1;
    padding: 8px 0;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-inset);
}

.wear-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.wear-btn.active {
    background: linear-gradient(180deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
    color: #000;
    border-color: var(--accent-primary);
    text-shadow: 0 1px 1px rgba(255,255,255,0.3);
    box-shadow: none;
}

/* External Links */
.external-links {
    padding: 24px;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(0deg, rgba(184, 134, 11, 0.05) 0%, transparent 100%);
}

.external-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border-radius: var(--border-radius-md);
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition-normal);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: var(--shadow-md);
}

.dmarket-btn {
    border-left: 3px solid #b08dff;
}

.dmarket-btn:hover {
    background: rgba(144, 98, 245, 0.1);
    border-color: #b08dff;
}

.dmarket-btn i { color: #b08dff; text-shadow: 0 0 5px rgba(144, 98, 245, 0.5); }

.csfloat-btn {
    border-left: 3px solid #6da2ff;
}

.csfloat-btn:hover {
    background: rgba(69, 131, 241, 0.1);
    border-color: #6da2ff;
}

.csfloat-btn i { color: #6da2ff; text-shadow: 0 0 5px rgba(69, 131, 241, 0.5); }

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 32px;
  min-height: 100vh;
}

/* Top Bar */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.stats {
  font-size: 15px;
  color: var(--text-secondary);
}

.stats span {
  color: var(--text-primary);
  font-weight: 700;
  font-family: "Outfit", sans-serif;
}

/* Sorting */
.sorting-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sorting-wrapper label {
  font-size: 14px;
  color: var(--accent-primary);
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.custom-select {
  padding: 10px 36px 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8860b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-inset);
}

.custom-select:hover, .custom-select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px var(--accent-glow), var(--shadow-inset);
}

/* Custom Scrollbar for the antique look */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Grid System */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Loading State */
.loading-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 0;
  color: var(--text-muted);
  font-size: 16px;
}

.loader {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-light);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .items-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }

  .main-content {
    margin-left: 0;
    padding: 20px;
  }
}

/* Item Cards */
.item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    position: relative;
    display: flex;
    flex-direction: column;
}

.item-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-highlight);
    background: var(--bg-card-hover);
}

/* Low Float Highlight (< 0.01) */
.item-card.low-float {
    border: 1.5px solid rgba(76, 175, 80, 0.45);
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.15), inset 0 0 6px rgba(76, 175, 80, 0.05);
}

.item-card.low-float:hover {
    border-color: rgba(76, 175, 80, 0.65);
    box-shadow: 0 0 14px rgba(76, 175, 80, 0.25), var(--shadow-md);
}

/* Card Image Area */
.card-image-wrapper {
    position: relative;
    padding: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    height: 188px;
}

.card-image {
    max-width: 100%;
    max-height: 140px;
    width: auto;
    height: auto;
    border-radius: var(--border-radius-md);
    object-fit: contain;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.5));
    transition: var(--transition-normal);
}

.item-card:hover .card-image {
    transform: scale(1.05);
}

/* Quality Indicator (Top bar) */
.quality-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* Float Value */
.float-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: rgba(10, 10, 9, 0.85);
    backdrop-filter: blur(4px);
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    font-size: 11px;
    font-weight: 700;
    font-family: 'Outfit', monospace;
    color: var(--accent-primary);
    border: 1px solid var(--border-highlight);
    box-shadow: var(--shadow-sm);
}

/* Card Content Area */
.card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.item-name:hover {
    color: var(--accent-primary);
}

/* Stickers Area */
.stickers-container {
    display: flex;
    gap: 4px;
    height: 36px;
    margin-top: auto;
    margin-bottom: 16px;
}

.sticker-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.sticker-img:hover {
    transform: scale(1.6);
    z-index: 10;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

/* Price and Actions Row */
.card-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 22px;
    font-weight: 800;
    color: var(--accent-primary);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8), 0 0 10px var(--accent-glow);
    font-family: 'Outfit', sans-serif;
}

.store-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
    background: rgba(0,0,0,0.4);
}

.store-badge.dmarket {
    border-color: rgba(176, 141, 255, 0.3);
    color: #b08dff;
    box-shadow: inset 0 0 10px rgba(176, 141, 255, 0.1);
}

.store-badge.csfloat {
    border-color: rgba(109, 162, 255, 0.3);
    color: #6da2ff;
    box-shadow: inset 0 0 10px rgba(109, 162, 255, 0.1);
}

/* Card Buttons */
.card-actions {
    display: flex;
    gap: 8px;
}

.btn-inspect {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-sm);
    background: var(--bg-main);
    border: 1px solid var(--border-light);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.btn-inspect:hover {
    background: var(--bg-card-hover);
    color: var(--accent-primary-hover);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.btn-buy {
    flex: 1;
    height: 44px;
    border-radius: var(--border-radius-sm);
    background: linear-gradient(180deg, var(--accent-primary-hover) 0%, var(--accent-primary) 100%);
    color: #100f0d;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #ffdf80;
    box-shadow: 0 4px 6px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.4);
    text-shadow: 0 1px 1px rgba(255,255,255,0.4);
}

.btn-buy:hover {
    background: linear-gradient(180deg, #ffcf66 0%, var(--accent-primary-hover) 100%);
    box-shadow: var(--shadow-glow), 0 4px 8px rgba(0,0,0,0.5);
    transform: translateY(-2px);
}

/* Fallback for no items found */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 20px;
    color: var(--text-muted);
}

.no-results i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--border-light);
}

.no-results h3 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-card);
    border: 1px solid var(--accent-primary);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-glow), 0 5px 15px rgba(0,0,0,0.5);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    font-weight: 600;
    font-size: 14px;
    pointer-events: none;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* --- Premium Single Item View --- */
.single-item-view {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-highlight);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md), 0 0 40px rgba(184, 134, 11, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.single-item-header {
    text-align: center;
    padding: 30px 20px 0;
}

.single-item-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    text-shadow: 0 2px 10px rgba(184, 134, 11, 0.3), 1px 1px 2px #000;
    margin-bottom: 20px;
    line-height: 1.2;
}

.single-item-image-container {
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    border-bottom: 1px solid var(--border-light);
}

.single-item-image {
    max-width: 100%;
    max-height: 50vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius-lg);
    cursor: zoom-in;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.8));
    transition: transform var(--transition-normal);
}

.single-item-image:hover {
    transform: scale(1.03) rotate(-1deg);
}

.single-item-details {
    padding: 30px 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.single-float-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.single-float-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.single-float-value {
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Outfit', monospace;
}

/* Beautiful Float Gauge */
.float-gauge-track {
    width: 100%;
    height: 14px;
    background: #090909;
    border-radius: 7px;
    position: relative;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.9);
    border: 1px solid rgba(255,255,255,0.08);
}

.float-gauge-gradient {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 6px;
    /* CS Wear Gradient: FN -> MW -> FT -> WW -> BS */
    background: linear-gradient(90deg, 
        var(--wear-fn) 0%, var(--wear-fn) 7%, 
        var(--wear-mw) 7%, var(--wear-mw) 15%, 
        var(--wear-ft) 15%, var(--wear-ft) 38%, 
        var(--wear-ww) 38%, var(--wear-ww) 45%, 
        var(--wear-bs) 45%, var(--wear-bs) 100%);
    opacity: 0.85;
}

.float-gauge-marker {
    position: absolute;
    top: -4px;
    height: 22px;
    width: 4px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255,255,255,1), 0 0 3px #000;
    z-index: 2;
    transform: translateX(-50%);
}

.single-stickers {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 25px;
    flex-wrap: wrap;
    background: rgba(0,0,0,0.25);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255,255,255,0.03);
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);
}

.single-sticker-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    width: 120px;
}

.single-sticker-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.6));
    transition: transform var(--transition-fast);
    cursor: pointer;
}

.single-sticker-img:hover {
    transform: scale(1.4);
    z-index: 10;
}

.single-sticker-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

.single-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: 25px;
    gap: 40px;
}

.single-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    text-shadow: 2px 4px 6px #000, 0 0 25px var(--accent-glow);
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.single-sold-huge {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ff4444;
    text-shadow: 2px 2px 8px rgba(255, 0, 0, 0.4);
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
}

.single-actions {
    display: flex;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
}

.single-btn-buy {
    flex: 2;
    padding: 22px;
    font-size: 1.5rem;
    border-radius: var(--border-radius-md);
    background: linear-gradient(180deg, var(--accent-primary-hover) 0%, var(--accent-primary) 100%);
    color: #000;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-transform: uppercase;
    transition: all var(--transition-fast);
    box-shadow: 0 5px 15px rgba(0,0,0,0.6), inset 0 2px 0 rgba(255,255,255,0.3);
    border: 1px solid #ffdf80;
}

.single-btn-buy:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.8), 0 0 25px var(--accent-glow);
    background: linear-gradient(180deg, #ffcf66 0%, var(--accent-primary-hover) 100%);
}

.single-btn-inspect {
    flex: 1;
    padding: 22px;
    font-size: 1.3rem;
    border-radius: var(--border-radius-md);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all var(--transition-fast);
}

.single-btn-inspect:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* Mobile Responsiveness for Single Item View */
@media (max-width: 768px) {
    .single-item-title {
        font-size: 1.8rem;
    }
    
    .single-item-image {
        max-height: 35vh;
    }
    
    .single-item-details {
        padding: 20px;
        gap: 20px;
    }
    
    .single-price-row {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .single-price {
        font-size: 3rem;
        text-align: center;
    }
    
    .single-sold-huge {
        font-size: 2rem;
        text-align: center;
    }
    
    .single-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .single-btn-buy, .single-btn-inspect {
        width: 100%;
        padding: 16px;
    }
    
    .single-stickers {
        gap: 10px;
        padding: 15px;
    }
    
    .single-sticker-wrapper {
        width: 80px;
    }
    
    .single-sticker-img {
        width: 60px;
        height: 60px;
    }
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 5vh;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.95);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.show {
    opacity: 1;
}

.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1200px;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--border-radius-lg);
    filter: drop-shadow(0 0 30px var(--accent-glow));
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-modal.show .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10001;
    backdrop-filter: blur(4px);
}

.close-modal:hover,
.close-modal:focus {
    background: rgba(184, 134, 11, 0.2);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.05);
}
