/* Custom styles based on Ceramica brand guidelines */
:root {
  /* Colors from Ceramica brand book */
  --pink: #cc385c;
  --blue: #3d80de;
  --purple: #322b4c;
  --black: #000000;
  --light-gray: #f5f5f5;
  --white: #ffffff;
  --shelf-wood: #e6d2c0;
  --shelf-shadow: rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Arial, sans-serif; /* Using Segoe UI as specified in the brandbook */
}

body {
  background-color: var(--light-gray);
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23e0e0e0' fill-opacity='0.25' fill-rule='evenodd'/%3E%3C/svg%3E");
  padding: 30px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  text-align: center;
  margin-bottom: 40px;
  color: var(--purple);
}

header .logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

header .logo-image {
  height: 60px;
  margin-right: 10px;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: bold;
}

header p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  color: var(--purple);
}

/* Shelves */
.shelf-container {
  margin-bottom: 70px;
  position: relative;
}

.shelf-label {
  background-color: var(--blue);
  color: white;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  margin-bottom: 15px;
  font-weight: bold;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.shelf {
  background-color: var(--shelf-wood);
  border-radius: 8px 8px 0 0;
  padding: 20px;
  box-shadow: 0 5px 15px var(--shelf-shadow);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  position: relative;
  margin-top: -5px;
}

/* Shelf supports */
.shelf:after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background-color: #c0a992;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.05);
}

/* Team member cards */
.card {
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  margin-bottom: 10px;
  border: none;
}

.card:hover {
  transform: translateY(-10px) rotate(1deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Remove header */
.card-header {
  display: none;
}

/* Special handling for existing card structure in the HTML */
.card > img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background-color: #fce6e9;
  cursor: pointer;
  transition: transform 0.3s ease;
  border: none;
  margin: 0;
  padding: 0;
}

.card:hover > img {
  transform: scale(1.05);
}

.card-image {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: none;
  margin: 0;
  padding: 0;
}

.card-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
  border: none;
}

.card-image:hover img {
  transform: scale(1.05);
}

.card-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #ffffff;
  position: relative;
  z-index: 1;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--purple);
  line-height: 1.3;
  text-align: center;
}

.card-position {
  font-size: 0.9rem;
  color: var(--blue);
  margin-bottom: 10px;
  font-weight: 500;
  text-align: center;
}

/* Package elements - hide these */
.package-handle {
  display: none;
}

.package-info {
  display: none;
}

.package-barcode {
  display: none;
}

/* Lightbox modal styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  overflow: hidden;
  backdrop-filter: blur(5px);
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  padding: 20px;
}

.lightbox-image-container {
  position: relative;
  max-width: 90%;
  max-height: 80%;
  margin: 0 auto;
  text-align: center;
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

.lightbox-image {
  max-height: 80vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: 0;
}

.lightbox-caption {
  color: white;
  text-align: center;
  padding: 15px 20px;
  background-color: var(--pink);
  border-radius: 8px;
  margin-top: 20px;
  max-width: 80%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.lightbox-caption h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: white;
}

.lightbox-caption p {
  font-size: 1.2rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
  background-color: rgba(50, 43, 76, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1001;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  width: 50px;
  height: 50px;
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  font-weight: bold;
  user-select: none;
  width: 60px;
  height: 60px;
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

.lightbox-prev:hover, .lightbox-next:hover, .lightbox-close:hover {
  background-color: var(--pink);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-close:hover {
  transform: scale(1.1);
}

/* Counter display for lightbox */
.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(50, 43, 76, 0.7);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Footer styling */
footer {
  text-align: center;
  padding: 30px 0;
  color: var(--purple);
  font-size: 0.9rem;
  margin-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.7);
}

/* Responsive design */
@media (max-width: 768px) {
  .shelf {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }

  header h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .shelf {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .container {
    padding: 0 15px;
  }

  header h1 {
    font-size: 1.8rem;
  }

  .card {
    max-width: 100%;
  }
}