/* ==========================================================================
   Taara Collection — Full Theme (site.css)
   - Drop into wwwroot/css/site.css
   - Load after Bootstrap so overrides apply
   ========================================================================== */


a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

a {
  color: #0077cc;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.border-top {
  border-top: 1px solid #e5e5e5;
}

.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  padding-bottom: 40px;
}

.content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* --------------------------
   Theme variables (purple Microsoft-like)
   -------------------------- */
:root {
  /* brand (purple) */
  --brand-primary: #6c4dff;
  /* vivid purple */
  --brand-secondary: #7b61ff;
  /* lighter purple accent */
  --brand-accent: #a891ff;
  /* soft accent */

  /* neutrals */
  --bg: #fafafa;
  --surface: #ffffff;
  --muted: #6c757d;
  --text: #212529;
  --subtle: rgba(33, 37, 41, 0.06);

  /* semantic */
  --success: #198754;
  --danger: #dc3545;
  --warning: #ff9800;

  /* layout */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 6px 20px rgba(33, 37, 41, 0.06);
  --shadow-poppier: 0 12px 36px rgba(33, 37, 41, 0.10);

  /* sizes */
  --navbar-height: 68px;
  --max-container: 1120px;
}

/* --------------------------
   Reset / base adjustments
   -------------------------- */
* {
  box-sizing: border-box;
}

html,
body {
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-size: 16px;
  line-height: 1.45;
  margin: 0;
  padding: 0;
}

/* container sizing */
.container,
.container-fluid {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* small utilities */
.text-muted-2 {
  color: var(--muted) !important;
}

.rounded-md {
  border-radius: var(--radius);
}

.rounded-sm {
  border-radius: var(--radius-sm);
}

.gap-xs {
  gap: .25rem;
}

.gap-sm {
  gap: .5rem;
}

/* subtle focus */
:focus {
  outline: 3px solid rgba(123, 97, 255, 0.14);
  outline-offset: 3px;
}

/* --------------------------
   Navbar
   -------------------------- */
.navbar {
  min-height: var(--navbar-height);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(250, 250, 255, 1));
  border-bottom: 1px solid var(--subtle);
  box-shadow: 0 2px 8px rgba(20, 20, 40, 0.02);
  padding: .6rem 0;
}

.navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  display: inline-grid;
  place-items: center;
  height: 44px;
  width: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: white;
  font-weight: 700;
  box-shadow: 0 6px 22px rgba(108, 77, 255, 0.12);
}

/* nav items */
.navbar .nav-link {
  color: var(--muted);
  font-weight: 500;
  transition: color .18s ease, transform .12s ease;
  padding: .45rem .65rem;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--brand-primary);
  transform: translateY(-1px);
}

.navbar .btn-nav {
  border-radius: 10px;
  padding: .42rem .9rem;
  font-weight: 600;
}

/* cart badge */
.navbar .badge-cart {
  background: var(--danger);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: .18rem .45rem;
  font-size: .78rem;
}

/* --------------------------
   Buttons
   -------------------------- */
.btn {
  border-radius: 10px;
  padding: .56rem .9rem;
  transition: transform .12s ease, box-shadow .12s ease;
}

.btn:active {
  transform: translateY(0);
}

/* Add New floating action */
.fab-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .6rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  color: #fff;
  box-shadow: 0 18px 42px rgba(108, 77, 255, 0.08);
  transition: transform .18s ease, box-shadow .18s ease;
}

.fab-add:hover {
  transform: translateY(-4px);
}

/* --------------------------
   Cards & product tiles
   -------------------------- */
.card {
  border: none;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card .card-body {
  padding: 1rem;
}

.card-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.95));
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-soft);
}

.shadow-hover {
  transition: box-shadow .22s ease, transform .18s ease;
}

.shadow-hover:hover {
  box-shadow: var(--shadow-poppier);
  transform: translateY(-6px);
}

.product-img {
  object-fit: cover;
  width: 100%;
  height: 220px;
  display: block;
  background: linear-gradient(180deg, rgba(240, 240, 250, 1), rgba(245, 245, 248, 1));
  border-radius: var(--radius);
}

/* featured badge */
.badge-featured {
  background: linear-gradient(90deg, var(--brand-secondary), var(--brand-primary));
  color: white;
  font-weight: 600;
  border-radius: 8px;
  padding: .25rem .5rem;
  font-size: .78rem;
}

/* product footer row */
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-top: .6rem;
}

/* --------------------------
   Forms & inputs
   -------------------------- */
.form-control {
  border-radius: 10px;
  border: 1px solid rgba(33, 37, 41, 0.08);
  padding: .6rem .75rem;
  height: calc(1.6em + 1.2rem);
  box-shadow: none;
  transition: box-shadow .14s ease, border-color .12s ease;
}

.form-control:focus {
  border-color: rgba(108, 77, 255, 0.6);
  box-shadow: 0 8px 20px rgba(108, 77, 255, 0.06);
  outline: none;
}

/* input group / search */
.input-group .btn {
  border-radius: 0 10px 10px 0;
}

/* smaller labels */
.form-label {
  font-weight: 600;
  color: var(--muted);
  font-size: .9rem;
}

/* --------------------------
   Tables (robust, card-like while preserving table semantics)
   -------------------------- */

