/* =========================
   ROOT VARIABLES
========================= */
:root {
  --tenant-primary: #000000;
  --tenant-secondary: #ffffff;
  --tenant-tertiary: #111111;

  --bg-color: #ffffff;
  --border-color: #e6e6e6;
  --muted-color: #777777;

  --accent: #cfa84a; /* fallback */
  --poweredby: 10px;
} 

/* =========================
   RESET
========================= */
* {
  box-sizing: border-box;
}

body {
padding-top:70px;
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg-color);
  color: #111;
  scroll-behavior: smooth;
}

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

a:hover {
  text-decoration: underline;
}

/* =========================
   HEADER
========================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 75px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0 16px;

  background: var(--tenant-primary);
  color: var(--tenant-secondary);

  z-index: 10000;
}
/* =========================
   BRAND
========================= */
.brand {
  display: flex;
margin-right:10px;  
align-items:center;
flex-direction: column;
gap:6px;
min-width:max-content;
}

.brand-logo-img {
  height: 50px;
 width:auto;
}


.powered-by-block {
  display:inline-flex;
 margin-top:-5px;
  flex-direction:row;
  align-items: center;     /* vertical centering */
  justify-content:flex-start; /* horizontal centering */
  pointer-events: auto;
  line-height: 1;          /* remove baseline weirdness */
  opacity: 0.8;
  text-decoration: none;
  color: var(--tenant-secondary);
  transition: opacity 0.2s ease;
  white-space: nowrap;
  gap:3px;
  font-size:var(--poweredby);
}

.powered-by-block:hover {
  color: var(--accent);
 cursor:pointer;
}

.power-icon {
  display:flex;
  align-items: center;
  justify-content:center;
}

.power-icon svg {
  display:block;
  flex-shrink:0;
  height:var(--poweredby);
  width:var(--poweredby);
}

/* =========================
   NAV
========================= */
.main-nav {
  position:fixed;
  right:65px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-weight: 500;
  color: var(--tenant-secondary);
}

.nav-item {
  position: relative;
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  min-width: 260px;
  background: #ffffff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  z-index: 1000;
}

.nav-item:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  color: #111;
}

.dropdown-menu a:hover {
  color: var(--tenant-primary);
}

.dropdown-tenant-name {
  font-size: 12px;
  font-weight: 600;
  margin-top: 14px;
  color: #888;
}

/* =========================
   OVERLAY
========================= */
#overlay {
  position: fixed;
  inset: 0;
  background: var(--tenant-tertiary);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9997;
}

#overlay.active {
  opacity: 0.6;
  pointer-events: auto;
}
/* =========================
   CART DRAWER
========================= */
#cart-drawer {
  position: fixed;
  top: 75px;
  right: 0;
  width: 100%;
  max-width: 500px;
  height: calc(100vh - 60px);
  background: var(--tenant-tertiary);
  color: var(--tenant-secondary);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  font-family: system-ui, sans-serif;
  overscroll-behavior: contain;
}
#cart-drawer.active {
  transform: translateX(0);
}
/* =========================
   HEADER (INLINE CLOSE)
========================= */
.cart-header {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding:20px;
  margin-bottom:10px;
}

.cart-header h3 {
  font-size: 20px;
  margin: 0;
}
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px;
  overscroll-behavior: contain;
}
.cart-body::-webkit-scrollbar {
  width: 6px;
}

.cart-body::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
}
.cart-footer {
  flex-shrink: 0;
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: var(--tenant-tertiary);
}
.cart-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--tenant-secondary);
  cursor: pointer;
  opacity: 0.7;
  transition: 0.2s;
}
.cart-close:hover {
  opacity: 1;
}


