* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f9f9fb;
  color: #222;
}

/* COLORS */
:root {
  --orange: #ff7a00;
  --orange-dark: #e06600;
  --purple: #6a5cff;
  --purple-dark: #584be0;
  --bg-soft: #f9f9fb;
  --card-bg: #ffffff;
  --border-soft: #e2e2ee;
}

/* HEADER */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e2ee;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.04em;
}
.main-nav button,
.main-nav .nav-link {
  margin-left: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #d0d0e5;
  background: #fff;
  cursor: pointer;
  text-decoration: none;
  color: #222;
  font-size: 14px;
}
.main-nav button:hover,
.main-nav .nav-link:hover {
  background: #f0edff;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--orange) 0%, var(--purple) 100%);
  color: #fff;
  padding: 40px 20px 50px;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.hero-text h1 {
  margin: 0 0 10px;
  font-size: 32px;
}
.hero-text p {
  margin: 0 0 18px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 10px;
}
.hero-side {
  min-width: 220px;
  display: flex;
  justify-content: flex-end;
}
.hero-badge {
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.4);
}

/* BUTTONS */
.btn-primary {
  background: var(--orange);
  border: 1px solid var(--orange-dark);
  color: #fff;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--orange-dark);
}
.btn-secondary {
  background: #fff;
  border: 1px solid #fff;
  color: var(--purple);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  cursor: pointer;
}
.btn-secondary:hover {
  background: #f5f3ff;
}

/* BIG, EASY CLOSE BUTTON */
.modal-close {
  z-index: 9999;          /* bring it above everything */
  position: absolute;	
  font-size: 34px;          /* bigger X */
  width: 44px;              /* large tap target */
  height: 44px;
  line-height: 44px;
  text-align: center;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  color: #333;
  top: 6px;
  right: 6px;
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(0,0,0,0.15);
}

#modal-cancel {
  border-radius: 999px;
  border: 1px solid var(--orange);
  background: #fff;
  color: var(--orange);
  padding: 8px 18px;
  font-size: 14px;
  cursor: pointer;
  margin-left: 10px;
}

#modal-cancel:hover {
  background: #fff4e6; /* light orange tint */
}


/* SEARCH */
.search-section {
  max-width: 1200px;
  margin: 20px auto 10px;
  padding: 0 20px;
}
#search-input {
  width: 100%;
  max-width: 420px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  font-size: 14px;
  outline: none;
}
#search-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 2px rgba(106,92,255,0.15);
}

/* CATEGORY BAR */
.category-bar {
  max-width: 1200px;
  margin: 10px auto 10px;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.category-btn {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  color: #444;
}
.category-btn.active {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple-dark);
}

/* PRODUCT GRID */
.product-grid {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 20px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.product-card {
  background: var(--card-bg);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}

/* IMAGE WRAPPER */
.product-card-image-wrap,
.modal-image-wrap {
  position: relative;
  overflow: hidden;
}


/* SUPER‑DENSE FULL‑COVERAGE WATERMARK (FIXED) */
.watermark-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;

  /* Keep your diagonal stripes */
  background-image:
    repeating-linear-gradient(
      -45deg,
      rgba(0, 0, 0, 0.12) 0,
      rgba(0, 0, 0, 0.12) 1px,
      transparent 1px,
      transparent 16px
    );
}

.watermark-overlay::before {
  content: "WOOGSART.COM";
  position: absolute;
  inset: 0;
  display: block;

  /* Make the text act like a tiled pattern */
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 3px;
  color: rgba(0, 0, 0, 0.28);

  /* Create a repeating text tile */
  background-image: repeating-linear-gradient(
      -35deg,
      rgba(0,0,0,0) 0,
      rgba(0,0,0,0) 30px,
      rgba(0,0,0,0.28) 30px,
      rgba(0,0,0,0.28) 32px
  );

  /* Overlay the text itself as a repeating pattern */
  background-size: 120px 40px;
  background-repeat: repeat;

  /* Position the text inside the tile */
  padding-top: 10px;
  padding-left: 10px;

  mix-blend-mode: multiply;
}






/* PRODUCT CARD IMAGE */
.product-card img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}
.product-card:hover img {
  transform: scale(1.04);
}

/* PRODUCT CARD BODY */
.product-card-body {
  padding: 10px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-card-title {
  font-weight: 600;
  font-size: 15px;
}
.product-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #555;
}
.product-card-price { font-weight: 600; }
.product-card-type { font-style: italic; }
.product-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.product-card-actions button {
  flex: 1;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--purple);
  background: var(--purple);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}
.product-card-actions button:hover {
  background: var(--purple-dark);
}

