/* Demoshop Template - Dynamic Styles */
/* Cart, Checkout, Auth, Product Detail, Dashboard */

/* Override Tailwind Preflight: subpixel-antialiased für weichere Schrift */
body {
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

/* ===== Product Detail ===== */
.shop-product-detail {
  max-width: var(--shop-container);
  margin: 0 auto;
  padding: 0px;
}

.shop-product-detail__breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  font-size: 13px;
  color: var(--shop-text-light);
}

.shop-product-detail__breadcrumbs a {
  color: var(--shop-text-light);
  text-decoration: none;
}

.shop-product-detail__breadcrumbs a:hover {
  color: var(--shop-primary);
}

.shop-product-detail__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.shop-product-detail__gallery {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.shop-product-detail__main-image {
  position: relative;
  aspect-ratio: 1;
  background: var(--shop-white);
  border-radius: var(--shop-radius-lg);
  overflow: hidden;
}

.shop-product-detail__main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop-product-detail__badges {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-product-detail__thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.shop-product-detail__thumbnail {
  width: 80px;
  height: 80px;
  border: 2px solid var(--shop-border);
  border-radius: var(--shop-radius);
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  background: var(--shop-white);
}

.shop-product-detail__thumbnail.active {
  border-color: var(--shop-primary);
}

.shop-product-detail__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shop-product-detail__info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.shop-product-detail__brand {
  color: var(--shop-text-light);
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
}

.shop-product-detail__brand:hover {
  color: var(--shop-primary);
}

.shop-product-detail__name {
  font-family: var(--font-h1-family, var(--shop-font));
  font-size: var(--font-h1-size, 2.5rem);
  font-weight: var(--font-h1-weight, 700);
  color: var(--font-h1-color, var(--shop-text));
  text-transform: var(--font-h1-transform, none);
  letter-spacing: var(--font-h1-letter-spacing, normal);
  line-height: var(--font-h1-line-height, 1.2);
}

.shop-product-detail__sku {
  color: var(--shop-text-light);
  font-size: 13px;
  margin: 0;
}

.shop-product-detail__price-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}

.shop-product-detail__price {
  font-family: var(--font-h2-family, var(--shop-font));
  font-size: var(--font-h2-size, 2rem);
  font-weight: var(--font-h2-weight, 700);
  color: var(--shop-accent);
}

.shop-product-detail__price--original {
  font-size: 18px;
  color: var(--shop-text-light);
  text-decoration: line-through;
}

.shop-product-detail__price--sale {
  color: var(--shop-error);
}

.shop-product-detail__short-desc {
  font-family: var(--font-text-family, var(--shop-font));
  font-size: var(--font-text-size, 1rem);
  color: var(--font-text-color, var(--shop-text));
  line-height: var(--font-text-line-height, 1.6);
  margin: 0;
}

.shop-product-detail__stock {
  font-size: 14px;
}

.shop-product-detail__stock--available {
  color: var(--shop-success);
}

.shop-product-detail__stock--unavailable {
  color: var(--shop-error);
}

.shop-product-detail__actions {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 10px;
}

.shop-product-detail__quantity {
  display: flex;
  align-items: center;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  overflow: hidden;
}

.shop-product-detail__quantity button {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--shop-bg);
  cursor: pointer;
  font-size: 18px;
}

.shop-product-detail__quantity button:hover {
  background: var(--shop-border);
}

.shop-product-detail__quantity button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.shop-product-detail__quantity input {
  width: 60px;
  text-align: center;
  border: none;
  font-size: 16px;
  padding: 8px;
}

.shop-product-detail__wishlist-btn {
  width: 50px;
  height: 50px;
  padding: 0;
}

.shop-product-detail__wishlist-btn svg {
  width: 24px;
  height: 24px;
}

.shop-product-detail__message {
  padding: 12px 15px;
  border-radius: var(--shop-radius);
  font-size: 14px;
}

.shop-product-detail__message--success {
  background: #d4edda;
  color: #155724;
}

.shop-product-detail__message--error {
  background: #f8d7da;
  color: #721c24;
}

.shop-product-detail__description {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--shop-border);
}

.shop-product-detail__description 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);
  color: var(--font-h3-color, var(--shop-text));
  text-transform: var(--font-h3-transform, none);
  letter-spacing: var(--font-h3-letter-spacing, normal);
  margin-bottom: 15px;
}

/* ===== Cart ===== */
.shop-cart {
  max-width: var(--shop-container);
  margin: 0 auto;
  padding: 0px;
}

.shop-cart__title {
  font-size: var(--font-h1-size, 2rem);
  font-weight: var(--font-h1-weight, 700);
  margin-bottom: 30px;
  text-align: left;
}

.shop-cart--empty {
  text-align: center;
  padding: 0px;
}

.shop-cart__empty-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.shop-cart__empty-message svg {
  color: var(--shop-border);
}

.shop-cart__items {
  background: var(--shop-white);
  border-radius: var(--shop-radius-lg);
  overflow: hidden;
  margin-bottom: 30px;
  border: 1px solid var(--shop-border);
}

.shop-cart__header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 40px;
  gap: 20px;
  padding: 15px 20px;
  background: var(--shop-bg);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
}

.shop-cart__item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 40px;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid var(--shop-border);
  align-items: center;
}

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

.shop-cart__item-product {
  display: flex;
  align-items: center;
  gap: 15px;
}

.shop-cart__item-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: var(--shop-radius);
  background: var(--shop-bg);
}

.shop-cart__item-name {
  text-decoration: none;
  font-weight: 500;
}

.shop-cart__item-name:hover {
  text-decoration: underline;
}

.shop-cart__item-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-cart__item-quantity button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  background: var(--shop-white);
  cursor: pointer;
}

.shop-cart__item-quantity button:hover {
  background: var(--shop-bg);
}

.shop-cart__item-total {
  font-weight: 600;
}

.shop-cart__item-remove {
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  color: var(--shop-text-light);
  font-size: 24px;
  cursor: pointer;
}

.shop-cart__item-remove:hover {
  color: var(--shop-error);
}

.shop-cart__footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.shop-cart__voucher {
  display: flex;
  gap: 10px;
  max-width: 400px;
}

.shop-cart__voucher input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  font-size: 14px;
}

.shop-cart__voucher-message {
  font-size: 14px;
  margin-top: 10px;
}

.shop-cart__voucher-message--success {
  color: var(--shop-success);
}

.shop-cart__voucher-message--error {
  color: var(--shop-error);
}

.shop-cart__totals {
  background: var(--shop-white);
  padding: 20px;
  border-radius: var(--shop-radius-lg);
  max-width: 400px;
  margin-left: auto;
  border: 1px solid var(--shop-border);
}

.shop-cart__subtotal,
.shop-cart__discount {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 15px;
}

.shop-cart__discount {
  color: inherit;
}

.shop-cart__actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

/* ===== Checkout ===== */
.shop-checkout {
  max-width: var(--shop-container);
  margin: 0 auto;
  padding: 0px;
}

.shop-checkout__title {
  font-size: var(--font-h1-size, 2rem);
  font-weight: var(--font-h1-weight, 700);
  margin-bottom: 2rem;
}

.shop-checkout__steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.shop-checkout__step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--shop-radius-lg);
  background: #e0e0e0;
  transition: all 0.3s ease;
  flex: 1;
}

.shop-checkout__step.active {
  background: var(--shop-accent, #ff6b35);
}

.shop-checkout__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  color: #666;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
}

.shop-checkout__step.active .shop-checkout__step-number {
  background: rgba(255, 255, 255, 0.9);
  color: var(--font-text-color, var(--shop-text, #333));
}

.shop-checkout__step-label {
  font-weight: 500;
  color: #666;
  font-size: 14px;
  transition: color 0.3s ease;
}

.shop-checkout__step.active .shop-checkout__step-label {
  color: var(--shop-white, #fff);
}

/* Connector lines between steps — removed */

.shop-checkout__content {
  display: grid;
  grid-template-columns: 1fr 350px;
}

.shop-checkout__section {
  background: var(--shop-white);
  padding: 30px;
  border-radius: var(--shop-radius-lg);
  border: 1px solid var(--shop-border);
}

.shop-checkout__section h2 {
  font-family: var(--font-h2-family, var(--shop-font));
  font-size: var(--font-h2-size, 2rem);
  font-weight: var(--font-h2-weight, 700);
  color: var(--font-h2-color, var(--shop-text));
  text-transform: var(--font-h2-transform, none);
  letter-spacing: var(--font-h2-letter-spacing, normal);
  margin-bottom: 25px;
}

.shop-checkout__section 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);
  color: var(--font-h3-color, var(--shop-text));
  text-transform: var(--font-h3-transform, none);
  letter-spacing: var(--font-h3-letter-spacing, normal);
  margin: 25px 0 15px;
}

.shop-checkout__field {
  margin-bottom: 20px;
}

.shop-checkout__field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.shop-checkout__field input,
.shop-checkout__field select,
.shop-checkout__field textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  font-size: 14px;
}

