/* ==========================================================================
   Aryan PET — Public Site Styles
   Plain CSS, no preprocessor / no build step.
   ========================================================================== */

:root {
  --ap-navy-950: #101a2e;
  --ap-navy-900: #16233d;
  --ap-navy-800: #1b2a4a;
  --ap-steel-200: #c7d1de;
  --ap-amber-500: #e8a33d;
  --ap-amber-600: #cf8a24;
  --ap-bg: #f5f6f8;
  --ap-text: #1e2530;
  --ap-text-muted: #6b7280;
  --ap-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--ap-font);
  color: var(--ap-text);
  background: #fff;
}

.ap-btn-accent {
  background: var(--ap-amber-500);
  color: var(--ap-navy-950);
  font-weight: 600;
  border: none;
}
.ap-btn-accent:hover { background: var(--ap-amber-600); color: var(--ap-navy-950); }

.ap-btn-outline-light {
  border: 1px solid rgba(255, 255, 255, .7);
  color: #fff;
  font-weight: 600;
  background: transparent;
}
.ap-btn-outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- Minimal site header/footer ---------- */
.ap-site-header {
  background: #fff;
  border-bottom: 1px solid #eceef1;
}
.ap-site-brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ap-navy-900);
}
.ap-header-logo {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  margin-right: 8px;
}
@media (max-width: 575.98px) {
  .ap-header-logo { height: 38px; max-width: 160px; }
}
.ap-site-footer {
  background: var(--ap-navy-950);
  color: var(--ap-steel-200);
}

/* ---------- Hero Slider ---------- */
.ap-hero {
  position: relative;
  width: 100%;
  height: min(80vh, 720px);
  min-height: 420px;
  overflow: hidden;
  background: var(--ap-navy-950);
}

.ap-hero-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.ap-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease;
  z-index: 1;
}

.ap-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Slide-transition variant (translate instead of fade) */
.ap-hero[data-effect="slide"] .ap-hero-slide {
  transition: transform .7s ease, opacity .3s ease;
  transform: translateX(100%);
}
.ap-hero[data-effect="slide"] .ap-hero-slide.is-active {
  transform: translateX(0);
}
.ap-hero[data-effect="slide"] .ap-hero-slide.is-prev {
  transform: translateX(-100%);
}

.ap-hero-media {
  position: absolute;
  inset: 0;
}

.ap-hero-media img,
.ap-hero-media video,
.ap-hero-media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
}

.ap-hero-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--ap-overlay-opacity, .4);
}

.ap-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 3;
}

.ap-hero-text {
  max-width: 640px;
  color: #fff;
}

.ap-hero-content--center .container { text-align: center; }
.ap-hero-content--center .ap-hero-text { margin: 0 auto; }
.ap-hero-content--right .container { text-align: right; }
.ap-hero-content--right .ap-hero-text { margin-left: auto; }
.ap-hero-content--left .ap-hero-text { margin-right: auto; }

.ap-hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ap-amber-500);
  margin-bottom: 10px;
}

.ap-hero-heading {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}

.ap-hero-description {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .88);
  margin-bottom: 24px;
}

.ap-hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.ap-hero-content--center .ap-hero-buttons { justify-content: center; }
.ap-hero-content--right .ap-hero-buttons { justify-content: flex-end; }

.ap-hero-buttons .btn {
  padding: 10px 24px;
  border-radius: 8px;
}

.ap-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(0, 0, 0, .25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.ap-hero-arrow:hover { background: rgba(0, 0, 0, .45); }
.ap-hero-arrow--prev { left: 20px; }
.ap-hero-arrow--next { right: 20px; }

.ap-hero-dots {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.ap-hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  border: none;
  padding: 0;
}
.ap-hero-dot.is-active {
  background: var(--ap-amber-500);
  width: 26px;
  border-radius: 6px;
}

@media (max-width: 767.98px) {
  .ap-hero { height: 78vh; }
  .ap-hero-arrow { display: none; }
}

/* ---------- Homepage Sections ---------- */
.ap-section {
  padding: 72px 0;
}
.ap-section--alt {
  background: var(--ap-bg);
}

.ap-section-eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--ap-amber-600);
  margin-bottom: 8px;
}

