/* style.css */

/* --- Base / Global Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: #ffffff;
  color: #1a1a1a;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1px solid #eaeaea;
}

header h1 {
  font-size: 1.5rem;
  margin: 0;
}

header nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 500;
}
.setup-account-btn {
  padding: 0.5em 1em;
  background-color: #000;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  margin-left: 1em;
  transition: background-color 0.3s ease;
  display: inline-block;
  text-align: center;
}
.setup-account-btn:hover {
  background-color: #444;
}

/* Product Card Hover Effect */
.product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  background: #f5f5f5;
  text-align: center;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.hero p {
  max-width: 600px;
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 30px;
}

.hero button {
  background: #000;
  color: #fff;
  border: 1px solid #000;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  margin-bottom: 1rem;
}

.hero button:hover {
  background: #fff;
  color: #000;
  border: 1px solid #000;
}

/* Products Section */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 60px 40px;
}

.product-card {
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  overflow: hidden;
  transition: 0.3s;
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-card img {
  width: 100%;
  height: auto;
}

.product-card .info {
  padding: 20px;
}

.product-card .info h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.product-card .info p {
  font-size: 0.95rem;
  color: #666;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px;
  font-size: 0.9rem;
  color: #aaa;
}

/* "Setup Account" Button */
.setup-account-btn {
  padding: 0.5em 1em;
  background-color: #000;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  margin-left: 1em;
  transition: background-color 0.3s ease;
  display: inline-block; /* So we can center text if needed */
  text-align: center;
}

.setup-account-btn:hover {
  background-color: #444;
}

/* 
   If you have "Set Up" and "Account" in separate <span> tags:
   <a class="setup-account-btn"><span>Set Up</span><span> Account</span></a>
   By default, we keep them inline on large screens.
*/
.setup-account-btn span {
  display: inline;
}

/* Carousel */
.carousel-wrapper {
  position: relative;
  max-width: 1000px;
  margin: auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: scroll;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
}

.carousel-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

.product-caruseler {
  flex: 0 0 auto;
  width: 300px;
  text-align: center;
  padding: 10px;
  background: #fff;
}

.product-caruseler img {
  width: 100%;
  height: 250px;
  object-fit: contain;
}

.product-name {
  font-size: 1rem;
  margin-top: 10px;
}

.product-edition {
  color: gray;
  font-size: 0.9rem;
}

.product-price {
  font-weight: bold;
  margin-top: 15px;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0 10px;
  color: #adadad;
  z-index: 10;
}

.arrow-left {
  left: 0;
}

.arrow-right {
  right: 0;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  /* 1) Make overall font-size smaller. */
  html {
    font-size: 14px; /* Lower base font-size on smaller devices */
  }

  /* 2) Adjust header to position the button in top-right corner. */
  header {
    position: relative;       /* So we can absolutely position the button */
    display: flex;
    align-items: flex-start;  /* Align items at the top, horizontally */
    flex-wrap: wrap;
    padding: 10px 20px;
  }
  header h1 {
    font-size: 1.2rem;
    margin: 0;
    order: 1; /* Brand first */
  }

  /* 
     3) Button in the top-right corner of the header.
        We use absolute positioning so it "floats" in
        the top-right, aligned with the brand.
  */
  .setup-account-btn {
    order: 2;
    position: absolute;
    top: 10px;    /* Align with header’s top padding */
    right: 20px;  /* Align with header’s right padding */
    margin-left: 0; /* Remove the default margin since we're now absolute */
  }

  /* 4) Move nav below everything else. */
  nav {
    order: 3;
    width: 100%;
    text-align: center;
    margin-top: 40px; /* Enough space so the button won't overlap nav */
  }

  /* 5) Stack "Set Up" & "Account" on separate lines within the button */
  .setup-account-btn span {
    display: block;
  }

  /* Hero Section adjustments */
  .hero {
    padding: 40px 20px;
  }
  .hero h2 {
    font-size: 1.5rem;
  }
  .hero p {
    font-size: 1rem;
    margin-bottom: 20px;
    max-width: 100%;
  }
  .hero button {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  /* Products Grid: single column on phone */
  .products {
    grid-template-columns: 1fr;
    padding: 30px 20px;
    gap: 20px;
  }
  .product-card .info h3 {
    font-size: 1rem;
  }
  .product-card .info p {
    font-size: 0.85rem;
  }

  /* Carousel Items narrower on phone */
  .product-caruseler {
    width: 220px;
  }
  .product-caruseler img {
    height: 200px;
  }

  /* Footer smaller */
  footer {
    padding: 20px;
    font-size: 0.8rem;
  }
  .modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
  }
  
  .modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
  }
  
  .modal-content input {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
  }
  
  .modal-content button {
    width: 100%;
    padding: 12px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .modal-content .close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 24px;
    cursor: pointer;
  }
  
}