.shop-checkout__field input:focus,
.shop-checkout__field select:focus,
.shop-checkout__field textarea:focus {
  outline: none;
  border-color: var(--shop-primary);
}

.shop-checkout__row {
  display: flex;
  gap: 20px;
}

.shop-checkout__row .shop-checkout__field {
  flex: 1;
}

.shop-checkout__field--small {
  flex: 0.3 !important;
}

.shop-checkout__field--large {
  flex: 0.7 !important;
}

.shop-checkout__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.shop-checkout__checkbox input {
  width: auto;
  margin-top: 3px;
}

.shop-checkout__checkbox label {
  font-size: 14px;
}

.shop-checkout__checkbox a {
  color: var(--shop-primary);
}

.shop-checkout__address-section {
  margin-bottom: 20px;
}

.shop-checkout__address-select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--shop-primary);
  border-radius: var(--shop-radius);
  font-size: 14px;
  background: var(--shop-white);
  cursor: pointer;
  transition: all 0.2s;
}

.shop-checkout__address-select:hover {
  border-color: var(--shop-accent);
}

.shop-checkout__address-select:focus {
  outline: none;
  border-color: var(--shop-accent);
  box-shadow: 0 0 0 3px rgba(var(--shop-primary-rgb), 0.1);
}

.shop-checkout__address-form {
  margin-top: 20px;
}

.shop-checkout__customer-info {
  padding: 15px;
  background: var(--shop-bg);
  border-radius: var(--shop-radius);
  margin-bottom: 20px;
}

.shop-checkout__customer-info p {
  margin: 0;
  font-size: 14px;
}

.shop-checkout__shipping-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.shop-checkout__shipping-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.shop-checkout__shipping-name {
  font-weight: 500;
}

.shop-checkout__shipping-time {
  font-size: 13px;
  color: var(--shop-text-light);
}

.shop-checkout__shipping-price {
  font-weight: 600;
}

.shop-checkout__no-shipping {
  padding: 15px;
  background: var(--shop-bg);
  border-radius: var(--shop-radius);
  color: var(--shop-text-light);
  margin: 0;
}

.shop-checkout__payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-checkout__payment-option {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  cursor: pointer;
  transition: border-color 0.2s;
}

.shop-checkout__payment-option.selected {
  border-color: var(--shop-primary);
  background: var(--shop-primary-light);
}

.shop-checkout__payment-option input {
  display: none;
}

.shop-checkout__payment-icon {
  font-size: 24px;
}

.shop-checkout__review {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.shop-checkout__review-section {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--shop-border);
}

.shop-checkout__review-section h3 {
  margin: 0 0 10px 0;
}

.shop-checkout__review-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.shop-checkout__review-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  padding: 15px 0;
}

.shop-checkout__actions {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
}

.shop-checkout__error {
  background: #f8d7da;
  color: #721c24;
  padding: 15px;
  border-radius: var(--shop-radius);
  margin-bottom: 20px;
}

.shop-checkout__summary {
  background: var(--shop-white);
  padding: 25px;
  border-radius: var(--shop-radius-lg);
  height: fit-content;
  position: sticky;
  top: 100px;
  border: 1px solid var(--shop-border);
}

.shop-checkout__summary h3 {
  font-size: 18px;
  margin: 0 0 20px 0;
}

.shop-checkout__summary-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
}

.shop-checkout__summary-subtotal {
  display: flex;
  justify-content: space-between;
  padding: 15px 0 10px;
  font-size: 14px;
  font-weight: 600;
  border-top: 1px solid var(--shop-border);
  margin-top: 10px;
}

.shop-checkout__summary-tax {
  font-size: 13px;
  color: var(--shop-text-light);
  border-bottom: none;
  padding: 5px 0;
}

.shop-checkout__summary-total {
  display: flex;
  justify-content: space-between;
  padding: 20px 0 0;
  font-size: 18px;
  font-weight: 700;
}

/* ===== Auth Forms ===== */
.shop-auth {
  max-width: 500px;
  margin: 0px auto;
  padding: 0 var(--shop-spacing);
  min-height: 400px;
}

.shop-auth__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.shop-auth__container {
  background: var(--shop-white);
  padding: 40px;
  border-radius: var(--shop-radius-lg);
  border: 1px solid var(--shop-border);
}

.shop-auth__title {
  font-size: var(--font-h2-size, 2rem);
  font-weight: var(--font-h2-weight, 700);
  text-align: left;
  margin-bottom: 30px;
}

.shop-auth__subtitle {
  text-align: center;
  color: var(--shop-text-light);
  margin-bottom: 25px;
}

.shop-auth__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.shop-auth__field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.shop-auth__field input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  font-size: 14px;
}

.shop-auth__field input:focus {
  outline: none;
  border-color: var(--shop-primary);
}

.shop-auth__row {
  display: flex;
  gap: 20px;
}

.shop-auth__row .shop-auth__field {
  flex: 1;
}

.shop-auth__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.shop-auth__checkbox input {
  width: auto;
  margin-top: 3px;
}

.shop-auth__checkbox label {
  line-height: 1.4;
}

.shop-auth__forgot-link {
  text-align: right;
  color: var(--shop-accent);
  text-decoration: none;
  margin-top: -10px;
}

.shop-auth__forgot-link:hover {
  text-decoration: underline;
}

.shop-auth__error {
  background: #f8d7da;
  color: #721c24;
  padding: 12px 15px;
  border-radius: var(--shop-radius);
}

.shop-auth__verification-notice {
  margin-top: 8px;
  text-align: center;
}

.shop-auth__resend-link {
  background: none;
  border: none;
  color: var(--shop-primary);
  cursor: pointer;
  font-size: 0.875rem;
  padding: 0;
  text-decoration: underline;
}

.shop-auth__resend-link:hover {
  opacity: 0.8;
}

.shop-auth__resend-link:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.shop-auth__verification-success {
  background: #d4edda;
  color: #155724;
  padding: 10px 14px;
  border-radius: var(--shop-radius);
  font-size: 0.875rem;
  margin: 0;
}

.shop-auth__success {
  text-align: center;
  padding: 40px 0;
}

.shop-auth__success svg {
  color: var(--shop-success);
  margin-bottom: 20px;
}

.shop-auth__success h2 {
  margin-bottom: 15px;
}

.shop-auth__success p {
  color: var(--shop-text-light);
  margin-bottom: 25px;
}

.shop-auth__divider {
  text-align: center;
  position: relative;
  margin: 25px 0;
}

.shop-auth__divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--shop-border);
}

.shop-auth__divider span {
  background: var(--shop-white);
  padding: 0 15px;
  position: relative;
  color: var(--shop-text-light);
  font-size: 14px;
}

.shop-auth__register-prompt,
.shop-auth__login-prompt {
  text-align: center;
}

.shop-auth__register-prompt a,
.shop-auth__login-prompt a {
  font-weight: 500;
}

.shop-auth__back-link {
  text-align: center;
  margin-top: 20px;
}

.shop-auth__back-link a {
  color: var(--shop-text-light);
  text-decoration: none;
  font-size: 14px;
}

.shop-auth__back-link a:hover {
  color: var(--shop-primary);
}

/* ===== Dashboard ===== */
.shop-dashboard {
  max-width: var(--shop-container);
  margin: 0 auto;
  padding: 0px;
}

.shop-dashboard__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.shop-dashboard__title {
  font-family: var(--font-h1-family, var(--shop-font));
  font-size: var(--font-h1-size, 2.5rem);
  font-weight: var(--font-h1-weight, 700);
  color: var(--font-h1-color, var(--shop-text));
  text-transform: var(--font-h1-transform, none);
  letter-spacing: var(--font-h1-letter-spacing, normal);
}

.shop-dashboard__welcome {
  background: var(--shop-white);
  padding: 25px;
  border-radius: var(--shop-radius-lg);
  margin-bottom: 30px;
  border: 1px solid var(--shop-border);
}

.shop-dashboard__verification-notice {
  margin-top: 15px;
  padding: 12px 15px;
  background: #fff3cd;
  color: #856404;
  border-radius: var(--shop-radius);
  font-size: 14px;
}

.shop-dashboard__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.shop-dashboard__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--shop-white);
  padding: 30px;
  border-radius: var(--shop-radius-lg);
  text-decoration: none;
  color: inherit;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
  border: 1px solid var(--shop-border);
}

.shop-dashboard__card:hover {
  box-shadow: var(--shop-shadow);
}

