/* ==========================================================================
   GORIBER FLAGSHIP - Signature Custom Designer Palette
   Colors: #0b704e (Deep Emerald) | #6f9d80 (Sage) | #231f20 (Charcoal) | #fb8b01 (Amber)
   ========================================================================== */

:root {
  /* Brand Core Colors */
  --emerald: #0b704e;
  --emerald-dark: #074e36;
  --emerald-light: #0f8f64;
  --sage: #6f9d80;
  --sage-light: #a8c7b4;
  --sage-pale: #e4efe8;
  --charcoal: #231f20;
  --charcoal-deep: #181516;
  --charcoal-card: #2a2527;
  --charcoal-card-hover: #332d30;
  --charcoal-elevated: #3d3639;
  --amber: #fb8b01;
  --amber-hover: #e07b00;

  /* Surfaces & Backgrounds */
  --bg-main: var(--charcoal-deep);
  --bg-surface: var(--charcoal);
  --bg-card: var(--charcoal-card);
  --bg-card-hover: var(--charcoal-card-hover);
  --bg-elevated: var(--charcoal-elevated);

  /* Typography Colors */
  --text-primary: #ffffff;
  --text-secondary: var(--sage-light);
  --text-muted: var(--sage);

  /* Borders & Dividers */
  --border: rgba(111, 157, 128, 0.18);
  --border-hover: rgba(111, 157, 128, 0.42);
  --border-amber: rgba(251, 139, 1, 0.45);
  --border-emerald: rgba(11, 112, 78, 0.5);

  /* Glows */
  --glow-emerald: 0 0 20px rgba(11, 112, 78, 0.3);
  --glow-amber: 0 0 16px rgba(251, 139, 1, 0.28);
  --glow-card: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 16px rgba(11, 112, 78, 0.15);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Fonts */
  --font: 'Plus Jakarta Sans', 'Hind Siliguri', -apple-system, sans-serif;
  --font-bangla: 'Hind Siliguri', sans-serif;
}

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

html {
  font-family: var(--font);
  background-color: var(--bg-main);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% -10%, rgba(11, 112, 78, 0.22) 0%, var(--charcoal) 50%, var(--bg-main) 90%);
  background-attachment: fixed;
  padding-bottom: 74px; /* Space for mobile floating bar */
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

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

button, input, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }
}

/* ==========================================================================
   Announcement Banner
   ========================================================================== */
.announcement-banner {
  background: linear-gradient(90deg, #181516 0%, rgba(11, 112, 78, 0.35) 50%, #181516 100%);
  border-bottom: 1px solid var(--border);
  padding: 0.42rem 1rem;
  font-size: 0.82rem;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--sage-light);
  text-align: center;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  animation: pulse-ring 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(35, 31, 32, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding-block: 0.75rem;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
  padding: 2px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
}

.brand-icon svg,
.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-bangla);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.brand-tagline {
  display: block;
  font-size: 0.75rem;
  color: var(--sage);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.desktop-text {
  display: none;
}

@media (min-width: 640px) {
  .desktop-text {
    display: inline;
  }
}

/* Designer Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-ghost {
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: #ffffff;
  background-color: var(--bg-card);
  border-color: var(--border-hover);
}

.btn-wa-pill {
  background: rgba(11, 112, 78, 0.25);
  border: 1px solid var(--border-emerald);
  color: #4ade80;
}

.btn-wa-pill:hover {
  background: var(--emerald);
  color: #ffffff;
  box-shadow: var(--glow-emerald);
  transform: translateY(-1px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-block: 1.5rem 1rem;
}

.hero-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 860px) {
  .hero-container {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.live-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sage-light);
  background: rgba(11, 112, 78, 0.2);
  border: 1px solid var(--border-emerald);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.6rem;
}

.status-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--amber);
  box-shadow: 0 0 8px var(--amber);
}

.badge-date {
  color: var(--sage);
  border-left: 1px solid var(--border);
  padding-left: 0.5rem;
}

.hero-title {
  font-family: var(--font-bangla);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.hero-sub {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
  max-width: 580px;
  line-height: 1.5;
}

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

/* Tab Pills */
.tab-group {
  display: inline-flex;
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 3px;
  border-radius: var(--radius-md);
  gap: 3px;
}

.tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.tab-pill:hover {
  color: #ffffff;
}

.tab-pill.active {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: var(--glow-emerald);
}

.doc-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

/* Download Button in Signature Amber */
.btn-download {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-hover) 100%);
  color: #231f20;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(251, 139, 1, 0.35);
}

