/* ====================================
   SHOP PAGE STYLES
   ==================================== */

/* --- Cart Button in Nav --- */
.cart-btn {
    padding: 0.5rem 1rem;
    background: var(--accent-red);
    border: none;
    border-radius: var(--radius-pill);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-btn:hover {
    background: #ff1a66;
    transform: translateY(-1px);
}

/* --- Shop Grid --- */
.shop-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xl) 2rem;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

/* --- Product Cards --- */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 5/7;
    overflow: hidden;
}

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

.product-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.product-badge.preorder {
    background: rgba(255, 0, 85, 0.9);
    color: white;
}

.product-badge.available {
    background: rgba(0, 255, 136, 0.9);
    color: #000;
}

.product-badge.digital {
    background: rgba(0, 85, 255, 0.9);
    color: white;
}

.product-info {
    padding: var(--spacing-lg);
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: var(--spacing-md);
}

.meta-item {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.product-price {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.price-current {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-red);
}

.price-original {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.add-to-cart {
    width: 100%;
}

/* --- Shop Info --- */
.shop-info {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xxl) 2rem;
}

.info-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
}

.info-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.info-card a {
    color: var(--accent-red);
    text-decoration: none;
}

.info-card a:hover {
    text-decoration: underline;
}

/* --- Cart Sidebar --- */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--bg-dark);
    border-left: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    z-index: 1001;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.5rem;
}

.close-cart {
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-cart:hover {
    background: var(--bg-card);
}

.cart-items {
    flex: 1;
    padding: var(--spacing-lg);
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    color: var(--text-secondary);
    padding: var(--spacing-xl) 0;
}

.cart-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.cart-item-image {
    width: 80px;
    height: 112px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

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

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--accent-red);
    font-weight: 700;
}

.remove-item {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
}

.remove-item:hover {
    color: var(--accent-red);
}

.cart-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-subtle);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
}

.btn-checkout {
    width: 100%;
    margin-bottom: var(--spacing-sm);
}

.cart-footer .btn-secondary {
    width: 100%;
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 1000;
}

.cart-overlay.active {
    display: block;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .shop-grid {
        grid-template-columns: 1fr;
    }
}
