/* Background Image */
body {
  /* background-color: #FAEFD9 !important; */
  background-image: url("../images/brand-background.png") !important;
  background-repeat: repeat !important;
  background-size: cover !important;
  background-position: center center !important;
  background-attachment: fixed !important;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background-color: rgba(250, 239, 217, 0.2); */
  z-index: 0;
  pointer-events: none;
}

body > * {
  position: relative;
  z-index: 1;
}

.main {
  position: relative;
  z-index: 1;
}

.product-hero {
  position: relative;
  z-index: 1;
}

/* Product Page Styles */
.product-hero {
  background: linear-gradient(135deg, #1540D8 0%, #71B5FF 100%);
  position: relative;
  overflow: hidden;
  padding: 140px 20px 80px;
  margin-top: 0;
}

.product-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,60 Q300,20 600,60 T1200,60 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.05)"/></svg>') repeat-x;
  background-size: 1200px 120px;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.product-section {
  padding: 5rem 20px;
  position: relative;
}

.product-section:nth-child(even) {
  background-color: rgb(250 239 217 / 53%);
  background-image: url("../images/brand-background.png");
  background-repeat: repeat;
  background-size: auto;
}

.product-section:nth-child(odd) {
  background-color: rgb(250 239 217 / 53%);
  background-image: url("../images/brand-background.png");
  background-repeat: repeat;
  background-size: auto;
}

.product-main-section {
  position: relative;
}

.product-main-section .col-12.col-lg-6:last-child {
  background: rgba(255, 255, 255, 0.95);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(21, 64, 216, 0.15);
}

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

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.single-product-layout {
  display: flex;
  align-items: center;
  gap: 4rem;
}

@media (max-width: 992px) {
  .single-product-layout {
    flex-direction: column;
    gap: 2rem;
  }
}

.product-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 10px 40px rgba(21, 64, 216, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  border-top: 5px solid #F2BB05;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #F2BB05 0%, #1540D8 100%);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(21, 64, 216, 0.25);
}

.product-image-container {
  position: relative;
  margin-bottom: 2rem;
  text-align: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(21, 64, 216, 0.05) 0%, rgba(113, 185, 255, 0.05) 100%);
  border-radius: 20px;
  padding: 2rem;
}

.product-image-container img {
  max-width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(21, 64, 216, 0.2));
  transition: transform 0.3s ease;
}

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

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #F2BB05 0%, #1540D8 100%);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 15px rgba(242, 187, 5, 0.4);
}

.product-title {
  font-size: 2rem;
  font-weight: 800;
  color: #1540D8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  text-align: center;
}

