/* ===================================
   CSS Variables - Color Palette
   =================================== */
:root {
  --primary-color: #FF9933;
  --secondary-color: #8B0000;
  --accent-color: #D4AF37;
  --bg-cream: #FFF8E7;
  --bg-white: #FFFFFF;
  --text-dark: #2C1810;
  --text-light: #6B4423;
  --text-white: #FFFFFF;
  --border-color: #E8D5B5;
  --shadow: rgba(139, 0, 0, 0.1);
  --gradient: linear-gradient(135deg, #FF9933 0%, #D4AF37 100%);
}

/* ===================================
   CSS Reset & Base Styles
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Lato', 'Open Sans', sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ===================================
   Utility Classes
   =================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

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

.btn {
  display: inline-block;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: var(--gradient);
  color: var(--text-white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 153, 51, 0.4);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-white);
}

.btn-secondary:hover {
  background-color: #6B0000;
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--text-white);
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
  background-color: var(--bg-white);
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  color: var(--text-dark);
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary-color);
}

.cart-icon {
  position: relative;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--secondary-color);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--secondary-color);
  color: white;
  font-size: 0.75rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Mobile Menu - CSS Checkbox Hack */
.menu-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  height: 90vh;
  background: linear-gradient(rgba(139, 0, 0, 0.7), rgba(255, 153, 51, 0.6)),
              url('https://images.unsplash.com/photo-1609766856923-7e0a0c06151d?w=1920') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  padding: 20px;
  animation: fadeInUp 1s ease;
}

