
/* GENERAL PAGE STYLING */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding-top: 130px;
    padding-bottom: 70px;
    font-family: Arial, sans-serif;
    background-color: #F6D6CA;
    color: #000000;
}

/* HEADER */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 130px;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 25px;
    z-index: 1000;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 120px;
    width: auto;
    object-fit: contain;
}

.site-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px;
    font-weight: bold;
    color: #DC452A;
    text-align: center;
    white-space: nowrap;
}

/* THREE RED-ORANGE HAMBURGER LINES */

.dropdown {
    position: relative;
    margin-left: auto;
}

.dropbtn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 35px;
    height: 26px;
    padding: 0;
}

.dropbtn span {
    display: block;
    width: 35px;
    height: 4px;
    border-radius: 3px;
    background-color: #DC452A;
}

/* DROPDOWN MENU */

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 42px;
    width: 130px;
    background-color: #F29191;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 1001;
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
}

/* MENU OPTIONS */

.dropdown-content a {
    display: block;
    padding: 12px 16px;
    color: #000000;
    text-decoration: none;
    font-weight: normal;
    background-color: #F29191;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: background-color 0.2s;
}

/* HOVER OVER MENU */

.dropdown-content a:hover {
    background-color: #F24B4B;
    color: #000000;
}

/* CURRENT PAGE */

.dropdown-content a.active {
    background-color: #F24B4B;
    color: #000000;
}

/* MAIN CONTENT */

main {
    width: 100%;
    max-width: 1400px;
    margin: auto;
    padding: 25px;
    text-align: center;
}

/* BAKES GALLERY */

.bakes-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    width: 100%;
}

.bake-item {
    text-align: center;
}

.bake-item img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    display: block;
}

.bake-item a {
    color: #DC452A;
    text-decoration: none;
    font-weight: bold;
}

.bake-item a:hover {
    color: #F29191;
}

/* PRODUCT PAGE */

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    width: 100%;
    text-align: left;
}

.product-images {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-images img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* IMAGE ARROWS */

.image-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #FFFFFF;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 25px;
    cursor: pointer;
    z-index: 2;
    color: #DC452A;
}

.left-arrow {
    left: 5px;
}

.right-arrow {
    right: 5px;
}

/* PRODUCT DETAILS */

.product-details {
    text-align: left;
    padding: 10px;
}

.product-details h2 {
    color: #DC452A;
    font-size: 30px;
}

.product-details p {
    font-size: 18px;
    line-height: 1.6;
}

/* ORDER INFORMATION */

.product-order {
    margin-top: 35px;
    text-align: center;
}

.product-order h3 {
    color: #DC452A;
}

/* BACK TO BAKES */

.back-to-bakes {
    text-align: center;
    margin: 25px 0;
}

/* GENERAL LINKS */

a {
    color: #DC452A;
}

a:hover {
    color: #F29191;
}

/* FOOTER */

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #FFFFFF;
    padding: 18px;
    text-align: center;
    z-index: 1000;
}

footer a {
    color: #DC452A;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    color: #DC452A;
}

/* CONTACT PAGE */

body.contact-page a,
body.contact-page a:hover,
body.contact-page a:focus {
    color: #DC452A;
}

/* TABLETS */

@media (max-width: 900px) {
    .bakes-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-layout {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .product-images {
        height: 400px;
    }
}

/* MOBILE PHONES */

@media (max-width: 600px) {
    body {
        padding-top: 100px;
    }

    header {
        height: 100px;
        padding: 0 10px;
    }

    .logo {
        height: 90px;
    }

    .site-title {
        font-size: 18px;
        max-width: 55%;
        white-space: normal;
    }

    .bakes-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .bake-item img {
        height: 170px;
    }

    .product-layout {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .product-images {
        width: 100%;
        height: 380px;
    }

    .product-details {
        width: 100%;
        padding: 5px;
    }

    .product-details h2 {
        font-size: 25px;
    }
}

/* ==================================
   HOME PAGE SLIDESHOW
================================== */

.home-main {
    max-width: none;
    width: 100%;
    padding: 25px 0;
}

/* FULL-WIDTH PICTURE FRAME */

.home-slideshow {
    position: relative;
    width: calc(100% - 40px);
    height: 520px;
    margin: 20px auto 0;
    overflow: hidden;
    background-color: #FFF5F0;
    border: none;
}

/* INDIVIDUAL SLIDES */

.home-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out;
}

.home-slide.active-slide {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* PICTURES */

.home-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* SHOP NOW BUTTON */

.shop-now-button {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    padding: 14px 35px;
    background-color: #DC452A;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    border-radius: 8px;
    z-index: 2;
    transition: background-color 0.2s;
}

.shop-now-button:hover {
    background-color: #F24B4B;
    color: #FFFFFF;
}

/* HOME PAGE MESSAGE */

.home-message {
    text-align: center;
    padding: 30px 20px;
}

.home-message h2 {
    color: #DC452A;
    font-size: 30px;
    margin-bottom: 20px;
}

.home-message p {
    font-size: 20px;
    line-height: 1.6;
}

.home-message a {
    color: #DC452A;
    font-weight: bold;
    text-decoration: underline;
}

.home-message a:hover {
    color: #F24B4B;
}

/* MOBILE SLIDESHOW */

@media (max-width: 600px) {

    .home-main {
        padding-top: 15px;
    }

    .home-slideshow {
        height: 320px;
        border-width: 5px;
    }

    .shop-now-button {
        bottom: 15px;
        padding: 11px 25px;
        font-size: 17px;
    }

    .home-message {
        padding: 20px 15px;
    }

    .home-message h2 {
        font-size: 23px;
    }

    .home-message p {
        font-size: 17px;
    }

}
