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;
}
*/
/*from index.php*/
    /*body      {font-family: Poppins, sans-serif; margin:0;} */
        .wrapper  {display:flex; gap:1rem;}
        .sidebar  {min-width:220px; border-right:1px solid #eee; padding:1rem;}
        .sidebar a{display:block; padding:.4rem .2rem; color:#333; text-decoration:none;}
        .sidebar a.active, .sidebar a:hover{font-weight:600; color:#ff69b4;}
        .grid     {display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:1rem; padding:1rem;}
        .card     {border:1px solid #eee; border-radius:8px; padding:.8rem; background:#fff; text-align:center;}
        .card img {width:100%; height:160px; object-fit:cover;}
        .count    {font-size:.9rem; color:#777; margin:0 0 .6rem;}
/*End*/
.main-header{
    display:flex;
    flex-direction:row;

    background:#E183A3;
    padding: 20px;
    color: white;
    justify-content: space-between;
}
.main-header h1{font-size: 1.2rem;}

/*from header.php*/
/* ---------- Layout ---------- */
.site-header{
  display:flex;align-items:center;justify-content:space-between;
  background:#fff;padding:0.8rem 1.6rem;border-bottom:1px solid #e0e0e0;
  box-shadow:0 2px 6px rgba(0,0,0,0.06);position:sticky;top:0;z-index:1000;
  flex-wrap:wrap;gap:1rem;color:red;
}
.logo img{height:100px;object-fit:contain}

.content{ width: 100%;
    display:flex;
    flex-direction:row;
}
.left-content{
    width: 70%;
    padding: 1.2rem;
}
.right-content{
    width: 25%;
    padding: 1.2rem;
}
.image-placeholder img{
  max-width: 300px;
}
.image-placeholder{
    margin: 2.5rem;
}
.product-detail{
    padding: 2.5rem;
    display:flex;
    flex-direction:column;
}
.product-image-details{
    display:flex;
    flex-direction: row;
    gap: 20px;
    margin: 50px;
}
.product-image-details img{
    max-width: 300px;
}
.product-box{
    display:flex;
    flex-direction:column;
}
.buy-button {
  display: inline-block;
  padding: 14px 26px;
  background-color: #c79b6d; /* warm beauty tone */
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  border: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.buy-button:hover {
  background-color: #b3885f;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.buy-button:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.buy-button:focus {
  outline: none;
}
.checkout-table {
    width: 100%;
    max-width: 500px;
    border-collapse: collapse;
}

.checkout-table th {
    background: #f5f5f5;
    font-size: 16px;
    padding: 10px;
}

.checkout-table td {
    padding: 8px;
}

.checkout-table input,
.checkout-table textarea {
    width: 100%;
    padding: 6px;
    box-sizing: border-box;
}

.checkout-table button {
    padding: 10px 20px;
    font-size: 15px;
    cursor: pointer;
}



/* ---------- Navigation ---------- */
.main-nav{
    display:flex;
    gap:1.2rem;

    font-size: 14px;


}
.main-nav a{
  font-family:'Poppins',sans-serif;font-weight:500;color:#444;text-decoration:none;
  transition:color .2s ease
}
.main-nav a:hover{color:#e91e63}

/* ---------- Search ----------
.search-form{display:flex;align-items:center}
.search-form input{
  padding:6px 10px;border:1px solid #ccc;border-right:none;
  border-radius:20px 0 0 20px;font-size:14px;min-width:180px
}
.search-form button{
  padding:6px 12px;background:#e91e63;border:none;color:#fff;
  border-radius:0 20px 20px 0;cursor:pointer;font-size:14px
}
.search-form button:hover{background:#d81b60}
*/
/* ---------- Search ---------- */
.search-form {
  display: flex;
  align-items: center;
}

.search-form input {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-right: none;
  border-radius: 20px 0 0 20px;
  font-size: 14px;
  min-width: 180px;
}

.search-form button {
  padding: 6px 12px;
  background: #e91e63;
  border: none;
  color: #fff;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  font-size: 14px;
}

.search-form button:hover {
  background: #d81b60;
}


/* ---------- Auth ---------- */
.auth-links{display:flex;align-items:center;gap:0.6rem}
.welcome{font-family:'Poppins',sans-serif;font-size:14px;color:#555}
.btn-outline,.btn-primary{
  padding:6px 14px;border-radius:20px;font-size:14px;font-family:'Poppins',sans-serif;
  text-decoration:none;transition:all .2s ease
}
.btn-outline{
  border:1px solid #e91e63;color:#e91e63;background:transparent
}
.btn-outline:hover{background:#e91e63;color:#fff}
.btn-primary{
  background:#e91e63;color:#fff;border:1px solid #e91e63
}
.btn-primary:hover{background:#d81b60;border-color:#d81b60}


/*End  from header.php*/



/*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;
}





.product-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }

.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;
}

#nav-menu {
    display: none;
    flex-direction: column;
    gap: 15px;
    background-color: #e91e63; /* Change to your color */
    padding: 20px;
    width: 100%;
    border-radius: 8px;
    position: absolute;
    top: 60px; /* Adjust based on your header height */
    left: 0;
}

#nav-menu a {
    color: white;
    text-decoration: none;
    padding: 10px;
    font-size: 18px;
    transition: background 0.2s ease;
}

#nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Hamburger icon styles */
/* Ensure the hamburger icon is visible on mobile */
/* Hide the hamburger by default */
.menu-toggle {
    display: none;  /* Hide hamburger icon on larger screens */
    font-size: 30px; /* Make the hamburger icon large */
     color: #333;
        /* Icon color */
    cursor: pointer; /* Make it clickable */
    z-index: 1001;   /* Ensure it appears on top of other content */
}
.content,
.left-content,
.product-grid-container {
    display: block;
    align-items: unset;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    column-gap: 20px;
    row-gap: 30px; /* 👈 vertical gap between products */
}


.product-card {
    display: flex;
    flex-direction: column;
    box-sizing: border-box; /* Prevents border issues */
    background: #fff;
    border: 1px solid #e4e4e4;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
    transition: box-shadow .2s ease;
    height: 100%; /* Ensures full height within grid space */
}




.product-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.product-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.product-diagrams {
    display:flex;
    flex-direction:row;
    gap:20px;
    flex-wrap: wrap;       /* Allow the items to wrap on smaller screens */
  justify-content: space-between;
  margin-bottom: 25px;
}
.product-diagrams img{
 max-width:200px;;        /* Ensure images are responsive */
  height: auto;           /* Maintain aspect ratio */
  flex: 1 1 30%;          /* Allow images to take equal space, and allow wrapping */
  box-sizing: border-box; /* Prevent border and padding from affecting width */
  border: solid;
  border-width:1px;
  border-color: #D8D8D8;
  border-radius: 5px;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-links {
        display: none;
    }


    .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;
	}
	    .menu-toggle {
        display: block; /* Show hamburger on mobile */
        position: absolute;
        top: 20px;  /* Adjust to align with the header */
        right: 20px;  /* Adjust position to the right */
    }

    .main-nav {
        display: none; /* Hide the main navigation on mobile */
    }
  /* Ensure the nav menu is hidden by default */
    #nav-menu {
        display: none;
    }

    /* Show the menu when the active class is added */
    #nav-menu.active {
        display: flex; /* Show the menu when active */
    }


    #nav-menu a {
        padding: 12px;
        text-align: center;
    }

       body {
        font-size: 15px;
    }

    .product-grid {
        gap: 16px;
    }

    .product-card {
        padding: 12px;
    }
     .right-content {
        display: none;
    }
    .left-content{
        width:100%;
    }

}
