/* ===== GLOBAL START ===== */

/*maintain Navbar and content margin */
/* ===== GLOBAL START ===== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  -webkit-overflow-scrolling: touch;
}

body {
  margin: 0;
  padding-top: 70px;
  font-family: 'Inter', sans-serif;
  background: #FFFFFF;
  color: #111;
  line-height: 1.6;
}

.logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  display: block;
  transition: 0.3s;
}

.logo:hover {
  opacity: 1;
}

/* ===== GLOBAL END ===== */

/* ===== Mobile Fallback for video Start ===== */
@media(max-width:768px) {
  .hero video {
    display: block;
    /* Allow video on mobile */
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  .hero-content {
    left: 50% !important;
    bottom: 50% !important;
    transform: translate(-50%, 50%);
    text-align: center;
    width: 90%;
    max-width: none;
    padding: 0 20px;
  }

  .hero h1 {
    font-size: 28px !important;
    line-height: 1.2;
  }

  .hero p {
    font-size: 14px !important;
  }
}

/* ===== Mobile Fallback for video End ===== */

/* ===== INDEX PAGE START ===== */

/* ===== PREMIUM NAVBAR START ===== */

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 60px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: 0.3s;
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  text-decoration: none;
  color: #111;
  font-size: 13px;
  letter-spacing: 1px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 1px;
  bottom: -5px;
  left: 0;
  background: #111;
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}


.cart {
  text-decoration: none;
  color: #A67C52;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  transition: color 0.3s ease;
}



/*CART HOVER */
.cart:hover {
  color: #C89A6B;
  transform: scale(1.08);
  transition: 0.3s ease;
}

/*CART COUNT */
#cart-count {
  font-size: 11px;
  background: #111;
  color: #fff;
  padding: 2px 6px;
  border-radius: 10px;
  position: relative;
  top: -6px;
}

/*.cart {
  transition: all 0.3s ease;
}*/

/*CART Attention Effect */
.cart:hover {
  letter-spacing: 0.5px;
}

/*MOBILE */
@media(max-width:768px) {

  .navbar {
    padding: 10px 20px;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    right: 0;
    background: #fff;
    flex-direction: column;
    width: 220px;
    padding: 20px;
    display: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    margin-bottom: 15px;
    font-size: 14px;
  }

  .menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
  }

  @media (max-width: 768px) {
    .menu-toggle {
      display: block;
    }
  }
}

/* Fix navbar layout consistency */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Keep right side tight */
.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Ensure nav-links is hidden properly */
.nav-links {
  right: 0;
  top: 60px;
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
  display: inline-block;
  margin-right: 15px;
  cursor: pointer;
}

.current-lang {
  font-size: 13px;
  letter-spacing: 1px;
  color: #111;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  min-width: 120px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 10px 0;
  z-index: 1001;
  margin-top: 10px;
  border: 1px solid #eee;
  animation: fadeIn 0.3s ease;
}

.lang-dropdown:hover .lang-menu {
  display: block;
}

/* Bridge the gap between trigger and menu */
.lang-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 15px;
  display: block;
}

.lang-menu a {
  display: block;
  padding: 8px 20px;
  text-decoration: none;
  color: #111;
  font-size: 13px;
  transition: 0.2s;
  cursor: pointer;
}

.lang-menu a:hover {
  background: #f9f9f9;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Prevent layout shifting */
.logo img {
  height: 40px;
}

/* ===== PREMIUM NAVBAR END ===== */

/* HERO */
.hero {
  margin-top: 0;
  height: calc(100vh - 70px);
  position: relative;
  overflow: hidden;
}

.hero video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: absolute;
  bottom: 80px;
  left: 60px;
  max-width: 500px;
  z-index: 2;
}

.hero h1 {
  color: #fff;
}

/*  from above----
  font-family: 'Noto Serif JP';
  font-size: 42px;
  font-weight: 300;*/


.hero p {
  color: #eee;
  margin-top: 15px;
  font-size: 14px;
}

.shop-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 14px 40px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-weight: 500;
}

.shop-btn:hover {
  background: #fff;
  color: #111;
  border-color: #fff;
  letter-spacing: 4px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}


/*.hero .btn {
  color: #fff;
  border: 1px solid #fff;
  display: inline-block;
  margin-top: 20px;
  padding: 10px 22px;
  border: 1px solid #111;
  text-decoration: none;
  font-size: 12px;
  color: #111;

}*/
.hero .btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 22px;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
}

/* SECTION */
.section {
  padding: 10px 40px;
}

.section h2 {
  font-family: 'Noto Serif JP';
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 5px;
}

