:root {
  /* Color Palette Refinement */
  --bg-color: #0d1117; 
  --card-bg: #161b22;
  --text-color: #c9d1d9;
  --brand-color: #58a6ff; /* Vibrant Blue */
  --accent-color: #ff7b72; /* Warm Salmon/Red */
  --border-color: #30363d;
  --shadow-color: rgba(88, 166, 255, 0.2);
  --transition-speed: 0.3s;
}

/* Global Reset and Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: 'Inter', 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  scroll-behavior: smooth;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- Layout --- */
.container {
  width: 96%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* --- Header/Navbar --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.brand {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--brand-color);
  text-shadow: 0 0 15px var(--brand-color);
  transition: color var(--transition-speed) ease;
}

.menu {
  display: flex;
  gap: 25px;
}

.menu a {
  padding: 10px 18px;
  border-radius: 6px;
  transition: all var(--transition-speed) ease;
  font-weight: 500;
  position: relative;
}

.menu a:hover {
  color: var(--brand-color);
}

.menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 3px;
  background-color: var(--accent-color);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: translateX(-50%);
}

.menu a:hover::after,
.menu a.active::after {
  width: 100%;
}

.menu a.active {
  color: var(--accent-color);
  font-weight: 600;
}

/* --- Slider Section Styling --- */
.slider-section {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 30px auto;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 15px var(--shadow-color);
  border: 1px solid var(--border-color);
}

