body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #f4f6f8;
    color: #333;
    display: flex;
    transition: all 0.3s ease-in-out;
}

.app-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    transition: width 0.3s ease-in-out;
    width: 100%;
    height: 100vh; /* Make it full height */
    overflow-y: auto; /* Allow scrolling for the content */
    padding-top: 40px; /* Add padding to push content down */
}

main#main-container {
    flex-grow: 1;
}

/* Header */
.site-header {
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid #eee;
}

.site-name-link {
    text-decoration: none;
    color: inherit;
}

.site-name {
    font-weight: bold;
    font-size: 2rem;
}

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

.main-nav a.icon-link {
    margin-left: 20px;
    text-decoration: none;
    color: #111;
    font-size: 20px; /* Adjust icon size */
    transition: transform 0.2s ease-in-out;
}

.main-nav a.icon-link:hover {
    transform: scale(1.1);
}
h1 {
    font-size: 2rem;
    color: #1a2a4c;
    margin: 0;
}

.search-container {
    max-width: 70%;
    margin: 0 auto;
}

#search-bar {
    width: 300px;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 0.8rem;
    outline: none;
    transition: all 0.3s ease;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-search" viewBox="0 0 16 16"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z"/></svg>');
    background-repeat: no-repeat;
    background-position: 15px center;
}

#search-bar:focus {
    border-color: #343434ec;
    box-shadow: 0 0 5px rgba(26, 42, 76, 0.2);
}

.search-section {
    padding: 20px 0 10px;
    background-color: #f4f6f8;
}

#product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 50px;
    padding: 10px 0;
    max-width: 70%;
    margin: 0 auto;
}

.product-card {
    background-color: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: transform 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 66.67%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #fff;
    transition: transform 0.3s ease;
}

.product-image:hover {
    transform: scale(1.5);
}

.product-info {
    padding: 15px 0;
}

.color-swatches {
    margin-bottom: 10px;
}

.color-swatch {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin: 0 5px;
    border: 1px solid #eee;
}

.product-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.product-price {
    font-size: 0.8rem;
    color: #000000d2;
    font-weight: bold;
}

/* Chat Assistant */
.chat-icon {
    position: fixed;
    z-index: 1000;
    bottom: 40px;
    right: 40px;
    background-color: #3d6733;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.2s ease-in-out;
}

.chat-icon:hover {
    transform: scale(1.1);
}

.chat-window {
    width: 0;
    height: 100vh;
    background-color: rgba(0, 100, 0, 0.3);
    color: #fff;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease-in-out;
    box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    z-index: 2000;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 15px;
}

body.chat-open .chat-window {
    width: 350px;
}

body:not(.chat-open) .chat-icon {
    display: flex;
}

body.chat-open .chat-icon {
    display: none;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #336126;
}

.chat-header span {
    font-weight: bold;
}

.chat-control {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.chat-body {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.video-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.video-spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.share-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s ease-in-out;
}

.share-btn:hover {
    transform: scale(1.1);
}

.share-btn.stop {
    background-color: #e74c3c;
}

#chat-container {
    width: auto;
    height: 300px;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    position: absolute;
    bottom: 10px;
    left: 20px;
    right: 20px;
}

#chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    background-color: #fff;
    border-radius: 10px;
    margin-bottom: 10px;
}

.message {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    max-width: 80%;
}

.message.user {
    background-color: #dcf8c6;
    align-self: flex-end;
    text-align: right;
}

.message.server {
    background-color: #f1f0f0;
    align-self: flex-start;
}

#chat-input {
    width: calc(100% - 22px);
    padding: 10px;
    border: none;
    border-radius: 20px;
    background-color: #f1f0f0;
}

.chat-footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px 20px;
    background-color: #012700c4;
}

.chat-footer i {
    font-size: 20px;
}

.sound-wave {
    display: flex;
    align-items: center;
    height: 20px;
}

.sound-wave span {
    display: inline-block;
    width: 3px;
    height: 2px;
    margin: 0 2px;
    background-color: #fff;
    transition: height 0.2s ease-in-out;
}

.sound-wave.active span {
    animation: sound 1.2s infinite ease-in-out;
}

