/* ==========================================================================
   Base Layout and Typography
   ========================================================================== */

html,
body {
    /* do not edit: resets and base font/color for all screens */
    margin: 0;
    background-color: #000000;
    /* set font for product body copy and default font colour */
    font-family: "Sofia Sans", sans-serif;
    color: #fff;
}

/* Main page container and section sizing (fixed for touchscreen) */
/* do not edit: ensures app fits display hardware */
main, section {
    position: absolute;
    width: 1080px;
    height: 1920px;
    overflow: hidden;
}

main {
    /* do not edit: center on screen */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    /* Background color and image for main screen */
    /* If using 2 different backgrounds create class for other screen */
    background-color: #4b7492;
    background-image: url(../assets/main_background.jpg);
}

/* ==========================================================================
   Positioning for Key Screen Elements
   ========================================================================== */

/* do not edit: absolute positioning for direct children of catalogue, product-info, and cart */
#catalogue > img,
#product-info > img,
#product-info > div,
#cart > img,
#cart > div {
    position: absolute;
}

/* Brand logo: top right positioning and sizing */
.brand-logo {
    /* Brand logo position and size */
    top: 124px;
    left: 50px;
    width: 267px;
}

/* Product block: clickable product tiles */
/* do not edit: gives pointer on hover for product tiles */
.product {
    cursor: pointer;
}

/* ==========================================================================
   Product Display & Highlight Section
   ========================================================================== */

/* Product title: prominent heading */
#hl-title {
    right: 65px;
    top: 115px;
    color: #ab2d6e;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 65px;
    left: 50%;
    transform: translateX(-50%);
    width: 1100px;
    padding: 20px 0 20px 50px;
    background-color: #b9d657;
    display: inline-block !important;
}

/* Product price: below title, highlighted */
#hl-price {
    width: 250px;
    color:#fff;
    left: 768px;
    top: 47px;
    font-size: 95px;
    font-weight: 700;
    display: flex;
    height: 250px;
    border-radius: 250px;
    text-align: center;
    justify-content: center;
    align-items: center;
}

#price-circle{
    right: 36px;
    top: 37px;
    width: 290px;
}

/* Product images: main image area, centered */
.highlight-images {
    left: 65px;
    right: 65px;
    top: 260px;
    /* do not edit: fixed height for image area */
    height: 970px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Product overview title */
#hl-overview-title {
    left: 65px;
    right: 65px;
    top: 1242px;
    font-size: 55px;
    color: #ab2d6e;
    font-weight: 800;
    text-align: center;
}

/* Product overview body text */
#hl-overview {
    left: 65px;
    right: 65px;
    top: 1323px;
    font-size: 42px;
    font-weight: 500;
    color: #ab2d6e;
    text-align: center;
}

/* ==========================================================================
   Colour and Size Selection
   ========================================================================== */

/* Selection container for colour and size pickers */
.selection-holder {
    left: 145px;
    right: 65px;
    font-size: 20px;
    flex-direction: column;
    /* do not edit: flex for horizontal layout */
    display: flex;
}

/* Colour selection block positioning */
#choose-colour {
    top: 1529px;
}

/* Selected colour name positioning */
#selected-colour-name {
    top: 1670px;
    left: 145px !important;
    font-size: 30px;
    font-weight: 600;
    color: #ab2d6e;
}

/* Size selection block positioning */
#choose-size {
    top: 1529px;
    left: 598px;
}

/* Label styling for colour/size selectors */
.selection-label {
    display: inline-block;
    font-size: 45px;
    margin-right: 20px;
    margin-bottom: 5px;
    color: #ab2d6e;
    font-weight: 800;
}

/* do not edit: flex layout for selection buttons */
.selection {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

/* Colour and size button style (circle, border) */
.selection > div {
    width: 70px;
    height: 70px;
    border: solid 3px #fff;
    /* do not edit: keep circular shape */
    border-radius: 50%;
    transition: all 0.5s ease-out;
    cursor: pointer;
}

/* Size button label style */
.size-btn {
    background-color: #ab2d6e;
    color:#fff !important;
    font-weight: 700;
    font-size: 35px;
    opacity:0.5 !important;
    /* do not edit: center label in circle */
    display: flex;
    justify-content: center;
    align-items: center;
}
.size-btn.selected{
    opacity:1 !important;
}

/* Selected state for colour/size buttons (square highlight) */
.selected {
    border-radius: 0 !important;
}

/* ==========================================================================
   Screen Instructions
   ========================================================================== */

/* Instructions at bottom of product screen */
.screen-instructions {
    left: 65px;
    top: 1779px;
    font-weight: 700;
    font-size: 40px;
    color:#ab2d6e;
    /* do not edit: absolute positioning for instructions */
    position: absolute;
}

/* ==========================================================================
   Cart Styling
   ========================================================================== */

/* Cart background and visibility */
#cart {
    color:#ab2d6e;
    background-image: url(../assets/main_background.jpg);
    /* do not edit: hidden by default, shown by script */
    display: none;
}

