@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --primary: #D4AF37;       /* Champagne Gold */
  --primary-hover: #b08d27; /* Darker Gold */
  --dark: #2A2A2A;          /* Charcoal Black */
  --light: #FAF9F6;         /* Pearl White / Off-white */
  --surface: #FFFFFF;       /* Pure White */
  --text-main: #333333;
  --text-muted: #888888;
  --border: #EEEEEE;

  /* Shadows */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.06);

  /* Transitions */
  --transition: all 0.3s ease;
  
  /* Radius */
  --radius: 12px;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--light);
  color: var(--text-main);
  overflow-x: hidden;
}

/* Typography & Base */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--dark);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

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

.text-primary {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
  box-shadow: 0 8px 15px rgba(212, 175, 55, 0.3);
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  color: #fff;
}

/* Header Navbar */
.navbar {
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 15px 0;
}

.navbar-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 1px;
  color: var(--dark) !important;
}

.navbar-brand span {
  color: var(--primary);
}

.nav-link {
  color: var(--text-main) !important;
  font-weight: 500;
  padding: 8px 16px !important;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary) !important;
}

.header-icons a {
  color: var(--dark);
  font-size: 22px;
  margin-left: 15px;
  position: relative;
  transition: var(--transition);
}

.header-icons a:hover {
  color: var(--primary);
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: var(--primary);
  color: #fff;
  font-size: 11px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 80vh;
  min-height: 500px;
  background-color: var(--surface);
}

.hero-slider, .hero-slider .swiper-slide {
  height: 100%;
}

.hero-slide-content {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-size: 4rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-img {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img img {
  max-height: 80%;
  object-fit: contain;
  /* subtle shadow for cut-out bottle */
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1));
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: 1;
}

/* Features (Why Us) */
.features-section {
  padding: 80px 0;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}

.feature-box {
  text-align: center;
  padding: 30px 20px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.feature-box:hover {
  background-color: var(--light);
  transform: translateY(-5px);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
}

.feature-box h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Section Headings */
.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.section-title p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Product Cards */
.product-card {
  background-color: var(--surface);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
  transform: translateY(-5px);
}

.product-img {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
}

.product-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: var(--transition);
}

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

.product-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.product-title a {
  color: var(--dark);
}

.product-title a:hover {
  color: var(--primary);
}

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

.btn-add-cart {
  width: 100%;
  padding: 10px;
  background-color: var(--light);
  color: var(--dark);
  border: none;
  border-radius: 8px;
  font-weight: 500;
  transition: var(--transition);
}

.product-card:hover .btn-add-cart {
  background-color: var(--primary);
  color: #fff;
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--dark);
  color: #fff;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0.5px;
  z-index: 2;
}

.product-badge.sale {
  background-color: var(--primary);
}

/* Swiper Navigations */
.custom-swiper-button-next,
.custom-swiper-button-prev {
  width: 45px;
  height: 45px;
  background-color: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.custom-swiper-button-next:hover,
.custom-swiper-button-prev:hover {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.popular-products-slider {
  padding-bottom: 20px;
}

.slider-nav-container {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 20px;
}

/* Footer */
.footer {
  background-color: var(--surface);
  padding: 80px 0 20px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

.footer-widget h4 {
  font-size: 1.2rem;
  margin-bottom: 25px;
  font-weight: 600;
}

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

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

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

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

.social-links a {
  width: 40px;
  height: 40px;
  background-color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--dark);
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary);
  color: white;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding-top: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Detail Page */
.product-gallery .main-img {
  background-color: var(--surface);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  border: 1px solid var(--border);
  margin-bottom: 15px;
}

/* ======================= FULLSCREEN SEARCH OVERLAY ======================= */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(42, 42, 42, 0.95);
  /* Dark charcoal with opacity */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(5px);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.close-search {
  position: absolute;
  top: 30px;
  right: 40px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  transition: var(--transition);
}

.close-search:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

.search-content {
  width: 100%;
  max-width: 800px;
  padding: 0 20px;
  transform: translateY(50px);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.search-overlay.active .search-content {
  transform: translateY(0);
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 36px;
  padding: 15px 60px 15px 0;
  font-weight: 300;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-submit {
  position: absolute;
  right: 0;
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 36px;
  cursor: pointer;
  transition: var(--transition);
}

.search-submit:hover {
  transform: scale(1.1);
  color: #fff;
}

.product-gallery .main-img img {
  max-width: 100%;
  height: 400px;
  object-fit: contain;
}

.thumb-list {
  display: flex;
  gap: 15px;
}

.thumb-item {
  width: 80px;
  height: 80px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  transition: var(--transition);
}

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

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-info h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.product-meta {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.product-meta span {
  color: var(--dark);
  font-weight: 500;
}

.price-box {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 25px;
}

.notes-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.notes-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.notes-list li i {
  color: var(--primary);
  margin-right: 10px;
  font-size: 1.2rem;
}

.quantity-box {
  display: flex;
  align-items: center;
  width: 130px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.quantity-btn {
  width: 40px;
  height: 45px;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--dark);
}

.quantity-input {
  width: 50px;
  height: 45px;
  border: none;
  text-align: center;
  font-weight: 600;
  background: transparent;
}

.quantity-input:focus {
  outline: none;
}

.action-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  margin-bottom: 30px;
}

/* Tabs */
.custom-tabs .nav-link {
  color: var(--text-muted) !important;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 15px 30px !important;
  font-size: 1.1rem;
  background: transparent;
}

.custom-tabs .nav-link.active {
  color: var(--primary) !important;
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* Cart & Checkout */
.cart-table {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.cart-table th {
  background-color: var(--light);
  border-bottom: 1px solid var(--border);
  padding: 15px 20px;
  font-weight: 600;
  color: var(--dark);
}

.cart-table td {
  padding: 20px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: var(--light);
  border-radius: 8px;
  padding: 5px;
}

.cart-summary {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  color: var(--text-main);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

/* Form Styles */
.form-control, .form-select {
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background-color: var(--light);
  color: var(--dark);
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  background-color: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.checkout-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid var(--border);
  margin-bottom: 30px;
}

.checkout-title {
  font-size: 1.3rem;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.payment-option {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.payment-option:hover {
  border-color: var(--primary);
  background-color: rgba(212, 175, 55, 0.05);
}

.payment-option.active {
  border-color: var(--primary);
  background-color: rgba(212, 175, 55, 0.05);
}

.payment-option input[type="radio"] {
  margin-right: 15px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

/* Success Page */
.success-icon {
  width: 100px;
  height: 100px;
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  margin: 0 auto 30px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }
  .hero-section {
    height: auto;
    padding: 80px 0;
  }
  .hero-img {
    margin-top: 40px;
  }
  .action-buttons {
    flex-direction: column;
  }
}
