
.size-price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    background-color: #f0f9ff;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #e0f2fe;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.size-price-grid::before {
    content: "Размер   |   Цена";
    display: block;
    grid-column: span 2;
    font-weight: bold;
    background: linear-gradient(135deg, #0891b2, #0e7490);
    color: white;
    padding: 6px 8px;
    border-radius: 6px;
    text-align: center;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.size-link {
    display: inline-block;
    padding: 2px 3px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    color: #0f766e;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-link:hover {
    background: #e0f2fe;
    border-color: #0891b2;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(8, 145, 178, 0.2);
}

.size-price-item {
	background: rgba(11, 217, 139, 0.15) !important;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 4px 0;
}


.size-text {
    font-weight: 600;
    color: #0f172a;
}

.size-price-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 8px;
    background-color: #fee2e2;
    border-radius: 2px;
    border-bottom: 1px solid #e5e7eb;
}

.size-price-item span {
    font-size: 0.9rem;
    color: #333;
}

#imageModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

#modalImage {
    max-width: 90%;
    max-height: 90%;
}

#closeModal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

#clear-search {
    font-size: 1rem;
    color: #6b7280;
    transition: color 0.2s ease;
}

#clear-search:hover {
    color: #000;
}

#scroll-up,
#scroll-down {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    background: none;
    border: none;
    border-radius: 4px;
    color: #444;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

#scroll-up:hover,
#scroll-down:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}

/* timestamps */
.updated-at {
    font-size: 0.625rem;       /* Very small text */
    color: #9CA3AF;            /* Tailwind gray-400 */
    opacity: 0.5;
    pointer-events: none;      /* Ignore clicks */
    user-select: none;         /* Not selectable */
}


/* currency-switcher */
.currency-switcher {
    display: flex;
    gap: 8px;
}

.currency-link {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s;
    text-align: center;
    flex: 1;
}

.currency-link:hover {
    background-color: #f3f4f6;
}

.currency-link.active {
    background-color: #10b981;
    color: white;
    border-color: #10b981;
}

/* Optional: hide all update timestamps when needed */
.hide-updated {
    display: none;
}

.hide {
    display: none;
}

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1000;
}
.toast.show {
    opacity: 1;
}


img {
    display: inline;
    vertical-align: middle;
}