/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Root variables */
:root {
    --primary-color: #0056b3;
    --secondary-color: #ff9800;
    --background-color: #f2f2f2;
    --text-color: #333333;
    --light-text-color: #ffffff;
    --border-color: #dddddd;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px; /* Set the maximum width of the container */
    margin: 10px auto; /* Center the container */
    padding: 0 10px; /* Add padding for responsiveness */
}

html {
    height: 100%;
}

/* Header and navigation styles */
header {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
}

.hamburger {
    font-size: 24px;
    cursor: pointer;
    color: var(--light-text-color);
}

.logo {
    margin-left:10px;
    display: flex;
    align-items: center;
    gap: 1px;
    font-size: 28px;
    font-weight: bold;
    display: inline-block; /* Ensures spans are displayed inline */
}

.logo .kin-bech, .logo .com {
    font-weight: bold; 
    color: var(--light-text-color); 
}

.logo .dot {
    font-size: 28px; /* Adjust dot size */
    color: var(--secondary-color); /* Color of the dot */
}


.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-right button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-right img {
    width: 24px;
    height: auto;
    max-width: 100%;
    border-radius: 50%;
    background-color: #fff;
    padding: 4px;
    box-sizing: border-box;
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

.nav-right img:hover {
    background-color: var(--secondary-color);
}


/* Company Slogan Styles */
.company-slogan {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    padding: 10px;
    margin: 10px auto; /* Center the slogan */
    width: fit-content;
}

.company-slogan span {
    color: var(--secondary-color);
    font-weight: normal; /* Differentiate the span text */
}

/* Additional media queries for responsiveness if needed */
@media (max-width: 768px) {
    .company-slogan {
        font-size: 1.5rem;
        padding: 6px;
        margin: 6px auto; /* Center the slogan */
    }
}


/* Main content and footer styles */
main {
    margin-top: 60px;
    padding: 10px;
    text-align: center;
}

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    max-width: 600px; /* Adjust maximum width as needed */
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #ccc; /* Add border around search container */
    border-radius: 5px; /* Rounded corners */
}

.search-input {
    flex: 1;
    padding: 12px;
    border: none; /* Remove input border to merge with container border */
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
}

.search-input:focus {
    /* Adjust border color and style for focus */
    border: 1px solid var(--primary-color);
}

.select-wrapper {
    border-left: 1px solid #ccc; /* Add left border for separation */
}

.search-category {
    padding: 12px;
    border: none; 
    font-size: 16px;
    background-color: transparent;
    appearance: none; 
    -webkit-appearance: none; 
    background-image: url("https://www.kin-bech.com/assets/icons/arrow-down.png");
    background-repeat: no-repeat;
    background-position: calc(100% - 10px) 50%; 
    padding-right: 30px; 
}


.main-search-btn {
    background-color: var(--primary-color);
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
}

.main-search-btn img {
    width: 20px;
    height: auto;
    margin-right: 8px;
}

.main-search-btn span {
    font-size: 16px;
    color: #fff;
}

.main-search-btn:hover {
    background-color: var(--secondary-color);
}

@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input,
    .search-category,
    .main-search-btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .main-search-btn {
        display: flex;
        justify-content: center; /* Center button horizontally */
        align-items: center; /* Center button vertically */
        border-radius: 5px;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 0;
    }
.select-wrapper {
    border-left: none; 
}
}




footer {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 10px 0;
    width: 100%;
    bottom: 0;
}

/* Side navigation styles */
.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--primary-color);
    overflow-x: hidden;
    padding-top: 60px;
    transition: width 0.5s ease-in-out; /* Transition width for smoother animation */
    z-index: 999; /* Ensure side nav appears above main content */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
}

/* Side navigation styles */
.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    right: 0; /* Align to the right side of the viewport */
    background-color: var(--primary-color);
    overflow-x: hidden;
    padding-top: 48px;
    transition: width 0.5s ease-in-out; /* Transition width for smoother animation */
    z-index: 999; /* Ensure side nav appears above main content */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Add subtle shadow */
}

.sidenav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px; /* Adjusted padding */
    border-bottom: 1px solid var(--border-color);
    background-color: var(--secondary-color); /* Background color for header */
}

.sidenav a {
    padding: 12px 20px; /* Increased padding for better touch/click area */
    text-decoration: none;
    font-weight:bold;
    font-size: 18px;
    color: var(--light-text-color);
    display: block;
    transition: background-color 0.3s, color 0.3s; /* Smooth transition */
}

.sidenav a:hover {
    background-color: var(--secondary-color); /* Hover background color */
    color: #fff; /* Hover text color */
}

/* Close button styles */
.sidenav .closebtn {
    font-size: 24px; /* Adjusted font size */
    color: var(--light-text-color);
    text-decoration: none;
    cursor: pointer;
    padding: 8px 12px; 
    border-radius: 4px; 
    background-color: var(--secondary-color); 
    transition: background-color 0.3s, color 0.3s;
    margin-right: -10px; 
}

.sidenav .closebtn:hover {
    background-color: var(--primary-color); 
    color: #fff; 
}