.shop-dashboard__card-icon {
  color: var(--shop-accent, var(--font-h3-color, #055484));
  margin-bottom: 15px;
}

.shop-dashboard__card 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);
  color: var(--font-h3-color, var(--shop-text));
  text-transform: var(--font-h3-transform, none);
  margin: 0 0 8px 0;
}

.shop-dashboard__card p {
  font-family: var(--font-text-family, var(--shop-font));
  font-size: 12px;
  color: var(--font-text-color, var(--shop-text));
  margin: 0;
}

.shop-dashboard__recent-orders {
  background: var(--shop-white);
  padding: 25px;
  border-radius: var(--shop-radius-lg);
  border: 1px solid var(--shop-border);
}

.shop-dashboard__recent-orders h2 {
  font-family: var(--font-h2-family, var(--shop-font));
  font-size: var(--font-h2-size, 2rem);
  font-weight: var(--font-h2-weight, 700);
  color: var(--font-h2-color, var(--shop-text));
  text-transform: var(--font-h2-transform, none);
  letter-spacing: var(--font-h2-letter-spacing, normal);
  margin-bottom: 20px;
}

.shop-dashboard__orders-table {
  width: 100%;
  border-collapse: collapse;
}

.shop-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.shop-table-scroll .shop-dashboard__orders-table {
  /* Ensure table can scroll instead of forcing page overflow on narrow screens */
  min-width: 560px;
}

.shop-dashboard__orders-table th,
.shop-dashboard__orders-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--shop-border);
  white-space: nowrap;
}

.shop-dashboard__orders-table th {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--shop-text-light);
}

.shop-dashboard__orders-table a {
  color: var(--shop-accent);
  text-decoration: none;
}

.shop-dashboard__orders-table a:hover {
  text-decoration: underline;
}

.shop-order-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--shop-radius);
  font-size: 12px;
  font-weight: 500;
}

.shop-order-status--pending {
  background: #fff3cd;
  color: #856404;
}

.shop-order-status--processing {
  background: #cce5ff;
  color: #004085;
}

.shop-order-status--shipped {
  background: #d4edda;
  color: #155724;
}

.shop-order-status--delivered {
  background: #d4edda;
  color: #155724;
}

.shop-order-status--cancelled {
  background: #f8d7da;
  color: #721c24;
}

.shop-dashboard__view-all {
  display: inline-block;
  margin-top: 20px;
  color: var(--shop-primary);
  text-decoration: none;
  font-size: 14px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .shop-product-detail__content {
    grid-template-columns: 1fr;
  }

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

  .shop-checkout__summary {
    position: static;
  }

  .shop-dashboard__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .shop-cart__header {
    display: none;
  }

  .shop-cart__item {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .shop-cart__item-product {
    flex-wrap: wrap;
  }

  .shop-cart__item-quantity {
    order: 1;
  }

  .shop-cart__item-price,
  .shop-cart__item-total {
    font-size: 14px;
  }

  .shop-cart__actions {
    flex-direction: column;
  }

  .shop-checkout__row {
    flex-direction: column;
    gap: 0;
  }

  .shop-checkout__field--small,
  .shop-checkout__field--large {
    flex: 1 !important;
  }

  .shop-checkout__actions {
    flex-direction: column;
    gap: 15px;
  }

  .shop-checkout__steps {
    flex-direction: column;
    gap: 0.5rem;
  }

  .shop-checkout__step {
    width: 100%;
    max-width: 280px;
  }

  .shop-auth__row {
    flex-direction: column;
    gap: 0;
  }

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

  .shop-dashboard__orders-table {
    font-size: 14px;
  }

  .shop-table-scroll .shop-dashboard__orders-table {
    min-width: 420px;
  }

  .shop-dashboard__orders-table th,
  .shop-dashboard__orders-table td {
    padding: 10px 12px;
  }

  .shop-dashboard__orders-table th:nth-child(2),
  .shop-dashboard__orders-table td:nth-child(2) {
    display: none;
  }
}

/* ===== Customer Addresses ===== */
.shop-addresses {
  width: 100%;
}

.shop-addresses__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--shop-bg);
  padding-bottom: 15px;
}

.shop-addresses__title {
  font-family: var(--font-h2-family, var(--shop-font));
  font-size: var(--font-h2-size, 2rem);
  font-weight: var(--font-h2-weight, 700);
  color: var(--font-h2-color, var(--shop-primary));
  text-transform: var(--font-h2-transform, uppercase);
  letter-spacing: var(--font-h2-letter-spacing, normal);
  margin: 0;
}

.shop-addresses__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.shop-addresses__card {
  background: var(--shop-white);
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius-lg);
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.shop-addresses__card:hover {
  box-shadow: var(--shop-shadow);
}

.shop-addresses__card-header {
  background: var(--shop-bg);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--shop-border);
}

.shop-addresses__type {
  font-weight: 600;
  font-size: 14px;
  color: var(--shop-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.shop-addresses__default {
  background: var(--shop-accent);
  color: var(--shop-white);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}

.shop-addresses__card-body {
  padding: 20px;
  flex: 1;
  font-size: 15px;
  color: var(--font-text-color, var(--shop-text));
  line-height: 1.5;
}

.shop-addresses__card-body p {
  margin: 0 0 5px;
}

.shop-addresses__card-body p:last-child {
  margin: 0;
}

.shop-addresses__card-actions {
  padding: 15px 20px;
  border-top: 1px solid var(--shop-border);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--shop-white);
}

.shop-addresses__form {
  background: var(--shop-white);
  padding: 30px;
  border-radius: var(--shop-radius-lg);
  box-shadow: var(--shop-shadow);
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--shop-border);
}

.shop-addresses__actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--shop-border);
}

.shop-addresses__empty {
  text-align: center;
  padding: 60px;
  background: var(--shop-white);
  border-radius: var(--shop-radius-lg);
  border: 1px solid var(--shop-border);
  color: var(--shop-text-light);
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

/* ===== Order Detail ===== */
.shop-order-detail {
  max-width: var(--shop-container);
  margin: 0 auto;
  padding: var(--shop-spacing);
}

.shop-order-detail--error {
  text-align: center;
  padding: 60px var(--shop-spacing);
}

.shop-order-detail__loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.shop-order-detail__header {
  margin-bottom: 30px;
}

.shop-order-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 15px;
  transition: color 0.2s;
}

.shop-order-detail__title {
  margin: 0 0 8px 0;
}

.shop-order-detail__date {
  color: var(--shop-text-light);
  margin: 0;
}

.shop-order-detail__status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  background: var(--shop-white);
  padding: 20px;
  border-radius: var(--shop-radius-lg);
  box-shadow: var(--shop-shadow);
  margin-bottom: 25px;
}

.shop-order-detail__status-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shop-order-detail__status-label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--shop-text-light);
  letter-spacing: 0.5px;
}

.shop-order-detail__status-value {
  font-weight: 600;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
}

.shop-order-detail__status--pending {
  background: var(--shop-warning);
  color: #856404;
}

.shop-order-detail__status--processing {
  background: #cce5ff;
  color: #004085;
}

.shop-order-detail__status--shipped,
.shop-order-detail__status--delivered {
  background: #d4edda;
  color: #155724;
}

.shop-order-detail__status--cancelled {
  background: #f8d7da;
  color: #721c24;
}

.shop-order-detail__payment--pending {
  background: var(--shop-warning);
  color: #856404;
}

.shop-order-detail__payment--paid {
  background: #d4edda;
  color: #155724;
}

.shop-order-detail__payment--failed {
  background: #f8d7da;
  color: #721c24;
}

.shop-order-detail__actions {
  margin-bottom: 25px;
}

.shop-order-detail__pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.shop-order-detail__pdf-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.shop-order-detail__tracking {
  background: var(--shop-primary-light);
  padding: 20px;
  border-radius: var(--shop-radius-lg);
  margin-bottom: 25px;
}

.shop-order-detail__content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  margin-bottom: 30px;
}

.shop-order-detail__items {
  background: var(--shop-white);
  padding: 25px;
  border-radius: var(--shop-radius-lg);
  box-shadow: var(--shop-shadow);
}

.shop-order-detail__table {
  width: 100%;
  border-collapse: collapse;
}

.shop-order-detail__table th,
.shop-order-detail__table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--shop-border);
}

.shop-order-detail__table th {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--shop-text-light);
  font-weight: 600;
}

.shop-order-detail__table tbody tr:last-child td {
  border-bottom: none;
}

.shop-order-detail__product {
  display: flex;
  align-items: center;
  gap: 15px;
}

.shop-order-detail__product-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--shop-radius);
}

.shop-order-detail__product-name {
  font-weight: 500;
  color: var(--shop-accent);
  text-decoration: none;
}

