/* Theme Variables */
:root {
  /* Day Mode Colors */
  --bg-primary: #fefcf8;
  --text-primary: #2a2a2a;
  --navbar-bg: rgba(255, 255, 255, 0.95);
  --navbar-text: #2a2a2a;
  --card-bg: #fff;
  --card-shadow: rgba(200, 160, 120, 0.05);
  --card-hover-shadow: rgba(255, 128, 0, 0.85);
  --accent-color: rgba(205, 127, 50, 0.85);
  --footer-bg: #111;
  --footer-text: #eee;
  --modal-bg: #fff;
  --modal-text: #2a2a2a;
  --border-color: #e0e0e0;
}

/* Night Mode Colors */
[data-theme="night"] {
  --bg-primary: #1a1a1a;
  --text-primary: #f0f0f0;
  --navbar-bg: rgba(26, 26, 26, 0.95);
  --navbar-text: #f0f0f0;
  --card-bg: #2d2d2d;
  --card-shadow: rgba(0, 0, 0, 0.3);
  --card-hover-shadow: rgba(205, 127, 50, 0.6);
  --accent-color: rgba(205, 127, 50, 0.85);
  --footer-bg: #0a0a0a;
  --footer-text: #ccc;
  --modal-bg: #2d2d2d;
  --modal-text: #f0f0f0;
  --border-color: #404040;
}

* {
  font-family: 'Poppins', 'Playfair Display', serif !important;
  font-weight: 400;
}

/* make the brand text follow the current theme */
.navbar-brand {
  color: var(--navbar-text) !important;
  transition: color 0.3s ease;
}


h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.section-title,
.footer-brand,
.contact-title,
.checkout-title {
  font-family: 'Playfair Display', serif !important;
  font-weight: 700;
}

.btn,
.form-label,
.form-control,
.nav-link,
p,
li,
a {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 400;
}

