body {
    text-align: center;
    font-family: "Comic Relief", "Comic Sans MS", cursive, sans-serif;
}

/* Header */
header {
    width: 100%;
    height: 4rem;
    display: block;
    background: rgb(229, 219, 212);
    align-content: center;
    margin-bottom: 4rem;
}

.navbar {
    transition: all 0.3s ease-in-out;
    background: rgb(229, 219, 212);
    width: 100%;
    padding: 0 2rem;
}

.navbar:not(.scrolled) {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.navbar.scrolled {
    margin-top: 0;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background: rgb(229, 219, 212) !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

#nav-logo {
    max-width: 180px;
    height: auto;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler:hover {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e");
}

#navbarLinks {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    font-size: 1.5rem;
    gap: 1.5rem;
}

.nav-btns {
    display: flex;
    margin-right: 1rem;
    gap: 1rem;
    align-items: center;
}

.icon {
    max-width: 40px;
    height: auto;
}

.nav-link:hover,
.icon:hover {
    transform: scale(1.2);
}

#nav-cart {
    position: relative;
    display: inline-block;
}

#cart-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background: rgb(126, 77, 40);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#cake-drops {
    min-width: 160px;
    padding: 4px;
}

.cake-item {
    text-align: center;
    border-radius: 10px;
}

.cake-item:hover,
.cake-item:active,
.cake-item.active {
    background: rgba(126, 77, 40, 0.2);
    color: inherit;
}

#searchForm {
    display: flex;
    gap: 0.5rem;
}

#searchForm input {
    max-width: 12rem;
}

.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 0.3rem rgba(126, 77, 40, 0.3);
    border-color: rgb(126, 77, 40);
}

#searchForm button {
    border: none;
    max-width: 60px;
}

#searchForm button:hover {
    background: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(126, 77, 40, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.vertical-divider {
    width: 2px;
    max-height: 40px;
    background: rgb(126, 77, 40);
    margin: 1rem 1rem 0 auto;
}

.lang-btns {
    display: block;
    margin-left: auto !important;
}

#lang-drops {
    min-width: 18px;
    padding: 4px;
}

#lang-drops button,
.lang-btns button {
    border: none;
    border-radius: 10px;
    background: none;
    color: rgba(46, 44, 42, 0.85);
}

#lang-drops button:hover {
    color: rgb(46, 44, 42);
    background: rgba(126, 77, 40, 0.2);
}

@media (max-width: 768px) {
    header {
        height: auto;
        min-height: 4rem;
        margin-bottom: 1rem;
    }

    #nav-logo {
        max-width: 120px;
    }

    .icon {
        max-width: 32px;
    }

    .navbar {
        flex-wrap: wrap;
        align-items: center;
        padding: 0 0.8rem 0 1rem;
    }

    .navbar-brand {
        order: 0;
        margin-right: 0;
    }

    .navbar-toggler {
        order: 1;
        margin-left: auto;
    }

    .vertical-divider {
        display: none;
        opacity: 0;
    }

    #cart-btn {
        order: 2;
        margin-left: 1rem;
        margin-right: 0.5rem;
    }

    #cart-btn .nav-link {
        padding: 0.25rem;
    }

    .lang-btns {
        order: 3;
    }

    .navbar-collapse {
        order: 4;
        width: 100%;
        background: rgba(229, 219, 212, 0.95);
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 8px;
    }

    #navbarLinks {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 1.2rem;
        margin: 0;
    }

    .nav-item {
        text-align: center;
    }

    .dropdown-menu {
        text-align: center;
        border: none;
        background: rgba(229, 219, 212, 0.95);
    }

    .nav-btns {
        margin-right: 0;
        justify-content: center;
    }

    #searchForm {
        justify-content: center;
        margin-top: 1rem;
        flex-wrap: wrap;
    }

    #searchForm input {
        max-width: 100%;
        flex: 1;
        min-width: 200px;
    }
}

/* About */
#story, #recipy, #mission {
    display: flex;
    width: 100%;
    max-height: none;
    min-height: 400px; 
    margin: 2rem auto 0 auto;
    padding: 0 3rem;
    align-items: center;
}

.about-text {
    width: 50%;
}

#story h4, #recipy h4, #mission h4 {
    text-align: center;
    padding-bottom: 1rem;
    font-weight: bold;
}