.sound-wave-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: default;
    display: flex;
    align-items: center;
}

.sound-wave span:nth-child(2) { animation-delay: -1.1s; }
.sound-wave span:nth-child(3) { animation-delay: -1.0s; }
.sound-wave span:nth-child(4) { animation-delay: -0.9s; }
.sound-wave span:nth-child(5) { animation-delay: -0.8s; }

@keyframes sound {
    0%, 40%, 100% { transform: scaleY(0.2); }
    20% { transform: scaleY(2.0); }
}

.end-call-btn {
    background-color: #e74c3c;
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
}

.media-container {
    position: relative;
}

.hide-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    cursor: pointer;
    z-index: 1;
    transition: transform 0.2s ease-in-out;
}

.hide-btn:hover {
    transform: scale(1.1);
}

#sound-wave-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.sound-wave-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 200px;
    height: 200px;
    position: relative;
}

.sound-wave-circle::before,
.sound-wave-circle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: rotate 4s linear infinite;
}

.sound-wave-circle::after {
    animation-delay: -2s;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.sound-wave-bar {
    width: 8px;
    height: 10px;
    background-color: #fff;
    margin: 0 4px;
    animation: sound-wave-animation 1.2s infinite ease-in-out;
    transform-origin: bottom;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

@keyframes sound-wave-animation {
    0% {
        transform: scaleY(0.1);
    }
    20% {
        transform: scaleY(1);
    }
    100% {
        transform: scaleY(0.1);
    }
}

.sound-wave-bar:nth-child(1) {
    animation-delay: -1.1s;
}
.sound-wave-bar:nth-child(2) {
    animation-delay: -1.0s;
}
.sound-wave-bar:nth-child(3) {
    animation-delay: -0.9s;
}
.sound-wave-bar:nth-child(4) {
    animation-delay: -0.8s;
}
.sound-wave-bar:nth-child(5) {
    animation-delay: -0.7s;
}
.sound-wave-bar:nth-child(6) {
    animation-delay: -0.6s;
}
.sound-wave-bar:nth-child(7) {
    animation-delay: -0.5s;
}
.sound-wave-bar:nth-child(8) {
    animation-delay: -0.4s;
}
.sound-wave-bar:nth-child(9) {
    animation-delay: -0.3s;
}
.sound-wave-bar:nth-child(10) {
    animation-delay: -0.2s;
}

/* Camera permission dialog */
.permission-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.permission-dialog.hidden {
    display: none;
}

.permission-dialog-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    color: #333;
}

.permission-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.permission-buttons button {
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

#camera-deny-btn {
    background-color: #f1f1f1;
    color: #333;
}

#camera-allow-btn {
    background-color: #3d6733;
    color: white;
}

.new-home-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
}

.promo-banner {
    background-color: #87ae7e;
    color: #4a4a4a;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    font-size: 0.9rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
}

.hero-section {
    text-align: center;
    padding: 60px 20px;
}

.hero-section-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 50px;
    text-align: left;
}

.hero-section-flex .hero-text {
    max-width: 40%;
}

.hero-section-flex .hero-text p {
    font-size: 1.2rem;
    color: #666;
}

.hero-section-flex .hero-text h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-top: 10px;
}

.hero-section-flex .hero-image img {
    max-width: 800px;
    height: auto;
    border-radius: 0;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #222;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    padding: 0 40px 60px 40px;
    max-width: 1200px;
}

.category-card {
    background-color: #fff;
    border-radius: 0px;
    overflow: hidden;
    text-align: left;
    border: 1px solid #eee;
}

.category-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    background-color: #f9f9f9;
    transition: transform 0.3s ease-in-out;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-card .category-info {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-card .category-info span {
    font-weight: 500;
    font-size: 1.1rem;
}

.arrow-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 50%;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.arrow-link:hover {
    background-color: #f0f0f0;
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    margin-left: 20px;
    cursor: pointer;
    color: #333;
}

.user-profile .avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.user-profile .user-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.user-profile .user-name {
    font-weight: normal;
    font-size: 0.8rem;
}

.user-profile .user-title {
    color: #888;
    font-size: 0.8rem;
}

.user-profile .fa-chevron-right {
    margin-left: 15px;
    color: #888;
}
