/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* General styling */
.fpv-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header styling */
.fpv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.fpv-header .fpv-logo {
    max-width: 150px;
}

.fpv-header .fpv-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.fpv-header .fpv-menu-toggle {
    font-size: 20px;
    cursor: pointer;
}

.fpv-header .fpv-user-menu {
    position: relative;
}

.fpv-header .fpv-user-icon {
    font-size: 20px;
    cursor: pointer;
}

.fpv-header .fpv-user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    z-index: 100;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.fpv-header .fpv-user-dropdown.active {
    display: block;
}

.fpv-header .fpv-user-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fpv-header .fpv-user-dropdown li {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.fpv-header .fpv-user-dropdown li:last-child {
    border-bottom: none;
}

.fpv-header .fpv-user-dropdown a {
    color: #333;
    text-decoration: none;
}

.fpv-header .fpv-user-dropdown a:hover {
    color: #0073aa;
}

/* Search section styling */
.fpv-search-hero {
    position: relative;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.fpv-search-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.fpv-search-hero .fpv-search-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
}

.fpv-search-hero h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.fpv-search-hero .fpv-search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.fpv-search-hero .fpv-search-input {
    flex: 1;
    padding: 12px 15px;
    font-size: 16px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.fpv-search-hero .fpv-search-button {
    padding: 12px 25px;
    background: #0073aa;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.fpv-search-hero .fpv-search-button:hover {
    background: #005d87;
}

/* Application Scenarios section */
.fpv-scenarios-section {
    padding: 40px 0;
}

.fpv-scenarios-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.fpv-scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.fpv-scenario-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.fpv-scenario-card:hover {
    transform: translateY(-5px);
}

.fpv-scenario-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.fpv-scenario-card .fpv-scenario-content {
    padding: 15px;
}

.fpv-scenario-card h3 {
    margin-top: 0;
    font-size: 18px;
}

.fpv-scenario-card p {
    margin-bottom: 0;
    font-size: 14px;
    color: #666;
}

/* Featured Products section */
.fpv-featured-section {
    padding: 40px 0;
    background: #f8f8f8;
}

.fpv-featured-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.fpv-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.fpv-product-card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.fpv-product-card:hover {
    transform: translateY(-5px);
}

.fpv-product-card .fpv-product-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1;
}

.fpv-product-card .fpv-product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.fpv-product-card .fpv-product-content {
    padding: 15px;
}

.fpv-product-card h3 {
    margin-top: 0;
    font-size: 18px;
}

.fpv-product-card .fpv-product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.fpv-product-card .fpv-buy-button {
    padding: 8px 15px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.fpv-product-card .fpv-buy-button:hover {
    background: #005d87;
}

.fpv-product-card .fpv-wishlist-button {
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
}

.fpv-product-card .fpv-wishlist-button.active {
    color: #ff6b6b;
}

/* Product detail page */
.fpv-product-detail {
    display: flex;
    flex-wrap: wrap;
    margin: 40px 0;
}

.fpv-product-gallery {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .fpv-product-gallery {
        flex: 0 0 50%;
        max-width: 50%;
        padding-right: 20px;
        margin-bottom: 0;
    }
}

.fpv-product-gallery .fpv-main-image {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
}

.fpv-product-gallery .fpv-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.fpv-product-gallery .fpv-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.fpv-product-gallery .fpv-thumbnail.active,
.fpv-product-gallery .fpv-thumbnail:hover {
    opacity: 1;
}

.fpv-product-info {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .fpv-product-info {
        flex: 0 0 50%;
        max-width: 50%;
        padding-left: 20px;
    }
}

.fpv-product-info h1 {
    margin-top: 0;
    font-size: 24px;
}

.fpv-product-info .fpv-product-rating {
    display: inline-block;
    background: #f8f8f8;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
}

.fpv-product-info .fpv-product-actions {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.fpv-product-info .fpv-buy-button {
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
}

.fpv-product-info .fpv-buy-button:hover {
    background: #005d87;
}

.fpv-product-info .fpv-wishlist-button {
    padding: 10px 15px;
    background: #f8f8f8;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
}

.fpv-product-info .fpv-wishlist-button.active {
    color: #ff6b6b;
}

.fpv-product-tabs {
    margin-top: 40px;
}

.fpv-product-tabs .fpv-tabs-nav {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.fpv-product-tabs .fpv-tab-link {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.fpv-product-tabs .fpv-tab-link.active {
    border-bottom-color: #0073aa;
    color: #0073aa;
}

.fpv-product-tabs .fpv-tab-content {
    display: none;
}

.fpv-product-tabs .fpv-tab-content.active {
    display: block;
}

/* Reviews section */
.fpv-reviews-section {
    margin-top: 40px;
}

.fpv-reviews-section h2 {
    margin-bottom: 20px;
}

.fpv-review-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.fpv-review-item:last-child {
    border-bottom: none;
}

.fpv-review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.fpv-review-author {
    font-weight: bold;
}

.fpv-review-date {
    font-size: 14px;
    color: #666;
}

.fpv-review-rating {
    margin-bottom: 10px;
    color: #f8b400;
}

.fpv-review-form {
    margin-top: 30px;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
}

.fpv-review-form h3 {
    margin-top: 0;
}

.fpv-review-form .fpv-rating-select {
    margin-bottom: 15px;
}

.fpv-review-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 120px;
}

.fpv-review-form button {
    margin-top: 15px;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.fpv-review-form button:hover {
    background: #005d87;
}

/* Search and filter page */
.fpv-search-filters {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.fpv-search-filters form {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.fpv-search-filters .fpv-filter-group {
    margin-bottom: 15px;
}

.fpv-search-filters label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.fpv-search-filters select,
.fpv-search-filters input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.fpv-search-filters button {
    padding: 8px 15px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    grid-column: 1 / -1;
    width: max-content;
    justify-self: center;
}

.fpv-search-filters button:hover {
    background: #005d87;
}

.fpv-search-results {
    margin-top: 30px;
}

.fpv-search-results h2 {
    margin-bottom: 20px;
}

/* User account pages */
.fpv-user-section {
    padding: 40px 0;
}

.fpv-user-section h1 {
    margin-bottom: 30px;
}

.fpv-user-section .fpv-no-items {
    padding: 20px;
    background: #f8f8f8;
    border-radius: 8px;
    text-align: center;
}

/* Social login */
.fpv-directory-social-login-buttons {
    margin: 20px 0;
    text-align: center;
}

.fpv-directory-social-login-label {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.fpv-directory-social-login-button {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
}

.fpv-directory-google-login-button {
    background: #4285F4;
    color: #fff;
}

.fpv-directory-facebook-login-button {
    background: #3b5998;
    color: #fff;
}

/* Footer */
.fpv-footer {
    padding: 40px 0;
    background: #333;
    color: #fff;
    text-align: center;
}

.fpv-footer .fpv-social-links {
    margin-bottom: 20px;
}

.fpv-footer .fpv-social-links a {
    color: #fff;
    font-size: 20px;
    margin: 0 10px;
}

.fpv-footer .fpv-footer-links {
    margin-bottom: 20px;
}

.fpv-footer .fpv-footer-links a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
}

.fpv-footer .fpv-footer-links a:hover {
    text-decoration: underline;
}

.fpv-footer .fpv-copyright {
    font-size: 14px;
    color: #ccc;
}

/* Responsive */
@media (max-width: 767px) {
    .fpv-header {
        flex-direction: column;
    }
    
    .fpv-header .fpv-title {
        margin: 15px 0;
    }
    
    .fpv-search-hero {
        height: 300px;
    }
    
    .fpv-search-hero h2 {
        font-size: 24px;
    }
    
    .fpv-search-hero .fpv-search-form {
        flex-direction: column;
    }
    
    .fpv-search-hero .fpv-search-input,
    .fpv-search-hero .fpv-search-button {
        border-radius: 4px;
    }
    
    .fpv-search-hero .fpv-search-button {
        margin-top: 10px;
    }
}
