/* ==========================================================================
   Shop Page Styles
   ========================================================================== */

/* Page specific body style */
.page-shop {
    background-color: var(--color-white);
}

/* Nav dark variant for internal pages */
.nav-dark {
    background: rgba(255, 248, 231, 0.95);
    backdrop-filter: blur(10px);
}

.nav-link.active {
    color: var(--color-primary);
}

.nav-link.active::after {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Shop Header
   -------------------------------------------------------------------------- */

.shop-header {
    padding: 140px var(--space-xl) var(--space-3xl);
    background: var(--color-cream);
    text-align: center;
}

.shop-header-container {
    max-width: var(--container-narrow);
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
    color: var(--color-gray);
    margin-bottom: var(--space-xl);
}

.breadcrumb a {
    color: var(--color-gray);
    transition: var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.shop-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    color: var(--color-dark);
    margin-bottom: var(--space-md);
}

.shop-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-dark-soft);
    max-width: 500px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Shop Layout
   -------------------------------------------------------------------------- */

.shop-main {
    padding: var(--space-3xl) var(--space-xl) var(--space-5xl);
}

.shop-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--space-3xl);
}

/* --------------------------------------------------------------------------
   Filters Sidebar
   -------------------------------------------------------------------------- */

.shop-filters {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-gray-light);
}

.filters-header h2 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-dark);
}

.filters-clear {
    font-size: 0.8rem;
    color: var(--color-gray);
    transition: var(--transition-fast);
}

.filters-clear:hover {
    color: var(--color-primary);
}

.filter-group {
    margin-bottom: var(--space-lg);
}

.filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-sm) 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-dark);
    text-align: left;
}

.filter-toggle svg {
    transition: var(--transition-fast);
}

.filter-toggle[aria-expanded="false"] svg {
    transform: rotate(-90deg);
}

.filter-content {
    padding: var(--space-md) 0;
}

/* Filter Checkbox */
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-checkbox:hover {
    color: var(--color-primary);
}

.filter-checkbox input {
    display: none;
}

.checkbox-mark {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--color-gray-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.checkbox-mark::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    border-radius: 2px;
    transform: scale(0);
    transition: var(--transition-fast);
}

.filter-checkbox input:checked + .checkbox-mark {
    border-color: var(--color-primary);
}

.filter-checkbox input:checked + .checkbox-mark::after {
    transform: scale(1);
}

.checkbox-label {
    flex: 1;
    font-size: 0.9rem;
    color: var(--color-dark);
}

.checkbox-count {
    font-size: 0.8rem;
    color: var(--color-gray);
}

/* Price Range */
.price-range {
    padding: var(--space-sm) 0;
}

.price-range input[type="range"] {
    width: 100%;
    height: 4px;
    background: var(--color-gray-light);
    border-radius: var(--radius-full);
    appearance: none;
    cursor: pointer;
}

.price-range input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--color-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
}

.price-range input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.price-labels {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-sm);
    font-size: 0.85rem;
    color: var(--color-gray);
}

.price-labels span:last-child {
    font-weight: 600;
    color: var(--color-dark);
}

.price-labels span:last-child::before {
    content: '\20AC';
    margin-right: 2px;
}

/* Mobile filter button */
.mobile-filter-btn {
    display: none;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-dark);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.mobile-filter-btn:hover {
    border-color: var(--color-dark);
}

/* --------------------------------------------------------------------------
   Products Grid
   -------------------------------------------------------------------------- */

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-gray-light);
}

.products-count {
    font-size: 0.9rem;
    color: var(--color-gray);
}

.products-count strong {
    color: var(--color-dark);
}

.products-sort {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.products-sort label {
    font-size: 0.85rem;
    color: var(--color-gray);
}

.products-sort select {
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--color-dark);
    background: var(--color-white);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.products-sort select:hover,
.products-sort select:focus {
    border-color: var(--color-dark);
    outline: none;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

/* --------------------------------------------------------------------------
   Product Card
   -------------------------------------------------------------------------- */

.product-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-card.featured .product-visual {
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.product-card-link {
    display: block;
}

.product-visual {
    position: relative;
    height: 300px;
    background: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-label {
    width: 120px;
    height: 170px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
    transition: var(--transition-base);
}

.product-card:hover .product-label {
    transform: scale(1.05);
}

.product-label.sparkling {
    background: linear-gradient(180deg, #F5F0E6 0%, #E8E0D0 100%);
}

.product-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: var(--space-xs) var(--space-sm);
    background: var(--color-white);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    color: var(--color-dark);
}

.product-badge.featured-badge {
    background: var(--color-primary);
    color: var(--color-cream);
}

.product-quick-add {
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-md);
    width: 44px;
    height: 44px;
    background: var(--color-primary);
    color: var(--color-cream);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-base);
}

.product-card:hover .product-quick-add {
    opacity: 1;
    transform: translateY(0);
}

.product-quick-add:hover {
    background: var(--color-primary-dark);
    transform: scale(1.1);
}

.product-info {
    padding: var(--space-lg);
    background: var(--color-white);
}

.product-type {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gray);
    margin-bottom: var(--space-xs);
}

.product-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-dark);
    margin-bottom: var(--space-xs);
    transition: var(--transition-fast);
}

.product-card:hover .product-name {
    color: var(--color-primary);
}

.product-artist {
    font-size: 0.85rem;
    color: var(--color-gray);
    margin-bottom: var(--space-md);
}

.product-artist strong {
    color: var(--color-primary);
}

.product-price {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-dark);
}

.product-price::before {
    content: '\20AC';
    font-size: 0.9rem;
    margin-right: 2px;
}

