/* style.css - Consolidated styles for all Altira pages */

/* ============================================
   BASE & RESET
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', sans-serif;
  background-color: #f9faf6;
  color: #1a1c1a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ============================================
   MATERIAL SYMBOLS
   ============================================ */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
}

.material-symbols-outlined.fill {
  font-variation-settings: 'FILL' 1, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Shadows */
.shadow-natural {
  box-shadow: 0px 10px 30px rgba(27, 67, 50, 0.08);
}

.shadow-natural-hover {
  transition: box-shadow 0.3s ease;
}
.shadow-natural-hover:hover {
  box-shadow: 0px 16px 40px rgba(27, 67, 50, 0.14);
}

/* Botanical Pattern Background */
.bg-botanical-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.83-54.627 54.627-.83-.83L54.627 0zM0 54.627l.83.83L0 55.457v-.83zm54.627-54.627l.83.83v-.83h-.83z' fill='%231b4332' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Float Animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}
.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Fade In Right */
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
.animate-fade-in-right {
  animation: fadeInRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

/* Standard Fade Up */
.reveal-hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Product Card Reveal (with scale + rotate) */
.product-reveal {
  opacity: 0;
  transform: scale(0.82) rotate(-4deg) translateY(20px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.product-reveal-visible {
  opacity: 1;
  transform: scale(1) rotate(0deg) translateY(0);
}

/* ============================================
   CARD HOVER EFFECTS
   ============================================ */
.card-hover {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0px 16px 32px rgba(27, 67, 50, 0.14);
}

.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(27, 67, 50, 0.12);
}

/* ============================================
   NAVIGATION
   ============================================ */

/* Sticky Navigation */
.sticky-nav {
  position: sticky;
  top: 88px;
}
@media (max-width: 1024px) {
  .sticky-nav {
    position: relative;
    top: 0;
  }
}

/* Mobile Menu */
.mobile-menu {
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease,
              visibility 0.3s ease;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
}
.mobile-menu.open {
  max-height: 700px;
  opacity: 1;
  visibility: visible;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.product-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(27, 67, 50, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(27, 67, 50, 0.10);
}

/* Quick Add Button (fade in on hover) */
.quick-add {
  transition: all 0.2s ease;
  opacity: 0;
  transform: translateY(8px);
}
.product-card:hover .quick-add {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   QUANTITY BUTTONS
   ============================================ */
.qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid #e2e3e0;
  background: transparent;
  transition: all 0.15s ease;
  color: #1a1c1a;
  font-size: 18px;
  cursor: pointer;
}
.qty-btn:hover {
  background: #b1f0ce;
  border-color: #2c694e;
}
.qty-btn:active {
  transform: scale(0.92);
}

/* ============================================
   FORMS
   ============================================ */
.form-input-focus:focus {
  border-color: #012d1d;
  background-color: rgba(177, 240, 206, 0.12);
  outline: none;
  box-shadow: none;
}

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-item.open .faq-panel {
  grid-template-rows: 1fr;
}
.faq-item.open .faq-trigger .material-symbols-outlined {
  transform: rotate(180deg);
}
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-out;
}
.faq-panel > div {
  overflow: hidden;
}

details > summary {
  list-style: none;
  cursor: pointer;
}
details > summary::-webkit-details-marker {
  display: none;
}

/* ============================================
   BACK TO TOP
   ============================================ */
#backToTop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(10px);
}
#backToTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ============================================
   CART COUNT BUMP ANIMATION
   ============================================ */
#cartCount.bump,
#cartCountMobile.bump {
  animation: bump 0.35s ease;
}
@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ============================================
   THUMBNAIL GALLERY
   ============================================ */
.thumb-img {
  transition: all 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
}
.thumb-img.active {
  border-color: #2c694e;
  box-shadow: 0 0 0 3px rgba(44, 105, 78, 0.2);
}
.thumb-img:hover {
  border-color: #2c694e;
}

/* ============================================
   TIMELINE (for Our Story & Track Order)
   ============================================ */
.timeline-dot {
  width: 14px;
  height: 14px;
  background: #2c694e;
  border-radius: 50%;
  border: 3px solid #b1f0ce;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e2e3e0;
  transform: translateX(-50%);
  z-index: 0;
}

/* Mobile Timeline */
@media (max-width: 640px) {
  .timeline-line {
    left: 20px;
    transform: none;
  }
  .timeline-dot {
    margin-left: 6px;
  }
}

/* Timeline Step */
.timeline-step {
  display: flex;
  gap: 1rem;
  position: relative;
  padding-bottom: 2rem;
}
.timeline-step:last-child {
  padding-bottom: 0;
}
.timeline-step .step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #e2e3e0;
  color: #717973;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}
.timeline-step.active .step-icon {
  background: #2c694e;
  color: #ffffff;
}
.timeline-step.completed .step-icon {
  background: #b1f0ce;
  color: #012d1d;
}
.timeline-step .step-line {
  position: absolute;
  left: 20px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: #e2e3e0;
  z-index: 0;
}
.timeline-step:last-child .step-line {
  display: none;
}
.timeline-step.active .step-line,
.timeline-step.completed .step-line {
  background: #2c694e;
}
.step-content {
  flex: 1;
  padding-top: 0.25rem;
}
.step-content h4 {
  font-weight: 600;
  color: #012d1d;
  font-size: 1rem;
}
.step-content p {
  color: #414844;
  font-size: 0.875rem;
  margin-top: 0.125rem;
}

/* ============================================
   POLICY / LEGAL PAGES
   ============================================ */
.policy-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(27, 67, 50, 0.06);
}

