/* =========================================================
   CART PAGE — Grupo Versatile
   ========================================================= */
.cart-section {
  padding: 120px 0 80px;
  min-height: 70vh;
  background: var(--bone);
}

.cart-header {
  margin-bottom: 36px;
}
.cart-title {
  font-size: clamp(28px, 3vw, 42px);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-900);
  margin: 0;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

/* ---------- Items Column ---------- */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cart-table {
  width: 100%;
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  overflow: hidden;
  border-collapse: collapse;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.cart-table thead th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-400);
  padding: 16px 20px;
  background: var(--bone);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.cart-table__col-img    { width: 110px; }
.cart-table__col-qty    { width: 160px; }
.cart-table__col-remove { width: 60px; }

.cart-table tbody tr {
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.cart-table tbody tr:last-child { border-bottom: none; }
.cart-table tbody tr:hover { background: #fafbff; }

.cart-table__row {
  /* tr — uses table layout */
}

.cart-table__cell {
  padding: 18px 20px;
  vertical-align: middle;
}

/* Image cell */
.cart-table__cell--img {
  padding-right: 0;
}
.cart-table__img {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--mist);
  display: block;
}
.cart-table__img-placeholder {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  background: var(--mist);
  border: 1px solid var(--line);
}

/* Product cell */
.cart-table__product-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy-900);
  line-height: 1.3;
  text-decoration: none;
  margin-bottom: 4px;
}
.cart-table__product-name:hover { color: var(--royal-500); }
.cart-table__product-cat {
  font-size: 12px;
  font-weight: 600;
  color: var(--royal-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

/* Qty control */
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: white;
  width: fit-content;
}
.qty-control__btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-700);
  transition: background 0.15s, color 0.15s;
  padding: 0;
  line-height: 1;
}
.qty-control__btn:hover {
  background: var(--bone);
  color: var(--navy-900);
}
.qty-control__input {
  width: 46px;
  height: 38px;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-align: center;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-900);
  outline: none;
  background: white;
  padding: 0;
  -moz-appearance: textfield;
}
.qty-control__input::-webkit-outer-spin-button,
.qty-control__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Remove button */
.cart-table__cell--remove {
  text-align: right;
}
.cart-table__remove-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: white;
  color: var(--ink-400);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  transition: all 0.2s;
  padding: 0;
}
.cart-table__remove-btn:hover {
  background: #fef2f2;
  border-color: #ef4444;
  color: #ef4444;
}

/* Continue shopping */
.cart-continue {
  margin-top: 8px;
}
.cart-continue .btn--secondary {
  background: white;
  color: var(--navy-900);
  border: 1.5px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cart-continue .btn--secondary:hover {
  border-color: var(--navy-900);
  background: var(--bone);
}

/* ---------- Summary Sidebar ---------- */
.cart-summary {
  position: sticky;
  top: 100px;
}
.cart-summary__inner {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 28px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.cart-summary__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.cart-summary__totals {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14.5px;
}
.cart-summary__label {
  color: var(--ink-500);
}
.cart-summary__value {
  font-weight: 700;
  color: var(--navy-900);
  font-size: 16px;
}
.cart-summary__info {
  font-size: 13px;
  color: var(--ink-400);
  line-height: 1.55;
  padding: 14px 16px;
  background: var(--bone);
  border-radius: 10px;
  margin-bottom: 20px;
}
.cart-summary__whatsapp-btn {
  width: 100%;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 20px;
}

/* ---------- Empty State ---------- */
.cart-empty {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  text-align: center;
  padding: 80px 40px;
  max-width: 540px;
  margin: 0 auto;
}
.cart-empty__icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  opacity: 0.25;
  color: var(--navy-900);
}
.cart-empty__icon svg { width: 100%; height: 100%; }
.cart-empty__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0 0 10px;
}
.cart-empty__desc {
  color: var(--ink-500);
  margin: 0 0 28px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}