#recipy h4, #recipy p {
    margin-left: auto;
}

#story p, #mission p {
    text-align: left;
}

#recipy p {
    text-align: right;
}

#story img, #recipy img, #mission img {
    height: 400px;
    width: auto;
}

#story img, #mission img {
    margin-left: auto;
    mask-image: linear-gradient(to right, transparent 0%, transparent 12%, black 55%);
}

#recipy img {
    margin-right: auto;
    mask-image: linear-gradient(to left, transparent 0%, transparent 12%, black 55%);
}

.read-more-btn {
    background: none;
    border: none;
    color: rgb(80, 76, 78);
    font-size: 1rem;
    text-decoration: underline;
    padding: 0;
    margin-top: 0.5rem;
    cursor: pointer;
    display: none;
}

.read-more-btn .less-text {
    display: none;
}

.read-more-btn[aria-expanded="true"] .more-text {
    display: none;
}

.read-more-btn[aria-expanded="true"] .less-text {
    display: inline;
}

@media (min-width: 769px) {
    .collapse {
        display: block !important;
        height: auto !important;
    }
}

@media (max-width: 768px) {
    #story, #recipy, #mission {
        flex-direction: column;
        margin: 0 auto 1rem auto;
        padding: 0 1rem;
        min-height: auto;
    }

    .about-text {
        width: 90%;
        order: 2;
    }

    #recipy h4, #recipy p {
        margin-left: 0;
    }

    #story p, #recipy p, #mission p {
        text-align: justify;
    }

    #story img, #recipy img, #mission img {
        height: auto;
        width: 100%;
        order: 1;
        mask-image: none;
        margin-bottom: 1rem;
    }

    .read-more-btn {
        display: inline-block;
    }
}



/* Numbers */
#number-block {
    display: block;
    width: 100%;
    min-height: 600px;
    margin: 3rem auto;
    position: relative;
    overflow: hidden;
}

#number-block::before {
    background: url("../imgs/number-bg.svg") repeat center center;
    background-size: contain;
    background-attachment: fixed;
    content: ' ';
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -1;
}

#number-block h1 {
    margin: 0 auto;
    padding-bottom: 3rem;
    width: 100%;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.5) 75%,
        rgba(255, 255, 255, 0) 100%
    );
}

#grid-numbers {
    display: grid;
    grid-template-rows: repeat(5, 1fr);
    grid-template-columns: repeat(3, 1fr);
}

#grid-numbers > div {
  opacity: 0;
  transform: translateY(2.5rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#grid-numbers > div.visible {
  opacity: 1;
  transform: translateY(0);
}

#number1 { transition-delay: 0.1s; }
#number2 { transition-delay: 0.2s; }
#number3 { transition-delay: 0.3s; }
#number4 { transition-delay: 0.4s; }
#number5 { transition-delay: 0.5s; }

#number1, #number2, #number3, #number4, #number5 {
    display: block;
    height: 180px;
    background: linear-gradient(circle,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0) 100%
    );
}

#number1 {
    grid-row: 1;
    grid-column: 1;
}

#number2 {
    grid-row: 2;
    grid-column: 1 / 3;
}

#number3 {
    grid-row: 3;
    grid-column: 2;
}

#number4 {
    grid-row: 4;
    grid-column: 2 / 4;
}

#number5 {
    grid-row: 5;
    grid-column: 3;
}

.number-container {
  position: relative;
  display: inline-block;
  background: rgba(229, 219, 212, 0.15);
  border-radius: 10px;
}

.number-container h3 {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0 0.3rem;
  font-size: 1.8rem;
  text-shadow: 8px 8px 8px rgb(255, 255, 255);
}

.number-container h4 {
  position: absolute;
  bottom: 1rem;
  right: 0;
  margin: 0;
  padding: 0.3rem 0.5rem;
  font-size: 1.8rem;
  font-family: 'Segoe Script';
  text-shadow: -8px -8px 8px rgb(255, 255, 255);
}

.numbers {
    display: block;
    width: auto;
    height: 180px;
}

@media (max-width: 768px) {
    #grid-numbers {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    #number-block h1 {
        padding-bottom: 1rem;
    }

    #number1, #number2, #number3, #number4, #number5 {
        height: 120px;
    }

    .number-container h3 {
        font-size: 1.5rem;
    }

    .number-container h4 {
        font-size: 1.4rem;
    }

    .numbers {
        height: 110px;
    }
}

