/* Estilos para produtos - Responsivo */

/* Conteúdo principal */
.main-content {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 60px 60px;
}

.page-title {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 1.93px;
  margin: 20px 0;
  text-align: center;
  color: rgb(74, 74, 74);
}

/* Grid de produtos */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
  justify-content: center;
}

/* Card do produto */
.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 350px;
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.product-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
  display: block;
}

/* Container da imagem do produto */
.product-image-container {
  position: relative;
  width: 100%;
  height: 268px;
  overflow: hidden;
}

.product-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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


/* Force first 8 product images to 300x240 on larger screens */
.products-grid .product-card:nth-child(-n+8) .product-image-container {
  width: 300px;
  height: 240px;
  margin: 0 auto;
}

.products-grid .product-card:nth-child(-n+8) .product-image-wrapper {
  position: relative;
  width: 300px;
  height: 240px;
}

.products-grid .product-card:nth-child(-n+8) .product-image {
  width: 300px !important;
  height: 240px !important;
  object-fit: cover !important;
}

/* Keep images responsive on small screens */
@media (max-width: 640px) {
  .products-grid .product-card:nth-child(-n+8) .product-image-container,
  .products-grid .product-card:nth-child(-n+8) .product-image-wrapper,
  .products-grid .product-card:nth-child(-n+8) .product-image {
    width: 100% !important;
    height: auto !important;
  }
}

/* Slightly reduce size of first 8 product cards on small screens for better spacing */
@media (max-width: 640px) {
  .products-grid .product-card:nth-child(-n+8) {
    width: 90% !important;
    max-width: 280px !important;
    justify-self: center;
    margin: 0 auto 12px auto;
  }
  .products-grid .product-card:nth-child(-n+8) .product-image-container,
  .products-grid .product-card:nth-child(-n+8) .product-image-wrapper,
  .products-grid .product-card:nth-child(-n+8) .product-image {
    width: 100% !important;
    height: auto !important;
  }
}

/* Center the first 8 product cards horizontally and fix their width on desktop */
.products-grid .product-card:nth-child(-n+8) {
  width: 300px;
  justify-self: center;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .products-grid .product-card:nth-child(-n+8) {
    width: 100% !important;
    justify-self: stretch;
    margin: 0 auto;
  }
}

/* Informações do produto */
.product-info {
  padding: 20px;
  width: 100%;
  text-align: left;
}

.product-title {
  font-size: 18px;
  font-weight: 500;
  color: rgb(74, 74, 74);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.product-description {
  font-size: 8px;
  color: rgb(74, 74, 74);
  letter-spacing: 0.6px;
  line-height: 1.6;
  margin: 0;
}

/* Página individual do produto */
.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 72px);
}

.content-area {
  flex: 1;
  width: 100%;
  overflow-x: auto;
  padding: 16px;
}

.main-product-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  padding: 36px 60px 60px;
  margin: 0 auto;
  gap: 40px;
  align-items: flex-start;
}

/* Seção da imagem do produto individual */
.product-image-section {
  flex: 1;
  max-width: 500px;
}

.product-image.standalone {
  display: block;
  margin: 0 auto 24px auto;
  width: 350px !important;
  height: 268px !important;
  object-fit: cover !important;
}

/* Formulário do produto */
.product-form {
  flex: 1;
  max-width: 500px;
}

.product-title.single {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 1.93px;
  margin: 0 0 32px 0;
  color: rgb(74, 74, 74);
}

/* Seções do formulário */
.form-section {
  margin-bottom: 32px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1.03px;
  line-height: 24px;
  margin: 12px 0;
  color: rgb(74, 74, 74);
}

.section-subtitle {
  font-style: italic;
  font-weight: 400;
  margin-left: 12px;
  color: rgb(74, 74, 74);
}

