/* =========================================================
   1. ROOT VARIABLES
========================================================= */
:root {
  --bg-soft: #f8f8f8;
  --border-soft: #e9e9e9;
  --text-main: #1f1f1f;
  --text-muted: #666;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 14px 34px rgba(0, 0, 0, 0.10);
}

/* =========================================================
   2. GLOBAL STYLES
========================================================= */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background:
    radial-gradient(circle at top left, #fafafa 0%, #ffffff 35%),
    linear-gradient(to bottom, #ffffff, #fcfcfc);
  color: var(--text-main);
}

.wrap {
  max-width: 1120px;
  margin: auto;
  padding: 18px;
}

section {
  margin-bottom: 16px;
}

h1 {
  font-size: 30px;
  margin: 0 0 10px;
  line-height: 1.2;
}

h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

p {
  line-height: 1.6;
  color: #333;
}

ul,
ol {
  padding-left: 20px;
  line-height: 1.7;
}

/* =========================================================
   3. FORM ELEMENTS
========================================================= */
input[type="search"],
input[type="text"],
textarea {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #dadada;
  border-radius: 8px;
  box-sizing: border-box;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="search"]:focus,
input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: #bcbcbc;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
}

.inline-field {
  margin-top: 10px;
}

.required-qty-wrap {
  margin-top: 8px;
}

.required-qty {
  width: 120px;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.req-star {
  color: #d93025;
}

.input-error {
  border-color: #d93025 !important;
}

/* =========================================================
   4. STATUS / RESULTS / CARDS
========================================================= */
.status {
  font-size: 14px;
  margin-top: 8px;
  color: #666;
  min-height: 1.2em;
}

.status.error {
  color: #d93025 !important;
}

.results {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.card {
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: #cfcfcf;
}

.card input[type="checkbox"] {
  margin-top: 4px;
}

.card-body {
  flex: 1;
}

.title {
  font-weight: bold;
  font-size: 16px;
  margin: 0 0 4px;
}

.meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.meta > div {
  margin: 2px 0;
}

.price-stock {
  font-size: 14px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

hr.sep {
  margin: 18px 0;
  border: none;
  border-top: 1px dashed #ddd;
}

/* =========================================================
   5. BUTTONS
========================================================= */
button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  border: 1px solid #ccc;
  background: #f6f6f6;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

button svg {
  width: 16px;
  height: 16px;
  display: inline-block;
}

#gmail-btn,
#wa-btn,
#gmail-btn-bottom,
#wa-btn-bottom {
  min-width: 190px;
  justify-content: center;
  padding: 12px 16px;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease,
    background-color 0.2s ease,
    opacity 0.2s ease;
  animation: softFloat 3s ease-in-out infinite;
  color: #fff;
  border: none;
}

#gmail-btn,
#gmail-btn-bottom {
  background-color: #d93025;
  animation-delay: 0.1s;
}

#gmail-btn svg path,
#gmail-btn-bottom svg path {
  fill: #fff;
}

#gmail-btn:hover:not(:disabled),
#gmail-btn-bottom:hover:not(:disabled) {
  background-color: #b1271b;
}

#wa-btn,
#wa-btn-bottom {
  background-color: #25d366;
  animation-delay: 0.5s;
}

#wa-btn svg path,
#wa-btn-bottom svg path {
  fill: #fff;
}

#wa-btn:hover:not(:disabled),
#wa-btn-bottom:hover:not(:disabled) {
  background-color: #1da851;
}

#gmail-btn.rotate-hover:hover:not(:disabled),
#wa-btn.rotate-hover:hover:not(:disabled),
#gmail-btn-bottom.rotate-hover:hover:not(:disabled),
#wa-btn-bottom.rotate-hover:hover:not(:disabled) {
  transform: translateY(-2px) rotate(-1deg) scale(1.01);
}

.bottom-controls {
  display: none;
  margin-top: 16px;
  gap: 10px;
  flex-wrap: wrap;
}

.bottom-controls-bottom {
  display: none;
  margin-top: 18px;
  justify-content: center;
}

.bottom-controls-bottom button {
  min-width: 220px;
}

.helper-text {
  font-size: 14px;
  color: #666;
  margin-top: 12px;
}

/* =========================================================
   6. ANIMATIONS
========================================================= */
@keyframes softFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes logoScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================
   7. HERO SECTION
========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--border-soft);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 245, 245, 0.96)),
    linear-gradient(135deg, #fafafa, #f1f1f1);
  padding: 28px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-soft);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(0, 0, 0, 0.04), transparent 22%),
    radial-gradient(circle at 15% 90%, rgba(0, 0, 0, 0.03), transparent 20%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.logo-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #111, #333);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.logo-image-wrap {
  width: auto;
  height: auto;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

.main-logo {
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.hero h1 {
  line-height: 1.08;
  margin: 0 0 12px;
}

.hero-subline {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0;
  line-height: 1.08;
}

.hero-visual {
  position: relative;
  min-height: 290px;
}

.hero-card {
  position: absolute;
  border-radius: 18px;
  border: 1px solid #ebebeb;
  background: #fff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.hero-card-main {
  right: 0;
  top: 18px;
  width: 72%;
  height: 230px;
}

.hero-card-small.top {
  left: 0;
  top: 0;
  width: 42%;
  height: 120px;
}

.hero-card-small.bottom {
  left: 18px;
  bottom: 0;
  width: 48%;
  height: 130px;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================================
   8. SEARCH AREA
========================================================= */
.search-shell {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #ececec;
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-soft);
}

.search-shell h2 {
  font-size: 26px;
  margin-bottom: 14px;
}

/* =========================================================
   9. INFO BLOCKS
========================================================= */
details.info-block {
  border: 1px solid #e3e3e3;
  border-radius: 16px;
  margin-bottom: 10px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

details.info-block summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 700;
  position: relative;
  font-size: 17px;
  background: linear-gradient(to right, #fff, #fbfbfb);
}

details.info-block summary::-webkit-details-marker {
  display: none;
}

details.info-block summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: #777;
}

details.info-block[open] summary::after {
  content: "−";
}

.info-content {
  padding: 0 18px 18px;
}

/* =========================================================
   10. WAREHOUSE SECTION
========================================================= */
.warehouse-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 14px;
}

.warehouse-card {
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.warehouse-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.warehouse-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.warehouse-card p {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.warehouse-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
}

.warehouse-card .image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.warehouse-card .image-row img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
}

/* =========================================================
   11. PUBLISHERS SECTION
========================================================= */
.publishers {
  background: #fafafa;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid #ececec;
  box-shadow: var(--shadow-soft);
}

.publisher-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 14px;
}

