body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    font-family: "Inter", sans-serif;
}

.index {
    box-sizing: border-box;
}

/***************** NAVBAR ***************/

.navbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: white;
    padding-bottom: 15px;
    border-bottom: 1px solid #8A5559;
}

.navbar a {
    position: relative;
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    padding-bottom: 5px;
    transition: border-bottom-color 0.3s ease; /* Smooth transition for the line */
}

.navbar .bottom-row a {
    position: relative;
    padding-bottom: 5px; /* Space for the underline */
}

.navbar .bottom-row a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background-color: transparent;
}

.navbar .bottom-row a:hover::after {
    width: 100%; /* Full width on hover */
    background-color: #C29C96; /* Color of the line on hover */
}

.navbar-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-top: 20px;
}

.top-row {
    background-color: white;
    margin-top: 20px;
    margin-bottom: 50px;
}

.bottom-row {
    background-color: white;
    justify-content: center;
}

.logo img {
    width: 300px;
}

.top-row-right {
    display: flex;
    align-items: center;
    padding-right: 10px;
}

.searchbar {
    display: flex;
    align-items: center;
    background-color:rgb(246, 234, 226);
    padding-right: 5px;
    position: relative;
    margin-bottom: 10px;
}

.searchbar input {
    padding: 10px;
    border: none;
    background-color: rgb(246, 234, 226);
    color: #8A5559;
    width: 200px;
    height: 15px;
    font-size: 16px;
}

.searchbar button {
    border: none;
    background-color:rgb(246, 234, 226); 
    color: white;
    cursor: pointer;
    font-size: 16px;
}

.searchbar input::placeholder {
    color: white;
    font-size: 16px;
}

.searchbar input[type="text"]:focus {
    outline: none;
}

.searchbar img {
    height: 15px;
}

.icons {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 30px;
}

.icons img {
    height: 30px;
    margin-left: 10px;
    margin-right: 30px;
}

.icons a {
    color: #8A5559;
    text-decoration: none;
    font-size: 20px;
}

.icons a i {
    margin-right: 5px;
}

.bottom-row a {
    display: block;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    color: black;
    font-size: 24px;
}

.bottom-row a:hover {
    background-color: white;
}

.bottom-row a.active {
    color: #C29C96;
    font-weight: bold;
}

/***************** FOOTER ***************/

.footer {
    background-color: #DFCEC3;
    padding: 20px;
    display: flex;
    justify-content: space-between;
}

.footer img {
    width: 300px;
}

.footer a {
    text-decoration: none;
    color: #000000;
}

.footer-left {
    display: flex;
    margin-left: 50px;
}

.footer-content {
    margin-right: 100px;
}

.footer-content h3 {
    color: #8A5559;
}

.footer-list {
    list-style: none;
    padding: 0;
}

.footer-list li {
    margin-bottom: 8px; 
}

.footer-right {
    display: flex; 
    align-items: center;
    margin-right: 100px;
}

.bottom-bar {
    padding-top: 10px;
    padding-left: 30px;
}

/***************** HERO ***************/

.hero {
    height: 60vh;
    width: 100%;
    background: url('img/Brown\ Simple\ Hijab\ Fashion\ Facebook\ Post.pdf') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content {
    margin-top: 300px;
}

.hero-content a {
    background-color: #8A5559;
    color: white;
    text-decoration: none;
    font-size: 20px;
    border: none;
    cursor: pointer;
    padding: 10px;
    
}

/***************** BENTO ***************/

.bento-slider {
    overflow: hidden;
    position: relative;
    margin-top: 50px;
    margin-left: 75px;
    margin-right: 75px;
}

.bento-grid {
    display: flex; /* Use flexbox for the grid */
    transition: transform 0.5s ease;
}

.bento-item {
    flex: 0 0 auto; /* Ensure items do not grow */
    margin-right: 80px; /* Adjust spacing between items */
    width: 300px;
    height: 600px;
}

.bento-item img {
    width: 100%;
    height: auto;
    border-radius: 2px;
}

.bento-prev,
.bento-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.5); /* Semi-transparent background */
    border: none;
    color: black;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    z-index: 1; /* Ensure buttons are above the grid */
}

.bento-prev {
    left: 10px;
}

.bento-next {
    right: 10px;
}


/***************** FABRIC CARE ***************/

#fabriccare-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    margin-top: 50px;
}

.fabric-care-section {
    display: flex;
    flex-direction: row;
    align-items: center; /* Align items vertically in the center */
    justify-content: space-between;
    width: 1200px; /* Fixed width */
    padding: 20px;
    padding-bottom: 50px;
    border-bottom: 1px solid #8A5559;
    margin-bottom: 40px;
    background-color: #ffffff;
}