/* Reviews */
#review-container {
    display: block;
    width: 100%;
    margin: 0 auto 2rem auto;
    padding: 1rem 2rem;
    justify-content: space-around !important;
    background-image: url("../imgs/reviews-bg.svg");
    background-size: contain;
    background-repeat: repeat;
}

.reviews {
    width: 80%;
    margin: 0 auto;
}

.review-item {
    display: block;
    height: 400px;
    align-content: center;
    border: none;
    border-radius: 10px;
}

.review-card {
    max-width: 360px;
    height: auto;
}

.owl-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 0.5rem;
}

.owl-dot span {
  width: 10px;
  height: 10px;
  background: rgba(229, 219, 212, 0.95);
  border-radius: 50%;
  display: block;
  transition: all 0.3s ease;
}

.owl-dot.active span {
  background: rgba(126, 77, 40, 0.8);
  transform: scale(1.3);
}

@media (max-width: 768px) {
    .review-item {
        max-height: 200px;
    }

}

/* New + Cake cards */
#new-main {
    display: block;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 2rem;
    justify-items: center;
}

#new-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 80%;
    margin: 0 auto;
    padding: 1.5rem;
    gap: 1rem;
}

.cake {
    justify-items: center;
    align-items: center;
    display: block;
}

.cake-card {
    width: 240px;
    height: 240px;
    border-radius: 15%;
    transition: all 0.3s ease-in-out;
    position: relative;
    cursor: pointer;
}

.cake-card:hover {
    transform: rotate(-10deg);
    border-radius: 50%;
}

.ingredients-btn {
    position: absolute;
    bottom: 10.4rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(126, 77, 40, 0.7);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.card-body:hover .ingredients-btn {
    opacity: 1;
}

.ingredients-btn:hover {
    background-color: rgba(126, 77, 40, 0.9);
}

.hotOffer {
    position: absolute;
    color: white;
    background: rgba(126, 77, 40, 0.9);
    padding: 4px;
    z-index: 10;
    left: 1.8rem;
    top: 6.5rem;
    border-radius: 10px;
}

.card-header {
    font-family: 'Segoe Script';
    font-size: 1.8rem;
    height: 5rem;
    align-content: center;
}

.card-btns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 8px;
    margin: 0;
    justify-content: center;
}

.cake-prices {
    flex-direction: row;
    padding: 4px;
}

#newCard1, #cakeCard {
    background-image: url(../imgs/cake-bg-cake.svg);
    background-size: contain;
    background-repeat: repeat;
}

#newCard2, #cupcakeCard {
    background-image: url(../imgs/cake-bg-cupcake.svg);
    background-size: contain;
    background-repeat: repeat;
}

#newCard3, #bentoCard {
    background-image: url(../imgs/cake-bg-bento.svg);
    background-size: contain;
    background-repeat: repeat;
}

#newCard4, #setCard {
    background-image: url(../imgs/cake-bg-set.svg);
    background-size: contain;
    background-repeat: repeat;
}

.card-header, .card-text, .card-btns {
    border: none;
    background: rgba(255, 255, 255, 0.4);
}

.card-text {
    display: block;
    margin-bottom: 0;
    padding: 4px;
    height: 5rem;
    text-align: center;
    align-content: center;
}

.order-btn, .price-list {
    border: none;
    border-radius: 10px;
    background: rgb(229, 219, 212);
    color: rgb(46, 44, 42);
}

.order-btn p:hover, .price-list .dropdown-toggle:hover {
    color: rgb(126, 77, 40);
    transform: scale(1.2);
    font-weight: bolder;
}

.price-list .dropdown-toggle, .order-btn {
    text-align: center;
    padding-top: 12px;
}

.price-item {
    text-align: center;
    border-radius: 10px;
    margin: 0;
}

.price-item:hover,
.price-item:active,
.price-item.active {
    background: rgba(126, 77, 40, 0.2);
    color: inherit;
    cursor: pointer;
}

@media (max-width: 768px) {
    #new-cards {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .ingredients-btn {
        opacity: 1;
    }
}

/* Order */
.order-main {
    position: relative;
}

