:root {
    --primary-color: #FF0066; /* Similar to Gamma's vibrant pink/magenta */
    --secondary-color: #00FFFF; /* Similar to Gamma's electric blue */
    --dark-color: #1A1A1A; /* Deep dark for contrast */
    --light-color: #F8F8F8; /* Off-white for background */
    --text-color: #333333;
    --border-radius: 8px;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Header --- */
header {
    background-color: #fff;
    color: var(--light-color);
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: #dacfc7;
    margin-top: 50px;
    background-image: url(tshirt.png);
    background-repeat: no-repeat;
    background-position: center -200px;
    height: 1000px;
    background-size: 1300px;
    padding-top: 230px;
    margin-top: 0px;
}

header h1 {
    font-size: 4.7em; /* Really big and bold */
    color: #563737;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    z-index: 2;
    font-family: "Spicy Rice", serif;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1;
}

header h3 {text-transform: uppercase;letter-spacing: 0;position: relative;z-index: 2;font-family: "Spicy Rice", serif;margin: 0 auto;margin-top: 20px;width: 400px;color: #616161;font-size: 1.6em;text-transform: unset;line-height: 1.2;font-weight: 400;margin-bottom: -50px;}

header p {
    font-size: clamp(1em, 2.5vw, 1.8em);
    color: var(--secondary-color);
    margin-top: 10px;
    position: relative;
    z-index: 2;
    animation: textFadeIn 1.5s ease-out forwards;
}

/* Animation for header text */
@keyframes textPop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes textFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* --- T-Shirt Section --- */
.tshirt-section {
    padding: 60px 0;
    text-align: center;
}

.tshirt-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.5em, 6vw, 4.5em); /* Big and bold */
    color: var(--dark-color);
    margin-bottom: 50px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.tshirt-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 6px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 15px auto 0;
    border-radius: 3px;
}

.tshirt-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    justify-content: center;
}

.tshirt-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.tshirt-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.tshirt-card img {
    width: 100%;
    height: 300px; /* Fixed height for consistency */
    object-fit: cover; /* Ensures image covers area, crops if necessary */
    display: block;
}

.tshirt-card-content {
    padding: 20px;
    text-align: left;
}

.tshirt-card-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.tshirt-card-content p {
    font-size: 1.1em;
    color: var(--text-color);
    margin-bottom: 15px;
}

.tshirt-card-content .price {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6em;
    font-weight: bold;
    color: var(--secondary-color);
}

/* --- Detail Popup --- */
.detail-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.detail-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.detail-popup-content {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 40px;
    max-width: 800px;
    width: 90%;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.detail-popup-overlay.active .detail-popup-content {
    transform: translateY(0);
}

.detail-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.5em;
    cursor: pointer;
    color: var(--dark-color);
    transition: color 0.2s ease;
}

.detail-popup-close:hover {
    color: var(--primary-color);
}

.popup-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
}

.popup-image-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--border-radius);
    object-fit: contain;
}

.popup-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popup-details h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.popup-details p {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: var(--text-color);
}

.popup-details .price {
    font-family: 'Montserrat', sans-serif;
    font-size: 2em;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.add-to-cart-btn {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.3em;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* --- Footer --- */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    text-align: center;
    padding: 30px 0;
    margin-top: auto; /* Pushes footer to the bottom */
    font-size: 1.1em;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

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

/* Media Queries for Responsiveness */
@media (min-width: 768px) {
    .detail-popup-content {
        flex-direction: row;
        gap: 50px;
        padding: 50px;
    }
}

@media (max-width: 767px) {
    header h1 {
        font-size: 4em;
        letter-spacing: 3px;
    }

    header p {
        font-size: 1.2em;
    }

    .tshirt-section h2 {
        font-size: 3em;
    }

    .detail-popup-content {
        flex-direction: column;
        max-height: 90vh; /* Limit height for small screens */
        overflow-y: auto; /* Enable scrolling for small screens */
    }

    .popup-details h3 {
        font-size: 2em;
    }

    .popup-details p {
        font-size: 1em;
    }

    .popup-details .price {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 3em;
        letter-spacing: 2px;
    }

    header p {
        font-size: 1em;
    }

    .tshirt-section h2 {
        font-size: 2.5em;
    }

    .tshirt-card-content h3 {
        font-size: 1.5em;
    }

    .tshirt-card-content p {
        font-size: 0.9em;
    }

    .tshirt-card-content .price {
        font-size: 1.4em;
    }

    .detail-popup-content {
        padding: 20px;
    }

    .detail-popup-close {
        font-size: 2em;
        top: 10px;
        right: 15px;
    }
}