/**
 * Varashree Luxury - Feature Styles
 * Breadcrumbs, Stock Indicators, Social Sharing, Related Products, Recently Viewed
 */

:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --black: #050505;
  --off-white: #F2EBD9;
}

/* ============================================================
   STOCK INDICATORS
   ============================================================ */

.varashree-stock-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin: 20px 0;
  background: rgba(201, 168, 76, 0.05);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 6px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.stock-available {
  color: #7ac57a;
  font-weight: 500;
}

.stock-low {
  color: #e8a13c;
  font-weight: 500;
}

.stock-backorder {
  color: #d4af37;
  font-weight: 500;
}

.stock-unavailable {
  color: #a0a0a0;
  font-weight: 500;
}

.stock-unavailable a {
  color: #d4af37;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.stock-unavailable a:hover {
  opacity: 0.7;
}

/* ============================================================
   SOCIAL SHARING BUTTONS
   ============================================================ */

.varashree-share-buttons {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.share-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(242, 235, 217, 0.7);
  margin-bottom: 16px;
}

.share-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 50%;
  background: transparent;
  color: #C9A84C;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  padding: 0;
}

.share-btn:hover {
  background: rgba(201, 168, 76, 0.1);
  border-color: #C9A84C;
  transform: translateY(-2px);
}

.share-btn svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 600px) {
  .share-links {
    gap: 12px;
  }

  .share-btn {
    width: 32px;
    height: 32px;
  }
}

/* ============================================================
   RELATED PRODUCTS SECTION
   ============================================================ */

.varashree-related-section {
  padding: 60px 0;
  margin-top: 60px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.related-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: #F2EBD9;
  margin: 0 0 32px;
  text-align: center;
  letter-spacing: 0.1em;
}

.related-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.product-card {
  position: relative;
}

.product-card-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  display: block;
  text-decoration: none;
  transition: transform 0.3s ease;
}

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

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card-name {
  margin: 16px 0 8px;
  font-size: 14px;
  color: #F2EBD9;
  line-height: 1.4;
  text-decoration: none;
}

.product-card-name a {
  color: #F2EBD9;
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-card-name a:hover {
  color: #C9A84C;
}

.product-card-price {
  font-size: 13px;
  color: #C9A84C;
  font-weight: 500;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .related-products {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
  }
}

/* ============================================================
   RECENTLY VIEWED PRODUCTS
   ============================================================ */

.varashree-recently-viewed-section {
  padding: 60px 0;
  margin-top: 40px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.recently-viewed-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: #F2EBD9;
  margin: 0 0 32px;
  text-align: center;
  letter-spacing: 0.1em;
}

.recently-viewed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.recently-viewed-item {
  position: relative;
}

.recently-viewed-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  display: block;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.recently-viewed-image:hover {
  transform: scale(1.02);
}

.recently-viewed-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.recently-viewed-name {
  margin: 12px 0 6px;
  font-size: 12px;
  color: #F2EBD9;
  line-height: 1.3;
}

.recently-viewed-name a {
  color: #F2EBD9;
  text-decoration: none;
  transition: color 0.3s ease;
}

.recently-viewed-name a:hover {
  color: #C9A84C;
}

.recently-viewed-price {
  font-size: 11px;
  color: #C9A84C;
  font-weight: 500;
  margin: 0;
}

#varashree-recently-viewed-container {
  display: none;
}

/* ============================================================
   BREADCRUMBS (from header.php)
   ============================================================ */

.varashree-breadcrumbs {
  padding: 20px 32px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(242, 235, 217, 0.6);
  background: rgba(5, 5, 5, 0.4);
}

.varashree-breadcrumbs a {
  color: #C9A84C;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.varashree-breadcrumbs a:hover {
  opacity: 0.7;
}

.varashree-breadcrumbs span {
  color: rgba(242, 235, 217, 0.4);
}

@media (max-width: 600px) {
  .varashree-breadcrumbs {
    padding: 16px;
    font-size: 9px;
  }

  .recently-viewed-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
  }
}

/* ============================================================
   MY ACCOUNT PAGE (improvements)
   ============================================================ */

.account-user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 500;
  color: #C9A84C;
}

.account-menu-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  text-decoration: none;
  color: #F2EBD9;
  transition: color 0.3s ease;
  display: block;
}

.account-menu-item:hover {
  color: #C9A84C;
}

.account-menu-item.active {
  color: #C9A84C;
  font-weight: 500;
  border-left: 2px solid #C9A84C;
  padding-left: -2px;
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */

@media (max-width: 900px) {
  .varashree-stock-indicator {
    padding: 10px 12px;
    font-size: 11px;
  }

  .related-title,
  .recently-viewed-title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .share-links {
    gap: 8px;
  }

  .share-btn {
    width: 30px;
    height: 30px;
  }

  .share-btn svg {
    width: 14px;
    height: 14px;
  }

  .varashree-stock-indicator {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
