/* ==========================================================================
   Vegarix v3 Deluxe - Refined Theme Overrides
   Removing harsh borders, rounded chunky boxes, adding sleek luxury aesthetic
   ========================================================================== */

/* Header Search & Cart Buttons: Borderless, sleek, modern */
.header-action-btn,
.header-action-btn.search-toggle-btn,
.header-icon-cart,
.header-menu-btn {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text-main) !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.15s ease !important;
  border-radius: 8px !important;
}

.header-action-btn:hover,
.header-action-btn.search-toggle-btn:hover,
.header-icon-cart:hover,
.header-menu-btn:hover {
  background: rgba(15, 23, 42, 0.04) !important;
  color: var(--primary) !important;
  transform: translateY(-1px) scale(1.05) !important;
}

.header-action-btn:active,
.header-icon-cart:active {
  transform: scale(0.95) !important;
}

.store-cart-badge {
  background: var(--accent) !important;
  color: #FFFFFF !important;
  border: 2px solid #FFFFFF !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35) !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.cart-bounce {
  animation: cartBadgePop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@keyframes cartBadgePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4) translateY(-3px); }
  100% { transform: scale(1); }
}

/* Header Search Input: Clean borderless pill with soft shadow */
.desktop-search-form {
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: var(--radius-full) !important;
  background: #F8FAFC !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}

.desktop-search-form:focus-within {
  border-color: var(--primary) !important;
  background: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
}

.search-submit-btn {
  border: none !important;
  background: transparent !important;
  color: var(--text-muted) !important;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease !important;
}

.desktop-search-form:focus-within .search-submit-btn {
  color: var(--primary) !important;
}

/* ==========================================================================
   Zero-Gap Sticky Footer & Body Layout
   Eliminates any unwanted blank/black/white strip beneath footer
   ========================================================================== */
html, body {
  min-height: 100vh !important;
  margin: 0 !important;
}

body {
  display: flex !important;
  flex-direction: column !important;
  padding-bottom: 0 !important;
  background-color: var(--bg-body, #ffffff) !important;
}

main,
.store-homepage-main,
.store-shop-main,
.store-cart-main,
.store-checkout-main,
.store-track-main,
.store-product-single-main {
  flex: 1 0 auto !important;
}

.store-site-footer {
  margin-top: auto !important;
  margin-bottom: 0 !important;
  background: #0B1120 !important;
}

@media (max-width: 991px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .store-site-footer {
    padding-bottom: calc(32px + 64px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0 !important;
  }
  .store-site-footer {
    padding-bottom: 32px !important;
  }
}

/* ==========================================================================
   Luxury 4-Column Main Store Footer
   ========================================================================== */
.store-site-footer {
  background: #0B1120 !important;
  color: #94A3B8 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding: 56px 0 32px !important;
}

@media (max-width: 991px) {
  .store-site-footer {
    padding-bottom: calc(32px + 64px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

.store-footer-grid {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1.3fr 1.6fr !important;
  gap: 40px !important;
}

/* Col 1: Brand & Socials */
.footer-col-brand {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.footer-logo-link {
  display: inline-block !important;
  text-decoration: none !important;
}

.footer-logo-img {
  max-height: 42px !important;
  width: auto !important;
  object-fit: contain !important;
}

.store-brand-text {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #FFFFFF !important;
  letter-spacing: -0.5px !important;
}

.footer-about-text {
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  color: #94A3B8 !important;
  margin: 0 !important;
  max-width: 320px !important;
}

.footer-social-strip {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 4px !important;
}

.social-chip {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #94A3B8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.social-chip:hover {
  background: var(--primary) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px) !important;
  border-color: var(--primary) !important;
}

/* Col 2 & 3: Headings & Lists */
.footer-heading {
  color: #FFFFFF !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin: 0 0 18px 0 !important;
  position: relative !important;
  padding-bottom: 8px !important;
}

.footer-heading::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 24px !important;
  height: 2px !important;
  background: var(--primary) !important;
  border-radius: 2px !important;
}

.footer-nav-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 11px !important;
}

.footer-nav-list li a {
  color: #94A3B8 !important;
  font-size: 13.5px !important;
  text-decoration: none !important;
  transition: color 0.15s ease, transform 0.15s ease !important;
  display: inline-block !important;
}

.footer-nav-list li a:hover {
  color: #FFFFFF !important;
  transform: translateX(3px) !important;
}

/* Customer Care */
.footer-contact-block {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.fc-row {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  font-size: 13.5px !important;
}

.fc-label {
  color: #64748B !important;
  font-weight: 600 !important;
  min-width: 65px !important;
  flex-shrink: 0 !important;
}

.fc-val {
  color: #CBD5E1 !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

a.fc-val:hover {
  color: #FFFFFF !important;
}

/* Col 4: Verified Payment Gateways */
.footer-payment-intro {
  font-size: 13px !important;
  color: #94A3B8 !important;
  line-height: 1.5 !important;
  margin: 0 0 14px 0 !important;
}

.footer-gateway-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  align-items: center !important;
}

.gateway-badge {
  background: #FFFFFF !important;
  border-radius: 10px !important;
  padding: 5px !important;
  width: 46px !important;
  height: 46px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease !important;
}

.gateway-badge:hover {
  transform: translateY(-2px) scale(1.06) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28) !important;
}

.gateway-badge img {
  height: 34px !important;
  width: 34px !important;
  object-fit: contain !important;
  display: block !important;
  border-radius: 6px !important;
}

/* Footer Bottom Bar */
.store-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  margin-top: 48px !important;
  padding-top: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
}

.footer-copyright-text {
  font-size: 13px !important;
  color: #64748B !important;
}

.footer-copyright-text strong {
  color: #CBD5E1 !important;
}

.footer-credit-text {
  font-size: 12.5px !important;
  color: #64748B !important;
}

.footer-credit-text a {
  color: #94A3B8 !important;
  text-decoration: underline !important;
}

@media (max-width: 991px) {
  .store-footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 32px !important;
  }
}

@media (max-width: 575px) {
  .store-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .store-footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    justify-content: center !important;
  }
}

/* Modern Glassmorphic / Sleek Custom Toast Notifications */
#vegarixToastContainer {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 380px;
  width: calc(100% - 48px);
}

