/**
 * TIMETECH DIGITALZ V7 — SOFTWARE STORE STYLESHEET
 * Premium technology marketplace aesthetic, 3D product cards,
 * responsive filtering, and glassmorphism checkout panels.
 */

/* --------------------------------------------------------------------------
   Announcement & Header
   -------------------------------------------------------------------------- */
.announcement {
  background: var(--navy);
  color: #EAF3FF;
  padding: 10px 16px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-dot {
  color: var(--teal);
}

/* --------------------------------------------------------------------------
   Store Hero
   -------------------------------------------------------------------------- */
.store-hero {
  padding: 90px 0 60px;
  background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.12) 0%, transparent 40%),
              radial-gradient(circle at 20% 80%, rgba(14, 165, 165, 0.08) 0%, transparent 40%),
              linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 60%, #EEF5FC 100%);
  border-bottom: 1px solid var(--line);
}

.store-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.store-hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--navy);
  line-height: 1.12;
  margin: 14px 0 18px;
}

.store-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.store-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 580px;
  margin-bottom: 28px;
}

/* --------------------------------------------------------------------------
   Trust Strip
   -------------------------------------------------------------------------- */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  box-shadow: var(--shadow-sm);
}

.trust-strip > div {
  text-align: center;
}

.trust-strip strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}

.trust-strip span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   Filtering & Category Chips
   -------------------------------------------------------------------------- */
.store-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.search-wrap {
  position: relative;
  min-width: 280px;
  flex: 1;
  max-width: 440px;
}

.search-wrap span {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.1rem;
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  padding: 12px 14px 12px 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.search-wrap input:focus {
  background: #FFFFFF;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.category-chip {
  padding: 8px 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.category-chip:hover {
  background: #EAF3FF;
  color: var(--blue);
  border-color: #BFDBFE;
}

.category-chip.active {
  background: var(--navy);
  color: #FFFFFF;
  border-color: var(--navy);
}

/* --------------------------------------------------------------------------
   Product Cards & Grid
   -------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 300ms var(--ease-spring), box-shadow 300ms var(--ease-spring), border-color 300ms ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(37, 99, 235, 0.12);
  border-color: #BFDBFE;
}

.product-visual {
  position: relative;
  height: 180px;
  background: radial-gradient(circle at 50% 50%, #EFF6FF 0%, #E2EDF9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-logo-avatar {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.8rem;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

.featured-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 10px;
  background: var(--gold);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.product-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.product-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}

.product-body p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 0 20px;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.product-bottom .price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
}

.product-bottom .from {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  display: block;
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #EAF3FF;
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 200ms ease, color 200ms ease;
}

.view-btn:hover {
  background: var(--blue);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   Empty States
   -------------------------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  background: var(--surface-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Product Detail View
   -------------------------------------------------------------------------- */
.product-detail {
  padding: 60px 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 28px;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 48px;
}

.detail-media {
  min-height: 340px;
  background: radial-gradient(circle at 50% 50%, #EFF6FF 0%, #E2EDF9 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy h1 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--navy);
  margin: 8px 0 14px;
}

.detail-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.detail-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.detail-meta span {
  padding: 6px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
}

.plan-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 200ms ease, background 200ms ease;
}

.plan:hover {
  background: #FFFFFF;
  border-color: var(--blue);
}

.plan strong {
  display: block;
  font-size: 1rem;
  color: var(--navy);
}

.plan small {
  color: var(--muted);
  font-size: 0.82rem;
}

.plan b {
  font-size: 1.2rem;
  color: var(--blue);
  margin-right: 14px;
}

.plan-button {
  padding: 8px 18px;
  background: var(--blue);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 200ms ease;
}

.plan-button:hover {
  background: var(--blue-deep);
}

/* --------------------------------------------------------------------------
   Checkout Panel
   -------------------------------------------------------------------------- */
.checkout-panel {
  margin-top: 24px;
  padding: 24px;
  background: #F0F7FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--radius);
}

.checkout-panel h3 {
  margin: 0 0 8px;
  color: var(--navy);
}

.checkout-product {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 16px;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkout-form input {
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  outline: none;
}

.checkout-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Responsive */
@media (max-width: 900px) {
  .store-hero-grid,
  .detail-hero {
    grid-template-columns: 1fr;
  }
}