.ap-section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--ap-navy-900);
  margin-bottom: 16px;
}

.ap-section-content {
  color: var(--ap-text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.ap-section-image {
  width: 100%;
  height: auto;
  box-shadow: 0 20px 50px -20px rgba(16, 26, 46, .35);
}

/* ---------- Announcement bar ---------- */
.ap-announcement-bar {
  background: var(--ap-navy-950);
  color: #fff;
}
.ap-announcement-bar a {
  color: #fff;
  text-decoration: underline;
}
.ap-announcement-bar a:hover { color: var(--ap-amber-500); }

.ap-site-header--sticky {
  position: sticky;
  top: 0;
  z-index: 1040;
}

/* ---------- Navbar ---------- */
.ap-nav-search { width: 100%; }
@media (min-width: 992px) {
  .ap-nav-search { width: 200px; }
}
.navbar .navbar-nav {
  flex-wrap: nowrap;
}
.navbar .nav-link {
  color: var(--ap-text);
  font-weight: 500;
  font-size: .88rem;
  padding: 8px 10px !important;
  white-space: nowrap;
}
.navbar .nav-link.active,
.navbar .nav-link:hover {
  color: var(--ap-navy-900);
  font-weight: 700;
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar .nav-link { font-size: .8rem; padding: 8px 7px !important; }
  .ap-nav-search { width: 150px; }
}

/* ---------- Footer ---------- */
.ap-footer-logo-img {
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}
.ap-footer-logo {
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}
@media (max-width: 575.98px) {
  .ap-footer-logo-img { height: 42px; max-width: 180px; }
}
.ap-footer-text {
  color: var(--ap-steel-200);
  font-size: .92rem;
  line-height: 1.6;
}
.ap-footer-heading {
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 16px;
}
.ap-footer-links li { margin-bottom: 10px; }
.ap-footer-links a {
  color: var(--ap-steel-200);
  text-decoration: none;
  font-size: .92rem;
}
.ap-footer-links a:hover { color: var(--ap-amber-500); }
.ap-footer-links i { color: var(--ap-amber-500); }
.ap-footer-divider { border-color: rgba(255,255,255,.12); margin: 32px 0 20px; }
.ap-footer-copyright { color: var(--ap-steel-200); }

.ap-social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
}
.ap-social-icon:hover { background: var(--ap-amber-500); color: var(--ap-navy-950); border-color: var(--ap-amber-500); }

/* ---------- Sticky floating action stack (Bulk Quote / Call / WhatsApp) ---------- */
.ap-floating-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.ap-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 26px -8px rgba(0,0,0,.35);
  font-weight: 600;
  font-size: .85rem;
  transition: transform .15s ease;
}
.ap-fab:hover { transform: translateY(-2px); color: #fff; }

.ap-fab-quote {
  background: var(--ap-amber-500);
  color: var(--ap-navy-950);
  padding: 0 18px;
}
.ap-fab-quote:hover { color: var(--ap-navy-950); }
.ap-fab-quote i { font-size: 1.05rem; }

.ap-fab-call,
.ap-fab-whatsapp {
  width: 52px;
  padding: 0;
  font-size: 1.3rem;
}
.ap-fab-call { background: var(--ap-navy-900); }
.ap-fab-whatsapp { background: #25D366; }

@media (max-width: 575.98px) {
  .ap-floating-stack { right: 14px; bottom: 14px; gap: 10px; }
  .ap-fab-quote .ap-fab-label { display: none; }
  .ap-fab-quote { width: 52px; padding: 0; }
  .ap-fab { height: 48px; }
  .ap-fab-call, .ap-fab-whatsapp { width: 48px; }
}

/* ---------- Product search / filter / sort bar ---------- */
.ap-filter-bar {
  background: #fff;
  border: 1px solid #eceef1;
  border-radius: 14px;
  padding: 16px;
}

/* ---------- Recently viewed ---------- */
.ap-recently-viewed-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ap-text-muted);
  font-weight: 600;
}

