/* ====== COMMON STYLES ====== */
/* ---- GOOGLE FONTS ---- */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset & Base */
* /* ---- RESET ---- */
* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: "Lora", serif;
  background:#ede2c7;
  color:#333;
  overflow-x:hidden;
}
a { color:inherit; text-decoration:none; }
img { display:block; max-width:100%; }

/* ---- GLOBAL SPACING ---- */
section { padding:4rem 1.5rem; border-top:1px solid rgba(0,0,0,0.06); }
section:first-of-type { border-top:none; }
section > * + * { margin-top:1.2rem; }
p + p { margin-top:0.75rem; }

/* ---- TYPOGRAPHY ---- */
h1,h2,h3,h4 {
  font-family:"Poppins", sans-serif;
  font-weight:600;
  color:#5a3e36cc;
  line-height:1.2;
  margin-bottom:1rem;
}
h1 { font-size:3rem; font-weight:700; }
h2 { font-size:2.25rem; }
h3 { font-size:1.65rem; }
h4 { font-size:1.25rem; }

p { font-family:"Lora", serif; font-size:1.05rem; line-height:1.65; color:#2c2c2c; }
.btn, .btn-send, .btn-outline {
  cursor: pointer;
  border-radius: 6px;
  font-weight: 600;
  transition: 0.3s ease;
}
.btn {
  background: #d4af37;
  color: #fff;
  padding: 0.5rem 1rem;
}

.btn:hover {
  background: #b8912f;
}

.btn-outline {
  background: #5a3e36;
  border: 2px solid #efece4;
  color:#fff;
}

.btn-outline:hover {
  background:#d4af37;
  color: #fff;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

header .logo img {
  height: 50px;
  width: auto;
}

header nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

header nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease, background 0.3s ease;
  padding: 8px 15px;
  border-radius: 5px;
}

header nav a:hover {
  color: #d4af37;
}

header nav a.active {
  background-color: #b8912f;
  color: white;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    top: 15px;
    right: 20px;
    color: #333;
  }

  header nav ul {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 60px;
    right: 20px;
    width: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
  }

  header nav ul.active {
    display: flex;
  }

  header nav ul li {
    margin: 10px 0;
  }
}

/* Hero */
.hero {
  background: url("images/BgImage.png") no-repeat center center / cover;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 90vh;
  padding: 20px 15px;
  animation: fadeIn 1.2s ease-in-out;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
    color:#fff !important;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  color:#5a3e36;
}

@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    padding: 40px 15px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

/* Footer & WhatsApp */
footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 15px 10px;
  font-size: 0.85rem;
}


.whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 99;
}

.whatsapp img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.whatsapp img:hover {
  transform: scale(1.1);
}

/* Scroll Top */
#scrollTop {
  display: none;
  position: fixed;
  bottom: 100px;
  right: 25px;
  background: #d4af37;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 98;
}

#scrollTop:hover {
  background: #b8912f;
}

/* ====== INDEX PAGE STYLES ====== */

   /* NAVIGATION DROPDOWN */

nav ul li.dropdown {
  position: relative;
}

nav ul li.dropdown > a {
 
  align-items: center;
  gap: 5px;
}

nav ul li.dropdown i.fa-caret-down {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

/* Submenu box */
nav ul li .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0;
  list-style: none;
  display: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  min-width: 160px;
  z-index: 20;
}

/* Submenu item */
nav ul li .submenu li a {
  display: block;
  padding: 10px 14px;
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
}

nav ul li .submenu li a:hover {
  background: #f2f2f2;
}

/* Hover effect for desktop */
nav ul li.dropdown:hover .submenu {
  display: block;
}

/* Arrow rotate on hover */
nav ul li.dropdown:hover > a i.fa-caret-down {
  transform: rotate(180deg);
}

/* ========== Mobile Support ========== */
@media (max-width: 768px) {
  
  nav ul li.dropdown {
    position: relative;
  }

  
  nav ul li.dropdown .submenu {
    position: relative;
    width: 100%;
    background: #fff;
    display: none;
    padding-left: 20px;
    margin-top: 8px;
    border-left: 2px solid #d4af37;
  }

  /* When JS adds .active → show submenu */
  nav ul li.dropdown.active .submenu {
    display: block;
  }

 
  nav ul li.dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
}


