/* ===== VARIABLES ===== */
:root {
  --primary-color: #c21161;
  --secondary-color: #e84a8f;
  --accent-color: #c21161;
  --success-color: #27ae60;
  --danger-color: #e74c3c;
  --warning-color: #f39c12;
  --light-bg: #fdf8f3;
  --light-border: #e8e0d8;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

/* ===== GLOBAL STYLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light-bg);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-color);
}

/* ===== NAVBAR ===== */
.navbar {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent-color);
}

.nav-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #c21161 0%, #a01050 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(194, 17, 97, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(194, 17, 97, 0.35);
}

.btn-secondary {
  background-color: #e84a8f;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(232, 74, 143, 0.25);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #e84a8f 0%, #c21161 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(194, 17, 97, 0.35);
}

.btn-success {
  background-color: var(--success-color);
  color: var(--white);
}

.btn-success:hover {
  background-color: #229954;
}

.btn-danger {
  background-color: #c21161;
  color: var(--white);
}

.btn-danger:hover {
  background-color: #e84a8f;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

.btn-outline:hover {
  background-color: var(--accent-color);
  color: var(--white);
}

.btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== SECTIONS ===== */
section {
  padding: 2rem 0;
}

.hero {
  background: linear-gradient(135deg, #fdf8f3 0%, #f5f0eb 100%);
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: #c21161;
  letter-spacing: -0.5px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  margin-top: -1.5rem;
  margin-bottom: 3rem;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  width: 100%;
  border-radius: 0.8rem;
  box-shadow: 0 10px 40px rgba(194, 17, 97, 0.15);
  border: 2px solid rgba(194, 17, 97, 0.1);
}

.about-content h2 {
  font-size: 2rem;
  color: #c21161;
  margin-bottom: 1.5rem;
}

.about-content p {
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.8;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  font-size: 1.5rem;
}

.contact-text h4 {
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.contact-text p, .contact-text a {
  color: var(--text-light);
  font-size: 0.9rem;
}



.products-grid {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 1rem 0 2rem;
  scrollbar-width: none;
}

.products-grid::-webkit-scrollbar {
  display: none;
}

.products-grid::-webkit-scrollbar-track {
  background: transparent;
}

.products-grid::-webkit-scrollbar-thumb {
  background: rgba(194, 17, 97, 0.3);
  border-radius: 4px;
}

.products-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(194, 17, 97, 0.6);
}



.product-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 340px;
max-width: 340px;
flex-shrink: 0;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.product-image-container {
  width: 100%;
  height: 260px;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: 0.3s ease;
}

.product-card:hover .product-image {
  transform: scale(1.03);
}

.product-content {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.7rem;
  line-height: 1.4;
}

.product-price {
  font-size: 2rem;
  font-weight: bold;
  color: #c21161;
  margin-bottom: 0.8rem;
}

.product-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.product-btn {
  width: 100%;
  border-radius: 14px;
  padding: 0.9rem;
  font-size: 1rem;
}


  

/* ===== PRODUCTS SCROLL CONTAINER ===== */
.products-scroll-container {
  position: relative;
  margin-bottom: 2rem;
}

.scroll-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(194, 17, 97, 0.9);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
  z-index: 10;
}

.scroll-button:hover {
  background-color: #c21161;
  transform: translateY(-50%) scale(1.1);
}

.scroll-button.left {
  left: 0;
}

.scroll-button.right {
  right: 0;
}

.scroll-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.scroll-button:disabled:hover {
  transform: translateY(-50%);
  background-color: rgba(194, 17, 97, 0.5);
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1.5px solid var(--light-border);
  border-radius: 0.4rem;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  background-color: #fafaf9;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #c21161;
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(194, 17, 97, 0.08);
}

input[type='checkbox'],
input[type='radio'] {
  width: auto;
  margin-right: 0.5rem;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.form-row .form-group {
  margin-bottom: 0;
}

.error {
  color: var(--danger-color);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.success {
  color: var(--success-color);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* ===== CARDS ===== */
.card {
  background-color: var(--white);
  border-radius: 0.8rem;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(194, 17, 97, 0.12);
  border: 1px solid rgba(194, 17, 97, 0.08);
}

.card-header {
  border-bottom: 2px solid #c21161;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #c21161;
}

/* ===== TABLE ===== */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white);
  box-shadow: 0 4px 12px rgba(194, 17, 97, 0.12);
  border-radius: 0.8rem;
  overflow: hidden;
  border: 1px solid rgba(194, 17, 97, 0.08);
}

thead {
  background: linear-gradient(135deg, #c21161 0%, #a01050 100%);
  color: var(--white);
}

th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--light-border);
}

tbody tr:hover {
  background-color: var(--light-bg);
}

/* ===== ALERT ===== */
.alert {
  padding: 1rem;
  border-radius: 0.4rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--white);
  border-radius: 0.8rem;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  animation: slideIn 0.3s;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
  border-bottom: 2px solid #c21161;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #c21161;
}

