/* Optical store styling */
:root {
  --glass: rgba(255,255,255,0.6);
}
:root {
  --bg: #f9f8f5;
  --surface: #ffffff;
  --primary: #0f4c81;
  --primary-soft: #336796;
  --accent: #f7b500;
  --text: #1e293b;
  --muted: #57606a;
  --border: #e2e8f0;
}

* {
  box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&family=Poppins:wght@500;700&display=swap');

html,
body {
  min-width: 0;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding-top: 88px;
  font-family: Inter, Poppins, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  color: var(--text);
  background: linear-gradient(180deg, #f9f8f5 0%, #eef3f9 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border-radius: 6px;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(2,6,23,0.15);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Focus styles for accessibility */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(15,76,129,0.18);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 16px;
}

.container {
  width: min(1140px, 100% - 2rem);
  margin: 0 auto;
}

.site-header {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.95) 100%);
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 2px solid rgba(15, 76, 129, 0.08);
  box-shadow: 0 8px 32px rgba(15, 76, 129, 0.12);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-left: 0;
  order: 0;
  transition: transform 200ms ease;
}

.brand:hover {
  transform: scale(1.03);
}


.brand-logo {
  max-height: 72px;
  width: auto;
  display: block;
  transition: filter 200ms ease;
}

.brand:hover .brand-logo {
  filter: drop-shadow(0 2px 8px rgba(15, 76, 129, 0.15));
}

@media (max-width: 900px) {
  .brand-logo { max-height: 62px; }
}

.site-nav {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  font-size: 0.95rem;
  flex-wrap: wrap;
  margin-left: auto;
  margin-right: 0.75rem;
}

.site-nav a {
  color: var(--muted);
  padding: 0.6rem 1.2rem;
  border-radius: 18px;
  transition: all 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  background: transparent;
}

.site-nav a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,76,129,0.08), rgba(15,76,129,0.04));
  border-radius: 18px;
  opacity: 0;
  transition: opacity 200ms ease;
  z-index: -1;
}

.site-nav a:hover {
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15,76,129,0.12);
}

.site-nav a:hover::before {
  opacity: 1;
}

.site-nav a#account-button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  background: linear-gradient(135deg, rgba(15,76,129,0.12), rgba(15,76,129,0.06));
  border-radius: 50%;
  order: 99;
  margin-left: 0.75rem;
  margin-right: 0;
  transition: all 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1.5px solid rgba(15,76,129,0.08);
  flex-shrink: 0;
}

.site-nav a#account-button:hover,
.site-nav a#account-button:focus-visible {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 12px 28px rgba(15,76,129,0.18);
  background: linear-gradient(135deg, rgba(15,76,129,0.18), rgba(15,76,129,0.1));
  border-color: rgba(15,76,129,0.16);
  outline: none;
}

.site-nav a#account-button:focus-visible {
  box-shadow: 0 0 0 4px rgba(15,76,129,0.18);
}

.account-icon {
  display: inline-flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--primary);
  font-size: 1.05rem;
}

.site-nav a.active {
  color: var(--primary);
  background: linear-gradient(135deg, rgba(15,76,129,0.16), rgba(15,76,129,0.08));
  box-shadow: 0 4px 16px rgba(15,76,129,0.14), inset 0 1px 2px rgba(255,255,255,0.5);
  position: relative;
  border-bottom: 2px solid var(--primary);
}

.site-nav a.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(15,76,129,0.18), inset 0 1px 2px rgba(255,255,255,0.5);
}

.site-nav a.active::before {
  opacity: 1 !important;
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(15,76,129,0.1);
}

.hero {
  min-height: 82vh;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  color: white;
  position: relative;
}

/* card image utility for consistent sizing */
.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15,76,129,0.06);
  display: block;
}

.card-image.image-rotated {
  transform: rotate(var(--image-rotation, 90deg));
  object-fit: contain;
  background: #f6f8fa;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,76,129,0.45), rgba(0,0,0,0.32));
  z-index: 1;
}

/* Slideshow background */
.slideshow-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.slideshow-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  animation: slideshow-fade 110s infinite ease-in-out;
  transform-origin: center;
}

