/* =========================================================
   BIDSZO ORDERS PAGE
   Premium gold / black / white theme
   Responsive Bootstrap-friendly layout
   ========================================================= */

.orders-page {
  background:
    radial-gradient(circle at 85% 10%, rgba(212, 160, 23, .055), transparent 28%),
    #fafafa;
  min-height: 100vh;
  color: var(--dark, #171717);
}

.orders-section {
  padding: 48px 0 70px;
}

.orders-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.orders-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold-2, #A9780C);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.orders-eyebrow span {
  width: 7px;
  height: 7px;
  background: var(--gold, #D4A017);
  border-radius: 50%;
  display: inline-block;
}

.orders-heading h1 {
  margin: 0 0 7px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
}

.orders-heading p {
  margin: 0;
  color: var(--grey, #777);
  font-size: .9rem;
}

.orders-continue-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 17px;
  border: 1px solid var(--border, #e6e6e6);
  border-radius: 10px;
  background: #fff;
  color: var(--dark, #171717);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
  transition: .25s ease;
}

.orders-continue-btn:hover {
  color: var(--gold-2, #A9780C);
  border-color: var(--gold, #D4A017);
  transform: translateY(-1px);
}


/* =========================================================
   SUMMARY CARDS
   ========================================================= */

.orders-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 25px;
}

.summary-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid #ececec;
  border-radius: 15px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .035);
  transition: .25s ease;
}

.summary-card:hover {
  border-color: rgba(212, 160, 23, .45);
  transform: translateY(-2px);
}

.summary-card.active {
  border-color: var(--gold, #D4A017);
  box-shadow: 0 8px 25px rgba(212, 160, 23, .10);
}

.summary-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: rgba(212, 160, 23, .11);
  color: var(--gold-2, #A9780C);
  font-size: 18px;
}

.summary-icon.pending {
  background: rgba(245, 158, 11, .10);
  color: #D97706;
}

.summary-icon.processing {
  background: rgba(124, 58, 237, .09);
  color: #7C3AED;
}

.summary-icon.shipped {
  background: rgba(37, 99, 235, .09);
  color: #2563EB;
}

.summary-icon.delivered {
  background: rgba(22, 163, 74, .09);
  color: #16A34A;
}

.summary-icon.cancelled {
  background: rgba(220, 38, 38, .09);
  color: #DC2626;
}

.summary-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.summary-content strong {
  font-size: 1.15rem;
  line-height: 1.2;
}

.summary-content small {
  margin-top: 3px;
  color: var(--grey, #777);
  font-size: .68rem;
}


/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.orders-layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.orders-sidebar {
  position: sticky;
  top: 95px;
}

.orders-sidebar-card {
  padding: 17px;
  border: 1px solid #e9e9e9;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .045);
}

.sidebar-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 4px 14px;
}

.sidebar-title span {
  display: block;
  color: var(--gold-2, #A9780C);
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.sidebar-title h2 {
  margin: 3px 0 0;
  font-size: 1rem;
  font-weight: 700;
}

.sidebar-title > i {
  color: var(--gold-2, #A9780C);
  font-size: 16px;
}

.sidebar-filter-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-filter {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #454545;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: .2s ease;
}

.sidebar-filter span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.sidebar-filter i {
  width: 18px;
  color: #777;
  text-align: center;
}

.sidebar-filter b {
  min-width: 25px;
  padding: 2px 6px;
  border-radius: 20px;
  background: #f4f4f4;
  color: #777;
  font-size: .64rem;
  text-align: center;
}

.sidebar-filter:hover {
  background: #faf6e9;
  color: var(--gold-2, #A9780C);
}

.sidebar-filter.active {
  background: linear-gradient(135deg, #f7e4a9, #f1ca55);
  color: #171717;
  font-weight: 700;
}

.sidebar-filter.active i,
.sidebar-filter:hover i {
  color: var(--gold-2, #A9780C);
}

.sidebar-filter.active b {
  background: rgba(255, 255, 255, .72);
  color: var(--gold-2, #A9780C);
}

.sidebar-divider {
  height: 1px;
  margin: 16px 2px;
  background: #ededed;
}

.sidebar-help {
  padding: 12px 7px 3px;
}

.sidebar-help-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 9px;
  border-radius: 10px;
  background: #111;
  color: var(--gold, #D4A017);
}

.sidebar-help strong {
  display: block;
  font-size: .78rem;
}

.sidebar-help p {
  margin: 5px 0 9px;
  color: var(--grey, #777);
  font-size: .67rem;
  line-height: 1.55;
}

.sidebar-help a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gold-2, #A9780C);
  font-size: .68rem;
  font-weight: 700;
  text-decoration: none;
}


/* =========================================================
   TOOLBAR
   ========================================================= */

.orders-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}

.orders-search {
  position: relative;
  flex: 1;
}

.orders-search > i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 14px;
  pointer-events: none;
}

.orders-search input {
  width: 100%;
  height: 42px;
  padding: 0 38px 0 38px;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: #222;
  font-family: inherit;
  font-size: .76rem;
  transition: .2s ease;
}

.orders-search input:focus {
  border-color: var(--gold, #D4A017);
  box-shadow: 0 0 0 3px rgba(212, 160, 23, .10);
}

.orders-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 27px;
  height: 27px;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #f1f1f1;
  color: #666;
}

.orders-search input:not(:placeholder-shown) + button {
  display: flex;
}

.orders-sort {
  width: 145px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  background: #fff;
  color: #444;
  font-family: inherit;
  font-size: .72rem;
  outline: 0;
}

.orders-sort:focus {
  border-color: var(--gold, #D4A017);
}

.mobile-filter-row {
  display: none;
}

.active-filter-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 13px;
  color: #777;
  font-size: .7rem;
}

.active-filter-line strong {
  color: #222;
}

.active-filter-label {
  display: inline-flex;
  margin-left: 6px;
  padding: 4px 8px;
  border-radius: 20px;
  background: #faf2d9;
  color: var(--gold-2, #A9780C);
  font-weight: 700;
}

.active-filter-line > button {
  border: 0;
  background: transparent;
  color: var(--gold-2, #A9780C);
  font-family: inherit;
  font-size: .7rem;
  font-weight: 700;
  cursor: pointer;
}


/* =========================================================
   ORDER CARDS
   ========================================================= */

.orders-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.order-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 13px;
  border: 1px solid #e9e9e9;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .035);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.order-card:hover {
  border-color: rgba(212, 160, 23, .35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .07);
  transform: translateY(-2px);
}

.order-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 7px;
  margin-bottom: 12px;
}

.order-card-top > div {
  min-width: 0;
}

.order-id {
  display: block;
  color: #252525;
  font-size: .67rem;
  font-weight: 800;
}

.order-date {
  display: block;
  margin-top: 3px;
  color: #999;
  font-size: .61rem;
}

.order-status {
  flex-shrink: 0;
  padding: 4px 7px;
  border-radius: 20px;
  font-size: .59rem;
  font-weight: 700;
  line-height: 1;
}

.order-status.pending {
  background: #fff4dc;
  color: #D97706;
}

.order-status.processing {
  background: #f0eaff;
  color: #7C3AED;
}

.order-status.shipped {
  background: #e9f2ff;
  color: #2563EB;
}

.order-status.delivered {
  background: #e6f7ed;
  color: #16803d;
}

.order-status.cancelled {
  background: #ffe8e8;
  color: #DC2626;
}

.order-product {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 105px;
  margin-bottom: 12px;
}

.order-image {
  width: 105px;
  height: 105px;
  flex: 0 0 105px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: #f8f8f8;
}

.order-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .3s ease;
}

.order-card:hover .order-image img {
  transform: scale(1.04);
}

.order-product-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.order-product-info h3 {
  display: -webkit-box;
  margin: 0 0 5px;
  overflow: hidden;
  color: #222;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.order-product-info > span {
  margin-bottom: 6px;
  color: #999;
  font-size: .62rem;
}

.order-product-info > strong {
  color: #111;
  font-size: .88rem;
  font-weight: 800;
}

.order-card-footer {
  margin-top: auto;
}

.order-details-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(212, 160, 23, .65);
  border-radius: 7px;
  background: #fff;
  color: var(--gold-2, #A9780C);
  font-size: .67rem;
  font-weight: 700;
  text-decoration: none;
  transition: .2s ease;
}

.order-details-btn:hover {
  border-color: var(--gold, #D4A017);
  background: linear-gradient(135deg, #E9C158, #D4A017);
  color: #fff;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.orders-empty {
  display: none;
  padding: 55px 20px;
  border: 1px dashed #ddd;
  border-radius: 15px;
  background: #fff;
  text-align: center;
}

.orders-empty.show {
  display: block;
}

.orders-empty > span {
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #faf2d9;
  color: var(--gold-2, #A9780C);
  font-size: 23px;
}

.orders-empty h3 {
  margin: 0 0 5px;
  font-size: 1rem;
}

.orders-empty p {
  margin: 0 0 16px;
  color: #888;
  font-size: .75rem;
}

.orders-reset-btn {
  padding: 9px 15px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #E9C158, #D4A017);
  color: #fff;
  font-family: inherit;
  font-size: .72rem;
  font-weight: 700;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.orders-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 22px;
  color: #777;
  font-size: .68rem;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pagination-controls button {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e5e5;
  border-radius: 7px;
  background: #fff;
  color: #555;
  font-family: inherit;
  font-size: .72rem;
  cursor: pointer;
  transition: .2s ease;
}

.pagination-controls button:hover:not(:disabled),
.pagination-controls button.active {
  border-color: var(--gold, #D4A017);
  background: linear-gradient(135deg, #E9C158, #D4A017);
  color: #fff;
}

.pagination-controls button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.orders-pagination > select {
  height: 32px;
  padding: 0 8px;
  border: 1px solid #e5e5e5;
  border-radius: 7px;
  background: #fff;
  color: #666;
  font-family: inherit;
  font-size: .66rem;
}


/* =========================================================
   MOBILE OFFCANVAS FILTER
   ========================================================= */

.orders-filter-offcanvas {
  max-width: 310px;
}

.orders-filter-offcanvas .offcanvas-header {
  padding: 22px;
  border-bottom: 1px solid #eee;
}

.orders-filter-offcanvas .offcanvas-header > div > span {
  color: var(--gold-2, #A9780C);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.orders-filter-offcanvas h2 {
  margin: 4px 0 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.orders-filter-offcanvas .offcanvas-body {
  padding: 18px;
}

.mobile-sidebar-filter {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
  padding: 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #444;
  font-family: inherit;
  font-size: .8rem;
  text-align: left;
}

.mobile-sidebar-filter span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.mobile-sidebar-filter b {
  min-width: 25px;
  padding: 3px 6px;
  border-radius: 20px;
  background: #f3f3f3;
  color: #777;
  font-size: .64rem;
  text-align: center;
}

.mobile-sidebar-filter.active {
  background: #faf0cc;
  color: var(--gold-2, #A9780C);
  font-weight: 700;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1199px) {

  .orders-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .orders-layout {
    grid-template-columns: 215px minmax(0, 1fr);
  }

  .orders-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-product {
    min-height: 110px;
  }

  .order-image {
    width: 110px;
    height: 110px;
    flex-basis: 110px;
  }

}

@media (max-width: 991px) {

  .orders-section {
    padding: 35px 0 55px;
  }

  .orders-heading {
    align-items: flex-start;
  }

  .orders-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .orders-layout {
    display: block;
  }

  .orders-sidebar {
    display: none;
  }

  .mobile-filter-row {
    display: block;
  }

  .mobile-filter-btn {
    height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    background: #fff;
    color: #444;
    font-family: inherit;
    font-size: .74rem;
    font-weight: 600;
  }

  .mobile-filter-btn:hover {
    border-color: var(--gold, #D4A017);
    color: var(--gold-2, #A9780C);
  }

}

@media (max-width: 767px) {

  .orders-section {
    padding: 28px 0 45px;
  }

  .orders-heading {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
  }

  .orders-heading h1 {
    font-size: 1.75rem;
  }

  .orders-continue-btn {
    width: 100%;
    justify-content: center;
  }

  .orders-summary {
    display: flex;
    overflow-x: auto;
    gap: 9px;
    padding: 2px 2px 8px;
    margin-right: -12px;
    padding-right: 12px;
    scrollbar-width: none;
  }

  .orders-summary::-webkit-scrollbar {
    display: none;
  }

  .summary-card {
    min-width: 145px;
    padding: 12px;
  }

  .summary-icon {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    font-size: 16px;
  }

  .orders-toolbar {
    flex-wrap: wrap;
  }

  .mobile-filter-row {
    order: 1;
  }

  .orders-search {
    order: 2;
    flex-basis: calc(100% - 88px);
  }

  .orders-sort {
    order: 3;
    width: 100%;
  }

  .orders-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .order-card {
    padding: 12px;
  }

  .order-product {
    min-height: 115px;
  }

  .order-image {
    width: 115px;
    height: 115px;
    flex-basis: 115px;
  }

  .order-product-info h3 {
    font-size: .82rem;
  }

  .order-product-info > strong {
    font-size: .95rem;
  }

  .active-filter-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .orders-pagination {
    flex-wrap: wrap;
  }

  .orders-pagination > span {
    width: 100%;
    order: 1;
  }

  .pagination-controls {
    order: 2;
  }

  .orders-pagination > select {
    order: 3;
  }

}

@media (max-width: 480px) {

  .orders-heading p {
    font-size: .78rem;
    line-height: 1.55;
  }

  .summary-card {
    min-width: 132px;
  }

  .summary-content strong {
    font-size: 1rem;
  }

  .summary-content small {
    font-size: .62rem;
  }

  .orders-search {
    flex-basis: calc(100% - 85px);
  }

  .mobile-filter-btn {
    padding: 0 10px;
  }

  .order-product {
    min-height: 105px;
  }

  .order-image {
    width: 100px;
    height: 100px;
    flex-basis: 100px;
  }

  .order-product-info h3 {
    font-size: .76rem;
  }

  .order-product-info > strong {
    font-size: .87rem;
  }

  .order-status {
    font-size: .55rem;
  }

  .pagination-controls button {
    width: 29px;
    height: 29px;
  }

}