:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --background-color: #f5f6fa;
    --card-background: #ffffff;
    --text-color: #2c3e50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.adult-warning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.adult-warning.active {
    display: flex;
}

.adult-warning.active ~ .container,
.legal-modal.active ~ .container {
    filter: blur(20px);
    pointer-events: none;
    user-select: none;
}

.warning-content {
    max-width: 600px;
    padding: 30px;
    background-color: var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.warning-content h1 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.warning-content p {
    margin-bottom: 20px;
}

.warning-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-accept {
    background-color: var(--secondary-color);
    color: white;
}

.btn-accept:hover {
    background-color: #c0392b;
}

.btn-decline {
    background-color: #95a5a6;
    color: white;
}

.btn-decline:hover {
    background-color: #7f8c8d;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    padding: 40px 0;
}

.header h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.bulk-discount-banner {
    background: linear-gradient(135deg, var(--secondary-color), #c0392b);
    color: white;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: pulse 2s infinite;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: center;
}

.banner-text {
    font-weight: bold;
    font-size: 1.1em;
    letter-spacing: 0.5px;
}

.bulk-discount-banner i {
    font-size: 1.2em;
    opacity: 0.8;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 768px) {
    .bulk-discount-banner {
        margin: 15px 0;
        padding: 12px 15px;
    }
    
    .banner-text {
        font-size: 1em;
    }
    
    .bulk-discount-banner i {
        font-size: 1em;
    }
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .items-grid {
        grid-template-columns: 1fr;
    }
}

.item-card {
    background-color: var(--card-background);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 100%;
    border: 3px solid transparent;
}

.item-card:hover {
    transform: translateY(-5px);
}

.item-card.selected {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 0 0 2px var(--secondary-color);
}

.slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.slideshow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    cursor: pointer;
}

.slideshow img.active {
    display: block;
}

.slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1.5em;
    z-index: 10;
    user-select: none;
}

.slideshow-arrow.left {
    left: 10px;
}

.slideshow-arrow.right {
    right: 10px;
}

.slideshow-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slideshow-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.9em;
    z-index: 5;
}

.slideshow-progress {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.9em;
    z-index: 5;
}

.item-info {
    padding: 20px;
}

.item-info h3 {
    margin-bottom: 0.1rem;
    color: var(--primary-color);
}

.item-date {
    display: block;
    margin-top: 0.1rem;
    font-size: 0.8em;
    color: #7f8c8d;
}

.item-price {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2em;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.regular-price {
    color: #666;
    text-decoration: line-through;
    font-size: 0.9em;
}

.discount-price {
    color: var(--secondary-color);
    font-weight: bold;
}

.item-description {
    color: #666;
    font-size: 0.9em;
}

.contact-info {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background-color: var(--card-background);
    border-radius: 10px;
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

#minorWarning {
    display: none;
}

#minorWarning.active {
    display: flex;
}

.fullscreen-preview {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1001;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.fullscreen-preview.active {
    display: flex;
}

.fullscreen-image-container {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.fullscreen-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.fullscreen-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
}

.fullscreen-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 2em;
    z-index: 1002;
    user-select: none;
}

.fullscreen-nav.prev {
    left: 20px;
}

.fullscreen-nav.next {
    right: 20px;
}

.fullscreen-nav:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.btn-close-preview {
    background: none;
    border: none;
    color: white;
    font-size: 2.5em;
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
    transition: color 0.3s ease;
}
.btn-close-preview:hover {
    color: var(--secondary-color);
}

.legal-info {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.legal-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    text-align: left;
    color: white;
    padding: 20px;
}

.legal-modal.active {
    display: flex;
}

.legal-content {
    max-width: 800px;
    padding: 30px;
    background-color: var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    overflow-y: auto;
    text-align: left;
}

.legal-content h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
}

.legal-content p {
    margin-bottom: 15px;
}

.legal-content ul {
    margin: 15px 0;
    list-style-position: inside;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content a {
    color: var(--secondary-color);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.btn-close-legal {
    background: none;
    border: none;
    color: white;
    font-size: 2.5em;
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
    transition: color 0.3s ease;
    position: absolute;
    top: 20px;
    right: 20px;
}

.btn-close-legal:hover {
    color: var(--secondary-color);
}

.copyright {
    color: #666;
    font-size: 0.9em;
    margin-top: 10px;
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid #ddd;
}

.socials-section p {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.social-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1em;
    margin: 0 5px;
    transition: transform 0.2s ease-in-out;
}

.social-badge:hover {
    transform: scale(1.1);
}

.social-badge i {
    margin-right: 8px;
    font-size: 1.5em;
}

.reddit-badge {
    background-color: #FF4500;
    color: white;
}

.reddit-badge:hover {
    background-color: #e03d00;
}

body.dark-theme footer {
    border-top-color: #444;
}

body.dark-theme .socials-section p {
    color: #ccc;
}

.telegram-badge {
    background-color: #0088cc;
    color: white;
}

.telegram-badge:hover {
    background-color: #0077b3;
}
