/* merchandise.css - Complete styling for SAIEI Merchandise page */
/* Works with existing header.css, style.css from the gallery page */
/* White background theme with modern card designs */

/* ===== MERCHANDISE PAGE SPECIFIC STYLES ===== */

/* Main Content Container */
main {
    flex: 1;
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem 2rem 3rem;
    width: 100%;
    background: #ffffff;
}

/* Merch Title Section */
.merch-title {
    text-align: center;
    margin-bottom: 3rem;
    padding: 1rem 0;
}

.merch-title h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #1e2a3e;
    margin-bottom: 0.5rem;
}

.merch-title h1 span {
    color: #e67e22;
    position: relative;
    display: inline-block;
}

.merch-title h1 span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #e67e22, #f9a825);
    border-radius: 2px;
}

.merch-title p {
    font-size: 1.2rem;
    color: #5a6e7c;
    font-weight: 400;
}

/* Merch Grid Container */
.merch-container {
    margin-bottom: 3rem;
}

.merch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    justify-items: center;
}

/* Merch Item Card - Floating Effect */
.merch-item {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    width: 100%;
    max-width: 380px;
    border: 1px solid #eef2f5;
    position: relative;
}

.merch-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.12);
}

/* Badge */
.merch-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #e67e22, #f9a825);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Image Container */
.merch-image-container {
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.merch-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.merch-item:hover .merch-image-container img {
    transform: scale(1.05);
}

/* Details Section */
.merch-details {
    padding: 1.5rem;
}

.merch-details h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0a1a2f;
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
    border-left: 4px solid #e67e22;
    padding-left: 12px;
}

/* Tabs / Input Fields */
.merch-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1rem;
    background: #f9fbfd;
    padding: 1rem;
    border-radius: 16px;
}

.tab-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tab-item span {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    min-width: 50px;
}

.merch-input {
    background: white;
    border: 1px solid #dce5ec;
    border-radius: 12px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e2a3e;
    width: 140px;
    text-align: center;
    transition: all 0.2s;
    font-family: inherit;
}

.merch-input:focus {
    outline: none;
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.merch-details p {
    color: #5a6e7c;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 0.5rem;
}

/* Payment Box */
.payment-box {
    background: #f9fafc;
    border-radius: 28px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeef2;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
}

.payment-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.payment-box h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e2a3e;
    margin-bottom: 0.5rem;
}

.payment-box h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #e67e22;
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.payment-box > p {
    color: #6c7f8f;
    margin-bottom: 1.5rem;
}

/* Bank Details Box */
.bank-details-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.5rem;
    text-align: left;
    border-left: 5px solid #e67e22;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    margin-bottom: 1.8rem;
}

.bank-details-box p {
    margin: 0.6rem 0;
    font-size: 1rem;
    color: #2c3e50;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.bank-details-box p strong {
    min-width: 120px;
    color: #0a1a2f;
    font-weight: 700;
}

/* Payment Buttons */
.payment-button-box {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.payment-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #27ae60;
    color: white;
    text-decoration: none;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.payment-button:first-child {
    background: #2c3e50;
}

.payment-button:first-child:hover {
    background: #1e2f3f;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.payment-button:last-child {
    background: #f9a825;
    color: #1e2a3e;
}

.payment-button:last-child:hover {
    background: #ffb347;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(249, 168, 37, 0.3);
}

.payment-button i {
    font-size: 1.1rem;
}

/* Footer - Matching Gallery Page */
footer {
    background: #0a1a2f;
    color: #b0c4de;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}

footer p {
    margin: 0.3rem 0;
}

footer p:first-child {
    font-weight: 600;
    letter-spacing: 1px;
    color: #ffd966;
}

/* ===== Responsive Design ===== */
@media (max-width: 850px) {
    main {
        padding: 1.5rem 1rem;
    }
    
    .merch-title h1 {
        font-size: 2rem;
    }
    
    .merch-title p {
        font-size: 1rem;
    }
    
    .merch-grid {
        gap: 1.5rem;
    }
    
    .merch-image-container {
        height: 280px;
    }
    
    .payment-box {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .bank-details-box p {
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .bank-details-box p strong {
        min-width: auto;
    }
}

@media (max-width: 550px) {
    main {
        padding: 1rem;
    }
    
    .merch-title h1 {
        font-size: 1.6rem;
    }
    
    .merch-title p {
        font-size: 0.9rem;
    }
    
    .merch-details h2 {
        font-size: 1.3rem;
    }
    
    .tab-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .merch-input {
        width: 100%;
    }
    
    .payment-box h3 {
        font-size: 1.4rem;
    }
    
    .payment-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* ===== Animation for page entrance ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-animate {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== Print Styles ===== */
@media print {
    body {
        background: white;
    }
    
    .action-buttons,
    .payment-button,
    .simple-nav,
    .merch-badge {
        display: none;
    }
    
    .merch-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .payment-box {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}