/*──────────────────────────────────────────
  1) SkidSavvy Color Palette & Variables
──────────────────────────────────────────*/
:root {
  --color-bg: #000814;
  --color-text: #FFD60A;
  --color-primary: #001D3D;
  --color-secondary: #003566;
  --color-accent: #FFC300;
  --banner-start: #003566;
  --banner-end: #001D3D;
}

/*──────────────────────────────────────────
  2) Global Resets & Base Layout
──────────────────────────────────────────*/
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'Poppins', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
}

main {
  flex: 1;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/*──────────────────────────────────────────
  3) Navbar
──────────────────────────────────────────*/
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-primary);
  padding: 0.75rem 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 80px;
}
.nav-right {
  display: flex;
  align-items: center;
}
.navigation {
  display: flex;
}
.nav-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  border-radius: 9999px;
  color: var(--color-text);
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}
.nav-btn i {
  margin-right: 0.5rem;
  font-size: 1.2em;
}
.nav-btn:hover {
  background: var(--color-secondary);
  color: #ffffff;
  transform: translateY(-2px);
}
.nav-icons {
  display: flex;
  align-items: center;
}

/*──────────────────────────────────────────
  4) Mobile Menu
──────────────────────────────────────────*/
.menu-icon,
.mobile-menu {
  display: none;
}
@media (max-width: 768px) {
  .menu-icon {
    display: block;
    margin-left: 0.75rem;
  }
  .navigation {
    display: none;
  }
  .mobile-menu {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--color-primary);
    display: none;
    flex-direction: column;
    align-items: center;
  }
  .mobile-menu.active {
    display: flex;
  }
}

/*──────────────────────────────────────────
  5) Hero Banner
──────────────────────────────────────────*/
.hero-banner {
  background: linear-gradient(135deg, var(--banner-start), var(--banner-end));
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
}
.hero-banner .banner-text hr {
  border: 1px solid #fff;
  width: 80px;
  margin: 0.5rem auto;
}

/*──────────────────────────────────────────
  6) Sections & Spacing
──────────────────────────────────────────*/
.section {
  padding: 3rem 1rem;
}
.section-title {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-accent);
}
#contact {
  margin-top: 4rem;
}

/*──────────────────────────────────────────
  7) Login & Register Modal Buttons
──────────────────────────────────────────*/
.modal .nav-btn,
.modal .btn {
  background-color: white;
  color: black;
  border: 1px solid #ccc;
  transition: all 0.3s ease;
}
.modal .nav-btn:hover,
.modal .btn:hover {
  background-color: #ffc107;
  color: black;
  border-color: #ffc107;
}

/*──────────────────────────────────────────
  8) Featured Products Grid
──────────────────────────────────────────*/
.featured-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}


/*──────────────────────────────────────────
  9) About & Contact
──────────────────────────────────────────*/
.about-section img,
.contact-section img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}
.about-text,
.contact-text {
  max-width: 500px;
  margin: 1rem auto;
}

/*──────────────────────────────────────────
 10) Modal Styles
──────────────────────────────────────────*/
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active {
  display: flex;
}
.modal-content {
  background: var(--color-bg);
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 8px; right: 12px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text);
  cursor: pointer;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.25rem;
}
.form-group input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--color-secondary);
  border-radius: 4px;
  background: var(--color-bg);
  color: var(--color-text);
}
.form-error {
  margin-top: 0.5rem;
  color: #ff6b6b;
  font-size: 0.9rem;
}

/*──────────────────────────────────────────
 11) Toast Notifications
──────────────────────────────────────────*/
#notification-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.notification {
  background-color: #333;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  font-size: 0.95rem;
  transition: transform 0.3s ease;
  animation: fadein 0.4s ease;
}
.notification.info    { background-color: #2196f3; }
.notification.success { background-color: #4caf50; }
.notification.error   { background-color: #f44336; }
.notification.warning { background-color: #ff9800; }
@keyframes fadein {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/*──────────────────────────────────────────
 12) Footer
──────────────────────────────────────────*/
.footer {
  background: var(--color-primary);
  color: var(--color-text);
  padding: 20px 0;
  text-align: center;
  margin-top: auto;
}

.footer {
  background-color: #000; 
  padding: 20px 0;
}

.footer a {
  color: var(--color-text);
  text-decoration: none;
}

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

.footer-logo img {
  max-height: 80px;
}
.footer-links,
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.footer-links p,
.footer-links a {
  margin: 0 0.5rem;
}
.footer-social img {
  width: 24px;
  margin: 0 0.5rem;
}

/*──────────────────────────────────────────
 13) Utility Classes
──────────────────────────────────────────*/
.hidden {
  display: none;
}
#contact-modal .modal-content input,
#contact-modal .modal-content textarea {
  width: 100%;
  box-sizing: border-box;
}

/* Force modal login/register buttons to be white with yellow hover */
.modal .btn,
.modal .nav-btn,
#login-modal .btn,
#register-modal .btn {
  color: rgb(250, 250, 250) !important;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.modal .btn:hover,
.modal .nav-btn:hover,
#login-modal .btn:hover,
#register-modal .btn:hover {
  color: rgb(214, 190, 52) !important;
}


#featured-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 2rem;
}

.product-card {
  background: var(--color-bg);
  border: 1px solid var(--color-secondary);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  height: 100%;
  text-align: center;
  transition: transform 0.2s, background-color 0.2s;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  background-color: var(--color-primary);
}


.product-card img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain; 
  margin-bottom: 1rem;
  border-radius: 5px;
}

.product-card .info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.product-card h3 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
}

.product-card p {
  font-weight: bold;
  margin: 0.5rem 0 1rem;
}

.product-card button.add-to-cart {
  margin-top: auto;
  background-color: #3829c0 !important;
  color: #fff !important;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 5px;
}

.product-card button.add-to-cart:hover {
  background-color: #c9aa22;
}

#checkout-items {
  border: 2px solid red;
  min-height: 100px;
}

/* Optional - smooth border look */
#card-element.StripeElement {
  background-color: transparent;
  padding: 12px;
  border-radius: 4px;
}
.checkout-price {
  color: #facc15;
}
