:root {
    --color-primary: #a84934;
    --color-secondary: #e0ded1;
    --color-text: #29230b;
    --color-accent: #015a44;
}

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

body {
    font-family: "dazzle-unicase", "Century Gothic", "Futura", sans-serif;
    background-color: var(--color-secondary);
    color: var(--color-text);
    line-height: 1.6;
    font-weight: 300;
}

header {
    background-color: var(--color-primary);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 2rem;
}

nav ul {
    justify-self: end;
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-right: 2rem;
}

nav a {
    color: var(--color-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--color-accent);
}

h1, h2, h3 {
    font-weight: 300;
    line-height: 1.15;
    color: var(--color-primary);
}

button {
    font-family: 'avenir-lt-pro', sans-serif;
}

.hero h1 {
    font-size: 4rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.countdown {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.countdown div {
    text-align: center;
}

footer {
    background-color: var(--color-text);
    color: var(--color-secondary);
    text-align: center;
    padding: 1rem;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.logo img {
    height: 40px;
    vertical-align: middle;
    margin-right: 8px;
}

/* Local Page */
.local-page {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.local-info {
    display: flex;
    flex-direction: column;
}

.local-info h2 { 
    margin-bottom: 0.8rem;
}

.local-page p {
    font-size: 1.1rem;
    line-height: 1.5;
    font-family: "avenir-lt-pro", sans-serif;
}

.local-details {
    margin-top: 2rem;
}

#map {
    height: 400px;
    border-radius: 8px;
}

.map-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.map-container h2  {
    margin: 2rem 0 1.5rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.02);
}

/* Playlist Page */
.playlist-page {
    padding: 100px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.playlist-page p {
    font-size: 1.2rem;
    line-height: 1.5;
}

.spotify-container {
    margin-top: 2rem;
}

.spotify-container iframe {
    width: 100%;
    height: 600px;
    border-radius: 8px;
    border: none;
}

/* Presentes Page */
.presentes-page {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.presentes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.presente-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.presente-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.presente-card h3 {
    flex-grow: 1;
    margin-top: 1rem;
}

.cart-icon {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 99;
}

.cart-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: auto;
    justify-self: end;
}

#cart-icon {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-secondary);
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-accent);
    color: white;
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    min-width: 20px;
    text-align: center;
    display: none;
}

#cart-count.has-items {
    display: block; /* Show when has items */
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.close {
    position: absolute;
    right: 25px;
    top: 10px;
    color: var(--color-primary);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    color: white;
    padding: 16px;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.add-to-cart-btn {
    border: none;
    border-radius: 8px;
    background: var(--color-primary);
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    height: 40px;
    width: 80%;
    margin: 1rem auto 0 auto;
}

.add-to-cart-btn:disabled, .add-to-cart-btn:disabled:hover {
    background: #46b4ff;
    cursor: unset;
}

.add-to-cart-btn:hover {
    background: var(--color-accent);
}

.add-to-cart-btn .small-text {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Social Page */
.social-page {
    padding: 100px 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--color-text);
    font-size: 1.2rem;
}

.social-link img {
    width: 24px;
    height: 24px;
}

/* Checkout Page */
.checkout-page {
    padding: 100px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.checkout-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 100px 1rem;
}

.checkout-disclaimer {
    margin: 4rem 2rem;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--color-secondary);
}

.checkout-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.checkout-total {
    text-align: right;
    margin: 2rem 0;
}

.remove-item {
    background: var(--color-primary);
    border: none;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 8px;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

.remove-item:hover {
    background: var(--color-accent);
}

.remove-item.small-text {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.payment-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.payment-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    background: var(--color-primary);
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40%;
}

.payment-btn:hover {
    background: var(--color-accent);
}

.payment-btn .small-text {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Thank You Page */
.thank-you-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2rem;
    width: 95%;
}

.thank-you-page img {
    width: 150px;
}

.back-home {
    padding: 1rem 2rem;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.back-home:hover {
    background: var(--color-accent);
}

/* Home Container */
.names-img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}
.home-container {
    display: flex;
    align-items: center;
    justify-content:space-around;
    min-height: 100vh;
    padding: 80px 0 60px 0;
    gap: 2rem;
}

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    color: var(--color-primary);
}

.hero h1 {
    /* display: flex; */
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    line-height: 1.2;
    margin-bottom: 2rem;
    font-size: 62px;
    font-weight: 100;
    white-space: nowrap;
}

.hero h1 .hero-amp {
    opacity: 0.3;
    font-size: 1.6em;
    line-height: 0.4em;
    font-weight: 100;
    font-family: "Barlow Semi Condensed", Arial;
    margin-left: -0.11em;
    margin-right: -0.15em;
    position: relative;
    bottom: -0.09em;
}

.hero h1 span {
    display: inline;
}

.hero h2 {
    font-size: 1.1rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    text-align: left;
}

.hero p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.mobile-links {
    width: 100%;
}

.mobile-links ul {
    list-style: none;
    display: flex
;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 60px;
    margin-top: -25px;
}

.mobile-links a {
    color: var(--color-primary);
}

@media (max-width: 899px) {
    .local-info {
        grid-template-columns: 1fr;
    }

    nav {
        grid-template-columns: auto 1fr;
    }
    
    nav ul {
        display: none;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .home-container {
        flex-direction: column;
        padding-top: 100px;
    }
    
    .hero-image-container {
        width: 100%;
    }

    .hero-image {
        border-radius: 0;
        margin-bottom: -20px;
    }
    .payment-options {
        flex-direction: column;
    }

    .payment-btn {
        width: 100%;
        padding: 1rem;
        font-size: 0.9rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .hero h1 span {
        display: block;
    }

    .hero h1 .hero-amp {
        display: none;
    }
    
    .hero h1 {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .hero-image-container img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}

@media (min-width: 900px) {
    .mobile-links {
        display: none;
    }

    .hero {
        position: absolute;
        background: var(--color-secondary);
        left: 0px;
        top: 80px;
        bottom: 90px;
        width: 420px;
    }

    .hero-image-container {
        position: absolute;
        background: var(--color-secondary);
        left: 420px;
        right: 0px;
        top: 80px;
        bottom: 56px;
    }

    .hero-image-container img {
        position: absolute;
        left: 0px;
        right: 0px;
        top: auto;
        bottom: auto;
        width: 100%;
        height: auto;
        object-fit: cover;
        max-height: calc(100vh - 60px);
    }
    
    .home-container {
        display: flex;
        align-items: center;
        justify-content: space-around;
        min-height: 100vh;
        padding: 80px 2rem 60px 0;
        gap: 2rem;
        position: relative;
        max-width: 1100px;
        margin: 0 auto;
    }
    
    .hero-image-container {
        position: absolute;
        background: var(--color-secondary);
        left: 500px;
        right: 130px;
        top: 240px;
        bottom: 256px;
        max-width: 667px;
    }

    .item-details {
        min-width: 70%;
    }
}