/* Global Reset & Base Styles */
html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  background-color: white;
  color: #4a5565;
}

/* Header & Logo */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: #ffffff;
  z-index: 999;
  border-bottom: 1px solid #f3f4f6;
  padding: 16px 0;
  display: flex;
  justify-content: space-between; /* Pushes logo left, navigation right */
  align-items: center;
}

.header .logo {
  margin-left: 10%;
}

.header .navigation {
  margin-right: 10%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #973c00;
  font-size: 24px;
  font-weight: 400;
  text-decoration: none;
}

.logo__square {
  width: 20px;
  height: 20px;
  border: 2px solid #973c00;
}

/* Navigation */
.nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: #4a5565;
  font-size: 16px;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #973c00;
}

.nav-cart {
  align-items: center;
  display: flex;
  position: relative;
}

.nav-cart__icon {
  height: 20px;
  margin-right: 10px;
  opacity: 0.6;
  width: 20px;
}

.nav-cart-count {
  border-radius: 50%;
  color: #555;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 6px;
  position: absolute;
  top: 0px;
  right: -10px;
}

/* Hero Section */
.hero {
  position: relative; /* Essential for containing the absolute image */
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Keeps the image inside the hero box */
  background-color: #333; /* Fallback color so you can see if the hero exists */
}

.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Prevents the image from being squashed */
  opacity: 0.5;
  z-index: 0; /* Changed from -1 to 0 */
}

.hero__intro {
  max-width: 700px;
  color: white;
  font-size: 24px;
  line-height: 1.4;
  position: relative; /* Needed for z-index to work */
  z-index: 1; /* Ensures text is above the background image */
}

/* Buttons */
.hero__actions {
  display: flex;
  gap: 20px;
  position: relative; /* Needed for z-index to work */
  z-index: 1; /* Ensures buttons are above the background image */
}

.gallery-btn,
.shop-btn {
  padding: 16px 32px;
  border: 2px solid white;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.3s;
}

.gallery-btn:hover,
.shop-btn:hover {
  background: white;
  color: #333;
}

/* GALLERY PAGE */

.gallery-year__header {
  margin: 60px auto 20px auto;
  max-width: 1200px;
  padding: 0 40px;
}

.gallery-year__header h2 {
  color: #973c00;
  font-family: serif, georgia, serif;
  font-size: 24px;
}

.gallery-year__header hr {
  border: none;
}

.gallery-grid {
  display: grid;
  /* This creates 3 columns that resize automatically */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto; /* Centers the whole grid */
}

.gallery-item img {
  height: 300px;
  border-radius: 4px;
  box-shadow:
    0px 4px 6px -1px rgba(151, 60, 0, 0.3),
    0px 2px 4px -2px rgba(151, 60, 0, 0.2); /* Subtle shadow for depth */
  object-fit: cover; /* Keeps images from looking squished */
  transition: transform 0.3s ease;
  width: 100%;
}

.gallery-item img:hover {
  transform: scale(1.02); /* Subtle pop effect on hover */
}

/* STUDIO SHOP PAGE */

.studio-page {
  background-color: #fcfcfc;
}

.shop-content {
  padding: 80px 20px 20px 20px; /* More top room, less bottom room */
  max-width: 1100px;
  margin: 0 auto;
  text-align: center; /* Centers all text inside */
}

.shop-content h1 {
  font-size: 32px;
  color: #333;
  margin-bottom: 16px; /* Space between H1 and P */
  font-weight: 500;
  letter-spacing: -0.5px;
}

.shop-content p {
  font-size: 18px;
  color: #666;
  max-width: 600px; /* Keeps the text from stretching too wide */
  margin: 0 auto 40px auto; /* Centers the paragraph block and adds space below */
  line-height: 1.6;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  padding: 60px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Soft shadow */
  transition: transform 0.2s ease;
}

