/* merch.css */
.merch-grid {
    column-count: 1;
    column-gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .merch-grid {
        column-count: 2;
    }
}

@media (min-width: 1024px) {
    .merch-grid {
        column-count: 3;
    }
}

.merch-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    break-inside: avoid;
    margin-bottom: 2rem;
}

.merch-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px var(--primary-alpha);
}

.merch-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    background-color: var(--background);
    aspect-ratio: auto;
}

.merch-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.merch-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.merch-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex: 1;
}

.merch-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.merch-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

/* Order Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s;
}

.modal-close:hover {
    background: var(--background);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.form-group {
    margin-bottom: 1.2rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: inherit;
    transition: all 0.3s;
    appearance: none;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-alpha);
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* Custom Checkbox/Radio if needed in future */
.check-custom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.upi-box {
    background: rgba(14, 165, 233, 0.05);
    border: 1px dashed var(--primary);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin: 1.5rem 0;
    transition: all 0.3s;
}
.upi-box:hover {
    background: rgba(14, 165, 233, 0.1);
}

.upi-box h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.upi-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.upi-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-alpha);
}

.total-amount {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: right;
}

/* Custom Notifications (Toast) */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    transform: translateX(120%);
    pointer-events: auto;
}

.toast.error {
    border-left-color: #ef4444;
}
.toast.error .toast-icon {
    color: #ef4444;
}

.toast.success {
    border-left-color: #10b981;
}
.toast.success .toast-icon {
    color: #10b981;
}

.toast-message {
    font-weight: 500;
    color: var(--text);
}

.toast.exit {
    animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInRight {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Custom Select Wrapper */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-wrapper::after {
    content: '';
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text);
    pointer-events: none;
}

select.custom-dropdown {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 2.5rem;
    cursor: pointer;
    font-weight: 500;
}

/* Price Breakdown UI */
.price-breakdown {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.2rem;
    margin: 1.5rem 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.price-row:last-child {
    margin-bottom: 0;
}

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

.discount-row {
    color: #10b981;
}

.discount-row span:last-child {
    color: #10b981;
}

/* Color Radio Buttons */
.color-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.color-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    background: var(--surface);
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s;
    user-select: none;
}

.color-option:has(input:checked) {
    border-color: var(--primary);
    background: rgba(14, 165, 233, 0.05);
}

.color-option input {
    display: none;
}

.color-tile {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
}

.color-label {
    font-weight: 500;
}

/* Partner Section */
.partner-card {
    background: linear-gradient(135deg, rgba(30,30,30,0.8), rgba(15,15,15,0.9)), url('../static/assets/app.jpg') center/cover;
    background-blend-mode: overlay;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
    transition: transform 0.3s;
}

.partner-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.partner-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.partner-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Purchase Animation */
.success-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.success-icon-wrap {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    animation: scaleBounce 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.success-icon-wrap svg {
    width: 40px;
    height: 40px;
}

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