.section p {
  max-width: 600px;
  font-size: 14px;
  color: #444;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 10px;
}

.img-zoom-container {
  overflow: hidden;
  position: relative;
  background: #f9f9f9;
}

.grid .img-zoom-container img,
.collection-item .img-zoom-container img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.grid .img-zoom-container:hover img,
.collection-item .img-zoom-container:hover img {
  transform: scale(1.08);
}

/* PRODUCTS */
.products {
  display: flex;
  gap: 30px;
  margin-top: 15px;
  padding: 10px 0;
}

.product {
  width: 220px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
  border-radius: 8px;
  padding: 10px;
}

.product:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.product .img-zoom-container {
  border-radius: 6px;
  margin-bottom: 5px;
}

.product img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product:hover img {
  transform: scale(1.03);
}

.product h3 {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #111;
}

.product p {
  font-size: 12px;
  color: #888;
  line-height: 1.4;
}

.cart-icon {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: white;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  font-size: 17px;
  z-index: 10;
  padding: 0;
}

.cart-icon:hover {
  background: #111;
  color: #fff;
  transform: scale(1.1);
}

/* FULL IMAGE SECTION 
.full-image {
  height: 400px;
  background: url('../Images/Products/Cancer_B1.jpeg') center/cover no-repeat;
  margin: 10px 0;
}*/

/* FOOTER */
.footer {
  padding: 60px;
  font-size: 12px;
  color: #111;
}

/* ===== INDEX PAGE END ===== */

/* ===== PRODUCT PAGE START===== */

/* NAVBAR SPACE FIX */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 10px 40px;
}

/* PRODUCT LAYOUT */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

/* IMAGE */
.product-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

/* TEXT */
.product-info h1 {
  font-family: 'Noto Serif JP';
  font-size: 34px;
  font-weight: 300;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 13px;
  color: #666;
  margin-bottom: 30px;
}

.description {
  font-size: 14px;
  color: #444;
  line-height: 1.8;
  margin-bottom: 40px;
}

/* DETAILS */
.details {
  margin-bottom: 40px;
}

.details p {
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
}

/* BUTTONS */
.buttons {
  display: flex;
  gap: 20px;
}

button {
  padding: 12px 26px;
  border: 1px solid #111;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: 0.3s;
}

button:hover {
  background: #111;
  color: #fff;
}

/* MOBILE */
@media(max-width:768px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-image img {
    height: 400px;
  }
}

/* MOBILE Overlay */
.menu-overlay {
  pointer-events: auto;
}

.menu-overlay.hidden {
  pointer-events: none;
}

/* ===== ZOOM EFFECT START ===== */

.zoom-container {
  overflow: hidden;
  width: 100%;
  height: 600px;
}

.zoom-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

/* HOVER ZOOM */
.zoom-container:hover .zoom-image {
  transform: scale(1.2);
}

/* MOBILE FIX */
@media(max-width:768px) {
  .zoom-container:hover .zoom-image {
    transform: scale(1);
    /* disable zoom on mobile */
  }
}

/* ===== ZOOM EFFECT END ===== */

/* ===== IMAGE GALLERY START ===== */

.thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.thumbnails img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.3s;
  border: 1px solid #eee;
}

.thumbnails img:hover {
  opacity: 1;
  border: 1px solid #111;
}

/* ===== IMAGE GALLERY END ===== */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 20px;
}

.product-card {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* ZOOM EFFECT */
.product-card:hover img {
  transform: scale(1.08);
}

/* OVERLAY TEXT */
.product-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-info {
  display: block !important;
}

.buttons {
  display: flex !important;
  gap: 15px;
  margin-top: 30px;
}

.buttons button {
  display: inline-block !important;
  padding: 12px 25px;
  border: 1px solid black;
  background: white;
  cursor: pointer;
}

/* ===== PRODUCT PAGE MODAL START ===== */

.product-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  justify-content: center;
  align-items: flex-end;
  padding: 20px;
}

.product-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 1000px;
  width: 100%;
  overflow: hidden;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
}

.modal-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.modal-info {
  padding: 40px;
}

.modal-info h2 {
  font-family: 'Noto Serif JP';
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 10px;
}

.modal-info .subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.modal-info .description {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 25px;
}

.modal-buttons {
  display: flex;
  gap: 15px;
}

.modal-buttons button {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font-size: 12px;
  cursor: pointer;
  transition: 0.3s;
  letter-spacing: 1px;
  font-weight: 500;
}

.modal-buttons button:first-child {
  background: #111;
  color: #fff;
}

.modal-buttons button:hover {
  background: #111;
  color: #fff;
}