.sidenav .closebtn:hover {
    color: #fff; 
}




.category-container {
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 10px;
    padding: 6px 0;
    border-radius: 12px;
    box-shadow: 0 3px 6px var(--shadow-color);
}

.category-container h4 {
    padding:10px;
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.category-container h4 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.category-container h4 a:hover {
    color: var(--primary-color);
}



.container-popular-category {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.popular-category {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 6px;
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
}

.popular-category::-webkit-scrollbar {
    display: none;
}

.popular-category-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--background-color);
    border: 2px solid var(--secondary-color);
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px var(--shadow-color);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.popular-category-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px var(--shadow-color);
    border-color: var(--primary-color);
}

.popular-category-item img {
    width: 50%;
    height: auto;
    transition: transform 0.3s ease;
}

.popular-category-item:hover img {
    transform: scale(1.1);
}

.category-label {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

.popular-category-item:hover .category-label {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .popular-category {
        padding: 10px;
    }

    .popular-category-item {
        width: 60px;
        height: 60px;
        box-shadow: 0 2px 4px var(--shadow-color);
    }

    .popular-category-item img {
        width: 40%;
    }

    .category-label {
        font-size: 8px;
    }
}




/* Container for goods items */
.goods-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: space-between;
    padding:10px;
}

/* Individual goods item layout */
.goods-layout {
    width: calc(33.33% - 10px); /* Three items per row */
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    border-radius: 8px;
    display: flex;
}

/* Image wrapper */
.image-wrapper {
    flex: 0 0 40%; /* Image takes 40% of the container width */
    overflow: hidden;
    border-radius: 8px 0 0 8px; /* Rounded corners only on the left */
    position: relative; /* Ensure relative positioning for pseudo-element */
}

/* Available or Sold label */

.sale-or-sold {
    position: absolute;
    top: 0;
    left: 0;
    color: white;
    padding: 4px 8px;
    font-size: 12px; 
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); 
    transition: background-color 0.3s ease; 
}

/* Available label */
.available {
    background-color: rgba(0, 128, 0, 0.8); /* Green background for available */
}

/* Sold out label */
.sold-out {
    background-color: rgba(255, 0, 0, 0.8); /* Red background for sold out */
}



.image-wrapper img {
    width: 100%;
    height: 100%; /* Ensure the image covers the entire container */
    object-fit: cover; /* Fit the image inside the container covering it */
    display: block;
}

/* Detail wrapper */
.detail-wrapper {
    flex: 0 0 60%; /* Detail section takes 60% of the container width */
    padding:10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden; /* Hide any overflow content */
}

.detail-wrapper h1 {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--text-color);
    overflow: hidden; /* Ensure title doesn't overflow */
    text-overflow: ellipsis; /* Show ellipsis if title overflows */
    white-space: nowrap; /* Prevent title from wrapping */
}

/* Tags section */
.tags {
    display: flex;
    gap: 10px;
    overflow-x: auto; /* Horizontal scroll for tags */
    margin-bottom: 4px;
    flex-wrap: nowrap;
    padding-bottom: 4px; /* Ensure tags are visually separated from the price */
    -webkit-overflow-scrolling: touch;
}

.tags::-webkit-scrollbar {
    display: none;
    
}

.tags-items {
    display: inline-block;
    width: auto;
    height: 22px; /* Reduced height */
    background-color: #6ab070;
    border-radius: 3px 4px 4px 3px;
    border-left: 1px solid #6ab070;
    margin-left: 10px; /* Reduced margin */
    position: relative;
    color: white;
    font-weight: 300;
    line-height: 22px; /* Adjusted line height */
    padding: 0 5px; /* Adjusted padding */
    font-size:12px;
    white-space: nowrap;
    cursor: w-resize; 
}

.tags-items:before {
    content: "";
    position: absolute;
    left: -10px; /* Adjusted left position */
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 11px solid transparent; /* Reduced size of triangle */
    border-bottom: 11px solid transparent; /* Reduced size of triangle */
    border-right: 11px solid #6ab070; /* Adjusted size and color of triangle */
}

.tags-items:after {
    content: "";
    position: absolute;
    left: -5px; /* Adjusted left position */
    top: 50%;
    transform: translateY(-50%);
    width: 2px; /* Adjusted size of circle */
    height: 2px; /* Adjusted size of circle */
    background-color: white;
    border-radius: 50%;
}




/* Price wrapper */
.price-wrapper {
    flex-direction: column;
    display: flex;
    align-items: flex-start;
    margin-bottom: 4px;
}

.price {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight:bold;
}

.discount {
    font-size: 0.9rem;
    color: black;
    font-weight:bold;
}

.discount span {
    text-decoration: line-through;
    margin-right: 5px;
    color: red
   
}




/* Info section */
.info {
    display: flex;
    gap: 10px;
    overflow-x: auto; /* Horizontal scroll for info items */
    flex-wrap: nowrap;
    margin-bottom: 6px;
    padding-bottom: 6px; /* Ensure info items are visually separated from the see more button */
    -webkit-overflow-scrolling: touch;
}

.info::-webkit-scrollbar {
    display: none;
    
}

