/* ==========================================================================
   Luxora Blinds - Product Detail Page Styles
   ========================================================================== */

/* -------------------------------------------------------------------------
   Product Detail Hero
   ------------------------------------------------------------------------- */

.product-detail {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-5xl);
  background-color: var(--color-white);
}

/* -------------------------------------------------------------------------
   Product Gallery
   ------------------------------------------------------------------------- */

.product-gallery {
  position: sticky;
  top: 100px;
}

.product-gallery__main {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-md);
  background-color: var(--color-ivory);
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery__badge {
  position: absolute;
  top: var(--space-lg);
  left: var(--space-lg);
}

.product-gallery__zoom {
  position: absolute;
  bottom: var(--space-lg);
  right: var(--space-lg);
  width: 44px;
  height: 44px;
  background-color: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-fast);
}

.product-gallery__zoom:hover {
  background-color: var(--color-gold);
  color: var(--color-white);
}

.product-gallery__thumbnails {
  display: flex;
  gap: var(--space-sm);
}

.product-gallery__thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition-fast);
}

.product-gallery__thumb:hover,
.product-gallery__thumb.active {
  border-color: var(--color-gold);
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -------------------------------------------------------------------------
   Product Info
   ------------------------------------------------------------------------- */

.product-info {
  padding-left: var(--space-xl);
}

.product-info__category {
  font-family: var(--font-ui);
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  margin-bottom: var(--space-sm);
}

.product-info__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  color: var(--color-charcoal);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.product-info__rating {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.product-info__stars {
  display: flex;
  gap: 2px;
}

.product-info__stars i {
  color: var(--color-gold);
  font-size: 14px;
}

.product-info__reviews {
  font-size: var(--fs-small);
  color: var(--color-grey);
}

.product-info__price {
  font-family: var(--font-ui);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  color: var(--color-charcoal);
  margin-bottom: var(--space-xs);
}

.product-info__price-note {
  font-size: var(--fs-small);
  color: var(--color-grey);
  margin-bottom: var(--space-xl);
}

.product-info__description {
  font-size: var(--fs-body);
  color: var(--color-grey);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

/* -------------------------------------------------------------------------
   Product Options
   ------------------------------------------------------------------------- */

.product-options {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

.product-option {
  margin-bottom: var(--space-lg);
}

.product-option:last-child {
  margin-bottom: 0;
}

.product-option__label {
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--color-charcoal);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  margin-bottom: var(--space-sm);
  display: block;
}

.product-option__label span {
  font-weight: var(--fw-regular);
  color: var(--color-grey);
  text-transform: none;
  letter-spacing: normal;
}

/* Color Swatches */
.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.color-option {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.color-option:hover,
.color-option.selected {
  border-color: var(--color-charcoal);
  transform: scale(1.1);
}

.color-option.selected::after {
  content: '\f26e';
  font-family: 'bootstrap-icons';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-white);
  font-size: 16px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.color-option--ivory { background-color: #F8F5EF; border: 2px solid var(--color-border); }
.color-option--charcoal { background-color: #2E2E2E; }
.color-option--sage { background-color: #9CAF88; }
.color-option--navy { background-color: #1C3557; }
.color-option--beige { background-color: #D4C5B5; }

/* Material Options */
.material-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.material-option {
  padding: 10px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  color: var(--color-charcoal);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: none;
}

.material-option:hover {
  border-color: var(--color-gold);
}

.material-option.selected {
  border-color: var(--color-gold);
  background-color: rgba(200, 162, 77, 0.1);
  color: var(--color-gold);
  font-weight: var(--fw-medium);
}

/* Size Input */
.size-inputs {
  display: flex;
  gap: var(--space-md);
}

.size-input {
  flex: 1;
}

.size-input label {
  display: block;
  font-size: var(--fs-caption);
  color: var(--color-grey);
  margin-bottom: var(--space-xs);
}

.size-input input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-body);
  transition: border-color var(--transition-fast);
}

.size-input input:focus {
  outline: none;
  border-color: var(--color-gold);
}

.size-input input::placeholder {
  color: var(--color-grey);
}

/* -------------------------------------------------------------------------
   Product Actions
   ------------------------------------------------------------------------- */

.product-actions {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.product-actions .btn {
  flex: 1;
}

.product-actions .btn-wishlist {
  flex: 0 0 auto;
  width: 54px;
  padding: 0;
}

/* -------------------------------------------------------------------------
   Product Features
   ------------------------------------------------------------------------- */

.product-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.product-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  color: var(--color-charcoal);
}

.product-feature i {
  color: var(--color-teal);
  font-size: 18px;
}

/* -------------------------------------------------------------------------
   Product Tabs
   ------------------------------------------------------------------------- */

.product-tabs {
  margin-top: var(--space-3xl);
}

.product-tabs__nav {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-xl);
}

.product-tabs__btn {
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--color-grey);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color var(--transition-fast);
}

.product-tabs__btn:hover {
  color: var(--color-charcoal);
}

.product-tabs__btn.active {
  color: var(--color-gold);
}

.product-tabs__btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-gold);
}

.product-tabs__content {
  display: none;
}

.product-tabs__content.active {
  display: block;
}

/* Specifications Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--color-border);
}

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

.specs-table th,
.specs-table td {
  padding: var(--space-md) 0;
  text-align: left;
  font-size: var(--fs-body);
}

.specs-table th {
  font-weight: var(--fw-medium);
  color: var(--color-charcoal);
  width: 40%;
}

.specs-table td {
  color: var(--color-grey);
}

/* Care Instructions */
.care-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.care-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-body);
  color: var(--color-grey);
}

.care-list li:last-child {
  border-bottom: none;
}

.care-list li i {
  color: var(--color-gold);
  font-size: 18px;
  margin-top: 2px;
}

/* -------------------------------------------------------------------------
   Related Products
   ------------------------------------------------------------------------- */

.related-products {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
  background-color: var(--color-ivory);
}

.related-products .section-heading {
  margin-bottom: var(--space-2xl);
}

/* -------------------------------------------------------------------------
   Responsive Styles
   ------------------------------------------------------------------------- */

@media (max-width: 1199px) {
  .product-info {
    padding-left: var(--space-lg);
  }

  .product-info__title {
    font-size: var(--fs-h2);
  }

  .product-info__price {
    font-size: var(--fs-h3);
  }
}

@media (max-width: 991px) {
  .product-detail {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
  }

  .product-info {
    padding-left: 0;
    margin-top: var(--space-xl);
  }

  .product-gallery {
    position: static;
  }

  .product-gallery__main {
    aspect-ratio: 4/4;
    max-height: 500px;
  }

  .product-info__title {
    font-size: var(--fs-h2);
  }

  .product-tabs {
    margin-top: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  .product-detail {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }

  .product-gallery__main {
    aspect-ratio: 1/1;
    max-height: 400px;
    border-radius: var(--radius-sm);
  }

  .product-gallery__badge {
    top: var(--space-md);
    left: var(--space-md);
  }

  .product-gallery__zoom {
    width: 40px;
    height: 40px;
    bottom: var(--space-md);
    right: var(--space-md);
  }

  .product-gallery__thumbnails {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    padding-bottom: var(--space-sm);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .product-gallery__thumbnails::-webkit-scrollbar {
    display: none;
  }

  .product-gallery__thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
  }

  .product-info__category {
    font-size: 11px;
  }

  .product-info__title {
    font-size: var(--fs-h3);
    margin-bottom: var(--space-sm);
  }

  .product-info__rating {
    margin-bottom: var(--space-md);
  }

  .product-info__price {
    font-size: var(--fs-h4);
  }

  .product-info__description {
    font-size: var(--fs-small);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
  }

  .product-options {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
  }

  .product-option {
    margin-bottom: var(--space-md);
  }

  .product-option__label {
    font-size: var(--fs-caption);
    margin-bottom: var(--space-xs);
  }

  .color-option {
    width: 36px;
    height: 36px;
  }

  .material-option {
    padding: 8px 16px;
    font-size: var(--fs-caption);
  }

  .size-inputs {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .size-input input {
    padding: 10px 14px;
    font-size: var(--fs-small);
  }

  .product-actions {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .product-actions .btn {
    padding: 14px 24px;
    font-size: var(--fs-caption);
  }

  .product-actions .btn-wishlist {
    width: 100%;
  }

  .product-features {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
  }

  .product-feature {
    font-size: var(--fs-caption);
  }

  .product-feature i {
    font-size: 16px;
  }

  .product-tabs {
    margin-top: var(--space-xl);
  }

  .product-tabs__nav {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-lg);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .product-tabs__nav::-webkit-scrollbar {
    display: none;
  }

  .product-tabs__btn {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--fs-caption);
    flex-shrink: 0;
  }

  .specs-table th,
  .specs-table td {
    padding: var(--space-sm) 0;
    font-size: var(--fs-small);
  }

  .specs-table th {
    width: 45%;
  }

  .care-list li {
    padding: var(--space-sm) 0;
    font-size: var(--fs-small);
  }

  .care-list li i {
    font-size: 16px;
  }

  /* Related Products */
  .related-products {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }
}

@media (max-width: 480px) {
  .product-detail {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }

  .product-gallery__main {
    aspect-ratio: 1/1;
    max-height: 320px;
    margin-bottom: var(--space-sm);
  }

  .product-gallery__thumb {
    width: 50px;
    height: 50px;
  }

  .product-info {
    margin-top: var(--space-lg);
  }

  .product-info__title {
    font-size: 22px;
    line-height: 1.3;
  }

  .product-info__price {
    font-size: 20px;
  }

  .product-info__price-note {
    font-size: var(--fs-caption);
    margin-bottom: var(--space-lg);
  }

  .product-info__description {
    font-size: var(--fs-caption);
    line-height: 1.6;
  }

  .color-options {
    gap: var(--space-xs);
  }

  .color-option {
    width: 32px;
    height: 32px;
  }

  .color-option.selected::after {
    font-size: 12px;
  }

  .material-options {
    gap: var(--space-xs);
  }

  .material-option {
    padding: 6px 12px;
    font-size: 11px;
  }

  .product-actions .btn {
    padding: 12px 20px;
  }

  .product-tabs__btn {
    padding: var(--space-xs) var(--space-sm);
    font-size: 11px;
  }

  .specs-table th,
  .specs-table td {
    font-size: var(--fs-caption);
  }
}

@media (max-width: 360px) {
  .product-info__title {
    font-size: 20px;
  }

  .product-info__price {
    font-size: 18px;
  }

  .product-gallery__thumb {
    width: 45px;
    height: 45px;
  }

  .color-option {
    width: 28px;
    height: 28px;
  }

  .material-option {
    padding: 5px 10px;
    font-size: 10px;
  }
}
