*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --green-950: #06261f;
  --green-900: #0b3d32;
  --green-800: #0f5c4c;
  --green-700: #147a64;
  --green-600: #1a9479;
  --green-100: #e7f6f1;
  --green-50: #f4fbf8;
  --white: #ffffff;
  --ivory: #eeeeee;
  --line: rgba(15, 92, 76, 0.16);
  --shadow: 0 18px 50px rgba(6, 38, 31, 0.1);
  --radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  color: var(--green-950);
  background:
    radial-gradient(1200px 500px at 100% -10%, rgba(20, 122, 100, 0.07), transparent 55%),
    radial-gradient(900px 400px at 0% 100%, rgba(15, 92, 76, 0.04), transparent 50%),
    #eeeeee;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #0a3d32;
  border-bottom: 0;
  box-shadow: 0 6px 20px rgba(6, 38, 31, 0.22);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 99px;
  background: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: #0a3d32;
  font-family: "Amiri", serif;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-family: "Cairo", sans-serif;
  font-size: 1.02rem;
  line-height: 1.25;
  color: #fff;
  font-weight: 800;
}

.brand-text span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.86);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.top-nav a,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.top-nav a {
  padding: 8px 16px;
  border-radius: 999px;
  color: #f4efe4;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
  white-space: nowrap;
}

.top-nav a:hover,
.top-nav a.active {
  background: #f4efe4;
  border-color: transparent;
  color: var(--green-950);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 38, 31, 0.42);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

body.drawer-open .drawer-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  inset-inline-end: auto;
  z-index: 95;
  width: min(380px, 92vw);
  max-width: 92vw;
  background:
    linear-gradient(180deg, #fbfefd 0%, #eef8f4 100%);
  border-inline-end: 1px solid var(--line);
  box-shadow: -18px 0 50px rgba(6, 38, 31, 0.16);
  display: none;
  flex-direction: column;
  padding: 22px 20px 28px;
}

body.drawer-open .site-drawer {
  display: flex;
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding-bottom: 18px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.drawer-kicker {
  margin: 0 0 4px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--green-700);
}

.drawer-head strong {
  font-family: "Amiri", serif;
  font-size: 1.25rem;
  color: var(--green-900);
}

.drawer-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--green-900);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.drawer-nav {
  display: grid;
  gap: 8px;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 16px;
  color: var(--green-900);
  font-weight: 700;
  background: var(--white);
  border: 1px solid transparent;
}

.drawer-nav a:hover,
.drawer-nav a.active {
  border-color: var(--line);
  background: var(--green-50);
}

.drawer-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--green-700), var(--green-950));
  color: var(--white);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.about-page {
  max-width: 760px;
}

.btn {
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

@media (hover: none) {
  .btn:hover {
    transform: none;
  }
}

.btn-primary {
  background: linear-gradient(180deg, var(--green-700), var(--green-900));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(11, 61, 50, 0.22);
}

.btn-ghost {
  background: var(--white);
  color: var(--green-800);
  border: 1px solid var(--line);
}

.btn-danger {
  background: #8b2e2e;
  color: #fff;
}

.hero {
  padding: 18px 0 12px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 16px 32px 14px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(6, 38, 31, 0.18), rgba(6, 38, 31, 0.55)),
    linear-gradient(145deg, var(--green-800), var(--green-950));
  box-shadow: var(--shadow);
}

.hero-card h1 {
  font-family: "Amiri", serif;
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  margin: 0 0 6px;
  line-height: 1.3;
}

.hero-card p {
  max-width: 720px;
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.65;
  opacity: 0.92;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions .btn {
  padding: 8px 18px;
  font-size: 0.92rem;
}

.section {
  padding: 36px 0;
}

.hero + .section {
  padding-top: 18px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 22px;
}

.section-head h2 {
  font-family: "Amiri", serif;
  font-size: 2rem;
  margin: 0;
  color: var(--green-900);
}

.section-head p {
  margin: 6px 0 0;
  color: var(--green-700);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.watch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.grid-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--green-700);
}

.grid-sentinel {
  height: 1px;
}

.watch-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(6, 38, 31, 0.05);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.watch-card .media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--green-50);
  overflow: hidden;
}

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

