/* ==========================================================================
   SIEMENS STORE TEMPLATE - MODERN RESPONSIVE DESIGN SYSTEM
   Dark/Light mode auto-adaptive via CSS custom properties
   ========================================================================== */

:host {
  display: block;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif);
  color: var(--text-primary, #0f172a);
  width: 100%;
  box-sizing: border-box;
}

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

/* Header & Brand */
.header-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0 1.5rem 0;
  background: transparent;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  margin-bottom: 2rem;
  position: static;
  box-shadow: none;
}

.header-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

/* Landing Page Wrapper */
.landing-page {
  padding: 0;
  text-align: center;
  width: 100%;
}

.landing-page .title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary, #0f172a);
  margin: 2.5rem 0 1.75rem 0;
  text-align: center;
  position: relative;
  display: inline-block;
}

.landing-page .title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: var(--primary-gradient, linear-gradient(135deg, #0284c7 0%, #0369a1 100%));
  border-radius: 2px;
  margin: 0.5rem auto 0 auto;
}

/* Promotional Banner - Redesigned Centered Showcase */
.banner {
  background: linear-gradient(135deg, rgba(0, 60, 88, 0.95) 0%, rgba(1, 32, 48, 0.98) 100%);
  backdrop-filter: blur(12px);
  padding: 2.25rem 2.5rem;
  border-radius: var(--radius-xl, 24px);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 20px 45px -10px rgba(0, 48, 70, 0.5), 0 0 30px rgba(56, 189, 248, 0.12);
  margin: 0 auto 3rem auto;
  max-width: 1050px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.banner::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -15%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.banner::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.banner-image {
  width: 240px;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  z-index: 1;
}

.banner:hover .banner-image {
  transform: scale(1.02);
}

.banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  z-index: 1;
  flex: 1;
}

.banner-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full, 9999px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  margin: 0 auto;
}

.banner-subtitle {
  color: #ffffff;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -0.02em;
}

.banner-text {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  max-width: 600px;
}

.banner-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 48px;
  padding: 0 2.5rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  border: none;
  border-radius: var(--radius-full, 9999px);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  z-index: 1;
}

.banner-button::after {
  content: "→";
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.banner-button:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.banner-button:hover::after {
  transform: translateX(4px);
}

@media (min-width: 901px) {
  .banner {
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 1.25rem 2.5rem;
  }
  .banner-image {
    grid-row: 1 / span 2;
    grid-column: 1;
    justify-self: center;
  }
  .banner-content {
    grid-column: 2;
    grid-row: 1;
  }
  .banner-button {
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
  }
}

@media (max-width: 900px) {
  .banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }
  .banner-button {
    align-self: center;
  }
}


/* Product Grid */
.landing-page .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

/* Product Card */
.landing-page .card {
  background: var(--bg-surface-elevated, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-lg, 16px);
  padding: 1.5rem 1.25rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.05));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.landing-page .card:hover {
  transform: translateY(-6px);
  border-color: var(--primary, #0284c7);
  box-shadow: var(--shadow-xl, 0 20px 25px -5px rgba(0, 0, 0, 0.1));
}

.landing-page .image {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 1.25rem;
  transition: transform 0.25s ease;
}

.landing-page .card:hover .image {
  transform: scale(1.03);
}

.landing-page .card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary, #0f172a);
  margin: 0 0 0.75rem 0;
  min-height: 2.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.landing-page .price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary, #0284c7);
  margin: 0.5rem 0 1.25rem 0;
  letter-spacing: -0.01em;
}

.landing-page .price strong {
  font-weight: 800;
}

/* Learn More Action Button */
.learn-more-btn {
  width: 100%;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: none;
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  border-radius: var(--radius-md, 10px);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.learn-more-btn:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}

.learn-more-btn::after {
  content: "→";
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.learn-more-btn:hover::after {
  transform: translateX(3px);
}

/* ==========================================================================
   CART & CHECKOUT OVERLAY / VIEW
   ========================================================================== */

.cart-plugin-container {
  position: relative;
  display: flex;
  gap: 2.5rem;
  margin: 2rem auto;
  max-width: 960px;
  border: 1px solid var(--border-color, #e2e8f0);
  padding: 2.25rem;
  border-radius: var(--radius-xl, 20px);
  background: var(--bg-surface-elevated, #ffffff);
  color: var(--text-primary, #0f172a);
  box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0,0,0,0.1));
}

.product-info {
  flex: 1;
  text-align: center;
}

.product-image {
  max-width: 100%;
  height: 220px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 1.25rem;
}

.product-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  margin-bottom: 0.5rem;
}

.product-description {
  font-size: 0.95rem;
  color: var(--text-secondary, #475569);
  line-height: 1.6;
  text-align: left;
}

.cart-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary, #0f172a);
}

.form-input,
.form-select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color, #cbd5e1);
  border-radius: var(--radius-md, 10px);
  font-size: 0.95rem;
  background: var(--bg-surface, #ffffff);
  color: var(--text-primary, #0f172a);
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary, #0284c7);
  box-shadow: 0 0 0 3px var(--primary-light, rgba(2, 132, 199, 0.15));
}

.subscription-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.subscription-button {
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--border-color, #cbd5e1);
  border-radius: var(--radius-md, 10px);
  background: var(--bg-alt, #f1f5f9);
  color: var(--text-primary, #0f172a);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.subscription-button.active {
  background: var(--primary, #0284c7);
  color: #ffffff;
  border-color: var(--primary, #0284c7);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.subscription-button:hover:not(.active) {
  background: var(--bg-muted, #e2e8f0);
}

.cart-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cart-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  width: 100%;
}

.cart-count {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  margin: 0.5rem 0 0 0;
}

.clear-cart-container {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  z-index: 10;
  background: var(--bg-alt, #f1f5f9);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full, 9999px);
  border: 1px solid var(--border-color, #e2e8f0);
}

.clear-cart-image {
  width: 16px;
  height: 16px;
  display: inline-block;
}

.clear-cart-text {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted, #64748b);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: var(--bg-surface-elevated, #ffffff);
  color: var(--text-primary, #0f172a);
  border: 1px solid var(--border-color, #e2e8f0);
  padding: 2rem;
  border-radius: var(--radius-lg, 16px);
  text-align: center;
  width: 360px;
  max-width: 90%;
  box-shadow: var(--shadow-xl);
}

.modal-content h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted, #64748b);
  cursor: pointer;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.apply-button {
  background: #10b981;
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md, 10px);
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.apply-button:hover {
  opacity: 0.9;
}

.skip-button {
  background: var(--bg-alt, #f1f5f9);
  color: var(--text-primary, #0f172a);
  border: 1px solid var(--border-color, #cbd5e1);
  border-radius: var(--radius-md, 10px);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
}

.skip-button:hover {
  background: var(--bg-muted, #e2e8f0);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .banner {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }
  .banner-content {
    text-align: center;
  }
  .banner-title {
    justify-content: center;
  }
  .cart-plugin-container {
    flex-direction: column;
    padding: 1.5rem;
  }
}