.info-item {
    padding: 5px 12px; /* Increased padding for better visual appeal */
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    border-radius: 6px;
    font-size:12px;
    white-space: nowrap;
    cursor: w-resize; 
}




/* Footer section */
.goods-footer {
    display: flex;
    justify-content: space-between; /* Distribute space between items */
    align-items: center; /* Align items vertically in the center */
    margin-top: auto; /* Pushes footer to the bottom */
}

.goods-footer-see-detail {
    flex: 1; /* Take available space */
}

.buttons-container {
    display: flex;
    align-items: center; /* Align items vertically in the center */
}

/* CSS for like button */
.like-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 0;
}

.like-btn .like-icon {
    width: 24px; /* Adjust width as needed */
    height: auto; /* Maintain aspect ratio */
}

/* Default icon */
.like-btn .like-icon {
    content: url('https://www.kin-bech.com/assets/icons/love.png'); /* Initial image */
}

/* Icon when liked */
.like-btn.liked .like-icon {
    content: url('https://www.kin-bech.com/assets/icons/likedlove.png'); /* Change image when liked */
}

.like-btn span.like-count {
    font-size: 14px;
    margin-left: 5px; /* Space between icon and count */
}




/* See more button */
.see-more {
    display: inline-block; /* Display as inline block */
    background-color: var(--primary-color); /* Primary background color */
    color: var(--light-text-color); /* Light text color */
    padding: 8px 16px; /* Adjust padding for smaller size */
    border-radius: 5px; /* Rounded corners */
    text-decoration: none;
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

.see-more:hover {
    background-color: var(--secondary-color); /* Secondary background color on hover */
}


/* CSS styles for disabled "See details" link */
.see-more.disabled {
    cursor: not-allowed;
    background-color: #ddd;
    color: #888; /* Adjust text color as needed */
    pointer-events: none; /* Prevents clicks */
}

.see-more.disabled:hover {
    /* Optional: Adjust styles for hover state if needed */
    background-color: #ddd;
    color: #888;
}


@media (max-width: 768px) {
    .goods-layout {
        flex: 0 0 100%; /* One item per row on small screens */
    }

    .detail-wrapper {
        padding: 10px;
    }

    .tags-items,
    .info-item {
        margin-bottom: 5px; /* Increased margin between items on small screens */
    }
}





/* Form styling */
.login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.login-form .form-group {
    margin-bottom: 20px;
    position: relative; /* Added to position the show/hide password button */
}

.login-form label {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
}

.login-form input[type="text"],
.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: #fff;
    color: var(--text-color);
}

.login-form input[type="text"]:focus,
.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 86, 179, 0.5);
}

.login-form .help-block {
    color: var(--secondary-color);
    font-size: 14px;
    margin-top: 5px;
}

.login-form .btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.login-form .btn-primary:hover {
    background-color: #003e80; /* Darken primary color on hover */
}

.login-form p {
    color: var(--secondary-color);
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

/* Show/Hide Password Button */
.show-hide-password-container {
    position: relative;
}

.show-hide-password-container .form-control {
    padding-right: 50px; /* Space for the toggle button */
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 70%;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #007bff;
}
.toggle-password:focus {
    outline: none;
}


.show-hide-password-container .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 16px;
    z-index: 1; /* Ensure the button is above the input field */
}

.show-hide-password-container .toggle-password:hover {
    color: var(--primary-color);
}

/* Additional buttons */
.login-form .extra-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.login-form .extra-buttons a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 14px;
}

.login-form .extra-buttons a img {
    width: 24px; /* Set image size to 24x24 pixels */
    height: 24px;
    margin-right: 10px; /* Space between image and text */
}

.login-form .extra-buttons a:hover {
    text-decoration: underline;
}

.accordion {
    cursor: pointer;
    padding: 15px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    background-color: #f8f9fa;
    color: #333;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 5px;
    margin-top: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.accordion.active, .accordion:hover {
    background-color: #e2e6ea;
    color: #000;
}

.panel {
    padding: 15px 20px;
    background-color: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    border-left: 4px solid #007bff;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-top: -20px;
}

.password-criteria {
    list-style: none;
    padding: 10px 0;
    margin: 0;
    font-size: 14px;
    color: #333;
}

.password-criteria li {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.password-criteria li::before {
    content: "•";
    color: #007bff;
    margin-right: 10px;
    font-size: 16px;
    line-height: 1;
}



/* Modal styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.6); 
    transition: opacity 0.3s ease;
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slide-down 0.5s ease;
}

@keyframes slide-down {
    from {
        transform: translateY(-50%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal .close {
    color: #888;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.modal .close:hover,
.modal .close:focus {
    color: #333;
}

.modal h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.modal p {
    font-size: 16px;
    margin-bottom: 20px;
}

.modal .verification-form {
    display: flex;
    flex-direction: column;
}

.modal .verification-code-input {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.verification-form button {
    padding: 10px 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.verification-form button:hover {
    background-color: #0056b3;
}

#verificationFeedback {
    margin-top: 15px;
    font-size: 14px;
    color: red;
    text-align: center;
}