.product-subtitle {
  font-size: 1.25rem;
  color: #1540D8;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

.product-description {
  color: #333;
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1rem;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.product-features li {
  padding: 0.75rem 0;
  color: #151922;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
}

.product-features li:last-child {
  border-bottom: none;
}

.product-features li i {
  color: #F2BB05;
  margin-right: 1rem;
  font-size: 1.25rem;
  width: 24px;
}

.product-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1540D8;
  text-align: center;
  margin-bottom: 1.5rem;
}

.product-price .currency {
  font-size: 1.5rem;
  vertical-align: top;
}

.btn-add-to-cart {
  width: 100%;
  background: linear-gradient(135deg, #1540D8 0%, #71B5FF 100%);
  color: #fff;
  border: none;
  padding: 1.25rem 2rem;
  border-radius: 50px;
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(21, 64, 216, 0.3);
}

.btn-add-to-cart:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(21, 64, 216, 0.4);
  background: linear-gradient(135deg, #0f32b0 0%, #5a9fef 100%);
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  color: #1540D8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, #F2BB05 0%, #1540D8 100%);
  border-radius: 3px;
}

.product-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.detail-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(21, 64, 216, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.detail-card:hover {
  transform: translateY(-5px);
}

.detail-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #1540D8 0%, #71B5FF 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(21, 64, 216, 0.3);
}

.detail-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1540D8;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-card p {
  color: #666;
  line-height: 1.7;
  margin: 0;
}

.nutritional-info {
  background-color: rgba(250, 239, 217, 0.9);
  border-radius: 20px;
  padding: 3rem;
  margin-top: 3rem;
  position: relative;
}

.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.nutrition-table th,
.nutrition-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.nutrition-table th {
  background: linear-gradient(135deg, #1540D8 0%, #71B5FF 100%);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.875rem;
}

.nutrition-table tr:last-child td {
  border-bottom: none;
}

.nutrition-table td {
  color: #333;
  font-weight: 500;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* Hero Section Mobile */
  .product-hero {
    padding: 100px 15px 50px !important;
    margin-top: 0 !important;
  }
  
  .product-hero h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
    letter-spacing: 0.05em !important;
  }
  
  .product-hero .lead {
    font-size: 1rem !important;
    line-height: 1.5 !important;
    padding: 0 10px;
  }
  
  /* Product Section Mobile */
  .product-section {
    padding: 3rem 15px !important;
  }
  
  /* Fix background image on mobile - background-attachment: fixed doesn't work on iOS */
  body {
    background-attachment: scroll !important;
    background-size: auto !important;
    background-repeat: repeat !important;
  }
  
  .section-container {
    padding: 0 10px;
  }
  
  /* Product Image Container Mobile */
  .product-image-container {
    min-height: 250px !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem;
  }
  
  .product-image-container img {
    max-height: 250px !important;
  }
  
  /* Product Badge Mobile */
  .product-badge {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    margin-bottom: 1rem !important;
    display: block !important;
    text-align: center;
    font-size: 0.65rem !important;
    padding: 0.4rem 0.8rem !important;
  }
  
  /* Product Title Mobile */
  .product-title {
    font-size: 1.75rem !important;
    text-align: center !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.2 !important;
  }
  
  /* Product Subtitle Mobile */
  .product-subtitle {
    font-size: 1rem !important;
    text-align: center !important;
    margin-bottom: 1.5rem !important;
  }
  
  /* Product Description Mobile */
  .product-description {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
    text-align: left;
  }
  
  /* Product Details Background Mobile */
  .product-main-section .col-12.col-lg-6:last-child {
    padding: 1.5rem !important;
    margin-top: 1rem;
  }
  
  /* Product Features Mobile */
  .product-features {
    margin-bottom: 1.5rem !important;
  }
  
  .product-features li {
    padding: 0.5rem 0 !important;
    font-size: 0.9rem;
  }
  
  .product-features li i {
    font-size: 1rem !important;
    margin-right: 0.75rem !important;
    width: 20px !important;
  }
  
  /* Section Title Mobile */
  .section-title {
    font-size: 1.75rem !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 0.75rem !important;
    line-height: 1.3 !important;
  }
  
  .section-title::after {
    width: 60px !important;
    height: 3px !important;
  }
  
  /* Product Details Grid Mobile */
  .product-details-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    margin-top: 2rem !important;
  }
  
  /* Detail Card Mobile */
  .detail-card {
    padding: 1.5rem !important;
  }
  
  .detail-icon {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
  }
  
  .detail-card h3 {
    font-size: 1.25rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .detail-card p {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
  }
  
  /* Nutritional Info Mobile */
  .nutritional-info {
    padding: 1.5rem !important;
    margin-top: 2rem !important;
    border-radius: 15px !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .nutritional-info h3 {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
  }
  
  /* Nutritional Table Mobile - Horizontal Scroll */
  
  .nutrition-table {
    font-size: 0.8rem;
    margin-top: 1.5rem !important;
    min-width: 100%;
    display: table;
    width: 100%;
  }
  
  .nutrition-table th,
  .nutrition-table td {
    padding: 0.75rem 0.5rem !important;
    white-space: nowrap;
  }
  
  .nutrition-table th:first-child,
  .nutrition-table td:first-child {
    min-width: 140px;
    white-space: normal;
  }
  
  .nutrition-table th:nth-child(2),
  .nutrition-table td:nth-child(2) {
    min-width: 80px;
  }
  
  .nutrition-table th:nth-child(3),
  .nutrition-table td:nth-child(3) {
    min-width: 100px;
  }
  
  /* Key Ingredients List Mobile */
  .nutritional-info ul {
    font-size: 0.9rem !important;
    line-height: 1.8 !important;
  }
  
  .nutritional-info ul li {
    margin-bottom: 0.5rem;
  }
  
  .nutritional-info ul li i {
    font-size: 0.85rem !important;
    margin-right: 0.5rem !important;
  }
  
  .nutritional-info p {
    font-size: 0.8rem !important;
    margin-top: 1rem !important;
  }
  
  /* Product Grid Mobile */
  .product-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  /* Container adjustments */
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Row adjustments */
  .row {
    margin-left: -10px;
    margin-right: -10px;
  }
  
  .row > [class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Extra Small Devices */
@media (max-width: 576px) {
  .product-hero {
    padding: 80px 10px 40px !important;
  }
  
  .product-hero h1 {
    font-size: 1.5rem !important;
  }
  
  .product-hero .lead {
    font-size: 0.9rem !important;
  }
  
  .product-section {
    padding: 2rem 10px !important;
  }
  
  .product-title {
    font-size: 1.5rem !important;
  }
  
  .product-subtitle {
    font-size: 0.9rem !important;
  }
  
  .section-title {
    font-size: 1.5rem !important;
  }
  
  .product-image-container {
    min-height: 200px !important;
    padding: 1rem !important;
  }
  
  .product-image-container img {
    max-height: 200px !important;
  }
  
  .detail-card {
    padding: 1.25rem !important;
  }
  
  .nutritional-info {
    padding: 1.25rem !important;
  }
  
  .nutritional-info h3 {
    font-size: 1.25rem !important;
  }
}

