@import 'productList.css';
@import 'footer.css';
@import 'cartButton.css';
@import 'sideCart.css';
@import 'main.css';
@import 'discount.css';
@import 'discount-banner-styles.css';
@import 'menu.css';


/* IMPORTANT */

* {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
/* IMPORTANT */

.title {
  text-align: center;
  font-size: 40px;
  margin-bottom: 5px;
  margin-top: 0px;
}
#hamburger { 
  display: none;
}
#openCartMobile {
  cursor: pointer;
  display: none;
}

html {
  width: 100%;
}
#Menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e7;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  align-items: center;
}

body {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  padding: 0;
  margin: 0px;
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  overflow-x: hidden;
}
.extraPadding {
  padding-top: 40px !important;
}
@media screen and (max-width: 600px) {
  .extraPadding {
  padding-top: 0px !important;
}
}
.main-content {
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  margin-top: 100px;
}
#products-title {
  padding-top: 40px;
}
@media (max-width: 768px) {
  .main-content {
    margin-top: 60px;
  }
  #products-title {
  padding-top: 0px;
  }
}

.topHeader {
 display: flex;
  justify-content: center; /* center main content */
  align-items: center;
}
.rightGroup {
  display: flex;
  align-items: center;
  right: 16px; /* move to far right */
  gap: 8px; /* spacing between shopping bag and hamburger */
}
#openCart {
  cursor: pointer;
}

h1, h2, h3 {
  font-family: "Playfair Display", "IBM Plex Serif", serif;
  font-weight: 700;
}

.navbar {
  height: 50px;
  border-top: 12px solid black;
  border-bottom: 1px solid black;
}
#mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px; /* adjust as needed */
  height: 100vh;
  background: white; /* your background color */
  transform: translateX(-100%); /* start off-screen to the left */
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
}
#mobile-menu.open {
  transform: translateX(0); /* slide into view */
}
#male-menu.open {
  transform: translateX(0); /* slide into view */
}

/* Style the navigation list */
.nav-list {
  list-style-type: none;  /* Remove bullets */
  display: flex;  /* Make it horizontal */
  justify-content: center;  /* Center the items */
  list-style: none;
  margin: 0;
  padding: 12px;
}
/* Style the list items */
.nav-list > li {
  position: relative;
  margin: 0;
}

/* Style the links */
.nav-list a {
  color: black;
  display: block;  /* Make links full-width for better click area */
  text-align: center;
  padding-right: 30px;
  text-decoration: none;  /* Remove underline */
  transition: background-color 0.3s;  /* Smooth hover effect */
}

.sub-menu {
  background-color: white;
  position: absolute;
  left: 50%;            /* center horizontally */
  transform: translateX(-50%);
  margin: 0 auto;
  width: 60%;
  text-align: center;
  display: none;
  grid-template-columns: repeat(4, 1fr); /* 3 columns */
  /* Box styling */
  border-radius: 2px;                   /* rounded corners */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25); /* subtle shadow */
  border: 1px solid rgba(0,0,0,0.1);    /* soft border */
  z-index: 1000;
}

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

.sub-menu h3 {
  color: black;
  margin-bottom: 10px;
}

.sub-menu li a {
  padding: 5px 0;
  color: black;
  display: block;
}

/* Checkout Page */
.empty-cart {
  text-align: center;
  padding: 80px 20px;
  max-width: 500px;
  margin: 0 auto;
}

.cart-count {
  padding: 1px
}

.cart-count:empty {
  display: none;
}
.empty-cart-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
  border: 2px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.empty-cart h2 {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 15px;
  color: #000;
}

.empty-cart p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 35px;
  font-family: Arial, sans-serif;
}

.continue-shopping {
  cursor: pointer;
  display: inline-block;
  padding: 14px 40px;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s ease;
}

.continue-shopping:hover {
  background-color: #333;
}
.divider {
  width: 100%;
  border-top: 1px solid #e5e5e5;
  margin: 0;
  padding: 0;
  display: block;
  margin-bottom: 10px;
  margin-top: 10px;
}

#noProductsFound {
  display: none;
}

.cart-total {
  margin-bottom: 30px;
  font-size: 22px;
  display: flex;
justify-content: space-between;
}

