/**
 * Zaryon.pk — Core Components, Layout & Visual Hierarchy
 * Built on top of zaryon-tokens.css
 */

/* ── Base Resets & Global Typography ── */
body {
  background-color: var(--zyr-canvas) !important;
  color: var(--zyr-text-primary) !important;
  font-family: var(--zyr-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.zyr-heading {
  font-family: var(--zyr-font-heading);
  color: var(--zyr-text-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--zyr-duration-fast) var(--zyr-ease-standard);
}
a:hover {
  color: var(--zyr-orange);
}

/* ── Container Consistency ── */
.zyr-container {
  width: 100%;
  max-width: var(--zyr-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ══════════════════════════════════════════════════════════════
   1. SITE-WIDE HEADER & ANNOUNCEMENT BAR
   ══════════════════════════════════════════════════════════════ */

.zyr-announcement-bar {
  background: var(--zyr-black);
  color: var(--zyr-text-inverse);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1010;
}

.zyr-announcement-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.zyr-announcement-msg {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.zyr-announcement-tag {
  background: var(--zyr-orange);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--zyr-radius-full);
}

.zyr-announcement-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.zyr-announcement-link {
  color: #D4D4D8;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--zyr-duration-fast);
}
.zyr-announcement-link:hover {
  color: #FFFFFF;
}

/* ── Main Navigation Bar ── */
.zyr-header-main {
  background: var(--zyr-surface);
  border-bottom: 1px solid var(--zyr-border-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--zyr-duration-base) var(--zyr-ease-standard);
}
.zyr-header-main.is-scrolled {
  box-shadow: var(--zyr-shadow-sm);
}

.zyr-header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--zyr-header-height);
}

/* ── Logo ── */
.zyr-logo-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.zyr-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: transform var(--zyr-duration-fast);
}
.zyr-logo-wrap:hover .zyr-logo-img {
  transform: scale(1.02);
}

/* ── Search Bar Engine ── */
.zyr-search-wrapper {
  flex: 1;
  max-width: 620px;
  position: relative;
}

.zyr-search-form {
  display: flex;
  align-items: center;
  background: var(--zyr-surface-sunken);
  border: 1.5px solid var(--zyr-border);
  border-radius: var(--zyr-radius-full);
  padding: 3px 4px 3px 18px;
  transition: all var(--zyr-duration-fast) var(--zyr-ease-standard);
  position: relative;
}
.zyr-search-form:focus-within {
  border-color: var(--zyr-orange);
  background: var(--zyr-surface);
  box-shadow: 0 0 0 3px var(--zyr-orange-subtle);
}

.zyr-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--zyr-font-body);
  font-size: 13.5px;
  color: var(--zyr-text-primary);
  padding: 6px 8px;
}
.zyr-search-input::placeholder {
  color: var(--zyr-text-muted);
}

.zyr-search-clear {
  display: none;
  background: transparent;
  border: none;
  color: var(--zyr-text-muted);
  cursor: pointer;
  padding: 4px;
  margin-right: 4px;
}
.zyr-search-clear.is-visible {
  display: inline-flex;
}

.zyr-search-btn {
  background: var(--zyr-orange);
  color: #FFFFFF;
  border: none;
  border-radius: var(--zyr-radius-full);
  height: 38px;
  padding: 0 20px;
  font-family: var(--zyr-font-heading);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--zyr-duration-fast) var(--zyr-ease-standard);
}
.zyr-search-btn:hover {
  background: var(--zyr-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--zyr-orange-glow);
}

/* ── Live Search Autocomplete Popover ── */
.zyr-search-suggest-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--zyr-surface);
  border: 1px solid var(--zyr-border);
  border-radius: var(--zyr-radius-lg);
  box-shadow: var(--zyr-shadow-lg);
  padding: 12px;
  z-index: 1050;
  display: none;
  max-height: 480px;
  overflow-y: auto;
}
.zyr-search-suggest-popover.is-open {
  display: block;
}