.fabric-pic {
    flex: 1;
    padding-right: 20px;
}

.fabric-pic img {
    width: 500px;
    height: 500px;
}

.fabric-details {
    flex: 2;
}

.fabric-title {
    font-size: 32px;
    color: #8A5559;
    margin-bottom: 15px;
}

.fabric-info {
    font-size: 16px;
    color: black;
    margin-bottom: 15px;
}

.fabric-care-title {
    font-size: 22px;
    color: #8A5559;
    margin-bottom: 10px;
}

.fabric-care-recommendations {
    font-size: 16px;
    color: black;
    margin-bottom: 15px;
}

.care-steps {
    list-style-type: decimal;
    padding-left: 20px;
}

.care-steps > li {
    font-size: 16px;
    color: black;
    font-weight: 600;
    margin-bottom: 15px;
}

.sub-steps {
    list-style-type: disc;
    padding-left: 20px;
}

.sub-steps > li {
    font-size: 16px;
    color: black;
    margin-bottom: 10px;
    font-weight: 400;
}


/***************** FILTERS ***************/

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 50px;
    margin-top: 50px;
}

.filter {
    position: relative;
}

.filter button {
    padding: 10px 60px;
    background-color: #C29C96;
    color: white;
    font-size: 16px;
    border: 1px solid #ddd;
    cursor: pointer;
}

.filter .dropdown {
    display: none;
    position: absolute;
    top: 40px;
    left: 0;
    background-color: white;
    border: 1px solid #ddd;
    padding: 10px;
    z-index: 2;
}

.filter .dropdown label {
    display: block;
    margin-bottom: 5px;
}

.filter.active .dropdown {
    display: block;
}

.sort-by {
    margin-left: auto;
    align-self: center;
}

.sort-by label {
    margin-right: 10px;
    font-size: 16px;
}

.sort-by select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f0f0f0;
    cursor: pointer;
}

/***************** PRODUCT GRID ***************/

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    margin-bottom: 100px;
}

.product-item {
    position: relative;
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    aspect-ratio: 1;
    overflow: hidden;
}

.virtual-try-on-icon {
    position: absolute;
    top: 5px; 
    right: 30px; 
    color: black;
    border: none;
    cursor: pointer;
    font-size: 16px;
    z-index: 1; 
    display: flex;
    align-items: center;
}

.icon {
    font-size: 25px;
}

.product-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    border-radius: 2px;
}

.product-item h3 {
    font-size: 18px;
    margin-bottom: 0;
    cursor: pointer;
}

.product-item p {
    font-size: 16px;
    color: #333;
    margin-bottom: 100px;
    cursor: pointer;
}

/***************** PRODUCT PAGE ***************/

#product {
    background-color: #fff;
    padding: 20px;
    margin-top: 50px;
    margin-left: 200px;
    margin-bottom: 100px;
    max-width: 1000px;
    text-align: left;
}

#product-images {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 20px;
}

#virtual-try-on-button {
    position: absolute;
    top: 10px; 
    left: 300px; 
    padding: 5px 15px;
    background-color: rgba(223, 206, 195, 0.8);
    color: black;
    border: none;
    cursor: pointer;
    font-size: 16px;
    z-index: 1; 
    display: flex;
    align-items: center;
}

.icon-button {
    margin-right: 10px; 
    font-size: 20px;
}

#product-image {
    width: 400px;
    height: 400px;
    object-fit: cover;
    margin-right: 20px;
}

#product-thumbnails {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: 20px;
}

#product-thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    margin-bottom: 10px;
    border: 1px solid #DFCEC3;
    transition: border-color 0.3s;
}

#product-thumbnails img:hover {
    border-color: #8A5559;
}

#product h1 {
    font-size: 24px;
    margin: 10px 0;
    font-weight: 300;
}

#product-price {
    margin: 5px 0;
    font-weight: 500;
}

#product-price {
    font-size: 20px;
    color: #8A5559;
}

#product-description {
    margin: 5px 0;
    font-weight: 300;
}

.description-section {
    margin: 10px 0;
    border-top: 1px solid #DFCEC3;
    max-width: 500px;
}

.description-title {
    font-weight: 400;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    width: 500px;
}

.description-content {
    display: none;
    padding: 1px 0;
    font-weight: 200;
}

.description-title::after {
    content: '\002B';
    font-size: 20px;
    transition: transform 0.5s;
    color: #8A5559;
    transform: rotate(180deg);
}

.description-title.active::after {
    content: '\2212';
}