/* Campos de entrada */
.input-container {
  position: relative;
  background-color: rgb(255, 255, 255);
  min-height: 51px;
  border: 2px solid rgba(124, 58, 0, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 8px 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 4px rgba(124, 58, 0, 0.1);
  transition: all 0.3s ease;
}

.input-container:focus-within {
  border-color: rgb(124, 58, 0);
  box-shadow: 0 4px 8px rgba(124, 58, 0, 0.2);
  transform: translateY(-1px);
}

.input-field {
  flex: 1;
  border: none !important;
  outline: none !important;
  font-size: 14px;
  color: rgb(74, 74, 74) !important;
  background: white !important;
  overflow: hidden !important;
  word-wrap: break-word !important;
  resize: none !important;
}

.input-field::placeholder {
  color: rgba(74, 74, 74, 0.6);
}

.input-field[type="textarea"],
.input-field textarea,
textarea.input-field {
  /* allow textarea to grow and scroll inside the input container */
  resize: vertical !important;
  overflow: auto !important;
  word-wrap: break-word !important;
  white-space: pre-wrap !important;
  min-height: 60px !important;
  max-height: 240px !important;
}

/* Ensure textarea fills available width and doesn't overflow its container */
.input-container textarea.input-field {
  align-self: stretch !important;
  width: 100% !important;
  height: auto !important;
  padding: 6px 0 !important;
  background: transparent !important;
}

/* Botões */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.05px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background-color: rgb(124, 58, 0);
  color: white;
}

.btn-primary:hover {
  background-color: rgb(100, 46, 0);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: rgb(124, 58, 0);
  border: 2px solid rgb(124, 58, 0);
}

.btn-secondary:hover {
  background-color: rgb(124, 58, 0);
  color: white;
}

/* Designer button classes (used in markup) */
.Button_container__34ogC.Button_sizeSmall__3l8Pq {
  padding: 11px 20px 10px;
}

.Button_container__34ogC {
  cursor: pointer;
  padding: 19px 60px 20px;
  margin: 0;
  background-color: transparent;
  display: -webkit-flex;
  display: -moz-box;
  display: flex;
  -webkit-align-items: center;
  -moz-box-align: center;
  align-items: center;
  -webkit-justify-content: center;
  -moz-box-pack: center;
  justify-content: center;
  border: 1px solid var(--button-border-color);
  -moz-transition: border .25s ease,background-color .25s ease,opacity .25s ease;
  transition: border .25s ease, background-color .25s ease, opacity .25s ease;
}

.Button_label__2wftj {
  color: rgb(124, 58, 0);
  font-weight: 700;
  letter-spacing: 2px;
}

/* Force button labels to uppercase across all button variants */
.Button_label__2wftj,
.Button_labelUppercase__cXRJa,
.Button_container__34ogC .Button_label__2wftj {
  text-transform: uppercase;
}

/* Remove link underline and default link color for designer button */
.Button_container__34ogC,
.Button_container__34ogC:link,
.Button_container__34ogC:visited,
.Button_container__34ogC:active {
  text-decoration: none;
  color: inherit;
}

/* Price styling as requested */
.PresetItemsPage_itemPrice__1JuSS {
  margin-top: 20px;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 2.5;
  letter-spacing: .8px;
  text-align: center;
  color: var(--primary-content-color);
}

/* Specific overrides for the first product card (Assorted Dozen Box) */

/* Ensure all product cards use same description and title styles as the first card */
.product-info .product-title,
.product-card .product-title {
  font-size: 18px;
}

.product-info .PresetItemsPage_itemDescription__2koTA,
.product-card .PresetItemsPage_itemDescription__2koTA,
.product-info .product-description,
.product-card .product-description {
  font-size: 12px;
  color: var(--primary-content-color);
  line-height: 1.4;
}

/* Force exact sizes for product title and description across all cards (mobile-first) */
.product-card .product-info .product-title,
.product-card .product-info h2.product-title {
  font-size: 18px !important;
}

.product-card .product-info .PresetItemsPage_itemDescription__2koTA,
.product-card .product-info .product-description {
  font-size: 12px !important;
  color: var(--primary-content-color) !important;
  line-height: 1.4 !important;
}

