body {
    margin: 0;
    font-family: Arial, sans-serif;
}

.navbar {
    background-color: pink;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Playfair Display', serif;  
    font-weight: 900;                        
    font-size: 2.2rem;                       
    color: #E9E7AC;                         
    text-decoration: none;                   
    letter-spacing: 2px;                     
    text-shadow: 1px 1px 3px rgba(0,0,0,0.15); 
    transition: color 0.3s ease;
}

.logo a:hover {
    color: #c5c292;                         
    cursor: pointer;
}


.search-bar input {
    padding: 5px;
    width: 200px;
}

.search-bar button {
    padding: 5px 10px;
}

.nav-links a {
    margin-left: 15px;
    text-decoration: none;
    color: black;
}

.nav-menu {
    background-color: #fdd6e4;
  /*  padding: 10px 20px;
    display: flex;
    gap: 20px;*/
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    padding: 10px 0;
}

.nav-menu a {
    text-decoration: none;
    color: black;
    font-weight: bold;
    transition: background 0.3s;
    padding: 10px 20px;
}
.nav-menu a:hover {
    background-color: #555;
    border-radius: 5px;
}
.banner {
    text-align: center;
    margin: 20px;
}

.banner img {
    width: 100%;
    height: auto;
}

.orange-banner {
    background-color: orange;
    border-radius: 10px;
    padding: 20px;
    min-height: 300px;
    text-align: center;
}

.categories {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
    flex-wrap: wrap;
}

.cat-item {
    text-align: center;
    width: 150px;
}

.cat-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.product-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.product-card {
    width: 30%;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
}

/* New styles for product cards on product.jsp */
.card {
    height: 400px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.card-img-top {
    object-fit: contain;
    height: 180px;
    width: 100%;
    border-bottom: 1px solid #ddd;
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    padding: 10px;
}

.add-to-cart-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: auto;
}

.add-to-cart-form .quantity-input {
    max-width: 70px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.add-to-cart-form .btn-custom {
    flex-grow: 1;
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
}


.btn-custom {
    background-color: #fdd6e4;    
    color: #333333;               
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.btn-custom:hover {
    background-color: #555;   
    color: #000000;
}

.btn-custom:disabled,
.btn-custom[disabled] {
    background-color: #f0f0d6;   
    color: #999999;
    cursor: not-allowed;
}


.footer {
    background-color: pink;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    font-size: 14px;
}
.footer a {
    text-decoration: none;
    color: black;
}

/* Styles specific to the checkout page */
.checkout-page {
    font-family: 'Poppins', sans-serif;
    color: #2c3e50;
    background-color: #f9f9f9;
    padding-bottom: 3rem;
}

.checkout-page h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #E9E7AC;  
    padding-bottom: 0.5rem;
}

.checkout-page h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: #34495e;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #CFCB7D;  
    padding-bottom: 0.3rem;
}

.checkout-page h5 {
    font-weight: 600;
    color: #2c3e50;
    margin-top: 1.5rem;
    text-align: right;
}

.checkout-page .container {
    background: white;
    padding: 2rem 3rem;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.checkout-page label.form-label {
    font-weight: 600;
    color: #34495e;
}

.checkout-page textarea.form-control,
.checkout-page input.form-control,
.checkout-page select.form-select {
    border-radius: 8px;
    border: 1.5px solid #ccc;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    transition: border-color 0.3s ease;
}

.checkout-page textarea.form-control:focus,
.checkout-page input.form-control:focus,
.checkout-page select.form-select:focus {
    border-color: #E9E7AC;  /* theme yellow */
    box-shadow: 0 0 5px rgba(233, 231, 172, 0.5);
    outline: none;
}

.checkout-page .btn-primary {
    background-color: #E9E7AC;    
    color: #333333;               
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bold;
    float: right;
    font-size: 1.1rem;
    margin-left: 10px;
}

.checkout-page .btn-primary:hover {
    background-color: #d6d39b;
    color: #222222;
}

.checkout-page .btn-secondary {
    background-color: #E9E7AC;  
    border-color: #E9E7AC;
    color: #333333;             
    font-weight: 600;
    border-radius: 8px;
    padding: 0.6rem 1.4rem;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    margin-left: 10px;
    text-decoration: none;      
}

.checkout-page .btn-secondary:hover {
    background-color: #bfbfbf;
    border-color: #bfbfbf;
    color: #222222;
    text-decoration: none;      
}


.checkout-page table.table {
    width: 100%;
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #E9E7AC;  
    font-family: 'Poppins', sans-serif;
    color: #2c3e50;
}

.checkout-page table.table thead {
    background-color: #E9E7AC; 
    color: #333333;
    font-weight: 600;
}

.checkout-page table.table th,
.checkout-page table.table td {
    text-align: center;
    padding: 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid #CFCB7D;  
}

.checkout-page table.table tbody tr:nth-child(even) {
    background-color: #f5f4e7;  
}

.checkout-page table.table tbody tr:hover {
    background-color: #dcdcb3;  
}

.checkout-page .alert-danger {
    font-weight: 600;
    background-color: #f8d7da;
    color: #842029;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #f5c2c7;
}

/* Style Specific to Header Page */
.login-register-link {
    font-weight: 700;          
    font-family: 'Playfair Display', serif;  
    color: #E9E7AC;            
    text-decoration: none;     
    padding: 6px 12px;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.login-register-link:hover {
    color: #c5c292;            
    text-decoration: underline;
    cursor: pointer;
}

.category-title {
    font-family: 'Playfair Display', serif; 
    font-weight: 700;                      
    font-size: 2.5rem;                     
    color: #2c3e50;                       
    border-bottom: 3px solid #3498db;     
    padding-bottom: 0.3rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;                   
    text-transform: capitalize;            
}

/* Dropdown Menu */
/* Dropdown styles */
.dropdown {
    position: relative;
}

.dropbtn {
    font-weight: bold;
    padding: 10px 20px;
    display: inline-block;
    text-decoration: none;
    color: black;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffe3ed; /* light pink dropdown */
    min-width: 180px;
    border-radius: 6px;
    box-shadow: 0px 6px 12px rgba(0,0,0,0.15);
    z-index: 1000;
}

.dropdown-content a {
    font-family: inherit;
    display: block;
    text-align: center; 
    padding: 10px 15px;
    color: black;
    text-decoration: none;
    font-size: 1rem; 
    font-weight: bold;   /* same as Makeup */
    transition: background 0.3s;
}

.dropdown-content a:hover {
    background-color: #fdd6e4; /* matches nav color */
    border-radius: 4px;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
    display: block;
}