/* MODALS */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
}
.modal.hidden { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.modal-content {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
}
.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
}
.modal-body {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.modal-image-wrap img {
  width: 100%;
  border-radius: 10px;
}

/* CART */
#cart-items { margin-top: 10px; }
.cart-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}
.cart-item button {
  border: none;
  background: transparent;
  color: #c00;
  cursor: pointer;
}

/* CART THUMBNAIL FIX */
.cart-thumb-wrap {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
}
.cart-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CART SUMMARY */
.cart-summary {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-note {
  margin-top: 10px;
  font-size: 12px;
  color: #666;
}

/* NEWSLETTER */
.newsletter {
  background: #ffffff;
  border-top: 1px solid var(--border-soft);
  padding: 30px 20px 40px;
}
.newsletter-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.newsletter-inner h2 {
  margin-bottom: 6px;
}
.newsletter-inner p {
  margin-top: 0;
  margin-bottom: 18px;
  color: #555;
}
.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.newsletter-form input {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  min-width: 220px;
}

/* FOOTER */
.site-footer {
  background: #111827;
  color: #e5e7eb;
  padding: 30px 20px 10px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.site-footer h4 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.site-footer a {
  display: block;
  color: #9ca3af;
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 4px;
}
.site-footer a:hover {
  color: #e5e7eb;
}
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 12px;
  color: #6b7280;
  border-top: 1px solid #1f2933;
  padding-top: 8px;
}

/* ADMIN (unchanged, no watermark) */
.admin-login-wrapper {
  display: flex;
  justify-content: center;
  padding: 60px 20px;
}
.admin-login-card {
  background: #fff;
  border-radius: 14px;
  padding: 30px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  text-align: center;
}
.admin-login-card h2 {
  margin-top: 0;
}
.admin-error {
  color: #c00;
  margin-bottom: 10px;
}
.admin-back-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--purple);
}

/* ADMIN TOPBAR */
.admin-topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-soft);
  padding: 12px 20px;
}
.admin-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-logo {
  font-weight: 700;
  font-size: 18px;
}
.admin-topnav a {
  margin-left: 12px;
  color: var(--purple);
  text-decoration: none;
}
.admin-topnav a:hover {
  text-decoration: underline;
}

/* ADMIN LAYOUT */
.admin-layout {
  max-width: 1200px;
  margin: 20px auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 0 20px;
}

/* SIDEBAR */
.admin-sidebar {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  padding: 10px 0;
}
.admin-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.admin-sidebar li {
  padding: 12px 18px;
  cursor: pointer;
  font-size: 14px;
}
.admin-sidebar li.active {
  background: var(--purple);
  color: #fff;
}

/* MAIN CONTENT */
.admin-main {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  padding: 20px;
}
.admin-section {
    display: none;
}

.admin-section:not(.hidden) {
    display: block;
}
.admin-section h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

/* DASHBOARD CARDS */
.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.admin-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  text-align: center;
}
.admin-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #555;
}
.admin-card p {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

/* LISTS */
.admin-list {
  margin-bottom: 20px;
}
.admin-list-item {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
}

/* FORMS */
/* CLEAN LEFT-ALIGNED ADMIN FORM */


.admin-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 420px;
}

.admin-form label {
  font-weight: 600;
  margin-bottom: -6px;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  font-size: 14px;
}

.admin-form textarea {
  height: 80px;
}

.drop-zone {
  width: 100%;
  border: 2px dashed var(--border-soft);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  color: #777;
}

.drop-zone.dragover {
  border-color: var(--purple);
  background: #faf5ff;
}

.btn-primary {
  margin-top: 10px;
}







.admin-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
}
.drop-zone {
  border: 2px dashed var(--border-soft);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  color: #777;
}
.drop-zone.dragover {
  border-color: var(--purple);
  background: #faf5ff;
}

/* RESPONSIVE */
@media (max-width: 800px) {
  .modal-body { flex-direction: column; }
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .admin-layout { grid-template-columns: 1fr; }
}

/* --- Improve Orders Section Visibility --- */
#admin-orders {
    height: auto !important;
    min-height: 600px;
    overflow: visible !important;
}

#admin-orders .orders-table {
    max-height: none !important;
}

/* CART MODAL FIXED STYLING */
#cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#cart-modal.hidden {
    display: none;
}

#cart-modal .modal-content {
  background: #e8fff1;   /* light mint green */
  color: #000;           /* dark text for readability */
  border-radius: 12px;
  padding: 25px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 0 40px rgba(0,0,0,0.3);
}

.hidden {
    display: none;
}