body {
  background-color: var(--bg-primary);
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Sticky & transparent navbar until scrolled */
.navbar {
  transition: all 0.3s ease;
  padding: 1rem 0;
  background: transparent;
}

/* make all nav-links (anchors & buttons) use the theme text color */
.navbar .nav-link {
  color: var(--navbar-text) !important;
  text-shadow: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.navbar.scrolled {
  background: var(--navbar-bg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .nav-link {
  color: var(--navbar-text) !important;
}

/* Hero styles */
.hero {
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  height: 120%;
  object-fit: cover;
  z-index: -1;
  transition: transform 0.2s ease-out;
}

.hero-content {
  z-index: 2;
}

/* Smooth scroll and effects */
html {
  scroll-behavior: smooth;
}

.product-card {
  text-align: center;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: var(--card-bg);
  box-shadow: 0 0 15px var(--card-shadow);
  transition: box-shadow 0.3s ease;
  position: relative;
}

.product-card:hover {
  box-shadow: 0 0 25px var(--card-hover-shadow);
}

.product-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
}

.product-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
}

.product-card:hover img {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(200, 160, 120, 0.3);
}

/* Add to cart button */
.product-card button {
  margin-top: 0.5rem;
  transition: background 0.3s, color 0.3s;
}

.product-card button:hover {
  background-color: rgba(205, 127, 50, 0.85);
  color: #fff;
  border-color: rgba(205, 127, 50, 0.85);
}

/* Buttons */
.btn-shop {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.85), rgba(205, 127, 50, 0.85));
  color: #fff;
  border-radius: 50px;
  padding: 0.6rem 1.5rem;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-shop:hover {
  background: linear-gradient(135deg, rgba(205, 127, 50, 0.85), rgba(205, 127, 50, 0.85));
  transform: scale(1.05);
}

/* Section Titles */
.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2rem;
  color: rgba(205, 127, 50, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  animation: titleFade 1.2s ease both;
}

@keyframes titleFade {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Elegant Footer Styling */
.footer {
  margin-top: 2rem;
  padding: 1rem 0;
  background-color: var(--footer-bg);
  color: var(--footer-text);
}

.footer-brand {
  color: var(--accent-color);
  font-weight: bold;
  font-style: italic;
}

.section-heading {
  color: var(--accent-color);
}

.footer-link {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
}

.footer-link:hover {
  color: var(--accent-color);
}

.social-icon {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-icon:hover {
  color: rgba(205, 127, 50, 1);
}

.footer-slogan {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  text-shadow: 2px 3px 6px rgba(0, 0, 0, 0.6);
  user-select: none;
}


.btn-subscribe {
  background-color: rgba(205, 127, 50, 0.85);
  color: white;
  border: none;
}

.btn-subscribe:hover {
  background-color: rgba(205, 127, 50, 1);
}

/* Elegant scroll-in animation */
.elegant-fade {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
  will-change: opacity, transform;
}

.elegant-fade.in-view {
  opacity: 1;
  transform: translateY(0);
}

.logo-circle {
  border-radius: 50%;
  border: 4px solid #e0c68e;
  padding: 8px;
  background-color: #fff;
  box-shadow: 0 0 15px rgba(205, 127, 50, 0.85);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.logo-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(205, 127, 50, 0.85);
}

/* In-view animation shared block */
.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Accent background elements */
.accent-bg {
  background: linear-gradient(to right, #f0b6d5, #e0c68e);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(205, 127, 50, 0.85);
  color: #fff;
}

/* Add glowing hover to important nav links */
.navbar .nav-link:hover {
  color: rgba(205, 127, 50, 0.85);
  text-shadow: 0 0 10px rgba(205, 127, 50, 0.85);
}

.icon-link i {
  transition: transform 0.3s ease, color 0.3s ease;
}

.icon-link:hover i {
  transform: scale(1.1);
  color: #b06c15;
  /* A deeper bronze on hover */
}

/* Navbar mobile styles */
@media (max-width: 991.98px) {
  .navbar {
    background: var(--navbar-bg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  .navbar .nav-link {
    color: var(--navbar-text) !important;
    text-shadow: none;
  }

  .navbar-toggler {
    border-color: var(--border-color);
  }

  .navbar-toggler-icon {
    filter: invert(0);
  }
}

/* Night mode navbar toggler icon */
[data-theme="night"] .navbar-toggler-icon {
  filter: invert(1);
}

.sale-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(205, 127, 50, 0.95);
  color: #fff;
  padding: 6px 14px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 1.2rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  user-select: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: skew(-12deg);
  cursor: default;
  transition: box-shadow 0.3s ease;
  z-index: 20;
}

.sale-badge .old-price {
  position: relative;
  font-size: 0.8rem;
  opacity: 0.75;
  color: #fff;
  text-transform: uppercase;
  padding-right: 12px;
  transform: skew(12deg);
}

.sale-badge .old-price::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  border-top: 2.5px solid #fff;
  transform: rotate(-15deg);
  transform-origin: center;
  opacity: 0.85;
}

.sale-badge .new-price {
  color: white;
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  transform: skew(12deg);
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  margin-left: 1rem;
}

.theme-toggle:hover {
  background-color: var(--accent-color);
  color: white;
  transform: scale(1.1);
}

/* Modal Theming */
.modal-content {
  background-color: var(--modal-bg);
  color: var(--modal-text);
  border: 1px solid var(--border-color);
}

.modal-header {
  border-bottom: 1px solid var(--border-color);
}

.modal-footer {
  border-top: 1px solid var(--border-color);
}

/* Form Controls Theming */
.form-control {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.form-control:focus {
  background-color: var(--card-bg);
  border-color: var(--accent-color);
  color: var(--text-primary);
  box-shadow: 0 0 0 0.2rem rgba(205, 127, 50, 0.25);
}

/* Button Theming */
.btn-outline-dark {
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-outline-dark:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: white;
}

/*── Mobile “swipe carousel” for products ──*/
@media (max-width: 1024px) {

  /* make the row a horizontal scroller */
  .product-carousel {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* smooth native scrolling */
    gap: 1rem;
    /* keep gutters */
    padding-bottom: 0.5rem;
    /* give some space below cards */
  }

  /* hide the default Bootstrap gutters on the flex row */
  .product-carousel.g-4 {
    margin-left: 0;
    margin-right: 0;
  }

  .product-carousel.g-4>[class^="col-"] {
    padding-left: 0;
    padding-right: 0;
  }

  /* force exactly two cards per “page” */
  .product-carousel>.col-md-4 {
    flex: 0 0 50%;
    /* take up half the viewport width */
    max-width: 50%;
    scroll-snap-align: start;
    /* optional—pins cards to edges */
  }

  /* enable scroll snapping if you like */
  .product-carousel {
    scroll-snap-type: x mandatory;
  }

  .navbar-nav .nav-item {
    display: flex;
    justify-content: center;
  }

  /* ensure the button itself doesn’t stretch full width */
  .navbar-nav .theme-toggle {
    width: auto;
    margin: 0;
  }
}

/* slightly larger icons and hover state */
#desktopSearch i,
#mobileSearch i {
  font-size: 1.2rem;
}

#desktopSearch:hover,
#mobileSearch:hover {
  color: var(--accent-color);
}

.footer-logo {
  display: inline-block;
  /* shrink-wrap to the image */
  max-width: 180px;
  /* bump this up if you want it bigger */
  width: auto;
  /* preserves its natural aspect ratio */
  height: auto;
  margin: 0 auto 1rem;
  /* center + spacing below */
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.05);
}

@media (max-width: 767px) {
  .footer .col-md-3 {
    text-align: center;
  }
}

@media (min-width: 577px) and (max-width: 1024px) {
  .footer-logo {
    max-width: 100px;
    /* shrink it down for tablets */
    margin-bottom: 0.75rem;
  }
}
