/* ── PAK Designs Stylesheet ─────────────────────

/* ── COLOR PALETTE (for reference)
   Indigo:        #2D3A6B
   Clay:          #C05B3A
   Marigold:      #E8A020
   Sage:          #5A7A50
   Tile Pink:     #D97B8A
   Warm Cream:    #F5EFE0
─────────────────────────────────────────────── */
* {
   box-sizing: border-box; 
}
body {
    background-color: #F5EFE0;
    color: #1E1A14;
    line-height: 1.7;
    font-size: 16px;
    font-family: 'Nunito', sans-serif;
    margin: 0;
    text-align: center;
}

header {
    background-color: #2D3A6B;
    background-image: 
        linear-gradient(rgba(45, 58, 107, 0.65), rgba(45, 58, 107, 0.65)),
        url('https://images.unsplash.com/photo-1651177554642-e95f468733fb?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #F5EFE0;
    min-height: 400px;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}


header h1{
    color: #F5EFE0;
}
/* images */
img {
    max-width: 100%;
    display: block;
}
#about img {
    width: 300px;
    height: 400px;
    border-radius: 4px;
    border: 2px solid #C05B3A;
    transition: transform 0.3s ease;
}
figure {
    margin: 0;
}

/* nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2D3A6B;
    letter-spacing: .08em;
    border-bottom: 4px solid #E8A020;
    padding: 0 2rem;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #F5EFE0;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-top: 0;
    transition: color 0.3s ease;
}
.nav-logo {
    font-family: 'Fraunces', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #F5EFE0;
    text-decoration: none;
    letter-spacing: .06em;
}
.nav-logo img {
    height: 50px;
    width: auto;
    display: block;
}
.nav-logo figure {
    margin: 0;
}
.nav-logo figcaption {
    display: none;
}


.nav-link {
    display: inline-block;
    color: #F5EFE0;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    letter-spacing: .08em;
    position: relative;
    border-radius: 2px;
    padding: 1rem;
    transition: color 0.3s ease;
}
.nav-links {
    display: flex;
    align-items: center;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #E8A020;
    transition: width 0.6s ease;
}


/* category */
.category-tag {
    display: inline-block;
    background-color: #2D3A6B;
    color: #F5EFE0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    list-style: none;
    border-radius: 4px;
    border: 2px solid #F5EFE0;
    padding: 6px 14px;
    margin: 4px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}


/* hover */
.nav-link:hover {
    color: #E8A020;
    
}
.nav-toggle:hover {
    background: none;
    color: #E8A020;
    transform: none;
    box-shadow: none;
}
.nav-link:hover::after {
    width: 100%;
}

.category-tag:hover {
    background-color: #C05B3A;
    cursor: pointer;
    transform: scale(1.05);
}
.nav-logo:hover {
    color: #E8A020;
}

button:hover {
    background-color: #C05B3A;
    color: #F5EFE0;
    cursor: pointer;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 91, 58, 0.4);
}

button:active {
    background-color: #2D3A6B;
}

#about img:hover {
    transform: scale(1.02);
}



/* headings */

h1, h2 {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    color: #C05B3A;
    text-align: center;
    letter-spacing: .04em;
}

h2 {
    color: #2D3A6B;
    letter-spacing: .03em;
}


/* paragraphs */
p {
    margin-bottom: 1rem;
}

/* buttons */
button {
    background-color: #E8A020;
    color: #1E1A14;
    font-weight: 700;
    letter-spacing: .05em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 10px 24px;
    margin-top: 1rem;
    transition: background-color 0.3s ease,color 0.3s ease,transform 0.3s ease,box-shadow 0.3s ease;    
}

/* footer */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1E1A14;
    color: #F5EFE0;
    letter-spacing: .06em;
    border-top: 4px solid #E8A020;
    padding: 2rem;
}

/* sections */


#shop {
    min-height: 300px;
    background-color: #F5EFE0;
    padding: 4rem 2rem;
}
#shop ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

#about {
    min-height: 400px;
    background-color: #E8D4C4;
    padding: 4rem 2rem;
}
#about .about-content {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    align-items: center;
}
#about .about-content figure {
    flex: 0 0 300px;
}
#about .about-content p{
    flex: 1;
}

#inspiration {
    min-height: 300px;
    background-color: #F5EFE0;
    padding: 4rem 2rem;
}

#contact {
    background-color: #2D3A6B;
    color: #F5EFE0;
    min-height: 400px;
    padding: 4rem 2rem;
}