/* =========================
   CAMPAIGN BLOCK
========================= */
.cart-campaign {
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cart-campaign-header {
  font-weight: 600;
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  font-variant-numeric: tabular-nums;
}


/* =========================
   DESIGN LEVEL
========================= */
.cart-design-header {
  font-size: 15px;
  font-weight: 600;
  margin-top: 8px;
}


/* =========================
   TREE STRUCTURE
========================= */

/* GARMENT LEVEL */
.cart-garment {
  margin-left: 10px;
  padding: 4px 0 0 0;
  position: relative;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.cart-garment::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 14px;
  width: 12px;
  height: 12px;
  border-left: 1px solid rgba(255,255,255,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

.cart-garment-header {
  font-size: 13px;
  opacity: 0.75;
  margin-bottom: 6px;
}


/* =========================
   VARIANT LEVEL (GRID LOCKED)
========================= */
.cart-variant {
  margin-left: 15px;
  position: relative;
  border-left: 1px solid rgba(255,255,255,0.06);

  display: grid;
  grid-template-columns: 1fr 65px 95px 36px;
  column-gap: 12px;
  align-items: center;

  padding: 6px 0;
}

.cart-variant::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-left: 1px solid rgba(255,255,255,0.25);
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

.cart-variant-label {
  font-size: 13px;
  opacity: 0.9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* =========================
   VARIANT CONTROLS (COLUMN BASED)
========================= */

/* Quantity */
.cart-variant input[type="number"] {
  width: 65px;
  padding: 6px;
  border-radius: 6px;
  border: none;
  text-align: center;
  font-size: 12px;
}

/* Price */
.cart-variant-price {
  text-align: right;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* Delete */
.cart-variant button {
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;

  width: 28px;
  height: 28px;

  border-radius: 6px;
  cursor: pointer;

  transition: 0.2s;
  justify-self: end;
}

.cart-variant button:hover {
  background: rgba(255,255,255,0.2);
}


/* =========================
   SUMMARY
========================= */
.cart-summary {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin: 6px 0;
  font-variant-numeric: tabular-nums;
}

.cart-summary.total {
  font-size: 18px;
  font-weight: 700;
  margin-top: 12px;
}


/* =========================
   CHECKOUT BUTTON
========================= */
.checkout-btn {
  width: 100%;
  margin-top: 16px;
  padding: 12px;

  background: var(--tenant-primary);
  color: var(--tenant-secondary);

  border: none;
  border-radius: 10px;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;
  transition: 0.2s;
}

.checkout-btn:hover {
  opacity: 0.9;
}

/* =========================
   MOBILE NAV
========================= */
#mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: var(--tenant-tertiary);
  color: var(--tenant-secondary);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 9998;
  padding: 90px 24px 24px;
  overflow-y: auto;
}

#mobile-nav.active {
  transform: translateX(0);
}

#mobile-nav a {
  display: block;
  margin-bottom: 12px;
  color: var(--tenant-secondary);
}

/* =========================
   HAMBURGER
========================= */
.hamburger {
  right:55px;
  position:fixed;
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--tenant-secondary);
}

/* =========================
   MOBILE CONTROLS
========================= */
.mobile-controls {
  display: none;
  align-items: center;
  gap: 12px;
}
.cart-icon {
  position:fixed;
  right:29px;
  width: 20px;
  height: 20px;
  display: block;
  stroke: var(--tenant-secondary);
  stroke-width: 21;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-button:hover {
  transition: 0.2s;
  opacity:0.6;
}
.cart-button {
  position: relative; 
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
#cart-count.cart-badge {
 position:fixed;
 right:20px;
 top:20px;
 color:var(--tenant-primary); 
 font-size:10px;
 vertical-align: top;
 background-color:var(--tenant-secondary);
 padding:.75px 2.5px;
 border-radius:20px;
}
/* =========================
   CONTENT
========================= */
.content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* =========================
   GRID
========================= */
.grid {
  display: grid;
  gap: 26px;
  margin-top: 30px;
  grid-template-columns: repeat(3, 1fr);
}

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

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

/* =========================
   PREMIUM PRODUCT CARD
========================= */

.product-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.08);
}

