/* Product Detail Element Styles */

:root {
  --primary-color: #168BEF;
  --secondary-color: #E52222;
}

.product-detail-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: #333333;
  line-height: 1.6;
}

/* Full Layout */
.product-detail-full-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.product-detail-content {
  flex: 1 1 calc(75% - 30px);
  max-width: calc(75% - 30px);
}

.product-detail-sidebar {
  flex: 1 1 calc(25% - 30px);
  max-width: calc(25% - 30px);
  position: sticky;
  top: 30px;
  align-self: flex-start;
}

/* Product Title */
.product-title {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

/* Product Info Layout */
.product-info-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.product-image-column {
  flex: 1;
  min-width: 280px;
}

.product-specs-column {
  flex: 1;
  min-width: 280px;
}

/* Product Image */
.product-main-image {
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  padding: 0;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.product-main-image .main-product-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 500px;
}

.product-logo {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: 150px;
  z-index: 2;
}

.product-logo img {
  max-width: 100%;
  height: auto;
}

.placeholder-image {
  width: 100%;
  height: 300px;
  background-color: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

/* Product Specs Table */
.product-specs-table {
  margin-bottom: 20px;
}

.product-specs-table table {
  width: 100%;
  border-collapse: collapse;
}

.product-specs-table tr:nth-child(odd) {
  background-color: #EBEBEB;
}

.product-specs-table tr:nth-child(even) {
  background-color: #f7f7f7;
}

.product-specs-table td {
  padding: 10px 15px;
  border: none;
}

.product-specs-table td:first-child {
  font-weight: 600;
  width: 40%;
}

/* Contact Button */
.product-contact-button {
  margin-bottom: 20px;
}

.hotline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary-color);
  color: #fff !important;
  padding: 12px 20px;
  border-radius: 4px;
  text-decoration: none !important;
  font-weight: 600;
  width: 100%;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
  font-size: 16px;
}

.hotline-button i {
  margin-right: 10px;
  font-size: 20px;
}

.hotline-button:hover {
  background-color: #d41c1c;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Product Meta */
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.product-category a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.social-share {
  display: flex;
  gap: 5px;
}

.share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #f5f5f5;
  color: #666;
  text-decoration: none;
  transition: all 0.3s ease;
}

.share-button:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* Product Description */
.product-description-section {
  margin-bottom: 30px;
}

.section-header {
  background-color: var(--primary-color);
  color: #fff;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  border-radius: 3px;
}

.section-header i {
  margin-right: 8px;
}

.product-description {
  line-height: 1.6;
  margin-bottom: 20px;
}

.product-description a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.product-description a:hover {
  text-decoration: underline;
}

.product-description p {
  margin-bottom: 15px;
}