#newsletter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #C05B3A;
    color: #F5EFE0;
    min-height: 200px;
    padding: 3rem 2rem;
}
/* ADMIN PANEL */
#admin {
    background-color: #F5EFE0;
    padding: 4rem 2rem;
    border-top: 4px solid #E8A020;
}

#admin form {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 0 auto;
}

#admin label {
    font-weight: 600;
    color: #2D3A6B;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

#admin input,
#admin select {
    display: block;
    width: 100%;
    max-width: 400px;
    padding: 0.6rem 0.8rem;
    margin-bottom: 1rem;
    border: 1.5px solid #2D3A6B;
    border-radius: 4px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    background: #fff;
}

#admin-message {
    margin-top: 1rem;
    font-weight: 700;
    color: #5A7A50;
}


/* EDIT SECTION */
#edit-product-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px dashed #2D3A6B;
}

#edit-product-section h3 {
    font-family: 'Fraunces', serif;
    color: #2D3A6B;
    margin-bottom: 1rem;
}

#cancel-edit {
    background: #5a4e40;
    margin-left: 0.5rem;
}

#cancel-edit:hover {
    background: #1E1A14;
    transform: none;
    box-shadow: none;
}
/* section overrides */
#contact h2,
#contact p,
#contact label,
#newsletter h2,
#newsletter p,
#newsletter label {
    color: #F5EFE0;
}
/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(30, 26, 20, 0.7);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: #F5EFE0;
    border-radius: 6px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    border-top: 4px solid #E8A020;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #1E1A14;
    margin-top: 0;
    padding: 0;
    box-shadow: none;
}

.modal-close:hover {
    color: #C05B3A;
    background: none;
    transform: none;
    box-shadow: none;
}

.modal-product-img {
    font-size: 4rem;
    text-align: center;
    padding: 1.5rem;
    background: #f0e8e0;
    border-radius: 4px;
    margin-bottom: 1.2rem;
}

.modal-product-name {
    font-family: 'Fraunces', serif;
    font-size: 1.6rem;
    color: #2D3A6B;
    margin-bottom: 0.5rem;
}

.modal-product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #C05B3A;
    margin-bottom: 0.8rem;
}

.modal-product-desc {
    color: #5a4e40;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.modal-product-stock {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #5A7A50;
    margin-bottom: 1rem;
}

/* PRODUCT GRID */
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-card {
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid rgba(45, 58, 107, 0.12);
    overflow: hidden;
    width: calc(33% - 1rem);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(45, 58, 107, 0.12);
}

.product-img {
    height: 180px;
    background-color: #f0e8e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.product-info {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-info h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.1rem;
    color: #1E1A14;
    margin-bottom: 0.4rem;
}

.product-info p {
    font-size: 0.85rem;
    color: #5a4e40;
    margin-bottom: 0.8rem;
    flex: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #C05B3A;
}

.product-footer button {
    margin-top: 0;
    font-size: 0.8rem;
    padding: 8px 16px;
}
/* CART BUTTON */
.cart-btn {
    background: none;
    border: none;
    color: #F5EFE0;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    margin-top: 0;
    transition: color 0.3s ease;
    position: relative;
}

.cart-btn:hover {
    background: none;
    color: #E8A020;
    transform: none;
    box-shadow: none;
}

.cart-count {
    font-weight: 700;
    color: #E8A020;
    font-size: 0.9rem;
}
/* mobile nav open state */
.nav-links.nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: #2D3A6B;
    padding: 1rem 0;
    z-index: 100;
    border-bottom: 4px solid #E8A020;
}
/* active category tag */
.category-tag.active {
    background-color: #C05B3A;
    border-color: #C05B3A;
}

/* Media Queries */

/* tablet */
@media (max-width: 900px) {
    .product-card {
        width: calc(50% - 0.75rem);
    }
    #about .about-content {
        flex-direction: column;
        align-items: flex-start;
    }
    #about .about-content figure{
        flex: 0 0 auto;
        width: 100%;

    }
    #about img {
        width: 100%;
        height: 300px;
        object-fit: cover;

    }
    #newsletter {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    footer {
        flex-direction: column;
        text-align: center;
        gap: .5rem;
    }

}
/* mobile */
@media (max-width: 600px) {
    .product-card {
        width: 100%;
    }
    .nav-links {
        display: none;
    }
    header {
        padding: 3rem 1.5rem;
        min-height: 300px;
    }
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    #shop,
    #about,
    #inspiration,
    #contact,
    #newsletter {
        padding: 2.5rem 1.5rem;
    }
    .nav-toggle {
        display: block;
    }
}