.zyr-suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--zyr-radius-sm);
  transition: background var(--zyr-duration-fast);
}
.zyr-suggest-item:hover {
  background: var(--zyr-surface-sunken);
}
.zyr-suggest-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--zyr-radius-xs);
  object-fit: cover;
  background: var(--zyr-surface-sunken);
}
.zyr-suggest-info {
  flex: 1;
  min-width: 0;
}
.zyr-suggest-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--zyr-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zyr-suggest-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--zyr-orange);
}

/* ── Right Navigation Meta Actions ── */
.zyr-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.zyr-header-action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--zyr-text-primary);
  padding: 6px 10px;
  border-radius: var(--zyr-radius-md);
  transition: all var(--zyr-duration-fast);
  cursor: pointer;
  position: relative;
}
.zyr-header-action-item:hover {
  background: var(--zyr-surface-sunken);
  color: var(--zyr-orange);
}

.zyr-action-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.zyr-action-icon {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.zyr-badge-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--zyr-orange);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--zyr-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.zyr-action-label-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.zyr-action-sublabel {
  font-size: 10px;
  color: var(--zyr-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.zyr-action-mainlabel {
  font-size: 13px;
  font-weight: 700;
  color: var(--zyr-text-primary);
  font-family: var(--zyr-font-heading);
}

/* ── Secondary Navigation Strip ── */
.zyr-nav-substrip {
  background: var(--zyr-surface);
  border-bottom: 1px solid var(--zyr-border);
  font-size: 13px;
  font-weight: 500;
}

.zyr-nav-substrip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.zyr-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.zyr-nav-links::-webkit-scrollbar { display: none; }

.zyr-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  color: var(--zyr-text-secondary);
  font-weight: 600;
  font-size: 13px;
  border-bottom: 2px solid transparent;
  transition: all var(--zyr-duration-fast);
}
.zyr-nav-link:hover,
.zyr-nav-link.is-active {
  color: var(--zyr-orange);
  border-bottom-color: var(--zyr-orange);
}

.zyr-all-cats-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--zyr-black);
  color: #FFFFFF !important;
  padding: 10px 18px;
  border-radius: var(--zyr-radius-md) var(--zyr-radius-md) 0 0;
  font-family: var(--zyr-font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--zyr-duration-fast);
}
.zyr-all-cats-trigger:hover {
  background: var(--zyr-charcoal);
}

/* ── Language Switcher Pill ── */
.zyr-lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--zyr-surface-sunken);
  border: 1px solid var(--zyr-border);
  border-radius: var(--zyr-radius-full);
  padding: 2px;
}
.zyr-lang-btn {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: var(--zyr-radius-full);
  color: var(--zyr-text-secondary);
  transition: all var(--zyr-duration-fast);
}
.zyr-lang-btn.is-active {
  background: var(--zyr-surface);
  color: var(--zyr-text-primary);
  box-shadow: var(--zyr-shadow-xs);
}

/* ══════════════════════════════════════════════════════════════
   2. REUSABLE ULTRA-PREMIUM PRODUCT CARD
   ══════════════════════════════════════════════════════════════ */

.zyr-product-card {
  background: var(--zyr-surface);
  border: 1px solid var(--zyr-border);
  border-radius: var(--zyr-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--zyr-duration-base) var(--zyr-ease-standard);
  height: 100%;
}
.zyr-product-card:hover {
  border-color: var(--zyr-border-strong);
  box-shadow: var(--zyr-shadow-md);
  transform: translateY(-3px);
}

/* ── Card Image Container ── */
.zyr-card-media {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  background: #F4F4F2;
  overflow: hidden;
}
.zyr-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--zyr-duration-slow) var(--zyr-ease-standard);
}
.zyr-product-card:hover .zyr-card-img {
  transform: scale(1.05);
}