.order-main::before {
    background: url("../imgs/number-bg.svg") repeat center center;
    background-size: contain;
    background-attachment: fixed;
    content: ' ';
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    opacity: 0.6;
    z-index: -1;
}

#indivOrderForm {
    display: grid;
    grid-template-columns: 3fr 4fr;
    width: 100%;
    margin: 2rem auto 0 auto;
    padding: 2rem auto;
    align-items: center;
}

#orderForm {
    display: block;
    justify-items: center;
    justify-content: center;
    align-items: center;
    margin: 1rem 3rem 1rem 2rem;
}

#order-head, #cart-header {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 0;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.5) 75%,
        rgba(255, 255, 255, 0) 100%
    );
}

.order-form {
    display: block;
    text-align: left;
    justify-items: right;
}

.form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: right;
    gap: 0.5rem;
    margin-right: -6rem;
    margin-top: 3rem;
}

#indiv-order-btn {
    border: none;
    border-radius: 10px;
    background: rgba(126, 77, 40, 0.5);
    color: white;
    height: 2.5rem;
    padding: 8px 12px;
    align-content: center;
    margin: 0;
    grid-column: 2;
    justify-self: right;
    margin-right: 1rem;
}

.labels-column, .inputs-column {
    display: grid;
    grid-template-rows: repeat(10, 1fr);
    gap: 1rem;
    margin-bottom: 0;
}

.inputs-column {
    padding-left: 0;
}

input, select, textarea {
    border: none;
    border-radius: 10px;
    background: rgba(126, 77, 40, 0.5);
    align-content: center;
    padding: 8px 12px;
    color: white;
    width: 280px;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus  {
    -webkit-box-shadow: 0 0 0px 1000px rgba(126, 77, 40, 0) inset;
    -webkit-text-fill-color: white;
    transition: background-color 5000s ease-in-out 0s;
}

select option {
    background: rgba(126, 77, 40, 0.5);
}

input::placeholder, select::placeholder, textarea::placeholder {
    color: white;
    opacity: 0.6;
}

input[type="date"] {
    border: none;
    border-radius: 10px;
    background: rgba(126, 77, 40, 0.5);
    padding: 8px 12px;
    color: white;
    width: 280px;
    transition: background 0.3s ease;
}

input[type="date"].empty {
    color: rgba(255, 255, 255, 0.6);
}

input[type="date"]:not(.empty) {
    color: white;
}

input[type="date"]:hover {
    background: rgba(126, 77, 40, 0.7);
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    transform: scale(1.3);
}

input[type="date"]:not(.empty):not(:focus) {
    color: white;
    background: rgba(126, 77, 40, 0.5);
    cursor: pointer;
}

.labels {
    align-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.labels-column {
    text-align: right;
}

.custom-select {
    position: relative;
    width: 280px;
}

.select-button {
    width: 100%;
    border: none;
    border-radius: 10px;
    background: rgba(126, 77, 40, 0.5);
    padding: 4px 30px 4px 10px;
    color: white;
    text-align: left;
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease;
    height: 3.5rem;
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.select-button span, .custom-file-button span {
    opacity: 0.6;
}

.select-button.selected span, .custom-file-button.selected span {
    opacity: 1;
}

.select-button:hover, textarea:hover {
    background: rgba(126, 77, 40, 0.7);
}

.select-button::after {
    content: '▼';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    pointer-events: none;
}

.custom-select .dropdown-menu {
    width: 100%;
    background: rgb(163, 128, 101);
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    margin-top: 4px;
    max-height: 200px;
    overflow-y: auto;
}

.custom-select .dropdown-item {
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.custom-select .dropdown-item:hover {
    background: rgba(100, 60, 30, 0.8);
    border-radius: 10px;
}

.custom-select .dropdown-item:active {
    background: rgba(100, 60, 30, 1);
}

.custom-file-button {
    display: inline-block;
    width: 280px;
    border-radius: 10px;
    background: rgba(126, 77, 40, 0.5);
    padding: 8px 12px;
    color: white;
    align-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.custom-file-button:hover {
    background: rgba(126, 77, 40, 0.7);
}

.form-photo-container {
    display: flex;
    margin: 0 2rem 2rem 0;
    padding-left: 0;
}

.form-photo {
    padding: 0;
    margin-right: 1rem;
    width: 700px;
    height: auto;
    box-shadow: 8px 8px 4px rgb(229, 219, 212);
    border-radius: 15%;
}

#form-divider {
    width: 4px;
    height: 1000px;
    margin-top: 2rem;
}

.delivery-rule {
    display: flex;
    width: 100%;
    justify-content: space-around;
    margin: 0 auto 0 auto;
    align-items: center;
}

#map {
    max-width: 600px;
    width: 100%;
    height: auto;
    padding: 0 1rem 0 0;    
    margin: 2rem auto 2rem 4rem;
}

#map iframe {
    width: 100% !important;
    height: 450px;
    border: 0;
}

#rules {
    max-width: 600px;
    height: 446px;
    padding: 0 1rem 0 0;
    margin: 2rem 4rem 2rem auto;
    text-align: left;
    background: linear-gradient(to bottom,
        rgba(126, 77, 40, 0) 0%,
        rgba(126, 77, 40, 0.1) 50%,
        rgba(126, 77, 40, 0) 100%);
    font-size: larger;
}

#rules h5, #rules ul {
    margin: 1rem 4rem;
}

