/* ✅ BRAND COLORS */
:root {
  --primary: #213b62;
  --dark: #071b3b;
  --light: #f9f9f9;
}

/* ✅ PAGE BACKGROUND */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #222;
  text-align: center;
  min-height: 100vh;
  padding: 30px 0;
}

/* ✅ MAIN CONTAINER */
.container {
  width: 95%;
  max-width: 540px;
  margin: auto;
  padding: 22px;
  background: #fff;
  border-radius: 20px;
}

/* ✅ BRAND HEADER */
.brand-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

/* ✅ LOGO */
.brand-logo {
  width: 170px;
  height: auto;
}


/* ✅ TITLE */
h1 {
  color: var(--primary);
  font-size: 28px;
  margin: 0;
}

.subtitle {
  color: #555;
  font-family: "Playfair Display", serif;
  font-size: 15px;
  margin-bottom: 18px;
}

/* ✅ INPUT */
input {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  border-radius: 12px;
  border: 1px solid var(--primary);
  outline: none;
  box-sizing: border-box;
  transition: 0.25s;
}

input:focus {
  border: 2px solid var(--dark);
  box-shadow: 0 0 10px rgba(33, 59, 98, 0.25);
}

/* ✅ BUTTONS (NO YELLOW) */
button {
  width: 100%;
  padding: 14px;
  /* margin-top: 12px; */
  font-size: 16px;
  font-weight: bold;

  border: none;
  /* border-radius: 14px; */
  cursor: pointer;

  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;

  /* ✅ Brand Color Background */
  background: var(--primary);
  color: white;

  transition: all 0.25s ease-in-out;
}

button:hover {
  background: var(--dark);
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(33, 59, 98, 0.35);
}

/* ✅ SCAN BUTTON */
.scan-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.scan-btn img {
  width: 26px;
  height: 26px;
}

/* ✅ CANCEL BUTTON */
.cancel-btn {
  width: auto;
  padding: 9px 14px;
  background: crimson;
  font-size: 14px;
  border-radius: 12px;
}

.cancel-btn:hover {
  background: darkred;
}

/* ✅ SCANNER BOX */
.scanner-box {
  display: none;
  margin-top: 20px;
  padding: 18px;
  border-radius: 18px;
  background: var(--light);
  border: 2px solid var(--primary);
}

/* ✅ HEADER */
.scanner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.scanner-header h3 {
  margin: 0;
  font-size: 17px;
  color: var(--primary);
}

/* ✅ SCANNER FRAME */
.scanner-frame {
  margin-top: 15px;
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  border-radius: 18px;
  background: black;
  box-shadow: 0 0 25px rgba(33, 59, 98, 0.25);
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ✅ BORDER INSIDE SCANNER */
.scan-border {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 75%;
  max-width: 260px;
  height: 75%;
  max-height: 260px;
  transform: translate(-50%, -50%);
  border: 3px solid var(--primary);
  border-radius: 16px;
  box-shadow: 0 0 18px rgba(33, 59, 98, 0.6);
}

/* ✅ SCANNING LINE */
.scan-line {
  position: absolute;
  left: 50%;
  width: 75%;
  max-width: 260px;
  height: 3px;
  background: var(--primary);
  transform: translateX(-50%);
  animation: scanMove 1.6s infinite;
}

@keyframes scanMove {
  0% {
    top: 20%;
    opacity: 0.3;
  }

  50% {
    top: 80%;
    opacity: 1;
  }

  100% {
    top: 20%;
    opacity: 0.3;
  }
}

/* ✅ SCAN RESULT */
#scanResult {
  margin-top: 12px;
  font-weight: bold;
  color: var(--primary);
}