@media (max-width: 700px) {
  .cart-section { padding: 100px 0 60px; }

  /* Make table card-stack on mobile */
  .cart-table thead { display: none; }
  .cart-table,
  .cart-table tbody,
  .cart-table tr,
  .cart-table td { display: block; }
  .cart-table tbody tr {
    padding: 16px;
    display: grid;
    grid-template-columns: 80px 1fr auto;
    grid-template-rows: auto auto;
    gap: 12px;
    align-items: center;
  }
  .cart-table__cell { padding: 0; }
  .cart-table__cell--img    { grid-row: 1 / 3; }
  .cart-table__cell--product{ align-self: center; }
  .cart-table__cell--remove { grid-row: 1; align-self: start; text-align: right; }
  .cart-table__cell--qty    { grid-column: 2 / 4; }
  .cart-table__img,
  .cart-table__img-placeholder { width: 72px; height: 72px; }
}

/* =========================================================
   LOGIN / REGISTER PAGE — Grupo Versatile
   ========================================================= */
.login-section {
  min-height: 100vh;
  background: radial-gradient(ellipse at 20% 0%, #143475 0%, var(--navy-900) 55%, #030a1e 100%);
  padding: 130px var(--gutter) 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-wrapper {
  width: min(560px, 100%);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl, 24px);
  padding: 44px;
  box-shadow: 0 25px 60px rgba(2, 8, 22, 0.5);
}

/* Tabs */
.login-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 32px;
  gap: 2px;
}
.login-tab {
  flex: 1;
  padding: 12px 16px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s var(--ease-out);
  border: none;
  background: none;
  font-family: inherit;
}
.login-tab:hover { color: rgba(255, 255, 255, 0.85); }
.login-tab--active {
  background: white;
  color: var(--navy-900);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Panels */
.login-panel { display: none; }
.login-panel--active { display: block; animation: gv-fade-in 0.3s var(--ease-out); }
@keyframes gv-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-panel__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: white;
  margin: 0 0 6px;
  line-height: 1.2;
}
.login-panel__subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 24px;
  line-height: 1.5;
}

/* Notices */
.login-notice {
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 18px;
  border: 1px solid transparent;
}
.login-notice--error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}
.login-notice--success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.3);
  color: #86efac;
}
.login-notice--info {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
  color: #93c5fd;
}

/* Forms */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  display: block;
}
.req {
  color: var(--amber-500, #f59e0b);
  font-weight: 700;
}
.form-input {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
  color: white;
  font-family: var(--font-body);
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  box-sizing: border-box;
}
.form-input:focus {
  border-color: var(--royal-400);
  background: rgba(255, 255, 255, 0.1);
}
.form-input::placeholder { color: rgba(255, 255, 255, 0.3); }

/* Password input with show/hide toggle */
.form-input-wrap {
  position: relative;
  display: block;
}
.form-input--password {
  padding-right: 46px;
}
.form-input-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.45);
  padding: 0;
  border-radius: 8px;
  transition: color 0.18s, background 0.18s;
}
.form-input-toggle:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}
.form-input-toggle:focus-visible {
  outline: 2px solid var(--royal-400);
  outline-offset: 2px;
}
.form-input-toggle svg {
  width: 18px;
  height: 18px;
}
.form-input-toggle__hide { display: none; }
.form-input-toggle.is-showing .form-input-toggle__show { display: none; }
.form-input-toggle.is-showing .form-input-toggle__hide { display: block; }
.form-hint {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
}
.form-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  margin: 16px 0 0;
  line-height: 1.5;
}

/* Checkbox */
.form-field--checkbox {
  flex-direction: row;
  align-items: flex-start;
}
.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  cursor: pointer;
}
.form-checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--royal-500);
  flex-shrink: 0;
}

/* Submit button + links */
.login-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
}
.btn--full { width: 100%; }
.login-form__links {
  text-align: center;
  margin: 16px 0 0;
  font-size: 13.5px;
}
.login-form__links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.login-form__links a:hover {
  color: white;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .login-section { padding: 110px 16px 60px; }
  .login-wrapper { padding: 32px 24px; border-radius: 18px; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .login-panel__title { font-size: 22px; }
}
