/* Global */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #F9FAFD;
  color: #0A1739;
}

/* Navigation (Header) */
/* Navbar container */
nav {
  height: 60px;
  background: #0A1739;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

/* Navbar lists */
nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}
nav ul li {position: relative; }

/* Navbar links */
nav a {
  color: #F9FAFD;
  text-decoration: none;
  padding: 0 12px;
  line-height: 60px;
  display: block;                /* fills the entire li */
}
nav a:hover {
  background: #F9FAFD;
  color: #0A1739;
  border-radius: 4px;
}

/* Dropdowns */
.dropdown-content,
.dropdown-submenu {
  display: none;
  position: absolute;
  background: #0A1739;
  min-width: 160px;
}
.dropdown-content { top: 100%; left: 0; }
.dropdown-submenu { top: 0; left: 160px; }

.dropdown:hover .dropdown-content,
.dropdown-sub:hover .dropdown-submenu { display: block; }

.dropdown-content a,
.dropdown-submenu a {
  display: block;
  padding: 10px;
  color: #F9FAFD;
  text-decoration: none;
  line-height: normal;
}
.dropdown-content a:hover,
.dropdown-submenu a:hover {
  background: #F9FAFD;
  color: #0A1739;
}

/* Nav sides and cart */
.nav-left, .nav-right {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.nav-icon { width: 28px; height: 28px; cursor: pointer; background: #F9FAFD; }

#cart-btn, .nav-right li a {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  line-height: 60px;
}

#cart-btn:hover, .nav-right li a:hover { 
  opacity: 0.8; 
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: red;
  color: white;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  padding: 4px 7px;
  line-height: 1;
}

/* Cart Sidebar */

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px; /* hidden by default */
  width: 400px;
  height: 100%;
  background-color: #F9FAFD;
  box-shadow: -2px 0 8px rgba(0,0,0,0.3);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  z-index: 2000;

  /* NEW: keep header/footer fixed, only items scroll */
  overflow: hidden;          /* prevent double scrollbars */
}

.cart-sidebar.active {
  right: 0; /* slide in */
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #0A1739;
  color: #F9FAFD;
  padding: 15px;
}

.cart-footer {
  margin-top: auto;
  padding: 20px;
  text-align: center;
}

.checkout-btn {
  background-color: #0A1739;
  color: #F9FAFD;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

.checkout-btn:hover {
  background-color: #333;
}


/* Hero Section (White background) */
.hero {
  text-align: center;
  padding: 60px;
  background-color: #F9FAFD;
  color: #0A1739;
}
.hero .logo {
  max-width: 150px;
  margin-bottom: 20px;
}
.hero button {
  background-color: #0A1739;
  color: #F9FAFD;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  margin-top: 20px;
  border-radius: 4px;
}
.hero button:hover {
  background-color: #333;
}

/* Trust Section (White background) */
.trust {
  display: flex;
  justify-content: center;
  padding: 40px;
  background-color: #F9FAFD;
}
.trust-item {
  margin: 0 20px;
  font-weight: bold;
  border: 1px solid #0A1739;
  padding: 15px;
  border-radius: 5px;
}

/* About Section (White background) */
.about {
  padding: 40px;
  text-align: center;
  background-color: #F9FAFD;
}

/* Flexbox layout to push footer down */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Footer styling */
footer {
  background-color: #0A1739;
  color: #F9FAFD;
  text-align: center;
  padding: 30px 20px;   /* breathing room */
  margin-top: 40px;     /* space above footer */
  margin-top: auto;     /* THIS keeps footer at bottom */
}

/* Content Sections */
.content {
  max-width: 900px;       /* keeps text centered and not stretched across the whole screen */
  margin: 40px auto;      /* adds space above/below and centers horizontally */
  padding: 20px;          /* adds breathing room inside the box */
  line-height: 1.6;       /* improves readability */
}

/* Contact Page Specific Styling */

/* The Form */
.content h3 {
  margin-bottom: 15px;
  color: #0A1739;
}

.content p {
  margin: 8px 0;
}

/* Form Styling */
form {
  max-width: 500px;
  margin: 20px auto;
  text-align: left;
}

form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #0A1739;
}

form input[type="text"],
form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #0A1739;
  border-radius: 4px;
  margin-bottom: 15px;
  font-family: Arial, sans-serif;
}

form textarea {
  resize: vertical;
}

form button {
  background-color: #0A1739;
  color: #F9FAFD;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 4px;
}

form button:hover {
  background-color: #333;
}

/* Instagram Icon */
.content img {
  vertical-align: middle;
  margin-left: 5px;
}