/* Products Slider */
.news {
  padding: 0px 20px;
  text-align: center;
}
 .about {
  padding: 100px 20px;
  text-align: center;
}
.about li {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}
.news h2, .about h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.news-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.news-card {
  background: #c0ad7ce3;
  padding: 20px;
  border-radius: 10px;
  width: 300px;
}

.news-card p {
  color: #fff;
}

.about-condent p{
  font-size: 1rem;
  margin-bottom: 20px;
}


.product-slider {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  gap: 1.5rem;
  padding: 0 0.5rem;
}
.products-index {
  padding: 80px 20px;
  text-align: center;
}
.products-index h1 {
  padding: 20px;
  text-align: center;
}
.products-index h2 {
  font-size: 2rem;
  color: #222;
  margin-bottom: 40px;
  text-align: center;
}
.product-card {
  position: relative;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 15px;
  text-align: center;
  transition: transform 0.2s ease;
}

.product-card img {
  width: 100%;
  
  object-fit: cover;
  border-radius: 8px;
  height: auto;
}

.product-card img:hover {
  transform: scale(1.05);
}
.product-card p {
  
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.product-card .btn {
  background-color: #d4af37;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.product-card h3 {
  font-size: 1.1rem;
  margin: 0.8rem 0;
  color: #222;
  min-height: 2.5em;
}
.product-card:hover {
  transform: translateY(-3px);
}

.product-card .price {
  font-size: 1.2rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 0.5rem;
}

.product-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #d9534f;
  color: #fff;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  text-transform: uppercase;
  z-index: 5;
  pointer-events: none;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(90,62,54,0.8);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  width: 70px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  z-index: 10;
}

.prev:hover, .next:hover {
  background: rgba(90,62,54,1);
  transform: translateY(-50%) scale(1.1);
}

.prev { left: 10px; }
.next { right: 10px; }


/* === CONTACT === */
.contact {
  background: #f9f9f9;
  padding: 80px 20px;
  text-align: center;
}

.contact h2 {
  font-size: 2.5rem;
  color: #b8912f;
  font-family: "Playfair Display", serif;
  margin-bottom: 40px;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

/* === FORM === */
.contact-form {
  flex: 1 1 550px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form .form-row {
  display: flex;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border: none;
  background: white;
  font-size: 1rem;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.contact-form textarea {
  resize: none;
  height: 150px;
}

.btn-send {
  background: #b8912f;
  color: white;
  border: none;
  padding: 14px 35px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  align-self: flex-start;
  transition: all 0.3s ease;
}

.btn-send:hover {
  transform: translateY(-2px);
}

/* === CONTACT INFO === */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.icon {
  background: #b8912f;
  color: white;
  font-size: 1.5rem;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}
footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 20px 10px;
  font-size: 0.9rem;
}

.whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 99;
}

.whatsapp img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.whatsapp img:hover {
  transform: scale(1.1);
}

#scrollTop {
  display: none;
  position: fixed;
  bottom: 100px;
  right: 25px;
  background: #d4af37;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.3s ease;
  z-index: 98;
}

#scrollTop:hover {
  background: #b8912f;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
  .product-card {
    flex: 0 0 calc(50% - 1rem);
  }
  .product-card img {
    height: 220px;
  }
}

@media (max-width: 768px) {
  .slider-track {
    gap: 1rem;
  }
  .next {
        display: flex !important;
opacity: 1 !important;
visibility: visible !important;
}
.slider-container {
overflow: visible !important;
padding-right: 40px;
}
.prev, .next {
    font-size: 0.7rem !important;
  }
.slider-track .product-card {
margin-right: 20px !important;
}
    
  .prev, .next {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
  }
  .contact-container {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }
  .contact-form .form-row {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-card img {
    height: 180px;
  }
  .prev, .next {
    display: none;
    
  }
  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  .hero p {
    font-size: 1rem;
    line-height: 1.2;
  }
}
/* === Hide the mobile menu toggle by default === */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
}

/* Mobile Devices */