.slideshow-image:nth-child(1) { animation-delay: 0s; }
.slideshow-image:nth-child(2) { animation-delay: 10s; }
.slideshow-image:nth-child(3) { animation-delay: 20s; }
.slideshow-image:nth-child(4) { animation-delay: 30s; }
.slideshow-image:nth-child(5) { animation-delay: 40s; }
.slideshow-image:nth-child(6) { animation-delay: 50s; }
.slideshow-image:nth-child(7) { animation-delay: 60s; }
.slideshow-image:nth-child(8) { animation-delay: 70s; }
.slideshow-image:nth-child(9) { animation-delay: 80s; }
.slideshow-image:nth-child(10) { animation-delay: 90s; }
.slideshow-image:nth-child(11) { animation-delay: 100s; }

@keyframes slideshow-fade {
  0% { opacity: 0; transform: scale(0.98); }
  1%, 9% { opacity: 1; transform: scale(1.02); }
  10%, 100% { opacity: 0; transform: scale(1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 3rem 1.25rem;
  max-width: 820px;
  width: min(100%, 820px);
  border-radius: 32px;
  background: rgba(1, 20, 44, 0.32);
  box-shadow: 0 40px 120px rgba(15,76,129,0.24);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.75rem, 5vw, 4.4rem);
  letter-spacing: -0.05em;
  line-height: 1.02;
  text-shadow: 0 22px 45px rgba(0,0,0,0.25);
}

.hero p {
  margin: 1.5rem auto 0;
  max-width: 36rem;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.95);
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.button,
.button-secondary {
  border: none;
  padding: 1rem 2rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.button {
  background: var(--primary);
  color: white;
  box-shadow: 0 20px 40px rgba(15,76,129,0.16);
}

.button:hover,
.button-secondary:hover {
  transform: translateY(-1px);
}

.button-secondary {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(15,76,129,0.18);
}

.hero .button-secondary {
  background: rgba(255,255,255,0.16);
  color: white;
  border: 1px solid rgba(255,255,255,0.32);
}

.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin: 0 auto 2rem;
  max-width: 44rem;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.9rem);
  letter-spacing: -0.04em;
}

.section-title p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.feature-card,
.product-card,
.contact-card,
.testimonial-card {
  background: var(--surface);
  border: 1px solid rgba(15,76,129,0.08);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 24px 64px rgba(15,76,129,0.08);
}

.feature-card,
.product-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-card h3,
.product-card h4 {
  margin-top: 1rem;
  margin-bottom: 0.7rem;
}

.feature-card p,
.product-card p {
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-copy h2 {
  margin-top: 0;
}

.about-copy p {
  color: var(--muted);
}

.service-panel {
  background: #f7fbff;
  padding: 3rem 1rem;
  border-radius: 32px;
  border: 1px solid rgba(15,76,129,0.08);
}

.service-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service-card {
  display: block;
  border-radius: 24px;
  padding: 2rem;
  background: white;
  border: 1px solid rgba(15,76,129,0.08);
  box-shadow: 0 22px 70px rgba(15,76,129,0.08);
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 80px rgba(15,76,129,0.12);
}

.service-card h3 {
  margin-top: 0;
}

.service-card p {
  color: var(--muted);
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
}

.price {
  font-weight: 700;
  color: var(--primary);
}

.add-to-cart {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  align-items: center;
}

.add-to-cart .qty-input {
  width: 80px;
  padding: 0.5rem;
}

.cart-list {
  display: grid;
  gap: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1.5rem;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.cart-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
}

.cart-thumb { width: 100%; height: 120px; object-fit: cover; border-radius: 12px; }

.cart-item-details {
  display: grid;
  gap: 0.5rem;
}

.cart-item-actions {
  display: grid;
  gap: 0.75rem;
  justify-items: end;
}

.cart-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.cart-actions-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
  width: min(100%, 420px);
}

.cart-empty {
  padding: 2rem;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
}
/* floating cart */
.floating-cart {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(2,6,23,0.2);
  cursor: pointer;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--border);
}

.service-tabs {
  display: none;
}

.service-content {
  display: none;
}

