
/* =========================================
   BANYUMAS FLORIST
   NAVY & GOLD THEME
========================================= */

:root {
  --navy: #03082f;
  --navy-light: #101943;
  --gold: #f8a800;
  --gold-light: #ffd36b;
  --gold-soft: #f8e8bd;
  --white: #ffffff;
  --cream: #fffdf8;
  --text: #252943;
  --muted: #777b8e;
  --border: #e9dfc8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: clip;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  font-family: 'Lato', Arial, sans-serif;
  background: var(--cream);
  color: var(--text);
}

/* =========================================
   HEADER
========================================= */

.topbar {
  width: 100%;
  min-height: 110px;
  padding: 12px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: var(--navy);
  border-bottom: 2px solid var(--gold);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 220px;
  height: 105px;
  object-fit: cover;
  object-position: center 50%;
}

.header-contact {
  flex-shrink: 0;
  padding: 12px 21px;
  border: 1px solid var(--gold);
  border-radius: 5px;
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: .2s ease;
}

.header-contact:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

/* =========================================
   KATALOG
========================================= */

.catalog {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 5% 65px;
}

/* =========================================
   KATEGORI UTAMA
========================================= */

.category-tabs {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 22px;
}

.category-btn {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--white);
  color: var(--navy);
  font-family: 'Lato', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: .2s ease;
}

.category-btn:hover {
  border-color: var(--gold);
  color: #a66e00;
}

.category-btn.active {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--gold);
  box-shadow: 0 3px 10px rgba(3, 8, 47, .15);
}

/* =========================================
   SUBKATEGORI
========================================= */

.subcategory-tabs {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 30px;
}

.subcategory-tabs:empty {
  display: none;
}

.sub-btn {
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  color: var(--navy);
  font-family: 'Lato', Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s ease;
}

.sub-btn:hover {
  border-color: var(--gold);
  color: #a66e00;
}

.sub-btn.active {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--navy);
}

/* =========================================
   JUDUL GALERI
========================================= */

.gallery-section {
  width: 100%;
  min-width: 0;
}

.gallery-heading {
  width: 100%;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  margin: 28px 0 22px;
}

.gallery-heading h1 {
  margin-top: 6px;
  color: var(--navy);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 34px;
  font-weight: 700;
}

.gallery-heading p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

/* =========================================
   GALERI
========================================= */

.gallery {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 22px;
}

.gallery.portrait {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery.landscape {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* =========================================
   KARTU PRODUK
========================================= */

.item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--white);
  box-shadow: 0 4px 15px rgba(3, 8, 47, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(3, 8, 47, .12);
}

.item-image-link {
  display: block;
  width: 100%;
  overflow: hidden;
  background: #f2eee5;
}

.item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform .3s ease;
}

.item:hover img {
  transform: scale(1.03);
}

.gallery.portrait .item img {
  aspect-ratio: 3 / 4;
}

.gallery.landscape .item img {
  aspect-ratio: 16 / 9;
}

.item-info {
  padding: 14px;
}

.item-info h3 {
  margin-bottom: 12px;
  color: var(--navy);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.item-button {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  transition: .2s ease;
}

.item-button:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--gold);
}

/* =========================================
   KATALOG KOSONG
========================================= */

.empty-catalog {
  grid-column: 1 / -1;
  padding: 45px 20px;
  border: 1px dashed var(--gold);
  border-radius: 7px;
  background: var(--white);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

/* =========================================
   FOOTER
========================================= */

.footer {
  width: 100%;
  padding: 35px 20px;
  background: var(--navy);
  border-top: 2px solid var(--gold);
  color: var(--white);
  text-align: center;
}

.footer-logo {
  display: block;
  width: 180px;
  height: 90px;
  margin: 0 auto 10px;
  object-fit: cover;
  object-position: center 50%;
}

.footer p {
  color: #e6dfc9;
  font-size: 13px;
}

.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 22px 0;
}

.social-links a {
  color: var(--gold);
  font-size: 12px;
  text-decoration: none;
}

.social-links a:hover {
  color: var(--gold-light);
}

.footer small {
  color: #b9bed2;
  font-size: 10px;
}

/* =========================================
   TABLET
========================================= */

@media (min-width: 601px) and (max-width: 900px) {
  .gallery.portrait {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalog {
    padding-left: 4%;
    padding-right: 4%;
  }
}

/* =========================================
   HP
========================================= */

@media (max-width: 600px) {

  .topbar {
    min-height: 85px;
    padding: 7px 12px;
    gap: 8px;
  }

  .brand-logo {
    width: 165px;
    height: 78px;
  }

  .header-contact {
    padding: 10px 11px;
    font-size: 10px;
  }

  .catalog {
    width: 100%;
    padding: 16px 12px 45px;
  }

  .category-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 12px;
    margin-bottom: 20px;
  }

  .category-btn {
    min-height: 44px;
    padding: 5px 2px;
    font-size: 10px;
    line-height: 1.2;
    border-radius: 5px;
  }

  .subcategory-tabs {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 22px;
  }

  .sub-btn {
    padding: 8px 10px;
    font-size: 11px;
  }

  .gallery-heading {
    display: block;
    margin-top: 22px;
  }

  .gallery-heading h1 {
    font-size: 29px;
  }

  .gallery-heading p {
    margin-top: 7px;
  }

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

  .gallery.landscape {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }

  .item-info {
    padding: 10px;
  }

  .item-info h3 {
    font-size: 17px;
  }

  .item-button {
    padding: 8px 12px;
    font-size: 10px;
  }

  .footer {
    padding: 28px 12px;
  }

  .footer-logo {
    width: 145px;
    height: 72px;
  }

  .social-links {
    gap: 13px;
  }
}

/* =========================================
   HP KECIL
========================================= */

@media (max-width: 360px) {

  .brand-logo {
    width: 140px;
    height: 68px;
  }

  .header-contact {
    padding: 8px;
    font-size: 9px;
  }

  .category-tabs {
    gap: 4px;
  }

  .category-btn {
    font-size: 9px;
  }
}
header img[src*="logobanyumas.jpg"] {
    width: 165px;
    height: 78px;
    max-width: none;
    max-height: none;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    transform: translateX(-20px);
}