.badge {
  position: absolute;
  top: 14px;
  inset-inline-start: 0;
  background: rgba(251, 254, 253, 0.94);
  color: var(--green-800);
  border-start-start-radius: 0;
  border-end-start-radius: 0;
  border-start-end-radius: 999px;
  border-end-end-radius: 999px;
  padding: 7px 16px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 18px rgba(6, 38, 31, 0.12);
}

.badge-status.badge-active {
  background: linear-gradient(180deg, #1a9479, #0f5c4c);
  color: var(--white);
}

.badge-status.badge-ended {
  background: linear-gradient(180deg, #d64545, #8b2e2e);
  color: var(--white);
}

.watch-card .body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.watch-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--green-700);
  font-size: 0.92rem;
}

.price {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--green-900);
}

.countdown {
  font-variant-numeric: tabular-nums;
  background: var(--green-50);
  border-radius: 12px;
  padding: 8px 10px;
  text-align: center;
  color: var(--green-800);
  font-size: 0.9rem;
  margin: 0 0 8px;
}

.detail {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

.detail > * {
  min-width: 0;
  max-width: 100%;
}

.detail .gallery,
.detail .gallery-frame,
.detail .specs,
.detail .bid-info-card,
.detail .status-card,
.detail .countdown,
.detail .bid-panel,
.detail .bid-panel .btn,
.detail .admin-table {
  border-radius: 0;
}

.gallery {
  background: #fff;
  border: 0;
  padding: 0;
}

.gallery-frame {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: #eee;
  cursor: zoom-in;
}

.gallery-stage {
  position: relative;
}

.gallery-frame img,
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-900);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(6, 38, 31, 0.16);
  z-index: 2;
}

.gallery-nav-prev {
  inset-inline-start: 10px;
}

.gallery-nav-next {
  inset-inline-end: 10px;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.gallery-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 92, 76, 0.28);
  cursor: pointer;
}

.gallery-dots button.active {
  background: var(--green-700);
  transform: scale(1.15);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(6, 18, 16, 0.86);
  display: none;
  place-items: center;
  visibility: hidden;
  pointer-events: none;
}

.lightbox.is-open {
  display: grid;
  visibility: visible;
  pointer-events: auto;
  z-index: 130;
}

.lightbox-stage {
  width: min(96vw, 960px);
  height: min(86vh, 960px);
  overflow: hidden;
  touch-action: none;
}

.lightbox-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-toolbar {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.lightbox-tool {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-900);
  font-size: 1.5rem;
  cursor: pointer;
}

.lightbox .gallery-nav {
  background: rgba(255, 255, 255, 0.92);
}

body.lightbox-open {
  overflow: hidden;
}

.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  flex-wrap: wrap;
}

.thumbs button {
  border: 2px solid transparent;
  padding: 0;
  width: 76px;
  height: 76px;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: none;
}

.thumbs button.active,
.thumbs button:hover {
  border-color: var(--green-700);
}

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

.specs {
  background: transparent;
  border: 0;
  padding: 0;
}

.specs h1 {
  font-family: "Cairo", sans-serif;
  margin: 0 0 4px;
  font-size: 1.35rem;
  color: #0a3d32;
}

.watch-description {
  margin: 0 0 10px;
  line-height: 1.6;
  color: #6b7280;
  font-size: 0.9rem;
}

.status-card,
.bid-info-card {
  margin: 0 0 8px;
  padding: 12px 14px;
  background: #fff;
  border: 0;
}

.bid-info-card {
  background: #fff;
}

.bid-info-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.bid-info-head span {
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 600;
}

.bid-info-card .price {
  font-size: 1.75rem;
  color: #0a3d32;
  font-weight: 800;
  direction: ltr;
  text-align: left;
}

.bid-info-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.bid-info-foot p {
  margin: 0;
  color: #6b7280;
  font-size: 0.82rem;
}

.bid-status-label {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
}

.bid-status-live {
  color: #0a3d32;
}

.bid-status-closed {
  color: #c0392b;
}

.leader-banner {
  pointer-events: none;
  background: #cfe8d8;
  border: 0;
  color: #0a3d32;
  font-weight: 800;
  text-align: start;
}

.leader-banner.is-outbid {
  pointer-events: auto;
  cursor: pointer;
  background: #c0392b;
  color: #fff;
}

.outbid-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
}

.outbid-hint[hidden] {
  display: none !important;
}

.leader-banner.is-outbid:focus {
  outline: 2px solid #7a1f16;
  outline-offset: 2px;
}

.winner-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #cfe8d8;
  border: 0;
  color: #0a3d32;
}