.shop-order-detail__product-name:hover {
  text-decoration: underline;
}

.shop-order-detail__product-variant {
  display: block;
  font-size: 13px;
  color: var(--shop-text-light);
  margin-top: 4px;
}

.shop-order-detail__summary {
  background: var(--shop-white);
  padding: 25px;
  border-radius: var(--shop-radius-lg);
  box-shadow: var(--shop-shadow);
  height: fit-content;
}

.shop-order-detail__summary-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.shop-order-detail__summary-row--discount {
  color: inherit;
}

.shop-order-detail__summary-row--total {
  font-size: 18px;
  font-weight: 700;
  padding-top: 12px;
  border-top: 2px solid var(--font-text-color, var(--shop-text));
  margin-top: 8px;
}

.shop-order-detail__addresses {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.shop-order-detail__address-block {
  background: var(--shop-white);
  padding: 25px;
  border-radius: var(--shop-radius-lg);
  box-shadow: var(--shop-shadow);
}

.shop-order-detail__address p {
  margin: 0 0 4px 0;
  font-size: 14px;
}

.shop-order-detail__notes {
  background: var(--shop-white);
  padding: 25px;
  border-radius: var(--shop-radius-lg);
  box-shadow: var(--shop-shadow);
}

.shop-order-detail__notes p {
  margin: 0;
  color: var(--shop-text-light);
}

/* Order Detail Responsive */
@media (max-width: 900px) {
  .shop-order-detail__content {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .shop-addresses__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .shop-addresses__header button {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .shop-order-detail__status-bar {
    flex-direction: column;
    gap: 15px;
  }

  .shop-order-detail__table th:nth-child(3),
  .shop-order-detail__table td:nth-child(3) {
    display: none;
  }

  .shop-order-detail__product-image {
    width: 50px;
    height: 50px;
  }

  .shop-order-detail__pdf-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== Header ===== */
.shop-header {
  background: var(--shop-white);
  box-shadow: var(--shop-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.shop-header__container {
  max-width: var(--shop-container);
  margin: 0 auto;
  padding: 0 var(--shop-spacing);
}

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

.shop-header__left,
.shop-header__center,
.shop-header__right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.shop-header__center {
  flex: 1;
  justify-content: center;
}

.shop-header__right {
  justify-content: flex-end;
  margin-left: auto;
}

.shop-header__top {
  background: var(--color-background-navigation, var(--shop-primary, #006699));
  color: var(--shop-white);
  font-size: 13px;
  padding: 8px 0;
}

.shop-header__top .shop-header__container--flex {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
  width: 100%;
}

.shop-header__top .shop-header__left,
.shop-header__top .shop-header__center,
.shop-header__top .shop-header__right {
  display: flex !important;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.shop-header__top .shop-header__left {
  justify-content: flex-start;
  order: 1;
}

.shop-header__top .shop-header__center {
  flex: 1;
  justify-content: center;
  min-width: 0;
  order: 2;
}

.shop-header__top .shop-header__right {
  justify-content: flex-end;
  flex-shrink: 0;
  order: 3;
}

/* Ensure nav elements are inline */
.shop-header__top .shop-header__nav {
  display: inline-flex !important;
}

.shop-header__top .shop-header__nav-list {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
}

.shop-header__top-nav {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

/* Between 769px and 1024px: show only icons, hide text */
@media (min-width: 769px) and (max-width: 1024px) {
  .shop-header__top-nav .shop-header__nav-text {
    display: none;
  }

  .shop-header__top-nav .shop-header__nav-icon {
    width: 20px;
    height: 20px;
  }

  .shop-header__top-nav {
    gap: 16px;
  }
}

.shop-header__top-nav a,
.shop-header__top-nav span,
.shop-header__top-nav button {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--font-navigation-text-color, var(--shop-white));
  text-decoration: none;
  font-family: var(--font-navigation-text-family, var(--shop-font));
  font-size: var(--font-navigation-text-size, 13px);
  font-weight: var(--font-navigation-text-weight, 400);
  text-transform: var(--font-navigation-text-transform, none);
  font-style: var(--font-navigation-text-style, normal);
  line-height: var(--font-navigation-text-line-height, normal);
  letter-spacing: var(--font-navigation-text-letter-spacing, 0);
  transition:
    opacity 0.2s,
    color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}

.shop-header__top-nav a:hover,
.shop-header__top-nav button:hover {
  color: var(
    --font-navigation-text-color-hover,
    var(--font-navigation-text-color, var(--shop-white))
  );
  opacity: 0.8;
}

.shop-header__top-nav a:active,
.shop-header__top-nav button:active {
  color: var(
    --font-navigation-text-color-active,
    var(--font-navigation-text-color, var(--shop-white))
  );
}

/* Icon and Text Styling */
.shop-header__nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition:
    width 0.2s,
    height 0.2s;
}

.shop-header__nav-text {
  display: inline-block;
}

/* Mobile Menu Overlay */
.shop-header__mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* Mobile Menu for Top Nav */
.shop-header__mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--shop-primary);
  padding: 20px;
  z-index: 1000;
  overflow-y: auto;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

.shop-header__mobile-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: var(--font-navigation-text-color, var(--shop-white));
  cursor: pointer;
  padding: 6px 10px;
  right: 21px;
  z-index: 1001;
}

.shop-header__mobile-close svg {
  width: 24px;
  height: 24px;
}

.shop-header__mobile-top-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shop-header__mobile-top-nav a {
  color: var(--font-navigation-text-color, var(--shop-white));
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-family: var(--font-navigation-text-family, var(--shop-font));
  font-size: var(--font-navigation-text-size, 16px);
  font-weight: var(--font-navigation-text-weight, 500);
  text-transform: var(--font-navigation-text-transform, none);
  font-style: var(--font-navigation-text-style, normal);
  letter-spacing: var(--font-navigation-text-letter-spacing, 0);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.shop-header__mobile-top-nav a:last-child {
  border-bottom: none;
}

.shop-header__mobile-top-nav a:hover {
  color: var(
    --font-navigation-text-color-hover,
    var(--font-navigation-text-color, var(--shop-white))
  );
  opacity: 0.8;
}

.shop-header__mobile-top-nav .shop-header__nav-icon {
  width: 20px;
  height: 20px;
}

/* Under 1280px: Show only icons */
@media (max-width: 1279px) {
  .shop-header__nav-text {
    display: none;
  }

  .shop-header__nav-icon {
    width: 20px;
    height: 20px;
  }

  .shop-header__top-nav {
    gap: 16px;
  }
}

/* Mobile: Hide top nav, show burger menu */
@media (max-width: 768px) {
  .shop-header__top-nav {
    display: none;
  }

  .shop-header__mobile-menu {
    display: block;
  }

  .shop-header__mobile-overlay {
    display: block;
  }

  .shop-header__mobile-toggle {
    display: flex;
    position: absolute;
    top: 15px;
    right: 20px;
  }

  .shop-header__cart {
    margin-right: auto;
    order: -1;
  }
}

.shop-header__main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 0;
  gap: 20px;
  position: relative;
  background: var(--color-background-navigation, var(--shop-primary, #006699));
}

.shop-header__main .shop-header__container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  width: 100%;
  max-width: var(--shop-container);
  margin: 0 auto;
  padding: 0 var(--shop-spacing);
  flex-wrap: wrap;
}

.shop-header__logo {
  display: flex;
  align-items: center;
}

.shop-header__logo-link {
  display: inline-flex !important;
  align-items: center;
  transition: color 0.3s ease;
  height: var(--logo-height, 50px);
}

@media (max-width: 768px) {
  .shop-header__logo-link {
    height: var(--logo-height-mobile, var(--logo-height, 40px));
  }
}

.shop-header__logo-img {
  width: auto !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  display: block;
  object-fit: contain;
}

.shop-header__logo-svg {
  width: auto !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  display: block;
}

.shop-header__logo-svg > div {
  width: auto !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  display: block;
}

.shop-header__logo-svg > div svg,
.shop-header__logo-svg svg {
  width: auto !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  color: inherit;
  display: block;
}

.shop-header__logo img {
  max-height: 40px;
  width: auto;
  display: block;
}

.shop-header__top .shop-header__logo img {
  max-height: 50px;
}

.shop-header__logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--shop-primary);
}

.shop-header__search {
  flex: 1;
  max-width: 400px;
  display: flex;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  overflow: hidden;
  order: 0;
}

.shop-header__search input {
  flex: 1;
  padding: 10px 15px;
  border: none;
  outline: none;
  font-size: 14px;
}

.shop-header__search button {
  background: var(--shop-bg);
  border: none;
  padding: 10px 15px;
  cursor: pointer;
}

.shop-header__search button svg {
  width: 18px;
  height: 18px;
  color: var(--shop-text-light);
}

/* ===== Search Autocomplete ===== */
.search-autocomplete {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-autocomplete__form {
  display: flex;
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius);
  overflow: hidden;
  background: var(--shop-white);
}

.search-autocomplete__input {
  flex: 1;
  padding: 10px 15px;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
}

.search-autocomplete__button {
  background: var(--shop-bg);
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-autocomplete__button svg {
  width: 18px;
  height: 18px;
  color: var(--shop-text-light);
}

.search-autocomplete__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--shop-border);
  border-top-color: var(--shop-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.search-autocomplete__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--shop-white);
  border: 1px solid var(--shop-border);
  border-top: none;
  border-radius: 0 0 var(--shop-radius) var(--shop-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
}

.search-autocomplete__dropdown--empty {
  padding: 20px;
  text-align: center;
  color: var(--shop-text-light);
}

.search-autocomplete__dropdown--empty p {
  margin: 0;
}

.search-autocomplete__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--shop-text);
  transition: background-color 0.15s;
  border-bottom: 1px solid var(--shop-border);
}

.search-autocomplete__item:last-of-type {
  border-bottom: none;
}

.search-autocomplete__item:hover,
.search-autocomplete__item--selected {
  background-color: var(--shop-primary-light);
}

.search-autocomplete__item-image {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background: var(--shop-bg);
  border-radius: var(--shop-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-autocomplete__item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-autocomplete__item-placeholder {
  color: var(--shop-border);
}

.search-autocomplete__item-placeholder svg {
  width: 24px;
  height: 24px;
}

.search-autocomplete__item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-autocomplete__item-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--shop-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-autocomplete__item-sku {
  font-weight: 400;
  color: var(--shop-text-light);
  font-size: 12px;
}

.search-autocomplete__item-price {
  font-size: 13px;
  color: var(--shop-text-light);
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-autocomplete__item-price--sale {
  color: var(--shop-error);
  font-weight: 600;
}

.search-autocomplete__item-price--original {
  text-decoration: line-through;
  font-size: 12px;
  opacity: 0.7;
}

.search-autocomplete__view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  text-decoration: none;
  color: var(--shop-primary);
  font-size: 14px;
  font-weight: 500;
  background: var(--shop-bg);
  transition: background-color 0.15s;
}

.search-autocomplete__view-all:hover {
  background: var(--shop-primary-light);
}

.search-autocomplete__view-all svg {
  width: 16px;
  height: 16px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .search-autocomplete {
    max-width: 100%;
    width: 100%;
  }

  .search-autocomplete__dropdown {
    position: fixed;
    left: 10px;
    right: 10px;
    top: auto;
    max-height: 60vh;
    border-radius: var(--shop-radius);
    border: 1px solid var(--shop-border);
  }

  .search-autocomplete__item-image {
    width: 40px;
    height: 40px;
  }
}

.shop-header__cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--font-button-background-color, var(--shop-accent));
  color: var(--font-button-color, var(--shop-white));
  border: none;
  padding: 10px 15px;
  border-radius: var(--font-button-border-radius, var(--shop-radius));
  cursor: pointer;
  font-family: var(--font-button-family, var(--shop-font));
  font-size: var(--font-button-size, 14px);
  font-weight: var(--font-button-weight, 600);
  text-transform: var(--font-button-transform, none);
  font-style: var(--font-button-style, normal);
  letter-spacing: var(--font-button-letter-spacing, normal);
  line-height: var(--font-button-line-height, normal);
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.shop-header__cart-btn:hover {
  background-color: var(--font-button-background-color-hover, var(--shop-accent));
  color: var(--font-button-color-hover, var(--shop-white));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.shop-header__cart-btn svg {
  width: 20px;
  height: 20px;
}

.shop-header__cart {
  position: relative;
  order: 0;
}

.shop-header__cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--shop-accent);
  color: var(--shop-white);
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.shop-header__cart-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--shop-white);
  border: 1px solid var(--shop-border);
  border-radius: var(--shop-radius-lg);
  padding: 0;
  min-width: 320px;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  animation: slideDown 0.2s ease;
}

@media (max-width: 768px) {
  .shop-header__cart-dropdown {
    position: fixed;
    top: auto;
    right: 8px;
    left: 8px;
    min-width: unset;
    max-width: unset;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shop-header__cart-empty {
  padding: 30px 20px;
  text-align: center;
}

.shop-header__cart-empty p {
  margin: 0 0 15px;
  color: var(--shop-text-light);
}

.shop-header__cart-items {
  max-height: 300px;
  overflow-y: auto;
  padding: 10px 0;
}

.shop-header__cart-item {
  display: flex;
  gap: 12px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--shop-border);
}

.shop-header__cart-item:last-child {
  border-bottom: none;
}

.shop-header__cart-item-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: var(--shop-radius);
}

.shop-header__cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shop-header__cart-item-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--shop-text);
  line-height: 1.3;
}

