:root {
  --primary: #0a7d3d;
  --primary-dark: #065a2b;
  --dark: #1b262c;
  --gray: #6c7a89;
  --border: rgba(255, 255, 255, 0.45);
  --bg: #e9f3fb;
  --danger: #ce1f2d;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-soft: rgba(255, 255, 255, 0.55);
  --muted: #52616f;
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-shadow: 0 25px 60px rgba(15, 23, 42, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.55), transparent 28%),
              radial-gradient(circle at bottom right, rgba(109, 179, 255, 0.18), transparent 28%),
              linear-gradient(180deg, #eaf5ff 0%, #d7e8f6 100%);
  color: var(--dark);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.topbar {
  background: #f5fbff;
  border-bottom: 1px solid #d4e6f0;
}

.site-footer .topbar {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.site-footer .topbar-inner {
  color: #e8eef6;
}

.site-footer .topbar-inner a {
  color: #fff;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 20px;
  color: var(--muted);
  font-size: 13px;
}

.topbar-inner a {
  color: var(--primary);
}

.site-header {
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 43, 77, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--dark);
}

.logo-img {
  display: block;
  max-height: 64px;
  max-width: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.logo-text {
  display: none;
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    min-height: 52px;
  }

  .logo {
    width: auto;
    justify-content: flex-start;
    gap: 6px;
    font-size: 18px;
  }

  .logo-text {
    display: inline-block;
    font-weight: 800;
    font-size: 15px;
    margin-left: 6px;
    color: var(--dark);
    line-height: 1.1;
  }

  .header-actions {
    width: auto;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 0;
    gap: 8px;
  }

  .cart-link {
    padding: 7px 10px;
  }

  .main-nav { display: none; }
  .mobile-nav { display: block; }
  .mobile-menu-toggle { display: inline-block; }
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.main-nav a {
  color: var(--dark);
  font-weight: 500;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--dark);
}

.cart-link:hover {
  background: #f3f9f7;
}

.cart-icon {
  font-size: 18px;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
}

.page-content {
  padding: 35px 0 60px;
  min-height: calc(100vh - 225px);
}

@media (max-width: 768px) {
  .page-content {
    padding: 24px 0 48px;
    min-height: calc(100vh - 180px);
  }
}

.flash {
  padding: 16px 18px;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(36, 95, 142, 0.06);
}

.flash.success {
  background: #eafcf0;
  color: #0f4d2b;
  border: 1px solid #c7ecd6;
}

.flash.error {
  background: #fff0f2;
  color: #a21c2d;
  border: 1px solid #f3c5cc;
}

.flash.info {
  background: #eef5fd;
  color: #1f4f81;
  border: 1px solid #d6e3f5;
}

.flash.warning {
  background: #fff8e6;
  color: #8a4b00;
  border: 1px solid #f5d7a2;
}

.hero-panel {
  display: grid;
  gap: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #e7f5ff 100%);
  border: 1px solid #d5e9f4;
  border-radius: 24px;
  padding: 34px;
  margin-bottom: 28px;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-copy h1 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.05;
  margin: 0 0 18px;
}

.hero-copy p {
  max-width: 620px;
  color: var(--muted);
  margin: 0;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 24px;
}

.section-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
}

.page-section {
  padding: 48px 0;
  border-top: 1px solid rgba(15, 37, 64, 0.06);
}

.feature-grid,
.portfolio-grid,
.testimonials-grid {
  display: grid;
  gap: 20px;
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(23, 43, 77, 0.05);
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.feature-card p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.portfolio-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.portfolio-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.portfolio-image {
  min-height: 220px;
  background: #f8fbfd;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-info {
  padding: 18px;
}

.portfolio-info h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.portfolio-category {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 12px;
  display: block;
}

.testimonial-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 16px 40px rgba(23, 43, 77, 0.05);
}

.testimonial-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
}

.testimonial-comment {
  margin: 0 0 18px;
  color: var(--dark);
  line-height: 1.75;
}

.testimonial-author {
  font-size: 0.95rem;
  color: var(--muted);
}

.testimonial-author strong {
  color: var(--dark);
}

.empty-state {
  padding: 32px;
  border-radius: 18px;
  background: rgba(236, 247, 255, 0.7);
  text-align: center;
}

