/* assets/css/style.css - Enhanced purple & gold theme */
:root {
  --purple: #8a4ae2;
  --purple-light: #7940ce;
  --purple-dark: #321065;
  --gold: #d4af37;
  --gold-light: #e0c15c;
  --gold-dark: #b8941f;
  --muted: #f6f6f8;
  --max-width: 1200px;
  --radius: 8px;
  --txt: #222;
  --txt-light: #666;
  --white: #ffffff;
  --off-white: #f9f9f9;
  --gray-light: #eaeaea;
  --gray: #888;
  --gray-dark: #444;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, system-ui, Arial, sans-serif;
  color: var(--txt);
  background: var(--white);
  line-height: 1.6;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
  min-height: 60vh;
}

/* Top Notice Bar */
.top-notice {
  background-color: rgba(212, 175, 55, 0.15);
  color: var(--purple-dark);
  text-align: center;
  padding: 8px;
  font-size: 14px;
  font-weight: 500;
}

.top-notice a {
  color: var(--purple);
  text-decoration: underline;
  font-weight: 600;
}

.top-notice {
  background: #761bb8; /* purple */
  color: #f1f0e9;      /* gold */
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  padding: 0.3rem 0.45rem;
  border-bottom: 1.3px solid #4b4521;
  opacity: 0.6;
}

.top-notice p {
  margin: 0;
  line-height: 1.5;
}

.top-notice a {
  color: #ffd700;
  font-weight: 600;
  text-decoration: underline;
}
.top-notice a:hover {
  color: #fff;
  text-decoration: none;
}


/* Header */
.site-header {
  background: linear-gradient(-120deg, var(--purple), #8b7a19);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  gap: 1.5rem;
}





.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(230, 178, 21, 0.04); 
  border: 1px solid rgba(237, 210, 7, 0.1);
   
  padding: 6px 10px;
  border-radius: 10px;
     

}

.brand a {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.6rem;

}

.logo {
  width: 185px;
  height: 40px;
  /* background: var(--gold); */
  /* padding: 6px; */
  /* object-fit: cover; */
  /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); */
}

.brand-text {
  font-weight: 700;
  color: var(--gold);
  font-size: 1.35rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Navigation */
.main-nav ul {
  display: flex;
  gap: 0.8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--white);
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
}

.main-nav a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.main-nav a:hover:after {
  width: 70%;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}


.search-container {
  position: relative;
}

.search-form {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 0.3rem;
  transition: all 0.3s ease;
}

.search-form:focus-within {
  background: rgba(255, 255, 255, 0.25);
}

.search-input {
  padding: 0.5rem 0.8rem;
  border: none;
  background: transparent;
  color: var(--white);
  width: 160px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
  outline: none;
  width: 200px;
}

.search-btn {
  background: none;
  border: none;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: var(--white);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.search-btn:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
}

.action-icons {
  display: flex;
  align-items: center;
  gap: 2rem;
}



.cart-link, .auth-link, .user-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--white);
  gap: 0.3rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  position: relative;
}

.cart-link:hover, .auth-link:hover, .user-link:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
}

.cart-link i, .auth-link i, .user-link i {
  font-size: 1.2rem;
}

.cart-count {
  background-color: var(--gold);
  color: var(--purple);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  position: absolute;
  top: -5px;
  right: -5px;
}

/* User Menu */
.user-menu {
  position: relative;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  padding: 0.5rem 0;
  min-width: 160px;
  display: none;
  z-index: 100;
  margin-top: 0.5rem;
}

.user-menu:hover .user-dropdown {
  display: block;
}

.user-dropdown a {
  display: block;
  padding: 0.6rem 1rem;
  text-decoration: none;
  color: var(--txt);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.user-dropdown a:hover {
  background-color: var(--muted);
  color: var(--purple);
}

.cta {
  background-color: var(--gold);
  color: var(--purple);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta:hover {
  background-color: var(--gold-light);
  color: var(--purple-dark);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.3rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--gold);
}

/* Main grid / products */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  padding: 0;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: all 0.5s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card-body {
  padding: 1rem;
}

.card h3 {
  margin: 0.2rem 0;
  font-size: 1.05rem;
  color: var(--txt);
}

.price {
  font-weight: 800;
  color: var(--purple);
  font-size: 1.1rem;
  margin-top: 0.5rem;
  display: block;
}

/* Footer */
.site-footer {
  background: linear-gradient(to bottom, var(--purple-dark), #2a0f55);
  color: var(--white);
  margin-top: 0;
  padding: 0;
}

.footer-main {
  padding: 3rem 1.5rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-col {
  flex: 1;
  min-width: 200px;
  margin-bottom: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.footer-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gold);
  padding: 6px;
  object-fit: cover;
}

.footer-col h3 {
  color: var(--gold);
  margin: 0;
  font-size: 1.5rem;
}

.footer-col h4 {
  color: var(--gold);
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--gold);
}

.footer-col p {
  line-height: 1.6;
  margin-bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  padding: 0.2rem 0;
}

.footer-col ul li a:hover {
  color: var(--gold);
  padding-left: 5px;
}

.contact-info p {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
  gap: 0.8rem;
}

.contact-info i {
  color: var(--gold);
  width: 20px;
  text-align: center;
}

.payment-methods {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.payment-methods i {
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.payment-methods i:hover {
  color: var(--gold);
  transform: translateY(-3px);
}

.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--gold);
  color: var(--purple);
  transform: translateY(-3px);
}

.newsletter {
  margin-top: 1.5rem;
}

.newsletter-form {
  display: flex;
  margin-top: 0.8rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
  background-color: var(--gold);
  color: var(--purple);
  border: none;
  padding: 0 1.2rem;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background-color: var(--gold-light);
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1.2rem 1.5rem;
  text-align: center;
}

.copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}