.product-card__image {
  background-color: #f2f2f2; /* Light grey background behind the products */
  height: 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__info {
  padding: 20px 20px 0 20px;
}

.product-card__title {
  font-size: 18px;
  color: #333;
  margin-bottom: 8px;
}

.product-card__description {
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

.product-card__details {
  align-content: center;
  display: flex;
  flex-direction: row;
  gap: 24px;
  justify-content: center;
  margin: 0 auto;
  padding: 10px 24px 20px 14px;
  width: 100%;
}

.product-card__price {
  color: #555;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.color-selector,
.size-selector {
  align-content: center;
  display: flex;
  justify-content: center;
  width: 50px;
}

.color-selector {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  padding-bottom: 20px;
  padding-right: 50px;
}

.product-card__details input[type="radio"] {
  height: 0;
  width: 0;
  opacity: 0;
  position: absolute;
}

.product-card__details input[type="radio"] + label {
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  cursor: pointer;
  display: block;
  height: 14px;
  margin: 0;
  text-indent: -9999px; /* Hides the text but keeps it accessible for screen readers */
  transition: transform 0.1s ease;
  width: 14px;
}

.product-card__details input[type="radio"]:checked + label {
  border: 2px solid #973c00;
  transform: scale(1.1);
}

.product-card__details input[value="slate-grey"] + label {
  background-color: #708090;
}

.product-card__details input[value="sage-green"] + label {
  background-color: #9caf88;
}

.product-card__details input[value="beige"] + label {
  background-color: #f5f5dc;
}

.product-card__details input[value="grey-blue"] + label {
  background-color: #6b7b8c;
}

.product-card__details input[type="radio"]:checked + label {
  border: 2px solid #973c00;
  transform: scale(1.1);
}

.size-selector {
  padding-right: 10px;
  padding-top: 5px;
}

.size-dropdown {
  font-size: 13px;
  height: 24px;
  padding: 2px 4px;
  width: 100%;
}

.size-dropdown:hover,
.size-dropdown:focus {
  border-color: #973c00;
}

.product-card__footer {
  align-items: center;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 20px 20px 20px;
  width: 100%;
}

.btn-decrement,
.btn-increment {
  align-items: center;
  background-color: #edc9af;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  display: flex;
  font-size: 16px;
  font-weight: 600;
  height: 32px;
  justify-content: center;
  padding: 8px 16px;
  transition: background 0.2s;
  width: 32px;
}

.btn-decrement:hover,
.btn-increment:hover {
  background-color: #edc9af;
  opacity: 0.7;
}

.quantity {
  color: #333;
  font-size: 14px;
  font-weight: 500;
  min-width: 20px;
  text-align: center;
}

.btn-add-to-cart {
  background-color: #973c00;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  flex-grow: 1;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  transition: background 0.2s;
}

.btn-add-to-cart:hover {
  background-color: #7a3100;
  opacity: 0.8;
}

/* ABOUT SECTION */

.about-section,
.offer-section,
.contact-section {
  width: 100%;
  padding: 60px 0;
  scroll-margin-top: 80px; /* Offsets the sticky header when linking to sections */
}

.about__hero,
.section__header,
.section__list,
.values-grid,
.contact-us__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px; /* Keeps your nice breathing room on the sides */
}

.bg-light {
  background-color: #fcfcfc;
}

.bg-shade {
  background-color: #f7f5f5;
}

.about__hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}

.about-title {
  color: #973c00;
  font-size: 36px;
  margin-bottom: 24px;
  font-family: "serif", Georgia, serif;
}

.about__text p {
  color: #555;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.about__image-wrapper {
  position: relative;
}

.about__image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 48% 52% 61% 45% / 51% 55% 45% 55%;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.value-card__shape img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 48% 52% 61% 39% / 51% 55% 45% 49%;
  margin-bottom: 20px;
  border: 3px solid #f2f2f2;
}

.value-title {
  color: #333;
  font-size: 20px;
  margin-bottom: 12px;
  font-family: "Serif", Georgia, serif;
}

/* WORKSHOPS + CLASSES SECTION */

.section__header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  z-index: 0;
}

.section-title {
  color: #973c00;
  font-family: "Serif", Georgia, serif;
}

.section__list {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 20px;
}

.offer-card {
  background: white;
  border-radius: 8px;
  box-shadow:
    0px 4px 6px -1px rgba(151, 60, 0, 0.3),
    0px 2px 4px -2px rgba(151, 60, 0, 0.2); /* Subtle shadow for depth */
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.offer-card__image {
  border-radius: 12px;
  border: 3px solid #f2f2f2;
  height: 200px;
  object-fit: cover;
  width: 100%;
  overflow: hidden;
}

.offer-card__content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 20px 10px;
}

