/* ================================
   GLOBAL
   ================================ */

html {
    overflow-y:scroll;
}

body {
  font-family: Arial, sans-serif;
  /*margin: 20px;*/
  background: #f7f7f7;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.novisit {
  color: #0077cc ;       /* or set your own color */
  text-decoration: none;
  font-weight:bold;
}

.novisit:visited {
  color: #0077cc;       /* same color as regular state */
  font-weight:bold;
}

.novisit:hover {
  color: #005fa3;
  text-decoration:underline;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

.itemwrap {
  margin-top:20px;
  padding:10px;
  border: 1px solid #D3D3D3;
  border-radius:8px;
  background: #ffffff;
}

/* ================================
   FORM LAYOUT
   ================================ */

.search-form {
  background: white;
  padding: 15px;
  /*border-radius: 58px;*/
border-radius: 0px 0px 8px 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Desktop two-row layout */
.row-1 input,
.row-1 select {
  flex: 1; /* makes 4 items evenly spaced */
  min-width: 150px;
}

.row-2 input {
  flex: 1;
  min-width: 150px;
}

.row-2 button {
  flex: 1;
  min-width: 150px;
}

/* Inputs and selects */
.search-form input,
.search-form select {
  padding: 10px;
  border: 1px solid #ccc;
  font-size: 15px;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}

.search-form button {
  padding: 12px;
  font-size: 16px;
  background: #0070e0;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.search-form button:hover {
  background: #005bbd;
}

/*additional images START - additional css for additional images */
/* Back button */
.back-btn {
  background: #0070e0;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
}

.back-btn:hover {
  background: #005bbd;
}

/* Main image */
.main-image img {
  width: 100%;
  max-width: 350px;
  display: block;
  margin: 10px auto 20px auto;
  border-radius: 8px;
}

/* Gallery thumbnails */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}

.gallery .thumb {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ccc;
  transition: transform 0.2s ease;
}

.gallery .thumb:hover {
  transform: scale(1.08);
  border-color: #0070e0;
}

/*additiona images END */

/* ADD IMAGE START */
/* Back button */
.back-btn {
  background: #0070e0;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
}
.back-btn:hover { background: #005bbd; }

/* Main image */
.main-image img {
  width: 100%;
  max-width: 420px;
  display: block;
  margin: 15px auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Thumbnails */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.gallery .thumb {
  width: 85px;
  height: 85px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.gallery .thumb:hover {
  transform: scale(1.07);
  border-color: #0070e0;
}

/* ADD IMAGE END */

/* ADD LIGHTBOX START */
/* ============================
   LIGHTBOX (FULLSCREEN VIEWER)
   ============================ */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9999;
}

.lightbox.show {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 92%;
  max-height: 92%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  animation: zoomIn 0.25s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* Make thumbnails clickable */
.gallery .thumb,
.main-image img {
  cursor: pointer;
}

/* ADD LIGHTBOX END */

/* ADD LIGHTBOX NEXT/PREV START */

/* Lightbox full screen container */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9999;
}

.lightbox.show {
  opacity: 1;
  pointer-events: auto;
}

/* Lightbox image */
#lightbox-img {
  max-width: 92%;
  max-height: 92%;
  border-radius: 8px;
  z-index: 10000;
}

/* Left/Right arrows */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 62px;
  color: white;
  cursor: pointer;
  padding: 10px 18px;
  user-select: none;
  z-index: 10001;
  transition: 0.2s ease;
}

.arrow:hover {
  color: #00aaff;
  transform: translateY(-50%) scale(1.15);
}

.arrow.left {
  left: 20px;
}

.arrow.right {
  right: 20px;
}


/* ADD LIGHTBOX NEXT/PREV END */

/* JS RECOMMENDATIONS FOR ITEM START */
#recommendations {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(180px,1fr));
  gap: 16px;
  margin-top: 20px;
}

.rec-item {
  border: 1px solid #e0e0e0;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  background: #fff;
  transition: box-shadow .2s;
}

.rec-item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.rec-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.rec-item h3 {
  font-size: 14px;
  margin: 10px 0 4px;
  color: #333;
}

.rec-item .price {
  font-weight: bold;
  color: #0073b7;
  font-size: 15px;
}
/* JS RECOMMENDATIONS FOR ITEM END */