/* ✅ PRODUCT CARD */
/* ✅ PRODUCT CARD IMPROVED */
.product-card {
  margin-top: 25px;
  padding: 11px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e6e6e6;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.product-title {
  text-align: center;
  color: var(--primary);
  font-size: 20px;
  margin-bottom: 18px;
}

/* ✅ GRID ITEMS */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.info-item {
  background: #f8f9fc;
  padding: 12px;
  border-radius: 14px;
  border-left: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
}

.info-item span {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.info-item b {
  font-size: 15px;
  color: #111;
}

/* ✅ SECTION TITLE */
.section-title {
  margin: 16px 0 10px;
  font-size: 16px;
  color: var(--dark);
}

/* ✅ DIVIDER */
.divider {
  height: 1px;
  background: #ddd;
  margin: 12px 0;
}

/* ✅ PRICE BOX */
.price-box {
  margin-top: 20px;
  text-align: center;
  padding: 16px;
  border-radius: 16px;
  background: var(--primary);
  color: white;
}

.price-box span {
  font-size: 14px;
  opacity: 0.85;
}

.price-box h2 {
  margin: 8px 0 0;
  font-size: 26px;
}

/* ✅ MOBILE FRIENDLY */
@media (max-width: 600px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-item {
    padding: 10px;
  }

  .price-box h2 {
    font-size: 22px;
  }
}


/* ✅ ERROR BOX */
.error-box {
  margin-top: 18px;
  padding: 12px;
  border-radius: 14px;
  font-weight: bold;
  background: #ffe5e5;
  color: darkred;

  visibility: hidden;
  opacity: 0;
  transition: 0.3s ease;
}

.error-box.show {
  visibility: visible;
  opacity: 1;
}

/* ✅ MOBILE RESPONSIVE */
@media (max-width: 600px) {
  .brand-logo {
    width: 200px;
  }

  h1 {
    font-size: 24px;
  }

  .scanner-frame {
    height: 400px;
  }

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

  button {
    font-size: 15px;
  }
}

/* ✅ Combined Input + Scan Button (Single Box UI) */
.search-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 18px auto;

  border: 2px solid var(--primary);
  border-radius: 18px;
  /* overflow: hidden; */

  background: white;
  box-shadow: 0 4px 14px rgba(33, 59, 98, 0.15);
}

/* ✅ Input Inside Wrapper */
.search-wrapper input {
  flex: 1;
  border: none;
  outline: none;

  padding: 15px;
  font-size: 14px;
  background: transparent;
}

/* ✅ Button Inside Wrapper */
.scan-inside-btn {
  width: 70px;
  height: 60px;

  border: none;
  cursor: pointer;
  background: var(--primary);

  display: flex;
  justify-content: center;
  align-items: center;

  transition: 0.25s;
}

/* ✅ Hover */
.scan-inside-btn:hover {
  background: var(--dark);
}

/* ✅ Icon White */
.scan-inside-btn img {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
}

/* ✅ Mobile Responsive */
@media (max-width: 600px) {
  .scan-inside-btn {
    width: 60px;
    height: 56px;
  }

  .search-wrapper input {
    font-size: 13px;
    padding: 14px;
  }
}




/* ✅ TOP HIGHLIGHT AREA (STYLE + MRP) */
.highlight-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.highlight-block {
  flex: 1;
  padding: 14px;
  border-radius: 16px;
  background: #ffead7;
  text-align: center;
  /* border-left: 5px solid var(--primary); */
}

.highlight-block span {
  font-size: 12px;
  color: #555;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.highlight-block h2 {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: bold;
  color: var(--dark);
}

/* ✅ MRP SPECIAL HIGHLIGHT */
.price-highlight {
  background: var(--primary);
  color: white;
  border-left: none;
}

.price-highlight h2 {
  color: white;
}

.price-highlight span {
  color: rgba(255, 255, 255, 0.8);
}

/* ✅ CERTIFICATE ROW (IGI + HUID) */
.cert-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background: #fff8dc;
  padding: 12px;
  border-radius: 14px;
  font-size: 14px;
  margin-bottom: 14px;
  border: 1px solid #f1d98b;
}

.cert-row div {
  flex: 1;
  text-align: center;
  font-weight: bold;
  color: var(--dark);
}

/* ✅ DETAILS GRID */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ✅ METAL + DIAMOND SIDE BY SIDE */
.two-column {
  display: flex;
  gap: 12px;
}

.section-box {
  flex: 1;
  background: #f8f9fc;
  padding: 14px;
  border-radius: 14px;
  /* border: 1px solid #eee; */
  border: 2px solid #eec1c1;
}

.section-box h3 {
  margin-top: 0;
  font-size: 16px;
  color: var(--primary);
}

.section-box p {
  margin: 6px 0;
  font-size: 14px;
  color: #222;
}

/* ✅ RESPONSIVE FIX (MOBILE STACK) */
@media (max-width: 600px) {

  .highlight-header {
    flex-direction: column;
  }

  .cert-row {
    flex-direction: column;
    text-align: left;
  }

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

  .two-column {
    flex-direction: column;
  }
}

/* ✅ Premium Box Titles */
.box-title {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 12px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ✅ Mini Grid Inside Metal/Diamond */
.mini-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* ✅ Each Mini Item */
.mini-item {
  background: white;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(33, 59, 98, 0.12);
}

.mini-item span {
  display: block;
  font-size: 12px;
  color: #666;
}

.mini-item b {
  font-size: 14px;
  color: var(--dark);
}

/* ✅ Metal Box Special Color */
.metal-box {
  background: #fdf8ee;
  border: 1px solid rgba(255, 193, 7, 0.35);
}

/* ✅ Diamond Box Special Color */
.diamond-box {
  background: #f3f8ff;
  border: 1px solid rgba(33, 59, 98, 0.25);
}

.sku-text {
  font-size: 12px !important;
  font-weight: 600;
  color: #333;
  word-break: break-word;
}



/* ✅ MOBILE PREMIUM VIEW (Keep Desktop Layout) */
@media (max-width: 600px) {

  body {
    padding: 15px 0;
  }

  .container {
    padding: 18px;
    border-radius: 22px;
  }

  /* ✅ Search Input Smaller */
  .search-wrapper input {
    font-size: 13px;
    padding: 13px;
  }

  .scan-inside-btn {
    width: 55px;
    height: 52px;
  }

  /* ✅ Highlight Header Still Side by Side */
  .highlight-header {
    flex-direction: row;
    gap: 8px;
  }

  .highlight-block {
    padding: 10px;
    border-radius: 14px;
  }

  .highlight-block h2 {
    font-size: 16px;
  }

  /* ✅ Certificate Row Compact */
  .cert-row {
    flex-direction: row;
    gap: 6px;
    padding: 10px;
    font-size: 13px;
  }

  /* ✅ Details Grid Still 2 Column */
  .details-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 12px;
  }

  .info-item {
    padding: 6px;
    border-radius: 12px;
  }

  .info-item span {
    font-size: 11px;
  }

  .info-item b {
    font-size: 13px;
  }

  /* ✅ Metal & Diamond Still Side by Side */
  .two-column {
    flex-direction: row;
    gap: 8px;
  }

  .section-box {
    padding: 10px;
    border-radius: 14px;
  }

  .section-box h3 {
    font-size: 14px;
  }

  .section-box p {
    font-size: 12px;
  }

  /* ✅ Price Box Smaller */
  .price-box {
    padding: 14px;
    border-radius: 14px;
  }

  .price-box h2 {
    font-size: 20px;
  }
   .product-card {
    box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  }

   .mini-item {
    padding: 8px;
  }

  .mini-item b {
    font-size: 13px;
  }
}