@media (max-width: 640px) {
  .product-card .product-info .product-title,
  .product-card .product-info h2.product-title {
    font-size: 18px !important;
  }
  .product-card .product-info .PresetItemsPage_itemDescription__2koTA,
  .product-card .product-info .product-description {
    font-size: 12px !important;
  }
}

/* Ensure font family and weights match the first card for consistency */
.product-card .product-info .product-title,
.product-info .product-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500; /* matches product-title default */
}

.product-card .product-info .PresetItemsPage_itemDescription__2koTA,
.product-card .product-info .product-description {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
}

.PresetItemsPage_itemPrice__1JuSS {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600; /* keep price bold as defined earlier */
}

/* Ensure overrides apply on small screens (mobile focus) */
@media (max-width: 640px) {
  .product-card:first-child .product-title {
    font-size: 18px !important;
  }
  .product-card:first-child .PresetItemsPage_itemDescription__2koTA {
    font-size: 12px !important;
  }
}

/* Media Queries para Responsividade */

/* Tablets */
@media (max-width: 768px) {
  .main-content {
    padding: 24px 30px 40px;
  }
  
  .page-title {
    font-size: 24px;
    letter-spacing: 1.2px;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
  }
  
  .main-product-container {
    flex-direction: column;
    padding: 24px 30px 40px;
    gap: 32px;
  }
  
  .product-image-section {
    max-width: 100%;
  }
  
  .product-image-container.single {
    height: 300px;
  }
  
  .product-title.single {
    font-size: 24px;
    text-align: center;
    margin-bottom: 24px;
  }
  
  .product-form {
    max-width: 100%;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .main-content {
    padding: 20px 16px 30px;
  }
  
  .page-title {
    font-size: 20px;
    letter-spacing: 1px;
    margin: 16px 0;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 24px;
  }
  
  .product-card {
    max-width: 100%;
  }
  
  .main-product-container {
    padding: 20px 16px 30px;
    gap: 24px;
  }
  
  .product-image-container.single {
    height: 250px;
    min-height: 200px;
  }
  
  .product-image-wrapper.single {
    padding: 10px;
  }
  
  .product-image.single {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
  }
  
  .product-title.single {
    font-size: 20px;
  }
  
  .content-area {
    padding: 12px;
  }
}

/* Mobile pequeno */
@media (max-width: 480px) {
  .main-content {
    padding: 16px 12px 24px;
  }
  
  .page-title {
    font-size: 25px;
    margin: 12px 0;
  }
  
  .products-grid {
    gap: 16px;
    margin-top: 20px;
  }
  
  .product-info {
    padding: 16px;
  }
  
  .product-title {
    font-size: 16px;
  }
  
  .product-description {
    font-size: 8px;
  }
  
  .main-product-container {
    padding: 16px 12px 24px;
    gap: 20px;
  }
  
  .product-image-container.single {
    height: 200px;
    min-height: 150px;
  }
  
  .product-image-wrapper.single {
    padding: 8px;
  }
  
  .product-image.single {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
  }
  
  .product-title.single {
    font-size: 18px;
  }
  
  .input-container {
    height: 45px;
    padding: 0 12px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 12px;
  }
}

/* Mobile muito pequeno */
@media (max-width: 360px) {
  .main-content {
    padding: 12px 8px 20px;
  }
  
  .page-title {
    font-size: 16px;
    margin: 10px 0;
  }
  
  .products-grid {
    gap: 12px;
    margin-top: 16px;
  }
  
  .product-info {
    padding: 12px;
  }
  
  .product-title {
    font-size: 15px;
  }
  
  .product-description {
    font-size: 8px;
  }
  
  .main-product-container {
    padding: 12px 8px 20px;
    gap: 16px;
  }
  
  .product-image-container.single {
    height: 180px;
    min-height: 120px;
  }
  
  .product-image-wrapper.single {
    padding: 6px;
  }
  
  .product-image.single {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
  }
  
  .product-title.single {
    font-size: 16px;
  }
  
  .input-container {
    height: 42px;
    padding: 0 10px;
  }
  
  .btn {
    padding: 8px 16px;
    font-size: 11px;
  }
}