/* Theme picker removed; site uses default palette */

.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

.auth-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  width: min(100%, 980px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #dce9f2;
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(15, 37, 64, 0.08);
  overflow: hidden;
}

.auth-intro {
  padding: 44px;
  background: linear-gradient(135deg, #f5fbff 0%, #edf7f0 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-intro h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  color: var(--dark);
}

.auth-intro p {
  margin: 0;
  color: var(--muted);
  max-width: 360px;
}

.auth-form-panel {
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form .form-group {
  margin-bottom: 0;
}

.auth-form input {
  border-radius: 14px;
  border: 1px solid #d8e3ec;
  background: #fcfeff;
  box-shadow: inset 0 1px 2px rgba(15, 37, 64, 0.03);
}

.auth-form .button {
  margin-top: 4px;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.auth-links a {
  color: var(--primary);
  font-weight: 600;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.auth-actions .button {
  width: auto;
}

/* Modern shop styles */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(180%) blur(12px); }
.header-inner { padding: 14px 18px; align-items: center; min-height: 56px; }
.logo { font-size: 22px; }

.main-nav a { padding: 8px 10px; border-radius: 6px; }
.main-nav a.active, .main-nav a:hover { background: rgba(59,130,246,0.08); color: var(--primary); }

.hero-panel { padding: 28px; border-radius: 16px; }

/* Product grid and cards */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
/* Related products styles moved to assets/css/related.css to avoid global regressions */
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display:flex; flex-direction:column; box-shadow: 0 8px 30px rgba(23,43,77,0.04); }
.product-card img { width:100%; height:180px; object-fit:cover; display:block; }
.product-card .card-body { padding: 14px; flex:1; display:flex; flex-direction:column; }
.product-card h3 { margin:0 0 8px; font-size:16px; }
.product-card .price { margin-top:auto; font-weight:700; color:var(--primary); }
.product-card .actions { display:flex; gap:8px; margin-top:12px; }

/* Cart & checkout */
.cart-table { width:100%; border-collapse:collapse; margin-bottom:18px; }
.cart-table th, .cart-table td { padding:12px 10px; border-bottom:1px solid var(--border); text-align:left; }
.cart-total { text-align:right; font-size:18px; font-weight:700; }

.btn { display:inline-block; padding:10px 16px; border-radius:10px; background:var(--primary); color:#fff; text-decoration:none; cursor:pointer; }
.btn[disabled] { opacity:0.6; cursor:not-allowed; }
.btn-outline { background:transparent; border:1px solid var(--border); color:var(--dark); }

.extra-image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.extra-image-item {
  position: relative;
  width: 120px;
  height: 120px;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
}

.extra-image-item.preview {
  cursor: default;
}

.extra-image-item.existing.removed {
  opacity: 0.4;
  filter: grayscale(1);
}

.extra-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.extra-image-empty-state {
  width: 100%;
  padding: 14px 16px;
  border: 1px dashed var(--border);
  border-radius: 18px;
  background: rgba(59, 130, 246, 0.05);
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

.extra-image-item button.remove-preview-button,
.extra-image-item button.remove-existing-button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.extra-image-item button.remove-preview-button:hover,
.extra-image-item button.remove-existing-button:hover {
  background: rgba(0, 0, 0, 0.75);
}

.extra-image-item input[type="checkbox"] {
  display: none;
}

/* Forms */
input[type="text"], input[type="email"], textarea, select { width:100%; padding:10px 12px; border:1px solid var(--border); border-radius:8px; background:var(--surface); }
label { display:block; margin:10px 0 6px; font-weight:600; }

/* Processing & thankyou */
.processing-box, .thankyou-box, .track-order-box { background:var(--surface); border:1px solid var(--border); border-radius:14px; padding:22px; max-width:900px; margin:0 auto; box-shadow:0 12px 30px rgba(23,43,77,0.04); }
.processing-box .spinner { width:48px; height:48px; border-radius:50%; border:4px solid rgba(0,0,0,0.08); border-top-color:var(--primary); margin:12px auto; animation:spin 1s linear infinite; }
.processing-actions { display:flex; flex-wrap:wrap; gap:12px; margin:18px 0; }
.processing-actions .button.small { width:auto; }
@keyframes spin { to { transform:rotate(360deg); } }

.order-ref { font-family:monospace; background:var(--muted); padding:6px 10px; border-radius:8px; display:inline-block; }

/* Badges */
.badge { display:inline-block; padding:6px 8px; border-radius:999px; font-weight:700; font-size:13px; }
.badge-success { background:#e6ffef; color:#0b5e2a; }
.badge-pending { background:#fff7e6; color:#7a5800; }
.badge-failed { background:#fff0f2; color:#9b1d2a; }

/* Footer */
.footer-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap:24px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 16px 35px rgba(37, 211, 102, 0.24);
  z-index: 1000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(37, 211, 102, 0.32);
}
.whatsapp-float::before {
  content: '✆';
  font-size: 24px;
}
@media (max-width: 600px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 50px; height: 50px; }
}

/* Badge for WhatsApp widget */
.whatsapp-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.25);
  border: 2px solid #25d366;
  pointer-events: none;
  animation: whatsapp-badge-pulse 1800ms infinite ease-out;
}

@keyframes whatsapp-badge-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.35); transform: scale(1); }
  60% { box-shadow: 0 0 0 8px rgba(37,211,102,0); transform: scale(1.08); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); transform: scale(1); }
}

