/* Demoshop Template - Main Styles */
/* Based on emoceans.ch design - Clean, modern e-commerce style */

:root {
  --shop-primary: var(--color-background-primary, #006699);
  --shop-primary-hover: var(--color-background-primary, #005588);
  /* Note: CMS doesn't seem to have hover var yet, fallback or calc? */
  --shop-primary-light: var(--color-background-secondary, #e6f2f7);
  --shop-secondary: var(--color-background-secondary, #333333);
  --shop-accent: var(--color-background-accent, #ff6b35);
  --shop-success: #28a745;
  --shop-error: #dc3545;
  --shop-warning: #ffc107;
  --shop-bg: var(--color-background-website, #f5f5f5);
  --shop-white: #ffffff;
  /* Keep white for actual white elements, or usage specific */
  --shop-text: var(--font-text-color, #333333);
  --shop-text-light: #666666;
  /* Need a lighter text var? */
  --shop-border: #e0e0e0;
  --shop-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shop-radius: 0px;
  --shop-radius-lg: 0px;
  --shop-container: 1200px;
  --shop-spacing: 0;
  --shop-font: var(
    --font-text-family,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Oxygen,
    Ubuntu,
    sans-serif
  );

  /* Mappings for specific sections if needed */
  --shop-nav-bg: var(--color-background-navigation, var(--shop-primary));
  --shop-footer-bg: var(--color-background-footer, var(--shop-white));
}

@media (max-width: 1279px) {
  :root {
    --shop-spacing: 10px;
  }
}

/* Base */
body {
  font-family: var(--font-text-family, var(--shop-font));
  font-size: var(--font-text-size, 1rem);
  font-weight: var(--font-text-weight, 400);
  color: var(--font-text-color, var(--shop-text));
  background-color: var(--shop-bg);
  line-height: var(--font-text-line-height, 1.6);
  letter-spacing: var(--font-text-letter-spacing, normal);
}

/* ===== CMS Typography & Elements ===== */
h1 {
  font-family: var(--font-h1-family, var(--shop-font));
  font-size: var(--font-h1-size, 2.5rem);
  font-weight: var(--font-h1-weight, 700);
  text-transform: var(--font-h1-transform, none);
  font-style: var(--font-h1-style, normal);
  letter-spacing: var(--font-h1-letter-spacing, normal);
  color: var(--font-h1-color, var(--shop-text));
  line-height: var(--font-h1-line-height, 1.2);
  margin-top: 0;
  margin-bottom: 0.5em;
}

h2 {
  font-family: var(--font-h2-family, var(--shop-font));
  font-size: var(--font-h2-size, 2rem);
  font-weight: var(--font-h2-weight, 700);
  text-transform: var(--font-h2-transform, none);
  font-style: var(--font-h2-style, normal);
  letter-spacing: var(--font-h2-letter-spacing, normal);
  color: var(--font-h2-color, var(--shop-text));
  line-height: var(--font-h2-line-height, 1.3);
  margin-top: 0;
  margin-bottom: 0.5em;
}

h3 {
  font-family: var(--font-h3-family, var(--shop-font));
  font-size: var(--font-h3-size, 1.75rem);
  font-weight: var(--font-h3-weight, 600);
  text-transform: var(--font-h3-transform, none);
  font-style: var(--font-h3-style, normal);
  letter-spacing: var(--font-h3-letter-spacing, normal);
  color: var(--font-h3-color, var(--shop-text));
  line-height: var(--font-h3-line-height, 1.4);
  margin-top: 0;
  margin-bottom: 0.5em;
}

a {
  font-family: var(--font-link-family, inherit);
  font-size: var(--font-link-size, inherit);
  font-weight: var(--font-link-weight, inherit);
  text-transform: var(--font-link-transform, none);
  font-style: var(--font-link-style, normal);
  letter-spacing: var(--font-link-letter-spacing, inherit);
  color: var(--font-link-color, var(--shop-primary));
  transition: color 0.2s;
  text-decoration: none;
}

a:hover {
  color: var(--font-link-color-hover, var(--shop-primary-hover));
}

a:active {
  color: var(--font-link-color-active, var(--font-link-color-hover, var(--shop-primary-hover)));
}

blockquote {
  border-left: 4px solid var(--shop-accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--shop-white);
  color: var(--font-text-color, var(--shop-text));
  font-style: italic;
  border-radius: 0 var(--shop-radius) var(--shop-radius) 0;
}

/* Forms */
label {
  display: inline-block;
  color: var(--font-text-color, var(--shop-text));
  font-family: var(--font-text-family, var(--shop-font));
  margin-bottom: 0.5rem;
}

input,
select,
textarea {
  font-family: var(--font-text-family, var(--shop-font));
  color: var(--font-text-color, var(--shop-text));
}

/* Buttons Global Font */
button,
.shop-btn {
  font-family: var(--font-button-family, var(--shop-font));
}

/* ===== Wishlist ===== */
.shop-wishlist__item {
  position: relative;
}

.shop-wishlist__remove {
  position: absolute;
  top: 10px;
  right: -10px;
  z-index: 5;

  width: 34px;
  height: 34px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--shop-border);
  color: var(--shop-text);

  cursor: pointer;
  line-height: 1;
  font-size: 20px;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.shop-wishlist__remove:hover {
  background: var(--shop-white);
  border-color: rgba(0, 0, 0, 0.18);
}

.shop-wishlist__remove:focus-visible {
  outline: 2px solid var(--shop-accent);
  outline-offset: 2px;
}

/* ===== Order Confirmation ===== */
.shop-order-confirmation {
  max-width: 800px;
  margin: 0 auto;
  padding: 0px 20px;
}

.shop-order-confirmation__loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--shop-text-light);
}

.shop-order-confirmation__header {
  text-align: left;
  margin-bottom: 40px;
}

.shop-order-confirmation__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  color: var(--shop-success);
}

.shop-order-confirmation__icon svg {
  width: 100%;
  height: 100%;
}

.shop-order-confirmation__title {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--shop-text);
}

.shop-order-confirmation__order-number {
  font-size: 18px;
  color: var(--shop-text-light);
  margin: 0 0 15px;
}

.shop-order-confirmation__order-number strong {
  color: var(--shop-text);
}

.shop-order-confirmation__message {
  font-size: 16px;
  color: var(--shop-text-light);
  margin: 0;
  line-height: 1.6;
}

.shop-order-confirmation__error {
  background: #fef2f2;
  border: 1px solid var(--shop-error);
  border-radius: var(--shop-radius);
  padding: 15px 20px;
  margin-bottom: 30px;
  color: var(--shop-error);
  text-align: center;
}

.shop-order-confirmation__section {
  background: var(--shop-white);
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  padding: 25px;
  margin-bottom: 20px;
}

.shop-order-confirmation__section h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--shop-border);
}

.shop-order-confirmation__items {
  margin-bottom: 20px;
}

.shop-order-confirmation__item {
  display: flex;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--shop-border);
}