.slider-container {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide {
  min-width: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  display: block;
  object-fit: cover;
  min-height: 200px;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.6);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 5;
  font-size: 24px;
  border-radius: 50%;
  transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
  backdrop-filter: blur(2px);
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

/* --- Products/Grid Section --- */
.products-section {
  padding: 40px 0 100px;
}

.product-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.product-card {
  background-color: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.product-card:hover {
  transform: translateY(-10px);
  border-color: var(--brand-color);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 25px var(--shadow-color);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-details {
  padding: 15px;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.card-tag {
  display: inline-block;
  font-size: 0.85rem;
  background-color: var(--border-color);
  color: var(--brand-color);
  padding: 6px 12px;
  border-radius: 30px;
  font-weight: 600;
}

/* --- Footer Styling --- */
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  background-color: #11141a;
}

.contact-info p {
  font-size: 1rem;
  color: #99aab5;
  margin-bottom: 12px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  transition: all var(--transition-speed) ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.social-btn img {
  filter: invert(1);
  width: 22px;
  height: 22px;
}

.social-btn.whatsapp {
  background-color: #25D366;
  color: white;
}

.social-btn.discord {
  background-color: #5865F2;
  color: white;
}

.copyright {
  font-size: 0.9rem;
  color: #4a5c71;
  margin-top: 10px;
}

/* --- Page/Details Content --- */
.page-container {
  padding: 30px 0;
}

.page-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.preview-box {
  background-color: var(--card-bg);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  padding: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.preview-box img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.block {
  background-color: var(--card-bg);
  border-radius: 16px;
  padding: 25px;
  border: 1px solid var(--border-color);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.block h2 {
  font-size: 2rem;
  color: var(--brand-color);
  margin-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.note {
  font-size: 1rem;
  color: #7b8e9f;
  background-color: #1e2630;
  padding: 10px;
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
  margin-top: 15px;
}

/* Form Elements */
.input-group {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-group input,
.input-group textarea {
  background-color: #21262d;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px;
  color: var(--text-color);
  font-size: 1rem;
  outline: none;
  transition: all var(--transition-speed) ease;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--brand-color);
  box-shadow: 0 0 10px var(--shadow-color);
  background-color: #2d333b;
}

/* Options Grid */
.option-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  margin-top: 20px;
}

.option-card {
  background-color: #21262d;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.option-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
}

.option-card.active {
  border-color: var(--brand-color);
  box-shadow: 0 0 15px var(--shadow-color);
  background-color: #2d333b;
}

.option-card .name {
  font-weight: 700;
  color: var(--text-color);
  font-size: 1.1rem;
}

.option-card .price {
  font-size: 1rem;
  color: var(--brand-color);
  margin-top: 6px;
  font-weight: 600;
}

/* --- Quantity and Price --- */
.row-flex {
  display: flex; 
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding: 15px 0;
  border-top: 1px dashed var(--border-color);
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 15px;
}

.quantity-control button {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: #21262d;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.quantity-control button:hover {
  border-color: var(--brand-color);
  background-color: #2d333b;
  transform: scale(1.05);
}

.quantity-control span {
  font-weight: 700;
  min-width: 25px;
  text-align: center;
  font-size: 1.2rem;
}

.total-price {
  margin-left: auto;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-color);
}

.btn {
  display: block;
  width: 100%;
  padding: 15px;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--bg-color);
  margin-top: 30px;
  box-shadow: 0 8px 20px rgba(255, 123, 114, 0.4);
}

.btn-primary:hover {
  background-color: #ff9990;
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(255, 123, 114, 0.6);
}

/* --- Modal Styling --- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background-color: var(--card-bg);
  border-radius: 20px;
  max-width: 550px;
  width: 100%;
  padding: 30px;
  border: 1px solid var(--border-color);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.modal.show .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.modal-header h3 {
  font-size: 1.8rem;
  color: var(--brand-color);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 2rem;
  cursor: pointer;
  transition: color var(--transition-speed) ease;
}

.close-btn:hover {
  color: var(--accent-color);
}

/* --- Payment List Styling (Improved) --- */
.payment-list {
  display: grid;
  gap: 12px;
  margin-bottom: 25px;
}

.pay-item {
  background-color: #21262d;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--brand-color);
  border-radius: 8px;
  padding: 15px;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.pay-item:hover {
  background-color: #2a3038;
  border-color: var(--brand-color);
}

.pay-item strong {
  color: var(--accent-color); 
  font-weight: 700;
  font-size: 1.1rem;
}
/* -------------------------------------- */

.modal-total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: var(--accent-color);
  padding: 10px 0;
  border-top: 2px solid var(--border-color);
}

.form-grid {
  display: grid;
  gap: 20px;
}

.success-message,
.error-message {
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: none;
  font-weight: 600;
  animation: fadeIn 0.6s ease-out;
  font-size: 1.1rem;
}

.success-message {
  background-color: #1f3527;
  border: 1px solid #3d794b;
  color: #a4e5a9;
}

.error-message {
  background-color: #351f1f;
  border: 1px solid #793d3d;
  color: #e5a4a4;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- MEDIA QUERIES (Mobile Adjustments) --- */
@media (max-width: 768px) {
  .navbar {
    height: 70px;
  }
  .brand {
    font-size: 24px;
  }
  .menu {
    gap: 15px;
  }
  .menu a {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  
  .products-section {
    padding: 30px 0 60px;
  }
  .product-grid {
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  
  /* Responsive Fix for row-flex (Kept Logic Intact, only adjusted flow for mobile readability) */
  .row-flex {
    flex-direction: column; 
    align-items: stretch;
    gap: 15px;
    padding: 10px 0;
  }
  .quantity-control {
    justify-content: space-between;
  }
  .total-price {
    margin-left: 0;
    text-align: right;
    font-size: 1.3rem;
  }
  /* End Responsive Fix */

  .block h2 {
    font-size: 1.8rem;
  }
}

/* --- MEDIA QUERIES (Desktop/Tablet Layout) --- */
@media (min-width: 992px) { 
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .page-content {
    grid-template-columns: 400px 1fr;
  }
  
  /* Desktop row-flex: Reset to original/intended layout */
  .row-flex {
    flex-direction: row; 
    align-items: center;
  }
  .total-price {
    margin-left: auto;
    text-align: left;
  }
}