.publisher-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  animation: logoScroll 40s linear infinite;
  will-change: transform;
}

.publisher-slider:hover .publisher-track {
  animation-play-state: paused;
}

.publisher-logo-card {
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 14px;
  min-width: 190px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  flex: 0 0 auto;
  text-align: center;
  gap: 6px;
}

.publisher-logo-card img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.publisher-logo-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
  color: #222;
}

.publisher-slider::before,
.publisher-slider::after {
  content: "";
  position: absolute;
  top: 0;
  width: 60px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.publisher-slider::before {
  left: 0;
  background: linear-gradient(to right, #fafafa 0%, rgba(250, 250, 250, 0) 100%);
}

.publisher-slider::after {
  right: 0;
  background: linear-gradient(to left, #fafafa 0%, rgba(250, 250, 250, 0) 100%);
}

/* =========================================================
   12. FOOTER SECTION
========================================================= */
/* =========================
   FOOTER SECTION
========================= */

footer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #ddd;
}

.footer-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 24px;
  align-items: start;
}

.footer-left,
.footer-right {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.footer-left h3,
.footer-right h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

/* MAIN FIX: TEXT LEFT + LOGO RIGHT */
.footer-contact-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.footer-contact-block {
  flex: 1;
}

.footer-contact-block p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

.footer-contact-block a,
.footer-right a {
  color: #111;
  text-decoration: none;
}

.footer-contact-block a:hover,
.footer-right a:hover {
  text-decoration: underline;
}

/* LOGO RIGHT SIDE */
.footer-brand-side {
  flex: 0 0 110px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 18px;
}

.footer-main-logo {
  width: 70px;
  height: auto;
  object-fit: contain;
}

/* SOCIALS */
.socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.social-icon-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
}

.social-icon-chip svg {
  width: 18px;
  height: 18px;
}

/* COPYRIGHT */
.footer-copy {
  margin-top: 18px;
  font-size: 13px;
  color: #777;
}

/* MOBILE */
@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* KEEP SAME ROW */
  .footer-contact-row {
    flex-direction: row;   /* IMPORTANT */
    align-items: flex-start;
    gap: 10px;
  }

  /* TEXT TAKES MORE SPACE */
  .footer-contact-block {
    flex: 1;
  }

  /* SMALL LOGO */
  .footer-brand-side {
    flex: 0 0 60px;
    padding-top: 6px;
  }

  .footer-main-logo {
    width: 50px;
    height: auto!important;
  }
}

/* =========================================================
   13. SOCIAL MEDIA
========================================================= */
.socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.social-left {
  justify-content: flex-start;
}

.social-icon-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.social-icon-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.social-icon-chip svg {
  width: 18px;
  height: 18px;
  display: block;
}

.social-icon-chip[aria-label="LinkedIn"] {
  color: #0077b5;
}

.social-icon-chip[aria-label="Instagram"] {
  color: #e4405f;
}

/* =========================================================
   14. SCROLL TO TOP BUTTON
========================================================= */
#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

#scrollTopBtn:hover {
  background: #333;
  transform: translateY(-2px);
}

/* =========================================================
   15. RESPONSIVE - TABLET
========================================================= */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 250px;
    margin-top: 8px;
  }

  .hero h1 {
    font-size: 30px;
  }
}

/* =========================================================
   16. RESPONSIVE - MOBILE
========================================================= */
@media (max-width: 640px) {
  .wrap {
    padding: 12px;
  }

  .hero {
    padding: 18px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero-subline {
    font-size: 15px;
  }

  .hero-card-main {
    width: 70%;
    height: 180px;
  }

  .hero-card-small.top {
    width: 42%;
    height: 96px;
  }

  .hero-card-small.bottom {
    width: 46%;
    height: 104px;
  }

  .footer-grid,
  .warehouse-grid {
    grid-template-columns: 1fr;
  }

  .bottom-controls,
  .bottom-controls-bottom {
    flex-direction: column;
  }

  .bottom-controls button,
  .bottom-controls-bottom button,
  #gmail-btn,
  #wa-btn,
  #gmail-btn-bottom,
  #wa-btn-bottom {
    width: 100%;
    min-width: 0;
  }

  .main-logo {
    height: auto;
  }

  .footer-main-logo {
    height: 44px;
  }

  .footer-brand-text {
    font-size: 16px;
  }

  .warehouse-card .image-row {
    grid-template-columns: 1fr;
  }

  .publisher-logo-card {
    min-width: 150px;
    height: 105px;
    padding: 10px 12px;
  }

  .publisher-logo-card img {
    max-height: 40px;
  }

  .publisher-logo-card p {
    font-size: 12px;
  }

  .publisher-track {
    gap: 14px;
    animation-duration: 30s;
  }

  .publisher-slider::before,
  .publisher-slider::after {
    width: 35px;
  }
}