.modal-buttons button:first-child:hover {
  background: #f0f0f0;
  color: #111;
}

.close-modal {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;

}

.close-modal:hover {
  background: #666;
}


.modal-info {
  padding: 25px;
}

.modal-buttons {
  flex-direction: column;
}


/* ===== PRODUCT PAGE MODAL END ===== */

/* ===== PRODUCT PAGE END ===== */


/* ===== COLLECTION PAGE START===== */

.collections-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
  padding: 0 40px;
  max-width: 1400px;
  margin: 10px auto;
}

@media(max-width: 768px) {
  .collections-grid {
    grid-template-columns: 1fr;
  }
}

.collection-item {
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
}

.collection-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  margin-bottom: 5px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.collection-item h3 {
  font-family: 'Noto Serif JP';
  font-size: 22px;
  display: block;
  margin-top: 10px;
  margin-bottom: 0;
}

.collection-item .btn {
  position: absolute;
  top: 350px;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #111;
  color: #fff;
  padding: 12px 30px;
  border: 1px solid #111;
  font-size: 13px;
  letter-spacing: 1px;
  z-index: 10;
  transition: 0.3s;
}

.collection-item .btn:hover {
  background-color: #fff;
  color: #111;
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid #111;
  text-decoration: none;
  font-size: 12px;
  color: #111;
  transition: 0.3s;
}

.btn:hover {
  background: #111;
  color: #fff;
}

/* ===== COLLECTION PAGE END ===== */


/* ===== CONTACT PAGE START ===== */

h1 {
  font-family: 'Noto Serif JP';
  font-size: 32px;
  font-weight: 300;
  margin-top: 5px;
  margin-bottom: 5px;
  text-align: center;
}

.card {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e0e0e0;
}

.contact-info p {
  font-size: 14px;
  color: #555;
}

.contact-info strong {
  display: block;
  font-family: 'Noto Serif JP';
  font-size: 16px;
  margin-bottom: 8px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input,
textarea {
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #111;
  transition: 0.3s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.1);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

.btn-primary {
  padding: 14px 30px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #fff;
  color: #111;
}

footer {
  padding: 40px;
  text-align: center;
  font-size: 12px;
  color: #0c0606;
  border-top: 1px solid #e0e0e0;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  color: #111;
  font-size: 13px;
  transition: 0.3s;
}

.footer-links a:hover {
  opacity: 0.6;
}


/* ==============Footer END ==============*/
/* Layout */
.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 25px 40px;
  flex-wrap: wrap;
}

/* Columns */
.footer-col {
  flex: 1;
  min-width: 220px;
  font-size: 13px;
  color: #111;
  line-height: 1.7;
}

/* Alignment */
.footer-left {
  text-align: left;
}

.footer-center {
  text-align: center;
}

.footer-right {
  text-align: right;
}

/* Links */
.footer-col a {
  display: block;
  color: #111;
  text-decoration: none;
  margin-bottom: 6px;
}

.footer-col a:hover {
  color: #fff;
}

/* Address heading */
.footer-center strong {
  color: #fff;
}

/* Social links */
.footer-social {
  margin-top: 10px;
}

.footer-social a {
  display: inline-block;
  margin-left: 10px;
  font-size: 13px;
  color: #ccc;
}

.footer-social a:hover {
  color: #fff;
}

/* Copyright */
.footer-copyright {
  text-align: center;
  margin-top: 15px;
  font-size: 12px;
  color: #aaa;
}

/* Mobile Fix */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    text-align: center;
  }

  .footer-social a {
    margin: 0 8px;
  }
}

/* ==============Footer END ==============*/

@media(max-width: 768px) {
  .contact-info {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 30px;
  }
}

/* ===== CONTACT PAGE END ===== */


/* ===== ABOUT PAGE START ===== */

h2 {
  font-family: 'Noto Serif JP';
  font-size: 28px;
  font-weight: 300;
  margin: 10px 0 20px 0;
}

.card strong {
  font-size: 18px;
  display: block;
  margin-bottom: 10px;
  font-family: 'Noto Serif JP';
}

.card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card ul {
  list-style: none;
  padding: 0;
}

.card ul li {
  font-size: 13px;
  color: #555;
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 10px;
}

