/* Al Shafa Jewellery - Fixed CSS */

/* Fonts import */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* Variables */
:root {
  --primary-gold: #d4af37;
  --gold-hover: #ba9a2d;
  --dark-gray: #222222;
  --medium-gray: #555555;
  --light-gray: #f7f7f7;
  --background: #faf4ef;
  --white: #ffffff;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  --text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
  --border-radius: 8px;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Playfair Display', serif;
  margin: 0;
  background: var(--background);
  color: #333;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

/* Header */
header {
  /* Stylish gold gradient with a soft overlay and subtle pattern */
  background: linear-gradient(120deg, #fffbe6 0%, #f7e7ce 60%, #d4af37 100%);
  color: var(--dark-gray);
  text-align: center;
  padding: 18px 10px;
  position: relative;
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.10);
  border-bottom: 3px solid #d4af37;
  /* Optional: add a subtle pattern overlay */
  /* background-image: url('images/gold_pattern.png'), linear-gradient(120deg, #fffbe6 0%, #f7e7ce 60%, #d4af37 100%);
     background-size: 200px, cover;
     background-repeat: repeat, no-repeat; */
}

.logo {
  width: 110px;         /* Reduced from 150px */
  margin-top: 5px;      /* Slightly less margin */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
}

.header-content {
  margin: 15px 0;
}

.header-content h1 {
  font-size: 2rem;      /* Reduced from 2.5rem */
  text-shadow: var(--text-shadow);
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.header-content p {
  font-style: italic;
  font-size: 1rem;      /* Reduced from 1.2rem */
  opacity: 0.9;
}

/* Navigation */
.topnav {
  overflow: visible;
  background-color: var(--dark-gray);
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.topnav a,
.dropdown .dropbtn {
  display: block;
  color: var(--white);
  text-align: center;
  padding: 16px 18px;
  text-decoration: none;
  font-size: 15px;
  font-family: 'Cinzel', serif;
  font-weight: 500;
  transition: var(--transition);
  letter-spacing: 1px;
  position: relative;
}

.topnav > a,
.topnav > .dropdown {
  float: none;
  display: inline-block;
  vertical-align: middle;
}

.topnav a:not(.icon):after,
.dropdown .dropbtn:after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-gold);
  transition: var(--transition);
  transform: translateX(-50%);
}

.topnav a:hover:not(.active):not(.icon):after,
.dropdown:hover .dropbtn:after {
  width: 60%;
}

.active {
  background: var(--primary-gold);
}

.topnav a:hover:not(.active),
.dropdown:hover .dropbtn:not(.active) {
  background-color: rgba(255, 255, 255, 0.1);
}

.topnav a.icon {
  display: none;
}

.dropdown {
  position: relative;
  display: inline-block;
  overflow: visible;
}

.dropdown .dropbtn {
  border: none;
  outline: none;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--medium-gray);
  min-width: 200px;
  box-shadow: var(--box-shadow);
  z-index: 1;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  overflow: hidden;
  animation: fadeIn 0.3s ease;
  top: 100%;
  left: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-content a {
  float: none;
  color: var(--white);
  padding: 14px 16px;

  
  text-decoration: none;
  display: block;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.dropdown-content a:hover {
  background-color: var(--primary-gold);
  color: var(--white);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Slideshow */
.slideshow-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  height: 500px;
  box-shadow: var(--box-shadow);
  clear: both;
  width: 100%;
  background: #fff; /* Set slideshow background to white */
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mySlides:hover .slide-img {
  transform: scale(1.03);
}

.mySlides {
  height: 100%;
  display: none;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: #fff; /* Each slide background to white */
}

.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: 0.4} 
  to {opacity: 1}
}

/* Sections */
section {
  padding: 60px 5%;
  max-width: 1300px;
  margin: 0 auto;
}

.gems h2,
.products h2,
.contact h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--dark-gray);
  position: relative;
  padding-bottom: 15px;
}

.gems h2:after,
.products h2:after,
.contact h2:after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background: var(--primary-gold);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Product Gallery */
.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.product-card {
  background: var(--white);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
  overflow: hidden;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.product-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

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

.product-card h3 {
  margin: 15px 0 8px;
  font-size: 1.4rem;
  color: var(--dark-gray);
}

.product-card p {
  color: #666;
  font-size: 1rem;
  margin-bottom: 15px;
}

.product-card ul {
  list-style: none;
  padding-left: 0;
}

.product-card ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 7px;
}

.product-card ul li::before {
  content: "\f005"; /* Unicode for Font Awesome star */
  font-family: "FontAwesome";
  position: absolute;
  left: 0;
  top: 2px;
  color: #d4af37; /* Gold color */
  font-size: 1em;
}

.btn {
  display: inline-block;
  background: var(--primary-gold);
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}

/* About Page */
.about {
  padding: 60px 10%;
  text-align: center;
  max-width: 900px;
  margin: a auto;
}

.about p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 25px;
}

/* Contact Page */
.contact {
  padding: 60px 5%;
}

.contact form {
  max-width: 600px;
  margin: 0 auto 40px;
  display: grid;
  gap: 20px;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.contact button {
  background: var(--primary-gold);
  color: white;
  padding: 14px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Cinzel', serif;
  letter-spacing: 1px;
}

.contact button:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.1);
}

.social-icons {
  text-align: center;
  margin: 40px 0;
}

