/* Timeless Luxury - Design System CSS
 * Deep Green & Gold Color Palette
 * Based on reference code.html
 */

/* ===== CSS Variables ===== */
:root {
  --brand-dark: #0f2e2e;
  --brand-darker: #0a2020;
  --brand-gold: #C5A065;
  --brand-gold-dark: #A08045;
  --brand-card: #133a3a;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Roboto', sans-serif;
}

/* ===== Base Styles ===== */
body.timeless-theme {
  background-color: var(--brand-dark);
  color: #ffffff;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Selection ===== */
body.timeless-theme ::selection {
  background-color: var(--brand-gold);
  color: #ffffff;
}

/* ===== Custom Scrollbar ===== */
body.timeless-theme::-webkit-scrollbar {
  width: 8px;
}

body.timeless-theme::-webkit-scrollbar-track {
  background: var(--brand-dark);
}

body.timeless-theme::-webkit-scrollbar-thumb {
  background: var(--brand-gold);
  border-radius: 4px;
}

/* ===== Gold Panel ===== */
.gold-panel {
  border: 1px solid var(--brand-gold);
  border-radius: 1rem;
  background-color: var(--brand-dark);
  overflow: hidden;
}

/* ===== Typography ===== */
.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

.tracking-widest {
  letter-spacing: 0.1em;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

/* ===== Header Styles ===== */
.timeless-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(15, 46, 46, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(197, 160, 101, 0.3);
}

.timeless-header .header-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.timeless-header .header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

/* Logo */
.timeless-header .logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--brand-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeless-header .logo-icon span {
  color: var(--brand-gold);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
}

.timeless-header .logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: #fff;
  margin-left: 0.75rem;
}

/* Search Bar */
.timeless-search {
  flex: 1;
  max-width: 32rem;
  margin: 0 1rem;
  position: relative;
}

.timeless-search input {
  width: 100%;
  background-color: var(--brand-card);
  border: 1px solid rgba(197, 160, 101, 0.5);
  border-radius: 9999px;
  padding: 0.5rem 3rem 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: #e5e7eb;
}

.timeless-search input::placeholder {
  color: #9ca3af;
}

.timeless-search input:focus {
  outline: none;
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 2px rgba(197, 160, 101, 0.2);
}

.timeless-search button {
  position: absolute;
  right: 0.25rem;
  top: 0.25rem;
  bottom: 0.25rem;
  background-color: var(--brand-gold);
  color: var(--brand-darker);
  font-weight: 700;
  border-radius: 9999px;
  padding: 0 1rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.timeless-search button:hover {
  background-color: var(--brand-gold-dark);
}

/* Header Icons */
.timeless-header .header-icons {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.timeless-header .header-icons a {
  color: #d1d5db;
  transition: color 0.2s;
}

.timeless-header .header-icons a:hover {
  color: var(--brand-gold);
}

.timeless-header .cart-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.5rem;
  background-color: var(--brand-gold);
  color: var(--brand-darker);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  height: 1rem;
  width: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Navigation */
.timeless-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d1d5db;
}

.timeless-nav a {
  color: #d1d5db;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.25rem;
  transition: all 0.2s;
}

.timeless-nav a:hover {
  color: var(--brand-gold);
  border-bottom-color: var(--brand-gold);
}

/* ===== Hero Section ===== */
.timeless-hero {
  position: relative;
  height: 400px;
  overflow: hidden;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .timeless-hero {
    height: 500px;
  }
}

.timeless-hero .hero-bg {
  position: absolute;
  inset: 0;
}

.timeless-hero .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.timeless-hero:hover .hero-bg img {
  transform: scale(1.05);
}

.timeless-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4), transparent);
}

.timeless-hero .hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 2rem;
  max-width: 42rem;
}

@media (min-width: 768px) {
  .timeless-hero .hero-content {
    padding: 0 4rem;
  }
}

.timeless-hero h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .timeless-hero h1 {
    font-size: 4.5rem;
  }
}

.timeless-hero h1 span {
  color: #e5e7eb;
  font-size: 0.65em;
  display: block;
}

