*{
    margin: 0;
    padding: 0;
    a{
        text-decoration: none;
    }

}
body{
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Responsive Navigation Bar */
nav{
    background-color: #fff;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
}

nav ul{
    list-style: none;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav il{
    height:50px
}

nav a{
    height:100%;
    padding:0 15px;
    display: flex;
    align-items: center;
    color:black;
}

nav a:hover{
    color: #ec038a;
}

nav li:first-child{
    margin-right: auto;
}

nav li:nth-child(7) a{
    font-weight: bold;
    color: #ec038a;
}
.sidebar{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: #ffffff43;
    backdrop-filter: blur(10px);
    box-shadow: -10px 0px -10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.sidebar li{
    width:100%;
}

.sidebar li a{
    width:100%;
    padding:12px;
    font-weight: 400;
}

.sidebar li a:hover{
    background-color: #f2b2e1;
    color: #fff;
}

.active{
    text-decoration: underline;
    text-decoration-color: #ec038a;
    text-decoration-thickness: 3px;
}

.close-sidebar {
    cursor: pointer;
    color: #000;
    margin-left: auto;  
    padding: 12px;
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.hamburger{
    display: none;
    padding-right: clamp(12px, 5%, 20px);
}

footer{
    font-size: min(0.8em, 70%);
    background-color: black;
    padding: 2em;
    color: #fff;
}

footer p{
    text-align: center;
    font-size: 0.8rem;
    margin-top: 20px;
    margin-bottom: 20px;
}

footer div{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

footer h2{
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
}

footer div span a{
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
}


/* Layout */
main{
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

/* Form Wrapper and Forms */
.form-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.form-wrapper form {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

/* Adjust the search form to take remaining space */
.form-wrapper form:last-child {
    flex: 1;
    max-width: 400px;
}

/* Make search input fill available space */
.form-wrapper form:last-child input[type="text"] {
    flex: 1;
    min-width: 200px;
}

label svg {
    height: 1em;
    width: 1em;
    display: inline-block;
}


select,
input[type="text"] {
    padding: 0.6rem 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    min-width: 200px;
    background: #fff;
    transition: border 0.3s ease;
}

select:focus,
input[type="text"]:focus {
    border-color: #ec038a;
    outline: none;
}

/* Submit Button */
button[type="submit"] {
    background: #ec038a;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1rem;
    transition: background 0.3s ease;
}

button[type="submit"]:hover {
    background: #c40272;
}

button svg {
    fill: white;
}

.products:not(.no-results) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.product-card h3 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.2rem;
    color: #222;
}

.product-card p {
    padding: 0 1rem;
    color: #555;
    line-height: 1.4;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.product-price {
    color: #ec038a !important;
    font-weight: bold;
    font-size: 1.1rem;
}
.product-card .low-stock {
    color: red !important;
    font-weight: medium;
}

.product-card button {
    background: #ec038a;
    color: white;
    text-align: center;
    padding: 0.7rem;
    margin: 1rem;
    border-radius: 6px;
    transition: background 0.3s ease;
    font-weight: 500;
    text-decoration: none;
}

.product-card button:hover {
    background: #c40272;
}

.product-card p:has(+ button) {
    margin-bottom: 0;
}

.product-card p:last-child {
    text-align: center;
    font-weight: bold;
    color: #999;
}

.no-results {
    text-align: left;
    padding: 2rem;
}

.no-results p {
    color: gray;
    font-weight: bold;
    font-size: 1.2rem;
}

.no-results a {
    display: inline-block;
    margin-top: 1rem;
    color: #ec038a;
    border: #ec038a 1px solid;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.no-results a:hover {
    background: #ec038a;
    color: white;
}



.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
}



nav ul li a[href="cart.php"] {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-indicator {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background-color: orange;
    border-radius: 50%;
    display: none;
}

nav ul li a[href="cart.php"] {
    position: relative;
    display: inline-block;
    padding: 5px;
}

@media (max-width: 800px) {
    .hideOnMobile{
        display: none;
    }

    .hamburger{
        display: block;
    } 


    .form-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .form-wrapper form {
        width: 100%;
    }
    
    .form-wrapper form:last-child {
        max-width: 100%;
    }

    .products {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 480px){
    /* navigation */
    .sidebar{
        width:100%
    }

    nav li:first-child{
        margin-left: -4%;
    }

    /* product page */
    .form-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .form-wrapper form {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.05rem; 
        flex-wrap: nowrap; 
    }

    .form-wrapper label svg {
        width: 18px;
        height: 18px;
    }

    .form-wrapper select,
    .form-wrapper input[type="text"] {
        flex: 1;
        padding: 0.4rem 0.6rem;
        font-size: 0.80rem;
    }

    .form-wrapper button {
        background: none;
        border: none;
        padding: 0.3rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        width: 36px;
        height: 36px;
        flex-shrink: 0; 
    }

    .form-wrapper button svg {
        width: 20px;
        height: 20px;
        fill: #ec038a;
    }

    .form-wrapper button svg:hover {
        fill: #f2b2e1;
    }

    .products {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 360px) {
    .products {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 330px) {
    .products {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}


/* Product Modal */
*{
    margin: 0;
    padding: 0;
    a{
        text-decoration: none;
    }

}
body{
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Responsive Navigation Bar */
nav{
    background-color: #fff;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
}

nav ul{
    list-style: none;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav il{
    height:50px
}

nav a{
    height:100%;
    padding:0 15px;
    display: flex;
    align-items: center;
    color:black;
}

nav a:hover{
    color: #ec038a;
}

nav li:first-child{
    margin-right: auto;
}

nav li:nth-child(7) a{
    font-weight: bold;
    color: #ec038a;
}
.sidebar{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    background-color: #ffffff43;
    backdrop-filter: blur(10px);
    box-shadow: -10px 0px -10px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.sidebar li{
    width:100%;
}

.sidebar li a{
    width:100%;
    padding:12px;
    font-weight: 400;
}

.sidebar li a:hover{
    background-color: #f2b2e1;
    color: #fff;
}

.active{
    text-decoration: underline;
    text-decoration-color: #ec038a;
    text-decoration-thickness: 3px;
}

.close-sidebar {
    cursor: pointer;
    color: #000;
    margin-left: auto;  
    padding: 12px;
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.hamburger{
    display: none;
    padding-right: clamp(12px, 5%, 20px);
}




/* Layout */
main{
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

/* Form Wrapper and Forms */
.form-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.form-wrapper form {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

/* Adjust the search form to take remaining space */
.form-wrapper form:last-child {
    flex: 1;
    max-width: 400px;
}

/* Make search input fill available space */
.form-wrapper form:last-child input[type="text"] {
    flex: 1;
    min-width: 200px;
}

label svg {
    height: 1em;
    width: 1em;
    display: inline-block;
}


select,
input[type="text"] {
    padding: 0.6rem 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    min-width: 200px;
    background: #fff;
    transition: border 0.3s ease;
}

select:focus,
input[type="text"]:focus {
    border-color: #ec038a;
    outline: none;
}

/* Submit Button */
button[type="submit"] {
    background: #ec038a;
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1rem;
    transition: background 0.3s ease;
}

button[type="submit"]:hover {
    background: #c40272;
}

button svg {
    fill: white;
}

.products:not(.no-results) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.product-card h3 {
    padding: 1rem 1rem 0.5rem;
    font-size: 1.2rem;
    color: #222;
}

.product-card p {
    padding: 0 1rem;
    color: #555;
    line-height: 1.4;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.product-price {
    color: #ec038a !important;
    font-weight: bold;
    font-size: 1.1rem;
}
.product-card .low-stock {
    color: red !important;
    font-weight: medium;
}

.product-card button {
    background: #ec038a;
    color: white;
    text-align: center;
    padding: 0.7rem;
    margin: 1rem;
    border-radius: 6px;
    transition: background 0.3s ease;
    font-weight: 500;
    text-decoration: none;
}

.product-card button:hover {
    background: #c40272;
}

.product-card p:has(+ button) {
    margin-bottom: 0;
}

.product-card p:last-child {
    text-align: center;
    font-weight: bold;
    color: #999;
}

.no-results {
    text-align: center;
    padding: 2rem;
}

.no-results p {
    color: gray;
    font-weight: bold;
    font-size: 1.2rem;
}

.no-results a {
    display: inline-block;
    margin-top: 1rem;
    color: #ec038a;
    border: #ec038a 1px solid;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.no-results a:hover {
    background: #ec038a;
    color: white;
}



.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
}



nav ul li a[href="cart.php"] {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-indicator {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background-color: orange;
    border-radius: 50%;
    display: none;
}

nav ul li a[href="cart.php"] {
    position: relative;
    display: inline-block;
    padding: 5px;
}

@media (max-width: 800px) {
    .hideOnMobile{
        display: none;
    }

    .hamburger{
        display: block;
    } 


    .form-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .form-wrapper form {
        width: 100%;
    }
    
    .form-wrapper form:last-child {
        max-width: 100%;
    }

    .products {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }
}

@media (max-width: 480px){
    /* navigation */
    .sidebar{
        width:100%
    }

    nav li:first-child{
        margin-left: -4%;
    }

    /* product page */
    .form-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .form-wrapper form {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.05rem; 
        flex-wrap: nowrap; 
    }

    .form-wrapper label svg {
        width: 18px;
        height: 18px;
    }

    .form-wrapper select,
    .form-wrapper input[type="text"] {
        flex: 1;
        padding: 0.4rem 0.6rem;
        font-size: 0.80rem;
    }

    .form-wrapper button {
        background: none;
        border: none;
        padding: 0.3rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        width: 36px;
        height: 36px;
        flex-shrink: 0; 
    }

    .form-wrapper button svg {
        width: 20px;
        height: 20px;
        fill: #ec038a;
    }

    .form-wrapper button svg:hover {
        fill: #f2b2e1;
    }

    .products {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 360px) {
    .products {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 330px) {
    .products {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Product Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow-y: auto;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 2rem;
    width: 80%;
    max-width: 900px;
    border-radius: 8px;
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

.close-modal:hover {
    color: #ec038a;
}

.modal-body {
    display: flex;
    gap: 2rem;
}

.modal-image {
    flex: 1;
    min-width: 300px;
}

.modal-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    max-height: 400px;
}

.modal-details {
    flex: 1;
    text-align: left;
}

.modal-details h2 {
    margin-bottom: 1rem;
    color: #333;
}

.modal-price {
    font-size: 1.5rem;
    color: #ec038a !important;
    font-weight: bold;
    margin: 1rem 0;
}

.product-description {
    margin: 1.5rem 0;
    line-height: 1.6;
    color: #555;
}

/* Make product cards clickable with hover effect */
.product-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Responsive modal styles */
@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
    }
    
    .modal-image {
        min-width: 100%;
    }
    
    .modal-content {
        width: 90%;
        margin: 10% auto;
        padding: 1rem;
    }
    
    .close-modal {
        right: 15px;
        top: 10px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        margin: 10%;
        
    }

    #modalProductImage{
        width: 95%;
    }
    
    #modalProductName{
        font-size: 1.5rem;
    }

    .modal-price{
        font-size: 1rem;
    }

    .product-description{
        font-size: 0.8rem;
    }
}

/* cart page */
/* Cart Page Styles */

.cart-main{
    background-color: #fffbfd;
}

.cart-main h2{
    color:#ec038a;
}
.cart-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
    color: #333;
}

.cart-container h2 {
    text-align: center;
    color: #ec038a;
    margin-bottom: 2rem;
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

.cart-container h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: #ec038a;
    border-radius: 2px;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.empty-cart p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.continue-shopping-btn {
    display: inline-block;
    padding: 1rem 2rem;
    margin: 1rem;
    background-color: #fff;
    color: black;
    border: 1px solid #ec038a;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}


.continue-shopping-btn:hover {
    background-color: #c40272;
}

/* Cart Items */
.cart-items {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item:hover {
    background-color: #fff9fb;
}

.item-image {
    width: 100px;
    height: 100px;
    margin-right: 20px;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.item-details {
    flex: 1;
    min-width: 0;
}

.item-details h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-price {
    font-size: 1.1rem;
    font-weight: 500;
    color: #000;
    margin: 0 0 10px 0;
}

.item-total{
    font-size: 1.1rem;
    font-weight: 600;
    color: #ec038a;
    margin: 10px 0 0 0;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    margin-left: 12px;
    margin-right: 12px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #c40272;
    background: #f9f9f9;
    color: #333;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background: #f0f0f0;
}

.quantity {
    min-width: 30px;
    text-align: center;
    font-weight: 500;
}

.remove-item {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    margin-left: 15px;
    transition: color 0.2s;
}

.remove-item:hover {
    color: #cc0000;
}

/* Cart Summary */
.cart-summary {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.summary-row:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

.discount-summary {
    color: #28a745;
    font-weight: 500;
}

.checkout-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #ec038a;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.checkout-btn:hover {
    background-color: #c40272;
}

/* Discount Section */
.discount-section {
    margin-bottom: 2rem;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.discount-section h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.discount-form {
    display: flex;
    gap: 10px;
}

.discount-form input[type="text"] {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.discount-form button {
    padding: 10px 20px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.discount-form button:hover {
    box-shadow: 0 4px 12px rgba(236, 3, 138, 0.5);
    background-color: #000;
}

.total-row .total{
    font-weight: bold;
}
.final-price{
    color: #28a745;
    font-weight: bold;
}

.totals-row span{
    color: #28a745;
    font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .cart-item {
        flex-wrap: wrap;
        padding: 15px;
    }
    
    .item-image {
        width: 80px;
        height: 80px;
        margin-right: 15px;
    }
    
    .item-details {
        flex: 1 1 60%;
    }
    
    .quantity-controls {
        margin-top: 15px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .remove-item {
        margin-left: auto;
    }
    
    .discount-form {
        flex-direction: column;
    }
    
    .discount-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cart-main{
        margin: 0.5rem;
    }

    .cart-main h2{
        font-size: 1.5rem;
    }
    .cart-container {
        padding: 0 10px;
    }
    
    .item-details h3 {
        font-size: 1rem;
    }
    
    .item-price {
        font-size: 1rem;
    }
    
    .cart-summary {
        padding: 15px;
    }
}


.checkout-container{
    margin: 2rem 0;
    background-color: #fffbfd;
}

.payment-info{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.payment-info img{
    width: 45%;
}


.checkout-form {
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(236, 3, 138, 0.15); /* subtle pink glow */
}
  
.checkout-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: #333;
}
  
.checkout-form input,
.checkout-form select,
.checkout-form textarea {
    width: 60%;
    padding: 0.7rem 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease-in-out;
}
  
.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
    border-color: #ec038a;
    box-shadow: 0 0 6px rgba(236, 3, 138, 0.3);
    outline: none;
}
  
.checkout-form button {
    background: #ec038a;
    color: #fff;
    border: none;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.25s ease;
}
  
.checkout-form button:hover {
    background: #c00272;
}

/* appointment checkout */
.checkout-summary{
    margin: 2rem 0;
    background-color: #fffbfd;
}

.checkout-summary h2{
    color: #ec038a;
}

@media (max-width: 480px) {
    .checkout-summary h2{
        font-size: 1.5rem;
    }
}

/* Appointment Summary Styles */
.booking-summary {
    background: #ffffff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.booking-summary h3 {
    color: #ec038a;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    font-size: 1.2rem;
}

.booking-details {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #ec038a;
}

.booking-details p {
    margin: 8px 0;
    color: #333;
    font-size: 1rem;
}

.booking-details strong {
    color: #555;
    min-width: 80px;
    display: inline-block;
}

.pricing-details {
    margin-top: 20px;
}

.pricing-details h3 {
    color: #ec038a;
    font-size: 1.2rem;
    margin: 20px 0 15px;
}

.pricing-details p {
    margin: 10px 0;
    line-height: 1.6;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 1.1rem;
}

.discount-summary {
    color: #4CAF50;
    font-weight: 500;
    font-size: 0.95rem;
    display: block;
    margin: 5px 0;
}

.final-price {
    color: #ec038a;
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 5px;
    display: block;
} 

/* Discount Form */
form[action*="check_discount"] {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

form[action*="check_discount"] label {
    margin-top: 0.5rem;
    font-weight: 500;
}

form[action*="check_discount"] button {
    padding: 0.5rem 1rem;
    max-width: 25%;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form[action*="check_discount"] button:hover {
    background-color: #000;
    box-shadow: 0 4px 12px rgba(236, 3, 138, 0.6);
}

@media (max-width: 768px) {
    form[action*="check_discount"] {
        flex-direction: column;
    }
}