/* ========================================
   WAREECE WODGER — CHORAL MUSIC
   ======================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f7f5f1;
    color: #252525;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}


/* ========================================
   HEADER
   ======================================== */

header {
    padding: 55px 40px 35px;
    text-align: center;
    background: #f7f5f1;
}

header h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 42px;
    font-weight: normal;
    letter-spacing: 0.02em;
}

header p {
    margin: 8px 0 0;
    color: #6b6b6b;
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}


/* ========================================
   NAVIGATION
   ======================================== */

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 34px;
    padding: 18px 30px;
    border-top: 1px solid #ddd9d2;
    border-bottom: 1px solid #ddd9d2;
    background: #f7f5f1;
}

nav a {
    color: #252525;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

nav a:hover {
    color: #6b4a78;
}


/* ========================================
   MAIN CONTENT
   ======================================== */

main {
    width: min(1100px, calc(100% - 50px));
    margin: 0 auto;
    padding: 80px 0 100px;
}

main h2 {
    margin-top: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    font-weight: normal;
    line-height: 1.2;
}

main h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    font-weight: normal;
    line-height: 1.3;
}

main p {
    max-width: 720px;
}


/* ========================================
   HERO
   ======================================== */

.hero {
    padding: 70px 0 90px;
    border-bottom: 1px solid #ddd9d2;
}

.hero h2 {
    max-width: 800px;
    font-size: 56px;
}

.hero p {
    max-width: 650px;
    font-size: 18px;
    color: #555;
}


/* ========================================
   FEATURED WORKS / MUSIC CATALOGUE
   ======================================== */

.featured {
    padding-top: 75px;
}

.music-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.music-card {
    padding: 35px;
    border-top: 1px solid #252525;
    background: transparent;
}

.music-card h3 {
    margin-top: 0;
    font-size: 27px;
}

.music-card p {
    color: #5f5f5f;
}


/* ========================================
   MUSIC THUMBNAILS
   ======================================== */

.music-thumbnail {
    display: block;
    width: 90px;
    height: 90px;
    object-fit: cover;
    margin-bottom: 20px;
}


/* ========================================
   BUTTONS
   ======================================== */

button {
    margin-top: 15px;
    padding: 11px 22px;
    border: 1px solid #252525;
    border-radius: 0;
    background: transparent;
    color: #252525;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

button:hover {
    background: #252525;
    color: #f7f5f1;
}


/* ========================================
   PRODUCT PAGES
   ======================================== */

.product-info {
    max-width: 760px;
    margin-bottom: 60px;
}

.product-info h2 {
    font-size: 52px;
}

.product-info h3 {
    margin-top: 45px;
}


/* ========================================
   COMPOSITION IMAGE
   ======================================== */

.composition-image {
    display: block;
    width: min(700px, 100%);
    height: auto;
    margin: 45px auto;
}


/* ========================================
   SCORE PREVIEWS
   ======================================== */

.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 35px 0 55px;
}

.score-preview {
    display: block;
    width: 180px;
    height: auto;
    margin: 0;
    border: 1px solid #ddd9d2;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.score-preview:hover {
    opacity: 0.75;
}


/* ========================================
   SCORE PREVIEW POPUP
   ======================================== */

.score-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.78);
    align-items: center;
    justify-content: center;
    padding: 40px 90px;
}

.score-modal.active {
    display: flex;
}

.score-modal img {
    max-width: 80%;
    max-height: 88vh;
    width: auto;
    height: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.score-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 36px;
    font-weight: normal;
    cursor: pointer;
    line-height: 1;
}

.score-modal-prev,
.score-modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 12px 18px;
    border: 1px solid white;
    background: transparent;
    color: white;
    font-size: 20px;
    line-height: 1;
    z-index: 1001;
}

.score-modal-prev {
    left: 25px;
}

.score-modal-next {
    right: 25px;
}

.score-modal-prev:hover,
.score-modal-next:hover {
    background: white;
    color: #252525;
}

.score-modal-page {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 13px;
    letter-spacing: 0.08em;
}


/* ========================================
   AUDIO
   ======================================== */

