/* ==========================================================================
   ABAJ LIGHTING COMPONENT STYLES
   ========================================================================== */

/* 1. Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, var(--primary-navy), var(--secondary-blue));
  color: var(--text-light);
  font-size: 0.85rem;
  text-align: center;
  padding: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-orange);
}

/* 2. Glassmorphic Header */
.header {
  position: sticky;
  top: 0;
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: var(--transition-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 1px;
}

.logo img {
  height: 62px;
  width: 62px;
  border-radius: 50%;
  background: var(--bg-white);
  padding: 2px;
  border: 2px solid var(--brand-orange);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  object-fit: cover;
}

.logo:hover img {
  transform: rotate(5deg) scale(1.05);
}

.logo span {
  color: var(--primary-navy);
}

.logo span b {
  color: var(--brand-orange);
}

/* Navigation Menu */
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--primary-navy);
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-orange);
  transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 500;
}

.dropdown-menu a:hover {
  background: rgba(224, 83, 29, 0.08);
  color: var(--brand-orange);
}

/* Actions in Header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.action-btn {
  font-size: 1.2rem;
  color: var(--primary-navy);
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: var(--transition-fast);
}

.action-btn:hover {
  background: rgba(224, 83, 29, 0.1);
  color: var(--brand-orange);
}

.badge-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--brand-orange);
  color: var(--bg-white);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(224, 83, 29, 0.3);
}

/* Hamburger menu for mobile */
.hamburger {
  display: none;
  font-size: 1.4rem;
  color: var(--primary-navy);
}

/* 3. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-hover));
  color: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-navy), var(--secondary-blue));
  transition: var(--transition-normal);
  z-index: -1;
  opacity: 0;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  border: 2px solid var(--primary-navy);
  color: var(--primary-navy) !important;
  background: transparent;
}

.btn-secondary:hover {
  background: var(--primary-navy) !important;
  color: var(--bg-white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary:visited {
  color: var(--primary-navy) !important;
  border-color: var(--primary-navy) !important;
}

.btn-secondary:active,
.btn-secondary:focus {
  background: var(--primary-navy) !important;
  color: var(--bg-white) !important;
  border-color: var(--primary-navy) !important;
}

.btn-white {
  background: var(--bg-white);
  color: var(--primary-navy);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  background: var(--primary-navy);
  color: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* 4. Product Cards */
.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(224, 83, 29, 0.4);
}

.product-card-media {
  position: relative;
  padding-top: 100%;
  overflow: hidden;
  background: #F1F5F9;
}

.product-card-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.product-card:hover .product-card-media img {
  transform: scale(1.08);
}

.product-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary-navy);
  color: var(--text-light);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 2;
  text-transform: uppercase;
}

.product-card-badge.sale {
  background: var(--brand-orange);
}

.product-card-wishlist {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  color: var(--text-dark);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 2;
  transition: var(--transition-fast);
}

.product-card-wishlist:hover {
  background: var(--danger);
  color: var(--bg-white);
  transform: scale(1.1);
}

.product-card-wishlist.active {
  background: var(--bg-white);
  color: var(--danger);
}

.product-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-category {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  font-weight: 600;
}

.product-card-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-bottom: 10px;
  line-height: 1.4;
  height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--warm-amber);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.product-card-rating span {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: 4px;
}

.product-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 16px;
}

.product-card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-orange);
}

.product-card-mrp {
  font-size: 0.95rem;
  text-decoration: line-through;
  color: var(--text-muted-light);
}

.product-card-discount {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--success);
}

.product-card-btn {
  width: 100%;
  padding: 12px;
  background: var(--bg-light);
  color: var(--primary-navy);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.product-card-btn:hover {
  background: var(--primary-navy);
  color: var(--bg-white);
  border-color: var(--primary-navy);
}

/* 5. Category Card */
.category-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  padding: 40px 24px;
  text-align: center;
  transition: var(--transition-normal);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-orange);
  background: linear-gradient(to bottom, var(--bg-white), rgba(224, 83, 29, 0.02));
}

.category-icon {
  font-size: 2.8rem;
  color: var(--brand-orange);
  margin-bottom: 20px;
  transition: var(--transition-fast);
}

.category-card:hover .category-icon {
  transform: scale(1.1);
}

.category-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 12px;
}

.category-explore {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-orange);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.category-explore i {
  transition: var(--transition-fast);
}

.category-card:hover .category-explore i {
  transform: translateX(4px);
}

/* 6. Promotional Banner */
.promo-banner {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-blue) 100%);
  color: var(--text-light);
  padding: 80px 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(224, 83, 29, 0.15);
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -30%;
  width: 80%;
  height: 180%;
  background: radial-gradient(circle, rgba(224, 83, 29, 0.1) 0%, transparent 60%);
  transform: rotate(30deg);
  pointer-events: none;
}

