.main-container {
    min-height: calc(100vh - 70px);
    padding: 40px 20px 80px;
}

.gallery-title {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 8px;
    color: #222;
    text-align: center;
    margin-bottom: 30px;
}

.search-container {
    max-width: 600px;
    margin: 0 auto 50px;
}

.search-form {
    display: flex;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-form:focus-within {
    border-color: #222;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-button {
    background: #222;
    color: white;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-button:hover {
    background: #333;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.hero-section {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.hero-subtitle {
    font-size: 14px;
    letter-spacing: 3px;
    color: #666;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-main-text {
    font-size: 48px;
    font-weight: 200;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.3;
}

.explore-btn {
    display: inline-block;
    padding: 12px 40px;
    background-color: #222;
    color: white;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border: 1px solid #222;
}

.explore-btn:hover {
    background-color: transparent;
    color: #222;
}

.artworks-section,
.artists-section {
    margin-bottom: 80px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 0 10px;
}

.section-title {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 2px;
    color: #333;
}

.view-all {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.view-all:hover {
    color: #222;
}

.artworks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 10px;
}

.artwork-card {
    background: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f0f0f0;
}

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

.artwork-image-wrapper {
    position: relative;
    overflow: hidden;
}

.artwork-image {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #f0f0f0 0%, #d0d0d0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.artwork-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artwork-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.artwork-card:hover .artwork-actions {
    opacity: 1;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.action-btn:hover {
    transform: scale(1.1);
    background: #fff;
}

.favorite-btn:hover i {
    color: #ff4757;
}

.cart-btn:hover i {
    color: #222;
}

.action-btn.added {
    animation: cartAdd 0.5s ease;
}

@keyframes cartAdd {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.quick-view {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.artwork-card:hover .quick-view {
    transform: translateY(0);
}

.quick-view-btn {
    color: white;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-view-btn:hover {
    text-decoration: underline;
}

.artwork-info {
    padding: 20px;
}

.artist-name {
    font-size: 12px;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.artwork-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
    font-weight: 400;
}

.artwork-price {
    font-size: 14px;
    color: #222;
    font-weight: 600;
}

.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    padding: 0 10px;
}

.artist-item {
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.artist-item:hover {
    transform: scale(1.05);
}

.artist-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 100%);
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    overflow: hidden;
}

.artist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-item-name {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 500;
}

.artist-works-count {
    font-size: 12px;
    color: #999;
}

.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #222;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .gallery-title {
        font-size: 24px;
        letter-spacing: 4px;
        margin-bottom: 20px;
    }

    .search-container {
        margin-bottom: 30px;
    }

    .hero-section {
        height: 400px;
        margin-bottom: 60px;
    }

    .hero-main-text {
        font-size: 32px;
    }

    .artworks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .artwork-image {
        height: 250px;
    }

    .artwork-actions {
        opacity: 1;
    }

    .artists-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .artist-avatar {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .artworks-grid {
        gap: 15px;
    }

    .artwork-image {
        height: 200px;
    }

    .action-btn {
        width: 32px;
        height: 32px;
    }

    .artwork-info {
        padding: 15px;
    }

    .artwork-title {
        font-size: 14px;
    }
}

@media (min-width: 1200px) {
    .artworks-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .artists-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}