.vegarix-toast {
  pointer-events: auto;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.15), 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.85);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.25s ease, opacity 0.25s ease;
  overflow: hidden;
  position: relative;
}

.vegarix-toast.hiding {
  animation: toastSlideOut 0.25s ease forwards;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(110%) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateX(110%) scale(0.95);
    opacity: 0;
  }
}

.vegarix-toast-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.vegarix-toast.toast-success .vegarix-toast-icon {
  background: #DCFCE7;
  color: #16A34A;
}

.vegarix-toast.toast-error .vegarix-toast-icon {
  background: #FEE2E2;
  color: #EF4444;
}

.vegarix-toast.toast-warning .vegarix-toast-icon {
  background: #FEF3C7;
  color: #D97706;
}

.vegarix-toast.toast-info .vegarix-toast-icon {
  background: #E0F2FE;
  color: #0284C7;
}

.vegarix-toast-content {
  flex: 1;
  min-width: 0;
}

.vegarix-toast-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.35;
}

.vegarix-toast-msg {
  font-size: 12.5px;
  color: #64748B;
  margin-top: 2px;
  line-height: 1.45;
}

.vegarix-toast-close {
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.vegarix-toast-close:hover {
  color: #0F172A;
}

/* Progress bar at bottom of toast */
.vegarix-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2.5px;
  background: var(--primary);
  opacity: 0.7;
  width: 100%;
  animation: toastProgress 3.5s linear forwards;
}

/* ==========================================================================
   Refined Modern Button Sizing & Proportions (Compact, Elegant, Non-Bulky)
   ========================================================================== */

/* 1. Product Detail Primary Order & Cart Buttons */
.btn-luxury-buynow {
  height: 44px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 0 18px !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12) !important;
  letter-spacing: 0.1px !important;
}

.luxury-qty-control {
  height: 44px !important;
  border-radius: 8px !important;
}

.l-qty-btn {
  width: 32px !important;
  font-size: 16px !important;
}

.l-qty-input {
  width: 40px !important;
  font-size: 14px !important;
}

.btn-luxury-addcart,
.btn-luxury-whatsapp {
  height: 38px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  padding: 0 14px !important;
}

/* 2. Global Button Scale Down */
.btn-v3-lg {
  height: 42px !important;
  padding: 0 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
}

.btn-v3-md {
  height: 38px !important;
  padding: 0 16px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
}

.btn-v3-sm {
  height: 32px !important;
  padding: 0 12px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
}

/* 3. Product Card Order Button */
.product-card-btn-order,
.btn-card-order {
  height: 35px !important;
  padding: 0 12px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
}

/* 4. Checkout Place Order Button */
.btn-checkout-confirm {
  height: 44px !important;
  padding: 0 20px !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12) !important;
}

/* 5. Mobile Sticky CTA */
.mobile-sticky-cta {
  padding: 8px 16px !important;
}

.mobile-sticky-cta .btn-v3-lg {
  height: 40px !important;
  font-size: 13.5px !important;
  border-radius: 8px !important;
}

@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

/* ==========================================================================
   Comprehensive Icon-Button & Controls Refinement
   Removes excessive boxy/harsh borders across all buttons and icon triggers
   ========================================================================== */

