
.app-cart{
    padding: 110px 20px 40px 20px;
    max-width: 1280px;
    min-height: 400px;
    margin: 0px auto;
}
.app-cart-title{
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    align-items: center;
    display: flex;
}
.app-cart-title a{
    font-size: 22px;
    font-weight: 400;
    color: var(--black-color);
    margin-left: 8px;
    height: 20px;
    width: 20px;
}
.app-cart-link:not(.has-items) .app-cart-count{ display: none; }
.app-cart-count{
    top: -5px;
    right: -5px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    background-color: var(--green-color);
    color: var(--white-color);
    line-height: 12px;
    font-size: 12px;
    font-family: 'Ubuntu';
    border-radius: 5px;
    padding: 0px 3px;
    min-width: 15px;
    height: 16px;
}
.app-cart-layout{
    display: grid;
    grid-template-columns: auto 350px;
    align-items: start;
    gap: 40px;
}
.app-cart-item{
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    grid-template-areas: "image info total count remove";
    gap: 15px;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding: 15px 0px;
}
.app-cart-item:last-child { border-bottom: 0; }
.app-cart-item.is-unavailable { opacity: 0.5; }
.app-cart-item .image{
    grid-area: image;
    width: 100px;
}
.app-cart-item .image img{
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin-right: 15px;
    padding: 10px;
}
.app-cart-item .info{
    grid-area: info;
}
.app-cart-item .name{
    font-weight: 400;
    line-height: 18px;
    margin-bottom: 8px;
    max-height: 70px;
    overflow: hidden;
}
.app-cart-item .sku{
    opacity: 0.5;
}
.app-cart-item .total{
    grid-area: total;
    text-align: center;
    white-space: nowrap;
    font-size: 16px;
    font-family: "Google Sans";
    font-weight: 700;
}
.app-cart-item .count{
    grid-area: count;
}
.app-cart-item .remove{
    grid-area: remove;
    font-size: 22px;
    width: 22px;
    height: 22px;
}
.app-cart-item .qty{
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}
.app-cart-item .qty-btn {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.app-cart-item .qty-btn:hover{
    background: rgba(255,255,255,0.04);
}
.app-cart-item .qty-btn[disabled]{
    opacity: 0.35; 
    cursor: not-allowed;
}
.app-cart-item .qty-value {
  min-width: 28px;
  text-align: center;
}
.app-cart-summary{
    position: sticky;
    top: calc(100px + 16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 22px;
}
.app-cart-summary .title{
    font-size: 22px;
    font-weight: 700;
    line-height: 22px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}
.app-cart-summary .row{
    padding: 15px 0px; 
    border-bottom: 1px solid var(--border-color);
    line-height: 14px;
}
.app-cart-summary .total{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0px;
    line-height: 18px;
}
.app-cart-summary .total i{
    flex-grow: 0;
    font-size: 22px;
    margin-right: 6px;
    height: 22px;
    width: 22px;
}
.app-cart-summary .total span{
    flex-grow: 1;
    font-size: 16px;
    font-weight: 500;
}
.app-cart-summary .total strong{
    font-size: 18px;
    font-weight: 700;
    font-family: "Google Sans";
}
.app-cart-summary .note {
  padding: 10px 12px;
  border-radius: 10px;
  line-height: 16px;
  font-size: 13px;
  margin: 0 0 14px;
}
.app-cart-summary .note.is-warn {
  background: rgba(240, 193, 75, 0.1);
  color: rgba(120, 86, 0, 1);
}
.app-cart-summary .note.is-error {
  background: rgba(255, 111, 111, 0.1);
  color: var(--err);
}
.app-cart-summary  .checkout{
    height: 50px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 50px;
    text-align: center;
    font-size: 15px;
    color: var(--white-color);
    background-color: var(--green-color);
    border-radius: 10px;
    padding: 0px 20px;
}
.app-cart-summary  .clear{
    display: block;
    text-align: center;
}
@media only screen and (max-width: 500px){
    .app-cart{
        padding: 80px 10px 20px 10px;
    }
    .app-cart-layout{
        display: block;
    }
    .app-cart-item{
        gap: 10px;
        grid-template-columns: 100px 1fr auto;
        grid-template-areas: "image info info" "total count remove";
    }
    .app-cart-summary{ 
        position: static; 
        width: 100%;
    }
}
.app-checkout{
    padding: 110px 20px 40px 20px;
    max-width: 500px;
    min-height: 400px;
    margin: 0px auto;
}
.app-checkout-summary{
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--back-color);
    border-radius: 10px;
    padding: 0px 15px;
}
.app-checkout-summary span{
    font-weight: 700;
    font-family: "Google Sans";
}
.app-checkout-summary strong{
    font-weight: 700;
    font-family: "Google Sans";
}
.app-checkout input.is-invalid,
.app-checkout textarea.is-invalid {
  border-color: red;
}




.line-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.line-name {
  text-decoration: none;
  font-weight: 650;
}

.line-price,
.line-total {
  margin: 6px 0;
  font-variant-numeric: tabular-nums;
}

.line-total {
  margin: 0;
  font-size: 18px;
}

.line-stock {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.line.is-out { color: var(--err); }
.line-stock.is-warn { color: var(--warn); }

.line-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}


.icon-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}

.icon-btn:hover { color: var(--err); }


.summary-card,
.form-card {
  padding: 22px;
  position: sticky;
  top: calc(var(--header) + 16px);
}

.summary-card h2,
.form-card h2 {
  margin: 0 0 16px;
  font-size: 18px;
}


.checkout-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}















.checkout-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checkout-line {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field span {
  font-size: 13px;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #12151b;
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}

.field textarea { min-height: 110px; resize: vertical; }

.field input:focus,
.field textarea:focus {
  border-color: rgba(255, 90, 31, 0.7);
}



.field-error {
  min-height: 1em;
  color: var(--err);
  font-size: 12px;
}

.req { color: var(--accent-2); }

.empty-state,
.success-state {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 28px;
  text-align: center;
}

.empty-state.compact { padding: 24px; }

.empty-kicker {
  margin: 0 0 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--accent-2);
}

.loading {
  color: var(--muted);
  padding: 40px 0;
}



.toasts {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(360px, calc(100% - 24px));
}

.toast {
  background: #222833;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-in { opacity: 1; transform: none; }
.toast.is-out { opacity: 0; transform: translateY(6px); }
.toast-ok { border-left-color: var(--ok); }
.toast-warn { border-left-color: var(--warn); }
.toast-error { border-left-color: var(--err); }

.product-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
}

.product-media {
  background: #0b0d11;
  min-height: 420px;
}

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

.product-body { padding: 32px; }

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 22px 28px 32px;
  font-size: 13px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

@media (max-width: 860px) {
  .site-header { padding: 0 16px; }
  .page { width: min(100% - 24px, 1180px); }
  .hero { display: block; }
  .cart-layout,
  .checkout-layout,
  .product-layout {
    grid-template-columns: 1fr;
  }
  .summary-card, .form-card { position: static; }
  .logo span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
