* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(ellipse at top, #49301e, #160e09 75%);
    color: #e8d5b5;
    font-family: Georgia, serif;
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 35px 20px;
    background: repeating-linear-gradient(
        0deg,
        #24150e 0px,
        #352217 3px,
        #2b1a10 5px,
        #2b1a10 38px
    );
    border-bottom: 3px solid #96703b;
    box-shadow: 0 5px 25px #000;
}

h1 {
    margin: 0;
    font-size: clamp(36px, 7vw, 80px);
    letter-spacing: 6px;
    color: #d4ae68;
    text-shadow: 2px 3px 4px #000;
}

.slogan {
    margin: 12px 0 25px;
    font-size: 19px;
    letter-spacing: 3px;
}

.design-button {
    display: inline-block;
    padding: 18px 30px;
    background: linear-gradient(#e1bf80, #96703b);
    color: #21150c;
    border: 2px solid #e6c88c;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 2px;
    box-shadow: 0 4px 12px #000;
}

.design-button:hover {
    background: #e6c88c;
}

/* Artwork gallery */

.gallery {
    max-width: 1600px;
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

.artwork {
    padding: 6px;
    background: linear-gradient(135deg, #d4ae68, #795328, #b99555);
    border: 1px solid #d4ae68;
    border-radius: 3px;
    box-shadow: 0 5px 15px #0009;
}

.artwork img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 7 / 9;
    object-fit: contain;
}

/* Mobile */

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 0 12px;
    }

    .artwork {
        padding: 3px;
    }
}

.cheeky-slogan {
    margin: 20px 0 0;
    color: #d4ae68;
    font-size: 16px;
    font-style: italic;
    letter-spacing: 1px;
}

.product-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.product-preview {
    padding: 8px;
    background: linear-gradient(135deg, #d4ae68, #795328, #b99555);
    border: 1px solid #d4ae68;
    border-radius: 3px;
    box-shadow: 0 5px 15px #0009;
}

.product-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.product-options {
    padding: 30px;
    background: #2b1a10;
    border: 1px solid #96703b;
    border-radius: 4px;
}

.product-options h2 {
    margin-top: 0;
    color: #d4ae68;
    font-size: 32px;
}

@media (max-width: 768px) {
    .product-page {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
.product-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.product-preview {
    padding: 8px;
    background: linear-gradient(135deg, #d4ae68, #795328, #b99555);
    border: 1px solid #d4ae68;
    border-radius: 3px;
    box-shadow: 0 5px 15px #0009;
}

.product-preview img {
    display: block;
    width: 100%;
    height: auto;
}

.product-options {
    padding: 30px;
    background: #2b1a10;
    border: 1px solid #96703b;
    border-radius: 4px;
}

.product-options h2 {
    margin-top: 0;
    color: #d4ae68;
    font-size: 32px;
}

@media (max-width: 768px) {
    .product-page {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.product-options label {
    display: block;
    margin: 25px 0 8px;
    color: #d4ae68;
    font-weight: bold;
}

.product-options select {
    width: 100%;
    padding: 14px;
    background: #160e09;
    color: #e8d5b5;
    border: 1px solid #96703b;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
}

.product-options select:disabled {
    opacity: 0.5;
    cursor: default;
}

.product-price {
    margin-top: 30px;
    padding: 20px;
    background: #160e09;
    border: 1px solid #96703b;
    border-radius: 4px;
    color: #d4ae68;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

/* Poster */
.product-preview.preview-poster {
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: 0 5px 15px #0009;
}

/* Framed Poster */
.product-preview.preview-framed-poster {
    padding: 18px;
    background: linear-gradient(135deg, #67452c, #28170e, #795536);
    border: 3px ridge #96703b;
    box-shadow: 0 8px 20px #000;
}

/* Canvas */
.product-preview.preview-canvas {
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: 8px 8px 0 #38271b, 14px 14px 20px #0009;
}

/* Black frame */
.product-preview.preview-framed-poster.frame-black {
    background: linear-gradient(135deg, #353535, #080808, #252525);
    border-color: #444444;
}

/* White frame */
.product-preview.preview-framed-poster.frame-white {
    background: linear-gradient(135deg, #ffffff, #dedede, #f5f5f5);
    border-color: #eeeeee;
}

/* Natural wood frame */
.product-preview.preview-framed-poster.frame-natural {
    background: linear-gradient(135deg, #d6b17c, #a67c48, #c49a65);
    border-color: #b58b55;
}

.cart-button {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 18px;
    background: linear-gradient(#e1bf80, #96703b);
    color: #21150c;
    border: 2px solid #e6c88c;
    border-radius: 4px;
    font-family: inherit;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
}

.cart-button:hover:not(:disabled) {
    background: #e6c88c;
}

.cart-button:disabled {
    opacity: 0.4;
    cursor: default;
}

.cart-page {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.cart-page h2 {
    color: #d4ae68;
    font-size: 32px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 20px;
    margin-bottom: 20px;
    background: #2b1a10;
    border: 1px solid #96703b;
    border-radius: 4px;
}

.cart-artwork {
    flex: 0 0 120px;
}

.cart-artwork img {
    display: block;
    width: 100%;
    border: 3px solid #96703b;
}

.cart-details {
    flex: 1;
}

.cart-details h3 {
    margin-top: 0;
    color: #d4ae68;
}

.cart-item-price {
    color: #d4ae68;
    font-size: 22px;
    font-weight: bold;
}

.cart-total {
    padding: 25px;
    background: #160e09;
    border: 1px solid #96703b;
    border-radius: 4px;
    text-align: right;
    color: #d4ae68;
    font-size: 24px;
}

@media (max-width: 600px) {
    .cart-item {
        gap: 15px;
        padding: 12px;
    }

    .cart-artwork {
        flex-basis: 90px;
    }
}

.remove-button {
    padding: 8px 16px;
    background: transparent;
    color: #d4ae68;
    border: 1px solid #96703b;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

.remove-button:hover {
    background: #5c241c;
    color: #ffffff;
    border-color: #a64b3c;
}

.quantity-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.quantity-form input {
    width: 65px;
    padding: 8px;
    background: #160e09;
    color: #e8d5b5;
    border: 1px solid #96703b;
    border-radius: 4px;
    font-size: 16px;
}

.update-button {
    padding: 8px 16px;
    background: #96703b;
    color: #ffffff;
    border: 1px solid #d4ae68;
    border-radius: 4px;
    font-family: inherit;
    cursor: pointer;
}

.update-button:hover {
    background: #b99555;
}

.cart-size-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 30px;
}

.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.cart-item-bottom .cart-item-price {
    margin: 0;
    font-size: 22px;
    font-weight: bold;
    color: #d4ae68;
}

.cart-button {
    display: block;
    width: fit-content;
    margin: 15px auto 0;
    padding: 10px 20px;
    background: #2b1c11;
    color: #d4ae68;
    border: 1px solid #96703b;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
}

.cart-button:hover {
    background: #96703b;
    color: #ffffff;
}