/* ==========================================================================
   Elevaan Network â€” Base / Reset / Layout / Buttons
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  font-size: 15px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1;
}

img,
svg {
  max-width: 100%;
  display: block;
}

.takasymbol,
.taka-icon {
  display: inline-block;
  width: auto;
  height: 0.85em;
  vertical-align: middle;
  object-fit: contain;
}

.product-regular-wrap,
.recent-regular-wrap,
.shop-regular-wrap,
.pp-ebay-regular-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.product-regular-price,
.recent-regular-price,
.shop-regular-price,
.pp-ebay-regular-price {
  font-size: 13.5px;
  font-weight: 500;
  color: #767676;
  text-decoration: line-through;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 1.5px;
}

.product-regular-curr .takasymbol-sm,
.recent-regular-curr .takasymbol-sm,
.shop-regular-curr .takasymbol-sm,
.pp-ebay-regular-curr .takasymbol-sm,
.takasymbol-sm {
  display: inline-block;
  height: 11px;
  width: auto;
  max-height: 12px;
  vertical-align: -1px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.7);
}

.product-discount-badge,
.recent-discount-badge,
.shop-discount-badge,
.pp-ebay-discount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 4px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

button,
input,
select,
textarea,
optgroup {
  font-family: inherit;
}

/* ---- Layout helpers ---- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

main {
  display: block;
  padding-top: 15px;
}

main.product-page,
main.supplier-page,
main.auth-page {
  padding-top: 30px;
}

.section {
  padding: 18px 0;
}

.section:first-of-type {
  padding-top: 18px;
}

.card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: 22px;
  font-weight: 600;
}

.featured-match-note {
  font-size: 13px;
  font-weight: 500;
  color: #62646a;
  margin: 4px 0 0;
}

.featured-match-note span {
  font-weight: 700;
  color: #1c1c1d;
}

.featured-match-note[hidden] {
  display: none;
}

.link-more {
  font-size: 14px;
  font-weight: 600;
  color: #2563eb;
  white-space: nowrap;
  text-decoration: none;
}

.link-more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.btn-dark {
  background: var(--color-dark);
  color: #fff;
}

.btn-dark:hover {
  background: var(--color-dark-2);
}

.btn-orange {
  background: var(--color-orange);
  color: #fff;
}

.btn-orange:hover {
  background: var(--color-orange-dark);
}

.btn-blue {
  background: #2563eb;
  color: #fff;
}

.btn-blue:hover {
  background: #1d4ed8;
}

.btn-outline {
  background: #fff;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn .arrow {
  display: inline-block;
  line-height: 1;
}

/* ---- Slider arrows (Fiverr-style) ---- */

.hero-arrow,
.gallery-arrow,
.thumb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  color: #222325;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.15s ease, transform 0.15s ease,
    background-color 0.15s ease;
}

.hero-arrow:hover,
.gallery-arrow:hover,
.thumb-arrow:hover {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.12);
  transform: translateY(-50%) scale(1.04);
}

.hero-arrow:active,
.gallery-arrow:active,
.thumb-arrow:active {
  transform: translateY(-50%) scale(0.98);
}

.hero-arrow::before,
.gallery-arrow::before,
.thumb-arrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2px solid #222325;
  border-right: 2px solid #222325;
  flex-shrink: 0;
}

.hero-arrow-prev::before,
.gallery-arrow-prev::before,
.thumb-arrow-prev::before {
  transform: rotate(-135deg);
  margin-left: 3px;
}

.hero-arrow-next::before,
.gallery-arrow-next::before,
.thumb-arrow-next::before {
  transform: rotate(45deg);
  margin-right: 3px;
}

.hero-arrow-prev,
.gallery-arrow-prev,
.thumb-arrow-prev {
  left: 22px;
}

.hero-arrow-next,
.gallery-arrow-next,
.thumb-arrow-next {
  right: 22px;
}

.thumb-arrow {
  width: 32px;
  height: 32px;
}

.thumb-arrow::before {
  width: 7px;
  height: 7px;
}

@media (hover: none), (max-width: 768px), (pointer: coarse) {
  .thumb-arrow,
  .product-thumb .thumb-arrow,
  .product-thumb.has-slider .thumb-arrow {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }
}

/* ---- Small utility ---- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- Cart Toast Notification ---- */
.cart-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  max-width: 440px;
  width: calc(100vw - 48px);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 14px 16px;
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
  pointer-events: none;
  font-family: var(--font-sans, system-ui, -apple-system, sans-serif);
}

.cart-toast.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.cart-toast-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.cart-toast-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-toast-thumb-wrap {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
}

.cart-toast-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.cart-toast-title {
  font-size: 12px;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 0.2px;
  line-height: 1.2;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.cart-toast-name {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-toast-price {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 2px;
}

.cart-toast-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cart-toast-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.cart-toast-btn--view {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.cart-toast-btn--view:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.cart-toast-btn--checkout {
  background: #2563eb;
  color: #ffffff;
  border: 1px solid #2563eb;
}

.cart-toast-btn--checkout:hover {
  background: #1d4ed8;
}

.cart-toast-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #64748b;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}

.cart-toast-close:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}