/* ---------- Page banner (inner pages) ---------- */
.ap-page-banner {
  position: relative;
  padding: 90px 0 60px;
  background: linear-gradient(120deg, var(--ap-navy-950) 0%, var(--ap-navy-800) 100%);
  color: #fff;
  background-size: cover;
  background-position: center;
}
.ap-page-banner.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 26, 46, .68);
}
.ap-page-banner .container { position: relative; z-index: 1; }
.ap-page-banner-eyebrow {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ap-amber-500);
  margin-bottom: 10px;
}
.ap-page-banner h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 0;
}
.ap-breadcrumb {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  margin-top: 10px;
}
.ap-breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.ap-breadcrumb a:hover { color: var(--ap-amber-500); }

/* ---------- Product cards ---------- */
.ap-product-card {
  background: #fff;
  border: 1px solid #eceef1;
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  transition: box-shadow .2s ease, transform .2s ease;
  display: flex;
  flex-direction: column;
}
.ap-product-card:hover {
  box-shadow: 0 20px 40px -18px rgba(16,26,46,.25);
  transform: translateY(-3px);
}
.ap-product-card-img {
  aspect-ratio: 4/3;
  background: var(--ap-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.ap-product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.ap-product-card-img i { font-size: 2.2rem; color: var(--ap-text-muted); }
.ap-badge-featured {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--ap-amber-500);
  color: var(--ap-navy-950);
  font-size: .7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ap-product-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.ap-product-card-title {
  font-weight: 700;
  color: var(--ap-navy-900);
  font-size: 1.02rem;
  margin-bottom: 6px;
}
.ap-product-card-cat { font-size: .78rem; color: var(--ap-text-muted); margin-bottom: 10px; }
.ap-price-mrp { text-decoration: line-through; color: var(--ap-text-muted); font-size: .88rem; margin-right: 8px; }
.ap-price-offer { color: var(--ap-navy-900); font-weight: 800; font-size: 1.1rem; }
.ap-moq-note { font-size: .78rem; color: var(--ap-text-muted); margin-top: 4px; }

/* ---------- Category cards ---------- */
.ap-category-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  height: 220px;
  display: flex;
  align-items: flex-end;
  background: var(--ap-navy-900);
  color: #fff;
  text-decoration: none;
}
.ap-category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
}
.ap-category-card-overlay {
  position: relative;
  z-index: 1;
  padding: 20px;
  width: 100%;
  background: linear-gradient(0deg, rgba(16,26,46,.85) 0%, rgba(16,26,46,0) 100%);
}
.ap-category-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 2px; color: #fff; }
.ap-category-card span { font-size: .82rem; color: var(--ap-steel-200); }

/* ---------- Product details ---------- */
.ap-gallery-main {
  aspect-ratio: 1/1;
  background: var(--ap-bg);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ap-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.ap-gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--ap-bg);
}
.ap-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ap-gallery-thumb.is-active { border-color: var(--ap-amber-500); }

.ap-spec-table th {
  width: 40%;
  background: var(--ap-bg);
  font-weight: 600;
  color: var(--ap-navy-900);
}

.ap-pricing-table th { background: var(--ap-navy-900); color: #fff; font-weight: 600; font-size: .85rem; }
.ap-pricing-table td, .ap-pricing-table th { padding: 10px 14px; }

/* ---------- Forms (contact / distributor / bulk inquiry) ---------- */
.ap-form-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px -25px rgba(16,26,46,.3);
  padding: 32px;
}
.ap-info-card {
  background: var(--ap-navy-950);
  color: #fff;
  border-radius: 16px;
  padding: 32px;
}
.ap-info-card .ap-footer-links a { color: var(--ap-steel-200); }
.ap-map-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 0;
  width: 100%;
  height: 320px;
}

