body {
	font-family: sans-serif;
	margin: 0;
	padding: 0;
	background: #dde1e4;
}

header {
	background: #000020;
	color: white;
	padding: 1rem;
}

.header-bar {
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
}


.header-bar h1 {
	margin: 0;
	font-size: 1.8rem;
}

.logo {
	position: absolute;
	left: 0;
	top: 0;
	height: 50px;
	width: auto;
}

h2 {
	margin-left: 1rem;
}


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

.product-card {
	background: white;
	border: solid #fafbfb;
	border-color: white;
	width: 240px;
	text-align: center;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	border-radius: 20px;
	overflow: hidden;
	background-color: #DDE1E4;
}

.product-card img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
	border-top-left-radius: 20px;
	border-top-right-radius: 20px;
}


.loginButton {
	background-color: #001050;
	color: white;
	cursor: pointer;
	border: 2px solid #ccc;
	border-radius: 10px;
	border-color: #DDE1E4;
	font-size: 1.0rem;
}

.loginButton:hover {
	background-color: green;
}

.forgotPassword {
	color: #DDE1E4;
}


footer {
	background: #000020;
	color: white;
	text-align: center;
	padding: 1rem;
	position: relative; /* fixed; */
	bottom: 0px;
	left: 0px;
	right: 0px;
	margin-bottom: 0px;
}

footer .policy-links a {
	color: #ffffff;
	text-decoration: none;
	margin: 0 10px;
	font-size: 0.9rem;
}

footer .policy-links a:hover {
	text-decoration: underline;
}

.tab-nav {
	display: flex;
	justify-content: center;
	background:  #000020;
	padding: 0.5rem;
}

.tab-btn {
	background: #000020;
	color: #DDE1E4;
	margin: 0 5px;
	padding: 0.5rem 1rem;
	cursor: pointer;
	font-size: 1rem;
	border: 2px solid #ccc;
	border-color: #DDE1E4;
	border-radius: 10px;
}

.tab-btn:hover {
	background: #0050f0;
}

.tab-btn.active {
	background: #00c0c0;
}

.tab-content {
	display: none;
	padding: 1rem;
}

.modal {
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: rgba(0,0,0,0.5);
	display: flex; 
	justify-content: center; 
	align-items: center;
	z-index: 1000;
    }

.modal-content {
	background: white;
	padding: 2rem;
	border-radius: 10px;
	width: 90%;
	max-width: 500px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close {
	float: right;
	cursor: pointer;
	font-size: 1.5rem;
}

.storeBuyButton {
	background-color: #001050;
	color: white;
	border: 2px solid #ccc;
	padding: 0.5rem 0.5rem 0.5rem 0.5rem;
	cursor: pointer;
	border-radius: 10px;
	margin-right: 0.5rem;
	margin-bottom: 1.0rem;
}

.storeBuyButton:hover {
	background-color: green;
}


.storeDetailsButton {
	background-color: #001050;
	color: white;
	border: 2px solid #ccc;
	padding: 0.5rem 0.5rem 0.5rem 0.5rem;
	cursor: pointer;
	border-radius: 10px;
	margin-left: 0.5rem;
	margin-bottom: 1.0rem;
}

.storeDetailsButton:hover {
	background-color: #0050F0;
}

.grandParentContainer {
	display: flex;
        align-items: center;
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
        justify-content: center;
	background-color: #000020;
	background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        margin: 0;
        color: white;
        padding: 20px;
        text-align: center;
	flex-direction: column;     	/* stack children vertically */
	align-items: center;        	/* center them horizontally */
	justify-content: flex-start;	/* push them toward the top */
}

.parentContainer {
	display: block;
	text-align: center;
        padding: 20px;
        border: 3.2px solid #ccc;
        border-radius: 8px;
        background-color: #001050;
	margin-top: 6.0rem;

}

.introLogo {
	margin-top: 6rem;
	margin-bottom: 6.0rem;
}

.storeGrandParentContainer {
	display: block;
}

.storeArea {
	display: none;
}

.logoutButton {
	display: flex;
	background-color: #000020;
	color: white;
	right: 0;
	position: absolute;
	border-color: #DDE1E4;
	border-radius: 10px;
	border: 2px solid #ccc;
	padding: 0.5rem 0.5rem 0.5rem 0.5rem;
	cursor: pointer;
	border-radius: 10px;
}

.logoutButton:hover {
	background: #0050F0;
}

form {
	display: none;
	margin-top: 10px;
	text-align: left;
}

form.active {
	display: block;
}

form h2 {
	text-align: center;
}

form label {
	display: block;
	margin-top: 10px;
	font-weight: bold;
}

form input[type="text"],
form input[type="password"],
form input[type="email"] {
	padding: 8px;
	width: 100%;
	box-sizing: border-box;     /* Prevents overflow by including padding in width */
	border: 1px solid #ccc;
	border-radius: 5px;
	margin-top: 4px;
	background-color: #FFFFFF;
}

form input[type="submit"] {
	background-color: rgb(125, 125, 150);
	width: 100%; 
	height: 40px;
	color: white;
	margin-top: 15px;
	font-weight: bold;
}

form button {
	background-color: rgb(125, 125, 15);
	width: 100%;
	height: 40px;
	color: white;
	margin-top: 15px;
	font-weight: bold;
	font-size: 24px;
}

.toggle-buttons {
	display: flex;
        justify-content: center;
        gap: 20px;
        margin-bottom: 10px;
}

.toggle-buttons button {
	background-color: transparent;
        border: 2px solid white;
        color: white;
        padding: 8px 16px;
        border-radius: 5px;
        cursor: pointer;
}

.toggle-buttons button.active {
	background-color: rgb(75, 75, 100);
}

.error {
	color: red;
	display: none;
}

.registrationSent {
	color: white;
	display: none;
}


/* Ensure modal forms are always visible */
.modal-content form {
	display: block !important;
	margin-top: 10px;
	text-align: left;
}


#forgotPasswordModal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.6);
	z-index: 1000;
	display: none;
	justify-content: center;
	align-items: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

#forgotPasswordModal.active {
	display: flex;
	opacity: 1;
	pointer-events: auto;
}