.quantity-container {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.quantity-button {
    width: 30px;
    height: 32px;
    text-align: center;
    cursor: pointer;
    color: white;
    background-color: #C29C96;
    border: none;
    font-size: 20px;
    font-weight: 600;
}

#quantity {
    width: 100px;
    height: 30px;
    text-align: center;
    border: none;
    background-color: #C29C96;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

#quantity::-webkit-outer-spin-button,
#quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0; /* Chrome, Safari, Edge, Opera */
}

#add-to-cart {
    width: 200px;
    height: 32px;
    margin-left: 20px;
    background-color: #8a5559;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

/***************** CART ***************/

.container-cart {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    max-width: 1200px; /* Adjust as needed */
    margin: 0 auto; /* Centers the container horizontally */
    margin-top: 50px;
    margin-bottom: 50px;
}

.cart {
    background-color: #fff;
    padding: 20px;
    width: 60%; /* Adjust width as needed */
}

.summary {
    background-color: #DFCEC3;
    padding: 20px;
    width: 35%; /* Adjust width as needed */
    height: 200px;
    margin-left: 20px; /* Adds space between cart and summary */
}

.cart h2 {
    margin-top: 0;
    font-size: 24px;
    font-weight: 600;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ccc;
}

.item-details {
    display: flex;
    align-items: center;
    flex: 1;
}

.item-image {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.item-name {
    font-size: 16px;
    font-weight: bold;
}

.item-price {
    color: #888;
}

.item-quantity {
    display: flex;
    align-items: center;
}

.quantity-btn {
    background-color: #ddd;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.quantity-btn:hover {
    background-color: #ccc;
}

.item-quantity input {
    width: 40px;
    text-align: center;
    margin: 0 5px;
}

.delete-btn {
    background-color: #e74c3c;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.delete-btn:hover {
    background-color: #c0392b;
}

.checkout-btn {
    width: 100%;
    background-color: #8A5559;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.checkout-btn:hover {
    background-color: #8A5559;
}


/***************** CHECKOUT ***************/

#checkout-body {
    margin: 0;
    padding: 0;
}

.container-checkout {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    max-width: 1200px; /* Adjust as needed */
    margin: 0 auto; /* Centers the container horizontally */
}

.checkout-form {
    width: 60%;
    padding-right: 20px; /* Adds space between form and cart summary */
}

#address-form,
#delivery-form,
#payment-form {
    background-color: #DFCEC3;
    padding: 20px;
    margin-bottom: 20px;
}

.checkout-form h2, .checkout-form h3 {
    margin-top: 20px;
    font-size: 24px;
}

.checkout-form form {
    display: flex;
    flex-direction: column;
}

#address-form label,
#delivery-form label,
#payment-form label {
    margin-top: 10px;
    width: 120px; /* Adjust the width as needed */
    display: inline-block; /* Ensures labels occupy specified width */
}

.checkout-form input[type="text"],
.checkout-form input[type="radio"] {
    margin-bottom: 10px;
    padding: 8px;
    width: 100%; /* Full width input fields */
    box-sizing: border-box; /* Include padding and border in total width */
}

.cart-summary button {
    margin-top: 20px;
    padding: 10px 30px; /* Increase padding to make the button bigger */
    background-color: #8A5559;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.cart-summary button:hover {
    background-color: #A66B6E; /* Darken the hover color for visual feedback */
}

.cart-summary {
    width: 35%;
    height: 200px;
    padding-left: 20px; /* Adds padding to the left side */
    padding-top: 20px;
    background-color: #DFCEC3;
}

.cart-summary h2 {
    margin-bottom: 20px;
}

#cart-items {
    margin-bottom: 20px;
}


/***************** ACCOUNT ***************/

body {
    font-family: 'Inter', Arial, sans-serif; /* Use Inter font from Google Fonts */
    margin: 0;
    padding: 0;
}

#account-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
}

#account-body a {
    text-decoration: none;
}

#account-body a:hover,
#account-body a:active,
#account-body a:visited {
    text-decoration: none;
}

.login-container {
    background-color: #DFCEC3;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 300px;
    text-align: center; /* Center align content */
}

#login-form {
    display: flex;
    flex-direction: column;
}

#login-form h2 {
    font-size: 24px;
    font-weight: 600;
}

#login-form .form-group {
    margin-top: 20px;
    margin-bottom: 15px;
}

#login-form label {
    font-size: 16px;
    font-weight: 300;
}

#login-form input[type="text"],
#login-form input[type="password"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    width: 100%;
    box-sizing: border-box; /* Ensures padding and border are included in width */
}

#login-form button {
    padding: 10px 20px; /* Larger padding for button */
    background-color: #8A5559;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 3px;
    width: 100%; /* Full width button */
    margin-top: 10px; /* Adjust top margin */
    font-size: 16px;
    font-weight: 600;
}

#login-form button:hover {
    background-color: #8A5559;
}
