/* Reset CSS */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
/**/
/* My edits */
/**/

/* Localization */
.lang { display: none; }
.lang.active { display: block; }
.call-to-action.lang { display: none; }
.call-to-action.lang.active { display: flex; }

/* Body */
body {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fffaf2;
    font-family: Georgia, serif;
    color: #000000;
}

/* Header */
header {
    display: flex;
    justify-content: space-around;
    background-color: #e8ccc3;
    border-bottom: 0.10em;
    border-style: solid;
    border-color: #707070;
    width: 100%; /* Otherwise it will shrink-to-content */
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 3.4em;
    width: 100%; /* Otherwise it will shrink-to-content */
}


.logo {
    padding: .5em;
    font-size: 1.8em;
    color: #000000;
    letter-spacing: 0.02em;
    text-decoration: none;
}

/* Cart icon + cart view*/
.lang-and-cart {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1em;
}

#cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1em;
    margin-right: 0.5em;
    text-decoration: none;
}

.cart-icon {
    height: 2em;
    transform-origin: 50% 50%;
}

.cart-icon.shake {
    animation: cart-icon-shake 0.5s ease;
}

@keyframes cart-icon-shake {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(-18deg); }
    30% { transform: rotate(14deg); }
    45% { transform: rotate(-10deg); }
    60% { transform: rotate(8deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

.cart-count {
    position: absolute;
    top: 1em;
    right: 0.4em;
    box-sizing: border-box;
    min-width: 1.7em;
    height: 1.7em;
    padding: 0 0.35em;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #d14949;
    color: #fff;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 0.8em;
}

.cart-count[hidden] {
    display: none;
}

#clear-cart {
    margin-top: 0.3em;
}

.lang-switch {
    font-size: 1.3em;
    margin-top: 0.2em;
}

.lang-switch a {
    cursor: pointer;
    color: #000000;
    text-decoration: underline;
}

.lang-switch a.active {
    text-decoration: none;
}

nav {
    font-size: 1.4em;
    width: 90%;
    margin-bottom: 0.5em;
}

nav ul {
    display: flex;
    justify-content: space-between;
    margin-top: 1em;
}

nav ul li a {
    color: #000000;
}

nav ul li a.active {
    text-decoration: none;
}

nav ul li a.active::before {
    content: "» ";
}

.container {
    width: 92%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.articles {
    background-color: #f2ecdf;
    border-radius: 0.2em;
    margin-top: 0.5em;
    padding: 0.5em;
    padding-top: 0;
    border: 1px solid;
    border-color: #efd7cf;
    width: 100%;
    min-height: 20em;
}

h1 {
    font-size: 1.7em;
    margin-top: 0.5em;
    margin-bottom: 0.3em;
}

h2 {
    font-size: 1.2em;
}

h3 {
    font-size: 1.2em;
    margin-bottom: 1em;
}

.book-details {
    line-height: 1.6em;
}

.vop-consent {
    display: flex;
    align-items: center;
    margin-top: 1em;
    margin-bottom: 1em;
}

.vop-text {
    line-height: 1.5;
    white-space: pre-wrap;
    margin-top: 0.7em;
    margin-bottom: 1em;
}

.vop-consent svg {
    height: 1.5em;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-button {
    height: 2em;
    border: 0.1em solid #000000;
    background-color: #efd7cf;
    border-radius: 0.4em;
    color: #000000;
    font-family: sans-serif;
    font-size: 0.9em;
    cursor: pointer;
}

.cart-button:hover {
    background-color: #edc0b1;
}

.cart-line-items-wrapper {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0.5em;
}

.cart-line-items {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex: 1;
    margin-left: 0.3em;
}

.cart-product-image {
    width: 5em;
    border-radius: 0.2em;
}

.cart-total {
    float: right;
    font-weight: bold;
}

.cart-delivery-address {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 2em;
    margin-bottom: 2em;
}

hr {
    height: 1px;
    background: #000000;
    border: 0;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

p {
    font-size: 1.1em;
    letter-spacing: 0.02em;
    line-height: 1.5; /* 1.5 times the font size */
    text-align: justify;
    margin-top: 0.7em;
}

p b {
    font-weight: bold;
}

.images {
    float: left;
    width: 42%;
    margin-top: 0.2em;
    margin-right: 1.5em;
    border-radius: 0.2em;
}

.images img {
    border-radius: 0.5em;
    width: 100%;
    height: auto;
}

p i {
    font-style: italic;
}

.shipping-description {
    margin: 0;
    color: #00b30f;
    font-size: 1em;
    font-weight: bold;
}

strong {
    font-weight: bold;
}

#packeta-selector-value {
    font-size: 1.1em;
    margin-bottom: 1.5em;
}

#pickup-point-error {
    color: #d14949;
    font-size: 1.1em;
    font-weight: bold;
}

#checkout-form {
    margin-top: 1em;
}

.checkout-label {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.3em;
    margin-bottom: 0.8em;
}

.checkout-input {
    box-sizing: border-box;
    width: 100%;
    height: 2.3em;
    padding: 0 0.6em;
    font-size: 16px;
    border: 0.1em solid #efd7cf;
    border-radius: 0.4em;
    background-color: #fffaf2;
}

footer {
    margin-top: 2em;
    margin-bottom: 1em;
    width: 100%;
}

.footer_icons {
    display: flex;
    gap: 3em;
    justify-content: center;
}

footer img {
    height: 1.8em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8em;
    align-items: center;
    text-align: center;
    font-size: 1em;
    width: 100%;
}

.footer-links a {
    text-decoration: underline;
    color: #000000;
}

.footer-links a:visited {
    color: #000000;
}

.btncontainer {
    display: flex;
    justify-content: left;
    margin-top: 0.7em;
    margin-bottom: 1.5em;
}

.call-to-action {
    height: 3em;
    width: 15em;
    padding: 0 1.5em;
    align-items: center;
    font-size: 0.9em;
    color: #000000;
    background-color: #ff9e54;
    border: 0.12em solid #ac5211;
    border-radius: 0.5em;
    display: flex;
    justify-content: center;
    font-family: sans-serif;
    text-decoration: none;
    font-weight: bold;
    position: relative;
}

.call-to-action:hover {
    background-color: #f38f4b;
    cursor: pointer;
}

.call-to-action.added {
    background-color: #6fbf73;
    border-color: #2f7a3d;
    color: #ffffff;
    animation: added-punch 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.call-to-action-pay {
    display: block;
    height: 3em;
    margin: 1em auto 0;
    padding: 0 1.5em;
    font-size: 0.9em;
    background-color: #6fbf73;
    border: 0.1em solid #2f7a3d;
    color: #ffffff;
    border-radius: 0.5em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.2s ease;
}

.call-to-action-pay:hover {
    background-color: #79ca7d;
}

@keyframes added-punch {
    0% {
        transform: scale(1);
    }
    30% {
        transform: scale(0.88);
    }
    60% {
        transform: scale(1.10);
    }
    100% {
        transform: scale(1);
    }
}

.hp {
    position: absolute;
    left: -9999px;
}

#price {
    font-weight: bold;
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 0.5em;
}

@media (min-width: 1200px) {

    .header-container {
        width: 52%;
    }

    .container {
        width: 40%;
    }

    .images {
        width: 35%;
    }

    .lang-and-cart {
        gap: 3em;
    }
    
    nav {
        width: 30%;
    }

    .checkout-label {
        width: 70%;
    }
}