@media (max-width: 768px) {

    .product-card {
        flex: 0 0 calc(50% - 15px);
        margin-right: 15px;
    }

    /* === Show the menu toggle only on mobile screens === */
    .menu-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
        color: #333;
        background: transparent;
    }

    /* Hide the normal nav menu initially on mobile */
    header nav ul {
        display: none;
        flex-direction: column;
        background: #fff;
        position: absolute;
        top: 60px;
        right: 20px;
        width: 200px;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        padding: 15px 0;
    }

    /* When active, show the menu */
    header nav ul.active {
        display: flex;
    }

    /* Space out mobile links */
    header nav ul li {
        margin: 10px 0;
    }

    header {
        flex-direction: column;
        padding: 10px 20px;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .hero {
        min-height: 80vh;
        padding: 40px 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .product-grid {
        flex-direction: column;
        align-items: center;
    }

    .product-card {
        width: 90%;
    }

    .product-detail {
        flex-direction: column;
    }
}

/* ====== PRODUCTS PAGE STYLES ====== */
.products-section {
   width: 100%;
  padding: 2rem 1rem;
  background: #ede2c7;
}

/*.sticky-header {
  position: sticky;
  top: 0;
  background: #fff;
  width: 100%;
  text-align: center;
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
  z-index: 10;
}
*/
.sticky-header h2 {
      text-align: center;
  margin-bottom: 1.5rem;
  font-size: 2.8rem;
  color: #222;
}
.medium-depth-card {

max-width: 850px;
margin: 0 auto 10px auto;
}
.filter-title {
text-align: center;
margin-bottom: 20px;
color: #5a3e36;
}
.search-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto 10px auto !important;
    width: 90%;
    max-width: 800px;
    gap: 8px !important;
}

.search-bar input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
}

.search-btn {
    background: #d4af37;
    border: none;
    border-radius: 23px;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 10px 0 !important;
    height: 42px !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
}

.search-btn:hover {
    background: #b8912f;
}

