/* =========================================================
   ShipNovaShop
   FINAL PREMIUM UI
   Blue + Orange Marketplace Theme
   ========================================================= */

* {
  box-sizing: border-box;
}

:root {
  --primary: #1769ff;
  --primary-dark: #0b4dcc;
  --secondary: #ff7a18;
  --secondary-dark: #e85f00;

  --dark: #0f1f3d;
  --dark-2: #182a4a;

  --text: #172033;
  --text-heading: #0f1f3d;
  --text-body: #475467;
  --muted: #667085;
  --placeholder: #98a2b3;

  --bg: #f4f7fb;
  --white: #ffffff;
  --border: #e4e7ec;

  --success: #12b76a;
  --success-dark: #087443;

  --danger: #f04438;
  --danger-dark: #b42318;

  --warning: #f79009;
  --warning-dark: #b54708;

  --radius: 14px;

  --shadow:
    0 8px 30px rgba(16, 24, 40, 0.08);

  --shadow-hover:
    0 14px 40px rgba(16, 24, 40, 0.14);
}


/* =========================================================
   BODY
   ========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  font-family:
    Inter,
    Arial,
    Helvetica,
    sans-serif;

  background:
    linear-gradient(
      180deg,
      #f8faff 0%,
      #f4f7fb 100%
    );

  color: var(--text);

  line-height: 1.55;
}

button,
input,
textarea,
select {
  font: inherit;
}

img {
  max-width: 100%;
}


/* =========================================================
   HEADINGS
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-heading);

  font-weight: 800;

  letter-spacing: -0.25px;

  line-height: 1.25;
}

p {
  color: var(--text-body);
}

strong,
b {
  color: #263653;
}


/* =========================================================
   LINKS
   ========================================================= */

a {
  text-decoration: none;

  color: #174ea6;

  transition:
    color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

.link {
  color: #1456d9;

  font-weight: 700;
}

.link:hover {
  color: var(--primary-dark);

  text-decoration: underline;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.nav {
  background:
    linear-gradient(
      135deg,
      #08162f 0%,
      #102b57 55%,
      #124da3 100%
    );

  color: #ffffff;

  min-height: 68px;

  padding: 12px 22px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 18px;

  position: sticky;

  top: 0;

  z-index: 100;

  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.16);
}

.brand {
  color: #ffffff;

  font-size: 23px;

  font-weight: 900;

  letter-spacing: -0.5px;

  white-space: nowrap;

  display: flex;

  align-items: center;

  gap: 7px;
}

.brand:hover {
  color: #ffffff;
}

.brand::first-letter {
  color: var(--secondary);
}

.navlinks {
  display: flex;

  align-items: center;

  justify-content: flex-end;

  gap: 5px;

  flex-wrap: wrap;
}

.navlinks a,
.navlinks button {
  color: #ffffff;

  background: transparent;

  border: 0;

  padding: 9px 12px;

  border-radius: 9px;

  cursor: pointer;

  font-weight: 600;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.navlinks a:hover,
.navlinks button:hover {
  color: #ffffff;

  background:
    rgba(255, 255, 255, 0.13);

  transform: translateY(-1px);
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
  width: 100%;

  max-width: 1200px;

  margin: auto;

  padding: 28px 22px;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;

  overflow: hidden;

  padding: 65px 28px;

  color: #ffffff;

  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(255, 122, 24, 0.35),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      #07152f,
      #0d3b7d 58%,
      #1769ff
    );

  box-shadow:
    0 15px 45px
    rgba(11, 77, 204, 0.18);
}

.hero::after {
  content: "";

  position: absolute;

  width: 220px;

  height: 220px;

  right: -70px;

  bottom: -90px;

  background:
    rgba(255, 255, 255, 0.08);

  border-radius: 50%;
}

.hero h1 {
  position: relative;

  z-index: 1;

  color: #ffffff;

  font-size:
    clamp(32px, 5vw, 48px);

  line-height: 1.1;

  margin: 0 0 14px;

  font-weight: 900;

  letter-spacing: -1px;
}

.hero p {
  position: relative;

  z-index: 1;

  max-width: 650px;

  font-size: 17px;

  color: #e7efff;

  margin: 0 0 22px;
}


/* =========================================================
   GRID
   ========================================================= */

.grid {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(230px, 1fr)
    );

  gap: 20px;
}


/* =========================================================
   CARD
   ========================================================= */

.card {
  background: var(--white);

  border:
    1px solid
    rgba(228, 231, 236, 0.9);

  border-radius: var(--radius);

  padding: 17px;

  box-shadow: var(--shadow);

  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);

  box-shadow: var(--shadow-hover);

  border-color: #cbdcff;
}

.card h1,
.card h2,
.card h3,
.card h4,
.card h5,
.card h6 {
  color: #14213d;

  margin-top: 8px;
}

.card p {
  color: #5b667a;
}