.product-item {
  display: flex;
  gap: 20px;
  margin-bottom: 10px;
  margin-top: 10px;
}
.product-name {
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.4;
}
.brand-name {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.product-image img {
  width: 150px;
}
.product-options {
  display: flex;
  gap: 15px;
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 15px;
}

.product-actions a {
  color: #3b2f1e;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
}

.product-options span {
  display: flex;
  align-items: center;
}


/* Checkout Form */
.checkout-form {
  width: 400px;
  margin-top: 50px; 
  margin-bottom: 40px;
  position: sticky;
  top: 50px;     /* sticks 50px from top when scrolling */
  align-self: flex-start; /* If inside a flexbox */
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  margin-bottom: 8px;
  color: #000;
}


.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 6px;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid #000;
  background-color: #fff;
  transition: border-color 0.2s;
  border-radius: 0;
  box-sizing: border-box; /* Add this */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #000;
}

.form-group textarea {
  resize: vertical;
}

.form-group select {
  width: 100%;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  font-size: 0.875rem;
  font-weight: 400;
  color: #fff;
  background-color: #000;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.2s;
  border-radius: 0;
  text-transform: none;
  letter-spacing: 0;
}

.submit-btn:hover {
  background-color: #222;
}

.flex-container-cart {
  width: 60%;
  display: flex;
  margin: 0 auto;
  justify-content: space-between;
  min-height: 100vh; /* or whatever makes sense */
}
/* .products-container {
  flex: 1;
  padding-top: 50px;
} */

/* Checkout Page End */


/* Home Page, explore categories section BEGIN */

.top-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 60px 4%;
}

.bottom-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 4%;
  flex-direction: row-reverse;
}

.inactiveLink {
  pointer-events: none;
}

a {
  color: black;
  text-decoration: none;
}


.left-section {
  flex: 1;
  margin-left: 75px;
}

.left-section h4 {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.left-section h1 {
  font-size: 120px;
  font-weight: 400;
  margin: 0
}

.left-section p {
  margin: 15px 0 30px;
  font-size: 14px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: black;
  color: white;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s;
}

.btn:hover {
  background: #333;
}

.right-section {
  flex: 2;
  display: flex;
  justify-content: space-around;
  gap: 40px;
}

.item {
  text-align: center;
}

.item img {
  width: 220px;
  height: 150px;
  height: auto;
  background: #f5f5f5;
  object-fit: cover;
}

.item p {
  font-size: 14px;
  margin-top: 10px;
}

.same-size {
    width: 300px;      /* desired width */
    height: 200px;     /* desired height */
    object-fit: cover; /* keeps aspect ratio, crops if needed */
}

@media (max-width: 1024px) {
  .top-container {
    flex-direction: column;
    padding: 40px 20px;
  }

  .left-section {
    text-align: center;
    margin-bottom: 30px;
    padding-left: 10px;
    padding-right: 50px;
  }

  .right-section {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .item img {
    width: 150px;
    height: 150px;
  }

  .left-section h1 {
    font-size: 60px;
  }
}

@media (max-width: 600px) {
  .top-container {
    padding: 20px 10px;
  }

  .right-section {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding-bottom: 10px;
  }
  .item {
    flex: 0 0 40%;
    scroll-snap-align: start;
  }

  .item img {
    width: 100%;
    height: auto;
  }

  .left-section h1 {
    font-size: 40px;
  }

  .left-section h4, .left-section p, .btn {
    font-size: 12px;
  }

  .btn {
    padding: 10px 20px;
  }
}

/* Home Page, explore categories section END */

/* Main Products grid page START */


/* Main Products grid page END */

/* Product detail page styles moved to productDetails.css */

.quantity-plus.shake {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

/* Product detail page END */

/* Order Processing Modal */
.order-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.order-modal-content {
  background: white;
  border-radius: 16px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.order-modal-icon {
  font-size: 64px;
  margin-bottom: 20px;
  animation: scaleIn 0.5s ease 0.2s both;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.order-modal h2 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.order-modal p {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 8px;
}

.order-number {
  font-size: 20px;
  font-weight: 600;
  color: #2563eb;
  margin: 16px 0;
}

.order-status-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin: 12px 0;
}

.status-approved {
  background-color: #d1fae5;
  color: #065f46;
}

.status-pending {
  background-color: #fef3c7;
  color: #92400e;
}

.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #2563eb;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.order-redirect-info {
  font-size: 14px;
  color: #999;
  margin-top: 20px;
}