.rule-divider {
    height: 4px;
    width: 80%;
}

@media (max-width: 768px) {
    #indivOrderForm {
        display: flex;
        flex-direction: column;
        margin: 0 auto;
    }

    #order-head, #cart-header {
        padding: 0 1rem;
    }

    #orderForm {
        margin: 1rem 0 1rem 2rem;
    }

    .order-form {
        text-align: left;
        justify-items: center;
    }

    .form-container {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        justify-items: center;
        margin: 0 auto;
        padding: 0 1rem;
        gap: 0.5rem;
    }

    .labels-column, .inputs-column {
        display: contents;
        margin: 0;
        padding: 0;
    }
    
    .labels-column {
        text-align: center; 
    }

    input, 
    select, 
    textarea,
    .custom-select,
    .custom-file-button {
        width: 100% !important;
        margin: 0 auto 0 -1rem;
    }
    
    .labels {
        width: 100%;
        max-width: 350px;
        margin: 0 auto 0 -1rem;
    }

    #indiv-order-btn {
        grid-column: 1;
        justify-self: right;
        margin-right: 1rem;
    }
    
    #lbl-name { order: 1; }
    #name { order: 2; }
    
    #lbl-tel { order: 3; }
    #tel { order: 4; }
    
    #lbl-nickname { order: 5; }
    #nickname { order: 6; }
    
    #lbl-product { order: 7; }
    .custom-select:has(#productButton) { order: 8; }
    #productHidden { order: 9; }

    #lbl-sponge { order: 10; }
    .custom-select:has(#spongeButton) { order: 11; }
    #spongeHidden { order: 12; }
    
    #lbl-frosting { order: 13; }
    .custom-select:has(#frostingButton) { order: 14; }
    #frostingHidden { order: 15; }
    
    #lbl-filling { order: 16; }
    .custom-select:has(#fillingButton) { order: 17; }
    #fillingHidden { order: 18; }
    
    #lbl-wish { order: 19; }
    #wish { order: 20; }
    
    #lbl-file { order: 21; }
    .custom-file-button { order: 22; }
    #fileInput { order: 23; }
    
    #lbl-delivery-date { order: 24; }
    #delivery-date { order: 25; }

    #indiv-order-btn {order: 26;}

    .form-photo-container {
        display: none;
    }

    .form-photo {
        display: none;
        opacity: 0;
    }

    .delivery-rule {
        flex-direction: column;
    }    

    #map {
        max-width: 100%;
        width: 100%;
        padding: 0 1rem;
        margin: 1rem auto; 
    }
    
    #map iframe {
        width: 100% !important;
        height: 300px; 
    }

    #rules {
        width: 100%;
        height: fit-content;
        padding: 0 1rem;
        margin: 0 auto;
    }

    #rules h5, #rules ul {
        margin: 1rem;
    }

    #rules h5 {
        text-align: center;
    }

    .rule-divider {
        width: 90%;
    }
}

/* Footer */
footer {
    display: block;
    background: rgb(229, 219, 212);
    height: fit-content;
    padding-bottom: 0.5rem;
    width: 100%;
}

#footer-content {
    display: flex;
    width: 90%;
    padding: 1rem 1rem 0 1rem;
    justify-content: space-around;
    color: rgb(80, 76, 78);
    text-align: left;
}