.social-icons p {
  font-weight: 500;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.social-icons a {
  display: inline-block;
  margin: 0 10px;
  padding: 12px 25px;
  border-radius: 30px;
  background: var(--dark-gray);
  color: white;
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.9rem;
}

.social-icons a:hover {
  background: var(--primary-gold);
  transform: translateY(-3px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-top: 20px;
}

/* Footer */
footer {
  background: var(--dark-gray);
  color: white;
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
}
/* Subfooter Styles */
.subfooter {
  background: #f7e7ce;
  border-top: 2px solid #d4af37;
  padding: 28px 0 18px 0;
  font-size: 1em;
}

.subfooter-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}

.subfooter h4 {
  color: #bfa14a;
  margin-bottom: 10px;
  font-size: 1.1em;
}

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

.subfooter ul li {
  margin-bottom: 7px;
}

.subfooter a {
  color: #6b4c1b;
  text-decoration: none;
  transition: color 0.2s;
}

.subfooter a:hover {
  color: #bfa14a;
}

.subfooter a .fa-whatsapp { color: #25d366; }
.subfooter a .fa-instagram { color: #c13584; }
.subfooter a .fa-envelope { color: #6b4c1b; }
/* Subfooter */
.subfooter {
  background: #f7e7ce;
  border-top: 2px solid #d4af37;
  padding: 28px 0 18px 0;
  font-size: 1em;
}
.subfooter h4 {
  color: #bfa14a;
  margin-bottom: 10px;
}
.subfooter ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.subfooter ul li {
  margin-bottom: 6px;
}
.subfooter a {
  color: #6b4c1b;
  text-decoration: none;
  transition: color 0.2s;
}
.subfooter a:hover {
  color: #bfa14a;
}
.subfooter .fa-whatsapp { color: #25d366; }
.subfooter .fa-instagram { color: #c13584; }
.subfooter .fa-envelope { color: #bfa14a; }

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 28px;
  right: 28px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 36px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  text-decoration: none;
}
.whatsapp-float:hover {
  background: #128c7e;
  color: #fff;
}

/* Featured Products Section */
.featured-products {
  background: #fffbe6;
  padding: 40px 0;
}
.featured-products h2 {
  text-align: center;
  color: #bfa14a;
  font-family: 'Cinzel', serif;
  font-size: 2em;
  margin-bottom: 30px;
}
.featured-products .product-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px #e0c9a6;
  padding: 20px 16px;
  max-width: 240px;
  text-align: center;
  margin: 0 auto;
}
.featured-products .product-card img {
  width: 120px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #e0c9a6;
}
.featured-products .product-card h3 {
  color: #8d6748;
  margin: 12px 0 6px 0;
}
.featured-products .product-card p {
  font-size: 0.98em;
  color: #6b4c1b;
}
.featured-products .btn {
  background: #bfa14a;
  color: #fff;
  padding: 8px 18px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 8px;
  display: inline-block;
  transition: background 0.2s;
}
.featured-products .btn:hover {
  background: #8d6748;
}
@media (max-width: 900px) {
  .featured-products .product-card {
    max-width: 100%;
  }
}

/* Gradient background for HOME button */
.topnav a.active {
  background: linear-gradient(120deg, #fffbe6 0%, #f7e7ce 60%, #d4af37 100%);
  color: var(--dark-gray) !important;
  font-weight: 600;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.10);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .topnav {
    display: block;
  }

  .topnav a:not(:first-child),
  .dropdown .dropbtn {
    display: none;
  }
  
  .topnav a.icon {
    float: right;
    display: block;
    position: absolute;
    right: 0;
    top: 0;
  }
  
  .slideshow-container {
    height: 300px;
  }
  
  .header-content h1 {
    font-size: 2rem;
  }
  
  section {
    padding: 40px 20px;
  }
}

@media screen and (max-width: 768px) {
  .topnav.responsive {
    position: relative;
    display: block;
  }
  
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
  
  .topnav.responsive .dropdown {
    float: none;
  }
  
  .topnav.responsive .dropdown-content {
    position: relative;
    width: 100%;
    box-shadow: none;
  }
  
  .topnav.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
  }
}

@media screen and (max-width: 480px) {
  .slideshow-container {
    height: 200px;
  }
  
  .header-content h1 {
    font-size: 1.8rem;
  }
  
  .logo {
    width: 120px;
  }
  
  .product-gallery {
    grid-template-columns: 1fr;
  }
}

/* Add to enhanced_styles.css for dark mode styles */
body.dark-mode {
  background: #181818 !important;
  color: #f5f5f5 !important;
}

body.dark-mode header,
body.dark-mode .topnav,
body.dark-mode .dropdown-content,
body.dark-mode .subfooter,
body.dark-mode footer {
  background: #232323 !important;
  color: #f5f5f5 !important;
}

body.dark-mode .product-card,
body.dark-mode .contact,
body.dark-mode .about,
body.dark-mode .custom-design,
body.dark-mode .featured-products,
body.dark-mode .gemstone-gallery {
  background: #232323 !important;
  color: #f5f5f5 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25) !important;
}

body.dark-mode a,
body.dark-mode .topnav a,
body.dark-mode .dropdown-content a {
  color: #ffe082 !important;
}

body.dark-mode .btn,
body.dark-mode .topnav a.active {
  background: #bfa14a !important;
  color: #232323 !important;
}