audio {
    display: block;
    width: min(650px, 100%);
    margin: 25px 0 60px;
}


/* ========================================
   PURCHASE SECTION
   ======================================== */

.purchase-section {
    max-width: 650px;
    margin-top: 70px;
    padding-top: 35px;
    border-top: 1px solid #252525;
}

.purchase-section h3 {
    margin-top: 0;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 25px 0;
}

.quantity-selector button {
    margin-top: 0;
    min-width: 42px;
    padding: 8px 12px;
}

.quantity-selector span {
    min-width: 30px;
    text-align: center;
    font-size: 18px;
}

.purchase-note {
    margin-top: 25px;
    color: #666;
    font-size: 13px;
}


/* ========================================
   VOICING SELECTOR
   ======================================== */

#voicing-select {
    display: block;
    width: 220px;
    padding: 11px 14px;
    margin: 10px 0 25px;
    border: 1px solid #252525;
    border-radius: 0;
    background: #f7f5f1;
    color: #252525;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    cursor: pointer;
}

#voicing-select:focus {
    outline: none;
    border-color: #6b4a78;
}

/* ========================================
   CART
   ======================================== */

.cart-section,
.cart-summary {
    margin-top: 50px;
}

.cart-item {
    padding: 25px 0;
    border-top: 1px solid #ddd9d2;
}

.cart-item strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: normal;
}

.cart-item p {
    margin: 8px 0;
}

.cart-summary {
    padding-top: 25px;
    border-top: 1px solid #252525;
}


/* ========================================
   LINKS
   ======================================== */

a {
    color: #6b4a78;
}

a:hover {
    color: #252525;
}


/* ========================================
   MOBILE
   ======================================== */

@media (max-width: 700px) {

    header {
        padding: 40px 20px 30px;
    }

    header h1 {
        font-size: 32px;
    }

    nav {
        gap: 16px;
        flex-wrap: wrap;
        padding: 15px;
    }

    nav a {
        font-size: 11px;
    }

    main {
        width: min(100% - 35px, 1100px);
        padding: 55px 0 70px;
    }

    main h2 {
        font-size: 32px;
    }

    .hero {
        padding: 45px 0 60px;
    }

    .hero h2 {
        font-size: 40px;
    }

    .music-grid {
        grid-template-columns: 1fr;
    }

    .product-info h2 {
        font-size: 40px;
    }

    .preview-container {
        gap: 10px;
    }

    .score-preview {
        width: 120px;
    }

    .score-modal {
        padding: 30px 55px;
    }

    .score-modal img {
        max-width: 90%;
        max-height: 82vh;
    }

    .score-modal-close {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }

    .score-modal-prev {
        left: 10px;
    }

    .score-modal-next {
        right: 10px;
    }

    .score-modal-prev,
    .score-modal-next {
        padding: 10px 13px;
        font-size: 17px;
    }

    #voicing-select {
        width: 100%;
        max-width: 220px;
    }
}/* ========================================
   CHECKOUT
   ======================================== */

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    margin-top: 50px;
}

.checkout-order,
.checkout-form {
    max-width: 650px;
}

.checkout-order h3,
.checkout-form h3 {
    margin-top: 0;
}

.checkout-item {
    padding: 20px 0;
    border-top: 1px solid #ddd9d2;
}

.checkout-item strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: normal;
}

.checkout-item p {
    margin: 5px 0;
    color: #666;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #252525;
    font-size: 18px;
}

.checkout-form label {
    display: block;
    margin-top: 20px;
    margin-bottom: 6px;
    font-size: 13px;
    letter-spacing: 0.04em;
}

.checkout-form input,
.checkout-form textarea {
    display: block;
    width: 100%;
    padding: 11px;
    border: 1px solid #cfcac2;
    border-radius: 0;
    background: #fff;
    color: #252525;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.checkout-form textarea {
    resize: vertical;
}

.checkout-form button {
    margin-top: 30px;
}


/* ========================================
   MOBILE CHECKOUT
   ======================================== */

@media (max-width: 700px) {

    .checkout-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

}