/* --------------------------------------------------------------------------
   Additional Artwork Styles for Shop
   -------------------------------------------------------------------------- */

/* Style 4 - Dots grid */
.label-artwork.style-4 {
    background: linear-gradient(180deg, #F0E8E8 0%, #E5DADA 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.artwork-dots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 20px;
}

.artwork-dots span {
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
}

.artwork-dots span:nth-child(2),
.artwork-dots span:nth-child(4),
.artwork-dots span:nth-child(6),
.artwork-dots span:nth-child(8) {
    background: var(--color-gold);
}

/* Style 5 - Spiral */
.label-artwork.style-5 {
    background: linear-gradient(180deg, #E8F0E8 0%, #D5E5D5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.artwork-spiral {
    width: 60px;
    height: 60px;
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    position: relative;
}

.artwork-spiral::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35px;
    height: 35px;
    border: 2px solid var(--color-gold);
    border-radius: 50%;
}

.artwork-spiral::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    background: var(--color-primary);
    border-radius: 50%;
}

/* Style 6 - Stripes */
.label-artwork.style-6 {
    background: linear-gradient(180deg, #F5E8E8 0%, #EBD8D8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.artwork-stripes {
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.artwork-stripes span {
    height: 4px;
    border-radius: 2px;
}

.artwork-stripes span:nth-child(1) { background: var(--color-primary); width: 100%; }
.artwork-stripes span:nth-child(2) { background: var(--color-gold); width: 80%; }
.artwork-stripes span:nth-child(3) { background: var(--color-rose); width: 90%; }
.artwork-stripes span:nth-child(4) { background: var(--color-primary); width: 70%; }
.artwork-stripes span:nth-child(5) { background: var(--color-gold); width: 85%; }

/* Style 7 - Abstract */
.label-artwork.style-7 {
    background: linear-gradient(180deg, #F5F0F5 0%, #E8E0E8 100%);
}

.artwork-abstract {
    width: 100%;
    height: 100%;
    position: relative;
}

.abs-1 {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--color-rose);
    border-radius: 50% 50% 50% 0;
    top: 25%;
    left: 20%;
    transform: rotate(-45deg);
}

.abs-2 {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-primary);
    bottom: 25%;
    right: 20%;
}

/* Style 8 - Geometric */
.label-artwork.style-8 {
    background: linear-gradient(180deg, #E8F0F5 0%, #D5E0E8 100%);
}

.artwork-geo {
    width: 100%;
    height: 100%;
    position: relative;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 45px solid var(--color-primary);
    top: 20%;
    left: 25%;
}

.geo-square {
    position: absolute;
    width: 35px;
    height: 35px;
    background: var(--color-gold);
    bottom: 25%;
    right: 25%;
    transform: rotate(15deg);
}

/* Style 9 - Bubbles */
.label-artwork.style-9 {
    background: linear-gradient(180deg, #FFFBF0 0%, #F5EFE0 100%);
}

.artwork-bubbles {
    width: 100%;
    height: 100%;
    position: relative;
}

.artwork-bubbles span {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--color-gold);
    animation: bubble 3s ease-in-out infinite;
}

.artwork-bubbles span:nth-child(1) { width: 20px; height: 20px; bottom: 20%; left: 30%; animation-delay: 0s; }
.artwork-bubbles span:nth-child(2) { width: 15px; height: 15px; bottom: 35%; left: 50%; animation-delay: 0.5s; }
.artwork-bubbles span:nth-child(3) { width: 12px; height: 12px; bottom: 25%; right: 25%; animation-delay: 1s; }
.artwork-bubbles span:nth-child(4) { width: 18px; height: 18px; bottom: 50%; left: 35%; animation-delay: 1.5s; }
.artwork-bubbles span:nth-child(5) { width: 10px; height: 10px; bottom: 45%; right: 30%; animation-delay: 2s; }

@keyframes bubble {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(-5px); opacity: 1; }
}

/* Style 10 - Flow */
.label-artwork.style-10 {
    background: linear-gradient(180deg, #F0E5E5 0%, #E5D8D8 100%);
}

.artwork-flow {
    width: 100%;
    height: 100%;
    position: relative;
}

.flow-1 {
    position: absolute;
    width: 80%;
    height: 50px;
    background: linear-gradient(90deg, var(--color-primary) 0%, transparent 100%);
    border-radius: 25px 0 0 25px;
    top: 35%;
    left: 0;
}

.flow-2 {
    position: absolute;
    width: 60%;
    height: 30px;
    background: linear-gradient(270deg, var(--color-gold) 0%, transparent 100%);
    border-radius: 0 15px 15px 0;
    top: 55%;
    right: 0;
}

/* --------------------------------------------------------------------------
   Load More
   -------------------------------------------------------------------------- */

.products-load-more {
    text-align: center;
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--color-gray-light);
}

.load-more-text {
    font-size: 0.9rem;
    color: var(--color-gray);
    margin-bottom: var(--space-lg);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .shop-container {
        grid-template-columns: 1fr;
    }

    .shop-filters {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        background: var(--color-white);
        padding: 80px var(--space-xl) var(--space-xl);
        overflow-y: auto;
    }

    .shop-filters.active {
        display: block;
    }

    .mobile-filter-btn {
        display: flex;
    }

    .products-toolbar {
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    .products-sort {
        order: 3;
        width: 100%;
    }

    .products-sort select {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .product-visual {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .shop-header {
        padding: 120px var(--space-md) var(--space-2xl);
    }

    .shop-main {
        padding: var(--space-xl) var(--space-md) var(--space-3xl);
    }
}
