:root {
  --purple: #8e44ad;
  --blue: #3498db;
  --yellow: #f1c40f;
  --white: #ffffff;
  --black: #1d1d18;
}

/* Global styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "ABeeZee", Arial, sans-serif;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  background-color: var(--white);
  color: var(--black);
  font-size: clamp(0.875rem, 2.5vw, 1rem);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

#wrapper {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 2vh;
  min-height: 100vh;
  padding: 2vh 2vw;
}

/* Header */
header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2vh 0;
}

#logo {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
}

/* Navigation */
nav {
  background-color: var(--purple);
  padding: 2vh 0;
  border-radius: 1vw;
}

nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  gap: clamp(1vw, 2vw, 3vw);
  padding: 0 1vw;
}

nav a {
  text-decoration: none;
  color: var(--white);
  padding: 1vh 2vw;
  border-radius: 1vw;
  transition: background-color 0.3s, color 0.3s;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  white-space: nowrap;
}

nav a:hover {
  background-color: var(--blue);
  color: var(--white);
}

/* Main */
main {
  background-color: var(--blue);
  padding: clamp(2vh, 3vh, 4vh) clamp(2vw, 3vw, 4vw);
  border-radius: 1vw;
}

/* Page Title */
.page-title {
  color: var(--white);
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  margin-bottom: 3vh;
  font-weight: bold;
}

/* Footer */
footer {
  background-color: var(--purple);
  color: var(--white);
  text-align: center;
  padding: 2vh 1vw;
  border-radius: 1vw;
  font-size: clamp(0.75rem, 2vw, 0.875rem);
}

footer a {
  color: var(--white);
  text-decoration: underline;
}

/* Shared Layout */
.image-container {
  display: grid;
  gap: 2vh;
}

/* Keep image-box styles ONLY on home page */
.home-page .image-box,
.home-page .image-box-with-subimages {
  display: flex;
  flex-direction: column;
  gap: 1vh;
  background-color: transparent;
  padding: 0;
  border-radius: 1vw;
  border: none;
}

/* Remove all styles from image-box and image-box-with-subimages on all other pages */
.image-box,
.image-box-with-subimages {
  all: unset;
  background: none;
  padding: 0;
  border-radius: 0;
  border: none;
  gap: 0;
  flex-direction: initial;
}

.text-box {
  padding: 1vh;
  background-color: var(--blue);
  color: var(--white);
  border-radius: 0.5vw;
  text-align: center;
}

.banner-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 1vw;
  border: 0.5vw solid var(--purple);
  display: block;
  margin: 0 auto;
}

/* Home Page */
.home-page .banner-image {
  margin-bottom: 2vh;
}

.home-page .image-container {
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 2vh;
}

.home-page .image-box,
.home-page .small-image-box {
  border: none;
  background-color: transparent;
}

.home-page .image {
  height: auto;
}

.home-page .small-image-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2vw;
}

.home-page .small-image {
  object-fit: cover;
  height: auto;
}

.home-page .text-box {
  margin-top: 1vh;
}

.product-page .products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2vh, 3vh, 4vh) clamp(1.5vw, 2vw, 2.5vw);
  padding: 0;
}

.product-card {
  background-color: var(--white);
  border-radius: 1vw;
  border: 0.4vw solid var(--purple);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-bottom: 0.4vw solid var(--purple);
}

.product-info {
  padding: clamp(1.5vh, 2vh, 2.5vh) clamp(1.5vw, 2vw, 2.5vw);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: bold;
  color: var(--black);
  margin-bottom: 1vh;
  text-align: center;
}

.product-price {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: bold;
  color: var(--purple);
  text-align: center;
  margin-bottom: 1.5vh;
}

.price-note {
  font-size: clamp(0.75rem, 1.8vw, 0.9rem);
  color: var(--blue);
  font-weight: normal;
}

.product-description {
  font-size: clamp(0.8rem, 2.2vw, 1rem);
  line-height: 1.5;
  color: var(--black);
  text-align: center;
  margin-bottom: 2vh;
  flex-grow: 1;
}

.product-card .buy-button {
  margin-top: auto;
  width: 100%;
}

/* Services Page */
.services-page .image-container {
  display: block;
  gap: 3vh;
}

.services-page .image-box {
  margin-bottom: 3vh;
  display: flex;
  flex-direction: column;
  gap: 1vh;
}

.services-page .image-box img {
  max-width: 100%;
  width: auto;
  height: auto;
  border-radius: 1vw;
  border: 0.4vw solid var(--purple);
  display: block;
  margin: 0 auto;
}

.services-page .text-box {
  background-color: var(--white);
  color: var(--black);
  text-align: left;
  padding: clamp(1.5vh, 2vh, 2.5vh) clamp(1.5vw, 2vw, 2.5vw);
  border-radius: 1vw;
  margin-top: 1vh;
}

.services-page .text-box:first-child {
  font-weight: bold;
  background-color: var(--purple);
  color: var(--white);
  text-align: center;
  padding: 1vh;
  border-radius: 0.5vw;
  margin-top: 0;
  margin-bottom: 1vh;
}

