* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Poppins', sans-serif;
  background: #FFF5F7;
  line-height: 1.5;
  overflow-x: hidden;
  padding-top: 70px;
}

/* ========== NAVIGATION BAR - FIXED NO MOVEMENT ========== */
.navbar {
  background: #FFFFFF;
  padding: 12px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: 65px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  width: 100%;
}

/* Logo - LEFT side */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.navbar-brand img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.navbar-brand span {
  color: #E91E63;
  font-size: 20px;
  font-weight: bold;
}

/* Navigation Links - RIGHT side (fixed position) */
.navbar-links {
  display: flex;
  gap: 30px;
  margin: 0;
  flex-shrink: 0;
  position: absolute;
  right: 30px;
}

.navbar-links a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s;
  padding: 8px 0;
  position: relative;
  white-space: nowrap;
}

.navbar-links a:hover {
  color: #E91E63;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: #E91E63;
  transition: 0.3s;
}

.navbar-links a:hover::after {
  width: 100%;
}

/* User Menu - CENTER side */
.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFF0F5;
  padding: 5px 18px;
  border-radius: 40px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.user-name {
  color: #E91E63;
  font-weight: 500;
  font-size: 14px;
}

.logout-btn-nav {
  background: #f44336;
  color: white;
  border: none;
  padding: 6px 16px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  transition: 0.3s;
}

.logout-btn-nav:hover {
  background: #d32f2f;
}

/* When user menu is hidden, navbar-links stays at right */
.user-menu[style*="display: none"] + .navbar-links {
  right: 30px;
}

/* ========== MODERN POPUP STYLES ========== */
.custom-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; backdrop-filter: blur(0px); }
  to { opacity: 1; backdrop-filter: blur(8px); }
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes popupFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.custom-popup {
  background: white;
  border-radius: 28px;
  max-width: 380px;
  width: 90%;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3);
  animation: scaleIn 0.3s ease;
}

.custom-popup-header {
  padding: 22px 24px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-popup-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.custom-popup-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: 0.3s;
}

.custom-popup-close:hover {
  background: rgba(255,255,255,0.4);
  transform: rotate(90deg);
}

.custom-popup-body {
  padding: 24px;
  line-height: 1.6;
  color: #333;
  font-size: 15px;
  text-align: center;
  background: white;
  word-wrap: break-word;
}

.custom-popup-footer {
  padding: 8px 24px 24px;
  display: flex;
  justify-content: center;
  gap: 15px;
  background: white;
  flex-wrap: wrap;
}