#sortSelect {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
}
.search-sort-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.search-sort-container input {
  width: 547px;
  max-width: 80%;
  padding: 0.6rem 1rem;
  border-radius: 30px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.search-sort-container select,
.search-sort-container button {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.search-sort-container button {
  background: #333;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
}

.search-sort-container button:hover {
  background: #d4af37;
  transform: scale(1.1);
}

.products-layout {
   display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: nowrap;
  align-items: flex-start; 
}

.filter-sidebar {
  width: 240px;
 
  padding: 1rem;
  position: relative;
}

.filter-row {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    margin-bottom: 12px !important;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 5px;
}

.filter-group select {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.product-grid-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #ede2c7;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 10px !important;
  padding-top: 0 !important;
  
  overflow: visible;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.low-stock { color: #d9534f; font-weight: bold; }
.out-stock { color: #888; font-weight: bold; }

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.filter-heading {
    margin: 10px 0 8px 0 !important;
    padding: 0 !important;
    font-size: 1.1rem;
    font-weight: 700;
}
.filter-panel h1{
  margin: 10px 0 8px 0 !important;
    padding: 0 !important;
}
.filter-panel h3 {
    margin: 31px 0 3px 0 !important;
        font-size: 1rem !important;
  }

.pagination button {
  padding: 8px 14px;
  border: none;
  background: #ddd;
  border-radius: 5px;
  cursor: pointer;
}

.pagination button.active {
  background: #333;
  color: #fff;
}

 .contact-section {
  padding: 1rem 1rem;
  background: #fafafa;
  border-top: 1px solid #ddd;
}

.contact-info-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap; /* for mobile */
  gap: 1.5rem;
}

.contact-heading {
  text-align: center;
  font-size: 1.8rem;
  
  font-weight: 600;
  margin-bottom: 1rem;
  color: #b8912f;
}
.info-item-p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: #444;
}

.info-item-p i {
  color: #b8912f;
  font-size: 1.2rem;
}

.info-item-p a {
  color: #444;
  text-decoration: none;
}

.info-item-p a:hover {
  color: #7a4d1d;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .products-layout { flex-direction: column; }
  .filter-sidebar { width: 100%; margin-bottom: 20px; }
  .search-sort-container input { width: 100%; }
 .contact-section,
    .contact-info-row,
    .info-item-p {
        text-align: left !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
    }

    .contact-info-row {
        flex-direction: column !important;
        gap: 1rem !important;
    }
#sortSelect{
      width: 6rem !important;
}
    .info-item-p i {
        margin-top: 4px;
    }

    .search-bar {
        width: 92%;
        margin: 0 auto 12px auto !important;
      }
 .search-btn {
        width: 40px;
    }
    .search-bar input,
    .search-bar select {
        width: 100%;
    }

    .filter-row {
         width: 92%;
        margin: 8px auto 5px auto !important;
        gap: 10px !important;
    }
    .filter-heading {
        width: 92%;
        margin: 12px auto 8px auto !important;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select {
        width: 100%;
    }
.filter-panel h3{
  font-size: 0.9rem !important;
}
.filter-panel h1{
      font-size: 2rem;
}
    .filter-group label {
        font-size: 0.9rem !important;
        margin-bottom: 4px !important;
    }
}
@media (max-width: 600px) {
.medium-depth-card {
padding: 20px;
}
.filter-title {
font-size: 36px;
}
}
@media (min-width: 769px) {
    .search-sort-container {
        justify-content: flex-start; /* align to left */
        gap: 1rem;
        padding-left: 42rem;
    }
}
/* Floating WhatsApp Button Container */
.whatsapp-help {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    display: inline-block;
    z-index: 9999;
}

/* The WhatsApp icon itself */
.whatsapp-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* The "Need Help?" tag – forced to the LEFT of the circle */
.whatsapp-bubble {
    position: absolute;
    right: 65px;              /* distance to the left of the icon */
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    color: #444;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    font-weight: 500;
    white-space: nowrap;
}

/* Mobile tweaks */
@media (max-width: 600px) {
    .whatsapp-help {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }

    .whatsapp-bubble {
        right: 58px;          /* slightly closer on smaller icon */
        font-size: 11px;
        padding: 4px 9px;
    }
}

/* ====== PRODUCT DETAIL PAGE STYLES ====== */

.main-image-wrapper{
  margin-bottom: 0.8rem;
}
.product-detail-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 3rem 1rem;
  flex-wrap: wrap;
}

.product-detail-card {
  background: #ede2c7;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  padding: 1.5rem;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.product-image-large {
  flex: 1;
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  max-height: 450px;
  height: auto;
}

.product-info {
  flex: 1;
}

.product-info h2 {
  margin: 0 0 0.5rem;
  font-size: 1.8rem;
  color:#5a3e36b8;
}

.price {
  font-size: 1.4rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 1rem;
}

.description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Gallery */
.gallery {
  display: flex;
  flex-direction: column;
  max-width: 600px;
}

.main-image {
  width: 100%;
  height: auto;
  max-width: 450px;
  border-radius: 8px;
  object-fit: cover;
}

.thumb-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  max-width: 450px;
}

.thumbnails-container {
  overflow: hidden;
  flex: 1;
}

.thumbnails {
  display: flex;
  transition: transform 0.3s ease;
  gap: 8px;

}

.thumbnails .thumb {
  width: 70px;
  height: auto;
  object-fit: cover;
  cursor: pointer;
  border-radius: 5px;
  opacity: 0.6;
  transition: 0.2s ease;
  flex-shrink: 0;
}

.thumbnails .thumb.active {
  border: 2px solid #5a3e36b8;
  opacity: 1;
}

.thumbnails .thumb:hover {
  opacity: 1;
  transform: scale(1.05);
}

.thumb-prev, .thumb-next {
  background: rgba(90,62,54,0.8);
  color: white;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 1.2rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.3s ease, transform 0.2s ease;
}

.thumb-prev:hover, .thumb-next:hover {
  background: rgba(90,62,54,1);
  transform: scale(1.1);
}

.thumb-prev { display: none; }
.btn, .thumb-prev, .thumb-next {
    min-width: 40px;
    min-height: 40px;
}

/* ==========================
   PRODUCT DETAILS TABS SECTION
   ========================== */
.product-tabs {
  margin-top: 2rem;
  border-top: 1px solid #ddd;
  padding-top: 1rem;
}

.tab-header {
  display: flex;
  border-bottom: 1px solid #ddd;
  margin-bottom: 1rem;
}

.tab-btn {
  flex: 1;
  padding: 0.8rem;
  background: #f8f8f8;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.tab-btn.active {
  background: #fff;
  border-bottom: 2px solid #333;
  color: #333;
}

.tab-content {
  display: none;
  padding: 1rem 0;
}

.tab-content.active {
  display: block;
}

.tab-content ul {
  list-style: none;
  padding: 0;
}

.tab-content li {
  margin-bottom: 0.5rem;
}
#reviews {
  padding: 20px;
}

#reviewsList {
  margin-bottom: 30px;
}