/* =========================================================
   PRODUCT IMAGE
   ========================================================= */

.product-img {
  width: 100%;

  height: 205px;

  object-fit: cover;

  border-radius: 11px;

  background:
    linear-gradient(
      135deg,
      #eef3fa,
      #e3eaf5
    );

  display: block;

  transition:
    transform 0.25s ease;
}

.card:hover .product-img {
  transform: scale(1.015);
}


/* =========================================================
   PRICE
   ========================================================= */

.price {
  color: #1456d9;

  font-size: 22px;

  font-weight: 900;

  margin-top: 8px;
}

.old {
  text-decoration: line-through;

  color: #98a2b3;

  margin-left: 8px;

  font-size: 14px;
}

.discount {
  background: #ecfdf3 !important;

  color: #087443 !important;

  border-color: #c6f1d9 !important;
}

.low {
  color: #b42318;

  font-weight: 800;
}


/* =========================================================
   BADGES
   ========================================================= */

.badge {
  display: inline-flex;

  align-items: center;

  background: #edf4ff;

  color: #174ea6;

  padding: 5px 10px;

  border-radius: 30px;

  font-size: 12px;

  font-weight: 700;

  margin: 3px;

  border:
    1px solid
    #dbe8ff;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 6px;

  border: 0;

  border-radius: 10px;

  padding: 11px 17px;

  min-height: 42px;

  background:
    linear-gradient(
      135deg,
      var(--primary),
      #3b82f6
    );

  color: #ffffff;

  cursor: pointer;

  font-weight: 750;

  box-shadow:
    0 5px 14px
    rgba(23, 105, 255, 0.22);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.btn:hover {
  color: #ffffff;

  transform: translateY(-2px);

  box-shadow:
    0 8px 20px
    rgba(23, 105, 255, 0.28);

  filter: brightness(1.03);
}

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

.btn.secondary {
  background:
    linear-gradient(
      135deg,
      #475467,
      #667085
    );

  color: #ffffff;
}

.btn.danger {
  background:
    linear-gradient(
      135deg,
      #d92d20,
      #f04438
    );

  color: #ffffff;
}

.btn.success {
  background:
    linear-gradient(
      135deg,
      #039855,
      #12b76a
    );

  color: #ffffff;
}

.btn.orange {
  background:
    linear-gradient(
      135deg,
      #ff7a18,
      #ff9f43
    );

  color: #ffffff;

  box-shadow:
    0 5px 16px
    rgba(255, 122, 24, 0.25);
}

.btn.small {
  padding: 8px 11px;

  min-height: 34px;

  font-size: 13px;

  border-radius: 8px;
}


/* =========================================================
   FORMS
   ========================================================= */

.form {
  background: #ffffff;

  padding: 24px;

  border-radius: 16px;

  border:
    1px solid
    var(--border);

  box-shadow: var(--shadow);
}

.form h1,
.form h2,
.form h3 {
  color: #0f1f3d;

  margin-top: 0;
}

.form label {
  display: block;

  color: #344054;

  font-weight: 700;

  font-size: 14px;

  margin-top: 7px;
}

.form input,
.form textarea,
.form select {
  width: 100%;

  padding: 12px 13px;

  margin: 6px 0 13px;

  border:
    1px solid
    #d0d5dd;

  border-radius: 10px;

  background: #ffffff;

  color: #172033;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: var(--primary);

  box-shadow:
    0 0 0 4px
    rgba(23, 105, 255, 0.1);
}

.form textarea {
  min-height: 110px;

  resize: vertical;
}

::placeholder {
  color: #98a2b3;

  opacity: 1;
}


/* =========================================================
   ROW
   ========================================================= */

.row {
  display: grid;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(180px, 1fr)
    );

  gap: 14px;
}


/* =========================================================
   TOOLBAR
   ========================================================= */

.toolbar {
  display: flex;

  gap: 10px;

  flex-wrap: wrap;

  margin: 18px 0;
}

.toolbar input,
.toolbar select {
  padding: 11px 13px;

  border:
    1px solid
    #d0d5dd;

  border-radius: 9px;

  background: #ffffff;

  color: #172033;

  outline: none;
}

.toolbar input:focus,
.toolbar select:focus {
  border-color: var(--primary);

  box-shadow:
    0 0 0 3px
    rgba(23, 105, 255, 0.08);
}


/* =========================================================
   TABLE
   ========================================================= */

.tablewrap {
  overflow-x: auto;

  background: #ffffff;

  border-radius: 14px;

  border:
    1px solid
    var(--border);

  box-shadow: var(--shadow);
}

.table {
  width: 100%;

  border-collapse: collapse;
}

.table th {
  background: #f8fafc;

  color: #344054;

  font-size: 13px;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: 0.3px;
}

.table th,
.table td {
  padding: 13px;

  border-bottom:
    1px solid
    #eaecf0;

  text-align: left;

  white-space: nowrap;
}