.shop-header__cart-item-qty {
  font-size: 13px;
  color: var(--shop-text-light);
}

.shop-header__cart-more {
  padding: 10px 15px;
  margin: 0;
  font-size: 13px;
  color: var(--shop-text-light);
  text-align: center;
  background: var(--shop-bg);
}

.shop-header__cart-footer {
  padding: 15px;
  background: var(--shop-bg);
  border-top: 1px solid var(--shop-border);
  border-radius: 0 0 var(--shop-radius-lg) var(--shop-radius-lg);
}

.shop-header__cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 16px;
}

.shop-header__cart-actions {
  display: flex;
  gap: 10px;
}

.shop-header__cart-actions .shop-btn {
  flex: 1;
  text-align: center;
}

.shop-btn--small {
  padding: 8px 12px;
  font-size: 13px;
}

.shop-header__nav {
  background: transparent;
  border-top: none;
}

.shop-header__nav--left,
.shop-header__nav--center,
.shop-header__nav--right {
  background: transparent;
  border-top: none;
}

.shop-header__nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
  align-items: center;
}

.shop-header__nav-item {
  display: flex;
  align-items: center;
}

.shop-header__nav-item a,
.shop-header__nav-item span {
  display: block;
  padding: 8px 0;
  color: var(--font-navigation-text-color, var(--shop-white));
  text-decoration: none;
  font-family: var(--font-navigation-text-family, var(--shop-font));
  font-size: var(--font-navigation-text-size, 13px);
  font-weight: var(--font-navigation-text-weight, 500);
  text-transform: var(--font-navigation-text-transform, none);
  font-style: var(--font-navigation-text-style, normal);
  line-height: var(--font-navigation-text-line-height, normal);
  letter-spacing: var(--font-navigation-text-letter-spacing, 0);
  transition:
    opacity 0.2s,
    color 0.2s;
  white-space: nowrap;
}

.shop-header__nav-item a:hover {
  color: var(
    --font-navigation-text-color-hover,
    var(--font-navigation-text-color, var(--shop-white))
  );
  opacity: 0.8;
}

.shop-header__nav-item a:active {
  color: var(
    --font-navigation-text-color-hover,
    var(--font-navigation-text-color, var(--shop-white))
  );
  opacity: 0.8;
}

.shop-header__nav-item span {
  cursor: default;
}

.shop-header__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.shop-header__mobile-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--shop-text);
}

/* ===== Footer ===== */
.shop-footer {
  background: var(--shop-white);
  margin-top: 60px;
}

.shop-footer__main {
  padding: 50px 0;
}

.shop-footer__container {
  max-width: var(--shop-container);
  margin: 0 auto;
  padding: 0 var(--shop-spacing);
}

.shop-footer__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
}

.shop-footer__title {
  font-family: var(--font-h3-family, var(--shop-font));
  font-size: var(--font-h3-size, 1.75rem);
  font-weight: var(--font-h3-weight, 600);
  color: var(--font-h3-color, var(--shop-primary));
  text-transform: var(--font-h3-transform, uppercase);
  letter-spacing: var(--font-h3-letter-spacing, normal);
  margin: 0 0 15px 0;
}

.shop-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shop-footer__links li {
  margin-bottom: 8px;
}

.shop-footer__links a {
  font-family: var(--font-link-family, var(--shop-font));
  font-size: var(--font-link-size, inherit);
  font-weight: var(--font-link-weight, inherit);
  color: var(--font-link-color, var(--shop-text-light));
  text-decoration: none;
  transition: color 0.2s;
}

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

.shop-footer__bottom {
  background: var(--shop-primary);
  color: var(--shop-white);
  padding: 15px 0;
  font-size: 13px;
}

.shop-footer__bottom .shop-footer__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shop-footer__bottom-links {
  display: flex;
  gap: 20px;
}

.shop-footer__bottom-links a {
  color: var(--shop-white);
  text-decoration: none;
}