/* 7. Toast Notification */
.toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: var(--bg-white);
  color: var(--text-dark);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  min-width: 320px;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  border-left: 5px solid var(--brand-orange);
  border-top: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.toast.success {
  border-left-color: var(--success);
}

.toast.error {
  border-left-color: var(--danger);
}

.toast i {
  font-size: 1.25rem;
}

.toast.success i {
  color: var(--success);
}

.toast.error i {
  color: var(--danger);
}

@keyframes toastIn {
  from {
    transform: translateY(20px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* 8. Modern Modals */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-normal);
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 800px;
  padding: 40px;
  position: relative;
  transform: translateY(30px);
  transition: var(--transition-normal);
  border: 1px solid var(--border-light);
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.5rem;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--bg-light);
}

.modal-close:hover {
  background: var(--brand-orange);
  color: var(--bg-white);
}

/* 9. FAQs Accordion */
.accordion {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--bg-white);
}

.accordion-header {
  padding: 20px 24px;
  font-weight: 700;
  font-family: var(--font-title);
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: var(--bg-white);
  transition: var(--transition-fast);
}

.accordion-header:hover {
  background: rgba(224, 83, 29, 0.02);
}

.accordion-header i {
  transition: var(--transition-fast);
  color: var(--brand-orange);
}

.accordion.active .accordion-header i {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.accordion.active .accordion-body {
  max-height: 200px;
  padding-bottom: 20px;
}

/* 10. Testimonials */
.testimonial-card {
  background: var(--bg-white);
  padding: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(224, 83, 29, 0.2);
}

.star-rating {
  color: var(--warm-amber);
  margin-bottom: 16px;
}

.testimonial-quote {
  font-style: italic;
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 700;
  font-family: var(--font-title);
  color: var(--primary-navy);
}

.testimonial-author span {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: 6px;
}

/* 11. WhatsApp Floating button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  font-size: 2rem;
  transition: var(--transition-fast);
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 24px rgba(37, 211, 102, 0.5);
}

/* 12. Footer component */
.footer {
  background: var(--primary-navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 80px 0 40px;
  border-top: 4px solid var(--brand-orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-logo {
  margin-bottom: 24px;
}

.footer-logo img {
  height: 70px;
  width: 70px;
  border-radius: 50%;
  background: var(--bg-white);
  padding: 2px;
  border: 2px solid var(--brand-orange);
  object-fit: cover;
}

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted-light);
  margin-bottom: 24px;
}

.footer-heading {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--brand-orange);
}

.footer-links li {
  margin-bottom: 14px;
}

.footer-links a {
  font-size: 0.95rem;
  color: var(--text-muted-light);
}

.footer-links a:hover {
  color: var(--brand-orange);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  font-size: 0.9rem;
  color: var(--text-muted-light);
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background: var(--brand-orange);
  transform: translateY(-3px);
}

/* 13. Mobile Bottom Tab Navigation */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-light);
  z-index: 998;
  height: 60px;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  gap: 4px;
}

.mobile-nav-item i {
  font-size: 1.25rem;
}

.mobile-nav-item.active {
  color: var(--brand-orange);
}

/* 14. Responsive Layout overrides */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  /* Hide search, wishlist, and login buttons in mobile header since they are in the bottom tab bar */
  .header-actions .action-btn[title="Search catalog"],
  .header-actions .action-btn[title="Favorites"],
  .header-actions .action-btn[title="Account Login"] {
    display: none;
  }
  
  .header-inner {
    padding: 0 10px;
  }
  
  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(224, 83, 29, 0.05);
    color: var(--brand-orange);
    transition: var(--transition-fast);
  }
  
  .hamburger:hover {
    background: var(--brand-orange);
    color: var(--bg-white);
  }
  
  .nav {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - var(--header-height));
    background: var(--bg-white);
    flex-direction: column;
    padding: 30px;
    align-items: flex-start;
    gap: 20px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    overflow-y: auto;
    border-right: 1px solid var(--border-light);
  }
  
  .nav.active {
    left: 0;
  }
  
  /* Make mobile dropdowns expand like collapsibles */
  .nav-dropdown {
    width: 100%;
  }
  
  .nav-dropdown .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: all;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    padding-top: 8px;
    padding-bottom: 0;
    display: none;
    width: 100%;
    background: transparent;
  }
  
  /* Trigger layout when expanded on touch */
  .nav-dropdown.active .dropdown-menu {
    display: block;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .mobile-bottom-nav {
    display: flex;
  }
  
  body {
    padding-bottom: 60px; /* Spacer for bottom menu */
  }
}