.timeless-hero .hero-cta {
  display: inline-block;
  margin-top: 1.5rem;
  background-color: var(--brand-gold);
  color: var(--brand-darker);
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 0.25rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  transition: all 0.2s;
}

.timeless-hero .hero-cta:hover {
  background-color: var(--brand-gold-dark);
  transform: translateY(-2px);
}

/* ===== Collection Section ===== */
.timeless-collection {
  padding: 1.5rem;
}

.timeless-collection .collection-inner {
  background-color: rgba(15, 46, 46, 0.5);
  border-radius: 0.75rem;
  overflow: hidden;
}

.timeless-collection .collection-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(197, 160, 101, 0.2);
}

.timeless-collection .collection-header h2 {
  font-size: 1.25rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin: 0;
}

@media (min-width: 768px) {
  .timeless-collection .collection-header h2 {
    font-size: 1.5rem;
  }
}

.timeless-collection .collection-grid {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .timeless-collection .collection-grid {
    flex-direction: row;
  }
}

/* Feature Card (Left 30%) */
.timeless-collection .feature-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(197, 160, 101, 0.2);
  background-color: var(--brand-darker);
}

@media (min-width: 1024px) {
  .timeless-collection .feature-card {
    width: 30%;
    border-bottom: none;
    border-right: 1px solid rgba(197, 160, 101, 0.2);
  }
}

.timeless-collection .feature-card .feature-image {
  width: 100%;
  aspect-ratio: 4/5;
  position: relative;
}

.timeless-collection .feature-card .feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeless-collection .feature-card .feature-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.timeless-collection .feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  margin-bottom: 1rem;
  color: #fff;
}

.timeless-collection .feature-card p {
  color: #d1d5db;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.timeless-collection .feature-card .btn-explore {
  display: inline-block;
  background-color: var(--brand-gold);
  color: var(--brand-darker);
  padding: 0.5rem 2rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background-color 0.2s;
  width: fit-content;
}

.timeless-collection .feature-card .btn-explore:hover {
  background-color: var(--brand-gold-dark);
}

/* Product Grid (Right 70%) */
.timeless-collection .products-grid-wrapper {
  width: 100%;
  padding: 1.5rem;
  background-color: var(--brand-dark);
}

@media (min-width: 1024px) {
  .timeless-collection .products-grid-wrapper {
    width: 70%;
  }
}

.timeless-collection .products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .timeless-collection .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .timeless-collection .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Product Card */
.timeless-product-card {
  background-color: var(--brand-card);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeless-product-card:hover {
  border-color: rgba(197, 160, 101, 0.3);
}

.timeless-product-card .product-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 0.25rem;
  margin-bottom: 0.75rem;
  background-color: #374151;
}

.timeless-product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.timeless-product-card:hover .product-image img {
  transform: scale(1.1);
}

.timeless-product-card h4 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  text-align: center;
  margin-bottom: 0.25rem;
  color: #fff;
}

.timeless-product-card .product-price {
  color: var(--brand-gold);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.timeless-product-card .btn-view {
  width: 100%;
  background-color: var(--brand-gold);
  color: #000;
  font-weight: 700;
  padding: 0.25rem 0;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s;
  display: block;
}

.timeless-product-card .btn-view:hover {
  background-color: var(--brand-gold-dark);
}

/* ===== Blog Section ===== */
.timeless-blog {
  padding: 1.5rem;
}

.timeless-blog h2 {
  font-size: 1.5rem;
  font-family: var(--font-serif);
  text-align: center;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-gold);
}

.timeless-blog .blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .timeless-blog .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .timeless-blog .blog-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.timeless-blog article {
  background-color: var(--brand-card);
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
}

.timeless-blog article .blog-image {
  overflow: hidden;
  height: 10rem;
  border: 1px solid var(--brand-gold);
}

.timeless-blog article .blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.timeless-blog article:hover .blog-image img {
  transform: scale(1.05);
}

.timeless-blog article .blog-content {
  padding: 1rem;
}

.timeless-blog article h3 {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  color: #fff;
}