/* Product Gallery */
.product-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.gallery-image {
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gallery-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

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

.gallery-image.placeholder {
  height: 180px;
  background-color: #f7f7f7;
}

/* Related Products */
.related-products-section {
  margin-top: 30px;
  margin-bottom: 30px;
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.related-product {
  background-color: #fff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.related-product:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.related-product a {
  text-decoration: none;
  color: inherit;
}

.related-product .product-image {
  height: 160px;
  position: relative;
  overflow: hidden;
}

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

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

.related-product h4 {
  padding: 10px;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  color: #333;
}

/* Sidebar Banner */
.sidebar-banner {
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 20px;
  text-align: center;
  padding: 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.sidebar-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 10px;
  border-radius: 5px;
}

.sidebar-banner h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 15px 0;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
}

.sidebar-phone {
  background-color: #fff;
  border-radius: 50px;
  color: var(--primary-color);
  font-size: 18px;
  font-weight: 700;
  padding: 8px 15px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin: 5px auto;
}

.sidebar-phone i {
  margin-right: 8px;
}

.banner-placeholder {
  height: 200px;
  background: linear-gradient(135deg, #199cf6, #0d5ba3);
  position: relative;
  border-radius: 5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.banner-placeholder::after {
  content: 'THI CÔNG BẢNG HIỆU QUẢNG CÁO';
  color: rgba(255,255,255,0.3);
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  padding: 20px;
  max-width: 80%;
}

/* Service Links Container */
.direct-services {
  margin-bottom: 20px;
}

/* Service Link Styles */
.direct-services .service-link {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 15px;
  background-color: var(--primary-color);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-bottom: 5px;
  border-radius: 3px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.direct-services .service-link:last-child {
  margin-bottom: 0;
}

.direct-services .service-link i {
  margin-right: 10px;
  font-size: 16px;
}

.direct-services .service-link:hover {
  background-color: #0c67b6;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Sidebar Services */
.sidebar-services {
  background-color: #fff;
  color: #333;
  padding: 0;
  border-radius: 5px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sidebar-services h3 {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin: 0;
  padding: 12px 15px;
  border-bottom: 1px solid #e0e0e0;
  background-color: var(--primary-color);
  color: #fff;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.sidebar-services ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-services li {
  margin: 0;
  border-bottom: 1px solid #e0e0e0;
}

.sidebar-services li:last-child {
  border-bottom: none;
}

.sidebar-services a {
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-weight: 500;
  padding: 12px 15px;
  transition: all 0.2s ease;
}

.sidebar-services a i {
  margin-right: 8px;
  color: var(--primary-color);
}

.sidebar-services a:hover {
  background-color: #f5f5f5;
}

/* Sidebar Products */
.sidebar-products {
  background-color: #fff;
  padding: 0;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.sidebar-products h3 {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  margin: 0;
  padding: 12px 15px;
  background-color: var(--primary-color);
  color: #fff;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 15px;
}

.sidebar-product {
  background-color: #fff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.sidebar-product:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.sidebar-product a {
  text-decoration: none;
  color: inherit;
}

.sidebar-product .product-image {
  aspect-ratio: 1/1;
  background-color: #f9f9f9;
  position: relative;
  overflow: hidden;
}

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

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

.sidebar-product .product-image.placeholder {
  position: relative;
}

.sidebar-product .product-image.placeholder::before {
  content: '\f03e';
  font-family: "Font Awesome 5 Free";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: #ccc;
}

.sidebar-product h4 {
  font-size: 12px;
  padding: 10px 5px;
  margin: 0;
  text-align: center;
  font-weight: 600;
  color: #333;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Full height sidebar on desktop */
@media (min-width: 993px) {
  .product-detail-full-layout {
    align-items: stretch;
    min-height: 100%;
  }
  
  .product-detail-sidebar {
    display: flex;
    flex-direction: column;
  }
  
  .sidebar-banner {
    flex-grow: 0;
  }
  
  .direct-services {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
  
  .sidebar-services, .sidebar-products {
    flex-grow: 0;
  }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .product-detail-full-layout {
    gap: 20px;
  }
  
  .product-info-layout {
    gap: 20px;
    flex-direction: column;
  }
  
  .product-detail-content,
  .product-detail-sidebar {
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  .product-detail-sidebar {
    position: static;
  }
  
  .product-logo {
    max-width: 120px;
  }
  
  .related-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .sidebar-banner h3 {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .product-gallery {
    grid-template-columns: 1fr;
  }
  
  .product-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .product-specs-table td {
    padding: 8px 10px;
  }
  
  .product-title {
    font-size: 24px;
  }
  
  .hotline-button {
    font-size: 14px;
    padding: 10px;
  }
  
  .hotline-button i {
    font-size: 18px;
  }
  
  .sidebar-banner h3 {
    font-size: 18px;
  }
  
  .sidebar-phone {
    font-size: 16px;
    padding: 6px 12px;
  }
}

@media (max-width: 576px) {
  .related-products-grid {
    grid-template-columns: 1fr;
  }
  
  .product-specs-table td:first-child {
    width: 50%;
  }
  
  .social-share {
    width: 100%;
    justify-content: center;
    margin-top: 5px;
  }
} 