/* ????????????????????????????????????????????????????????
   Ishant 3D Prints ? Main Stylesheet
   ???????????????????????????????????????????????????????? */

/* ??? Custom Properties ???????????????????????????????? */
:root {
  --primary: #f97316;
  --primary-dark: #ea580c;
  --primary-light: #fed7aa;
  --primary-bg: #fff7ed;
  --wa: #25D366;
  --wa-dark: #1da851;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: 0.2s ease;
  --header-h: 64px;
}

/* ??? Reset / Base ????????????????????????????????????? */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

body.menu-open,
body.modal-open {
  overflow: hidden;
  touch-action: none;
}

img { display: block; max-width: 100%; height: auto; }

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

h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ??? Buttons ??????????????????????????????????????????? */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 14px rgba(249,115,22,0.4);
  text-decoration: none;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(249,115,22,0.45); }
.btn-primary:active { transform: none; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-outline:hover { background: var(--primary); color: white; }

/* WhatsApp button variants */
.btn-wa-header, .btn-wa-hero, .btn-wa-about, .btn-wa-modal, .footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-wa-header {
  padding: 0.55rem 1.2rem;
  background: var(--wa);
  color: white;
  font-size: 0.9rem;
}
.btn-wa-header:hover { background: var(--wa-dark); }

.btn-wa-hero {
  padding: 0.85rem 2rem;
  background: white;
  color: var(--wa-dark);
  font-size: 1rem;
  box-shadow: var(--shadow);
}
.btn-wa-hero:hover { background: var(--wa); color: white; }

.btn-wa-about {
  padding: 0.8rem 1.75rem;
  background: var(--wa);
  color: white;
  font-size: 0.95rem;
}
.btn-wa-about:hover { background: var(--wa-dark); }

.btn-wa-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 1rem;
  background: var(--wa);
  color: white;
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37,211,102,0.35);
  transition: all var(--transition);
  text-decoration: none;
}
.btn-wa-modal:hover { background: var(--wa-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37,211,102,0.4); }