.winner-card span {
  font-weight: 600;
}

.closed-card {
  background: #f8d7da;
  border: 0;
  color: #9b2c2c;
}

.closed-card p {
  margin: 6px 0 0;
  color: #6b7280;
  font-weight: 500;
  font-size: 0.86rem;
}

.countdown-label {
  margin: 4px 0 4px;
  font-weight: 700;
  font-size: 0.88rem;
}

.detail .countdown {
  border-radius: 0;
  background: #fff;
  border: 1px solid #f3c8c8;
  font-size: 2.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 14px 12px;
  color: #0a3d32;
  line-height: 1.2;
}

.bid-panel {
  margin-top: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  display: grid;
  gap: 0;
}

.detail .bid-panel .btn-primary,
.detail .btn-primary {
  width: 100%;
  background: #0a3d32;
  color: #fff;
  box-shadow: none;
  border-radius: 0;
  transform: none;
}

.detail .bid-panel .btn-primary:hover {
  transform: none;
  background: #08332a;
}

.spec-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.spec-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.flash {
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 16px;
  border-radius: 14px;
}

.flash.success {
  background: var(--green-100);
  color: var(--green-900);
}

.flash.error {
  background: #fde8e8;
  color: #7a1f1f;
}

.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
  background: transparent;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(8, 16, 14, 0.82);
  z-index: 0;
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(360px, calc(100% - 8px));
  max-height: min(90dvh, 90vh);
  overflow: auto;
  background: #ffffff;
  background-image: none;
  color: var(--green-950);
  border-radius: 0;
  padding: 14px 16px 16px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.4);
  margin: auto;
}

.modal-card h2 {
  font-family: "Amiri", serif;
  font-size: 1.2rem;
  margin: 0 0 10px;
}

.modal-card .form-grid {
  gap: 8px;
}

.modal-card input {
  background: #ffffff;
  padding: 9px 10px;
}

.modal-card .flash {
  width: 100%;
  margin: 0 0 8px;
  padding: 8px 10px;
  font-size: 0.85rem;
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: stretch;
  margin-top: 4px;
}

.modal-actions .btn {
  flex: 1;
  padding: 10px 12px;
}

html.modal-open,
body.modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.bid-saved-note {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-800);
  font-size: 0.88rem;
  font-weight: 600;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.image-uploader {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: var(--green-50);
}

.image-uploader-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--green-900);
}

.image-uploader-hint {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--green-700);
}

.image-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.image-preview {
  position: relative;
  margin: 0;
  width: 92px;
  height: 92px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(6, 38, 31, 0.08);
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-remove {
  position: absolute;
  top: 4px;
  inset-inline-start: 4px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(139, 46, 46, 0.92);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.image-picker-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--white);
  color: var(--green-900);
  border: 1px solid var(--line);
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
}

.image-picker-btn.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.image-picker-btn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  font-size: 0;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 0.92rem;
}

label.image-picker-btn {
  display: inline-flex;
  gap: 0;
}

input,
textarea,
select {
  font: inherit;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--green-50);
  color: var(--green-950);
}

textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.7;
}

.site-footer {
  margin-top: 40px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--green-800);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

.admin-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card {
  background: rgba(10, 61, 50, 0.12);
  border: 0;
  border-radius: 0;
  padding: 14px 16px;
}

.product-card-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.product-card-copy {
  flex: 1;
  min-width: 0;
}

.product-card-thumb {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 0;
  background: rgba(10, 61, 50, 0.1);
}

.product-card-thumb-empty {
  display: block;
}

.product-card-head {
  margin-bottom: 8px;
}

.product-card-head strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0a3d32;
  overflow-wrap: anywhere;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 0;
}

.product-card-type {
  margin: 0;
  color: #4b5563;
  font-size: 0.88rem;
  font-weight: 700;
}

.product-card-price {
  margin: 0;
  color: #0a3d32;
  font-size: 1.35rem;
  font-weight: 800;
  direction: ltr;
  text-align: start;
}

.product-card-ends {
  margin: 0;
  color: #4b5563;
  font-size: 0.9rem;
}

.product-card .countdown {
  display: inline;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  font-size: inherit;
  font-weight: 800;
  color: #0a3d32;
  text-align: start;
}

.product-card-foot {
  display: flex;
  justify-content: flex-end;
}

.product-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-card-actions .btn {
  border-radius: 0;
}