@media(max-width: 768px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* ===== ABOUT PAGE END ===== */


/* ===== CART PAGE START ===== */

/* ===== CART PAGE END ===== */

/* ===== CARD SECTION for index page START ===== */

.section-card {
  padding: 40px 20px;
  background: #f9f9f9;
  margin: 30px 0;
}

.card-content {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 20px 40px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.card-content h2 {
  font-family: 'Noto Serif JP';
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 20px;
  color: #111;
}

.card-content p {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}

@media(max-width: 768px) {
  .section-card {
    padding: 40px 20px;
  }

  .card-content {
    padding: 30px 20px;
  }
}

/* ===== CARD SECTION for Index page END ===== */

/* ===== CART PAGE (LUXURY DESIGN) ===== */

.cart-container {
  max-width: 1100px;
  margin: auto;
  padding: 10px 40px;
}

.cart-container h1 {
  font-family: 'Noto Serif JP';
  font-weight: 300;
  font-size: 32px;
  margin-bottom: 40px;
}

/* EACH ITEM */
.cart-item {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

/* IMAGE */
.cart-item img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}

/* DETAILS */
.cart-details {
  flex: 1;
}

.cart-details h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 5px;
}

.cart-details p {
  font-size: 13px;
  color: #666;
  margin: 4px 0;
}

/* QUANTITY BOX */
.qty-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.qty-box button {
  padding: 5px 10px;
  border: 1px solid #111;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
}

.qty-box span {
  font-size: 14px;
  min-width: 20px;
  text-align: center;
}

/* REMOVE BUTTON */
.cart-item button {
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
  color: #888;
}

.cart-item button:hover {
  color: #111;
}

/* SUMMARY */
.cart-summary {
  margin-top: 50px;
  text-align: right;
}

.cart-summary h2 {
  font-size: 22px;
  font-weight: 400;
}

/* CHECKOUT BUTTON */
.checkout-btn {
  margin-top: 20px;
  padding: 14px 32px;
  background: #111;
  color: #fff;
  border: none;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.3s;
}

.checkout-btn:hover {
  background: #333;
}

/* PAYMENT OPTIONS */
.payment-options {
  margin-top: 25px;
  font-size: 14px;
}

.payment-options label {
  display: block;
  margin-top: 8px;
  cursor: pointer;
}

/* MOBILE */
@media(max-width:768px) {

  .cart-item {
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
  }

  .cart-item img {
    width: 65px;
    height: 65px;
  }

  .cart-summary {
    text-align: right;
  }

  .cart-details h3 {
    font-size: 14px;
  }

  .cart-details p {
    font-size: 12px;
  }

  .cart-item-total {
    font-size: 14px !important;
    padding: 0 5px !important;
  }
}

/* MODAL NAVIGATION (ARROWS & DOTS) */
.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: 28px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 10;
}

.modal-nav-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.modal-nav-btn.prev {
  left: -10px;
}

.modal-nav-btn.next {
  right: -10px;
}

.modal-dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}

.modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid #111;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-dot.active {
  background: #111;
  transform: scale(1.2);
}

/* Arrow moved in side */
.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px 12px;
}

.modal-nav-btn.prev {
  left: 0px;
  /* move away from image */
}

.modal-nav-btn.next {
  right: 0px;
  /* move away from image */
}

/* Cart Layout Container */
.cart-layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

/* Desktop Sidebar width */
.cart-sidebar {
  width: 38%;
  padding-right: 30px;
  border-right: 1px solid #eee;
}

/* Main Cart Area */
.cart-main {
  width: 62%;
}

/* Desktop layout */
.modal-content {
  display: flex;
  flex-direction: row;
}

.modal-image {
  width: 50%;
  height: auto;
}

.modal-info {
  width: 50%;
}

/* Mobile feature added */
@media (max-width: 768px) {
  .cart-layout {
    flex-direction: column;
  }

  /* Sidebar becomes horizontal scroll */
  .cart-sidebar {
    width: 100%;
    border-right: none;
    padding-right: 15px;
  }

  .cart-sidebar h2 {
    margin-bottom: 15px;
    padding-right: 5px;
  }

  .cart-main {
    width: 100%;
  }

  #recommendationList {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  /* Card becomes vertical */
  .rec-card {
    flex-direction: column;
    min-width: 140px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
  }

  .rec-card img {
    width: 100%;
    height: 110px;
  }

  .rec-card-info {
    text-align: center;
  }

  .rec-card-info h4 {
    font-size: 12px;
  }

  .rec-card-info p {
    font-size: 11px;
  }

  .rec-add-btn {
    width: 100%;
    margin-top: 6px;
  }
}

#recommendationList {
  scroll-behavior: smooth;
}

