/* ============================================================
   🌐 BASE STYLES
   ============================================================ */

body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  color: #3b3b3b;
}

.container {
  width:100%;
max-width: 100%;
  margin: 0 auto; /* centers the container */
  padding: 20px 20px 0 20px; /* top, right, bottom, left */
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  box-sizing: border-box;
overflow-x: hidden;
}

@media (max-width: 767px) {
  .container,
  .review-section {
    padding-left: 5px;
    padding-right: 5px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}


h1, h2, h3 {
  color: maroon;
  font-weight: bold;
}

h1 { font-size: 2em; margin-bottom: 0.5em; }
h2 { font-size: 1.5em; margin: 1em 0 0.5em; }
h3 { font-size: 1.2em; margin: 1.5em 0 0.5em; }


.headerlogo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  width: 100%;
  box-sizing: border-box;
}

.header-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.header-icons img {
  width: 25px;
  height: 25px;
  transition: transform 0.2s;
}

.header-icons a:hover img {
  transform: scale(1.1);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3em;
  margin-bottom: 1em;
}

.section-header span {
  font-weight: 700;
  font-size: 1.5em;
  color: #4a90e2;
}

.section-header a {
  font-weight: 700;
  font-size: 1.1em;
  color: #4a90e2;
  text-decoration: none;
}

.seller-summary-box {
  background-color: #f2f0ef;
  padding: 15px;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
  box-sizing: border-box;
  overflow-x: hidden;
}

@media (max-width: 767px) {
  .seller-summary-box {
    padding: 10px;
    max-width: 100%;
    width: 100%;
  }
}



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

.link {
  text-align: center;
}

.link a {
  color: #800020;
  text-decoration: none;
}

.link a:hover {
  text-decoration: underline;
}

.link .link1
{
  color: #800020;
  text-decoration: none;
  text-align: right;
}

.link .link2
{
  color: #800020;
  text-decoration: none;
  text-align: left;
}

.tools-link {
  font-size: 0.5rem;       /* Very small but readable */
  color: maroon;
  text-decoration: none;
  margin-right: 10px;
  font-weight: normal;
}

.tools-link:hover {
  text-decoration: underline;
}


@media print {
  .noprint {
    display: none !important;
  }
}
@media print {
  .no-print-row {
    display: none !important;
  }
}
@media print {
  .no-print-col {
    display: none !important;
  }
}
@media print {
  input {
    display: none !important;
  }
}



/* ============================================================
FOOTERS
============================================================ */

.site-footer {
  text-align: center;
  padding: 2px 2px 2px 2px;
  font-size: 10px;
  color: #666;
  /* background-color: #f9f9f9; */
}

.site-footer a {
  color: #800020;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}


/* ============================================================
📦 LISTING GRID VIEW
============================================================ */

/* for clickable listing grid*/

.listing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* centers the boxes horizontally */
  gap: 20px;
  margin-top: 10px;
  box-sizing: border-box;
}

.listinggrid-box {
  background-color: #f2f0ef;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  width: calc(20% - 20px);
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 11px;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.listinggrid-box:hover {
  transform: translateY(-5px);
  box-shadow: 4px 4px 12px rgba(0,0,0,0.2);
}

.listinggrid-box h4 {
  margin: 0 0 10px;
  color: #333;
  font-size: 12px;
  word-wrap: break-word;
}


.listinggrid-box p {
  margin: 0 0 10px;
  color: #666;
  word-wrap: break-word;
}

@media screen and (max-width: 767px) {
  .listing-grid {
    gap: 10px;
  }
  
  .listinggrid-box {
    width: 100%; /* Full width on mobile */
    padding: 12px;
    font-size: 12px;
  }
  
  .listinggrid-box h4 {
    font-size: 13px;
  }
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  width: 100%;
    row-gap: 2px;   /* vertical spacing */
  column-gap: 20px; /* horizontal spacing */
  margin-top: 10px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 400;
  font-size:0.65rem;
}

.form-grid > div {
  margin-bottom: 2px;
    margin-left: 10px;
  margin-right: 10px;
box-sizing: border-box;
}





/* ============================================================
📦 ADMIN DASH NAVIGATION
============================================================ */

.admin-nav {
  font-family: Arial, sans-serif;
  font-size: 12px;
  margin: 10px 0;
  text-align: center;
}

.admin-nav a {
  color: #800020;
  text-decoration: none;
  margin: 0 6px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.admin-nav a:hover {
  background-color: #f2f0ef;
  color: #333;
}

/* Small help nav (used on help.php) */
.help-mini-nav {
  font-size: 0.85rem;
  color: #333;
  margin: 6px 0;
  text-align: center;
}
.help-mini-nav a {
  color: #c66677;
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 4px;
}
.help-mini-nav a:hover {
  background: #efefef;
  color: #000;
  text-decoration: none;
}


/* ============================================================
Loader spinner
============================================================ */

.loader {
  display: none;
  margin-top: 10px;
  text-align: center;
}

.loader .spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  margin: auto;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
