body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f9f9f9;
}
/*
header {
    /*background-color: #ff4747;
    color: white;
    padding: 5px;
    display: flex;
    align-items: center;
    flex-direction:row;
}
*/
header {
  display:flex;
  flex-direction:column;
}

/* Light grey bottom border with subtle animation */
.header-one::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #e0e0e0;  /* very light grey */
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* Slight grow effect on hover */
.header-one:hover::after {
    transform: scaleX(1.05);
}

.logo img{
width:100%;
}
.logo {
	width: 200px;
    font-size: 22px;
    font-weight: bold;
   
}


.search-form {
    width: 40%;
    display: flex;
    justify-content: center;
}

.search-form input[type="text"] {
    padding: 8px;
    width: 60%;
    max-width: 400px;
 
	  border: 2px solid #007BFF; /* Blue border */
    border-radius: 5px 0 0 5px;
	  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-form button {
    padding: 6px 10px;
  margin-left: 5px;
  border: none;
  background: white;
  color: #ff4747;
  border-radius: 4px;
  cursor: pointer;
}
.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
}
nav {
   width: 40%;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 4px;
	background-color:#ff4747;
}

nav a:hover {
    background-color: rgba(255,255,255,0.2);
	color: red;
}

.container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    gap: 20px;
}
.sub-container{
   display: flex;
    flex-direction: row;
    max-width: 1200px;	
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.main {
    flex: 1;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}
.product-card img {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #ccc;
}
.product-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.product-card:hover {
    transform: translateY(-3px);
}
.gallery{
	width: 50%;
}
.gallery img {
    max-width: 100%;
    width: 100%;
    height: auto;
    margin: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    object-fit: contain;
    display: inline-block;
}
.title-box{
	width: 100%;
}
.variants{
	width:100%;
}
.price {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
    background-color: #fceaea;
    padding: 10px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 20px;
}
.description {
	width:100%;
    margin-top: 30px;
    padding: 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    line-height: 1.6;
}
.product-details{
	width:100%;
	display:flex;
	flex-direction: row;
	justify-content: space-between;
}
.right-gallery{
	width: 44%;
	border: 1px solid #ccc;
    border-radius: 5px;
	
}
.right-gallery h2{
padding-left:10px;
background-color:#f73905;
margin: 0px;
color: white;
text-decoration:underline;
padding: 10px;
}
.gallery-display{
	width:100%;
	display:flex;
	flex-direction:row;
	justify-content: space-between;
	
}
.gallery-display-image{
	width:40%;
	border: 1px solid #ccc;
    border-radius: 5px;
	margin-top: 30px;
	margin-left: 10px;
}
.gallery-display-shipping{
 width: 40%;
 padding: 10px;

}
.gallery-display-image img{
width: 100%;
}
.gallery-display-shipping h3{
	padding: 5px;
	background-color:black;
	color: white;
}
/* Beautify dropdowns and number inputs */
input[type="number"],
select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    width: 160px;
    margin-right: 15px;
    margin-bottom: 10px;
    outline: none;
    transition: border-color 0.3s;
}

input[type="number"]:focus,
select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0,123,255,0.3);
}

/* Confirm button style */
#confirmBtn {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

#confirmBtn:hover {
    background-color: #0056b3;
}
.responsive-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}

.responsive-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.responsive-table th,
.responsive-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ccc;
    white-space: nowrap;
    background-color: #fff;
}

.responsive-table th {
    background-color: #f7f7f7;
    font-weight: bold;
}
.capacitor-selector {
    display: flex;
    flex-direction: column; /* column layout */
    gap: 15px; /* spacing between items */
    max-width: 300px;
}

.capacitor-selector label {
    display: flex;
    flex-direction: column;
    font-weight: bold;
}

.capacitor-selector select,
.capacitor-selector input[type="number"] {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}
.login-container {
        max-width: 400px;
        margin: 50px auto;
        padding: 25px;
        background: #f9f9f9;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }

    .login-container h2 {
        text-align: center;
        margin-bottom: 20px;
        color: #333;
    }

    .login-container label {
        display: block;
        margin-bottom: 5px;
        font-weight: bold;
        color: #444;
    }

    .login-container input[type="email"],
    .login-container input[type="password"] {
        width: 100%;
        padding: 10px;
        margin-bottom: 15px;
        border-radius: 5px;
        border: 1px solid #ccc;
        font-size: 16px;
    }

    .login-container button {
        width: 100%;
        background-color: #28a745;
        color: white;
        padding: 10px;
        border: none;
        border-radius: 6px;
        font-size: 16px;
        cursor: pointer;
    }

    .login-container button:hover {
        background-color: #218838;
    }

    .login-container .extra-links {
        margin-top: 15px;
        text-align: center;
    }

    .login-container .extra-links a {
        color: #007bff;
        text-decoration: none;
    }

    .login-container .extra-links a:hover {
        text-decoration: underline;
    }

    .login-container .error {
        color: red;
        margin-bottom: 15px;
        text-align: center;
    }
.nav li a i.fa-shopping-basket {
    font-size: 18px;
    color: #fff;
}

.nav li a span {
    font-weight: bold;
    color: #ffc107;
}

/* Header and burger button */
.header-mobile {
  background-color: #003366;
  color: white;
  padding: 10px 15px;
  display:none;
  justify-content: space-between;
  align-items: center;
  
}

.hamburger {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  width: 30px;
}

.hamburger span {
  height: 3px;
  background: white;
  border-radius: 2px;
}

/* Dropdown menu */
.menu {
  display: none;
  flex-direction: column;
  background-color: #f9f9f9;
  position: absolute;
  top: 60px;
  right: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  min-width: 150px;
  z-index: 999;
}

.menu a {
  padding: 10px;
  text-decoration: none;
  color: #003366;
  border-bottom: 1px solid #eee;
}

.menu a:hover {
  background-color: #e6e6e6;
}

.menu.show {
  display: flex;
}
.header-one{
  color: white;
    padding: 5px;
    display: flex;
    align-items: center;
    flex-direction: row;
    position: relative;
}
.recent-products,
.also-products{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:20px;
  margin:40px 0;
}

.product-card{
  background:#fff;
  border:1px solid #eee;
  border-radius:8px;
  text-align:center;
  padding:15px;
  transition:transform .15s,box-shadow .15s;
}
.product-card:hover{
  transform:translateY(-4px);
  box-shadow:0 6px 14px rgba(0,0,0,.08);
}
.product-card img{
  max-width:100%;
  height:auto;
  margin-bottom:10px;
}
.product-card p{
  font-weight:600;
  color:#003366;
  margin:0;
}


@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form {
        margin-top: 10px;
        order: 3;
    }
	 .search-form input[type="text"] {
    width: 80%;
  }

    nav {
        justify-content: center;
        margin-top: 10px;
    }

    .container {
        flex-direction: column;
        padding: 10px;
    }

    .sidebar {
        width: 100%;
    }

    .products {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
	.sub-container{
		width: 100%;
		 flex-direction: column;
	}
	.main{
		width: 100%;
	}
	.gallery{
		width:100%;
	}
	.gallery img{
		width: 100%;
	}
	 .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
    background-color: #e03e3e;
    padding: 10px;
    border-radius: 5px;
  }
  
  .nav a {
    padding: 8px 0;
    border-bottom: 1px solid #ffcccc;
  }
   .nav.active {
    display: flex;
  }
	.right-gallery{
	width: 100%;
	}
	.product-details{
		flex-direction:column;
	}
	.header-mobile{
	display:flex;
	}
	.header-one{
	display:none;
	}
}