.timeless-blog article .blog-date {
  font-size: 0.75rem;
  color: var(--brand-gold);
  margin-bottom: 0.5rem;
}

.timeless-blog article p {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* ===== Split Section (Testimonials & FAQ) ===== */
.timeless-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .timeless-split {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Testimonials */
.timeless-testimonials {
  padding: 1.5rem;
}

.timeless-testimonials h2 {
  font-size: 1.25rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #fff;
}

.timeless-testimonials .testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .timeless-testimonials .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.timeless-testimonials .testimonial-card {
  background-color: #fff;
  border-radius: 0.5rem;
  padding: 1rem;
  color: var(--brand-dark);
}

.timeless-testimonials .testimonial-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.timeless-testimonials .testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--brand-gold);
  flex-shrink: 0;
  margin-right: 0.5rem;
}

.timeless-testimonials .testimonial-name {
  font-weight: 700;
  font-size: 0.875rem;
}

.timeless-testimonials .testimonial-stars {
  color: var(--brand-gold);
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.timeless-testimonials .testimonial-text {
  font-size: 0.75rem;
  color: #4b5563;
}

/* FAQ Accordion */
.timeless-faq {
  padding: 1.5rem;
}

.timeless-faq h2 {
  font-size: 1.25rem;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: right;
  margin-bottom: 1.5rem;
  color: #fff;
}

.timeless-faq .faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeless-faq details {
  background-color: var(--brand-card);
  border-radius: 0.5rem;
}

.timeless-faq details>summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  cursor: pointer;
  padding: 1rem;
  color: #fff;
}

.timeless-faq details>summary::-webkit-details-marker {
  display: none;
}

.timeless-faq details>summary .faq-icon {
  transition: transform 0.3s;
}

.timeless-faq details[open]>summary .faq-icon {
  transform: rotate(180deg);
}

.timeless-faq details>div {
  color: #9ca3af;
  padding: 0 1rem 1rem;
  font-size: 0.875rem;
  animation: sweep 0.5s ease-in-out;
}

@keyframes sweep {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Footer ===== */
.timeless-footer {
  margin: 0;
  padding: 2rem;
}

@media (min-width: 640px) {
  .timeless-footer {
    margin: 0;
  }
}

@media (min-width: 1024px) {
  .timeless-footer {
    margin: 0;
  }
}

.timeless-footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .timeless-footer .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.timeless-footer h4 {
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.timeless-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeless-footer ul li {
  margin-bottom: 0.5rem;
}

.timeless-footer ul a {
  font-size: 0.875rem;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}

.timeless-footer ul a:hover {
  color: var(--brand-gold);
}

.timeless-footer .social-icons {
  display: flex;
  gap: 1rem;
}

.timeless-footer .social-icons a {
  width: 2rem;
  height: 2rem;
  background-color: #fff;
  color: var(--brand-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  text-decoration: none;
  transition: background-color 0.2s;
}

.timeless-footer .social-icons a:hover {
  background-color: var(--brand-gold);
}

.timeless-footer .footer-bottom {
  border-top: 1px solid rgba(197, 160, 101, 0.2);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #6b7280;
}

/* ===== Main Content Container ===== */
.timeless-main {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 640px) {
  .timeless-main {
    padding: 1.5rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .timeless-main {
    padding: 1.5rem 2rem;
  }
}

/* ===== Mobile Menu ===== */
.mobile-menu-btn {
  display: flex;
  color: #d1d5db;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn:hover {
  color: var(--brand-gold);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu {
  display: none;
  background-color: var(--brand-dark);
  border-top: 1px solid rgba(197, 160, 101, 0.3);
  padding: 0.5rem 0.75rem 0.75rem;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 500;
  color: #d1d5db;
  text-decoration: none;
  transition: all 0.2s;
}

.mobile-menu a:hover {
  color: var(--brand-gold);
  background-color: var(--brand-card);
}

/* ===== Utility Classes ===== */
.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

@media (min-width: 768px) {
  .md-block {
    display: block;
  }

  .md-hidden {
    display: none;
  }

  .md-flex {
    display: flex;
  }
}