.offer-card__title {
  color: #973c00;
  font-family: "Serif", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  margin-top: 12px;
  margin-bottom: 8px;
  min-height: 40px; /* Ensures titles have a consistent height */
  text-align: center;
}

.offer-card__description {
  color: #555;
  font-size: 14px;
  line-height: 1.4;
  margin-top: 12px;
  margin-bottom: 20px;
  text-align: center;
}

.offer-card__date,
.offer-card__duration,
.offer-card__class-size {
  color: #555;
  display: block;
  font-size: 14px;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.offer-card__date {
  font-weight: 600;
  margin-top: auto; /* Pushes the date to the bottom of the description */
}

.offer-card__duration,
.offer-card__class-size {
  font-weight: 400;
  opacity: 0.8;
}

.offer-card__footer {
  align-items: center;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-evenly;
  margin-top: auto;
  padding: 20px 10px;
}

.offer-card__price {
  color: #973c00;
  font-size: 18px;
  font-weight: 500;
}

.offer-card__register-btn {
  background-color: #973c00;
  border: none;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  transition: background 0.2s;
}

.offer-card__register-btn:hover {
  background-color: #7a3100;
  opacity: 0.8;
  transition:
    background 0.2s,
    opacity 0.2s;
}

.offer__footer {
  font-size: 14px;
  margin-top: 60px;
  opacity: 0.8;
  text-align: center;
}

.offer__contact-link,
.termsofservice-link {
  color: #973c00;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.offer__contact-link:hover,
.termsofservice-link:hover {
  color: #7a3100;
}

/* MEMBERSHIP SECTION */

.membership-card__price-box {
  align-items: baseline;
  display: flex;
  font-family: "Serif", Georgia, serif;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 12px;
}

.membership-card__price {
  color: #333;
  display: flex;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

.membership-card__period {
  color: #777;
  display: flex;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.membership-card__description {
  color: #555;
  font-size: 14px;
  line-height: 1.4;
  margin-top: 12px;
  margin-bottom: 20px;
  text-align: center;
}

.membership-benefits {
  color: #555;
  font-family: inter, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  margin-top: auto; /* Pushes the benefits list to the bottom of the card */
  padding: 8px 20px 20px 20px;
}

.offer-card--most-popular {
  border: 2px solid #fef3c6;
  margin-top: 0;
  position: relative;
  z-index: 10;
}

.offer-card__badge {
  background-color: #fef3c6;
  color: #973c00;
  border: 2px solid #fef3c6;
  border-radius: 20px;
  box-shadow: 0px 10px 20px rgba(254, 243, 198, 0.5); /* Soft orange glow */
  font-size: 12px;
  font-weight: 600;
  left: 50%;
  padding: 4px 12px;
  position: absolute;
  top: -14px;
  transform: translateX(-50%);
  z-index: 12;
}

/*.offer-card__register-btn--most-popular {
  background-color: #fef3c6;
  color: #973c00;
}

.offer-card__register-btn--most-popular:hover {
  background-color: #fcd34d;
  color: #973c00;
  opacity: 0.9;
  transition:
    background 0.2s,
    opacity 0.2s;
}*/

/* CONTACT SECTION*/

.contact-us__header {
  margin-bottom: 40px;
  text-align: center;
}

.section-title {
  color: #973c00;
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 18px;
  margin-top: 10px;
}

.contact-us__info {
  margin-top: 30px;
}

.contact-us__container {
  align-items: start;
  display: grid;
  gap: 80px;
  grid-template-columns: 1fr 1fr;
  margin-top: 40px;
}

.info-details {
  align-items: center;
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
}

.info-icon {
  align-items: center;
  background: #fdf5ef;
  border-radius: 50%;
  box-shadow:
    inset 2px 2px 4px rgba(255, 255, 255, 0.9),
    /* Top-left white highlight */ inset -2px -2px 4px rgba(151, 60, 0, 0.1),
    /* Bottom-right orange shade */ 0px 4px 8px rgba(0, 0, 0, 0.06); /* Soft shadow underneath */
  display: flex;
  flex-shrink: 0;
  font-size: 20px;
  justify-content: center;
  height: 48px;
  width: 48px;
}

.info-text strong {
  color: #973c00;
  display: block;
  margin-bottom: 5px;
}

.info-text p {
  color: #555;
  line-height: 1.5;
}

.contact-form {
  border-radius: 10px;
  box-shadow:
    0px 4px 6px -1px rgba(151, 60, 0, 0.3),
    0px 2px 4px -2px rgba(151, 60, 0, 0.2); /* Subtle shadow for depth */
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
  padding: 30px;
}

.form-header {
  color: #973c00;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-family: inherit;
  padding: 10px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9ca3af;
  opacity: 1;
  font-weight: 300;
}

.btn-submit {
  background: #973c00;
  border: none;
  border-radius: 4px;
  box-shadow:
    0px 4px 6px -1px rgba(151, 60, 0, 0.3),
    0px 2px 4px -2px rgba(151, 60, 0, 0.2); /* Subtle shadow for depth */
  color: white;
  cursor: pointer;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 12px;
  transition: opacity 0.3s ease;
}

.btn-submit:hover {
  opacity: 0.9;
}

/* FOOTER */

.footer {
  background-color: #fcfcfc;
  font-family: "Inter", sans-serif;
  padding: 60px 40px 20px 40px;
}

.site-footer__container {
  max-width: 1200px;
  margin: 0 auto;
}

.site-footer__top-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.site-footer__nav {
  display: flex;
  gap: 24px;
}

.site-footer__nav a {
  color: #555;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.site-footer__nav a:hover {
  color: #973c00;
}

.site-footer__socials {
  display: flex;
  gap: 16px;
}

.social-icons {
  font-size: 12px;
  text-decoration: none;
  opacity: 0.7;
  transition:
    transform 0.2s,
    opacity 0.2s;
}

.social-logo-svg {
  display: block;
  height: 20px;
  object-fit: contain;
  width: 20px;
}

.site-footer__divider {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 0 0 24px 0;
}

.site-footer__bottom-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.footer-logo {
  cursor: pointer;
  text-decoration: none;
}

.site-footer__logo {
  color: #973c00;
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.site-footer__logo-square {
  border: 1.5px solid #973c00;
  height: 14px;
  width: 14px;
}

.site-footer__copyright {
  color: #6b7280;
  font-size: 12px;
  letter-spacing: 0.2px;
}

/* TERMS OF SERVICE + STUDENT CONTRACT */

.terms-content,
.contract-content {
  background-color: #fcfcfc;
  margin: 0 auto;
  padding: 100px 20px;
  width: 100%;
}

.terms-container,
.contract-container {
  margin: 0 auto;
  max-width: 750px;
  padding: 0 40px;
}

.terms-container h1,
.contract-container h1 {
  color: #973c00;
  font-family: inter, sans-serif;
  font-size: 32px;
  margin-bottom: 8px;
}

.terms-section,
.contract-section {
  margin-top: 40px;
}

.terms-section h3,
.contract-section h3 {
  color: #973c00;
  border-bottom: 1px solid #e5e7eb;
  font-family: inter, sans-serif;
  font-size: 12px;
  margin-bottom: 12px;
  padding-bottom: 6px;
}

.terms-section p,
.contract-section li {
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
  text-align: justify;
}

.contract-section ul {
  color: #555;
}

.contract-section li {
  color: #555;
  list-style-type: none;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.terms-section strong,
.contract-section strong {
  color: #973c00;
}

.contract-link {
  color: #973c00;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contract-link:hover,
.contract-link:hover strong {
  color: #7a3100;
}

/* SENT MESSAGE POPUP */

.sent-message-overlay {
  align-items: center;
  backdrop-filter: blur(4px); /* Blurs the background content */
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent black */
  display: none;
  height: 100%;
  justify-content: center;
  left: 0;
  position: fixed;
  top: 0;
  transition: opacity 0.3s ease;
  width: 100%;
  z-index: 9999; /* Above all other content */
}

.sent-message-overlay.show {
  display: flex;
}

.sent-message-card {
  background: white;
  border-radius: 8px;
  box-shadow:
    0px 4px 6px -1px rgba(151, 60, 0, 0.3),
    0px 2px 4px -2px rgba(151, 60, 0, 0.2); /* Subtle shadow for depth */
  max-width: 400px;
  padding: 30px;
  text-align: center;
}

.sent-message__header {
  color: #973c00;
  font-family: "Serif", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
}
.sent-message__image {
  height: 25px;
  margin-right: 10px;
  width: 25px;
}

.sent-message-card p {
  color: #555;
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 0;
}

/* CART SIDECAR */

.cart-sidebar-overlay {
  backdrop-filter: blur(4px); /* Blurs the background content */
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent black */
  display: flex;
  height: 100%;
  justify-content: flex-end;
  left: 0;
  position: fixed;
  top: 0;
  transition: opacity 0.3s ease-in-out;
  width: 100%;
  z-index: 9999; /* Above all other content */
}

.cart-sidecar-panel {
  align-self: flex-start;
  animation: slideIn 0.3s ease-out;
  background: white;
  border-radius: 8px;
  box-shadow:
    0px 4px 6px -1px rgba(151, 60, 0, 0.3),
    0px 2px 4px -2px rgba(151, 60, 0, 0.2); /* Subtle shadow for depth */
  display: flex;
  flex-direction: column;
  height: auto;
  margin: 30px;
  max-height: 80vh;
  max-width: 420px;
  padding: 30px;
  width: 100%;
}

.cart-sidecar__header {
  align-items: center;
  display: flex;
  gap: 10px;
}

.cart-sidecar__icon {
  height: 25px;
  margin-right: 10px;
  opacity: 0.7;
  width: 25px;
}

.cart-sidecar__content {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  max-height: 50vh; /* Limits the height of the content area */
  overflow-y: auto;
}

.cart-sidecar__item-row {
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 20px 0;
  width: 100%;
}

.cart-sidecar__item-row:first-child {
  padding-top: 5px; /* Removes extra padding from the first item */
}

.cart-sidecar__item-row:last-child {
  border-bottom: none; /* Removes the border from the last item */
  padding-bottom: 0; /* Removes extra padding from the last item */
}

.cart-sidecar__img {
  border: none;
  border-radius: 4px;
  height: 40px;
  object-fit: cover;
  width: 40px;
}

.cart-sidecar__img--membership {
  /* This code give the check circle.svg a softer, more subtle look */
  height: 40px;
  width: 40px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.cart-sidecar__details {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 6px;
}

.cart-sidecar__item-title {
  color: #973c00;
  font-family: "Serif", Georgia, serif;
  font-size: 16px;
  font-weight: 600;
}

.cart-sidecar__item-price {
  color: #555;
  font-size: 14px;
  font-weight: 600;
}

.cart-sidecar__item-date {
  color: #555;
  font-size: 12px;
  font-weight: 500;
}

.cart-panel__footer {
  border-top: 1px solid #e5e7eb;
  display: flex;
  margin-top: 20px;
  gap: 20px;
  padding-top: 20px;
}

.btn-view-cart,
.btn-checkout {
  cursor: pointer;
  box-shadow:
    0px 4px 6px -1px rgba(151, 60, 0, 0.3),
    0px 2px 4px -2px rgba(151, 60, 0, 0.2); /* Subtle shadow for depth */
  border-radius: 6px;
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  padding: 12px;
}

.btn-view-cart {
  border: none;
  background-color: #973c00;
  color: white;
}

.btn-checkout {
  background-color: #e5dfd9;
  border: none;
  color: #333;
}

.btn-view-cart:hover {
  background-color: #7a3100;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.btn-checkout:hover {
  background-color: #d7cec3;
  color: #333;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.hidden-cart {
  display: none;
}

.btn-remove-item {
  align-items: center;
  background: #f3f4f6;
  color: #888;
  cursor: pointer;
  display: flex;
  border: none;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 400;
  height: 24px;
  justify-content: center;
  line-height: 1;
  margin-left: auto;
  padding-bottom: 2px;
  transition: all 0.2 ease;
  width: 24px;
}

.btn-remove-item:hover {
  background-color: #fee2e2;
  color: #ef4444;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* CHECKOUT */

.checkout-page-section {
  background: #fcfcfc;
  padding: 80px 0;
  width: 100%;
}

.checkout-page__header {
  margin-top: 50px;
  margin-bottom: 50px;
  text-align: center;
}

.checkout-page__container {
  align-items: start;
  display: grid;
  gap: 80px;
  grid-template-columns: 1fr 1.2fr;
  margin: 0 auto;
  max-width: 950px;
  padding: 0 40px;
}

.checkout-page-title {
  color: #333;
  font-family: "serif", georgia, serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
}

.checkout-form-card {
  background: #fcfcfc;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow:
    0px 4px 6px -1px rgba(151, 60, 0, 0.3),
    0px 2px 4px -2px rgba(151, 60, 0, 0.2); /* Subtle shadow for depth */
  display: flex;
  flex-direction: column;
  padding: 30px;
}

.checkout-form-header {
  color: #973c00;
  font-family: "serif", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
}

.checkout-user-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.checkout-user-details input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: #333;
  background-color: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.checkout-user-details input:focus {
  border-color: #973c00;
}

.checkout-terms-checkbox {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.checkout-terms-checkbox input[type="checkbox"] {
  cursor: pointer;
  margin-top: 10px;
  width: auto;
}

.checkout-terms-checkbox label {
  color: #666;
  font-size: 13px;
  line-height: 1.5;
}

.checkout-terms-checkbox a {
  color: #973c00;
  font-weight: 500;
  text-decoration: underline;
}

.btn-checkout-submit {
  background-color: #973c00;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 14px;
  margin-top: 24px;
  transition: background-color 0.2s;
  width: 100%;
}

.btn-checkout-submit:hover {
  background-color: #7a3100;
}

/* CHECKOUT FORM */

.checkout-form-card .checkout-user-details {
  width: 100%;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.checkout-user-details input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: #333;
  background-color: #fff;
  outline: none;
  transition: all 0.2s ease;
}

.checkout-form-header {
  color: #973c00;
  font-family: "Serif", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  text-align: left;
}

.checkout-terms-checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 8px;
  margin-bottom: 8px;
}

/* CHECKOUT POPUP */

.registration-msg-overlay {
  align-items: center;
  backdrop-filter: blur(4px); /* Blurs the background content */
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent black */
  display: none;
  height: 100%;
  justify-content: center;
  left: 0;
  position: fixed;
  top: 0;
  transition: opacity 0.3s ease;
  width: 100%;
  z-index: 9999; /* Above all other content */
}

.registration-msg-overlay.show {
  display: flex;
}

.registration-msg-card {
  background: white;
  border-radius: 8px;
  box-shadow:
    0px 4px 6px -1px rgba(151, 60, 0, 0.3),
    0px 2px 4px -2px rgba(151, 60, 0, 0.2); /* Subtle shadow for depth */
  max-width: 400px;
  padding: 40px 30px;
  text-align: center;
  animation: modalPopUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.registration-msg__header {
  color: #973c00;
  font-family: "Serif", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.registration-msg__image {
  height: 25px;
  margin-right: 10px;
  object-fit: contain;
  width: 25px;
  filter: invert(24%) sepia(87%) saturate(2321%) hue-rotate(18deg)
    brightness(91%) contrast(101%);
}

.registration-msg-card p {
  color: #555;
  font-size: 16px;
  line-height: 1.4;
  margin-bottom: 0;
}

@keyframes modalPopUp {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* DEVICES LAYOUT */

@media screen and (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
    height: auto;
  }

  .header .logo {
    margin-left: 0;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .header .navigation {
    margin-right: 0;
    width: 100%;
  }

  .nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 0;
    margin: 0;
  }

  .nav-link {
    font-size: 13px;
  }

  .nav-cart {
    justify-content: center;
  }

  .hero {
    padding: 40px 20px;
    height: auto;
  }

  .hero__intro {
    font-size: 15px;
    max-width: 100%;
    padding: 0;
  }

  .about__hero {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 24px;
    margin-bottom: 50px;
    width: 100%;
    max-width: 100%;
  }

  .about__text,
  .about__image-wrapper {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .about-text p {
    font-size: 15px;
    line-height: 1.6;
    text-align: justify;
    width: 100%;
    max-width: 100%;
    margin-bottom: 0;
  }

  .about-title {
    font-size: 26px;
    text-align: center;
    margin-bottom: 16px;
  }

  .studio-intro {
    font-size: 15px;
    line-height: 1.6;
    text-align: justify;
    max-width: 100%;
    margin: 0;
  }

  .values-grid {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 20px 24px;
    width: 100%;
  }

  .value-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .section__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 24px;
    position: relative;
    width: 100%;
    z-index: 1;
  }

  .offer-card {
    width: 100%;
    max-width: 100%;
    box-shadow: 0px 4px 15px rgba(151, 60, 0, 0.06);
  }

  #memberships .offer-card {
    overflow: visible;
  }

  .offer-card__image {
    height: 180px;
  }

  .offer-card__content {
    padding: 16px 16px 12px 16px;
  }

  .offer-card__title {
    font-size: 18px;
    min-height: auto;
    text-align: center;
    margin-bottom: 8px;
  }

  .offer-card__description {
    font-size: 14px;
    line-height: 1.4;
    text-align: justify;
    margin-top: 8px;
    margin-bottom: 16px;
  }

  .offer-card__date,
  .offer-card__duration,
  .offer-card__class-size {
    font-size: 13px;
    margin-bottom: 6px;
    text-align: left;
  }

  .offer-card__footer {
    padding: 12px 16px 16px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  #memberships .offer-card__footer {
    display: flex;
    justify-content: flex-end;
    padding: 12px 16px 16px 16px;
    width: 100%;
  }

  .offer-card__price {
    font-size: 18px;
    font-weight: 600;
  }

  .offer-card__register-btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  #memberships .offer-card__register-btn {
    font-size: 13px;
    padding: 10px 20px;
  }

  .offer__footer {
    margin-top: 40px;
    padding: 0 24px;
  }

  .offer__footer-text {
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
  }

  .offer-card--most-popular {
    margin-top: 20px;
    margin-bottom: 10px;
  }

  #memberships .offer-card--most-popular {
    margin-top: 35px;
    margin-bottom: 15px;
  }

  .offer-card__badge {
    top: -14px;
    font-size: 11px;
    padding: 4px 12px;
  }

  .membership-card__price-box {
    margin-top: 10px;
    margin-bottom: 8px;
    justify-content: center;
  }

  .membership-card__price {
    font-size: 28px;
  }

  .membership-benefits {
    padding: 10px 16px 15px 24px;
    margin: 0;
    width: 100%;
  }

  .membership-benefits li {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px;
  }

  .membership-card__description {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .section-subtitle {
    font-size: 15px;
    line-height: 1.5;
    padding: 0 24px;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    display: block;
  }

  .contact-us__container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0 24px;
    width: 100%;
  }

  .contact-us__info {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .info-details {
    display: flex;
    align-items: flex-start;
    gap: 16px;
  }

  .info-icon {
    font-size: 20px;
    line-height: 1;
  }

  .info-text p {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 4px;
    color: #555;
  }

  .contact-form {
    width: 100%;
    max-width: 100%;
    padding: 30px 20px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0px 4px 15px rgba(151, 60, 0, 0.4);
  }

  .form-header {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
  }

  .user-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
  }

  .btn-submit {
    width: 100%;
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
  }

  .footer {
    padding: 40px 24px 30px 24px;
  }

  .site-footer__top-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
  }

  .site-footer__nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 20px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .site-footer__nav a {
    font-size: 13px;
    letter-spacing: 0.5px;
    white-space: nowrap;
  }

  .site-footer__socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 4px;
  }

  .site-footer__divider {
    margin: 24px 0;
  }

  .site-footer__bottom-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    width: 100%;
  }

  .site-footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
  }

  .site-footer__logo-square {
    margin: 4px 0;
  }

  .site-footer__copyright {
    font-size: 12px;
    line-height: 1.4;
    color: #6b7280;
    margin: 0;
    padding: 0 10px;
  }

  .checkout-page__section {
    width: 100%;
    padding: 40px 0;
    background-color: #fcfcfc;
  }

  .checkout-page__header {
    text-align: center;
    margin-bottom: 30px;
    padding: 0 20px;
  }

  .checkout-page__container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0 20px;
    width: 100%;
    max-width: 100%;
  }

  .checkout-page__summary-panel {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .checkout-page-title {
    font-size: 18px;
    text-align: center;
    margin-bottom: 20px;
  }

  .checkout-form-card {
    width: 100%;
    max-width: 100%;
    padding: 30px 20px;
    margin: 0;
    box-sizing: border-box;
  }

  .checkout-form-header {
    width: 100%;
    max-width: 100%;
    padding: 30px 20px;
    margin: 0;
    box-sizing: border-box;
  }

  .checkout-form-header {
    font-size: 18px;
    text-align: center;
    margin-bottom: 12px;
  }

  .checkout-user-details {
    margin-bottom: 100%;
    width: 100%;
  }

  .checkout-form-card input,
  .btn-checkout-submit {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .checkout-terms-checkbox {
    margin-top: 12px;
    margin-bottom: 8px;
    padding: 0 4px;
  }
}
