/*
Theme Name:  Google P&P Theme
Theme URI:   https://p-p.nl
Author:      Simon Holman
Author URI:  https://p-p.nl
Description: This theme is made specifically for the Google webshop created by P&P Projects.
Version:     1.0
Text Domain: google-penp
Template: twentytwentyfive
*/

@import url('../twentytwentyfive/style.css');

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #ffffff;
    color: #202124;
    line-height: 1.6;
}

header {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e0e0e0;
}

header img {
    height: 40px;
}

main {
    padding: 2rem;
    max-width: 960px;
    margin: 0 auto;
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

p.subtext {
    color: #5f6368;
    margin-bottom: 2rem;
}

section {
    margin-bottom: 3rem;
}

.product-group {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product {
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(60,64,67,.15);
}

.product-size-summary {
    margin: -0.5rem 0 1rem;
    color: #5f6368;
    font-size: 0.95rem;
}

.product-size-summary p {
    margin: 0.15rem 0;
}

.spec-button {
    align-self: flex-start;
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.65rem 1rem;
    background-color: #ffffff;
    color: #1a73e8;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.7em;
}

.spec-button:hover {
    border-color: #1a73e8;
    background-color: #e8f0fe;
}

.product figure {
    max-width: calc(100% - 40px);
    width: 300px;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.product > img {
    max-width: min(300px, 100%);
}

.image-zoom-button {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 4px;
    cursor: zoom-in;
}

.image-zoom-button:hover {
    background: transparent;
}

.image-zoom-button:focus-visible {
    outline: 3px solid #1a73e8;
    outline-offset: 3px;
}

form {
    background-color: #f1f3f4;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(60,64,67,.15);
}

label {
    display: block;
    margin: 1rem 0 0.5rem;
    font-weight: bold;
}

input, select {
    width: 100%;
    padding: 0.6rem 0 0.6rem 0.6rem;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 1rem;
}

form button {
    margin-top: 2rem;
    background-color: #1a73e8;
    color: white;
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.center {
    text-align: center;
}

@media (max-width: 768px) {
    .product-group {
        flex-direction: column;
    }
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #202124;
}

button  {
    background-color: #f1f3f4;
    color: #202124;
    border: 1px solid #dadce0;
    font-weight: 500;
    transition: all 0.2s ease;
}

button:hover {
    border-color: #c6c6c6;
    background-color: #0b66c3;
}

select, input {
    box-shadow: 0 1px 3px rgba(60,64,67,0.1);
    background-color: #fff;
}

checkbox {
    all: unset;
}

form .form-group {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

form .form-group > * {
    flex: 1;
}

@media (max-width: 768px) {
    form .form-group {
        flex-direction: column;
        gap: 0;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(32, 33, 36, 0.6);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid #dadce0;
    border-radius: 8px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.modal-content img {
    max-width: 100%;
    height: auto;
    margin-top: 1rem;
    border-radius: 4px;
}

.product-image-modal {
    padding: 2rem;
    box-sizing: border-box;
}

.product-image-modal-content {
    max-width: min(1000px, calc(100vw - 4rem));
    max-height: calc(100vh - 4rem);
    padding: 1rem;
}

.product-image-modal-content img {
    max-height: calc(100vh - 8rem);
    object-fit: contain;
}

.close-button {
    float: right;
    background: transparent;
    border: 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: #5f6368;
    cursor: pointer;
}

.close-button:hover {
    color: #202124;
    background: transparent;
}

.status-message {
    padding: 1rem;
    margin: 1.5rem auto;
    border-radius: 6px;
    font-weight: 500;
    width: 80vw;
    text-align: center;
}

.status-message.success {
    background-color: #e6f4ea;
    color: #137333;
    border: 1px solid #a5d6a7;
}

.status-message.error {
    background-color: #fce8e6;
    color: #a50e0e;
    border: 1px solid #f28b82;
}

.status-message.info {
    background-color: #d6efff;
    color: #364d9a;
    border: 1px solid #73aeff;
}

form .status-message {
    width: auto;
}

.carousel-wrapper {
    background-color: #f8f9fa;
}

.carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 1rem;
    gap: 1rem;
}

.carousel figure {
    max-width: min(300px, calc(100% - 80px));
    flex: 0 0 100%;
}

.carousel figcaption {
    text-align: center;
}

.carousel img {
    width: 100%;
}

.carousel figcaption {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #5f6368;
}