.hero-title {
  font-size: 4rem;
  color: white;
  margin-bottom: 20px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================================
   Featured Products Section
   =================================== */
.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.section-title p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.product-card {
  background: var(--bg-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow);
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(139, 0, 0, 0.2);
}

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

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

.product-info {
  padding: 20px;
}

.product-name {
  font-size: 1.3rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.product-price {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 15px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.product-actions {
  display: flex;
  gap: 10px;
}

.btn-cart {
  flex: 1;
  padding: 10px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-cart:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 153, 51, 0.4);
}

.btn-wishlist {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border-color);
  background: white;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.btn-wishlist:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

/* ===================================
   Why Choose Us Section
   =================================== */
.features-section {
  background-color: var(--bg-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.feature-card {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background-color: var(--bg-cream);
  transform: translateY(-5px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.feature-card h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
}

/* ===================================
   Testimonials Section
   =================================== */
.testimonials-section {
  background: linear-gradient(135deg, #FFF8E7 0%, #FFE4CC 100%);
}

.testimonials-carousel {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  animation: scroll 20s linear infinite;
}

.testimonial-card {
  min-width: 100%;
  padding: 40px;
  text-align: center;
}

.testimonial-text {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.testimonial-author {
  font-weight: 600;
  color: var(--secondary-color);
}

.testimonial-rating {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* ===================================
   Newsletter Section
   =================================== */
.newsletter-section {
  background-color: var(--secondary-color);
  color: white;
  text-align: center;
}

.newsletter-section h2 {
  color: white;
}

.newsletter-section p {
  color: rgba(255, 255, 255, 0.9);
}

.newsletter-form {
  max-width: 500px;
  margin: 30px auto 0;
  display: flex;
  gap: 10px;
}

.newsletter-input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
}

.newsletter-btn {
  padding: 15px 30px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-btn:hover {
  transform: scale(1.05);
}

/* ===================================
   Footer
   =================================== */
.footer {
  background-color: var(--text-dark);
  color: white;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: transform 0.3s ease;
}

.social-link:hover {
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* ===================================
   About Page Styles
   =================================== */
.about-hero {
  height: 60vh;
  background: linear-gradient(rgba(139, 0, 0, 0.8), rgba(255, 153, 51, 0.6)),
              url('https://images.unsplash.com/photo-1545459720-aac8509eb02c?w=1920') center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.about-hero h1 {
  color: white;
  font-size: 3.5rem;
}

.story-section {
  padding: 80px 0;
}

.story-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.mission-card {
  background: var(--bg-white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow);
  text-align: center;
}

.craftsmanship-section {
  background-color: var(--bg-white);
}

.craftsmanship-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: center;
}

.craftsmanship-text {
  padding: 20px;
}

.craftsmanship-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow);
}

/* ===================================
   Products Page Styles
   =================================== */
.products-page-header {
  background: var(--gradient);
  padding: 60px 0;
  text-align: center;
  color: white;
}

.products-page-header h1 {
  color: white;
  margin-bottom: 10px;
}

.filter-section {
  background-color: var(--bg-white);
  padding: 30px 0;
  box-shadow: 0 2px 10px var(--shadow);
}

.filter-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 25px;
  border: 2px solid var(--border-color);
  background: white;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient);
  color: white;
  border-color: var(--primary-color);
}

.products-container {
  padding: 60px 0;
}

/* ===================================
   Product Detail Page
   =================================== */
.breadcrumb {
  padding: 20px 0;
  background-color: var(--bg-white);
}

.breadcrumb-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.breadcrumb-item a {
  color: var(--text-light);
}

.breadcrumb-item a:hover {
  color: var(--primary-color);
}

.breadcrumb-separator {
  color: var(--text-light);
}

.product-detail-section {
  padding: 60px 0;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.product-gallery {
  position: relative;
}

.main-image {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--shadow);
  margin-bottom: 20px;
}

.thumbnail-gallery {
  display: flex;
  gap: 15px;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: var(--primary-color);
}

.product-details h1 {
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.product-price-large {
  font-size: 2.5rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 20px;
}

.product-description {
  margin-bottom: 30px;
  line-height: 1.8;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border-color);
  background: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-input {
  width: 60px;
  height: 40px;
  text-align: center;
  border: 2px solid var(--border-color);
  border-radius: 5px;
  font-size: 1.1rem;
}

.product-actions-large {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
}

.product-tabs {
  margin-top: 50px;
}

.tab-headers {
  display: flex;
  gap: 5px;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 30px;
}

.tab-header {
  padding: 15px 30px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-light);
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.tab-header:hover,
.tab-header.active {
  color: var(--secondary-color);
  border-bottom-color: var(--secondary-color);
}

.tab-content {
  display: none;
  padding: 20px 0;
}

.tab-content.active {
  display: block;
}

.related-products {
  margin-top: 80px;
}

/* ===================================
   Contact Page Styles
   =================================== */
.contact-hero {
  background: var(--gradient);
  padding: 60px 0;
  text-align: center;
  color: white;
}

.contact-hero h1 {
  color: white;
}

.contact-section {
  padding: 60px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info-card {
  background: var(--bg-white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow);
}

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-details h4 {
  margin-bottom: 5px;
  color: var(--secondary-color);
}

.contact-form {
  background: var(--bg-white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow);
}

.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-dark);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border-color);
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.map-section {
  padding: 40px 0;
}

.map-container {
  width: 100%;
  height: 400px;
  background-color: #f0f0f0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.faq-section {
  padding: 60px 0;
  background-color: var(--bg-white);
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--secondary-color);
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: var(--bg-cream);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 20px 20px;
}

.faq-toggle {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

/* ===================================
   Cart Page Styles
   =================================== */
.cart-hero {
  background: var(--gradient);
  padding: 60px 0;
  text-align: center;
  color: white;
}

.cart-hero h1 {
  color: white;
}

.cart-section {
  padding: 60px 0;
}

.cart-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.cart-items {
  background: var(--bg-white);
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow);
  overflow: hidden;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto;
  gap: 20px;
  padding: 20px;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 5px;
}

.cart-item-info h4 {
  margin-bottom: 5px;
  color: var(--secondary-color);
}

.cart-item-price {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.2rem;
}

.cart-item-remove {
  color: var(--secondary-color);
  cursor: pointer;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.cart-item-remove:hover {
  color: #ff0000;
}

.cart-summary {
  background: var(--bg-white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px var(--shadow);
  height: fit-content;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.summary-row.total {
  border-bottom: none;
  border-top: 2px solid var(--secondary-color);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.checkout-btn {
  width: 100%;
  padding: 15px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.3s ease;
}

.checkout-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 20px rgba(255, 153, 51, 0.4);
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

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

.trust-badge-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.trust-badge-text {
  font-size: 0.9rem;
  color: var(--text-light);
}

.continue-shopping {
  text-align: center;
  margin-top: 30px;
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease;
}

/* ===================================
   Accessibility
   =================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}