.btn-download:hover {
  background: linear-gradient(135deg, #ffa02e 0%, var(--amber) 100%);
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(251, 139, 1, 0.5);
}

/* ==========================================================================
   Filter & Search Card
   ========================================================================== */
.main-content {
  margin-top: 0.5rem;
  flex: 1;
}

.content-view.hidden {
  display: none;
}

.filter-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.search-row {
  display: flex;
  gap: 0.65rem;
  flex-direction: column;
}

@media (min-width: 600px) {
  .search-row {
    flex-direction: row;
  }
}

.search-field {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-svg {
  position: absolute;
  left: 0.9rem;
  color: var(--sage);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.7rem 2.2rem 0.7rem 2.6rem;
  color: #ffffff;
  outline: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.search-field input:focus {
  border-color: var(--emerald-light);
  box-shadow: 0 0 0 3px rgba(11, 112, 78, 0.25);
}

.btn-clear {
  position: absolute;
  right: 0.75rem;
  color: var(--sage);
  font-size: 1.2rem;
  line-height: 1;
  padding: 0.2rem;
}

.btn-clear.hidden {
  display: none;
}

.sort-field select {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.85rem;
  color: var(--text-secondary);
  outline: none;
  cursor: pointer;
  font-size: 0.85rem;
}

.sort-field select:focus {
  border-color: var(--emerald-light);
}

/* Brand Filter Pills */
.brands-scroll {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-width: none;
}

.brands-scroll::-webkit-scrollbar {
  display: none;
}

.brand-pill {
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all 0.18s ease;
}

.brand-pill:hover {
  color: #ffffff;
  border-color: var(--border-hover);
}

.brand-pill.active {
  background: var(--emerald);
  color: #ffffff;
  font-weight: 700;
  border-color: var(--border-emerald);
  box-shadow: var(--glow-emerald);
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--sage);
  margin-block: 0.85rem 0.75rem;
  padding-inline: 0.25rem;
  flex-wrap: wrap;
}

.meta-hint {
  color: var(--amber);
}

/* ==========================================================================
   Product Cards
   ========================================================================== */
.products-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 520px) {
  .products-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 860px) {
  .products-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .products-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.product-item:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--glow-card);
  background-color: var(--bg-card-hover);
}

/* Phone Image Visual Showcase */
.item-visual {
  position: relative;
  width: 100%;
  height: 175px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, rgba(20, 17, 18, 0.75) 100%);
  border-radius: var(--radius-md);
  border: 1px solid rgba(111, 157, 128, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  overflow: hidden;
}

.item-img-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-item:hover .item-img {
  transform: scale(1.07) translateY(-2px);
}

.item-visual .brand-label {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 2;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.brand-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background-color: rgba(24, 21, 22, 0.85);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.28);
}

/* Brand specific styling - unified with sleek modern grey tone */
.brand-apple, .brand-vivo, .brand-xiaomi, .brand-oppo, .brand-honor, .brand-redmi {
  color: #9ca3af;
  border-color: rgba(156, 163, 175, 0.28);
}

.item-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.item-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.item-specs {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.76rem;
  color: var(--sage-light);
  background: rgba(111, 157, 128, 0.1);
  padding: 0.12rem 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.price-container {
  display: flex;
  flex-direction: column;
}

.price-subtext {
  font-size: 0.65rem;
  color: var(--sage);
  text-transform: uppercase;
}

/* Price in Crisp Pure White */
.price-tag {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.price-tag.price-call {
  font-size: 0.95rem;
  color: #9ca3af;
}

.btn-order-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background-color: rgba(11, 112, 78, 0.2);
  border: 1px solid var(--border-emerald);
  color: #4ade80;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-order-wa:hover {
  background-color: var(--emerald);
  color: #ffffff;
  border-color: var(--emerald);
}

/* Empty Result */
.empty-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  background-color: var(--bg-surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--sage);
}

/* ==========================================================================
   VIEW 2: Sheet / PDF Container
   ========================================================================== */
.sheet-viewer-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.sheet-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.sheet-title-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--sage-light);
}

.sheet-header-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
}

.sheet-iframe-wrapper {
  position: relative;
  width: 100%;
  height: clamp(550px, 75dvh, 850px);
  background-color: var(--charcoal-deep);
}

.sheet-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.iframe-spinner {
  position: absolute;
  inset: 0;
  background-color: var(--bg-surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  z-index: 5;
  transition: opacity 0.3s ease;
}

.iframe-spinner.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner-ring {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(11, 112, 78, 0.2);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin-ring 0.8s linear infinite;
}

@keyframes spin-ring {
  to { transform: rotate(360deg); }
}

.sheet-footer-notice {
  padding: 0.65rem 1rem;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--sage);
}

.sheet-footer-notice a {
  color: var(--amber);
  text-decoration: underline;
}

/* ==========================================================================
   Trust & Value Propositions Grid
   ========================================================================== */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.trust-card:hover {
  border-color: var(--border-hover);
  background-color: var(--bg-card-hover);
}

.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.delivery { background-color: rgba(11, 112, 78, 0.2); color: var(--emerald-light); }
.authentic { background-color: rgba(251, 139, 1, 0.15); color: var(--amber); }
.support { background-color: rgba(111, 157, 128, 0.2); color: var(--sage-light); }

.trust-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.trust-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.trust-card p a {
  color: #4ade80;
  font-weight: 600;
}

/* ==========================================================================
   Mobile Bottom Floating Bar
   ========================================================================== */
.mobile-bottom-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background-color: rgba(35, 31, 32, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
  justify-content: space-around;
  align-items: center;
}

@media (min-width: 769px) {
  .mobile-bottom-bar {
    display: none;
  }
}

.m-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--sage);
  transition: transform 0.15s ease;
}

.m-bar-item:active {
  transform: scale(0.92);
}

.m-wa { color: #4ade80; }
.m-call { color: #ffffff; }
.m-fb { color: #60a5fa; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border);
  background-color: var(--bg-surface);
  padding: 1.5rem 1rem;
  margin-top: 2rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--sage);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-brand-line strong {
  color: #ffffff;
}

.footer-note {
  font-size: 0.74rem;
  color: var(--sage);
}