.policy-section {
  scroll-margin-top: 100px;
}
.policy-section h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: #012d1d;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.policy-section h3 .material-symbols-outlined {
  font-size: 1.5rem;
  color: #2c694e;
}
.policy-section p,
.policy-section li {
  color: #414844;
  line-height: 1.7;
  font-size: 0.95rem;
}
.policy-section ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}
.policy-section ul li {
  margin-bottom: 0.25rem;
}

/* Highlight Box */
.highlight-box {
  background: #f3f4f1;
  border-left: 4px solid #2c694e;
  padding: 1rem 1.25rem;
  border-radius: 0 12px 12px 0;
  margin: 1rem 0;
}

/* Divider Leaf */
.divider-leaf {
  border-top: 2px solid #b1f0ce;
  width: 60px;
  margin: 0 auto;
}

/* ============================================
   SOCIAL BUTTONS
   ============================================ */
.social-btn {
  transition: all 0.15s ease;
  border: 1px solid #e2e3e0;
  background: transparent;
  color: #1a1c1a;
}
.social-btn:hover {
  background: #f3f4f1;
  border-color: #2c694e;
}
.social-btn:active {
  transform: scale(0.96);
}

/* ============================================
   CHECKOUT / CART
   ============================================ */
.cart-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(27, 67, 50, 0.06);
}

.cart-item {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.cart-item.removing {
  opacity: 0;
  transform: translateX(20px);
}

.checkout-summary {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(27, 67, 50, 0.06);
}

.divider-light {
  border-top: 1px solid #e2e3e0;
}

/* ============================================
   LOGIN / REGISTER CARDS
   ============================================ */
.login-card,
.register-card {
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 20px 50px rgba(27, 67, 50, 0.08);
}

/* ============================================
   SHIPPING CARD (Shipping & Returns page)
   ============================================ */
.shipping-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.shipping-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(27, 67, 50, 0.10);
}

/* ============================================
   REMOVE ITEM
   ============================================ */
.remove-item {
  color: #717973;
  transition: color 0.15s ease;
  cursor: pointer;
}
.remove-item:hover {
  color: #ba1a1a;
}

/* ============================================
   FILTER BUTTONS (Products page)
   ============================================ */
.filter-btn {
  transition: all 0.2s ease;
  border: 1px solid #e2e3e0;
  color: #414844;
  background: transparent;
}
.filter-btn:hover {
  border-color: #2c694e;
  color: #012d1d;
}
.filter-btn.active {
  border-color: #2c694e;
  background: #b1f0ce;
  color: #012d1d;
  font-weight: 600;
}

/* ============================================
   SECTION PADDING HELPERS
   ============================================ */
.section-padding {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
@media (min-width: 1024px) {
  .section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

/* ============================================
   FOCUS VISIBLE (Accessibility)
   ============================================ */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #2c694e;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================
   PASSWORD REQUIREMENTS
   ============================================ */
.password-requirement {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #717973;
  transition: color 0.2s ease;
}
.password-requirement.met {
  color: #2c694e;
}
.password-requirement .material-symbols-outlined {
  font-size: 1rem;
}

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
@media (max-width: 640px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 641px) {
  .hide-desktop {
    display: none !important;
  }
}