.services-page .text-box h3 {
  color: var(--purple);
  font-size: clamp(1rem, 3vw, 1.2rem);
  margin-bottom: 1vh;
  font-weight: bold;
}

.services-page .text-box h4 {
  color: var(--purple);
  font-size: clamp(1rem, 3vw, 1.2rem);
  margin-bottom: 1vh;
  font-weight: bold;
}

.services-page .text-box p {
  line-height: 1.5;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
}

/* Buy Button */
.buy-button {
  margin: 1vh 0;
  padding: 1vh;
  background-color: var(--blue);
  color: var(--white);
  border: 0.4vw solid var(--purple);
  border-radius: 0.5vw;
  width: 100%;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
}

.buy-button:hover,
.buy-button:focus,
.buy-button:active {
  background-color: var(--purple);
  color: var(--white);
}

/* Cart Page - FULLY RESPONSIVE */
.cart-content {
  display: flex;
  flex-direction: column;
  gap: clamp(2vh, 3vh, 4vh);
  font-size: clamp(0.875rem, 2.5vw, 1.1rem);
  padding: 0;
}

.selected-items {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5vh, 2vh, 2.5vh);
}

.selected-items h3,
.selected-items h4 {
  color: var(--white);
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  margin-bottom: 1vh;
}

.item {
  display: flex;
  align-items: flex-start;
  background-color: var(--white);
  padding: clamp(1.5vh, 2vh, 2.5vh) clamp(1.5vw, 2vw, 2.5vw);
  border-radius: 1vw;
  gap: clamp(1.5vw, 2vw, 2.5vw);
  width: 100%;
}

.item img {
  border-radius: 0.5vw;
  border: 0.4vw solid var(--purple);
  height: auto;
  flex-shrink: 0;
  width: clamp(20vw, 25vw, 30vw);
  max-width: clamp(80px, 15vw, 120px);
  object-fit: cover;
}

/* Item details */
.item-details {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5vh, 1vh, 1.5vh);
  flex: 1;
  min-width: 0;
}

.item-name {
  font-weight: bold;
  color: var(--black);
  font-size: clamp(0.9rem, 2.8vw, 1.1rem);
  word-wrap: break-word;
}

.item-price {
  color: var(--blue);
  font-weight: bold;
  font-size: clamp(1rem, 3vw, 1.2rem);
}

.total-price {
  background-color: var(--white);
  padding: clamp(2vh, 3vh, 4vh) clamp(2vw, 3vw, 4vw);
  border-radius: 1vw;
  text-align: center;
  font-size: clamp(1rem, 3vw, 1.2rem);
}

.total-price h3,
.total-price h4 {
  margin-bottom: 1vh;
  font-size: clamp(1.1rem, 3.5vw, 1.3rem);
}

.total-price p {
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  font-weight: bold;
  color: var(--black);
  margin-bottom: 1vh;
}

.checkout-button {
  margin-top: 2vh;
  padding: clamp(1.2vh, 1.5vh, 2vh) clamp(2vw, 3vw, 4vw);
  background-color: var(--purple);
  color: var(--white);
  border: 0.4vw solid var(--blue);
  border-radius: 1vw;
  font-weight: bold;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: clamp(0.9rem, 2.8vw, 1.1rem);
}

.checkout-button:hover {
  background-color: var(--blue);
  transform: scale(1.02);
}

/* Home Page Text Boxes Replacing Images */
.text-only-box {
  background-color: var(--yellow);
  color: var(--black);
  padding: clamp(1.5vh, 2vh, 3vh) clamp(1.5vw, 2vw, 3vw);
  border: 0.4vw solid var(--purple);
  border-radius: 1vw;
  font-size: clamp(0.9rem, 2.8vw, 1.1rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: clamp(15vh, 20vh, 25vh);
  line-height: 1.4;
}

.text-only-box h2,
.text-only-box h3 {
  text-align: center;
  margin-bottom: 20px;
  margin-top: 0;
  font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  font-weight: bold;
}

.text-only-box h4 {
  text-align: center;
  margin-bottom: 15px;
  margin-top: 15px;
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  font-weight: bold;
}

.text-only-box p {
  text-align: center;
  margin: 0 0 15px 0;
}

/* FAQ Box Specific Styling */
.faq-box {
  margin-top: 2vh;
  text-align: left;
  align-items: flex-start;
}

.faq-box h2,
.faq-box h3 {
  text-align: center;
  width: 100%;
}

.faq-box h4 {
  text-align: left;
  margin-top: 20px;
}

.faq-box p {
  text-align: left;
  margin-bottom: 20px;
}

.contact-page .contact-intro {
  margin-bottom: 3vh;
}

.contact-page .intro-box {
  background-color: var(--yellow);
  color: var(--black);
  padding: clamp(2vh, 3vh, 4vh) clamp(2vw, 3vw, 4vw);
  border: 0.4vw solid var(--purple);
  border-radius: 1vw;
  text-align: center;
  font-size: clamp(0.95rem, 2.8vw, 1.1rem);
  line-height: 1.6;
}

.contact-page .contact-form-section {
  margin-bottom: 3vh;
}

.contact-page .contact-form {
  background-color: var(--yellow);
  padding: clamp(2.5vh, 3vh, 4vh) clamp(2.5vw, 3vw, 4vw);
  border: 0.4vw solid var(--purple);
  border-radius: 1vw;
  max-width: 800px;
  margin: 0 auto;
}

.contact-page .form-group {
  margin-bottom: 2vh;
}

.contact-page .form-group label {
  display: block;
  font-weight: bold;
  color: var(--black);
  margin-bottom: 0.8vh;
  font-size: clamp(0.9rem, 2.5vw, 1.05rem);
}

.contact-page .form-group input,
.contact-page .form-group select,
.contact-page .form-group textarea {
  width: 100%;
  padding: clamp(1vh, 1.2vh, 1.5vh) clamp(1.5vw, 2vw, 2.5vw);
  border: 0.3vw solid var(--purple);
  border-radius: 0.5vw;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  font-family: "ABeeZee", Arial, sans-serif;
  background-color: var(--white);
  color: var(--black);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-page .form-group input:focus,
.contact-page .form-group select:focus,
.contact-page .form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 0.2vw rgba(52, 152, 219, 0.3);
}

.contact-page .form-group textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.5;
}