.whatsapp-float:hover { transform: translateY(-3px); }

/* Responsive */
@media (max-width: 800px) {
  .header-inner { flex-direction:row; gap:8px; }
  .main-nav { display:none; }
  .mobile-menu-toggle { display:inline-block; }
  .mobile-nav.open { display:block; padding:12px 20px; }
  .product-card img { height:150px; }
}

/* Small helpers */
.text-muted { color:var(--muted); }
.center { text-align:center; }

.hero-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.feature-card {
  background: #fff;
  border: 1px solid #d5e9f4;
  border-radius: 18px;
  padding: 20px;
  min-height: 140px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.toolbar {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.search-form,
.search-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.search-form input,
.search-bar input {
  flex: 1;
  min-width: 220px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.search-form button,
.search-bar button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-form button:hover,
.search-bar button:hover {
  background: var(--primary-dark);
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-filters a {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
  transition: all 0.2s ease;
}

.category-filters a.active,
.category-filters a:hover {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.shop-sidebar-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.sidebar-widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
}

.sidebar-widget h2 {
  margin-top: 0;
  font-size: 20px;
}

.sidebar-widget ul {
  padding-left: 18px;
  margin: 16px 0 0;
  color: var(--muted);
}

.sidebar-widget li {
  margin-bottom: 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.product-card {
  background: #fff;
  border: 1px solid #e5ecf3;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(56, 82, 107, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(56, 82, 107, 0.12);
}

.product-image-wrap {
  position: relative;
  padding-top: 65%;
  overflow: hidden;
  background: #f1f7fb;
}

.product-image-wrap img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 100%;
  transform: translate(-50%, -50%);
}

.stock-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.stock-badge.available {
  background: #4caf50;
  color: white;
}

.stock-badge.low {
  background: #ff9800;
  color: white;
  animation: pulse 2s infinite;
}

.stock-badge.out {
  background: #f44336;
  color: white;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.product-card-body {
  padding: 22px;
  text-align: left;
}

.product-pill {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef8ff;
  color: #205d92;
  font-size: 12px;
  margin-bottom: 14px;
}

.product-card-body h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.25;
}

.product-snippet {
  color: var(--muted);
  margin: 0 0 16px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.product-meta .price {
  font-weight: 700;
  font-size: 18px;
  color: var(--primary-dark);
}

.product-meta .stock {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  white-space: nowrap;
}

.product-meta .stock.available {
  background: #e8f5e9;
  color: #1e7f43;
}

.product-meta .stock.low {
  background: #fff3e0;
  color: #b8650c;
}

.product-meta .stock.out {
  background: #ffebee;
  color: var(--danger);
}

.add-to-cart-form {
  margin-top: 8px;
}

.button {
  width: 100%;
  border-radius: 14px;
  border: none;
  background: var(--primary);
  color: #fff;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease;
}

.button:hover {
  background: var(--primary-dark);
}

.button.small {
  width: auto;
  padding: 12px 20px;
}

.product-detail {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: start;
}

.product-detail-image {
  background: #fff;
  border: 1px solid #e5ecf3;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
}

.product-detail-image img {
  width: 100%;
  display: block;
}

.product-detail-info {
  display: grid;
  gap: 24px;
}

.detail-header {
  background: #fff;
  border: 1px solid #e5ecf3;
  border-radius: 24px;
  padding: 28px;
}

.detail-header h1 {
  margin: 12px 0 14px;
  font-size: 2.2rem;
  line-height: 1.05;
}

.detail-header .price {
  font-size: 2rem;
}

.detail-summary {
  background: #fff;
  border: 1px solid #e5ecf3;
  border-radius: 24px;
  padding: 26px;
}

.detail-summary .stock {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.detail-summary .stock.available {
  background: #e6f7ec;
  color: #1a7d3b;
}

.detail-summary .stock.out {
  background: #fff1f3;
  color: #bf1f2a;
}

.detail-features,
.detail-gallery,
.delivery-box {
  background: #fff;
  border: 1px solid #e5ecf3;
  border-radius: 24px;
  padding: 26px;
}

.detail-features h2,
.delivery-box h3 {
  margin-top: 0;
}

.detail-features ul,
.delivery-box ul {
  padding-left: 18px;
  margin: 16px 0 0;
}

.detail-features li,
.detail-gallery .gallery-note,
.delivery-box li {
  margin-bottom: 12px;
  color: var(--muted);
}

.detail-gallery {
  background: #fff;
  border: 1px solid #e5ecf3;
  border-radius: 24px;
  padding: 26px;
}

.gallery-slider {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  min-height: 280px;
  background: #f8fbff;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 10;
}

.gallery-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.gallery-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.gallery-thumb {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  width: 66px;
  height: 66px;
  cursor: pointer;
  background: #fff;
  padding: 0;
}

.gallery-thumb.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-note {
  color: var(--muted);
  margin-top: 16px;
}

.product-add-form label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

.product-add-form input[type="number"] {
  width: 100px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 18px;
}

.stock-message {
  padding: 18px 22px;
  background: #fff5f7;
  border: 1px solid #f5c4cc;
  border-radius: 18px;
  color: #9e2142;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 600;
}

.site-footer {
  background: #0b1f2f;
  color: #d7e3ef;
  padding: 50px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  padding-bottom: 24px;
}

.footer-col h3 {
  margin: 0 0 14px;
  color: #fff;
}

.footer-col p,
.footer-col li {
  color: #e8eef6;
  line-height: 1.8;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #e8eef6;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.newsletter-form {
  display: grid;
  gap: 12px;
}

.newsletter-form input {
  padding: 14px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.newsletter-form button {
  background: var(--primary);
  border: none;
  color: #fff;
  border-radius: 999px;
  padding: 14px 16px;
  cursor: pointer;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 18px;
  text-align: center;
  color: #8fa5bb;
}

.product-card .price,
.detail-header .price {
  color: var(--primary-dark);
}

@media (max-width: 980px) {
  .product-detail,
  .shop-sidebar-grid,
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

.section-block {
  background: #fff;
  border: 1px solid #e5ecf3;
  border-radius: 24px;
  padding: 34px 28px;
  margin-bottom: 28px;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.feature-grid,
.testimonials-grid,
.video-grid,
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}

.review-summary,
.review-form,
.followup-panel,
.followup-list,
.review-list,
.review-entry,
.followup-entry {
  background: #fff;
  border: 1px solid #e5ecf3;
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 22px;
}

.review-form label,
.followup-panel label {
  display: block;
  margin-top: 16px;
  font-weight: 600;
}

.review-form input,
.review-form textarea,
.followup-panel textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-top: 8px;
}

.review-form button,
.followup-panel button {
  margin-top: 16px;
}

.review-entry,
.followup-entry {
  border-color: #d5e9f4;
}

.review-entry h4,
.followup-entry h4 {
  margin: 0 0 10px;
}

.review-entry time,
.followup-entry time {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}

.review-entry .rating {
  color: #f59e0b;
  font-weight: 700;
  margin-bottom: 10px;
}

.review-entry .review-meta,
.followup-entry .review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.review-entry .review-meta span,
.followup-entry .review-meta span {
  background: #eef5fd;
  border-radius: 999px;
  padding: 4px 10px;
}

.review-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.review-summary h2,
.followup-panel h2 {
  margin-top: 0;
}

.review-summary p {
  margin: 0;
  color: var(--muted);
}

.review-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.review-actions a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 10px;
  background: #eef5fd;
  color: var(--primary-dark);
  text-decoration: none;
}

.review-actions a:hover {
  background: #d6e9fb;
}

.testimonial-card,
.video-card,
.portfolio-card,
.callout-card {
  background: #fff;
  border: 1px solid #e5ecf3;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 14px 32px rgba(36, 74, 110, 0.06);
}

.testimonial-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.9;
}

.testimonial-card strong {
  display: block;
  color: var(--dark);
  font-size: 0.98rem;
}

.video-card {
  display: grid;
  gap: 18px;
}

.video-placeholder {
  height: 200px;
  border-radius: 18px;
  background: linear-gradient(180deg, #dceeff 0%, #f3f8ff 100%);
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.video-card h3,
.portfolio-card h3 {
  margin: 0 0 10px;
}

.portfolio-card img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  height: 180px;
  margin-bottom: 18px;
  background: #eef4fb;
}

.callout-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
}

.callout-card h2 {
  margin: 0 0 12px;
}

@media (max-width: 860px) {
  .page-hero {
    grid-template-columns: 1fr;
  }

  .cart-page-grid,
  .checkout-layout.enhanced-checkout-layout {
    grid-template-columns: 1fr;
  }

  .section-grid,
  .callout-card {
    grid-template-columns: 1fr;
  }
}

.page-hero {
  background: linear-gradient(135deg, #fbfcff 0%, #eff7ff 100%);
  border: 1px solid #d4e8f6;
  border-radius: 26px;
  padding: 34px 32px;
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.page-hero-small {
  grid-template-columns: 1fr;
  padding: 30px 26px;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 2.5vw, 2.8rem);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button.secondary {
  background: #f0f8ff;
  color: var(--dark);
  border: 1px solid #d3e8f7;
}

.cart-page-grid,
.checkout-layout.enhanced-checkout-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.85fr;
  gap: 24px;
}

.cart-panel,
.order-summary,
.order-summary-extended,
.widget-panel,
.table-card {
  background: #fff;
  border: 1px solid #e5ecf3;
  border-radius: 24px;
  padding: 24px;
}

.table-card {
  overflow-x: auto;
}

.cart-page-grid {
  gap: 28px;
}

.cart-widget {
  display: grid;
  gap: 20px;
}

.widget-panel ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.widget-panel li {
  margin-bottom: 10px;
  color: var(--muted);
}

.highlight-panel {
  background: #f3fbf5;
  border-color: #d6eedb;
}

.empty-state-panel {
  text-align: center;
  background: #fff;
  border: 1px solid #e5ecf3;
  border-radius: 24px;
  padding: 40px 30px;
}

.empty-state-panel h2 {
  margin-top: 0;
  font-size: 2rem;
}

.form-group {
  margin-bottom: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-grid .form-group {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
  font-size: 18px;
}

@media (max-width: 860px) {
  .page-hero {
    grid-template-columns: 1fr;
  }

  .cart-page-grid,
  .checkout-layout.enhanced-checkout-layout {
    grid-template-columns: 1fr;
  }

  .section-grid,
  .callout-card {
    grid-template-columns: 1fr;
  }

  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-intro,
  .auth-form-panel {
    padding: 32px;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .mobile-nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    z-index: 40;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  }

  .mobile-nav.open {
    display: flex;
  }

  .mobile-nav a {
    display: block;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--dark);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    font-size: 0.95rem;
  }

  .mobile-nav a:hover {
    background: #f8fbfd;
    color: var(--primary);
  }

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

  .gallery-slider {
    min-height: 320px;
  }

  .product-card {
    border-radius: 16px;
  }

  .product-card img {
    height: 160px;
  }

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

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

/* Track Order Page Styles */
.track-order-container {
  max-width: 900px;
  margin: 0 auto;
}

.track-order-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: 0 12px 30px rgba(23,43,77,0.04);
}

.track-order-form {
  display: grid;
  gap: 16px;
}

.track-order-form input {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
}

.track-order-form small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.status-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.status-item {
  background: #f8fbff;
  border: 1px solid #dceeff;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.status-label {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 600;
}

.status-value {
  font-weight: 700;
  font-size: 18px;
  color: var(--dark);
}

.status-timeline {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 28px;
}

.status-timeline h3 {
  margin-top: 0;
}

.timeline {
  display: grid;
  gap: 24px;
  margin-top: 20px;
  position: relative;
  padding-left: 20px;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #dceeff;
  border: 3px solid #fff;
  margin-top: 6px;
  position: relative;
  z-index: 2;
}

.timeline-item.completed .timeline-dot {
  background: var(--primary);
}

.timeline-item:not(:last-child) {
  position: relative;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: -5px;
  top: 30px;
  width: 2px;
  height: calc(100% + 20px);
  background: #dceeff;
  z-index: 1;
}

.timeline-item.completed:not(:last-child)::after {
  background: var(--primary);
}

.timeline-content h4 {
  margin: 0 0 6px;
  color: var(--dark);
  font-weight: 700;
}

.timeline-content p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.order-details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 28px;
}

.order-details h3 {
  margin-top: 0;
}

.customer-info {
  background: #f8fbff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.customer-info p {
  margin: 0 0 12px;
  line-height: 1.6;
  color: var(--dark);
}

.customer-info p:last-child {
  margin-bottom: 0;
}

.customer-info strong {
  font-weight: 700;
  color: var(--dark);
}

.order-followups,
.order-support {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 28px;
}

.order-followups h3,
.order-support h3 {
  margin-top: 0;
}

.followup-entry {
  background: #f8fbff;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.followup-entry:last-child {
  margin-bottom: 0;
}

.followup-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.followup-meta strong {
  font-weight: 700;
  color: var(--dark);
}

.followup-meta small {
  color: var(--muted);
  font-size: 13px;
}

.followup-entry p {
  margin: 0;
  color: var(--dark);
  line-height: 1.6;
}

.order-support p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 12px;
}

.order-support p:last-child {
  margin-bottom: 0;
}

.order-support a {
  color: var(--primary);
  font-weight: 600;
}

.order-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.order-actions .button {
  width: auto;
  padding: 12px 24px;
  border-radius: 12px;
}

@media (max-width: 768px) {
  .status-summary {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .status-item {
    padding: 16px;
  }

  .order-details {
    padding: 20px;
  }

  .order-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .order-actions .button {
    width: 100%;
  }
}

/* Glassmorphism storefront theme */
.site-header,
.hero-panel,
.feature-card,
.portfolio-item,
.testimonial-card,
.sidebar-widget,
.auth-card,
.auth-form-panel,
.login-box,
.processing-box,
.thankyou-box,
.track-order-box,
.cart-panel,
.status-summary,
.order-support,
.order-details,
.extra-image-item,
.search-form input,
input[type="text"], input[type="email"], textarea, select,
.product-card {
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.site-header {
  background: rgba(255, 255, 255, 0.82) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55) !important;
}

.hero-panel {
  border-radius: 32px !important;
  padding: 34px !important;
}

.feature-card,
.portfolio-item,
.testimonial-card,
.sidebar-widget,
.cart-panel,
.processing-box,
.thankyou-box,
.track-order-box,
.status-summary,
.order-support,
.order-details {
  border-radius: 28px !important;
}

.product-card {
  border-radius: 28px !important;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px) scale(1.003);
  box-shadow: 0 35px 85px rgba(15, 23, 42, 0.16) !important;
}

.product-image-wrap,
.extra-image-item,
.search-form input,
input[type="text"], input[type="email"], textarea, select {
  border-radius: 22px !important;
}

.btn,
.button,
.search-form button,
.category-filters a,
.main-nav a {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.72);
  color: #1b262c;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.btn:hover,
.button:hover,
.search-form button:hover,
.category-filters a.active,
.category-filters a:hover,
.main-nav a.active,
.main-nav a:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #0a7d3d;
}

input[type="text"], input[type="email"], textarea, select,
.search-form input {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #1b262c;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(10, 125, 61, 0.3);
  border-radius: 999px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.2);
}