#footer-content h5 {
    font-weight: bold;
}

.footer-list {
    list-style: none;
    padding-left: 0;
}

.navi-list li {
    padding-bottom: 12px;
}

.footer-list a {
    display: inline-block;
    color: rgb(80, 76, 78);
    text-decoration: none;
}

.footer-list a:hover {
    color: rgb(126, 77, 40);
    text-decoration: underline;
    transform: scale(1.1);
}

.footer-list li {
    display: flex;
}

.call {
    margin-left: 12px;
}

.footer-media {
    display: flex;
    gap: 12px;
}

.footer-media a:hover {
    transform: scale(1.2);
}

.footer-icon {
    max-width: 40px;
    height: auto;
}

hr {
  border: none;
  height: 2px;
  background-color: rgb(80, 76, 78);
  width: 90%;
  margin: 1rem auto;
}

@media (max-width: 768px) {
    #footer-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-content: space-between;
        margin: 0 auto;
    }

    #footer-navigation, #footer-catalog {
        padding: 0;
        justify-content: center;
        text-align: center;
    }

    #footer-address-hours {
        grid-column: 1 / 3;
        text-align: center;
        justify-content: center;
    }

    #footer-hours-list {
        text-align: start;
        margin-left: -1.5rem;
        margin-right: -1.5rem;
    }

    #contacts {
        grid-column: 1 / 3;
        text-align: center;
        justify-content: center;
        justify-items: center;
        padding-top: 2rem;
    }

    .footer-list {
        justify-items: center;
    }

    .footer-media {
        margin-top: 0;
        margin-bottom: 1rem;
    }
}

/* 404 */
#page404-main {
    background: rgba(229, 219, 212, 0.5);
    padding: 4rem auto;
    display: block;
    width: 100%;
    min-height: 65vh;
}

#page404-main h1, #page404-main h5 {
    padding: 4rem auto;
    width: 90%;
    display: block;
    margin: 0 auto;
}

#footer404 {
    height: fit-content;
}

#btn-404 {
    border: none;
    border-radius: 10px;
    background: rgb(229, 219, 212);
    padding: 8px;
    margin-top: 1rem;
}

#btn-404 a {
    text-decoration: none;
    color: rgb(80, 76, 78); 
    font-size: large;
}

#btn-404 a:hover {
    color: rgb(126, 77, 40);
    transform: scale(1.2);
    font-weight: bolder;
}

#lang-switch {
    display: flex;
}

.lang-item {
    border: none;
    background: none;
    color: rgb(80, 76, 78);
}

.lang-item:hover {
    color: rgb(126, 77, 40);
    transform: scale(1.2);
}

@media (max-width: 768px) {
    #page404-main img {
        max-width: 80%;
        height: auto;
    }
}

/* Catalog */
.catalog-block {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 80%;
    margin: 0 auto;
    padding: 1.5rem;
    gap: 1rem;
}

#new-cakes {
    background-image: url('../imgs/reviews-bg.svg');
    background-repeat: repeat;
    background-size: auto;
}

#cakes {
    background-image: url('../imgs/cake-bg.svg');
    background-repeat: repeat;
    background-size: auto;
}

#cupcakes {
    background-image: url('../imgs/cupcake-bg.svg');
    background-repeat: repeat;
    background-size: auto;
}

#bento {
    background-image: url('../imgs/bento-bg.svg');
    background-repeat: repeat;
    background-size: auto;
}

#sets {
    background-image: url('../imgs/set-bg.svg');
    background-repeat: repeat;
    background-size: auto;
}

#new-cakes h1, #cakes h1, #cupcakes h1, #bento h1, #sets h1 {
    margin: 0 auto;
    padding: 1rem auto 2rem auto;
    width: 100%;
    background: linear-gradient(to bottom,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.5) 75%,
        rgba(255, 255, 255, 0) 100%
    );
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #f5f0eb;
    margin: 10% auto;
    padding: 2rem;
    border: 2px solid rgb(126, 77, 40);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: rgb(126, 77, 40);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: rgb(100, 60, 30);
}

#modalTitle {
    font-family: 'Segoe Script';
    color: rgb(126, 77, 40);
    margin-bottom: 1rem;
}

#modalIngredients {
    line-height: 1.6;
}