/* Contact Info Card Layout */
.contact-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 40px auto;
  flex-wrap: nowrap; /* keeps all cards in one line */
}

.contact-card {
  background-color: #F9FAFD;
  border: 1px solid #0A1739;
  border-radius: 8px;
  padding: 20px;
  width: 250px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.contact-card h4 {
  margin-bottom: 10px;
  color: #0A1739;
}

.contact-card p {
  margin: 5px 0;
  color: #333;
}

.contact-card a img {
  width: 30px;
  height: 30px;
  transition: transform 0.2s ease;
}

.contact-card a img:hover {
  transform: scale(1.1);
}

/* Product Grid Layout */
/* This part controls "4 in a line" */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 items per row */
  gap: 20px;
}

.product {
  text-align: center;
  cursor: pointer;
}

.product img {
  width: 100%;
  height: 250px;       /* consistent height */
  object-fit: cover;   /* crops instead of distorting */
  border-radius: 6px;
  transition: transform 0.3s ease;
}

/* Hover zoom effect */
.product img:hover {
  transform: scale(1.05);
}

/* Modal styling */
.modal {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.7); /* dim background */
}

.modal-content {
  position: relative;  
  background: #fff;
  margin: 5% auto;
  padding: 20px;
  width: 60%;
  text-align: center;
  border-radius: 8px;
}

.modal-content img {
  max-width: 300px;
  margin-bottom: 15px;
}
/**/
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  width: 40px;          /* 🔑 defines the clickable area */
  height: 40px;
  display: flex;        /* centers the × inside */
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  z-index: 9999;        /* 🔑 ensures nothing overlaps it */
  border-radius: 50%;   /* optional: circular button */
}

.close:hover {
  background-color: rgba(0,0,0,0.2); /* hover background */
  color: #fff;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 0;
}

.quantity-selector button {
  background: #0A1739;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.quantity-selector span {
  font-weight: bold;
  font-size: 16px;
}

/* Theme button styling */
.theme-btn {
  background-color: #0A1739;   /* your dark blue theme color */
  color: #F9FAFD;             /* light text for contrast */
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.theme-btn:hover {
  background-color: #333;     /* darker hover effect */
  transform: scale(1.05);     /* subtle zoom on hover */
}


/* Dropdown Filter Styling */
.filters {
  text-align: center;
  margin-bottom: 20px;
}

.filters select {
  padding: 10px;
  border: 1px solid #0A1739;
  border-radius: 4px;
  font-size: 16px;
}

/* Cart Styling */
#cart-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;

  /* NEW: make items scrollable */
  flex: 1;                  /* take available space */
  overflow-y: auto;          /* enable vertical scroll */
  padding: 10px;
}

.cart-item {
  display: flex;
  align-items: center;
  border: 1px solid #0A1739;
  border-radius: 6px;
  padding: 15px;
  background-color: #F9FAFD;
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 20px;
}

.cart-item-details {
  flex: 1;
}

.cart-item-details h4 {
  margin: 0;
  color: #0A1739;
}

.cart-item-details p {
  margin: 5px 0;
  color: #333;
}

.cart-item button {
  background-color: #0A1739;
  color: #F9FAFD;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
}

.cart-summary {
  text-align: right;
}

/*cookies*/

.cookie-modal {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 23, 57, 0.7); /* dim background */
}

.cookie-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border-radius: 8px;
  width: 400px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.cookie-content h3 {
  margin-top: 0;
}

.cookie-content .theme-btn {
  margin-top: 15px;
}

.cookie-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.cookie-actions .decline {
  background: #aaa; /* grey for decline */
  color: #fff;
}

/*checkout button*/
.btn {
  display: inline-block;
  padding: 12px 20px;
  background-color: #0A1739;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.btn:hover {
  background-color: #142a5c;
}

/*empty cart system*/
.alert-overlay {
  display: none; /* hidden by default */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); /* dim background */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.alert-box {
  background: #0A1739; /* match your theme */
  color: #F9FAFD;
  padding: 20px 30px;
  border-radius: 8px;
  text-align: center;
  max-width: 300px;
}

.alert-box button {
  margin-top: 15px;
  padding: 8px 16px;
  background: #F9FAFD;
  color: #0A1739;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.alert-box button:hover {
  opacity: 0.8;
}

.modal-image-container {
  position: relative;
  text-align: center;
}

#modalImage {
  max-width: 100%;
  max-height: 400px;
  border-radius: 8px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 24px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
}

.left-btn { left: 10px; }
.right-btn { right: 10px; }

.carousel-btn:hover {
  background-color: rgba(0,0,0,0.8);
}
