/* ============================================
   SHOP STYLES
   ============================================ */

.shop-page {
    padding-top: 120px;
    background-color: var(--color-light);
    min-height: 100vh;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-8);
    margin-bottom: var(--space-16);
}

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background-color: #f0f0f0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-content {
    padding: var(--space-6);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: var(--text-xs);
    text-transform: uppercase;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.product-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
    color: var(--color-dark);
}

.product-price {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: var(--space-4);
}

.product-options {
    margin-bottom: var(--space-4);
}

.product-options select {
    width: 100%;
    padding: var(--space-2);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
}

.add-to-cart-btn {
    margin-top: auto;
    width: 100%;
}

/* Cart Sidebar / Modal */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: var(--color-white);
    z-index: var(--z-modal);
    transition: right var(--transition-slow);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-2xl);
}

.cart-open .cart-overlay {
    opacity: 1;
    visibility: visible;
}

.cart-open .cart-sidebar {
    right: 0;
}

.cart-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--color-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    margin: 0;
    font-size: var(--text-xl);
}

.cart-close {
    background: none;
    border: none;
    font-size: var(--text-2xl);
    cursor: pointer;
    color: var(--color-gray);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: var(--space-6);
}

.cart-item {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-light);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: var(--space-1);
    font-size: var(--text-sm);
}

.cart-item-variant {
    font-size: var(--text-xs);
    color: var(--color-gray);
    margin-bottom: var(--space-2);
}

.cart-item-price {
    font-weight: 700;
    color: var(--color-primary);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-2);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    border: 1px solid var(--color-gray-light);
    border-radius: var(--radius-sm);
    padding: 2px;
}

.qty-btn {
    background: none;
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-dark);
}

.qty-btn:hover {
    background-color: var(--color-light);
}

.qty-display {
    font-size: var(--text-sm);
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.remove-item-btn {
    background: none;
    border: none;
    color: var(--color-danger);
    font-size: var(--text-xs);
    cursor: pointer;
    text-decoration: underline;
}

.cart-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--color-light);
    background-color: var(--color-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    font-size: var(--text-xl);
    font-weight: 700;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.empty-cart-msg {
    text-align: center;
    color: var(--color-gray);
    margin-top: var(--space-12);
}

/* Cart Toggle Button (Floating) */
.cart-toggle-btn {
    position: fixed;
    bottom: var(--space-8);
    left: var(--space-8);
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-fixed);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--transition-base);
}

.cart-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.cart-count {
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: var(--text-xs);
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
}

@media (max-width: 768px) {
    .cart-toggle-btn {
        bottom: var(--space-6);
        left: var(--space-6);
    }
}

/* ============================================
   TICKET DIGITAL & MODAL
   ============================================ */
.ticket-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ticket-modal.active {
    opacity: 1;
}

.ticket-card {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    background-image: radial-gradient(circle at top left, #f1f5f9 0%, transparent 20%),
        radial-gradient(circle at bottom right, #f1f5f9 0%, transparent 20%);
}

.ticket-header {
    border-bottom: 2px dashed var(--color-gray-light);
    padding-bottom: var(--space-6);
    margin-bottom: var(--space-6);
}

.ticket-logo {
    height: 40px;
    margin-bottom: var(--space-4);
}

.ticket-title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--color-dark);
    text-transform: uppercase;
}

.ticket-id {
    font-family: monospace;
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    color: var(--color-gray);
    margin-top: var(--space-2);
    display: inline-block;
}

.ticket-message {
    font-size: var(--text-sm);
    color: var(--color-gray);
    margin-bottom: var(--space-6);
    line-height: 1.5;
}

.qr-container {
    background: white;
    padding: var(--space-4);
    border: 2px solid var(--color-dark);
    border-radius: var(--radius-lg);
    display: inline-block;
    margin-bottom: var(--space-6);
}

.ticket-footer {
    font-size: var(--text-xs);
    color: var(--color-gray-light);
    margin-top: var(--space-4);
}

.btn-download {
    width: 100%;
    margin-top: var(--space-4);
}