.service-content.active {
  display: block;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .feature-card,
  .product-card {
    padding: 1.5rem;
  }

  .about-grid,
  .product-grid,
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .about-grid,
  .product-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    padding: 0.9rem;
  }

  .product-card h4 {
    font-size: 1rem;
  }

  .product-card p {
    font-size: 0.92rem;
  }

  .product-card img,
  .card-image {
    height: auto;
    max-height: 320px;
    object-fit: contain;
    background: #f8fafc;
  }
}

/* Mobile: keep nav on one horizontal line with scroll when needed */
@media (max-width: 680px) {
  .site-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
    gap: 0.5rem;
  }

  .site-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  /* Hide native scrollbar for webkit browsers */
  .site-nav::-webkit-scrollbar { display: none; }
}

.service-content article {
  overflow: hidden;
}

.service-content article img {
  height: 220px;
  object-fit: cover;
}

.form-grid {
  display: grid;
  gap: 1.25rem;
}

.input-group {
  display: grid;
  gap: 0.5rem;
}

label {
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: white;
  border-radius: 16px;
  padding: 0.95rem 1rem;
  font: inherit;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(360px, 1.4fr);
  gap: 1.5rem;
}

.admin-card,
.inventory-list-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);
}

.admin-card h3,
.inventory-list-card h4 {
  margin-top: 0;
}

.hidden {
  display: none !important;
}

.admin-actions {
  display: grid;
  gap: 1rem;
}

.admin-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.admin-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f8fafc;
}

.admin-item button {
  min-width: auto;
  padding: 0.55rem 0.9rem;
}

.muted-text {
  color: var(--muted);
  margin-top: 0.75rem;
}

.inventory-lists {
  display: grid;
  gap: 1rem;
}

@media (max-width: 900px) {
  .about-grid,
  .contact-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }
}

.phone-input-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0.75rem;
}

.phone-input-row select {
  appearance: none;
  padding-right: 2rem;
}

.phone-input-row select,
.phone-input-row input {
  border-radius: 16px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.hint-text {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2rem;
}

.button {
  min-width: 220px;
}

@media (max-width: 680px) {
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .button-secondary {
    width: 100%;
    justify-content: center;
  }

  .input-group input,
  .input-group select,
  .input-group textarea {
    font-size: 1rem;
  }

  .contact-card,
  .admin-card,
  .feature-card,
  .product-card {
    padding: 1.5rem;
  }

  .hero-content { padding: 2rem; border-radius: 18px; }
  .hero h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
  .site-header { padding: 0; }
  .header-inner { padding: 0.6rem 0.75rem; }
  .site-nav a { padding: 0.5rem 0.6rem; font-size: 0.95rem; }
}

.contact-card {
  display: grid;
  gap: 1rem;
}

.contact-card h3 {
  margin: 0;
}

.admin-grid {
  display: grid;
  gap: 1.5rem;
}

.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 22px 50px rgba(17, 24, 39, 0.05);
}

.admin-dashboard.hidden {
  display: none;
}

.admin-panel {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.admin-item-list {
  display: grid;
  gap: 1rem;
}

.admin-item-entry {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f8fafc;
}

.admin-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.danger-button {
  background: #f7d1d1;
  color: #9b2c2c;
  border: 1px solid #f1a3a3;
}

.admin-item-entry img {
  max-width: 160px;
  border-radius: 12px;
  display: block;
  margin-top: 0.75rem;
}

#admin-item-image {
  padding: 0.5rem 0.75rem;
}

.admin-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.admin-controls input[type="search"] {
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  background: rgba(0,0,0,0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 60;
}

.modal.hidden { display: none; }

.modal-content {
  position: relative;
  background: var(--surface);
  padding: 2rem;
  border-radius: 28px;
  width: min(760px, 100%);
  max-width: 760px;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(2,6,23,0.16);
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.modal:not(.hidden) .modal-content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: none;
  background: rgba(15,76,129,0.08);
  color: var(--primary);
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(15,76,129,0.14);
}

#account-modal h3,
#account-modal h4 {
  margin: 0 0 1rem;
}

#account-modal h3 {
  font-size: clamp(1.9rem, 2.3vw, 2.2rem);
  color: var(--primary);
  letter-spacing: -0.04em;
}

#account-modal h4 {
  font-size: 1rem;
  color: var(--muted);
}

