/* General styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #ffffff; /* Dark background for 3D effect */
  color: rgb(0, 0, 0);
  text-align: center;
  /* Remove overflow: hidden to allow scrolling */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 3D Cube Room Background */
.cube-room {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  perspective: 1000px; /* 3D perspective */
  z-index: -1; /* Place behind content */
}

.brand {
  color: #111 !important;
  font-weight: bold;
  font-size: 1.2em;
  display: flex;
  align-items: center;
  gap: 0.4em;
}
.brand i {
  color: #000000 !important; /* Optional: make the apple icon blue */
}

.cube {
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 140, 255, 0.2);
  transform-style: preserve-3d;
  animation: float 10s infinite ease-in-out;
}

.cube:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.cube:nth-child(2) {
  top: 50%;
  left: 70%;
  animation-delay: 2s;
}

.cube:nth-child(3) {
  top: 80%;
  left: 40%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotateX(0) rotateY(0);
  }
  50% {
    transform: translateY(-20px) rotateX(180deg) rotateY(180deg);
  }
}

/*======================================================================================Header design===========================================================================================*/
/* Header section styling */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #333;
  color: white;
  padding: 10px 20px;
  position: relative; /* Ensure proper alignment */
}

/* Logo */
.logo {
  width: 40px;
  height: auto;
}

/* Navigation Links */
.header-nav {
  display: flex;
  align-items: center;
  gap: 10px; /* Space between links and separators */
  position: absolute; /* Position the nav in the center */
  left: 50%; /* Center horizontally */
  transform: translateX(-50%); /* Adjust for exact centering */
}

.nav-link {
  font-size: 0.9em; /* Small font size */
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #007bff; /* Change color on hover */
}

.nav-separator {
  font-size: 0.9em;
  color: white;
  user-select: none; /* Prevent selection of the separator */
}

/* Sign-In and Cart Icons */
.header-icons {
  display: flex;
  align-items: center;
  gap: 20px; /* Space between icons */
}

/* Cart Icon */
.cart {
  position: relative; /* To position the cart count badge */
}

.cart a {
  color: white; /* Icon color */
  text-decoration: none; /* Remove underline */
  font-size: 24px; /* Icon size */
}

.cart a:hover {
  color: #007bff; /* Change color on hover */
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -10px;
  background-color: red; /* Badge color */
  color: white;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%; /* Round badge */
  padding: 5px; /* Badge padding */
  min-width: 10px; /* Ensures badge size remains consistent */
  text-align: center;
}
/*============================================================================================Product Grid======================================================================================*/
.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  justify-content: center;
  align-items: center; /* Add this line */
}

.product {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  width: 300px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product:hover {
  transform: translateY(-5px);
}

.product-image-container {
  width: 100%;
  height: 200px;
  position: relative;
  margin-bottom: 15px;
  overflow: hidden;
  border-radius: 5px;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Gallery Styles */
.gallery-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.gallery-image.active {
  opacity: 1;
}

.gallery-controls {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
}

.gallery-prev,
.gallery-next {
  background-color: rgba(0, 102, 204, 0.7);
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1em;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-prev:hover,
.gallery-next:hover {
  background-color: rgba(0, 77, 153, 0.9);
}

/* Rest of the product styles remain the same */
.product h2 {
  font-size: 1.2em;
  margin: 10px 0;
  color: #333;
}

.price {
  font-size: 1.3em;
  font-weight: bold;
  color: #0066cc;
  margin: 10px 0;
}

button {
  background-color: #0066cc;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  margin: 5px 0;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #004d99;
}

.more-info {
  background-color: #f0f0f0;
  color: #333;
}

.more-info:hover {
  background-color: #ddd;
}

.more-info-details {
  display: none;
  text-align: left;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

/* Product Description Section */
.product-description {
  max-width: 900px;
  margin: 30px auto;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-description h1 {
  color: #0066cc;
  margin-bottom: 20px;
}

.features-list {
  text-align: left;
  margin-top: 30px;
}

.features-list h2 {
  color: #0066cc;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.features-list ul {
  list-style-type: none;
  padding: 0;
}

.features-list li {
  padding: 8px 0;
  position: relative;
  padding-left: 25px;
}

.features-list li:before {
  content: '✓';
  color: #0066cc;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Color Selection */
.color-selection {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px 0;
}

.color-option {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #ccc;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.color-option:hover {
  transform: scale(1.1);
}

.color-option.selected {
  border: 2px solid #007bff;
}

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

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

/*===================================================================================Footer Section=============================================================================================*/
footer {
  background-color: rgba(51, 51, 51, 0.8); /* Semi-transparent footer */
  color: white;
  padding: 20px;
  text-align: center;
  position: relative;
  z-index: 1; /* Place above 3D background */
}

.footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  margin: 10px;
}

.footer-section h3 {
  margin-bottom: 10px;
  font-size: 1.2em;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin: 5px 0;
}

.footer-section ul li a {
  color: white;
  text-decoration: none;
}

.footer-section ul li a:hover {
  text-decoration: underline;
}

footer p {
  margin: 0;
  font-size: 0.9em;
}