.product-media {
  background: #f7f7f7;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}

.product-image {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-info h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.product-price {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.product-card form {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-card label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-card select,
.product-card input[type="number"] {
  padding: 12px 14px;
  font-size: 14px;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  transition: border 0.2s ease;
}

.product-card select:focus,
.product-card input:focus {
  outline: none;
  border-color: var(--tenant-primary);
}

.product-card button {
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: var(--tenant-primary);
  color: var(--tenant-secondary);
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.product-card button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}
/* =========================
   CAMPAIGN TITLE
========================= */
.campaign-center{
  position: static;          /* remove absolute positioning */
  transform: none;
  left: auto;
  width: 100%;
  text-align: left;
  align-items: flex-start;
}
.campaign-title {
  text-transform:uppercase;
  font-size:30px;
  font-weight: 600;
  color:var(--tenant-secondary);
  white-space: nowrap;
}
/* =========================
   MOBILE NAV HARD FIX
========================= */

/* FORCE desktop */
.main-nav {
  display: flex !important;
}

.mobile-controls {
  display: none !important;
}

/* FORCE mobile behavior */
@media (max-width: 900px) {

  .main-nav {
    display: none !important;
  }

  .mobile-controls {
    display: flex !important;
    align-items: center;
    gap: 12px;
  }

  .hamburger {
    display: flex !important;
  }
}
/* =========================
   GLOBAL OVERFLOW FIX
========================= */

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Prevent any element from breaking layout */
* {
  max-width: 100%;
}

/* =========================
   GRID FIX
========================= */

.grid {
  width: 100%;
  max-width: 100%;
}

/* Ensure true single column mobile */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr !important;
  }
  .campaign-center{
 position: absolute;      /* remove from flow */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    text-align: center;
}

}

/* =========================
   PRODUCT CARD FIX
========================= */

.product-card {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Images never overflow */
.product-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   FORM ELEMENT FIX
========================= */

.product-card select,
.product-card input,
.product-card button {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* =========================
   SAFETY NET (common culprit)
========================= */

/* Fix long text overflow */
.product-card h3 {
  word-wrap: break-word;
  overflow-wrap: break-word;
}
/* =========================
   VARIANT INLINE LAYOUT
========================= */

.variant-row {
  display: flex;
  gap: 12px;
  margin-bottom: 4px;
}

.variant-field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.variant-field label {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}
.single-variant-display {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f5f5f5;
  font-size: 14px;
  font-weight: 500;
}
/* Stack on small mobile */
@media (max-width: 480px) {
  .variant-row {
    flex-direction: column;
  }
}
.receipt-container {
  max-width: 720px;
  margin: 40px auto;
  background: #fff;
  padding: 30px;
  border: 1px solid #eee;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
/* --- Campaign Level --- */
.receipt-campaign {
  font-weight: bold;
  font-size: 16px;
  margin-top: 20px;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
}

.receipt-campaign:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}
.receipt-campaign span {
  font-weight: 600;
}
/* --- Design Level --- */
.receipt-design {
  margin-left: 15px;
  margin-top:10px;
  font-weight: 600;
  color: #444;
}

/* --- Product Level --- */
.receipt-product {
  margin-left: 30px;
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color:#222;
}

/* Left side (name/variant) */
.product-left {
  color: #333;
}

/* Right side (price) */
.product-right {
  font-weight: 500;
  min-width: 80px;
  text-align: right;
}
/* Quantity styling */
.qty {
  margin-left: 6px;
  color: #777;
  font-size: 13px;
}
.receipt-logo {
  width: 160px;
  margin-bottom: 15px;
}
.receipt-header h1 {
  margin: 0;
}

.receipt-meta {
  display: flex;
  justify-content: space-between;
  margin: 20px 0;
  font-size: 14px;
  color: #555;
}

.receipt-items {
  border-top: 1px solid #eee;
}


.item-title {
  font-weight: 600;
}

.item-variant {
  font-size: 13px;
  color: #777;
}

.item-qty {
  font-size: 13px;
}

.receipt-header {
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}
.receipt-summary {
  margin-top: 25px;
  border-top: 1px solid #eee;
  padding-top: 10px;
}
.receipt-summary div {
  display: flex;
  justify-content: space-between;
  margin: 5px 0;
}

.receipt-summary .total {
  font-weight: bold;
  font-size: 16px;
  margin-top: 10px;
  border-top: 1px solid #eee;
  padding-top: 8px;
}

.receipt-actions {
  margin-top: 25px;
  justify-content: space-between;
  display: flex;
  gap: 10px;
}
@media print {
  header,
  .receipt-actions {
    display: none;
  }

  .receipt-container {
    box-shadow: none;
    border: none;
    margin: 0;
  }
}
