body {
    color:black;
    background: #f3f4f6;
    font-family: Arial, sans-serif;
    margin: 0; /* Remove default body margin */
    padding: 0; /* Remove default body padding */
    min-height: 100vh; /* Ensure body takes full viewport height */
    position: relative; /* Needed for pseudo-element positioning */
    z-index: 1; /* Ensure body content is above the pseudo-element */
}
body::before {
    content: ""; /* Essential for pseudo-elements */
    position: fixed; /* Fixes the background to the viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  background-image: var(--site-bg-image, url('/images/bg1.JPG')); /* Replace with your image path */
  background-color: var(--site-bg-color, transparent);
    background-size: cover; /* Ensures the image covers the entire area */
    background-position: center center; /* Centers the background image */
    background-repeat: no-repeat; /* Prevents image repetition */
  opacity: var(--site-bg-opacity, 0.5); /* Adjust opacity as desired (0.0 to 1.0) */
    z-index: -1; /* Places the background behind other content */
}
div.container,
div.page {
    display:flex;
    flex-direction: column;
    flex-grow: 1;
  width: min(1100px, 94vw);
    margin: auto;
    padding: 0px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  min-width: 0;
    min-height:80vh;
    position: relative;
    z-index: 2; /* Explicitly places content above the background */
}
div.header {
    text-align: center;
    margin-top: 0px;
    background-color: rgb(60, 54, 84);
    color: white;
    border-radius: 10px;
    padding: 15px 0;
}
div.main {
    font-size: 18px;
    line-height: 1.6;
    margin: 20px;
}
div.navigation {
    width: 15%;
    min-width:200px;
    padding:10px 10px;
    display:inline-block;
    vertical-align: top;
    background-color: rgba(122, 101, 139, 0.4);
    border-radius: 10px;
}
a.button {
    display: block;
    padding: 10px 15px;
    margin: 5px 0;
    background-color: #5b8d5b;
    color: rgb(0, 0, 0);
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    border:1px solid lightgrey;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}
a.button:hover {
    background-color: #92bb92;
    color: white;
}
div.content {
    display: inline-block;
    clear:right;
    width: 80%;
    vertical-align: top;
    gap: 20px;
    padding: 5px 20px;
    border-left: 2px solid #ddd;
}
footer.footer {
    text-align: center;
    height: 30px;
    font-size: 14px;
    color: #777;
    border-top: 1px solid #ddd;
    padding: 10px 0;
}
.strand{
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
    float: left;
	z-index: 1;
	margin: -15px 0 0 0;
	padding: 0;
	pointer-events: none;
	width: 100%;
}
.strand li{
	position: relative;
	-webkit-animation-fill-mode: both;
	animation-fill-mode: both;
	-webkit-animation-iteration-count: infinite;
	animation-iteration-count: infinite;
	list-style: none;
	margin: 0;
	padding: 0;
	display: block;
	width: 12px;
	height: 28px;
	border-radius: 50%;
	margin: 20px;
	display: inline-block;
	background:#f02241;
	box-shadow: 0px 4.66667px 24px 3px #f02241;
	-webkit-animation-name: flash-1;
	animation-name: flash-1;
	-webkit-animation-duration: 2s;
	animation-duration: 2s;
}
.strand li:nth-child(2n+1){
	background: #42b261;
	box-shadow: 0px 4.66667px 24px 3px rgba(0, 255, 255, 0.5);
	-webkit-animation-name: flash-2;
	animation-name: flash-2;
	-webkit-animation-duration: 0.4s;
	animation-duration: 0.4s;
}
.strand li:nth-child(4n+2){
	background: #f9fbee;
	box-shadow: 0px 4.66667px 24px 3px #f9fbee;
	-webkit-animation-name: flash-3;
	animation-name: flash-3;
	-webkit-animation-duration: 1.1s;
	animation-duration: 1.1s;
}
.strand li:nth-child(6n+3){
	background: #d8ab16;
	box-shadow: 0px 4.66667px 24px 3px #d8ab16;
	-webkit-animation-name: flash-4;
	animation-name: flash-4;
	-webkit-animation-duration: 1.6s;
	animation-duration: 1.6s;
}
.strand li:nth-child(odd){
	-webkit-animation-duration: 1.8s;
	animation-duration: 1.8s;
}
.strand li:nth-child(3n+1){
  -webkit-animation-duration: 1.4s;
  animation-duration: 1.4s;
  animation: 1.4s;
}
.strand li:before{
	content: "";
	position: absolute;
	background: #222;
	width: 10px;
	height: 9.33333px;
	border-radius: 3px;
	top: -4.66667px;
	left: 1px;
}
.strand li:after{
	content: "";
	top: -14px;
	left: 9px;
	position: absolute;
	width: 52px;
	height: 18.66667px;
	border-bottom: solid #222 2px;
	border-radius: 50%;
}
.strand li:last-child:after{
	content: none;
}
.strand li:first-child{
	margin-left: 40px;
}
@-webkit-keyframes flash-1{
	0%, 100%{
		background: #f02241;
		box-shadow: 0px 4.66667px 24px 3px #f02241;
	}
	50%{
		background: rgba(240, 34, 65, 0.4);
		box-shadow: 0px 4.66667px 24px 3px rgba(240, 35, 65, .02);
	}
}
@keyframes flash-1{
	0%,
  100% {
    background: #f02241;
    box-shadow: 0px 4.66667px 24px 3px #f02241;
  }
  50% {
    background: rgba(240, 34, 65, 0.4);
    box-shadow: 0px 4.66667px 24px 3px rgba(240, 35, 65, 0.2);
  }
}
@-webkit-keyframes flash-2{
	0%,
	100% {
		background: #42b261;
		box-shadow: 0px 4.66667px 24px 3px #42b261;
	}
	50% {
		background: rgba(66, 178, 97, 0.4);
		box-shadow: 0px 4.6667px 24px 3px rgba(66, 178, 97, 0.2);
	}
}
@keyframes flash-2{
	0%,
  100% {
    background: #42b261;
    box-shadow: 0px 4.66667px 24px 3px #42b261;
  }
  50% {
    background: rgba(66, 178, 97, 0.4);
    box-shadow: 0px 4.66667px 24px 3px rgba(66, 178, 97, 0.2);
  }
}
@-webkit-keyframes flash-3{
	0%,
	100% {
		background: #f9fbee;
		box-shadow: 0px 4.6667px 24px 3px #f9fbee;
	}
	50% {
		background: rgba(249, 251, 238, .4);
		box-shadow: 0px 4.66667px 24px 3px rgba(249, 251, 238, .2);
	}
}
@keyframes flash-3{
	0%,
  100% {
    background: #F9FBEE;
    box-shadow: 0px 4.66667px 24px 3px #F9FBEE;
  }
  50% {
    background: rgba(249, 251, 238, 0.4);
    box-shadow: 0px 4.66667px 24px 3px rgba(249, 251, 238, 0.2);
  }
}
@-webkit-keyframes flash-4{
	0%,
	100% {
		background: #d8ab16;
		box-shadow: 0px 4.6667px 24px 3px #d8ab16;
	}
	50% {
		background: rgba(249, 251, 238, .4);
		box-shadow: 0px 4.66667px 24px 3px rgba(249, 251, 238, .2);
	}
}
@keyframes flash-4{
	0%,
  100% {
    background: #d8ab16;
    box-shadow: 0px 4.66667px 24px 3px #d8ab16;
  }
  50% {
    background: rgba(251, 247, 238, 0.4);
    box-shadow: 0px 4.66667px 24px 3px rgba(251, 247, 238, 0.2);
  }
}