.shop-order-confirmation__item:last-child {
  border-bottom: none;
}

.shop-order-confirmation__item-image {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  border-radius: var(--shop-radius);
  overflow: hidden;
  background: var(--shop-bg);
}

.shop-order-confirmation__item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-order-confirmation__item-placeholder {
  width: 100%;
  height: 100%;
  background: var(--shop-border);
}

.shop-order-confirmation__item-details {
  flex: 1;
}

.shop-order-confirmation__item-details h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 5px;
}

.shop-order-confirmation__item-sku,
.shop-order-confirmation__item-quantity {
  font-size: 13px;
  color: var(--shop-text-light);
  margin: 0;
}

.shop-order-confirmation__item-price {
  font-weight: 600;
  white-space: nowrap;
}

.shop-order-confirmation__summary {
  border-top: 1px solid var(--shop-border);
  padding-top: 15px;
}

.shop-order-confirmation__summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.shop-order-confirmation__summary-row--discount {
  color: var(--shop-success);
}

.shop-order-confirmation__summary-row--total {
  border-top: 2px solid var(--shop-text);
  margin-top: 10px;
  padding-top: 15px;
  font-size: 18px;
  font-weight: 600;
}

.shop-order-confirmation__addresses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.shop-order-confirmation__address {
  background: var(--shop-white);
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  padding: 25px;
}

.shop-order-confirmation__address h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 15px;
}

.shop-order-confirmation__address address {
  font-style: normal;
  line-height: 1.7;
  color: var(--shop-text-light);
}

.shop-order-confirmation__payment {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-order-confirmation__payment-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
}

.shop-order-confirmation__payment-status--paid {
  color: var(--shop-success);
  font-weight: 500;
}

.shop-order-confirmation__payment-status--pending {
  color: var(--shop-warning);
  font-weight: 500;
}

.shop-order-confirmation__payment-status--failed {
  color: var(--shop-error);
  font-weight: 500;
}

.shop-order-confirmation__bank-info {
  margin-top: 15px;
  padding: 15px;
  background: var(--shop-primary-light);
  border-radius: var(--shop-radius);
  font-size: 14px;
  line-height: 1.6;
}

.shop-order-confirmation__meta {
  text-align: center;
  font-size: 14px;
  color: var(--shop-text-light);
  margin-bottom: 30px;
}

.shop-order-confirmation__actions {
  text-align: center;
}

@media (max-width: 600px) {
  .shop-order-confirmation {
    padding: 20px 15px;
  }

  .shop-order-confirmation__title {
    font-size: 22px;
  }

  .shop-order-confirmation__icon {
    width: 60px;
    height: 60px;
  }

  .shop-order-confirmation__section {
    padding: 20px;
  }

  .shop-order-confirmation__addresses {
    grid-template-columns: 1fr;
  }
}