.custom-popup-footer button {
  border: none;
  padding: 10px 30px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.custom-popup-footer button:hover {
  transform: translateY(-2px);
}

.popup-success .custom-popup-header { background: linear-gradient(135deg, #4CAF50, #2E7D32); }
.popup-error .custom-popup-header { background: linear-gradient(135deg, #f44336, #c62828); }
.popup-warning .custom-popup-header { background: linear-gradient(135deg, #ff9800, #e65100); }
.popup-info .custom-popup-header { background: linear-gradient(135deg, #E91E63, #F06292); }

.popup-success .custom-popup-footer button { background: linear-gradient(135deg, #4CAF50, #2E7D32); color: white; }
.popup-error .custom-popup-footer button { background: linear-gradient(135deg, #f44336, #c62828); color: white; }
.popup-warning .custom-popup-footer button { background: linear-gradient(135deg, #ff9800, #e65100); color: white; }
.popup-info .custom-popup-footer button { background: linear-gradient(135deg, #E91E63, #F06292); color: white; }

.popup-cancel-btn {
  background: #e0e0e0 !important;
  color: #666 !important;
}
.popup-confirm-btn {
  background: linear-gradient(135deg, #E91E63, #F06292) !important;
  color: white !important;
}

/* ========== HERO SECTION ========== */
.hero-section {
  background: linear-gradient(135deg, #E91E63, #F06292);
  text-align: center;
  padding: 60px 20px;
  margin: 20px;
  border-radius: 30px;
  color: white;
}

.hero-section h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

.hero-section p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero-btn {
  background: white;
  color: #E91E63;
  padding: 14px 40px;
  border: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ========== FEATURES SECTION ========== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card span {
  font-size: 48px;
  display: block;
  margin-bottom: 15px;
}

.feature-card h3 {
  color: #E91E63;
  margin-bottom: 10px;
  font-size: 20px;
}

.feature-card p {
  color: #666;
  font-size: 14px;
}

/* ========== PRODUCT PAGE ========== */
.shop-container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 20px;
}

.product-main {
  background: white;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.product-detail-inner {
  display: flex;
  flex-wrap: wrap;
}

.product-image {
  flex: 1;
  min-width: 300px;
  background: #FFF0F5;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  max-width: 100%;
  max-height: 350px;
  object-fit: contain;
  border-radius: 16px;
}

.product-info {
  flex: 1;
  min-width: 300px;
  padding: 35px;
}

.product-info h1 {
  font-size: 32px;
  color: #333;
  margin-bottom: 10px;
}

.product-rating {
  color: #FFB74D;
  margin-bottom: 15px;
  font-size: 16px;
}

.product-price {
  font-size: 36px;
  color: #E91E63;
  font-weight: bold;
  margin-bottom: 15px;
}

.product-desc {
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* Quantity Selector */
.qty-section {
  margin: 25px 0;
  padding: 20px;
  background: #FFF0F5;
  border-radius: 20px;
}

.qty-title {
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 15px;
}

.quantity-selector button {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background: #E91E63;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: 0.3s;
}

.quantity-selector button:hover {
  background: #c2185b;
  transform: scale(1.05);
}

.quantity-selector span {
  font-size: 24px;
  font-weight: bold;
  min-width: 60px;
  text-align: center;
}

/* Order Summary */
.order-summary-box {
  background: #FFF0F5;
  border-radius: 20px;
  padding: 20px;
  margin: 25px 0;
}

.order-summary-box h3 {
  margin-bottom: 15px;
  color: #333;
  border-bottom: 2px solid #E91E63;
  display: inline-block;
  padding-bottom: 5px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed #ddd;
}

.summary-row.total {
  border-bottom: none;
  font-weight: bold;
  font-size: 18px;
  color: #E91E63;
  padding-top: 15px;
}

/* Combo Offers */
.combo-section {
  margin: 25px 0;
  padding: 20px;
  background: #E8F5E9;
  border-radius: 20px;
}

.combo-title {
  font-weight: bold;
  margin-bottom: 15px;
  color: #2E7D32;
}

.combo-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.combo-btn {
  flex: 1;
  min-width: 120px;
  padding: 12px 20px;
  background: white;
  border: 2px solid #4CAF50;
  border-radius: 40px;
  color: #4CAF50;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  text-align: center;
}

.combo-btn:hover {
  background: #4CAF50;
  color: white;
  transform: translateY(-2px);
}

/* Delivery Form */
.delivery-form {
  margin: 25px 0;
}

.delivery-form h3 {
  margin-bottom: 15px;
  color: #333;
}

.delivery-form input,
.delivery-form textarea {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  font-size: 14px;
  font-family: inherit;
  transition: 0.3s;
}

.delivery-form input:focus,
.delivery-form textarea:focus {
  outline: none;
  border-color: #E91E63;
}

/* Payment Options */
.payment-options {
  margin: 20px 0;
}

.payment-options label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 25px;
  cursor: pointer;
}

/* Buy Button */
.buy-now-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #E91E63, #F06292);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 15px;
  transition: 0.3s;
}

.buy-now-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(233,30,99,0.3);
}

/* Other Products Section */
.other-products {
  margin-top: 50px;
}

.other-products h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  position: relative;
  display: inline-block;
  width: 100%;
}

.other-products h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #E91E63;
  border-radius: 3px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.other-product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.other-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.other-product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.other-product-card h3 {
  margin: 15px 0 5px;
  font-size: 16px;
  color: #333;
}

.other-product-card .price {
  color: #E91E63;
  font-size: 20px;
  font-weight: bold;
  margin: 5px 0;
}

.other-product-card button {
  background: #E91E63;
  color: white;
  padding: 8px 20px;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  margin: 10px 0 20px;
  font-weight: 600;
}

/* Footer */
footer {
  background: #FFFFFF;
  color: #666;
  text-align: center;
  padding: 25px;
  margin-top: 50px;
  font-size: 14px;
  border-top: 1px solid #f0f0f0;
}

footer a {
  color: #E91E63;
  text-decoration: none;
}

/* Loading Spinner */
.loading-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #FFF5F7;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  flex-direction: column;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #E91E63;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  body {
    padding-top: 110px;
  }
  
  .navbar {
    padding: 10px 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .navbar-brand {
    position: static;
    margin-bottom: 8px;
  }
  
  .navbar-links {
    position: static;
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 20px;
    margin-top: 8px;
  }
  
  .user-menu {
    position: static;
    transform: none;
    order: 2;
    margin: 5px 0;
  }
  
  .hero-section h1 { font-size: 28px; }
  .hero-section p { font-size: 14px; }
  .hero-btn { padding: 10px 25px; font-size: 15px; }
  
  .product-detail-inner { flex-direction: column; }
  .product-image { padding: 30px; }
  .product-image img { max-height: 250px; }
  .product-info { padding: 25px; }
  .product-info h1 { font-size: 24px; }
  .product-price { font-size: 28px; }
  
  .combo-buttons { flex-direction: column; }
  .combo-btn { width: 100%; }
  
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .other-product-card img { height: 140px; }
}

@media (max-width: 480px) {
  body {
    padding-top: 130px;
  }
  
  .navbar-links { gap: 12px; }
  .navbar-links a { font-size: 12px; }
  .user-name { font-size: 12px; }
  .logout-btn-nav { padding: 4px 12px; font-size: 10px; }
  
  .hero-section { padding: 30px 15px; margin: 15px; }
  .hero-section h1 { font-size: 22px; }
  
  .features { gap: 12px; padding: 15px; }
  .feature-card { padding: 15px; }
  .feature-card span { font-size: 28px; }
  .feature-card h3 { font-size: 14px; }
  
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .other-product-card img { height: 100px; }
  .other-product-card h3 { font-size: 12px; }
  .other-product-card .price { font-size: 14px; }
  
  .quantity-selector button { width: 35px; height: 35px; font-size: 16px; }
  .quantity-selector span { font-size: 18px; }
  .buy-now-btn { padding: 12px; font-size: 15px; }
  
  footer { padding: 15px; font-size: 11px; }
}