.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-light);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--white);
  color: var(--text-dark);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--light-border);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  color: var(--primary-color);
  font-weight: 600;
}

.footer-section p {
  color: var(--text-light);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

.footer-section a {
  color: var(--text-light);
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid var(--light-border);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--text-light);
}

/* ===== UTILITIES ===== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.p-1 {
  padding: 0.5rem;
}

.p-2 {
  padding: 1rem;
}

.p-3 {
  padding: 1.5rem;
}

.hidden {
  display: none;
}

.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ===== AUTHENTICATION PAGES ===== */
.auth-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #fdf8f3 0%, #f5f0eb 100%);
  padding: 2rem;
}

.auth-form-wrapper {
  background-color: var(--white);
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  width: 100%;
  max-width: 450px;
  animation: slideIn 0.5s ease-out;
}

.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.auth-store-name {
  font-size: 1.8rem;
  color: #c21161;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.auth-title {
  font-size: 1.5rem;
  color: #c21161;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.3px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form .form-group {
  margin-bottom: 1rem;
}

.auth-form label {
  color: #333;
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.auth-form input,
.auth-form select {
  width: 100%;
  padding: 0.85rem;
  border: 1.5px solid #e8e0d8;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background-color: #fafaf9;
}

.auth-form input:focus,
.auth-form select:focus {
  outline: none;
  border-color: #c21161;
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(194, 17, 97, 0.08);
}

.auth-form input::placeholder {
  color: #bbb;
}

.forgot-password {
  font-size: 0.85rem;
  color: #c21161;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: -0.5rem;
}

.forgot-password:hover {
  color: #a01050;
  text-decoration: underline;
}

.auth-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c21161' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.auth-btn {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, #c21161 0%, #a01050 100%);
  color: var(--white);
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
  box-shadow: 0 4px 15px rgba(194, 17, 97, 0.25);
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(194, 17, 97, 0.35);
}

.auth-btn:active {
  transform: translateY(0);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: #e8e0d8;
}

.auth-divider span {
  color: #999;
  font-size: 0.85rem;
  font-weight: 500;
}

.btn-google {
  width: 100%;
  padding: 0.85rem;
  background-color: var(--white);
  color: #333;
  border: 1.5px solid #e8e0d8;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.btn-google img {
  width: 18px;
  height: 18px;
}

.btn-google:hover {
  background-color: #fafaf9;
  border-color: #d0c8c0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.auth-links {
  text-align: center;
  margin-top: 1.5rem;
}

.auth-links p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

.auth-links a {
  color: #c21161;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.auth-links a:hover {
  color: #a01050;
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar-container {
    padding: 1rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .products-grid {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

  .modal-content {
    width: 95%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  table {
    font-size: 0.9rem;
  }

  th,
  td {
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  .navbar-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .nav-buttons {
    width: 100%;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

.products-scroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.scroll-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 20;

  width: 48px;
  height: 48px;

  border: none;
  border-radius: 50%;

  background: #c21161;
  color: white;

  font-size: 1.5rem;
  cursor: pointer;

  box-shadow: 0 6px 20px rgba(0,0,0,0.15);

  transition: 0.3s ease;
}

.scroll-btn:hover {
  background: #a01050;
  transform: translateY(-50%) scale(1.08);
}

.scroll-btn.left {
  left: -20px;
}

.scroll-btn.right {
  right: -20px;
}