/* ===== Buttons ===== */
.shop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--font-button-border-radius, 999px);
  font-family: var(--font-button-family, var(--shop-font));
  font-size: var(--font-button-size, 14px);
  font-weight: var(--font-button-weight, 600);
  text-transform: var(--font-button-transform, none);
  font-style: var(--font-button-style, normal);
  letter-spacing: var(--font-button-letter-spacing, normal);
  line-height: var(--font-button-line-height, normal);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.shop-btn--primary {
  background-color: var(--font-button-background-color, var(--shop-primary));
  color: var(--font-button-color, var(--shop-white));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.shop-btn--primary:hover {
  background-color: var(--font-button-background-color-hover, var(--shop-primary-hover));
  color: var(--font-button-color-hover, var(--shop-white));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.shop-btn--secondary:hover {
  background: var(--shop-bg);
}

.shop-btn--large {
  padding: 15px 32px;
  font-size: 16px;
}

.shop-btn--full {
  width: 100%;
}

.shop-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== Spinner ===== */
.shop-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--shop-border);
  border-top-color: var(--shop-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* ===== Badges ===== */
.shop-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: var(--shop-radius);
}

.shop-badge--new {
  background: var(--shop-primary);
  color: var(--shop-white);
}

.shop-badge--bestseller {
  background: var(--shop-accent);
  color: var(--shop-white);
}

.shop-badge--sale {
  background: var(--shop-error);
  color: var(--shop-white);
}

.shop-badge--sold {
  background: var(--shop-text-light);
  color: var(--shop-white);
}

/* ===== Product Card ===== */
.product-card {
  background: var(--shop-white);
  border-radius: var(--shop-radius-lg);
  overflow: hidden;
  transition:
    box-shadow 0.3s,
    border-color 0.3s;
  margin-top: 1.5rem;
  border: 1px solid var(--shop-border);
}

.product-card:hover {
  box-shadow: var(--shop-shadow);
}

.product-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.product-card__image-wrapper {
  position: relative;
  aspect-ratio: 1;
  background: var(--shop-secondary);
  overflow: hidden;
  padding: 50px;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.product-card:hover .product-card__image {
  transform: scale(1.05);
}

.product-card__no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--shop-border);
}

.product-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.product-card__actions {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  gap: 8px;
  opacity: 1;
}

.product-card__actions.visible,
.product-card:hover .product-card__actions {
  opacity: 1;
}

.product-card__action-btn {
  width: 40px;
  height: 40px;
  border-radius: 0;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.product-card__cart-btn {
  background: var(--font-button-background-color, var(--shop-accent));
  color: var(--font-button-color, var(--shop-white));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.product-card__cart-btn:hover {
  background: var(
    --font-button-background-color-hover,
    var(--font-button-background-color, var(--shop-accent))
  );
  color: var(--font-button-color-hover, var(--font-button-color, var(--shop-white)));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.product-card__wishlist-btn {
  background: var(--shop-white);
  color: var(--shop-text-light);
  box-shadow: var(--shop-shadow);
}

.product-card__wishlist-btn:hover {
  color: var(--shop-error);
}

.product-card__action-btn svg {
  width: 20px;
  height: 20px;
}

.product-card__info {
  padding: 15px;
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card__name {
  font-family: var(--font-h3-family, var(--shop-font));
  font-size: var(--font-h3-size, 1.75rem);
  font-weight: var(--font-h3-weight, 600);
  color: var(--font-h3-color, var(--shop-text));
  text-transform: var(--font-h3-transform, uppercase);
  letter-spacing: var(--font-h3-letter-spacing, normal);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.product-card__description {
  font-family: var(--font-text-family, var(--shop-font));
  font-size: var(--font-text-size, 1rem);
  color: var(--font-text-color, var(--shop-text));
  line-height: var(--font-text-line-height, 1.6);
  margin: 0 0 10px 0;
}

.product-card__price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
}

.product-card__price {
  font-family: var(--font-h2-family, var(--shop-font));
  font-size: 1.25rem;
  font-weight: var(--font-h2-weight, 700);
  color: var(--shop-accent);
}

.product-card__price--original {
  font-size: 0.9rem;
  color: var(--shop-text-light);
  text-decoration: line-through;
}

.product-card__price--sale {
  color: var(--shop-error);
  font-size: 1.25rem;
}

/* ===== Product Card - List Mode ===== */
.product-card--list {
  margin-top: 0;
}

.product-card--list .product-card__link {
  flex-direction: row;
  align-items: center;
}

.product-card--list .product-card__image-wrapper {
  width: 200px;
  min-width: 200px;
  max-width: 200px;
  aspect-ratio: 1;
  padding: 16px;
  flex-shrink: 0;
}

.product-card--list .product-card__image {
  object-fit: contain;
}

.product-card--list .product-card__info {
  padding: 16px 20px;
  justify-content: center;
}

.product-card--list .product-card__name {
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  margin-bottom: 6px;
}

.product-card--list .product-card__description {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.product-card--list .product-card__actions--list {
  position: static;
  opacity: 1;
  display: flex;
  margin-top: 16px;
  justify-content: flex-start;
  gap: 8px;
}

.product-card--list .product-card__actions--list .product-card__action-btn {
  border-radius: var(--shop-radius, 4px);
}

/* ===== View Toggle ===== */
.shop-product-grid__controls {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 8px;
}

.shop-product-grid__view-toggle {
  display: flex;
  gap: 4px;
  align-items: center;
}

.shop-product-grid__view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: var(--shop-radius, 4px);
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s;
}

.shop-product-grid__view-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.9);
}

.shop-product-grid__view-btn--active {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* ===== Product Grid - List Mode ===== */
.shop-product-grid--list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--shop-bg);
  margin-bottom: 45px;
  padding: 12px 0;
}

@media (max-width: 768px) {
  .product-card--list .product-card__image-wrapper {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    padding: 10px;
  }

  .product-card--list .product-card__cart-btn--list span {
    display: none;
  }

  .product-card--list .product-card__cart-btn--list {
    padding: 8px 10px;
  }

  .shop-product-grid {
    display: grid;
    gap: 20px;
    background: var(--shop-bg);
    margin-bottom: 0;
  }
}

.shop-pagination__info-short {
  display: none;
}

@media (max-width: 440px) {
  .shop-product-grid__pagination {
    gap: 8px;
    padding: 12px 8px;
  }

  .shop-pagination__btn-text {
    display: none;
  }
  .shop-pagination__info-full {
    display: none;
  }
  .shop-pagination__info-short {
    display: inline;
  }
}

@media (max-width: 480px) {
  .product-card--list .product-card__image-wrapper {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    padding: 8px;
  }

  .product-card--list .product-card__info {
    padding: 10px 12px;
  }

  .product-card--list .product-card__name {
    font-size: 0.8rem;
  }

  .product-card--list .product-card__description {
    display: none;
  }

  .shop-product-grid__controls {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
  }
}

/* ===== Product Grid ===== */

.shop-product-grid {
  display: grid;
  gap: 20px;
  background: var(--shop-bg);
  margin-bottom: 45px;
}

.shop-product-grid--cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.shop-product-grid--cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.shop-product-grid--cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ===== Featured Products ===== */
.shop-featured-products-block {
  padding: 40px 0;
  max-width: var(--shop-container);
  margin: 0 auto;
  padding-left: var(--shop-spacing);
  padding-right: var(--shop-spacing);
  border: none !important;
  border-left: none !important;
  border-right: none !important;
}

.shop-featured-products__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  background: var(--shop-accent);
  border: none !important;
  border-left: none !important;
  border-right: none !important;
}

.shop-featured-products__title {
  font-family: var(--font-navigation-text-family, var(--shop-font));
  font-size: var(--font-navigation-text-size, 16px);
  font-weight: var(--font-navigation-text-weight, 600);
  color: var(--color-background-accent-contrast, #ffffff);
  background: var(--shop-accent);
  padding: 16px 20px;
  margin: 0;
  text-transform: var(--font-navigation-text-transform, uppercase);
  letter-spacing: var(--font-navigation-text-letter-spacing, 0.5px);
  flex: 1;
}

.shop-featured-products__view-all {
  color: var(--shop-primary);
  text-decoration: none;
  font-weight: 500;
  padding: 12px 20px;
}

.shop-featured-products__grid {
  display: grid;
  gap: 20px;
  border: none !important;
  border-left: none !important;
  border-right: none !important;
}

.shop-featured-products--cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.shop-featured-products--cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ===== Category Grid ===== */
.shop-category-grid-block {
  padding-bottom: 2rem;
  max-width: var(--shop-container);
  margin: 0 auto;
  padding-left: var(--shop-spacing);
  padding-right: var(--shop-spacing);
}

.shop-category-grid__title {
  font-family: var(--font-navigation-text-family, var(--shop-font));
  font-size: var(--font-navigation-text-size, 16px);
  font-weight: var(--font-navigation-text-weight, 600);
  color: var(--color-background-accent-contrast, #ffffff);
  background: var(--shop-accent);
  padding: 16px 20px;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--shop-radius-lg) var(--shop-radius-lg) 0 0;
}

.shop-category-grid {
  display: grid;
  gap: 20px;
}

.shop-category-grid--cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.shop-category-grid--cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.shop-category-grid__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--shop-white);
  border-radius: var(--shop-radius-lg);
  overflow: hidden;
  text-decoration: none;
  transition:
    box-shadow 0.3s,
    transform 0.3s,
    border-color 0.3s;
  border: 1px solid var(--shop-border);
}