.bid-group {
  margin-bottom: 28px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.bid-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 0 12px;
}

.bid-group-head h3 {
  font-family: "Cairo", sans-serif;
  margin: 0;
  color: #0a3d32;
}

.bid-group-head p {
  margin: 4px 0 0;
  color: #6b7280;
}

.bid-card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bid-card {
  background: rgba(10, 61, 50, 0.12);
  border: 0;
  border-radius: 0;
  padding: 14px 16px;
}

.bid-card-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.bid-card-watch {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0a3d32;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.bid-card-head strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0a3d32;
  overflow-wrap: anywhere;
}

.bid-card-phone {
  color: #374151;
  font-weight: 700;
  font-size: 0.95rem;
  direction: ltr;
  text-align: start;
}

.bid-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.bid-card-amount {
  margin: 0;
  color: #0a3d32;
  font-size: 1.35rem;
  font-weight: 800;
  direction: ltr;
  text-align: start;
}

.bid-card-address {
  margin: 0;
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.bid-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bid-card-foot time {
  color: #9ca3af;
  font-size: 0.78rem;
}

.bid-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bid-card-actions .btn {
  border-radius: 0;
}

.btn-whatsapp {
  background: #128c7e;
  color: #fff;
  box-shadow: none;
}

.btn-whatsapp:hover {
  transform: none;
  background: #0e7a71;
  color: #fff;
}

.placeholder-img {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(26, 148, 121, 0.25), transparent 40%),
    linear-gradient(160deg, #123f35, #071c18);
  color: #e7f6f1;
  font-family: "Amiri", serif;
  font-size: 1.4rem;
}

.ended {
  opacity: 0.78;
}

@media (max-width: 900px) {
  .container {
    width: calc(100% - 20px);
    max-width: 100%;
  }

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

  .detail {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .watch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .header-inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 10px 0;
  }

  .brand-text strong {
    font-size: 0.95rem;
    color: #fff;
  }

  .brand-text span {
    display: block;
    font-size: 0.7rem;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .top-nav {
    display: none;
  }

  .hero-card {
    padding: 12px 16px 12px;
    border-radius: 18px;
  }

  .hero-card h1 {
    font-size: 1.28rem;
  }

  .hero-card p {
    font-size: 0.86rem;
    margin-bottom: 10px;
  }

  .section {
    padding: 12px 0 20px;
  }

  .gallery,
  .specs {
    width: 100%;
    max-width: 100%;
  }

  .specs {
    display: flex;
    flex-direction: column;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .specs h1 {
    font-size: 1.2rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .watch-description {
    margin: 0 0 10px;
  }

  .leader-banner,
  .bid-info-card,
  .winner-card,
  .closed-card {
    width: 100%;
    margin: 0 0 8px;
  }

  .bid-info-head {
    flex-wrap: nowrap;
    align-items: flex-start;
  }

  .bid-info-head span {
    flex: 1;
    min-width: 0;
    padding-inline-end: 8px;
  }

  .bid-info-card .price {
    flex-shrink: 0;
    font-size: 1.45rem;
    white-space: nowrap;
  }

  .bid-info-foot {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .countdown-label {
    margin: 0 0 4px;
  }

  .countdown {
    width: 100%;
    margin: 0 0 8px;
  }

  .detail .countdown {
    font-size: 1.85rem;
    padding: 12px 10px;
  }

  .bid-panel {
    width: 100%;
    margin-top: 8px;
    position: relative;
    z-index: 3;
  }

  .detail .bid-panel .btn-primary,
  .detail .btn-primary {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.18);
  }

  .gallery-nav {
    width: 36px;
    height: 36px;
    font-size: 1.45rem;
  }

  .lightbox-stage {
    width: 100%;
    height: 78vh;
  }

  .modal {
    padding: 0;
    align-items: flex-end;
  }

  .modal-card {
    width: 100%;
    max-width: 100%;
    max-height: min(88dvh, 88vh);
    border-radius: 0;
  }

  .modal-card input {
    font-size: 16px;
    border-radius: 0;
  }

  .modal-actions .btn {
    min-height: 44px;
    border-radius: 0;
    touch-action: manipulation;
  }

  .bid-card-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .bid-card-actions .btn {
    flex: 1;
    min-height: 44px;
  }

  .product-card-actions {
    width: 100%;
  }

  .product-card-actions .btn {
    flex: 1;
    min-height: 44px;
  }
}
