/* 
=================================
Product Detail Page - Luxury Theme
=================================
*/

:root {
  --gold: #c5a473;
  --gold-light: #d4ba8e;
  --gold-dark: #9a7e53;
  --black: #121212;
  --black-light: #222222;
  --black-lighter: #333333;
  --orange: #1b0101;
  --white: #ffffff;
  --white-dim: #f0f0f0;
  --transition: all 0.3s ease;
  --gold-shadow: 0 5px 15px rgba(197, 164, 115, 0.2);
}

/* Product Detail Header */
.product-detail-header {
  text-align: center;
  margin: 2rem 0 3rem;
  position: relative;
}

.product-detail-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--gold);
  margin: 0;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  position: relative;
  display: inline-block;
}

.product-detail-header h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background-color: var(--gold);
}

.product-detail-header p {
  color: var(--white-dim);
  margin-top: 1rem;
  font-size: 1.1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Product Navigation Tabs */
.product-tabs {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
  border-bottom: 1px solid var(--black-lighter);
  padding-bottom: 1px;
  flex-wrap: wrap;
}

.product-tab {
  padding: 0.75rem 2rem;
  color: var(--white-dim);
  text-decoration: none;
  font-size: 1.1rem;
  position: relative;
  margin: 0 0.5rem;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-tab:hover {
  color: var(--gold);
}

.product-tab.active {
  color: var(--gold);
}

.product-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background-color: var(--gold);
  transition: var(--transition);
}

.product-tab.active::after {
  width: 80%;
}

.product-tab:hover::after {
  width: 60%;
}

/* Product Content */
.product-content {
  padding: 2rem 0;
  position: relative;
}

.product-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c5a473' fill-opacity='0.03' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
}

.product-section {
  margin-bottom: 4rem;
}

.product-section h2 {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-size: 2rem;
  position: relative;
  padding-bottom: 0.75rem;
  display: inline-block;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.product-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--gold);
}

.product-section p {
  color: var(--white-dim);
  line-height: 1.8;
}

/* Gallery Grid */
.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  border: 1px solid var(--black-lighter);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: var(--gold-shadow);
}

.gallery-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: var(--white);
  padding: 1.5rem 1rem 1rem;
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* Unit Types */
.unit-types {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.unit-card {
  background-color: var(--black-light);
  border: 1px solid var(--black-lighter);
  padding: 2rem;
  transition: var(--transition);
  height: 100%;
}

.unit-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold);
  box-shadow: var(--gold-shadow);
}

.unit-card h3 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-family: 'Playfair Display', serif;
}

.unit-card .unit-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  
}

.unit-features {
  margin: 1.5rem 0;
  color: var(--white-dim);
}

.unit-feature {
  display: flex;
  margin-bottom: 0.5rem;
  align-items: center;
}

.unit-feature i {
  color: var(--gold);
  margin-right: 0.75rem;
  font-size: 1.1rem;
}

/* Floor Plan */
.floor-plan-container {
  margin-bottom: 3rem;
}

.floor-plan-selector {
  display: flex;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.floor-selector {
  padding: 0.75rem 1.5rem;
  margin-right: 0.75rem;
  margin-bottom: 0.75rem;
  background-color: var(--black-light);
  border: 1px solid var(--black-lighter);
  color: var(--white-dim);
  cursor: pointer;
  transition: var(--transition);
}

.floor-selector:hover, .floor-selector.active {
  background-color: var(--gold);
  color: var(--black);
}

.floor-plan-display {
  border: 1px solid var(--black-lighter);
  padding: 2rem;
  text-align: center;
  min-height: 400px;
}

.floor-plan-image {
  max-width: 100%;
  height: auto;
  max-height: 600px;
}

/* Additional luxury theme styles */
.text-gold {
  color: var(--gold) !important;
}

.feature-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
}

.feature-list li {
  margin-bottom: 0.75rem;
  color: var(--white-dim);
  display: flex;
  align-items: center;
}

.feature-list li i {
  margin-right: 1rem;
  font-size: 1.1rem;
}

/* Enhanced luxury effects */
/* .product-detail-header h1 {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  position: relative;
  display: inline-block;
}

.product-detail-header h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background-color: var(--gold);
}

.product-section h2 {
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
} */

/* Subtle background texture */
/* .product-content {
  position: relative;
}

.product-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c5a473' fill-opacity='0.03' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
} */

/* Gold hover effects */
a {
  color: var(--gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold-light);
  text-decoration: none;
}

/* Enhanced table styling for specification tables */
table.luxury-table {
  width: 100%;
  margin-bottom: 2rem;
  border-collapse: separate;
  border-spacing: 0;
}

table.luxury-table th,
table.luxury-table td {
  padding: 1rem;
  border: 1px solid var(--black-lighter);
}

table.luxury-table th {
  background-color: var(--black-light);
  color: var(--gold);
  font-weight: 600;
  text-align: left;
}

table.luxury-table tr:nth-child(odd) td {
  background-color: rgba(34, 34, 34, 0.5);
}

table.luxury-table tr:hover td {
  background-color: rgba(197, 164, 115, 0.08);
}

/* Responsive */
@media (max-width: 768px) {
  .product-tab {
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    font-size: 0.9rem;
  }
  
  .product-gallery, .unit-types {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 576px) {
  .product-tab {
    padding: 0.5rem 0.75rem;
    margin: 0 0.1rem;
    font-size: 0.8rem;
  }
  
  .product-gallery, .unit-types {
    grid-template-columns: 1fr;
  }
  
  .product-detail-header h1 {
    font-size: 2rem;
  }
}