.modal-subtitle {
  margin: 0 0 1.5rem;
  color: var(--text);
  max-width: 38rem;
  line-height: 1.6;
}

#account-forms,
#account-info {
  display: grid;
  gap: 1rem;
}

#account-forms {
  max-width: 100%;
}

#account-forms > form {
  width: 100%;
}

.account-card {
  background: #f7fbff;
  border: 1px solid rgba(15,76,129,0.12);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.75);
}

.account-card h4 {
  margin-bottom: 1rem;
  color: var(--text);
}

#account-modal .input-group label {
  font-weight: 700;
  color: var(--text);
}

#account-modal .input-group input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1rem;
  font: inherit;
  background: white;
}

#account-modal .password-toggle-wrapper {
  position: relative;
}

#account-modal .password-toggle-wrapper input {
  padding-right: 5.5rem;
}

#account-modal .password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

#account-modal .password-toggle:hover {
  color: var(--accent);
}

#account-modal .form-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
}

#account-modal .button-secondary {
  background: transparent;
  border: 1px solid rgba(15,76,129,0.18);
  color: var(--primary);
}

#customer-login-msg,
#customer-register-msg {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

#account-modal .modal-content {
  max-width: 720px;
  width: min(720px, 100%);
}

@media (max-width: 860px) {
  #account-forms {
    grid-template-columns: 1fr;
  }
}

#toast-container {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.5rem;
  z-index: 70;
}

.toast {
  background: #0f4c81;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(2,6,23,0.2);
  opacity: 1;
  transition: opacity 200ms ease;
}

.toast.toast-hidden {
  opacity: 0;
}

.toast.success {
  background: #1f8a4b;
}

.toast.warning {
  background: #d97706;
}

.toast.error {
  background: #9b2c2c;
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  color: var(--muted);
}

.info-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.social-links {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.social-links a {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(15,76,129,0.06);
  transition: transform 140ms ease, background 140ms ease;
}

.social-links a:hover {
  transform: translateY(-1px);
  background: rgba(15,76,129,0.12);
}

footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
  background: #f8fbff;
  border-top: 1px solid rgba(15,76,129,0.08);
}

@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 64vh;
  }

  .hero-content {
    padding: 2rem 1rem;
  }

  .site-nav {
    justify-content: center;
  }

  .service-tabs {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Extra small screens: tighten spacing, full-width buttons, and reduce image heights */
@media (max-width: 480px) {
  body {
    padding-top: 72px;
    font-size: 15px;
  }

  .header-inner {
    padding: 0.5rem 0.6rem;
  }

  .brand-logo {
    max-height: 48px;
  }

  .hero {
    min-height: 56vh;
  }

  .hero-content {
    padding: 1.25rem;
    border-radius: 12px;
    width: calc(100% - 2rem);
    box-shadow: none;
  }

  .hero p { font-size: 0.95rem; }

  .hero-buttons { flex-direction: column; gap: 0.6rem; }

  .button,
  .button-secondary {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    font-size: 1rem;
    width: 100%;
  }

  .product-grid { grid-template-columns: 1fr; gap: 1rem; }

  .product-card img,
  .card-image {
    height: auto;
    max-height: 260px;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 12px;
  }

  .container { width: calc(100% - 1rem); padding-left: 0.5rem; padding-right: 0.5rem; }

  .floating-cart { right: 0.5rem; bottom: 0.8rem; padding: 0.6rem 0.85rem; font-size: 0.95rem; }

  .site-nav { gap: 0.4rem; }
  .site-nav a { padding: 0.45rem 0.6rem; font-size: 0.95rem; }

  .modal-content {
    width: calc(100% - 1.5rem);
    padding: 1rem;
    border-radius: 12px;
    max-height: 85vh;
  }

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

  .cart-item { grid-template-columns: 1fr; gap: 1rem; }

  .phone-input-row { grid-template-columns: 1fr; }

  .admin-item-header { flex-direction: column; align-items: stretch; }

  .site-nav,
  .admin-grid,
  .contact-grid,
  .product-grid,
  .about-grid,
  .service-grid,
  .cart-item {
    min-width: 0;
  }

  .site-nav a {
    min-width: 0;
    white-space: normal;
  }

  img { border-radius: 12px; }
}