/* Shared page styles: list.php, list2.php, gallery.php, gallery2.php */

/* list.php */
.weekly-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.weekly-table th, .weekly-table td { border: 1px solid #e5e7eb; padding: 8px; text-align: left; }
.weekly-table th { background: #f8fafc; }
.weekly-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  margin: 8px 0 10px;
  align-items: center;
}
.weekly-current-range {
  margin: 0;
  color: #374151;
  font-size: 0.92rem;
}
.weekly-note-customer {
  margin: 6px 0 8px;
  padding: 6px 10px;
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fff1f2;
  color: #7f1d1d;
  font-size: 0.86rem;
  font-weight: 600;
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
}
.weekly-note-star {
  color: #dc2626;
  font-weight: 800;
  line-height: 1;
}
.weekly-note-admin {
  margin: 6px 0 10px;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f8fafc;
}
.weekly-note-admin-title {
  margin: 0 0 8px;
  color: #374151;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.weekly-note-admin-form {
  display: grid;
  gap: 8px;
}
.weekly-note-admin-enable {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  color: #374151;
}
.weekly-note-admin-form textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  resize: vertical;
  min-height: 54px;
  font-family: inherit;
  font-size: 0.9rem;
}
.weekly-note-admin-form button {
  justify-self: start;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #5b8d5b;
  background: #5b8d5b;
  color: #fff;
  cursor: pointer;
}
.weekly-note-admin-form button:hover {
  background: #4a774a;
  border-color: #4a774a;
}
.weekly-note-admin-message {
  margin: 0 0 6px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.82rem;
}
.weekly-note-admin-message.is-success {
  border: 1px solid #86efac;
  background: #f0fdf4;
  color: #166534;
}
.weekly-note-admin-message.is-error {
  border: 1px solid #fecaca;
  background: #fee2e2;
  color: #991b1b;
}
.weekly-note-admin-meta {
  margin-top: 2px;
  font-size: 0.8rem;
  color: #6b7280;
}
.home-map-card {
  margin: 10px 0 18px;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
}
.home-map-card h2 {
  margin: 0 0 4px;
}
.home-map-address {
  margin: 0 0 10px;
  color: #374151;
  font-size: 0.95rem;
}
.home-map-embed {
  width: 100%;
  min-height: 300px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
}
.home-map-form {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}
.home-map-form label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #374151;
}
.home-map-form input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-sizing: border-box;
}
.home-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.home-map-link {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  text-decoration: none;
  font-size: 0.9rem;
}
.home-map-link:hover {
  background: #f3f4f6;
}
.home-map-route-btn {
  padding: 8px 12px;
  border: 1px solid #2563eb;
  border-radius: 6px;
  background: #2563eb;
  color: #ffffff;
  cursor: pointer;
  font-size: 0.9rem;
}
.home-map-route-btn:hover {
  background: #1d4ed8;
}
.weekly-actions-right {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
  flex-wrap: wrap;
}
.weekly-search { width: 240px; max-width: 100%; padding: 7px 9px; border: 1px solid #d1d5db; border-radius: 6px; }
.weekly-sort-label { font-size: 12px; color: #4b5563; margin-right: 2px; }
.weekly-sort-select { padding: 6px 8px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; color: #111827; }
.weekly-actions button { padding: 8px 12px; border-radius: 6px; border: 1px solid #d1d5db; background: #ffffff; cursor: pointer; }
.weekly-actions button:disabled { opacity: 0.6; cursor: not-allowed; }
.cart-modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.45); padding: 20px; z-index: 9999; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.cart-modal.open { opacity: 1; pointer-events: auto; }
.cart-modal.closing { opacity: 0; pointer-events: none; }
.cart-dialog { background: #ffffff; max-width: 860px; width: 100%; border-radius: 8px; padding: 16px; box-shadow: 0 12px 30px rgba(0,0,0,0.2); transform: translateY(-18px); opacity: 0; transition: transform 0.28s ease, opacity 0.28s ease; }
.cart-modal.open .cart-dialog { transform: translateY(0); opacity: 1; }
.cart-modal.closing .cart-dialog { transform: translateY(-8px); opacity: 0; transition: transform 0.16s ease, opacity 0.16s ease; }
.cart-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cart-header h3 { margin: 0; }
.cart-close { border: none; background: transparent; font-size: 20px; cursor: pointer; }
.cart-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.cart-table th, .cart-table td { border: 1px solid #e5e7eb; padding: 8px; text-align: left; }
.cart-table th { background: #f8fafc; }
.cart-footer { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-top: 12px; }
.cart-footer .actions { display: inline-block;}
.cart-footer .actions button {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
#checkoutClearOrder {
  width: fit-content;
}
#checkoutClearOrder:hover {
  background: #b91c1c;
}
#checkoutSendOrder {
  border-color: #5b8d5b;
  background: #5b8d5b;
  color: #ffffff;
  width: fit-content;
}
#checkoutSendOrder:hover:not(:disabled) {
  background: #4a774a;
  border-color: #4a774a;
}
#checkoutSendOrder:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.order-contact { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.order-contact label { display: block; font-size: 0.9rem; margin-bottom: 4px; }
.order-contact input { width: 100%; padding: 8px; border: 1px solid #d1d5db; border-radius: 6px; }
.order-contact input.invalid { border-color: #dc2626; }
.field-error { color: #dc2626; font-size: 0.82rem; min-height: 1.1em; margin-top: 4px; }
.category-summary { font-size: 0.95rem; color: #374151; }
.category-summary div { margin-top: 4px; }
#grandTotal { font-size: 18px; font-weight: 600; margin-top: 8px; }
.checkout-page { margin-top: 12px; }
.checkout-footer { align-items: flex-start; }
.checkout-footer { display: block; }
.checkout-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
  align-items: start;
}
.checkout-summary-pane,
.checkout-note-pane { min-width: 0; }
.checkout-note-pane label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.checkout-note-pane textarea {
  width: 100%;
  min-height: 112px;
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-sizing: border-box;
  resize: vertical;
}
.checkout-order-note-count {
  font-size: 12px;
  color: #6b7280;
  text-align: right;
  margin-top: 4px;
}
.checkout-actions-column {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checkout-actions-column button { width: 100%; }
.checkout-page .order-contact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.checkout-success {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
  border-radius: 8px;
}
.checkout-success h3 { margin: 0 0 6px; }
.checkout-success p { margin: 0; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.category-tab { padding: 6px 10px; border-radius: 6px; border: 1px solid #d1d5db; background: #ffffff; cursor: pointer; }
.category-tab.active { background: #e2e8f0; }
.category-panel { display: none; }
.category-panel.active { display: block; }
.category-disclosure {
  margin: 8px 0 10px;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-left: 4px solid #5b8d5b;
  border-radius: 6px;
  background: #f8fafc;
  color: #374151;
  font-size: 0.9rem;
}
.checkout-note-info::before {
  content: "* "; /* Adds a space and the asterisk */
  color: red;
  /* You can add more styling here, e.g., font-weight: bold; */
}
.purchase-notes {
  margin-top: 0px;
  padding: 3px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #f8fafc;
}
.add-to-cart { padding: 6px 10px; border-radius: 6px; border: 1px solid #d1d5db; background: #ffffff; cursor: pointer; }
.product-qty, .cart-qty { width: 58px; padding: 4px 6px; }
.products-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; align-items: stretch; }
.product-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; height: 100%; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.product-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); border-color: #d1d5db; }
.product-card--coming { border-color: #cbd5e1; background: #f8fafc; }
.product-card--coming:hover { transform: none; box-shadow: none; border-color: #cbd5e1; }
.product-card-thumb-wrap { background: #f8fafc; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: center; min-height: 170px; }
.product-image-open { width: 100%; border: none; padding: 0; background: transparent; cursor: zoom-in; }
.product-card-thumb { width: 100%; max-height: 200px; object-fit: cover; display: block; }
.product-card-thumb--placeholder { width: 100%; height: 170px; display: flex; align-items: center; justify-content: center; color: #6b7280; font-size: 14px; }
.product-card-body { padding: 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card-name {
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}
.product-card-selected-variant {
  color: #4b5563;
  font-size: 12px;
  min-height: 1.1em;
}
.product-card-variant {
  color: #4b5563;
  font-size: 14px;
  display: -webkit-box;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 1.25em;
}
.product-card-variant-select-wrap {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: #4b5563;
}
.product-variant-select {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 6px 8px;
  background: #fff;
  color: #111827;
  font-size: 13px;
}
.product-card-description {
  color: #374151;
  font-size: 13px;
  line-height: 1.35;
}
.product-card-description.is-collapsed {
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.95em;
}
.product-card-description.is-expanded {
  display: block;
  overflow: visible;
  min-height: 0;
}
.product-desc-toggle {
  align-self: flex-start;
  padding: 0;
  border: none;
  background: transparent;
  color: #2563eb;
  font-size: 12px;
  cursor: pointer;
}
.product-desc-toggle:hover {
  text-decoration: underline;
}
.product-card-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #a7f3d0;
  font-size: 11px;
  font-weight: 600;
}
.product-card-badge[hidden] {
  display: none !important;
}
.product-card-badge--limited {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fca5a5;
}
.product-card-badge--sold-out {
  background: #f3f4f6;
  color: #374151;
  border-color: #d1d5db;
}
.product-card-badge--coming {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}
.product-card-badge--restock {
  background: #ecfeff;
  color: #155e75;
  border-color: #a5f3fc;
}
.product-card-badge--sale {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fdba74;
}
.product-card-price { font-weight: 700; color: #111827; }
.product-card-actions { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: auto; }
.product-card-actions label { display: grid; gap: 2px; font-size: 12px; color: #4b5563; }
.add-to-cart:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.no-match-block { padding: 12px; border: 1px dashed #d1d5db; border-radius: 8px; color: #6b7280; background: #fff; }

@media (max-width: 1280px) {
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .weekly-actions {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 8px;
  }
  .weekly-actions-right {
    justify-self: stretch;
    justify-content: flex-start;
  }
  .weekly-search {
    width: 100%;
  }
  .products-grid { grid-template-columns: 1fr; }
  .product-card-body { padding: 9px; }
  .product-card-actions { gap: 8px; }
  .product-qty { width: 64px; padding: 6px; }
  .add-to-cart { min-height: 38px; padding: 8px 12px; }
  .checkout-footer-main { grid-template-columns: 1fr; }
  .checkout-page .order-contact { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .category-tabs { gap: 6px; }
  .category-tab { padding: 6px 8px; font-size: 13px; }
  .product-card-thumb-wrap { min-height: 145px; }
  .product-card-thumb--placeholder { height: 145px; }
  .product-card-name { line-clamp: 1; -webkit-line-clamp: 1; min-height: 1.25em; }
  .product-card-description.is-collapsed { line-clamp: 2; -webkit-line-clamp: 2; min-height: 2.7em; }
  .product-card-actions { flex-direction: column; align-items: stretch; }
  .product-card-actions label { width: 100%; }
  .product-qty { width: 100%; box-sizing: border-box; }
  .add-to-cart { width: 100%; }
}

  .product-image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10010;
    padding: 20px;
  }
  .product-image-modal.open { display: flex; }
  .product-image-modal-dialog {
    position: relative;
    max-width: min(92vw, 1100px);
    max-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .product-image-modal-dialog img {
    max-width: 100%;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
  }
  .product-image-modal-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }
.toast { position: fixed; right: 20px; bottom: 20px; background: #111827; color: #ffffff; padding: 10px 14px; border-radius: 8px; opacity: 0; transform: translateY(8px); transition: opacity 0.2s ease, transform 0.2s ease; z-index: 10000; }
.toast.show { opacity: 1; transform: translateY(0); }

/* list2.php */
.list2-page { font-family: Arial, sans-serif; margin: 24px; }
.list2-page .tabs { display:flex; gap:8px; margin-bottom:16px; flex-wrap:wrap; }
.list2-page .tab { padding:8px 12px; border:1px solid #ccc; border-bottom: none; cursor:pointer; background:#f5f5f5; }
.list2-page .tab.active { background:#fff; font-weight:600; border-bottom:1px solid #fff; }
.list2-page .panel { border:1px solid #ccc; padding:12px; background:#fff; }
.list2-page table { width:100%; border-collapse:collapse; margin-top:8px; }
.list2-page th, .list2-page td { padding:8px; border:1px solid #eee; text-align:left; }
.list2-page form.inline { display:inline; margin:0; }
.list2-page .small { font-size:0.9em; color:#555; }
.list2-page .controls { margin-bottom:12px; display:flex; gap:8px; flex-wrap:wrap; }
.list2-page input[type="text"], .list2-page input[type="number"] { padding:6px; border:1px solid #ccc; border-radius:3px; }
.list2-page button { padding:6px 10px; border:1px solid #888; background:#f0f0f0; cursor:pointer; border-radius:3px; }
.list2-page .right { float:right; }
.list2-page .hidden { display:none; }

/* gallery.php + gallery2.php */
:root{
  --gap: 12px;
  --card-bg: #fff;
  --card-radius: 8px;
  --shadow: 0 6px 18px rgba(0,0,0,0.08);
  --accent: #0b76ef;
}
.gallery-page .tabs-inputs,
.gallery2-page .tabs-inputs { display:none; }
.gallery-page .tabs-labels,
.gallery2-page .tabs-labels { display:flex; gap:8px; flex-wrap:wrap; margin:0 0 16px 0; justify-content: center; }
.gallery2-page .tabs-labels { justify-content: flex-start; }
.gallery-page .tabs-labels label,
.gallery2-page .tabs-labels label {
  padding:8px 12px; border-radius:8px; background:#fff; border:1px solid rgba(0,0,0,0.06);
  cursor:pointer; font-weight:600; font-size:14px;
}
.gallery-page .tabs-labels label:hover,
.gallery2-page .tabs-labels label:hover { box-shadow:0 6px 18px rgba(0,0,0,0.06); }
.gallery-page .tabs-labels label.is-active,
.gallery2-page .tabs-labels label.is-active { background:var(--accent); color:#fff; border-color:transparent; }
.gallery-page .panels .panel,
.gallery2-page .panels .panel { display:none; }
.gallery-page .grid,
.gallery2-page .grid {
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap:var(--gap);
}
.gallery-page .card,
.gallery2-page .card {
  background:var(--card-bg);
  border-radius:var(--card-radius);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:transform .13s ease, box-shadow .13s ease;
}
.gallery-page .card { border:1px solid rgba(0,0,0,0.2); }
.gallery-page .card:hover,
.gallery2-page .card:hover { transform:translateY(-6px); box-shadow:0 10px 26px rgba(0,0,0,0.12); }
.gallery2-page .card { box-shadow:var(--shadow); }
.gallery-page .images-count{
  padding:8px 0;
  font-size:14px;
  color:#555;
  text-align:center;
  font-weight:800;
  background:#f0f0f0;
  margin:10px 0;
  border-radius:4px;
  border:1px solid rgba(0,0,0,0.2);
}
.gallery-page .thumb,
.gallery2-page .thumb {
  position:relative;
  width:100%;
  padding-top:66.666%;
  overflow:hidden;border:0;background:transparent;cursor:pointer;
}
.gallery-page .thumb img,
.gallery2-page .thumb img { position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;display:block; }
.gallery-page .meta,
.gallery2-page .meta { padding:10px 12px;display:flex;flex-direction:column;gap:6px; }
.gallery-page .title,
.gallery2-page .title { font-size:14px;font-weight:600;color:#111;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.gallery-page .caption,
.gallery2-page .caption { font-size:13px;color:#555;line-height:1.2;max-height:2.4em;overflow:hidden;text-overflow:ellipsis; }
.gallery-page .modal,
.gallery2-page .modal { position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,0.7);padding:20px;z-index:9999; }
.gallery-page .modal.open,
.gallery2-page .modal.open { display:flex; }
.gallery-page .modal-frame,
.gallery2-page .modal-frame { position: relative; max-width: calc(100% - 40px); max-height: calc(100% - 40px); }
.gallery-page .modal-img,
.gallery2-page .modal-img { max-width:100%;max-height:100%;box-shadow:0 10px 40px rgba(0,0,0,0.6);border-radius:6px;display:block; }
.gallery-page .modal-meta,
.gallery2-page .modal-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0.4), rgba(0,0,0,0));
  border-radius: 0 0 6px 6px;
  pointer-events: none;
}
.gallery-page .modal-meta-title,
.gallery2-page .modal-meta-title { font-size: 15px; font-weight: 700; line-height: 1.25; }
.gallery-page .modal-meta-caption,
.gallery2-page .modal-meta-caption { margin-top: 3px; font-size: 13px; line-height: 1.35; color: rgba(255,255,255,0.94); }
.gallery-page .modal-nav,
.gallery2-page .modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
}
.gallery-page .modal-nav:hover,
.gallery2-page .modal-nav:hover { background: rgba(0,0,0,0.65); }
.gallery-page .modal-nav[disabled],
.gallery2-page .modal-nav[disabled] { opacity: 0.4; cursor: default; }
.gallery-page .modal-nav-prev,
.gallery2-page .modal-nav-prev { left: 10px; }
.gallery-page .modal-nav-next,
.gallery2-page .modal-nav-next { right: 10px; }
.gallery-page .modal-close,
.gallery2-page .modal-close { position:fixed;top:18px;right:18px;color:#fff;font-size:20px;background:transparent;border:none;cursor:pointer; }

@media (min-width: 900px) and (min-aspect-ratio: 3/2) {
  .gallery-page .modal-frame,
  .gallery2-page .modal-frame {
    max-height: 88vh;
  }

  .gallery-page .modal-img,
  .gallery2-page .modal-img {
    max-height: 88vh;
  }
}

@media (min-width: 900px) and (max-aspect-ratio: 3/2) {
  .gallery-page .modal-frame,
  .gallery2-page .modal-frame {
    max-height: 82vh;
  }

  .gallery-page .modal-img,
  .gallery2-page .modal-img {
    max-height: 82vh;
  }
}
.gallery2-page { margin:0; font-family:system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial; background:#f5f7fa; color:#111; padding:24px; }
.gallery2-page h1 { margin:0 0 12px 0; font-size:20px; }

@media (max-width:420px){
  .gallery2-page { padding:12px; }
}

/* index.php consolidated non-conflicting styles */
*, *::before, *::after { box-sizing: border-box; }

.page {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  min-height: 100vh;
  border-radius: 6px;
}

header {
  padding: 18px 22px 0px 22px;
  background: #ffffff;
  color: #000000;
  border-bottom: 1px solid lightgrey;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

header h1 {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 600;
}

.checkerboard {
  background: conic-gradient(#fff 25%, #635281 0 50%, #fff 0 75%, #635281 0);
  background-size: 40px 40px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0px 12px;
  background: #ffffff;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid lightgrey;
}

main {
  display: block;
  gap: 16px;
  padding: 18px;
  flex: 1;
  align-items: start;
  background: #ffffff;
}

main h2 {
  width: 100%;
  text-align: center;
  margin-top: 0;
}

.col-left,
.col-right {
  width: 31%;
  background: #ffffff;
  border: 1px solid #eceff3;
  padding: 12px;
  border-radius: 6px;
}

.col-center {
  flex: 1;
  background: #ffffff;
  border: 1px solid #eceff3;
  padding: 12px;
  border-radius: 6px;
}

footer {
  padding: 12px 18px;
  text-align: center;
  background: #f1f5f9;
  color: #374151;
  font-size: 0.95rem;
  border-top: 1px solid #e6eef6;
}

.footer-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
}

.footer-link {
  text-decoration: none;
  color: #5b8d5b;
}

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

.grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
  margin-top: 20px;
}

.grid-item {
  padding: 15px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  border-radius: 6px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
}

.column {
  flex: 25%;
  max-width: 25%;
  padding: 0 4px;
}

.column img {
  margin-top: 8px;
  vertical-align: middle;
  width: 100%;
}

@media screen and (max-width: 800px) {
  .column {
    flex: 50%;
    max-width: 50%;
  }
}

@media screen and (max-width: 600px) {
  .column {
    flex: 100%;
    max-width: 100%;
  }
}

#sun_info {
  position: absolute;
  top: 35px;
  float: left;
  border: 1px solid #eee;
  padding: 5px;
}

.head-col-1 {
  flex: 1;
  text-align: left;
  width: 20%;
  min-width: 0;
}

.head-col-2 {
  flex: 2;
  text-align: center;
  width: 60%;
  min-width: 0;
}

.logo {
      box-shadow: 5px 5px 10px 2px rgba(0, 0, 0, 0.2);
      margin-bottom:30px;
}

.head-col-2 > svg {
  display: block;
  margin: 0 auto;
  width: min(100%, 545px);
  height: auto;
}

.head-col-3 {
  flex: 1;
  text-align: right;
  width: 20%;
  min-width: 0;
  align-self: flex-start;
}

.global-cart-wrap {
  position: sticky;
  top: 0;
  z-index: 200;
  display: inline-block;
  overflow: visible;
}

.global-cart-btn {
  margin-top: 0;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.global-cart-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.global-cart-btn:focus-visible,
.global-cart-qty-btn:focus-visible,
.global-cart-remove:focus-visible,
.global-cart-clear:focus-visible,
.global-cart-open-full:focus-visible,
.global-cart-go-list:focus-visible {
  outline: 2px solid #16a34a;
  outline-offset: 2px;
}

.global-cart-icon {
  line-height: 1;
}

.global-cart-badge {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  padding: 0 6px;
}

.global-cart-dropdown {
  margin-top: 0;
  margin-left: 0;
  width: min(360px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  text-align: left;
  overflow: hidden;
  z-index: 300;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.global-cart-dropdown.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.global-cart-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
}

.global-cart-items {
  max-height: 260px;
  overflow: auto;
}

.global-cart-empty {
  padding: 14px 12px;
  font-size: 13px;
  color: #6b7280;
}

.global-cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
}

.global-cart-item-name {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.global-cart-item-variant,
.global-cart-item-meta {
  font-size: 12px;
  color: #4b5563;
}

.global-cart-item-qty-controls {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.global-cart-qty-btn {
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  border-radius: 6px;
  width: 24px;
  height: 24px;
  line-height: 1;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
}

.global-cart-qty-value {
  min-width: 18px;
  text-align: center;
  font-size: 12px;
  color: #111827;
  font-weight: 600;
}

.global-cart-remove {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
}

.global-cart-remove:hover {
  color: #dc2626;
}

.global-cart-remove:focus-visible {
  color: #dc2626;
}

.global-cart-dropdown-footer {
  padding: 10px 12px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.global-cart-subtotal {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.global-cart-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.global-cart-clear,
.global-cart-open-full,
.global-cart-go-list {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 6px 10px;
  background: #fff;
  color: #111827;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}

.global-cart-open-full,
.global-cart-go-list {
  border-color: #16a34a;
  background: #16a34a;
  color: #fff;
}

.global-cart-clear:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.global-cart-go-list:disabled,
.global-cart-go-list[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.global-cart-badge.is-bump {
  animation: cartBadgeBump 0.34s ease;
}

@keyframes cartBadgeBump {
  0% { transform: scale(1); }
  35% { transform: scale(1.24); }
  70% { transform: scale(0.93); }
  100% { transform: scale(1); }
}

img,
svg {
  max-width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  body {
    overflow-x: hidden;
  }

  header {
    padding: 12px 10px 18px 10px;
  }

  main {
    padding: 12px;
  }
}

@media (max-width: 700px) {
  div.container,
  div.page {
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    min-height: 100vh;
  }

  header {
    flex-direction: column;
    gap: 8px;
  }

  .head-col-1 { order: 1; }
  .head-col-2 { order: 2; }
  .head-col-3 { order: 3; }

  .head-col-1,
  .head-col-2,
  .head-col-3 {
    width: 100%;
    text-align: center;
  }

  .global-cart-wrap {
    position: relative;
    top: auto;
    z-index: 200;
  }

  .global-cart-dropdown {
    width: min(360px, calc(100vw - 32px));
    right: 50%;
    transform: translate(50%, -8px);
    top: calc(100% + 8px);
  }

  .global-cart-dropdown.is-open {
    transform: translate(50%, 0);
  }

  #sun_info {
    position: static;
    top: auto;
    float: none;
    display: inline-block;
    margin: 0 auto;
    max-width: calc(100% - 24px);
    box-sizing: border-box;
    text-align: left;
  }

  nav {
    justify-content: center;
    gap: 6px;
  }

  nav a.button {
    font-size: 1rem;
    padding: 8px 10px;
  }

  footer {
    padding: 12px;
  }

  .footer-links {
    gap: 8px 10px;
  }

  .footer-link {
    font-size: 0.95rem;
  }
}
.modal {
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.7);
  padding: 20px;
  z-index: 9999;
}
.modal[hidden] {
  display: none !important;
}
.modal.show,
.modal.open {
  display: flex;
}
.modal-content {
  background: #fff;
  border-radius: 8px;
  max-width: 35vw;
  max-height: 92vh;
  overflow: auto;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  padding: 24px 18px;
  margin:auto;
}
.modal-header button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
#checkoutTermsModal {
  max-width: 100%;
}