:root{
	--bg: #84C1FF;
	--NavBarText: #000000;
	--NavBarHighlight: #ffff80;
	--NavBarNeadingBackground: #2A9EE9;
	--NavBarHeadingText: Black;
	--Debug: 0px;
}
html, body {
  background-color: #84C1FF;/*#6060DB;*/
}

body {
	display: flex;
  flex-direction: column;
  min-height: 100vh;
  
  padding: 10px;
  margin: 10px;
  font-family: 'Roboto', system-ui, sans-serif;
}

/**** HEADER AND LOGIN ***/
    .SiteHead {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 2px;
      border: dashed 0px red;
    }
    .LogoCol {
      flex: 0 0 auto;
    }
    .SiteLogo {
      width: 220px;
    }
    .TextCol {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center; 
    }
    .SiteText {
      font-size: 3.5rem;
      font-weight: 700;
      color: #0066CC;
      text-shadow: 2px 2px 2px #FFFDFC;
      line-height: 1;
      margin: 0;
    }
    .SiteSubtext {
      font-size: 1.5rem;
      color: #0482FF;
      /*text-shadow: 0 0 15px gray;*/
      margin-top: 4px;
      margin-left: 30px;
    }
   
/**** Standard Buttons ***/

.StandardMenu{
	display: flex;
  align-items: flex-start;
  gap: 1px;
  padding: 1px;
	border: var(--Debug) dashed yellow;
	padding-bottom: 5px;
}
.link_button {
    width: 110px;                    /* slightly wider for "Delete?" */
    display: inline-block;           /* important for <a> tag */
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: normal;
    color: #000;
    background: #AAC2DF;
    padding: 8px 12px;               /* much better vertical padding */
    border: solid 1px #333;
    border-radius: 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 
                0 1px 3px rgba(0, 0, 0, 0.2);
    margin: 2px 5px 5px 2px;
    cursor: pointer;
    transition: background 0.2s;
    line-height: 1.2;                /* better text centering */
}

.link_button:hover {
    background: #fff;
    color: black;
}

.link_button.inactive {
    background: #ABABC9;
    color: #444;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}
/**** Fun Buttons ***/

.btn-primary {
  background: #00ff88;
  color: #000;
}
.btn-primary:hover {
  background: #ff00aa;
  color: white;
  transform: scale(1.1);
}

/***************************************************************/
.MainMenu{
	display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 1px;
	border: 0px solid #2D2DC4;
	border-radius: 8px;;
	margin-bottom: 5px;
}
.MainMenuButton{
	padding: 5px 5px;
  font-size: 16px;
  border: 2px solid black;
  border-radius: 20px;
  background: #00FF88;
  color: black;
  cursor: pointer;
  text-align: center;
  min-width: 100px;
  margin-bottom: 10px;
  text-decoration: none;	
}
.MainMenuButton:hover {
    background: #FF00AA;
}
.MainMenuButton.inactive {
  background: #ABABC9;
  color: #444;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.6;
  transform: none;
  border-radius: 15px;
}
.MainMenuButton.selected {
  background: white !important;
  color: #000000;
  cursor: not-allowed;
  pointer-events: none; /* prevents clicks */
  transform: none;
}
/****************************************************/

footer {
	/*border: 1px dashed white;*/
	padding: 0px;
	margin-top: 5px;
	position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: #fff;/*var(--bg);*/
  color: var(--bd);
  text-align: center;
  line-height: 0.5;

}


.DataDiv {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;       /* Center on page */
    gap: 20px;
    max-width: 520px;              /* ? Key: Make all blocks same width */
    width: 100%;                   /* Makes it consistent */
    margin: 35px auto;             /* Centers + adds vertical spacing */
    padding: 15px 20px;
    box-sizing: border-box;
}

.DataDivData {
	border: 1px dashed yellow;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;                   /* Takes remaining space */
  max-width: 260px;             /* Prevents text from stretching too far */
  gap: 20px;
  line-height: 1.5;
}

.DataDivData strong {
    font-size: 1.15em;
    margin-bottom: 6px;
}
.CraftImages {
    width: 220px;                  /* Slightly larger for better look */
    border: 6px solid #f8f8f8;
    border-radius: 8px;
    padding: 6px;
    background: #fff;
    box-shadow: 
        0 0 0 1px #ccc,
        0 4px 10px rgba(0,0,0,0.3);
    flex-shrink: 0;                /* Prevents image from shrinking */
}
/*************************************************************/
#msg {
    display: none;
    padding: 10px;
    margin: 10px 0;
    border-radius: 10px;
    border: 1px solid black;
   
}

.msg_success {
    background: green !important;
    color: yellow;
     background: green !important;
}

.msg_error {
    background: red;
    color: white;
}

/**************************************************************************
************************************************************************/
.confirm-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9998;
}

.confirm-box {
  position: fixed;
  top: 200px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 25px 30px;
  border-radius: 12px;
  border: 2px solid red;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  min-width: 280px;
  text-align: center;
  z-index: 9999;
  color: black;
}

.confirm-buttons {
  margin-top: 20px;
}

.confirm-buttons button {
  padding: 10px 24px;
  margin: 0 8px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
 }
.confirm-buttons button:first-child {
  background: #d32f2f;
  color: white;
}

.confirm-buttons button:last-child {
  background: #666;
  color: white;
}


.LoginCol {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.LoginDiv {
    background: white;
    color: #333;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.95em;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: left;
    min-width: 170px;
}

/* CART STYLES */
.CartLink {
    position: relative;
    text-decoration: none;
    display: inline-block;
}

.CartIcon img {
    transition: transform 0.2s ease;
}

.CartLink:hover .CartIcon img {
    transform: scale(1.1);
}

.CartCount {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #e74c3c;
    color: white;
    font-size: 0.82em;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
    border: 2.5px solid white;
    line-height: 1;
    transition: all 0.3s ease;
    margin-top:50px;
}

#ShowOrderDetails {
    display: none;       /* Keeps it hidden on page load */
    width: max-content;  /* Forces the width to match the inner content */
    max-width: 90%;      /* Optional safety net: prevents it from breaking the screen on mobile */
    
    margin-top: 10px;
    margin-left: 10px;
    padding: 5px;
    border: 2px solid black; 
    border-radius: 10px;
}

.cart-status-msg {
    margin-top: 5px;
    font-size: 0.85rem;
    font-weight: bold;
}
.cart-status-msg.msg-success {
    color: #2e7d32; /* Green */
}
.cart-status-msg.msg-error {
    color: #d32f2f; /* Red */
}

.forsale-wrapper {
  display: inline-block !important;
  white-space: nowrap !important;
}

#xx {
  display: inline !important;
}