#modalIngredients ul {
    list-style: none;
    padding-left: 0;
}

#modalIngredients li:before {
    content: "🧁 ";
    margin-right: 0.5rem;
}

#addToCartModal .modal-content {
    max-width: 400px;
    height: fit-content;
    text-align: center;
}

#added-item-preview {
    margin: 1rem 0;
    padding: 0;
    background: rgba(245, 240, 235, 0.5);
    border-radius: 10px;
    display: block;
}

#added-item-preview span {
    font-family: 'Segoe Script';
    font-size: larger;
}

#added-item-preview img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 10%;
    margin-bottom: 0.5rem;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.modal-buttons button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.modal-buttons button:first-child {
    background: rgba(126, 77, 40, 0.5);
    color: rgba(255, 255, 255, 0.6);
}

.modal-buttons button:last-child {
    background: rgb(126, 77, 40);
    color:  rgba(255, 255, 255, 0.6);
}

.modal-buttons button:hover {
    transform: scale(1.05);
    color: white;
}

/* Order */
#cake-order {
    margin: 2rem auto 0 auto;
}

#order-indiv-btn {
    border: none;
    background: rgb(229, 219, 212);
    border-radius: 10px;
    padding: 8px;
    margin: 1rem auto;
}

#order-indiv-btn a {
    color: rgb(80, 76, 78);
    text-decoration: none;
    font-size: 1.6rem;
}

#order-indiv-btn:hover {
    transform: scale(1.2);
}

#order-indiv-btn a:hover {
    color: rgb(126, 77, 40);
    text-decoration: underline;
}


@media (max-width: 768px) {
    .catalog-block {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
}

/* Cart */
#cartOrderForm {
    display: block;
    padding-top: 1rem;
}

#cartForm {
    display: block;
    align-items: center;
    margin: 1rem 0 1rem 2rem;
}

#cartEmpty {
    margin-left: auto;
    margin-right: 0;
    padding-right: 0;
}

.empty-cart-text h2, .empty-cart-text h3 {
    width: 70%;
    margin-left: auto;
    margin-right: 0;
    padding: 1rem;
}

#cartEmpty .cart-btn {
    margin-right: 1rem;
}

#empty-cart-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    width: 90%;
    margin: 0 auto;
    padding: 2rem auto;
    align-items: center;
}

.empty-cart-text {
    display: block;
    justify-items: center;
    justify-content: center;
    align-items: center;
    text-align: right;
    margin: 1rem 0 1rem 2rem;
}

.cart-photo-container {
    display: flex;
    margin: 0 2rem 2rem 0;
    padding-right: 2rem;
}

.cart-photo {
    padding: 0;
    margin-right: 0;
    width: 500px;
    box-shadow: 8px 8px 4px rgb(229, 219, 212);
    border-radius: 15%;
}

.cart-btn {
    border: none;
    border-radius: 10px;
    background: rgb(229, 219, 212);    
    text-align: center;
    padding: 8px 8px;
    height: 3rem;
}

.cart-btn a {
    font-size: larger;
    color: rgb(46, 44, 42);
    text-decoration: none;
}

.cart-btn a:hover {
    color: rgb(126, 77, 40);
    transform: scale(1.2);
    font-weight: bolder;
    text-decoration: underline;
}

#cart-divider {
    width: 4px;
    height: 550px;
    margin-top: 1.5rem;
}


@media (max-width: 768px) {
    #cartOrderForm {
        padding-top: 0;
    }

    #empty-cart-grid {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-left: 0;
        padding-right: 1rem;
    }

    .empty-cart-text {
        text-align: center;
        width: 100%;
        justify-items: center;
        margin: 0 auto;
        padding: 0 1rem;
        gap: 0.5rem;
    }

    .empty-cart-text h2, .empty-cart-text h3 {
        width: 100% !important;
        margin: 0 1.8rem 0 0;
        padding-right: 0;
        text-align: center;
    }
    
    .empty-cart-text .cart-btn {
        height: fit-content; 
    }

    .cart-photo-container {
        display: none;
    }
}

#cartFull {
    display: grid;
    grid-template-columns: 3fr 1fr;
    width: 70%;
    margin: 0 auto;
    gap: 0;
    align-items: start;
}

#cart-left {
    display: block;
    justify-items: left;
    margin: 0;
    gap: 1rem;
    width: 100%;
}