/* ??? Header ???????????????????????????????????????????? */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.8rem; line-height: 1; }
.logo-name { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--text); }
.logo-tagline { display: block; font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.04em; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.site-nav a:hover { color: var(--primary); }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border-radius: var(--radius-sm);
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 0.75rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0));
  border-top: 1px solid var(--border);
  gap: 0.25rem;
  background: var(--surface);
}
.mobile-nav a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.85rem 0.5rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
}
.mobile-nav a:not(.btn-wa-mobile):active {
  background: var(--primary-bg);
}
.mobile-nav.open { display: flex; }
.btn-wa-mobile {
  padding: 0.9rem 1.5rem;
  background: var(--wa);
  color: white !important;
  border-radius: 50px;
  text-align: center;
  font-weight: 600;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ??? Hero ?????????????????????????????????????????????? */
.hero {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fed7aa 100%);
  padding: 5rem 1.5rem 4.5rem;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: white;
  border: 1px solid var(--primary-light);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.hero-highlight {
  color: var(--primary);
  position: relative;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ??? Shop Section ?????????????????????????????????????? */
.shop-section {
  padding: 4rem 0;
}

/* Filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: 100%;
}

.filter-pill {
  padding: 0.55rem 1.1rem;
  min-height: 44px;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.filter-pill:hover { border-color: var(--primary); color: var(--primary); }
.filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(249,115,22,0.3);
}

.search-wrap {
  position: relative;
  margin-left: auto;
}
.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.search-input {
  padding: 0.75rem 1rem 0.75rem 2.4rem;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  width: 220px;
  min-height: 44px;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--surface);
  color: var(--text);
}
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(249,115,22,0.12); }
.search-input::placeholder { color: var(--text-muted); }

.result-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

/* Product Card */
.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--primary-bg);
  position: relative;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.product-card:hover .card-img-wrap img { transform: scale(1.04); }

.card-featured-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-body {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.category-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: var(--primary-bg);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  letter-spacing: 0.02em;
  align-self: flex-start;
}

.card-name {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.card-desc-preview {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
}

.btn-view {
  display: block;
  width: 100%;
  padding: 0.75rem;
  min-height: 44px;
  text-align: center;
  background: var(--primary-bg);
  color: var(--primary-dark);
  border: 2px solid var(--primary-light);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.btn-view:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.3rem; color: var(--text); margin-bottom: 0.5rem; }
.empty-state p { margin-bottom: 1.5rem; }

/* ??? Product Modal ????????????????????????????????????? */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeOverlay 0.2s ease;
  backdrop-filter: blur(3px);
}
.modal-overlay[hidden] { display: none; }

@keyframes fadeOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-card {
  background: var(--surface);
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: relative;
  animation: slideModal 0.25s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

@keyframes slideModal {
  from { opacity: 0; transform: scale(0.95) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.15);
  color: white;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  line-height: 1;
}
.modal-close:hover { background: rgba(0,0,0,0.35); }

.modal-image-area {
  background: var(--primary-bg);
  border-radius: 20px 0 0 20px;
  padding: 1.5rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-main-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  overflow: hidden;
  border-radius: var(--radius);
  background: white;
}
.modal-main-img-wrap img {
  max-height: 340px;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.modal-thumbnails {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}
.modal-thumbnails::-webkit-scrollbar { height: 4px; }
.modal-thumbnails::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.modal-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
  background: white;
}
.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-thumb.active { border-color: var(--primary); }
.modal-thumb:hover { border-color: var(--primary-light); }

.modal-info {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal-info h2 {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.modal-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ??? About Section ????????????????????????????????????? */
.about-section {
  background: var(--text);
  color: white;
  padding: 5rem 1.5rem;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.about-text p {
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

/* ??? Footer ???????????????????????????????????????????? */
.site-footer {
  background: #020617;
  color: rgba(255,255,255,0.6);
  padding: 2rem 1.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  color: white;
}

.footer-copy {
  font-size: 0.85rem;
}

.footer-wa {
  padding: 0.55rem 1.2rem;
  background: var(--wa);
  color: white;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
}
.footer-wa:hover { background: var(--wa-dark); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .container { padding: 0 1rem; }

  .header-inner { padding: 0 1rem; }

  .site-nav { display: none; }
  .mobile-menu-btn { display: flex; }

  .hero { padding: 2.75rem 1rem 2.5rem; }
  .hero-title { font-size: clamp(1.65rem, 7vw, 2rem); }
  .hero-sub { font-size: 1rem; margin-bottom: 2rem; }

  .shop-section { padding: 2.5rem 0 3rem; }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .filter-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
    margin: 0 -0.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
  .filter-pills::-webkit-scrollbar { display: none; }

  .filter-pill { flex-shrink: 0; }

  .search-wrap { margin-left: 0; width: 100%; }
  .search-input { width: 100%; }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .card-body { padding: 0.85rem 1rem 1rem; }
  .card-name { font-size: 0.95rem; }
  .card-desc-preview { font-size: 0.8rem; -webkit-line-clamp: 3; }

  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal-card {
    grid-template-columns: 1fr;
    max-height: 92vh;
    width: 100%;
    border-radius: 16px 16px 0 0;
    margin-top: auto;
  }

  .modal-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.45);
  }

  .modal-image-area {
    border-radius: 16px 16px 0 0;
    min-height: 200px;
    padding: 1rem 0.75rem 0.75rem;
  }

  .modal-main-img-wrap { min-height: 200px; }
  .modal-main-img-wrap img { max-height: 260px; }

  .modal-info {
    padding: 1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0));
  }

  .modal-info h2 { font-size: 1.25rem; }
  .modal-info p { font-size: 0.9rem; }

  .about-section { padding: 3rem 1rem; }
  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .about-stats { grid-template-columns: 1fr; gap: 0.75rem; }

  .stat-num { font-size: 1.25rem; }

  .site-footer {
    padding: 1.75rem 1rem calc(5.5rem + env(safe-area-inset-bottom, 0));
  }

  .footer-inner { flex-direction: column; text-align: center; gap: 1rem; }
  .footer-wa { width: 100%; justify-content: center; min-height: 44px; }
}

@media (max-width: 480px) {
  .logo-tagline { display: none; }
  .logo-name { font-size: 1rem; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-wa-hero {
    text-align: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
  }

  .product-grid { grid-template-columns: 1fr; }

  .stat-card {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
  }

  .btn-wa-about { width: 100%; justify-content: center; min-height: 48px; }
}

@media (hover: none) and (pointer: coarse) {
  .product-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }

  .product-card:hover .card-img-wrap img {
    transform: none;
  }

  .product-card:active {
    transform: scale(0.98);
  }
}