/* FOR COOKIES POLICY START */
    .itemwrap h2 {
      margin-top: 2rem;
      font-size: 1.4rem;
      border-bottom: 1px solid #eee;
      padding-bottom: 0.4rem;
    }
    .itemwrap h3 {
      margin-top: 1.4rem;
      font-size: 1.15rem;
    }
    .itemwrap p {
      margin: 0.5rem 0 0.9rem;
    }
    .itemwrap ul {
      margin: 0.4rem 0 1rem 1.5rem;
    }
/* FOR COOKIES POLICY END */

/* SHARE BUTTONS START */
.share-buttons a {
  display: inline-block;
  margin: 4px;
  font-size: 24px;
  text-decoration: none;
  cursor: pointer;        /* 👈 HAND CURSOR */
}

.share-btn:hover {
  background: #ddd;        /* Optional hover effect */
}
/* SHARE BUTTONS END */

pre {
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* FRONT PAGE START */

.deals-section {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 16px;
  font-family: Arial, sans-serif;
}

.deals-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.deals-header h2 {
  font-size: 1.4rem;
  margin: 0;
}

.deals-view-all {
  font-size: 0.9rem;
  color: #1a0dab;
  text-decoration: none;
}

.deals-view-all:hover {
  text-decoration: underline;
}

/* Horizontal strip */
.deals-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Optional: hide scrollbar (WebKit) */
.deals-row::-webkit-scrollbar {
  height: 6px;
}
.deals-row::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

/* Cards */
.deal-card {
  flex: 0 0 220px;        /* width of each tile */
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: start;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.deal-card a {
  color: #222222;
  text-decoration: none;
  display: block;
}

.deal-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.deal-card a:visited {
  color: #222222;
  text-decoration: none;
  display: block;
}

.deal-image-wrap {
  background: #ffffff;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deal-image-wrap img {
  max-width: 100%;
  height: auto;
  display: block;
}

.deal-body {
  padding: 8px 10px 10px;
}

.deal-title {
  font-size: 0.95rem;
  margin: 0 0 4px;
  min-height: 2.4em; /* keeps rows even for short titles */
}

.deal-price-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.deal-price {
  font-weight: bold;
  font-size: 1.05rem;
}

.deal-old-price {
  font-size: 0.85rem;
  color: #777;
  text-decoration: line-through;
}

.deal-meta {
  font-size: 0.8rem;
  color: #555;
}



.cats {
background:#ffffff;width:100%;border-radius:8px;padding:10px;text-align:justify;
}
.cats  a {
color: #0b3d91;
text-decoration: none;
  padding:5px;
  line-height: 1.6;
}
.cats a:visited {
color: #0b3d91;
text-decoration: none;
}
.cats a:hover {
text-decoration: underline;
}
/* FRONT PAGE END */

/* aff disclosue on items start */
.affiliate-disclosure {
  font-size: 0.85rem;
  color: #555;
  margin: 10px 0;
}
/* aff disclosue on items end */

/* FOOTER START */
.footer{
text-align:center;
background:white;
border-radius:8px;
padding:10px;
margin-top:30px;
}

.footer a,a:visited {
  color: #0000EE;
  text-decoration:none;
}

.footer a:hover {
  color: #0000EE;
  text-decoration:underline;
}
/* FOOTER END */


/* ================================
   MOBILE STACK (SINGLE COLUMN)
   ================================ */

@media (max-width: 600px) {
  .row {
    flex-direction: column;
  }

  .row-2 button {
    width: 100%;
  }

  .item {
    flex-direction: column;
    text-align: center;
  }

  .item img {
    width: 150px;
    height: 150px;
  }
}

/* ================================
   RESULTS
   ================================ */

.item {
  background: white;
  padding: 12px;
  display: flex;
  gap: 15px;
  border-radius: 8px;
  margin-top: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.item img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
}

.item a {
  color: #0070e0;
  font-weight: bold;
  text-decoration: none;
}

.item a:hover {
  text-decoration: underline;
}

.item b {
  margin-top: 8px;
  font-size: 17px;
}

/* Pagination */
.pagination {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.pagination a {
  padding: 8px 12px;
  background: white;
  border-radius: 6px;
  border: 1px solid #ccc;
  color: #0070e0;
  text-decoration: none;
}

.pagination a:hover {
  background: #f0f0f0;
}