.contact-page .checkbox-group {
  display: flex;
  align-items: center;
  gap: 1vw;
  margin-top: 2vh;
}

.contact-page .checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
  cursor: pointer;
  transform: scale(1.2);
}

.contact-page .checkbox-group label {
  margin: 0;
  font-weight: normal;
  cursor: pointer;
  font-size: clamp(0.85rem, 2.3vw, 0.95rem);
}

.contact-page .submit-button {
  width: 100%;
  padding: clamp(1.5vh, 2vh, 2.5vh) clamp(2vw, 3vw, 4vw);
  background-color: var(--purple);
  color: var(--white);
  border: 0.4vw solid var(--blue);
  border-radius: 1vw;
  font-weight: bold;
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 2vh;
}

.contact-page .submit-button:hover {
  background-color: var(--blue);
  transform: scale(1.02);
}

.contact-page .submit-button:active {
  transform: scale(0.98);
}

.contact-page .contact-info {
  margin-top: 3vh;
}

.contact-page .info-box {
  background-color: var(--yellow);
  color: var(--black);
  padding: clamp(2vh, 3vh, 4vh) clamp(2vw, 3vw, 4vw);
  border: 0.4vw solid var(--purple);
  border-radius: 1vw;
}

.contact-page .info-box h3 {
  text-align: center;
  font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  margin-bottom: 2vh;
  color: var(--black);
  font-weight: bold;
}

.contact-page .contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2vh;
  margin-top: 2vh;
}

.contact-page .contact-method {
  text-align: center;
  padding: 1.5vh 1.5vw;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 0.5vw;
}

.contact-page .contact-method strong {
  display: block;
  color: var(--purple);
  font-size: clamp(0.95rem, 2.8vw, 1.1rem);
  margin-bottom: 0.5vh;
}

.contact-page .contact-method p {
  color: var(--black);
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  margin: 0;
}

@media (max-width: 1024px) {
  /* Products grid: 2 columns on tablets */
  .product-page .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1vh;
  }

  nav a {
    padding: 1.5vh 4vw;
    width: 80%;
    text-align: center;
  }

  .item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5vh;
  }

  .item img {
    width: clamp(40vw, 50vw, 60vw);
    max-width: 200px;
  }

  .item-details {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .home-page .image-container {
    grid-template-columns: 1fr;
  }

  .home-page .small-image-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-page .contact-methods {
    grid-template-columns: 1fr;
  }

  .contact-page .checkbox-group {
    flex-direction: row;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  #wrapper {
    padding: 1vh 1vw;
    gap: 1vh;
  }

  main {
    padding: clamp(1.5vh, 2vh, 2.5vh) clamp(1.5vw, 2vw, 2.5vw);
  }

  .item {
    padding: 1.5vh 1.5vw;
  }

  .item img {
    width: clamp(50vw, 60vw, 70vw);
    max-width: 180px;
  }

  .text-only-box {
    min-height: clamp(12vh, 15vh, 18vh);
    padding: 1.5vh 1.5vw;
  }

  /* Products grid: 1 column on mobile */
  .product-page .products-grid {
    grid-template-columns: 1fr;
  }

  .contact-page .contact-form {
    padding: 2vh 2vw;
  }

  .contact-page .form-group input,
  .contact-page .form-group select,
  .contact-page .form-group textarea {
    padding: 1.2vh 2vw;
  }
}

.error-message {
  color: #d32f2f;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
  font-weight: 500;
}

.error-input {
  border-color: #d32f2f !important;
  background-color: #ffebee;
}

.error-input:focus {
  outline-color: #d32f2f;
  border-color: #d32f2f;
}

.field-help {
  display: block;
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.25rem;
  font-style: italic;
}

.success-input {
  border-color: #4caf50;
  background-color: #f1f8f4;
}