.shop-category-grid__item:hover {
  box-shadow: var(--shop-shadow);
}

.shop-category-grid__image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 20px;
  background: var(--shop-secondary);
}

.shop-category-grid__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.shop-category-grid__item:hover .shop-category-grid__image img {
  transform: scale(1.05);
}

.shop-category-grid__name {
  padding: 15px 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--shop-text);
  text-transform: uppercase;
}

/* Category Horizontal Layout */
.shop-category-horizontal-block {
  padding: 20px 0;
  max-width: var(--shop-container);
  margin: 0 auto;
  padding-left: var(--shop-spacing);
  padding-right: var(--shop-spacing);
}

.shop-category-horizontal__title {
  font-size: var(--font-h2-size, 2rem);
  font-weight: var(--font-h2-weight, 700);
  margin: 0 0 15px 0;
}

.shop-category-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shop-category-horizontal__item {
  padding: 10px 20px;
  background: var(--shop-white);
  border: 1px solid var(--shop-border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--shop-text);
  font-size: 14px;
  transition: all 0.2s;
}

.shop-category-horizontal__item:hover {
  box-shadow: var(--shop-shadow);
}

/* Responsive Category Grid */
@media (max-width: 768px) {
  .shop-category-grid--cols-3,
  .shop-category-grid--cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .shop-category-grid--cols-3,
  .shop-category-grid--cols-4 {
    grid-template-columns: 1fr;
  }
}

/* Search wrapper desktop: always visible */
.shop-header__search-wrapper {
  flex: 1;
  max-width: 400px;
  min-width: 0;
}

/* Mobile logo: hidden on desktop */
.shop-header__mobile-logo {
  display: none;
}

/* Search toggle: hidden on desktop */
.shop-header__search-toggle {
  display: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  /* Hide top bar on mobile */
  .shop-header__top {
    display: none;
  }

  /* Main container: single row */
  .shop-header__main .shop-header__container {
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    padding: 0 16px;
  }

  /* Mobile logo */
  .shop-header__mobile-logo {
    display: flex;
    align-items: center;
    flex: 1;
    order: 0;
    min-width: 0;
  }

  /* Cart icon only */
  .shop-header__cart {
    order: 1;
    flex-shrink: 0;
  }

  .shop-header__cart-btn {
    background: none;
    color: var(--shop-text);
    padding: 8px;
    border-radius: 0;
    box-shadow: none;
  }

  .shop-header__cart-btn:hover {
    background: none;
    color: var(--shop-text);
    box-shadow: none;
  }

  .shop-header__cart-text,
  .shop-header__cart-count,
  .shop-header__cart-arrow {
    display: none;
  }

  /* Search toggle */
  .shop-header__search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 2;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--shop-text);
    padding: 8px;
    flex-shrink: 0;
  }

  /* Burger */
  .shop-header__mobile-toggle {
    display: flex;
    position: static;
    order: 3;
    flex-shrink: 0;
    padding: 8px;
    margin-left: 0;
  }

  /* Search wrapper: slides in below header when open */
  .shop-header__search-wrapper {
    display: none;
  }

  .shop-header__search-wrapper--open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--shop-white);
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 100;
  }

  .shop-header__nav {
    display: none;
  }

  .shop-header__nav.open {
    display: block;
  }

  .shop-header__nav-list {
    flex-direction: column;
    gap: 0;
  }

  .shop-product-grid--cols-3,
  .shop-product-grid--cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-featured-products--cols-3,
  .shop-featured-products--cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-footer__columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .shop-footer__bottom .shop-footer__container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .shop-product-grid--cols-2,
  .shop-product-grid--cols-3,
  .shop-product-grid--cols-4 {
    grid-template-columns: 1fr;
  }

  .shop-featured-products--cols-2,
  .shop-featured-products--cols-3,
  .shop-featured-products--cols-4 {
    grid-template-columns: 1fr;
  }

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

/* ===== Shop Layout (Sidebar + Content) ===== */
.shop-layout {
  padding: 30px 0;
  --sidebar-width: 250px;
}

.shop-layout__container {
  max-width: var(--shop-container);
  margin: 0 auto;
  padding: 0 var(--shop-spacing);
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: 30px;
}

.shop-layout__container--reversed {
  grid-template-columns: 1fr var(--sidebar-width);
}

.shop-layout__container--reversed .shop-layout__sidebar {
  order: 2;
}

.shop-layout__sidebar {
  min-width: 0;
}

.shop-layout__sidebar--sticky {
  position: sticky;
  top: 100px;
  height: fit-content;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.shop-layout__content {
  min-width: 0;
}

.shop-layout__content--full {
  grid-column: 1 / -1;
}

.shop-layout__empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--shop-white);
  border-radius: var(--shop-radius-lg);
  color: var(--shop-text-light);
}

.shop-layout__richtext {
  background: var(--shop-white);
  padding: 25px;
  border-radius: var(--shop-radius);
  margin-bottom: 25px;
}

/* ===== Shop Sidebar ===== */
.shop-sidebar {
  background: var(--shop-white);
  border-radius: var(--shop-radius-lg);
  overflow: hidden;
  border: 1px solid var(--shop-border);
}

.shop-sidebar__header {
  padding: 0;
  border-bottom: none;
}

.shop-sidebar__title {
  margin: 0;
  font-family: var(--font-navigation-text-family, var(--shop-font));
  font-size: var(--font-navigation-text-size, 16px);
  font-weight: var(--font-navigation-text-weight, 600);
  color: var(--color-background-accent-contrast, #ffffff);
  background: var(--shop-accent);
  padding: 16px 20px;
  text-transform: var(--font-navigation-text-transform, uppercase);
  letter-spacing: var(--font-navigation-text-letter-spacing, 0.5px);
}

.shop-sidebar__nav {
  padding: 10px 0;
}

.shop-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shop-sidebar__item {
  border-bottom: 1px solid var(--shop-border-light, #f0f0f0);
}

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

.shop-sidebar__item.level-1 {
  padding-left: 15px;
}

.shop-sidebar__item.level-2 {
  padding-left: 30px;
}

.shop-sidebar__item.level-3 {
  padding-left: 45px;
}

.shop-sidebar__link-wrapper {
  display: flex;
  align-items: center;
}

.shop-sidebar__toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--shop-text-light);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.shop-sidebar__toggle:hover {
  color: var(--shop-primary);
}

.shop-sidebar__toggle.expanded svg {
  transform: rotate(180deg);
}

.shop-sidebar__link {
  flex: 1;
  padding: 12px 15px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  color: var(--shop-text);
  text-align: left;
  transition: all 0.2s ease;
}

.shop-sidebar__link:hover {
  color: var(--shop-primary);
  background: var(--shop-bg);
}

.shop-sidebar__link.active {
  color: var(--shop-primary);
  font-weight: 600;
  background: var(--shop-primary-light, rgba(var(--shop-primary-rgb, 0, 123, 255), 0.08));
}

.shop-sidebar__children {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--shop-bg);
}

.shop-sidebar__children .shop-sidebar__item {
  border-bottom-color: var(--shop-border-light, #f0f0f0);
}

.shop-sidebar__children .shop-sidebar__link {
  font-size: 13px;
  padding: 10px 15px;
}

/* ===== Product Grid Block Styles ===== */
.shop-product-grid-block {
  margin-bottom: 40px;
  overflow: hidden;
}

.shop-product-grid__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0px;
  background: var(--shop-accent);
}

.shop-product-grid__title {
  margin: 0;
  font-family: var(--font-navigation-text-family, var(--shop-font));
  font-size: var(--font-navigation-text-size, 16px);
  font-weight: var(--font-navigation-text-weight, 600);
  color: var(--color-background-accent-contrast, #ffffff);
  background: var(--shop-accent);
  padding: 16px 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.shop-product-grid__sorting {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-product-grid__sorting label {
  font-size: 14px;
  color: var(--shop-white);
  margin-bottom: 0;
}

.shop-product-grid__sorting select {
  height: 34px;
  padding: 0 10px;
  margin-right: 8px;
  border: none;
  border-radius: var(--shop-radius);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.15);
  color: var(--shop-white);
  cursor: pointer;
  appearance: auto;
}

.shop-product-grid__filters {
  margin-bottom: 20px;
  padding: 15px;
  background: var(--shop-white);
  border-radius: var(--shop-radius);
}

.shop-product-grid__loading,
.shop-product-grid__empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--shop-white);
  color: var(--shop-text-light);
}

