/* ===================================
   SHOP-SPECIFIC STYLES
   =================================== */

/* ===================================
   ARTWORK CARDS
   =================================== */
.artwork-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.artwork-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.artwork-card:active {
    transform: translateY(-2px);
}

.artwork-image-container {
    position: relative;
    border: 2px solid var(--swiss-black);
}

.artwork-card:hover .artwork-image-container {
    border-color: var(--swiss-red);
}

/* ===================================
   ARTWORK DETAIL PAGE
   =================================== */
.main-image-container {
    position: relative;
    transition: border-color 0.3s ease;
}

.main-image-container:hover {
    border-color: var(--swiss-red);
}

.thumbnail-container {
    transition: all 0.3s ease;
}

.thumbnail-container:hover {
    transform: scale(1.05);
}

/* ===================================
   LIGHTBOX
   =================================== */
#lightbox {
    backdrop-filter: blur(10px);
}

#lightbox button {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

#lightbox button:hover {
    transform: scale(1.1);
}

#lightbox-image {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===================================
   PURCHASE SECTION
   =================================== */
#purchase-button {
    position: relative;
    overflow: hidden;
}

#purchase-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#purchase-button:hover::before {
    width: 300px;
    height: 300px;
}

/* ===================================
   LOADING SPINNER
   =================================== */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* ===================================
   MOBILE OPTIMIZATIONS
   =================================== */
@media (max-width: 768px) {
    .artwork-card {
        margin-bottom: 1rem;
    }

    .artwork-info h3 {
        font-size: 1.5rem;
    }

    #lightbox button {
        font-size: 2rem;
        padding: 0.5rem;
    }

    .main-image-container {
        cursor: pointer;
    }
}

/* ===================================
   CURSOR STYLES
   =================================== */
.cursor-zoom-in {
    cursor: zoom-in;
}

/* ===================================
   RESPONSIVE GRID ADJUSTMENTS
   =================================== */
@media (min-width: 1024px) {
    #shop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    #shop-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* ===================================
   SMOOTH TRANSITIONS
   =================================== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}