body {
   font-family: 'Poppins', sans-serif;
    background: #fffafc;
    color: #333;
}
/*
header {
    /*background-color: #ff4747;
    color: white;
    padding: 5px;
    display: flex;
    align-items: center;
    flex-direction:row;
}
*/
header {
      display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: #ff69b4;
    color: white;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Light grey bottom border with subtle animation */
header::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:hover::after {
    transform: scaleX(1.05);
}
.logo img.header-logo {
    max-height: 60px;
    border-radius: 12px;
}



.search-form {
    width: 40%;
    display: flex;
    justify-content: center;
}

.search-form input[type="text"] {
      padding: 8px;
    border: none;
    border-radius: 6px;
}

.search-form button {
    background: white;
    border: none;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
}
.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
}
nav {
   width: 40%;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

nav a {
       margin: 0 10px;
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    background-color: rgba(255,255,255,0.2);
	color: red;
}

.container {
    
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
   
}
.main-container{
width: 90%;
margin: auto;
}

.sub-container{
   display: flex;
    gap:1.5rem;
}

.sidebar {
    width: 250px;
    flex-shrink: 0;
}
.sidebar ul            { list-style: none; padding: 0; margin: 0; }
.sidebar li            { margin: .3rem 0; }
.sidebar a             { text-decoration: none; color: #333; }
.sidebar a.active      { font-weight: 600; color: #ff69b4; }

.main {
    flex: 1;
}


.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;
}


.products {
   display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

/* Four cards per row on ≥992 px */
.product-card {
      background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
    transition: box-shadow .2s ease;
}
.product-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }

/* Uniform thumbnail: 200 × 200 (cropped, never stretched) */
.product-card img {
     width: 100%;          /* fills card width */
    max-width: 180px;     /* never larger than 180 px */
    height: auto;
    object-fit: contain;  /* keep aspect ratio, no stretch */
    margin: 0 auto .75rem;
    display: block;
}
.product-card h4 {
    font-size: 1rem;
    margin: 0 0 .25rem;
    min-height: 48px;     /* keeps titles aligned even if they wrap */
    color: #333;
}

.product-card p {
    font-weight: 600;
    color: #d43f3f;       /* tweak to match your palette */
    margin: 0;
}
.cart-form {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
    font-family: Poppins, sans-serif;
}

.qty-input {
    width: 60px;
    padding: 0.3rem 0.4rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-align: center;
}

.total-price {
    font-weight: 600;
    min-width: 80px;
}

.btn-add {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #ff69b4;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.55rem 1.1rem;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}
.btn-add:hover   { background: #ff4fa4; }
.btn-add:active  { transform: translateY(1px); }
.btn-add svg     { pointer-events: none; }   /* keeps icon from catching clicks */
.paypal-wrapper{
  max-width:280px;
  margin:20px auto;
}

@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;
	}
}