.shop-product-grid__loading .shop-spinner {
  margin-bottom: 15px;
}

.shop-product-grid__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 25px;
  padding: 15px;
}

.shop-product-grid__pagination-info {
  color: var(--shop-text-light);
  font-size: 14px;
}

/* ===== Responsive Shop Layout ===== */
@media (max-width: 1024px) {
  .shop-layout__container {
    grid-template-columns: 200px 1fr;
    gap: 20px;
  }

  .shop-layout__container--reversed {
    grid-template-columns: 1fr 200px;
  }
}

@media (max-width: 768px) {
  .shop-layout__container,
  .shop-layout__container--reversed {
    grid-template-columns: 1fr;
  }

  .shop-layout__sidebar {
    position: static !important;
    order: -1;
    max-height: none;
  }

  .shop-layout__container--reversed .shop-layout__sidebar {
    order: -1;
  }

  .shop-sidebar {
    margin-bottom: 20px;
  }

  .shop-sidebar__nav {
    max-height: 300px;
    overflow-y: auto;
  }

  .shop-product-grid__header {
    flex-wrap: wrap;
  }

  .shop-product-grid__controls {
    display: contents;
  }

  .shop-product-grid__view-toggle {
    padding-right: 8px;
  }

  .shop-product-grid__sorting {
    order: 10;
    width: 100%;
    padding: 8px;
    justify-content: flex-start;
  }

  .shop-product-grid__sorting label {
    display: none;
  }

  .shop-product-grid__sorting select {
    margin-right: 0;
    width: 100%;
  }
}

/* ===== Global Shop Navigation (Layout Level) ===== */
.shop-navigation-wrapper {
  --shop-nav-width: 250px;
  display: grid;
  grid-template-columns: var(--shop-nav-width) 1fr;
  gap: 30px;
  max-width: var(--shop-container);
  margin: 0 auto;
  padding: 30px var(--shop-spacing);
  /* Prevent grid from stretching rows and creating large vertical gaps on mobile Chrome */
  align-content: start;
  min-height: calc(100vh - 200px);
}

/* Use modern viewport units where available (fixes Mobile Chrome 100vh quirks) */
@supports (min-height: 100dvh) {
  .shop-navigation-wrapper {
    min-height: calc(100dvh - 200px);
  }
}

.shop-navigation-wrapper--reversed {
  grid-template-columns: 1fr var(--shop-nav-width);
}

.shop-navigation-wrapper--reversed .shop-navigation__sidebar {
  order: 2;
}

.shop-navigation__sidebar {
  min-width: 0;
}

.shop-navigation__sidebar--sticky {
  position: sticky;
  top: 230px;
  height: fit-content;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.shop-navigation__content {
  min-width: 0;
}

.shop-layout__category-title {
  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);
  animation: categoryTitleFadeIn 0.3s ease-out;
}

@keyframes categoryTitleFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shop-navigation {
  background: var(--shop-white);
  overflow: hidden;
  border-radius: var(--shop-radius-lg);
  border: 1px solid var(--shop-border);
}

.shop-navigation__header {
  padding: 0;
  border-bottom: none;
}

.shop-navigation__title {
  margin: 0;
  font-family: var(--font-navigation-text-family, var(--shop-font));
  font-size: var(--font-navigation-text-size, 16px);
  font-weight: var(--font-navigation-text-weight, 600);
  color: var(--color-background-accent-contrast, #ffffff);
  background: var(--shop-accent);
  padding: 16px 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.shop-navigation__nav {
  padding: 0px 0;
}

.shop-navigation__loading {
  display: flex;
  justify-content: center;
  padding: 30px;
}

.shop-navigation__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shop-navigation__item {
  border-bottom: 1px solid var(--shop-border-light, #f0f0f0);
}

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

.shop-navigation__item.level-1 {
  padding-left: 15px;
}

.shop-navigation__item.level-2 {
  padding-left: 30px;
}

.shop-navigation__item.level-3 {
  padding-left: 45px;
}

/* Hover and Active for all items */
.shop-navigation__item > .shop-navigation__link-wrapper {
  transition: background-color 0.2s;
}

.shop-navigation__item > .shop-navigation__link-wrapper:hover,
.shop-navigation__item > .shop-navigation__link-wrapper.active {
  background-color: color-mix(in srgb, var(--shop-accent), transparent 50%);
}

/* Reset inner hover/active backgrounds to avoid conflicts */
.shop-navigation__item > .shop-navigation__link-wrapper:hover .shop-navigation__link,
.shop-navigation__item > .shop-navigation__link-wrapper.active .shop-navigation__link {
  background: transparent;
}

.shop-navigation__link-wrapper {
  display: flex;
  align-items: center;
}

.shop-navigation__toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--shop-text-light);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.shop-navigation__toggle:hover {
  color: var(--shop-primary);
}

.shop-navigation__toggle.expanded svg {
  transform: rotate(180deg);
}

.shop-navigation__link {
  flex: 1;
  padding: 12px 15px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  color: var(--shop-text);
  text-align: left;
  transition: all 0.2s ease;
}

.shop-navigation__link:hover {
  color: var(--shop-primary);
  background: var(--shop-bg);
}

.shop-navigation__link.active {
  color: var(--shop-primary);
  /* background handled by wrapper */
}

.shop-navigation__children {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--shop-bg);
}

.shop-navigation__children .shop-navigation__item {
  border-bottom-color: var(--shop-border-light, #f0f0f0);
}

.shop-navigation__children .shop-navigation__link {
  font-size: 13px;
  padding: 10px 15px;
}

/* Hide ShopLayoutBlock sidebar when global navigation is enabled */
body[data-shop-navigation-enabled='true'] .shop-layout__sidebar {
  display: none;
}

body[data-shop-navigation-enabled='true'] .shop-layout__container {
  grid-template-columns: 1fr;
}

body[data-shop-navigation-enabled='true'] .shop-layout__content {
  grid-column: 1 / -1;
}

/* ===== Responsive Global Shop Navigation ===== */
@media (max-width: 1024px) {
  .shop-navigation-wrapper {
    grid-template-columns: 200px 1fr;
    gap: 20px;
  }

  .shop-navigation-wrapper--reversed {
    grid-template-columns: 1fr 200px;
  }
}

/* Mobile Toggle Button - standardmäßig versteckt */
.shop-navigation__mobile-toggle {
  display: none;
}

@media (max-width: 768px) {
  .shop-navigation-wrapper,
  .shop-navigation-wrapper--reversed {
    grid-template-columns: 1fr;
    padding: 20px var(--shop-spacing);
  }

  /* Mobile Toggle Button - nur auf Mobile sichtbar */
  .shop-navigation__mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 18px;
    background: var(--shop-accent, var(--shop-primary, #2563eb));
    border: none;
    border-radius: var(--shop-radius-lg, 8px);
    cursor: pointer;
    font-family: var(--font-navigation-text-family, var(--shop-font));
    font-size: var(--font-navigation-text-size, 15px);
    font-weight: var(--font-navigation-text-weight, 600);
    color: var(--color-background-accent-contrast, #ffffff);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    order: -2;
  }

  .shop-navigation__mobile-toggle:hover {
    opacity: 0.9;
  }

  /* Header in Sidebar auf Mobile verstecken (Toggle übernimmt) */
  .shop-navigation__header {
    display: none;
  }

  .shop-navigation__mobile-toggle svg {
    transition: transform 0.3s ease;
    color: var(--color-background-accent-contrast, #ffffff);
  }

  .shop-navigation__mobile-toggle svg.rotated {
    transform: rotate(180deg);
  }

  /* Sidebar standardmäßig auf Mobile versteckt */
  .shop-navigation__sidebar {
    position: static !important;
    order: -1;
    max-height: none;
    display: none;
  }

  /* Sidebar sichtbar wenn geöffnet */
  .shop-navigation__sidebar--mobile-open {
    display: block;
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .shop-navigation-wrapper--reversed .shop-navigation__sidebar {
    order: -1;
  }

  .shop-navigation {
    margin-bottom: 20px;
  }

  .shop-navigation__nav {
    overflow-y: auto;
    max-height: 60vh;
  }
}

.custom-footer section {
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 0;
}

.custom-footer a {
  color: #6b7280 !important;
}

.custom-footer a:hover {
  color: #9ca3af !important;
}
