/* use border-box sizing for the entire site */
* {
    box-sizing: border-box;
}
/* main page styles */
body {
    margin: 0;
    padding: 20px;
    color: #2d3748;
    background-color: #e8edf2;
    font-family: Arial, Helvetica, sans-serif;
}
/* hold the website content */
#page-container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    border: 1px solid #c5ced6;
    background-color: white;
}
/* top section of the website */
.top-header {
    display: flex;
    min-height: 125px;
    padding: 25px 35px;
    align-items: flex-end;
    justify-content: space-between;
    background-color: #0c1b2a;
}
/* website name */
.site-title {
    color: white;
    font-family: "Brush Script MT", cursive;
    font-size: 48px;
    font-weight: bold;
    text-decoration: none;
}
/* account and cart area */
.header-account-links {
    display: flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
}
/* cart link */
.cart-link {
    display: flex;
    padding: 8px 10px;
    align-items: center;
    text-decoration: none;
}
.cart-link img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}
.cart-link:hover img {
    opacity: 0.75;
}
/* login area */
.login-link {
    display: flex;
    padding: 8px 10px;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
}
.login-link img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}
.login-link:hover {
    color: #8fc5c9;
}
.login-link:hover img {
    opacity: 0.75;
}
/* main navigation */
nav {
    min-height: 68px;
    background-color: #2d3748;
    text-align: center;
}
nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}
nav li {
    display: inline-block;
}
nav a {
    display: block;
    min-width: 180px;
    padding: 23px 25px;
    color: white;
    font-weight: bold;
    text-decoration: none;
}
nav a:hover {
    background-color: #246b73;
}
/* dropdown menus */
.dropdown {
    position: relative;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    width: 220px;
    margin: 0;
    padding: 0;
    background-color: #16324f;
    border-top: 4px solid #246b73;
}
.dropdown-menu li {
    display: block;
    width: 100%;
}
.dropdown-menu a {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 14px 18px;
    color: white;
    text-align: left;
    white-space: nowrap;
}
.dropdown-menu a:hover {
    background-color: #246b73;
}
.dropdown:hover .dropdown-menu {
    display: block;
}
/* caution message */
.caution-banner {
    padding: 14px 20px;
    color: #5c4510;
    background-color: #fff3cd;
    border-top: 1px solid #e5c96f;
    border-bottom: 1px solid #e5c96f;
    font-size: 14px;
    text-align: center;
}
/* website footer */
footer {
    padding: 18px;
    color: #dce6ec;
    background-color: #16324f;
    font-size: 14px;
    text-align: center;
}
footer p {
    margin: 0 0 8px;
}
footer .current-date {
    margin: 0;
    color: #b9cbd5;
    font-size: 12px;
}
/* Deal of the Day label */
.deal-badge {
    display: inline-block;
    margin: 0 0 12px;
    padding: 7px 12px;
    color: white;
    background-color: #b83b32;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}
/* sale product label */
.sale-star {
    display: inline-block;
    margin: 0 0 12px;
    padding: 8px 12px;
    color: #ffffff;
    background-color: #b83b32;
    border: 2px solid #ffffff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
/* regular price for sale products */
.old-price {
    margin: 5px 0;
    color: #687582;
    text-decoration: line-through;
}
/* discounted price */
.sale-price {
    margin: 8px 0;
    color: #b83b32;
    font-size: 24px;
    font-weight: bold;
}
/* mobile layout for screens 600 pixels wide or smaller, tested on an iPhone 17 Pro Max */
@media screen and (max-width: 600px) {
    body { padding: 10px; }
    .top-header { display: block; padding: 20px; text-align: center; }
    .site-title { display: block; font-size: 36px; }
    .header-account-links { justify-content: center; margin-top: 10px; }
    .login-link { justify-content: center; }
    nav li { display: block; }
    nav a { width: 100%; min-width: 0; padding: 15px; }
    .dropdown-menu { position: static; width: 100%; }
    .hero, .card-area, .deal-card { flex-direction: column; }
    .hero .header-content, .hero .header-image { width: 100%; }
    .hero .header-image { height: auto; }
    .hero .header-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center;
    }
    .deal-card .deal-information, .deal-card .deal-image { width: 100%; }
    header h1, .header-content h1, main h1 { font-size: 44px; }
    main { padding: 25px 15px; }
}