.table td {
  color: #475467;
}

.table tbody tr {
  transition:
    background 0.15s ease;
}

.table tbody tr:hover {
  background: #f8fbff;
}


/* =========================================================
   DASHBOARD
   ========================================================= */

.stat {
  font-size: 29px;

  font-weight: 900;

  color: #1456d9;

  line-height: 1.2;
}

.stat-card {
  background: #ffffff;

  border:
    1px solid
    var(--border);

  border-radius: 15px;

  padding: 20px;

  box-shadow: var(--shadow);
}

.stat-card:hover {
  border-color: #cbdcff;
}


/* =========================================================
   STATUS
   ========================================================= */

.status {
  display: inline-flex;

  align-items: center;

  padding: 5px 10px;

  border-radius: 20px;

  font-size: 12px;

  font-weight: 800;
}

.status.pending {
  background: #fff7e6;

  color: #b54708;
}

.status.confirmed {
  background: #eef4ff;

  color: #175cd3;
}

.status.shipped {
  background: #eef4ff;

  color: #3538cd;
}

.status.delivered {
  background: #ecfdf3;

  color: #087443;
}

.status.cancelled {
  background: #fef3f2;

  color: #b42318;
}


/* =========================================================
   ALERTS
   ========================================================= */

.alert {
  padding: 12px 14px;

  border-radius: 10px;

  margin: 12px 0;

  font-weight: 600;
}

.alert.success {
  background: #ecfdf3;

  color: #067647;

  border:
    1px solid
    #abefc6;
}

.alert.error {
  background: #fef3f2;

  color: #b42318;

  border:
    1px solid
    #fecdca;
}

.alert.warning {
  background: #fffaeb;

  color: #b54708;

  border:
    1px solid
    #fedf89;
}


/* =========================================================
   REVIEW
   ========================================================= */

.review {
  border-top:
    1px solid
    #eaecf0;

  padding: 14px 0;
}


/* =========================================================
   TEXT UTILITIES
   ========================================================= */

.muted {
  color: #667085;
}

.center {
  text-align: center;
}

.success-text {
  color: #087443;
}

.warning-text {
  color: #b54708;
}

.error-text {
  color: #b42318;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  margin-top: 45px;

  padding: 35px 20px;

  text-align: center;

  color: #98a2b3;

  background: #101828;

  border-top:
    3px solid
    var(--secondary);
}

.footer p {
  color: #98a2b3;
}

.footer a {
  color: #d0d5dd;
}

.footer a:hover {
  color: #ffffff;
}


/* =========================================================
   DIVIDER
   ========================================================= */

hr {
  border: 0;

  border-top:
    1px solid
    #eaecf0;

  margin: 24px 0;
}


/* =========================================================
   HIDDEN
   ========================================================= */

.hidden {
  display: none !important;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
  width: 9px;

  height: 9px;
}

::-webkit-scrollbar-track {
  background: #eef2f7;
}

::-webkit-scrollbar-thumb {
  background: #b8c3d4;

  border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8d9bb0;
}


/* =========================================================
   TEXT SELECTION
   ========================================================= */

::selection {
  background: #cfe0ff;

  color: #08265c;
}


/* =========================================================
   MOBILE / TABLET
   ========================================================= */

@media (max-width: 768px) {

  .nav {
    padding: 11px 14px;

    align-items: flex-start;

    flex-direction: column;

    gap: 8px;
  }

  .brand {
    font-size: 21px;
  }

  .navlinks {
    width: 100%;

    justify-content: flex-start;

    overflow-x: auto;

    flex-wrap: nowrap;

    padding-bottom: 2px;
  }

  .navlinks a,
  .navlinks button {
    flex: 0 0 auto;

    padding: 8px 10px;

    font-size: 13px;
  }

  .container {
    padding: 18px 14px;
  }

  .hero {
    padding: 42px 20px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 15px;
  }

  .grid {
    grid-template-columns:
      repeat(
        auto-fit,
        minmax(160px, 1fr)
      );

    gap: 13px;
  }

  .card {
    padding: 12px;

    border-radius: 12px;
  }

  .product-img {
    height: 165px;

    border-radius: 9px;
  }

  .price {
    font-size: 19px;
  }

  .form {
    padding: 17px;

    border-radius: 13px;
  }

  .table th,
  .table td {
    padding: 10px;

    font-size: 13px;
  }

  .btn {
    padding: 10px 13px;

    min-height: 40px;
  }
}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

  .hero {
    padding: 34px 16px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .grid {
    grid-template-columns: 1fr 1fr;

    gap: 10px;
  }

  .product-img {
    height: 145px;
  }

  .card {
    padding: 10px;
  }

  .btn {
    width: 100%;
  }

  .btn.small {
    width: auto;
  }
}


/* =========================================================
   ACCESSIBILITY / REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;

    animation: none !important;
  }
}