/* ---------- Feature cards (Why Choose Us) ---------- */
.ap-feature-card {
  background: #fff;
  border: 1px solid #eceef1;
  border-radius: 14px;
  padding: 28px 24px;
  height: 100%;
}
.ap-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(232,163,61,.14);
  color: var(--ap-amber-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

/* ---------- Process steps (Manufacturing Process) ---------- */
.ap-step-card { position: relative; padding-left: 60px; margin-bottom: 32px; }
.ap-step-number {
  position: absolute;
  left: 0; top: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ap-navy-900);
  color: var(--ap-amber-500);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ap-step-card h4 { font-weight: 700; color: var(--ap-navy-900); margin-bottom: 6px; }

/* ==========================================================================
   Theme: Dark (selected from Admin → Settings → Appearance)
   A real dark mode — dark page background, light text, dark cards —
   layered on the same CSS variables (Theme Colors still apply for the
   accent/brand colors within the dark palette).
   ========================================================================== */
body.theme-dark {
  background: var(--ap-navy-950);
  color: #e7ebf2;
}

body.theme-dark .ap-site-header {
  background: var(--ap-navy-900);
  border-bottom-color: rgba(255,255,255,.08);
}

body.theme-dark .navbar .nav-link {
  color: #cdd6e4;
}
body.theme-dark .navbar .nav-link.active,
body.theme-dark .navbar .nav-link:hover {
  color: var(--ap-amber-500);
}

body.theme-dark .ap-site-brand,
body.theme-dark .ap-section-title,
body.theme-dark .ap-hero-heading,
body.theme-dark h1, body.theme-dark h2, body.theme-dark h3,
body.theme-dark h4, body.theme-dark h5, body.theme-dark h6 {
  color: #f4f6fa;
}

body.theme-dark .ap-section--alt {
  background: var(--ap-navy-900);
}

body.theme-dark .ap-product-card,
body.theme-dark .ap-feature-card,
body.theme-dark .ap-form-card,
body.theme-dark .ap-filter-bar,
body.theme-dark .ap-spec-table th,
body.theme-dark .ap-pricing-table td {
  background: var(--ap-navy-900);
  border-color: rgba(255,255,255,.08);
  color: #e7ebf2;
}

body.theme-dark .ap-product-card-title,
body.theme-dark .ap-price-offer {
  color: #f4f6fa;
}

body.theme-dark .ap-section-content,
body.theme-dark .ap-product-card-cat,
body.theme-dark .text-muted {
  color: #a9b3c4 !important;
}

body.theme-dark .ap-category-card {
  background: var(--ap-navy-900);
}

body.theme-dark .form-control,
body.theme-dark .form-select {
  background: var(--ap-navy-900);
  border-color: rgba(255,255,255,.15);
  color: #e7ebf2;
}
body.theme-dark .form-control::placeholder { color: #7c869a; }

body.theme-dark .ap-page-banner {
  background: linear-gradient(120deg, var(--ap-navy-950) 0%, #000 100%);
}

/* ---------- Testimonials ---------- */
.ap-testimonial-card {
  background: #fff;
  border: 1px solid #eceef1;
  border-radius: 14px;
  padding: 28px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.ap-testimonial-stars { color: var(--ap-amber-500); font-size: .95rem; }
.ap-testimonial-review {
  color: var(--ap-text);
  font-size: .98rem;
  line-height: 1.7;
  flex: 1;
}
.ap-testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--ap-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ap-text-muted);
}
.ap-testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }

body.theme-dark .ap-testimonial-card {
  background: var(--ap-navy-900);
  border-color: rgba(255,255,255,.08);
}
body.theme-dark .ap-testimonial-review { color: #e7ebf2; }