/* Cart title styling */
.cart-title {
    left: 65px;
    right: 65px;
    top: 65px;
    background:#b9d657;
    color:#ab2d6e;
    font-size: 70px;
    text-align: center;
    padding: 10px 0;
    font-weight: 700;
}

/* Cart items: scrollable area */
#cart-items {
    overflow: auto;
    height: 1260px;
}

/* Cart items container: positioning and font */
.cart-items-holder {
    left: 65px;
    right: 65px;
    top: 200px;
    font-size: 22px;
    height: 1500px;
}

/* Cart rows: grid layout for each cart item */
.cart-grid {
    /* keep this: grid for cart row layout */
    display: grid;
    /* column width: image, title, colour, size, price, remove */
    grid-template-columns: 130px auto 190px 80px 90px 115px;
    /* space below each row */
    margin-bottom: 20px;
}

/* Spacing between cart columns */
.cart-grid > span {
    padding-right: 20px;
    font-weight: 800;
}

#cart-items{
    font-size: 28px;
}

/* Remove column: no padding, center, vertical adjustment */
.cart-grid > span:last-child {
    padding-right: 0;
    text-align: center;
    transform: translateY(10px);
}

/* Reset transform for remove column header */
.cart-items-header > span:last-child {
    transform: translateY(0);
}

/* Subtotal/taxes/total: grid for summary rows */
.cart-grid-total {
    /* keep this: grid for cart totals */
    display: grid;
    /* column width: label, value */
    justify-content: center;
    grid-template-columns: auto 90px 265px;
    margin-bottom: 20px;
}

.cart-grid-total span{
    font-size: 40px;
    font-weight: 700;
}

/* Font settings for cart headers and totals */
.cart-items-header,
.total-label {
    font-size: 30px;
}

/* do not edit: right-align cost values */
.total-label-cost {
    text-align: right !important;
}

/* Keyline and spacing under cart header */
.cart-items-header {
    padding-bottom: 20px;
    border-bottom: solid 1px #ab2d6e;
    margin-bottom: 20px;
}

/* Keyline and spacing above cart footer */
.cart-items-footer {
    padding-top: 20px;
    border-top: solid 1px #ab2d6e;
    margin-top: 20px;
}

/* Remove item button: circular, centered, colored */
.remove-item > div {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ab2d6e;
    color: #b9d657;
    font-weight: bold;
    margin: 0 auto;
    transform: translateY(-10px);
    cursor: pointer;
}

/* Colour swatch for cart: small circle */
.swatch {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: solid 1px #fff;
    margin-right: 10px;
}

/* ==========================================================================
   Checkout Steps (full screen overlays)
   ========================================================================== */

#checkout-steps {
    color:#ab2d6e;
    /* do not edit: hidden by default, shown by script */
    display: none;
    /* Set background image for checkout overlay */
    /* If using 2 different backgrounds create class for other screen */
    background-image: url(../assets/main_background.jpg);
}
#checkout-steps h1 {
    /* Checkout step main heading */
    margin: 100px 0;
    font-size: 150px;
    text-align: center;
    font-weight: 800;
}
#checkout-steps p {
    /* Checkout step instructions */
    margin: 100px;
    font-size: 130px;
    text-align: center;
    line-height: 1.1;
}
#checkout-steps span{
    display: flex;
    background-color: #ab2d6e;
    color: #b9d657;
    width: 200px;
    height: 200px;
    justify-content: center;
    align-items: center;
    border-radius: 210px;
    font-weight: 800;
    margin: 0 auto;
}

/* ==========================================================================
   Warning Popup and Idle Timer
   ========================================================================== */

/* do not edit: warning overlay is hidden by default */
#warning {
    display: none;
}

/* Idle timer warning popup: centered box */
#content {
    /* do not edit: popup positioning and shadow */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-block;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    /* Popup appearance */
    font-size: 24px;
    padding: 40px;
    text-align: center;
    background-color: #ab2d6e;
}

/* Warning popup title */
#content h2 {
    font-size: 40px;
    margin-bottom: 20px;
    font-weight: 800;
}

/* Warning popup body text */
#content p {
    margin-bottom: 20px;
}