/* ===== MOBILE TOUCH & INTERACTION FIXES ===== */
@media (max-width: 768px) {

  /* Ensure buttons are tappable */
  .modal-buttons button,
  .buttons button,
  .rec-add-btn,
  .close-modal {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    cursor: pointer;
    min-height: 44px;
    /* Apple's recommended touch target */
  }

  /* Fix close button positioning and z-index */
  .close-modal {
    position: fixed;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    z-index: 10001;
    /* Higher than modal */
    background: #111;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Ensure modal is above everything */
  .product-modal.active {
    z-index: 10000;
  }

  /* Fix cart popup z-index */
  .cart-popup-modal {
    z-index: 10002;
  }

  /* Ensure the Product Modal content is higher than the background overlays */
  #productModal {
    z-index: 9997;
    /* Product info level */
  }

  #addedToCartOverlay {
    z-index: 9999;
    /* Higher level that only appears AFTER clicking */
  }

  /* IMPORTANT: Ensure the button itself is 'above' the modal container */
  .btn-add-cart {
    position: relative;
    z-index: 10;
  }

  /* Ensure thumbnails are tappable */
  .thumbnails img,
  #modalAlternateThumbnails img,
  #modalRelatedThumbnails img {
    touch-action: manipulation;
    cursor: pointer;
    min-width: 60px;
    min-height: 60px;
  }

  /* Fix product card tap area */
  .product-card,
  .collection-item {
    touch-action: manipulation;
  }

  /* Prevent text selection interfering with taps */
  .modal-buttons button,
  .cart-icon,
  .rec-add-btn {
    user-select: none;
    -webkit-user-select: none;
  }

  /* Fix modal content scrolling */
  .modal-content {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* Ensure modal info section is scrollable */
  .modal-info {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: 50vh;
  }
}



/* ===== MOBILE SUPPORT START ===== */
@media (max-width: 768px) {

  .product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 15px;
  }

  .product-modal.active {
    display: flex !important;
  }

  .modal-content {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 400px !important;
    /* Limit width for better mobile look */
    max-height: 85vh;
    background: #fff;
    border-radius: 12px;
    overflow-y: auto;
    position: relative;
    margin: auto;
    /* Centering helper */
  }

  .modal-image,
  .modal-info {
    width: 100% !important;
    flex: none !important;
  }

  .modal-image {
    height: 250px !important;
    object-fit: cover;
  }

  .modal-info {
    padding: 20px;
  }

  .modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
  }

  .modal-buttons button {
    width: 100% !important;
    padding: 14px;
    font-size: 14px;
  }
}

.modal-image {
  position: relative;
  z-index: 1;
}

.close-modal {
  touch-action: manipulation;
}

.product-modal {
  touch-action: manipulation;
}


.close-modal {
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  font-size: 16px;
}


@media (max-width: 768px) {
  .cart-popup-modal button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    cursor: pointer;
    min-height: 44px;
    /* ensures reliable tap area */
    user-select: none;
  }

  .cart-popup-modal {
    z-index: 10003;
    /* higher than product modal and overlay */
  }
}

/* Optional: smoother scroll inside modal */
.modal-content {
  overflow-y: auto;
}


/* ===== MOBILE SUPPORT END ===== */


/* ===== AddToCart POP-UP fix ===== */
@media screen and (max-width: 768px) {
  #addedToCartModal {
    width: 380px !important;
    /* fixed size on mobile */
    max-width: 95% !important;
    /* safety for very small phones */
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    padding: 20px !important
  }

  #addedToCartModal img {
    width: 100% !important;
    height: auto !important;
    max-height: 180px !important;
    object-fit: contain !important;
  }
}

body {
  overflow-x: hidden
}

/* ===== model overflow ===== */
#modalAlternateThumbnails {
  flex-wrap: wrap;
  /* ✅ prevents overflow */
}

#modalRelatedThumbnails img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid #eee;
}

/* ===== JS link style ===== */
.cart-popup-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 420px;
  /* increase this*/
  max-width: 92%;
  /* keeps it safe on smaller screens */

  background: #fff;
  padding: 30px 25px;
  border-radius: 12px;

  display: none;
  flex-direction: column;
  align-items: center;

  z-index: 9999;
  /* 🔥 IMPORTANT FIX */
}

.cart-popup-modal.active {
  display: flex;
}

/*CART Size Control for Mobile */
@media(max-width:768px) {
  .cart {
    font-size: 16px;
    /* slightly reduced for mobile */
  }

  #cart-count {
    font-size: 10px;
    padding: 2px 5px;
    top: -4px;
  }
}

/* ===== CART ICON FINAL FIX ===== */
/*.nav-right .cart {
  font-size: 20px;
  color: #C6A96B;
  text-decoration: none;
}


.nav-right .cart span {
  color: #C6A96B;
  font-size: 14px;
}*/