.review-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.review-card p {
  margin: 5px 0 0;
  color: #555;
  font-size: 0.95rem;
}
.review-card strong {
  font-size: 1rem;
  color: #333;
}

.review-card img.review-media,
.review-card video.review-media {
  max-width: 30%;
  margin-top: 10px;
  border-radius: 6px;
}
/* Review Form */
#reviewForm {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px;
  background-color: #fafafa;
  max-width: 600px;
  margin-top: 20px;
}

#reviewForm .form-group {
  margin-bottom: 15px;
}

#reviewForm label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
  font-size: 0.95rem;
}

#reviewForm input[type="text"],
#reviewForm textarea,
#reviewForm input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

#reviewForm input[type="text"]:focus,
#reviewForm textarea:focus,
#reviewForm input[type="file"]:focus {
  border-color: #5a3e36b8;
  outline: none;
}



/* Stars */
#rating-stars {
  display: flex;
  gap: 5px;
  font-size: 1.3rem;
  cursor: pointer;
}

#rating-stars .star {
  color: #ccc;
  transition: color 0.2s;
}

#rating-stars .star.selected,
#rating-stars .star:hover,
#rating-stars .star:hover ~ .star {
  color: #FFD700;
}

/* Buttons */
#reviewForm button {
  
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

#reviewForm button:hover {
  background-color: #b8912f;
}

#reviewForm .btn-outline {
  background-color: #5a3e36b8;
  color: #fff;
}

#reviewForm .btn-outline:hover {
  background-color: #b8912f;
  color: #fff;
}

#reviewMessage {
  margin-top: 12px;
  font-size: 0.95rem;
  color: green;
}
#fileError{
  color:red; 
  font-size:14px; 
  display:none;
}
/* Responsive */
@media (max-width: 992px) {
  .product-detail-card { flex-direction: column; align-items: center; }
  .product-image-large { max-width: 100%; }
}

@media (max-width: 600px) {
  .product-info h2 { font-size: 1.5rem; }
  .price { font-size: 1.2rem; }
  .product-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 50%; text-align: center; }
}

@media (max-width: 480px) {
  .main-image { max-width: 280px; }
  .thumbnails .thumb { width: 45px; height: 45px; }
  .thumb-wrapper { max-width: 280px; gap: 3px; }
  .thumb-prev, .thumb-next { width: 28px; height: 28px; font-size: 1rem; }
}
/* Extra small phones (≤360px) */
@media (max-width: 360px) {
    .hero h1 { font-size: 1.6rem; }
    .hero p { font-size: 0.9rem; }
    .main-image, .product-image-large { max-width: 240px; height: auto; }
    .thumbnails .thumb { width: 40px; height: 40px; }
    .thumb-wrapper { max-width: 240px; gap: 2px; }
    .product-card p, .product-card h3 { font-size: 0.9rem; }
    #reviewForm input, #reviewForm textarea { font-size: 0.9rem; }
    .search-sort-container input { width: 100%; }
}

/* Small laptops / desktops (≥1200px) */
@media (min-width: 1200px) {
    .hero h1 { font-size: 4rem; }
    .hero p { font-size: 1.4rem; }
    .product-card { padding: 20px; }
    .product-info h2 { font-size: 2.2rem; }
    .price { font-size: 1.6rem; }
    .contact-section h2, .contact-heading { font-size: 2rem; }
}

/* Small phones – make product grid single column and buttons full width */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
}

/* Very small phones – keep text readable, compress layout slightly */
@media (max-width: 360px) {
    header {
        padding: 8px 10px;
    }
    .hero h1 {
        font-size: 1.5rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
    .product-card {
        padding: 10px;
    }
}
.main-image {
      cursor: zoom-in;
    }

    /* =============================
       FULLSCREEN IMAGE VIEWER
       ============================= */
    .fullscreen-viewer {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.92);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 9999;
      overflow: hidden;
    }

    .fullscreen-viewer.active {
      display: flex;
    }

    .fullscreen-image {
      max-width: 100%;
      max-height: 100%;
      touch-action: none;
      transition: transform 0.25s ease-out;
      cursor: grab;
    }

    .close-viewer {
      position: absolute;
      top: 15px;
      right: 20px;
      font-size: 40px;
      color: #fff;
      cursor: pointer;
      z-index: 10000;
    }

    @media (max-width: 768px) {
      .close-viewer {
        font-size: 32px;
        top: 10px;
        right: 14px;
      }
    }