/* 1. Header & Navigation Icon Buttons */
.header-action-btn,
.header-icon-cart,
.header-menu-btn,
.search-submit-btn,
.btn-modal-search-close,
.btn-clear-search,
.drawer-close-btn,
.drawer-close,
.fmd-close {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--text-main, #0F172A) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border-radius: 8px !important;
}

/* Ensure mobile-only actions are strictly hidden on desktop */
@media (min-width: 992px) {
  .header-action-btn.search-toggle-btn,
  .mobile-only-action {
    display: none !important;
  }
  .desktop-search-container {
    display: block !important;
  }
}

@media (max-width: 991px) {
  .desktop-search-container {
    display: none !important;
  }
  .header-action-btn.search-toggle-btn,
  .mobile-only-action {
    display: inline-flex !important;
  }
}

.header-action-btn:hover,
.header-action-btn.search-toggle-btn:hover,
.header-icon-cart:hover,
.header-menu-btn:hover,
.btn-modal-search-close:hover,
.btn-clear-search:hover,
.drawer-close-btn:hover,
.drawer-close:hover,
.fmd-close:hover {
  background: rgba(15, 23, 42, 0.06) !important;
  color: var(--primary, #0F172A) !important;
  transform: translateY(-1px) !important;
}

.header-action-btn:active,
.header-icon-cart:active,
.header-menu-btn:active {
  transform: scale(0.95) !important;
}

/* 2. Trash & Delete Buttons (Remove ugly red square boxes) */
.btn-remove-item,
.cart-remove-cell button,
.co-remove-btn {
  border: none !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  color: #94A3B8 !important;
  cursor: pointer !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  transition: all 0.18s ease !important;
  padding: 0 !important;
}

.btn-remove-item:hover,
.cart-remove-cell button:hover,
.co-remove-btn:hover {
  background: #FEE2E2 !important;
  color: #EF4444 !important;
  transform: scale(1.08) !important;
}

.btn-remove-item:active,
.cart-remove-cell button:active,
.co-remove-btn:active {
  transform: scale(0.92) !important;
}

/* 3. Quantity Steppers (+ and - buttons) */
.qty-stepper {
  display: inline-flex !important;
  align-items: center !important;
  background: #F1F5F9 !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 2px !important;
  gap: 2px !important;
}

.qty-stepper button,
.btn-qty-minus,
.btn-qty-plus,
.co-qty-btn {
  border: none !important;
  background: #FFFFFF !important;
  color: #0F172A !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.15s ease !important;
  padding: 0 !important;
}

.qty-stepper button:hover,
.btn-qty-minus:hover,
.btn-qty-plus:hover,
.co-qty-btn:hover {
  background: var(--primary, #0F172A) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
}

.co-item-controls {
  display: inline-flex !important;
  align-items: center !important;
  background: #F1F5F9 !important;
  border-radius: 8px !important;
  padding: 2px 4px !important;
  gap: 3px !important;
}

/* 4. Related Products & Card Cart Icon Buttons */
.btn-card-cart-icon {
  border: none !important;
  background: rgba(15, 23, 42, 0.05) !important;
  border-radius: 8px !important;
  color: #0F172A !important;
  width: 38px !important;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 15px !important;
  transition: all 0.2s ease !important;
}

.btn-card-cart-icon:hover {
  background: var(--primary, #0F172A) !important;
  color: #FFFFFF !important;
  transform: scale(1.05) translateY(-1px) !important;
}

/* 5. Mobile Sticky CTA Bar on Product Page */
.mobile-sticky-cta {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: #FFFFFF !important;
  border-top: 1px solid rgba(226, 232, 240, 0.9) !important;
  padding: 12px 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  z-index: 9999 !important;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08) !important;
}

@media (min-width: 992px) {
  .mobile-sticky-cta {
    display: none !important;
  }
}

/* 6. Gallery Thumbnail Clean Styles */
.gallery-thumb-pill {
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 10px !important;
  transition: all 0.2s ease !important;
}

.gallery-thumb-pill.active {
  border-color: var(--primary, #0F172A) !important;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.15) !important;
}

/* 7. Loading & Success Button States */
.btn-loading {
  position: relative !important;
  pointer-events: none !important;
  opacity: 0.8 !important;
}

.btn-loading::after {
  content: "" !important;
  position: absolute !important;
  width: 16px !important;
  height: 16px !important;
  top: calc(50% - 8px) !important;
  left: calc(50% - 8px) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 50% !important;
  border-top-color: #FFFFFF !important;
  animation: btnSpin 0.6s linear infinite !important;
}

@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

.btn-success-flash {
  background: #16A34A !important;
  border-color: #16A34A !important;
  color: #FFFFFF !important;
  transition: background 0.3s ease !important;
}