/* ===== Auth Pages (Login & Register) ===== */
.auth-container {
  max-width: 400px;
  margin: 60px auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  font-family: Arial, sans-serif;
}

.auth-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #6a1b9a; /* purple */
}

.auth-container form {
  display: flex;
  flex-direction: column;
}

.auth-container label {
  margin-bottom: 12px;
  font-size: 14px;
  color: #444;
}

.auth-container input {
  padding: 12px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  width: 100%;
  box-sizing: border-box;
}

.auth-container input:focus {
  outline: none;
  border-color: #6a1b9a;
  box-shadow: 0 0 0 2px rgba(106,27,154,0.2);
}

.auth-container button {
  margin-top: 20px;
  padding: 12px;
  background: #6a1b9a; /* purple */
  color: #ffd700;      /* gold */
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.auth-container button:hover {
  background: #4a148c;
  color: #fff176; /* lighter gold */
}

.auth-container p {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
  color: #555;
}

.auth-container a {
  color: #6a1b9a; /* purple */
  text-decoration: none;
  font-weight: bold;
}

.auth-container a:hover {
  text-decoration: underline;
}

.error-message {
  color: red;
  text-align: center;
  margin-bottom: 10px;
}

/* ===== Header Auth Styles ===== */
.user-info {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #6a1b9a; /* deep purple */
  color: #ffd700;      /* gold */
  padding: 3px 9px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  margin-left: 5px;
}

.user-info i {
  font-size: 16px;
  color: #ffd700;
}

.auth-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #6a1b9a; /* purple */
  color: #ffd700;      /* gold */
  padding: 6px 12px;
  border-radius: 8px;
  border: 0.1px solid rgb(32, 28, 8,0.2);
  font-weight: 500;
  font-size: 14px;
  transition: background 0.3s, color 0.3s;

}

.auth-link:hover {
  background: #4a148c;
  color: #fff176; /* lighter gold */
}

.cart-link {
  position: relative;
  color: #fff;
  font-size: 18px;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #e53935;
  color: #fff;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
}

.auth-subtitle {
  text-align: center;
  font-size: 13px;
  color: #777;
  margin-bottom: 20px;
  font-style: italic;
}
.success-message {
  color: green;
  text-align: center;
  margin-bottom: 10px;
  font-weight: bold;
}




/* Responsive Styles */
@media (max-width: 992px) {
  .topbar {
    flex-wrap: wrap;
    padding: 1rem;
  }

    .top-notice {
display: none;
}
  
  .main-nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--purple);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    padding: 1rem;
  }
  
  .main-nav ul.active {
    display: flex;
  }
  
  .main-nav li {
    margin: 0;
  }
  
  .main-nav a {
    display: block;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .main-nav a:after {
    display: none;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .header-actions {
    margin-top: 1px;
    width: 100;
    justify-content: space-between;
  }
  
  .search-input {
    width: 150px;
  }
  
  .footer-col {
    flex: 0 0 48%;
  }
}

@media (max-width: 768px) {
  .brand-text {
    font-size: 1.2rem;
  }

    .top-notice {
display: none;
}

  .header-actions {
    margin-top: 1px;
    width: 100;
    justify-content: space-between;
  }
  
  .search-input {
    width: 120px;
  }
  
  .action-icons {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .footer-col {
    flex: 0 0 100%;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .top-notice {
display: none;
}
  
  .brand {
    width: 100%;
    justify-content: space-between;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .header-actions {
    flex-direction: column;
    width: 100%;
    gap: 6px;
  }
  
  .search-container {
    width: 100%;
  }
  
  .search-form {
    width: 100%;
  }
  
  .search-input {
    width: 100%;
  }
  
  .action-icons {
    width: 100%;
    justify-content: space-between;
  }
  
  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
  }
}



/* Remove default blue/underline for product links */
.product-title a,
.card a,
.product-detail a {
  color: #4a148c; /* dark purple */
  text-decoration: none;
  font-weight: 600;
}

.product-title a:hover,
.card a:hover,
.product-detail a:hover {
  color: #f1c40f; /* gold on hover */
  text-decoration: underline;
}