.modal-content {
	background-color: #001050;
	padding: 20px;
	border-radius: 8px;
	width: 300px;
	color: white;
	position: relative;
	box-shadow: 0 0 15px #000;
	margin: auto;
}

.close-btn {
	position: absolute;
	top: 5px;
	right: 10px;
	background: none;
	border: none;
	color: white;
	font-size: 20px;
	cursor: pointer;
}

.close-btn:hover {
	color: #ccc;
}

.modal-content input[type="email"] {
	width: 100%;
	padding: 8px;
	margin-top: 10px;
	border-radius: 5px;
	border: 1px solid #ccc;
}


.modal-content input[type="submit"] {
	width: 100%;
	padding: 8px;
	margin-top: 10px;
	background-color: rgb(125, 125, 150);
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
}


.modal-content input[type="submit"]:hover {
	background-color: darkgreen;
}


.price {
	display: inline-block;
	margin-bottom: 1.0rem;
}


.vat {
	display: inline-block;
	font-size: 12px;
	margin-left: 2px;
	margin-bottom: 1.0rem;
}





@media (max-width: 640px) {
  /* base font & spacing adjustments so things don't feel tiny */
  html, body {
    font-size: 16px; /* consistent readable default on phones */
  }

  header {
    padding: 0.6rem;
  }

  .header-bar {
    padding: 0;
  }

  .header-bar h1 {
    font-size: 1.2rem;
    padding: 0 .6rem;
    text-align: center;
  }

  .logo {
    position: absolute;
    left: 8px;
    top: 6px;
    height: 40px;
    width: auto;
  }

  /* product grid: single column for easy reading and tap targets */
  .product-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  /* make cards fluid (remove fixed width) and slightly smaller radius */
  .product-card {
    width: auto;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background-color: #DDE1E4;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  }

  .product-card img {
    height: 140px; /* reduce image height on narrow screens */
    object-fit: cover;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  }

  /* buttons and interactive elements — larger, full width where appropriate */
  .storeBuyButton,
  .storeDetailsButton,
  .loginButton {
    width: 100%;
    display: block;
    font-size: 1rem;
    padding: 0.65rem;
    box-sizing: border-box;
    margin-left: 0;
    margin-right: 0;
  }

  .tab-nav {
    padding: 0.4rem;
  }

  .tab-btn {
    padding: 0.35rem 0.6rem;
    margin: 0 4px;
    font-size: 0.95rem;
  }

  /* modal scaling for phones */
  .modal {
    padding: 1rem;
    align-items: flex-start;
  }

  .modal-content {
    width: calc(100% - 1.5rem);
    max-width: 420px;
    padding: 1rem;
    border-radius: 8px;
  }

  /* forgot-password modal specifics */
  #forgotPasswordModal .modal-content {
    width: calc(100% - 1.5rem);
    max-width: 420px;
    padding: 12px;
  }

  .close,
  .close-btn {
    font-size: 1.25rem;
  }

  /* containers: avoid full-viewport absolute blocking on small screens */
  .grandParentContainer {
    position: relative; /* allows natural scrolling on mobile */
    padding: 12px;
    justify-content: flex-start;
    top: auto;
    bottom: auto;
    right: auto;
    left: auto;
  }

  .parentContainer {
    margin-top: 1.5rem;
    padding: 16px;
    border-width: 2px;
  }

  .introLogo {
    margin-top: 2rem;
    margin-bottom: 2rem;
    max-width: 90%;
  }

  /* logout button: make it flow rather than absolutely overlaying */
  .logoutButton {
    position: static;
    display: inline-flex;
    margin: 0.5rem auto;
    right: auto;
    left: auto;
  }

  /* form inputs & controls: bigger touch targets */
  form input[type="text"],
  form input[type="password"],
  form input[type="email"] {
    font-size: 16px;
    padding: 10px;
  }

  form input[type="submit"],
  form button {
    height: 44px;
    font-size: 16px;
  }

  /* toggle buttons wrap if needed */
  .toggle-buttons {
    gap: 10px;
    flex-wrap: wrap;
  }

  /* smaller gaps for compact layout */
  .price,
  .vat {
    display: block;
    margin-bottom: 0.6rem;
  }

  footer {
	  position = 'relative';
	  padding: 0.8rem;
  }

  footer .policy-links a {
    display: inline-block;
    margin: 0 6px;
    font-size: 0.9rem;
  }
}

/* Optional: extra tiny-screen polish */
@media (max-width: 420px) {
  .header-bar h1 { font-size: 1.05rem; }
  .logo { height: 36px; }
  .product-card img { height: 120px; }
  .modal-content { padding: 10px; }
}