/* ── Badges ── */
.zyr-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.zyr-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--zyr-radius-xs);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.zyr-badge-sale {
  background: var(--zyr-orange);
  color: #FFFFFF;
}
.zyr-badge-free-delivery {
  background: var(--zyr-success);
  color: #FFFFFF;
}

/* ── Wishlist Quick Trigger ── */
.zyr-card-wish-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: var(--zyr-radius-full);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--zyr-text-secondary);
  cursor: pointer;
  z-index: 2;
  transition: all var(--zyr-duration-fast);
}
.zyr-card-wish-btn:hover {
  background: #FFFFFF;
  color: var(--zyr-danger);
  transform: scale(1.1);
}
.zyr-card-wish-btn.is-active {
  color: var(--zyr-danger);
  fill: currentColor;
}

/* ── Card Content ── */
.zyr-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.zyr-card-brand {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--zyr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.zyr-card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--zyr-text-primary);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}
.zyr-product-card:hover .zyr-card-title {
  color: var(--zyr-orange);
}

/* ── Pricing Row ── */
.zyr-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 10px;
}
.zyr-card-price-current {
  font-family: var(--zyr-font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--zyr-text-primary);
}
.zyr-card-price-original {
  font-size: 12.5px;
  color: var(--zyr-text-muted);
  text-decoration: line-through;
}

/* ── Card Meta / Trust Snippet ── */
.zyr-card-trust-snippet {
  font-size: 11px;
  color: var(--zyr-text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

/* ── Quick Add to Cart CTA ── */
.zyr-card-btn-cart {
  width: 100%;
  background: var(--zyr-surface-sunken);
  color: var(--zyr-text-primary);
  border: 1px solid var(--zyr-border);
  border-radius: var(--zyr-radius-md);
  padding: 8px 14px;
  font-family: var(--zyr-font-heading);
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--zyr-duration-fast) var(--zyr-ease-standard);
}
.zyr-card-btn-cart:hover {
  background: var(--zyr-orange);
  color: #FFFFFF;
  border-color: var(--zyr-orange);
  box-shadow: 0 4px 12px var(--zyr-orange-glow);
}

/* ══════════════════════════════════════════════════════════════
   3. SITE-WIDE PREMIUM TRUST FOOTER
   ══════════════════════════════════════════════════════════════ */

.zyr-footer {
  background: var(--zyr-surface);
  border-top: 1px solid var(--zyr-border);
  margin-top: 60px;
  padding-top: 56px;
}

.zyr-footer-trust-strip {
  border-bottom: 1px solid var(--zyr-border);
  padding-bottom: 40px;
  margin-bottom: 44px;
}

.zyr-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.zyr-trust-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.zyr-trust-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--zyr-radius-md);
  background: var(--zyr-orange-subtle);
  color: var(--zyr-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.zyr-trust-card-title {
  font-family: var(--zyr-font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--zyr-text-primary);
  margin-bottom: 2px;
}
.zyr-trust-card-desc {
  font-size: 12px;
  color: var(--zyr-text-secondary);
  line-height: 1.4;
}

/* ── Footer 4-Column Grid ── */
.zyr-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.zyr-footer-heading {
  font-family: var(--zyr-font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--zyr-text-primary);
  margin-bottom: 18px;
}

.zyr-footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.zyr-footer-link {
  font-size: 13px;
  color: var(--zyr-text-secondary);
  transition: color var(--zyr-duration-fast);
}
.zyr-footer-link:hover {
  color: var(--zyr-orange);
  padding-left: 3px;
}

.zyr-footer-bottom {
  border-top: 1px solid var(--zyr-border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--zyr-text-muted);
}

/* ══════════════════════════════════════════════════════════════
   4. MOBILE RESPONSIVE DRAWER & BREAKPOINTS
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 991.98px) {
  .zyr-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .zyr-header-height {
    --zyr-header-height: 64px;
  }
}

@media (max-width: 575.98px) {
  .zyr-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .zyr-trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .zyr-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