.cart-items-block {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#cart-right {
    display: block;
    position: sticky;
    top: 1rem;
    justify-items: left;
    margin: 0;
    padding: 0;
}

#cart-total {
    font-size: 1.8rem;
    padding-top: 1rem;
}

#totalSum {
    color: rgb(100, 60, 30);
}

.cart-item {
    display: flex;
    width: 100%;
    height: fit-content;
    border-radius: 15px;
    border: 2px solid rgba(126, 77, 40, 0.8); 
    margin: 1rem 6rem 1rem 0;  
    position: relative;
    background: rgba(126, 77, 40, 0.2);
}

.cart-item-img {
    width: 250px;
    height: auto;
    border-radius: 10%;
    margin: 1rem 2rem;
}

.cart-item-remove {
    display: block;
    background: rgba(126, 77, 40, 0.7);
    color: rgba(255, 255, 255, 0.6);
    border: none;
    border-radius: 10px;
    width: 2rem;
    height: 2rem;
    font-size: 1.2rem;
    align-items: center;
    position: absolute;
    top: 4px;
    right: 4px;
}

.cart-item-remove:hover {
    color: white;
    transform: scale(1.2);
}

.order-form-container {
    display: flex;
    flex-direction: column;
    justify-content: left;
    padding: 1rem 0;
    gap: 1rem;
}

.cart-item-info {
    display: block;
    justify-content: left;    
    justify-items: left;
    margin: 1rem 4rem 1rem 0;
    gap: 0;
}

.cart-item-info p {
    font-size: larger;
    font-style: italic;
}

.cart-item-text {
    display: block;
    justify-content: left;
    justify-items: left;
    gap: 0;
}

.cart-item-text h4 {
    font-weight: bolder;
}

#cart-order-btns {
    display: flex;
    gap: 1rem;
}

.cart-order-btn {
    display: block;
    background: rgba(126, 77, 40, 0.5);
    border: none;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.8);
    padding-top: 12px;
    align-content: center;
}

.cart-order-btn:hover {
    background: rgba(126, 77, 40, 0.7);
    color: white;
    transform: scale(1.1);
}

.cart-item-quantity {
    display: flex;
    border: 2px solid rgb(126, 77, 40);
    border-radius: 10px;
    margin: 1rem 0;
}

.cart-item-quantity button {
    display: block;
    background: rgba(126, 77, 40, 0.7);
    color: rgba(255, 255, 255, 0.8);
    border: none;
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
    font-weight: bold;
    align-content: center;
}

#cart-add-quantity {    
    border-radius: 5px 0 0 5px;
}

#cart-remove-quantity {
    border-radius: 0 5px 5px 0;
}

.cart-item-quantity button:hover, .cart-item-remove:hover {
    color: white;
}

.cart-item-quantity button p:hover {
    transform: scale(1.5);
}

.cart-item-remove:hover {
    transform: scale(1.2);
}

.cart-item-quantity span {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.4);
    align-content: center;
    color: rgb(100, 60, 30);
}

@media (max-width: 768px) {
    #cartFull {
        grid-template-columns: 1fr;
        align-items: center;
        justify-content: center;
        justify-items: center;
        margin: 1rem auto;
    }

    #cart-left {
        justify-items: center;
        margin: 0 0 2rem -1.7rem;
        width: 90%;
    }

    .cart-item {
        flex-direction: column;
        width: 100%;
        margin: 1rem 0;
    }

    .cart-item-img {
        width: 220px;
        margin: 2rem 2rem 0 2rem;
    }

    .cart-item-info, .cart-item-text {
        justify-content: center;    
        justify-items: center;
        margin: 0.5rem auto;
    }

    #cart-right {
        position: sticky;
        top: 1rem;
        justify-items: center;
        margin: 0 0 0 -1.7rem;
    }

    #cart-total {
        padding-top: 0;
    }

    .order-form-container {
        justify-content: center;
        padding: 0.5rem 0 1rem 0;
        gap: 0.5rem;
    }

    .order-form-container label {
        text-align: center;
    }

    #cart-order-btns {
        margin-right: 1rem;
    }
}

/* Scroll top */
#scrollTopBtn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: none;
    justify-content: start;
    align-content: start;
    padding: 0;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 999;
}

#scrollTopBtn img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}
