* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background-color: #ffffff;
  color: #111;
}

nav {
  background-color: #1752F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .logo {
  color: white;
  font-weight: bold;
  font-size: 1.2rem;
}

nav .nav-links {
  display: flex;
  gap: 1rem;
}

nav .nav-links a {
  text-decoration: none;
}

nav .nav-links .nav-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s ease;
  display: inline-block;
}

nav .nav-links .nav-button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

nav .nav-links button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s ease;
}

nav .nav-links button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 4rem 2rem;
  background-color: #f8f8f8;
}

.hero-text {
  flex: 1;
  max-width: 500px;
}

.hero-text h1 {
  font-size: 2.5rem;
  color: #1752F0;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1rem;
  color: #555;
}

.hero-img {
  flex: 1;
  text-align: center;
}

.hero-img img {
  max-width: 100%;
  height: auto;
}

.section-title {
  padding: 2rem;
  font-size: 2rem;
  font-weight: bold;
  color: #1752F0;
  text-align: center;
}

/* New Arrivals Section */
.new-arrivals {
    padding: 50px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden; /* Prevent the section itself from scrolling */
    max-width: 100%;
}

.products {
  display: inline-flex;
  gap: 2rem;
  flex-wrap: nowrap;
}


.product-card {
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  text-align: center;
  width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 320px;
  transition: none;
}

.product-card img {
  width: 320px;
  height: 320px;
  object-fit: contain;
  margin-bottom: 0;
  background: none;
  box-shadow: none;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 1.5rem 0 0.5rem 0;
  color: #222;
}

.product-price {
  font-size: 1.4rem;
  font-weight: bold;
  color: #1752F0;
  margin: 0.5rem 0;
}

.add-cart-btn {
  background: #1752F0;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 0.7rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
  box-shadow: 0 2px 8px rgba(24,144,255,0.08);
  transition: background 0.2s, box-shadow 0.2s;
}

.add-cart-btn:hover {
  background: #0835ae;
  box-shadow: 0 4px 16px rgba(24,144,255,0.15);
}

/* Arrow Button Style */
.arrow-btn {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0;
  margin: 0 2rem;
  display: flex;
  align-items: center;
}

.arrow-btn::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
}

.arrow-btn:first-of-type::before {
  border-right: 28px solid #1752F0;
  margin-right: 0;
}

.arrow-btn:last-of-type::before {
  border-left: 28px solid #1752F0;
  margin-left: 0;
}

/* Cart Overlay */
#cartOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: none;
    z-index: 999;
    transition: 0.3s ease;
}

#cartOverlay.open {
    display: block;
}

/* Cart Sidebar */
#cartSidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

#cartSidebar.open {
    right: 0;
}

/* Cart Header */
.cart-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.cart-header h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1752F0;
    margin: 0;
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    padding: 0.5rem;
    margin: -0.5rem;
    transition: 0.2s ease;
}

.cart-close:hover {
    color: #000;
    transform: scale(1.1);
}

.cart-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.cart-items {
    flex: 1;
    padding: 1rem 2rem;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #fafafa;
    border-radius: 12px;
    flex-shrink: 0;
    border: 1px solid #f0f0f0;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.cart-item-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1752F0;
    margin-bottom: 1rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f8f8f8;
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.quantity-btn {
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    color: #555;
    transition: 0.2s ease;
}

.quantity-btn:hover {
    background: #f0f0f0;
    color: #1752F0;
    border-color: #1752F0;
}

.quantity-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.quantity-display {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: #222;
    font-size: 1rem;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.25rem;
    font-size: 0.9rem;
}

.remove-item {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: 0.2s ease;
    font-size: 1.1rem;
}

.remove-item:hover {
    background: rgba(255, 68, 68, 0.1);
    transform: scale(1.1);
}

/* Cart Empty State */
.cart-empty {
    padding: 4rem 2rem;
    text-align: center;
    color: #888;
}

.cart-empty p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Cart Footer */
.cart-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #f0f0f0;
    background: white;
    margin-top: auto;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.cart-total-label {
    font-weight: 600;
    color: #222;
}

.cart-total-amount {
    font-weight: bold;
    color: #1752F0;
    font-size: 1.4rem;
}

.checkout-btn {
    width: 100%;
    background: #1752F0;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.checkout-btn:hover {
    background: #0835ae;
    transform: translateY(-1px);
}

.checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(5px);
  background-color: rgba(0, 0, 0, 0.3);
  transition: 0.3s ease;
  justify-content: center;
  align-items: center;
}

/* Modal Box */
.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease;
  position: relative;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  transition: 0.2s ease;
}

.close-btn:hover {
  color: #000;
}

/* Inputs */
.modal-content input {
  width: 100%;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 1rem;
}

/* Submit Button */
.modal-content button[type="submit"] {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #1752F0;
  color: white;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.3s ease;
}

.modal-content button[type="submit"]:hover {
  background: #1752F0;
}

/* Animation */
@keyframes fadeIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.alert {
  background-color: #d4edda;
  color: #155724;
  padding: 1rem;
  margin: 1rem auto;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  max-width: 500px;
  text-align: center;
  font-weight: 600;
}
.carousel-wrapper {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.carousel-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.carousel-wrapper {
  -ms-overflow-style: none;  /* IE */
  scrollbar-width: none;     /* Firefox */
}

.products {
  display: inline-flex;
  gap: 2rem;
  flex-wrap: nowrap;
}

.product-card {
  flex: 0 0 auto;
}

.products {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    min-width: max-content; /* Ensure the container is wide enough for all products */
}

.product-card {
    flex-shrink: 0; /* Prevent cards from shrinking */
    width: 250px; /* Set a fixed width for consistency */
}

.arrow-btn {
    flex-shrink: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.arrow-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.arrow-btn:before {
    content: '';
    width: 0;
    height: 0;
}

.left-arrow:before {
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 10px solid #333;
    margin-right: 2px;
}

.right-arrow:before {
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid #333;
    margin-left: 2px;
}