/* wrapper keeps spacing and rounded corners without ruining table flow */
.table-responsive.custom-table-wrap {
  overflow: hidden;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid rgba(33, 37, 41, 0.03);
}

/* keep the table as a real table (do not change tr display) */
.table.custom-table {
  width: 100%;
  border-collapse: separate;
  /* allow space between rows */
  border-spacing: 0 12px;
  /* vertical gutter between "card-like" rows */
  table-layout: auto;
  /* let columns size naturally */
  background: transparent;
}

/* header row */
.table.custom-table thead th {
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  border-bottom: none;
  padding: 1rem 1.25rem;
  text-align: left;
}

/* make each body row look like a card while remaining a true table row */
.table.custom-table tbody tr {
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  border-radius: 10px;
}

/* ensure each cell behaves like a table-cell and has breathing room */
.table.custom-table td,
.table.custom-table th {
  vertical-align: middle;
  border-top: none;
  padding: 1.05rem 1.25rem;
  white-space: normal;
  /* allow wrapping */
  word-break: break-word;
  /* break long words/URLs */
  overflow-wrap: anywhere;
}

/* narrow action column */
.table.custom-table .col-actions {
  white-space: nowrap;
  width: 1%;
}

/* optional: visually indent left-most column slightly like a sidebar */
.table.custom-table td:first-child {
  padding-left: 1.5rem;
}

/* ensure tbody background doesn't override wrapper */
.table.custom-table tbody {
  background: transparent;
}

/* small screens: adjust paddings */
@media (max-width: 991px) {
  .table.custom-table {
    border-spacing: 0 10px;
  }

  .table.custom-table td,
  .table.custom-table th {
    padding: .85rem 1rem;
  }
}

/* product thumbnail */
.table.custom-table .product-thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

/* header corner rounding */
.table.custom-table thead th:first-child {
  border-top-left-radius: var(--radius);
}

.table.custom-table thead th:last-child {
  border-top-right-radius: var(--radius);
}

/* Enforce wrapping on all table cells (defense against rogue rules) */
.table.custom-table td,
.table.custom-table th {
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* --------------------------
   Badges & utilities
   -------------------------- */
.badge-custom {
  background: rgba(123, 97, 255, 0.08);
  color: var(--brand-secondary);
  padding: .32rem .5rem;
  border-radius: 8px;
  font-weight: 600;
}

.price {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
}

.muted-small {
  color: var(--muted);
  font-size: .92rem;
}

/* --------------------------
   Footer & Social icons
   -------------------------- */
.footer-custom {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 252, 1));
  border-top: 1px solid var(--subtle);
  padding: 1.4rem 0;
  font-size: .95rem;
  color: var(--muted);
}

.footer-custom a {
  color: var(--muted);
  text-decoration: none;
  transition: color .15s ease, transform .12s ease;
}

.footer-custom a:hover {
  color: var(--brand-primary);
  transform: translateY(-3px);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  width: 44px;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  transition: transform .12s ease, box-shadow .12s ease, color .12s ease;
}

.footer-social a:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-poppier);
  color: #fff;
}

/* social hover colors (add classes whatsapp / instagram / email on anchors) */
.footer-social a.whatsapp:hover {
  background: linear-gradient(90deg, #25d366, #128c7e);
}

.footer-social a.instagram:hover {
  background: radial-gradient(circle at 30% 30%, #ffefba, #ff9bd2 35%, #7b61ff 100%);
}

.footer-social a.email:hover {
  background: linear-gradient(90deg, #6c757d, #343a40);
}

/* --------------------------
   Modals, overlays, drawers
   -------------------------- */
.modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: var(--shadow-poppier);
}

/* --------------------------
   Misc layout helpers
   -------------------------- */
.hero {
  background: linear-gradient(180deg, rgba(123, 97, 255, 0.06), rgba(255, 255, 255, 0));
  border-radius: 12px;
  padding: 36px;
}

.search-input {
  border-radius: 16px;
  padding: .7rem 1rem;
  border: 1px solid rgba(33, 37, 41, 0.06);
  background: #fff;
}

.kv-label {
  color: var(--muted);
  font-weight: 600;
  font-size: .92rem;
}

/* --------------------------
   Small responsive tweaks
   -------------------------- */
@media (max-width: 991px) {
  .product-img {
    height: 160px;
  }

  .navbar {
    padding: .5rem 0;
  }

  .brand-logo {
    height: 36px;
    width: 36px;
  }

  .fab-add {
    padding: .5rem .9rem;
    font-size: .95rem;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: var(--max-container);
  }
}

/* --------------------------
   JS hooks & micro-interactions
   -------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .28s ease, transform .28s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* small housekeeping: ensure form elements don't cause row height issues */
.table.custom-table td>* {
  margin: 0;
}


/* ==========================================================================
   Universal Button Theme (applies to all .btn)
   ========================================================================== */

.btn {
  border-radius: 5px;
  font-weight: 500;
  padding: 0.55rem 1rem;
  transition: all 0.18s ease !important;

  /* soft ambient shadow */
  box-shadow: 0 2px 6px rgba(108, 77, 255, 0.12);
}

/* Hover: lift the button + stronger shadow */
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(108, 77, 255, 0.22);
}


/* ==========================================================================
   End of site.css
   ========================================================================== */