/* Product search form styles */
.product-search-form {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-search-form input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    flex-grow: 1;
    max-width: 300px;
}

.product-search-form button {
    padding: 8px 16px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.product-search-form button:hover {
    background: #005f8a;
}

.clear-search {
    color: #666;
    text-decoration: none;
    font-size: 0.9em;
    margin-left: 10px;
}

.clear-search:hover {
    color: #333;
}

/* View Toggle Buttons */
.view-toggle {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

.view-toggle button {
    background: #f0f0f0;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-toggle button.active {
    background: #0073aa;
    color: white;
}

.view-toggle button svg {
    width: 16px;
    height: 16px;
}

/* Grid View Styles */
.product-list.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-list.grid-view .product-card {
    margin: 0;
    padding: 15px;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #eee;
    border-radius: 8px;
    background: white;
}

.product-list.grid-view .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-list.grid-view .product-thumbnail {
    text-align: center;
    margin-bottom: 15px;
}

.product-list.grid-view .product-thumbnail img {
    max-width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
}

.product-list.grid-view .product-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.product-list.grid-view .product-card h4 {
    font-size: 16px;
    margin: 10px 0 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-list.grid-view .product-price {
    color: #0073aa;
    font-weight: bold;
    margin: 5px 0;
}

/* List View Styles */
.product-list.list-view {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-list.list-view .product-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.product-list.list-view .product-thumbnail img {
    max-width: 150px;
    height: auto;
    margin-bottom: 1rem;
}

.product-list.list-view .product-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-list.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 480px) {
    .product-list.grid-view {
        grid-template-columns: 1fr;
    }
}

/* Profile settings dropdown styles */
.profile-settings-dropdown {
    margin-bottom: 20px;
}

.profile-settings-toggle {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 200px;
}

.profile-settings-toggle:hover {
    background: #005f8a;
}

.profile-settings-content {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 0 0 4px 4px;
    margin-top: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.settings-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.settings-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.update-button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.update-button:hover {
    background: #005f8a;
}

.profile-picture-preview {
    margin: 15px 0;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 4px;
}

.profile-picture-preview p {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #666;
}

/* Existing styles */
.seller-profile { 
    max-width: 960px; 
    margin: auto; 
    padding: 2rem; 
}

.seller-info { 
    background: #f9f9f9; 
    padding: 1rem; 
    border-radius: 6px; 
    margin-bottom: 2rem; 
}

.seller-info p { 
    margin: 0.4rem 0; 
}

.edit-button { 
    background: #0073aa; 
    color: #fff; 
    border: none; 
    padding: 0.5rem 1rem; 
    border-radius: 4px; 
    cursor: pointer; 
}

.edit-button:hover { 
    background: #005f8a; 
}

.delete-button { 
    background: #dc3545; 
    color: #fff; 
    border: none; 
    padding: 0.5rem 1rem; 
    border-radius: 4px; 
    cursor: pointer; 
}

.delete-button:hover { 
    background: #c82333; 
}

.edit-form input, 
.edit-form textarea, 
.edit-form select { 
    width: 100%; 
    margin-bottom: 1rem; 
    padding: 0.5rem; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
}

.edit-form .form-buttons { 
    display: flex; 
    gap: 1rem; 
    margin-top: 1rem; 
}

.edit-form .submit-button { 
    background: #28a745; 
    color: white; 
    padding: 0.75rem 1.5rem; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
}

.edit-form .submit-button:hover { 
    background: #218838; 
}

.edit-form .cancel-button { 
    background: #6c757d; 
    color: white; 
    padding: 0.75rem 1.5rem; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
}

.edit-form .cancel-button:hover { 
    background: #5a6268; 
}

.success-notice { 
    background: #d4edda; 
    color: #155724; 
    padding: 1rem; 
    border-left: 5px solid #28a745; 
    margin-bottom: 1rem; 
}

.error-notice { 
    background: #f8d7da; 
    color: #721c24; 
    padding: 1rem; 
    border-left: 5px solid #dc3545; 
    margin-bottom: 1rem; 
}

.delete-form { 
    display: inline; 
}

.submit-product-button { 
    display: inline-flex; 
    align-items: center; 
    background: #4CAF50; 
    color: white; 
    padding: 0.75rem 1.5rem; 
    border-radius: 4px; 
    text-decoration: none; 
    margin-bottom: 1.5rem; 
}

.submit-product-button:hover { 
    background: #3e8e41; 
}

.button-icon { 
    font-size: 1.2rem; 
    margin-right: 0.5rem; 
}

#username-availability { 
    margin-top: 0.5rem; 
    font-size: 0.9rem; 
}

#username-availability .checking { 
    color: #666; 
}

#username-availability .available { 
    color: #28a745; 
}

#username-availability .unavailable, 
#username-availability .error { 
    color: #dc3545; 
}