@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== NAVBAR ===== */
.nav-transparent {
  background: transparent !important;
  backdrop-filter: none !important;
}

.nav-glass {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px) !important;
}

/* ===== LOGO ===== */
.logo-text {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #0A66C2, #FF6B00);
  border-radius: 2px;
  margin: 0 auto;
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, #0A66C2, #FF6B00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(255, 107, 0, 0); }
}

.pulse-glow {
  animation: pulseGlow 2s infinite;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-up, .fade-in, .slide-in-left, .slide-in-right, .scale-in {
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:not(.visible) {
  transform: translateY(30px);
}

.fade-in.visible {
  opacity: 1;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-left:not(.visible) {
  transform: translateX(-40px);
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right:not(.visible) {
  transform: translateX(40px);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

.scale-in:not(.visible) {
  transform: scale(0.9);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ===== CARD HOVER ===== */
.card-hover {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.12);
}

/* ===== IMAGE ZOOM ===== */
.img-zoom-container {
  overflow: hidden;
}

.img-zoom-container img {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.img-zoom-container:hover img {
  transform: scale(1.08);
}

/* ===== PRODUCT BADGE ===== */
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 102, 194, 0.9);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

/* ===== STAR RATING ===== */
.star-rating {
  color: #f59e0b;
  font-weight: 700;
}

/* ===== BUTTON RIPPLE ===== */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,0.3) 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform 0.5s, opacity 0.5s;
}

.btn-ripple:active::after {
  transform: scale(0, 0);
  opacity: 0.5;
  transition: 0s;
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: white;
  z-index: 60;
  padding: 80px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: -5px 0 30px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

/* ===== HAMBURGER ===== */
.hamburger {
  width: 28px;
  height: 20px;
  position: relative;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: white;
  position: absolute;
  transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }

.hamburger.active span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
  background: #1e293b;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
  background: #1e293b;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #0A66C2, #FF6B00);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(10, 102, 194, 0.4);
  z-index: 50;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(10, 102, 194, 0.5);
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 100;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===== LINE CLAMP ===== */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #0A66C2, #FF6B00);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0A66C2;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .mobile-menu {
    width: 85%;
  }
  
  .section-divider {
    width: 40px;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

/* ===== CHECKOUT / ORDER MODAL ===== */
.order-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.order-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.order-modal-box {
  position: relative;
  background: white;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 2.5rem;
  max-width: 28rem;
  width: 100%;
  text-align: center;
}

.success-icon, .error-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.success-icon { background-color: #dcfce7; }
.error-icon { background-color: #fee2e2; }

.success-details {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1.75rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Primary checkout button */
.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  color: white;
  font-weight: 700;
  padding: 1rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(22, 163, 74, 0.3);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(90deg, #22c55e, #16a34a);
  box-shadow: 0 20px 25px -5px rgba(22, 163, 74, 0.35);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

/* Submit spinner */
.spinner-icon {
  width: 1.25rem;
  height: 1.25rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Field validation error state */
.checkout-field-error {
  border-color: #ef4444 !important;
}

.field-error {
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ===== PRINT ===== */
@media print {
  .no-print {
    display: none !important;
  }
}
