

.atomdev-cart-page {
  background: #f4f6fa;
}

.atomdev-cart-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.atomdev-cart-shell {
  padding-bottom: 32px;
}

.atomdev-cart-shell > header {
  margin-bottom: 28px;
  text-align: right;
}

.atomdev-cart-shell h1 {
  color: #1f2937;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.2;
}

.atomdev-cart-intro {
  margin-top: 10px;
  color: #64748b;
  font-size: 0.95rem;
}

.atomdev-cart-empty-state {
  padding: 36px 20px;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  background: #fff;
  color: #64748b;
  font-size: 0.95rem;
  text-align: center;
}

.atomdev-cart-content {
  color: #334155;
}

.atomdev-cart-content > .woocommerce {
  width: 100%;
  max-width: none;
}

.atomdev-cart-layout {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 24px;
  align-items: start;
  direction: rtl;
}

.atomdev-cart-form,
.atomdev-cart-layout > .cart-collaterals {
  min-width: 0;
  width: auto;
  float: none;
}

.atomdev-cart-card,
.atomdev-cart-layout .cart_totals {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5eaf1;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(30, 41, 59, 0.04);
}

.atomdev-cart-card {
  direction: rtl;
}

.atomdev-cart-list-head,
.atomdev-cart-item {
  display: grid;
  grid-template-columns: 32px 76px minmax(240px, 1fr) minmax(150px, max-content);
  gap: 16px;
  align-items: center;
}

.atomdev-cart-list-head {
  padding: 16px 20px;
  border-bottom: 1px solid #e5eaf1;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
}

.atomdev-cart-list-head span:first-child {
  grid-column: 3;
}

.atomdev-cart-list-head span:last-child {
  grid-column: 4;
  text-align: right;
}

.atomdev-cart-item {
  min-height: 132px;
  padding: 20px;
  border-bottom: 1px solid #eef2f6;
}

.atomdev-cart-remove {
  display: inline-flex;
  grid-column: 1;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none;
}

.atomdev-cart-remove:hover {
  color: #4f46e5;
}

.atomdev-cart-product-image {
  grid-column: 2;
}

.atomdev-cart-product-image img {
  display: block;
  width: 76px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
}

.atomdev-cart-product-info {
  grid-column: 3;
  min-width: 0;
}

.atomdev-cart-product-name {
  display: block;
  color: #1e293b;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.7;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.atomdev-cart-product-name:hover {
  color: #4f46e5;
}

.atomdev-cart-product-info dl.variation {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.8;
}

.atomdev-cart-product-info dl.variation dt,
.atomdev-cart-product-info dl.variation dd {
  display: block;
  margin: 0;
}

.atomdev-cart-product-info dl.variation dt {
  color: #475569;
  font-weight: 700;
}

.atomdev-cart-product-info dl.variation dt:empty {
  display: none;
}

.atomdev-cart-product-info dl.variation dt.variation- {
  display: none;
}

.atomdev-cart-product-info dl.variation dd ul {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.atomdev-cart-product-info dl.variation dd li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
}

.atomdev-cart-quantity {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #64748b;
  font-size: 0.78rem;
}

.atomdev-cart-quantity input {
  width: 58px;
  min-height: 32px;
  padding: 4px 6px;
  border: 1px solid #dbe3ed;
  border-radius: 7px;
  color: #1e293b;
  text-align: center;
}

.atomdev-cart-item-total {
  grid-column: 4;
  color: #1e293b;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.atomdev-cart-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px;
}

.atomdev-cart-coupon {
  display: flex;
  width: 100%;
  min-width: 0;
  gap: 8px;
  margin-top: 12px;
}

.atomdev-cart-coupon input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #dbe3ed;
  border-radius: 8px;
  background: #fff;
}

.atomdev-cart-layout .cart_totals > .atomdev-cart-coupon {
  width: 100%;
  margin: 8px 0 12px;
}

.atomdev-cart-actions .button,
.atomdev-cart-layout .checkout-button {
  min-height: 42px;
  padding: 10px 18px;
  border: 0;
  border-radius: 9px;
  background: #4f46e5;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

.atomdev-cart-actions .button:hover,
.atomdev-cart-layout .checkout-button:hover {
  background: #4338ca;
}

.atomdev-cart-layout > .cart-collaterals {
  direction: rtl;
}

.atomdev-cart-layout .cart_totals {
  width: 100% !important;
  max-width: none;
  float: none !important;
  box-sizing: border-box;
  padding: 24px;
}

.atomdev-cart-layout .cart_totals h2 {
  margin: 0 0 16px;
  color: #1e293b;
  font-size: 1.15rem;
}

.atomdev-cart-summary-row,
.atomdev-cart-summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid #eef2f6;
}

.atomdev-cart-summary-row {
  color: #64748b;
}

.atomdev-cart-summary-total {
  margin-top: 4px;
  border-bottom: 0;
  color: #1e293b;
  font-size: 1.05rem;
  font-weight: 800;
}

.atomdev-cart-layout .wc-proceed-to-checkout {
  padding: 0;
}

.atomdev-cart-layout .checkout-button {
  display: block;
  width: 100%;
  margin-top: 14px;
  text-align: center;
  text-decoration: none;
}

@media (max-width: 900px) {
  .atomdev-cart-layout {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
    gap: 16px;
  }

  .atomdev-cart-list-head,
  .atomdev-cart-item {
    grid-template-columns: 28px 64px minmax(160px, 1fr) minmax(125px, max-content);
    gap: 12px;
  }

  .atomdev-cart-product-image img {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 767px) {
  .atomdev-cart-container {
    padding: 0 16px;
  }

  .atomdev-cart-shell > header {
    margin-bottom: 20px;
  }

  .atomdev-cart-layout {
    display: block;
  }

  .atomdev-cart-layout > .cart-collaterals {
    margin-top: 20px;
  }

  .atomdev-cart-list-head {
    display: none;
  }

  .atomdev-cart-item {
    grid-template-columns: 58px minmax(0, 1fr) 24px;
    gap: 8px 12px;
    min-height: 0;
    padding: 16px 12px;
  }

  .atomdev-cart-remove {
    grid-column: 3;
    grid-row: 1;
  }

  .atomdev-cart-product-image {
    grid-column: 1;
    grid-row: 1 / span 3;
  }

  .atomdev-cart-product-image img {
    width: 58px;
    height: 58px;
  }

  .atomdev-cart-product-info {
    grid-column: 2;
    grid-row: 1;
  }

  .atomdev-cart-item-total {
    grid-column: 2 / 4;
    grid-row: 2;
    margin-top: 4px;
  }

  .atomdev-cart-quantity {
    grid-column: 2 / 4;
    grid-row: 3;
    margin-top: 4px;
  }

  .atomdev-cart-actions {
    align-items: stretch;
    padding: 16px 12px;
  }

  .atomdev-cart-coupon {
    width: 100%;
  }

  .atomdev-cart-coupon input {
    width: 100%;
  }

  .atomdev-cart-actions > .button {
    flex: 1 1 100%;
  }

  .atomdev-cart-layout .cart_totals {
    padding: 20px;
  }
}
